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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
57,800
|
my_numcells_cp932
|
eloqsql/strings/ctype-cp932.c
|
static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
}
|
O0
|
c
|
my_numcells_cp932:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x3d275
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa1, %eax
jl 0x3d230
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xdf, %eax
jg 0x3d230
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3d270
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
jle 0x3d256
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x3d26e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3d270
jmp 0x3d1f0
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
|
my_numcells_cp932:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_3D1F0:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_3D275
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0A1h
jl short loc_3D230
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0DFh
jg short loc_3D230
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_3D270
loc_3D230:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
jle short loc_3D256
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_3D26E
loc_3D256:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_3D26E:
jmp short $+2
loc_3D270:
jmp loc_3D1F0
loc_3D275:
mov rax, [rbp+var_20]
pop rbp
retn
|
long long my_numcells_cp932(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( *a2 < 0xA1u || *a2 > 0xDFu )
{
if ( *a2 <= 0x7Fu )
{
++v5;
++a2;
}
else
{
v5 += 2LL;
a2 += 2;
}
}
else
{
++v5;
++a2;
}
}
return v5;
}
|
my_numcells_cp932:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_0013d1f0:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0013d275
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xa1
JL 0x0013d230
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xdf
JG 0x0013d230
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013d270
LAB_0013d230:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
JLE 0x0013d256
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013d26e
LAB_0013d256:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_0013d26e:
JMP 0x0013d270
LAB_0013d270:
JMP 0x0013d1f0
LAB_0013d275:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if ((*local_30 < 0xa1) || (0xdf < *local_30)) {
if (*local_30 < 0x80) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
else {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
}
return local_28;
}
|
|
57,801
|
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
|
monkey531[P]llama/common/minja.hpp
|
TemplateToken(Type type, const Location & location, SpaceHandling pre, SpaceHandling post) : type(type), location(location), pre_space(pre), post_space(post) {}
|
O1
|
cpp
|
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&):
leaq 0x6e12f(%rip), %rax # 0xe97a8
addq $0x10, %rax
movq %rax, (%rdi)
movl $0xf, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x7b6b1
movq 0x6f8ee(%rip), %r9 # 0xeaf90
cmpb $0x0, (%r9)
je 0x7b6ad
incl 0x8(%rax)
jmp 0x7b6b1
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rdi)
movl %edx, 0x28(%rdi)
movl %ecx, 0x2c(%rdi)
leaq 0x6eb52(%rip), %rax # 0xea218
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movups (%r8), %xmm0
movq %rax, 0x8(%r8)
movups %xmm0, 0x30(%rdi)
movq %rax, (%r8)
retq
nop
|
_ZN5minja19FilterTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rdi], rax
mov dword ptr [rdi+8], 0Fh
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_7B6B1
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_7B6AD
inc dword ptr [rax+8]
jmp short loc_7B6B1
loc_7B6AD:
lock inc dword ptr [rax+8]
loc_7B6B1:
mov rax, [rsi+10h]
mov [rdi+20h], rax
mov [rdi+28h], edx
mov [rdi+2Ch], ecx
lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [r8]
mov [r8+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [r8], rax
retn
|
long long minja::FilterTemplateToken::FilterTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
__int128 *a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 15;
*(_QWORD *)(a1 + 16) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 24) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::FilterTemplateToken + 2;
result = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a5 = 0LL;
return result;
}
|
FilterTemplateToken:
LEA RAX,[0x1e97a8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV dword ptr [RDI + 0x8],0xf
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x0017b6b1
MOV R9,qword ptr [0x001eaf90]
CMP byte ptr [R9],0x0
JZ 0x0017b6ad
INC dword ptr [RAX + 0x8]
JMP 0x0017b6b1
LAB_0017b6ad:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0017b6b1:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x20],RAX
MOV dword ptr [RDI + 0x28],EDX
MOV dword ptr [RDI + 0x2c],ECX
LEA RAX,[0x1ea218]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [R8]
MOV qword ptr [R8 + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [R8],RAX
RET
|
/* minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::FilterTemplateToken::FilterTemplateToken
(FilterTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
int8 *param_5)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR__TemplateToken_001e97b8;
*(int4 *)(this + 8) = 0xf;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001eaf90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__FilterTemplateToken_001ea228;
*(int8 *)(this + 0x38) = 0;
uVar2 = param_5[1];
param_5[1] = 0;
*(int8 *)(this + 0x30) = *param_5;
*(int8 *)(this + 0x38) = uVar2;
*param_5 = 0;
return;
}
|
|
57,802
|
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
|
monkey531[P]llama/common/minja.hpp
|
TemplateToken(Type type, const Location & location, SpaceHandling pre, SpaceHandling post) : type(type), location(location), pre_space(pre), post_space(post) {}
|
O3
|
cpp
|
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&):
leaq 0x6c545(%rip), %rax # 0xe67a8
addq $0x10, %rax
movq %rax, (%rdi)
movl $0xf, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x7a29b
movq 0x6dd04(%rip), %r9 # 0xe7f90
cmpb $0x0, (%r9)
je 0x7a297
incl 0x8(%rax)
jmp 0x7a29b
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rdi)
movl %edx, 0x28(%rdi)
movl %ecx, 0x2c(%rdi)
leaq 0x6cf68(%rip), %rax # 0xe7218
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movups (%r8), %xmm0
movq %rax, 0x8(%r8)
movups %xmm0, 0x30(%rdi)
movq %rax, (%r8)
retq
nop
|
_ZN5minja19FilterTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rdi], rax
mov dword ptr [rdi+8], 0Fh
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_7A29B
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_7A297
inc dword ptr [rax+8]
jmp short loc_7A29B
loc_7A297:
lock inc dword ptr [rax+8]
loc_7A29B:
mov rax, [rsi+10h]
mov [rdi+20h], rax
mov [rdi+28h], edx
mov [rdi+2Ch], ecx
lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [r8]
mov [r8+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [r8], rax
retn
|
long long minja::FilterTemplateToken::FilterTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
__int128 *a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 15;
*(_QWORD *)(a1 + 16) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 24) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::FilterTemplateToken + 2;
result = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a5 = 0LL;
return result;
}
|
FilterTemplateToken:
LEA RAX,[0x1e67a8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV dword ptr [RDI + 0x8],0xf
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x0017a29b
MOV R9,qword ptr [0x001e7f90]
CMP byte ptr [R9],0x0
JZ 0x0017a297
INC dword ptr [RAX + 0x8]
JMP 0x0017a29b
LAB_0017a297:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0017a29b:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x20],RAX
MOV dword ptr [RDI + 0x28],EDX
MOV dword ptr [RDI + 0x2c],ECX
LEA RAX,[0x1e7218]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [R8]
MOV qword ptr [R8 + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [R8],RAX
RET
|
/* minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::FilterTemplateToken::FilterTemplateToken
(FilterTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
int8 *param_5)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR__TemplateToken_001e67b8;
*(int4 *)(this + 8) = 0xf;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e7f90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__FilterTemplateToken_001e7228;
*(int8 *)(this + 0x38) = 0;
uVar2 = param_5[1];
param_5[1] = 0;
*(int8 *)(this + 0x30) = *param_5;
*(int8 *)(this + 0x38) = uVar2;
*param_5 = 0;
return;
}
|
|
57,803
|
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 0x32b0b
movq 0x20(%rbx), %rcx
btl $0x8, %ecx
movl 0x18(%rbx), %edi
jb 0x32b10
addl 0x10(%rbx), %eax
movq (%rbx), %rsi
imull 0x14(%rbx), %eax
orq $0x50, %rcx
movq %rax, %rdx
callq 0x29ca0
movq %rax, %r14
testq %rax, %rax
jne 0x32b4d
jmp 0x32b6b
movq (%rbx), %r14
jmp 0x32b59
addl 0x10(%rbx), %eax
imull 0x14(%rbx), %eax
orq $0x10, %rcx
movq %rax, %rsi
movq %rcx, %rdx
callq 0x29b7d
testq %rax, %rax
je 0x32b6b
movq %rax, %r14
movl 0x8(%rbx), %edx
testl %edx, %edx
je 0x32b44
movq (%rbx), %rsi
imull 0x14(%rbx), %edx
movq %r14, %rdi
callq 0x24210
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 0x32b66
|
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_32B0B
mov rcx, [rbx+20h]
bt ecx, 8
mov edi, [rbx+18h]
jb short loc_32B10
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_32B4D
jmp short loc_32B6B
loc_32B0B:
mov r14, [rbx]
jmp short loc_32B59
loc_32B10:
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_32B6B
mov r14, rax
mov edx, [rbx+8]
test edx, edx
jz short loc_32B44
mov rsi, [rbx]
imul edx, [rbx+14h]
mov rdi, r14
call _memcpy
loc_32B44:
mov eax, 0FFFFFEFFh
and [rbx+20h], rax
loc_32B4D:
mov [rbx], r14
mov eax, [rbx+8]
mov ecx, [rbx+10h]
add [rbx+0Ch], ecx
loc_32B59:
lea ecx, [rax+1]
mov [rbx+8], ecx
imul eax, [rbx+14h]
add rax, r14
loc_32B66:
pop rbx
pop r14
pop rbp
retn
loc_32B6B:
xor eax, eax
jmp short loc_32B66
|
long long alloc_dynamic(long long *a1)
{
int v2; // eax
long long v3; // rcx
unsigned int v4; // edi
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 = *((_DWORD *)a1 + 6);
if ( (v3 & 0x100) == 0 )
{
v5 = my_realloc(
v4,
*a1,
(unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + v2)),
(unsigned __int8)v3 | 0x50u);
if ( !v5 )
return 0LL;
goto LABEL_10;
}
v6 = my_malloc(v4, (unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + v2)), (unsigned int)v3 | 0x10);
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 0x00132b0b
MOV RCX,qword ptr [RBX + 0x20]
BT ECX,0x8
MOV EDI,dword ptr [RBX + 0x18]
JC 0x00132b10
ADD EAX,dword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX]
IMUL EAX,dword ptr [RBX + 0x14]
OR RCX,0x50
MOV RDX,RAX
CALL 0x00129ca0
MOV R14,RAX
TEST RAX,RAX
JNZ 0x00132b4d
JMP 0x00132b6b
LAB_00132b0b:
MOV R14,qword ptr [RBX]
JMP 0x00132b59
LAB_00132b10:
ADD EAX,dword ptr [RBX + 0x10]
IMUL EAX,dword ptr [RBX + 0x14]
OR RCX,0x10
MOV RSI,RAX
MOV RDX,RCX
CALL 0x00129b7d
TEST RAX,RAX
JZ 0x00132b6b
MOV R14,RAX
MOV EDX,dword ptr [RBX + 0x8]
TEST EDX,EDX
JZ 0x00132b44
MOV RSI,qword ptr [RBX]
IMUL EDX,dword ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00124210
LAB_00132b44:
MOV EAX,0xfffffeff
AND qword ptr [RBX + 0x20],RAX
LAB_00132b4d:
MOV qword ptr [RBX],R14
MOV EAX,dword ptr [RBX + 0x8]
MOV ECX,dword ptr [RBX + 0x10]
ADD dword ptr [RBX + 0xc],ECX
LAB_00132b59:
LEA ECX,[RAX + 0x1]
MOV dword ptr [RBX + 0x8],ECX
IMUL EAX,dword ptr [RBX + 0x14]
ADD RAX,R14
LAB_00132b66:
POP RBX
POP R14
POP RBP
RET
LAB_00132b6b:
XOR EAX,EAX
JMP 0x00132b66
|
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_00132b4d:
*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_00132b59;
}
}
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_00132b4d;
}
}
lVar3 = 0;
}
else {
__dest = (void *)*param_1;
LAB_00132b59:
*(int *)(param_1 + 1) = iVar2 + 1;
lVar3 = (ulong)(uint)(iVar2 * *(int *)((long)param_1 + 0x14)) + (long)__dest;
}
return lVar3;
}
|
|
57,804
|
rw_pr_init
|
eloqsql/mysys/thr_rwlock.c
|
int rw_pr_init(rw_pr_lock_t *rwlock)
{
pthread_mutex_init(&rwlock->lock, NULL);
pthread_cond_init(&rwlock->no_active_readers, NULL);
rwlock->active_readers= 0;
rwlock->writers_waiting_readers= 0;
rwlock->active_writer= FALSE;
#ifdef SAFE_MUTEX
rwlock->writer_thread= 0;
#endif
return 0;
}
|
O3
|
c
|
rw_pr_init:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %esi, %esi
callq 0x2b3a0
leaq 0x28(%rbx), %rdi
xorl %esi, %esi
callq 0x2b3f0
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
rw_pr_init:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
xor esi, esi
call _pthread_mutex_init
lea rdi, [rbx+28h]
xor esi, esi
call _pthread_cond_init
mov qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
|
long long rw_pr_init(long long a1)
{
pthread_mutex_init(a1, 0LL);
pthread_cond_init(a1 + 40, 0LL);
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return 0LL;
}
|
rw_pr_init:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR ESI,ESI
CALL 0x0012b3a0
LEA RDI,[RBX + 0x28]
XOR ESI,ESI
CALL 0x0012b3f0
MOV qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 rw_pr_init(pthread_mutex_t *param_1)
{
pthread_mutex_init(param_1,(pthread_mutexattr_t *)0x0);
pthread_cond_init((pthread_cond_t *)(param_1 + 1),(pthread_condattr_t *)0x0);
*(int8 *)((long)param_1 + 0x58) = 0;
*(int1 *)((long)param_1 + 0x60) = 0;
return 0;
}
|
|
57,805
|
mariadb_get_socket
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static my_socket mariadb_get_socket(MYSQL *mysql)
{
my_socket sock= INVALID_SOCKET;
if (mysql->net.pvio)
{
ma_pvio_get_handle(mysql->net.pvio, &sock);
}
/* if an asynchronous connect is in progress, we need to obtain
pvio handle from async_context until the connection was
successfully established.
*/
else if (mysql->options.extension && mysql->options.extension->async_context &&
mysql->options.extension->async_context->pvio)
{
ma_pvio_get_handle(mysql->options.extension->async_context->pvio, &sock);
}
return sock;
}
|
O0
|
c
|
mariadb_get_socket:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x3c95f
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq -0xc(%rbp), %rsi
callq 0x3e400
jmp 0x3c9b3
movq -0x8(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x3c9b1
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x3c9b1
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
cmpq $0x0, 0x18(%rax)
je 0x3c9b1
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rdi
leaq -0xc(%rbp), %rsi
callq 0x3e400
jmp 0x3c9b3
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
mariadb_get_socket:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0FFFFFFFFh
mov rax, [rbp+var_8]
cmp qword ptr [rax], 0
jz short loc_3C95F
mov rax, [rbp+var_8]
mov rdi, [rax]
lea rsi, [rbp+var_C]
call ma_pvio_get_handle
jmp short loc_3C9B3
loc_3C95F:
mov rax, [rbp+var_8]
cmp qword ptr [rax+480h], 0
jz short loc_3C9B1
mov rax, [rbp+var_8]
mov rax, [rax+480h]
cmp qword ptr [rax+28h], 0
jz short loc_3C9B1
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rax, [rax+28h]
cmp qword ptr [rax+18h], 0
jz short loc_3C9B1
mov rax, [rbp+var_8]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov rdi, [rax+18h]
lea rsi, [rbp+var_C]
call ma_pvio_get_handle
loc_3C9B1:
jmp short $+2
loc_3C9B3:
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long mariadb_get_socket(_QWORD *a1)
{
unsigned int v2; // [rsp+4h] [rbp-Ch] BYREF
_QWORD *v3; // [rsp+8h] [rbp-8h]
v3 = a1;
v2 = -1;
if ( *a1 )
{
ma_pvio_get_handle(*v3, &v2);
}
else if ( v3[144] && *(_QWORD *)(v3[144] + 40LL) && *(_QWORD *)(*(_QWORD *)(v3[144] + 40LL) + 24LL) )
{
ma_pvio_get_handle(*(_QWORD *)(*(_QWORD *)(v3[144] + 40LL) + 24LL), &v2);
}
return v2;
}
|
mariadb_get_socket:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX],0x0
JZ 0x0013c95f
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
LEA RSI,[RBP + -0xc]
CALL 0x0013e400
JMP 0x0013c9b3
LAB_0013c95f:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0013c9b1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x0013c9b1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0013c9b1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV RDI,qword ptr [RAX + 0x18]
LEA RSI,[RBP + -0xc]
CALL 0x0013e400
LAB_0013c9b1:
JMP 0x0013c9b3
LAB_0013c9b3:
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 mariadb_get_socket(long *param_1)
{
int4 local_14;
long *local_10;
local_14 = 0xffffffff;
local_10 = param_1;
if (*param_1 == 0) {
if (((param_1[0x90] != 0) && (*(long *)(param_1[0x90] + 0x28) != 0)) &&
(*(long *)(*(long *)(param_1[0x90] + 0x28) + 0x18) != 0)) {
ma_pvio_get_handle(*(int8 *)(*(long *)(param_1[0x90] + 0x28) + 0x18),&local_14);
}
}
else {
ma_pvio_get_handle(*param_1,&local_14);
}
return local_14;
}
|
|
57,806
|
my_casedn_utf32
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_casedn_utf32(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((res= my_utf32_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf32(uni_plane,&wc);
if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
}
|
O3
|
c
|
my_casedn_utf32:
movq %rdx, %rax
cmpq $0x4, %rdx
jl 0xc7855
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x4, %rcx
movzbl (%rsi), %r9d
shll $0x18, %r9d
movzbl 0x1(%rsi), %r10d
shll $0x10, %r10d
orl %r9d, %r10d
cmpl $0x10ffff, %r10d # imm = 0x10FFFF
ja 0xc7853
movzbl 0x2(%rsi), %ebx
shll $0x8, %ebx
movzbl 0x3(%rsi), %r9d
orq %r9, %rbx
orq %r10, %rbx
cmpq (%rdi), %rbx
ja 0xc781c
movq 0x8(%rdi), %r10
movl %ebx, %r11d
shrl $0x8, %r11d
movq (%r10,%r11,8), %r10
testq %r10, %r10
je 0xc781c
leaq (%r9,%r9,2), %r9
movl 0x4(%r10,%r9,4), %ebx
cmpq %r8, %rcx
ja 0xc7853
cmpl $0x10ffff, %ebx # imm = 0x10FFFF
ja 0xc7853
movb $0x0, -0x4(%rcx)
movl %ebx, %r9d
shrl $0x10, %r9d
movb %r9b, -0x3(%rcx)
movb %bh, -0x2(%rcx)
movb %bl, -0x1(%rcx)
leaq 0x8(%rsi), %r9
addq $0x4, %rcx
addq $0x4, %rsi
cmpq %rdx, %r9
jbe 0xc77cb
popq %rbx
popq %rbp
retq
|
my_casedn_utf32:
mov rax, rdx
cmp rdx, 4
jl locret_C7855
push rbp
mov rbp, rsp
push rbx
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 4
loc_C77CB:
movzx r9d, byte ptr [rsi]
shl r9d, 18h
movzx r10d, byte ptr [rsi+1]
shl r10d, 10h
or r10d, r9d
cmp r10d, offset aYbyYgylyiy; "YbY`YgYlYiY"
ja short loc_C7853
movzx ebx, byte ptr [rsi+2]
shl ebx, 8
movzx r9d, byte ptr [rsi+3]
or rbx, r9
or rbx, r10
cmp rbx, [rdi]
ja short loc_C781C
mov r10, [rdi+8]
mov r11d, ebx
shr r11d, 8
mov r10, [r10+r11*8]
test r10, r10
jz short loc_C781C
lea r9, [r9+r9*2]
mov ebx, [r10+r9*4+4]
loc_C781C:
cmp rcx, r8
ja short loc_C7853
cmp ebx, offset aYbyYgylyiy; "YbY`YgYlYiY"
ja short loc_C7853
mov byte ptr [rcx-4], 0
mov r9d, ebx
shr r9d, 10h
mov [rcx-3], r9b
mov [rcx-2], bh
mov [rcx-1], bl
lea r9, [rsi+8]
add rcx, 4
add rsi, 4
cmp r9, rdx
jbe loc_C77CB
loc_C7853:
pop rbx
pop rbp
locret_C7855:
retn
|
long long my_casedn_utf32(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned __int8 *v6; // rdx
unsigned long long v7; // r8
unsigned long long *v8; // rdi
unsigned long long v9; // rcx
long long v10; // r10
long long v11; // r9
unsigned long long v12; // rbx
long long v13; // r10
unsigned __int8 *v14; // r9
result = a3;
if ( a3 >= 4 )
{
v6 = &a2[a3];
v7 = a4 + a5;
v8 = *(unsigned long long **)(a1 + 120);
v9 = a4 + 4;
do
{
v10 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v10 > (unsigned int)"YbY`YgYlYiY" )
break;
v11 = a2[3];
v12 = v10 | v11 | (a2[2] << 8);
if ( v12 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v12 >> 8));
if ( v13 )
LODWORD(v12) = *(_DWORD *)(v13 + 12 * v11 + 4);
}
if ( v9 > v7 )
break;
if ( (unsigned int)v12 > (unsigned int)"YbY`YgYlYiY" )
break;
*(_BYTE *)(v9 - 4) = 0;
*(_BYTE *)(v9 - 3) = BYTE2(v12);
*(_BYTE *)(v9 - 2) = BYTE1(v12);
*(_BYTE *)(v9 - 1) = v12;
v14 = a2 + 8;
v9 += 4LL;
a2 += 4;
}
while ( v14 <= v6 );
}
return result;
}
|
my_casedn_utf32:
MOV RAX,RDX
CMP RDX,0x4
JL 0x001c7855
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x4
LAB_001c77cb:
MOVZX R9D,byte ptr [RSI]
SHL R9D,0x18
MOVZX R10D,byte ptr [RSI + 0x1]
SHL R10D,0x10
OR R10D,R9D
CMP R10D,0x10ffff
JA 0x001c7853
MOVZX EBX,byte ptr [RSI + 0x2]
SHL EBX,0x8
MOVZX R9D,byte ptr [RSI + 0x3]
OR RBX,R9
OR RBX,R10
CMP RBX,qword ptr [RDI]
JA 0x001c781c
MOV R10,qword ptr [RDI + 0x8]
MOV R11D,EBX
SHR R11D,0x8
MOV R10,qword ptr [R10 + R11*0x8]
TEST R10,R10
JZ 0x001c781c
LEA R9,[R9 + R9*0x2]
MOV EBX,dword ptr [R10 + R9*0x4 + 0x4]
LAB_001c781c:
CMP RCX,R8
JA 0x001c7853
CMP EBX,0x10ffff
JA 0x001c7853
MOV byte ptr [RCX + -0x4],0x0
MOV R9D,EBX
SHR R9D,0x10
MOV byte ptr [RCX + -0x3],R9B
MOV byte ptr [RCX + -0x2],BH
MOV byte ptr [RCX + -0x1],BL
LEA R9,[RSI + 0x8]
ADD RCX,0x4
ADD RSI,0x4
CMP R9,RDX
JBE 0x001c77cb
LAB_001c7853:
POP RBX
POP RBP
LAB_001c7855:
RET
|
void my_casedn_utf32(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
byte *pbVar1;
byte *pbVar2;
ulong *puVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
uint uVar7;
if (3 < param_3) {
pbVar2 = param_2 + param_3;
puVar3 = *(ulong **)(param_1 + 0x78);
uVar5 = param_4 + 4;
while (uVar7 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18, uVar7 < 0x110000) {
uVar6 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar7;
if ((uVar6 <= *puVar3) && (lVar4 = *(long *)(puVar3[1] + (uVar6 >> 8) * 8), lVar4 != 0)) {
uVar6 = (ulong)*(uint *)(lVar4 + 4 + (ulong)param_2[3] * 0xc);
}
if ((ulong)(param_5 + param_4) < uVar5) {
return;
}
if (0x10ffff < (uint)uVar6) {
return;
}
*(int1 *)(uVar5 - 4) = 0;
*(char *)(uVar5 - 3) = (char)(uVar6 >> 0x10);
*(char *)(uVar5 - 2) = (char)(uVar6 >> 8);
*(char *)(uVar5 - 1) = (char)uVar6;
pbVar1 = param_2 + 8;
uVar5 = uVar5 + 4;
param_2 = param_2 + 4;
if (pbVar2 < pbVar1) {
return;
}
}
}
return;
}
|
|
57,807
|
mysql_stmt_fetch_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_stmt_fetch_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_fetch,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
}
|
O3
|
c
|
mysql_stmt_fetch_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x20fcf
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_stmt_fetch_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_fetch
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
|
long long mysql_stmt_fetch_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_fetch(v1);
v2[2] = result;
*v2 = 0;
return result;
}
|
mysql_stmt_fetch_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x00120fcf
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_fetch_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_fetch();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
57,808
|
maria_get_pointer_length
|
eloqsql/storage/maria/ma_create.c
|
uint maria_get_pointer_length(ulonglong file_length, uint def)
{
DBUG_ASSERT(def >= 2 && def <= 7);
if (file_length) /* If not default */
{
#ifdef NOT_YET_READY_FOR_8_BYTE_POINTERS
if (file_length >= (1ULL << 56))
def=8;
else
#endif
if (file_length >= (1ULL << 48))
def=7;
else if (file_length >= (1ULL << 40))
def=6;
else if (file_length >= (1ULL << 32))
def=5;
else if (file_length >= (1ULL << 24))
def=4;
else if (file_length >= (1ULL << 16))
def=3;
else
def=2;
}
return def;
}
|
O0
|
c
|
maria_get_pointer_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
jmp 0x7580d
cmpq $0x0, -0x8(%rbp)
je 0x7589a
movabsq $0x1000000000000, %rax # imm = 0x1000000000000
cmpq %rax, -0x8(%rbp)
jb 0x75831
movl $0x7, -0xc(%rbp)
jmp 0x75898
movabsq $0x10000000000, %rax # imm = 0x10000000000
cmpq %rax, -0x8(%rbp)
jb 0x7584a
movl $0x6, -0xc(%rbp)
jmp 0x75896
movabsq $0x100000000, %rax # imm = 0x100000000
cmpq %rax, -0x8(%rbp)
jb 0x75863
movl $0x5, -0xc(%rbp)
jmp 0x75894
cmpq $0x1000000, -0x8(%rbp) # imm = 0x1000000
jb 0x75876
movl $0x4, -0xc(%rbp)
jmp 0x75892
cmpq $0x10000, -0x8(%rbp) # imm = 0x10000
jb 0x75889
movl $0x3, -0xc(%rbp)
jmp 0x75890
movl $0x2, -0xc(%rbp)
jmp 0x75892
jmp 0x75894
jmp 0x75896
jmp 0x75898
jmp 0x7589a
movl -0xc(%rbp), %eax
popq %rbp
retq
nop
|
maria_get_pointer_length:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
jmp short $+2
loc_7580D:
cmp [rbp+var_8], 0
jz loc_7589A
mov rax, 1000000000000h
cmp [rbp+var_8], rax
jb short loc_75831
mov [rbp+var_C], 7
jmp short loc_75898
loc_75831:
mov rax, 10000000000h
cmp [rbp+var_8], rax
jb short loc_7584A
mov [rbp+var_C], 6
jmp short loc_75896
loc_7584A:
mov rax, 100000000h
cmp [rbp+var_8], rax
jb short loc_75863
mov [rbp+var_C], 5
jmp short loc_75894
loc_75863:
cmp [rbp+var_8], 1000000h
jb short loc_75876
mov [rbp+var_C], 4
jmp short loc_75892
loc_75876:
cmp [rbp+var_8], 10000h
jb short loc_75889
mov [rbp+var_C], 3
jmp short loc_75890
loc_75889:
mov [rbp+var_C], 2
loc_75890:
jmp short $+2
loc_75892:
jmp short $+2
loc_75894:
jmp short $+2
loc_75896:
jmp short $+2
loc_75898:
jmp short $+2
loc_7589A:
mov eax, [rbp+var_C]
pop rbp
retn
|
long long maria_get_pointer_length(unsigned long long a1, unsigned int a2)
{
if ( a1 )
{
if ( a1 < 0x1000000000000LL )
{
if ( a1 < 0x10000000000LL )
{
if ( a1 < 0x100000000LL )
{
if ( a1 < 0x1000000 )
{
if ( a1 < 0x10000 )
return 2;
else
return 3;
}
else
{
return 4;
}
}
else
{
return 5;
}
}
else
{
return 6;
}
}
else
{
return 7;
}
}
return a2;
}
|
maria_get_pointer_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
JMP 0x0017580d
LAB_0017580d:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0017589a
MOV RAX,0x1000000000000
CMP qword ptr [RBP + -0x8],RAX
JC 0x00175831
MOV dword ptr [RBP + -0xc],0x7
JMP 0x00175898
LAB_00175831:
MOV RAX,0x10000000000
CMP qword ptr [RBP + -0x8],RAX
JC 0x0017584a
MOV dword ptr [RBP + -0xc],0x6
JMP 0x00175896
LAB_0017584a:
MOV RAX,0x100000000
CMP qword ptr [RBP + -0x8],RAX
JC 0x00175863
MOV dword ptr [RBP + -0xc],0x5
JMP 0x00175894
LAB_00175863:
CMP qword ptr [RBP + -0x8],0x1000000
JC 0x00175876
MOV dword ptr [RBP + -0xc],0x4
JMP 0x00175892
LAB_00175876:
CMP qword ptr [RBP + -0x8],0x10000
JC 0x00175889
MOV dword ptr [RBP + -0xc],0x3
JMP 0x00175890
LAB_00175889:
MOV dword ptr [RBP + -0xc],0x2
LAB_00175890:
JMP 0x00175892
LAB_00175892:
JMP 0x00175894
LAB_00175894:
JMP 0x00175896
LAB_00175896:
JMP 0x00175898
LAB_00175898:
JMP 0x0017589a
LAB_0017589a:
MOV EAX,dword ptr [RBP + -0xc]
POP RBP
RET
|
int4 maria_get_pointer_length(ulong param_1,int4 param_2)
{
int4 local_14;
local_14 = param_2;
if (param_1 != 0) {
if (param_1 < 0x1000000000000) {
if (param_1 < 0x10000000000) {
if (param_1 < 0x100000000) {
if (param_1 < 0x1000000) {
if (param_1 < 0x10000) {
local_14 = 2;
}
else {
local_14 = 3;
}
}
else {
local_14 = 4;
}
}
else {
local_14 = 5;
}
}
else {
local_14 = 6;
}
}
else {
local_14 = 7;
}
}
return local_14;
}
|
|
57,809
|
net_realloc
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
static my_bool net_realloc(NET *net, size_t length)
{
uchar *buff;
size_t pkt_length;
if (length >= net->max_packet_size)
{
net->error=1;
net->pvio->set_error(net->pvio->mysql, CR_NET_PACKET_TOO_LARGE, SQLSTATE_UNKNOWN, 0);
return(1);
}
pkt_length = (length+IO_SIZE-1) & ~(IO_SIZE-1);
/* reallocate buffer:
size= pkt_length + NET_HEADER_SIZE + COMP_HEADER_SIZE */
if (!(buff=(uchar*) realloc(net->buff,
pkt_length + NET_HEADER_SIZE + COMP_HEADER_SIZE)))
{
net->error=1;
return(1);
}
net->buff=net->write_pos=buff;
net->buff_end=buff+(net->max_packet=(unsigned long)pkt_length);
return(0);
}
|
O0
|
c
|
net_realloc:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x58(%rcx), %rax
jb 0x6140d
movq -0x10(%rbp), %rax
movb $0x1, 0x94(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x40(%rax), %rdi
leaq 0x1faaa(%rip), %rax # 0x80ea0
movq (%rax), %rdx
movl $0x7e4, %esi # imm = 0x7E4
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq *%r8
movb $0x1, -0x1(%rbp)
jmp 0x6148c
movq -0x18(%rbp), %rax
addq $0x1000, %rax # imm = 0x1000
subq $0x1, %rax
andq $-0x1000, %rax # imm = 0xF000
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
addq $0x4, %rsi
addq $0x3, %rsi
callq 0x14710
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x61459
movq -0x10(%rbp), %rax
movb $0x1, 0x94(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x6148c
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdx
movq %rax, 0x50(%rdx)
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
net_realloc:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+58h]
jb short loc_6140D
mov rax, [rbp+var_10]
mov byte ptr [rax+94h], 1
mov rax, [rbp+var_10]
mov rax, [rax]
mov r8, [rax+50h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7E4h
xor eax, eax
mov ecx, eax
mov al, 0
call r8
mov [rbp+var_1], 1
jmp short loc_6148C
loc_6140D:
mov rax, [rbp+var_18]
add rax, 1000h
sub rax, 1
and rax, 0FFFFFFFFFFFFF000h
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rsi, [rbp+var_28]
add rsi, 4
add rsi, 3
call _realloc
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_61459
mov rax, [rbp+var_10]
mov byte ptr [rax+94h], 1
mov [rbp+var_1], 1
jmp short loc_6148C
loc_61459:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_28]
mov rdx, [rbp+var_10]
mov [rdx+50h], rax
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov [rbp+var_1], 0
loc_6148C:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char net_realloc(_QWORD *a1, unsigned long long a2)
{
unsigned long long v3; // [rsp+8h] [rbp-28h]
long long v4; // [rsp+10h] [rbp-20h]
if ( a2 < a1[11] )
{
v3 = (a2 + 4095) & 0xFFFFFFFFFFFFF000LL;
v4 = realloc(a1[1], v3 + 7);
if ( v4 )
{
a1[3] = v4;
a1[1] = v4;
a1[10] = v3;
a1[2] = v3 + v4;
return 0;
}
else
{
*((_BYTE *)a1 + 148) = 1;
return 1;
}
}
else
{
*((_BYTE *)a1 + 148) = 1;
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*a1 + 80LL))(
*(_QWORD *)(*a1 + 64LL),
2020LL,
SQLSTATE_UNKNOWN,
0LL);
return 1;
}
}
|
net_realloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x58]
JC 0x0016140d
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x94],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x40]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7e4
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL R8
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0016148c
LAB_0016140d:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1000
SUB RAX,0x1
AND RAX,-0x1000
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x28]
ADD RSI,0x4
ADD RSI,0x3
CALL 0x00114710
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x00161459
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x94],0x1
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0016148c
LAB_00161459:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV qword ptr [RDX + 0x50],RAX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV byte ptr [RBP + -0x1],0x0
LAB_0016148c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 net_realloc(long *param_1,ulong param_2)
{
ulong uVar1;
void *pvVar2;
int1 local_9;
if (param_2 < (ulong)param_1[0xb]) {
uVar1 = param_2 + 0xfff & 0xfffffffffffff000;
pvVar2 = realloc((void *)param_1[1],uVar1 + 7);
if (pvVar2 == (void *)0x0) {
*(int1 *)((long)param_1 + 0x94) = 1;
local_9 = 1;
}
else {
param_1[3] = (long)pvVar2;
param_1[1] = (long)pvVar2;
param_1[10] = uVar1;
param_1[2] = (long)pvVar2 + uVar1;
local_9 = 0;
}
}
else {
*(int1 *)((long)param_1 + 0x94) = 1;
(**(code **)(*param_1 + 0x50))(*(int8 *)(*param_1 + 0x40),0x7e4,SQLSTATE_UNKNOWN,0);
local_9 = 1;
}
return local_9;
}
|
|
57,810
|
init_available_charsets
|
eloqsql/mysys/charset.c
|
static void init_available_charsets(void)
{
char fname[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
struct charset_info_st **cs;
MY_CHARSET_LOADER loader;
DBUG_ENTER("init_available_charsets");
bzero((char*) &all_charsets,sizeof(all_charsets));
bzero((char*) &my_collation_statistics, sizeof(my_collation_statistics));
my_hash_init2(key_memory_charsets, &charset_name_hash, 16,
&my_charset_latin1, 64, 0, 0, get_charset_key,
0, 0, HASH_UNIQUE);
init_compiled_charsets(MYF(0));
/* Copy compiled charsets */
for (cs= (struct charset_info_st**) all_charsets;
cs < (struct charset_info_st**) all_charsets +
array_elements(all_charsets)-1 ;
cs++)
{
if (*cs)
{
DBUG_ASSERT(cs[0]->mbmaxlen <= MY_CS_MBMAXLEN);
if (cs[0]->m_ctype)
if (init_state_maps(*cs))
*cs= NULL;
}
}
my_charset_loader_init_mysys(&loader);
strmov(get_charsets_dir(fname), MY_CHARSET_INDEX);
my_read_charset_file(&loader, fname, MYF(0));
DBUG_VOID_RETURN;
}
|
O3
|
c
|
init_available_charsets:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x300, %rsp # imm = 0x300
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0xb71d7f(%rip), %rbx # 0xc05700
movl $0x4000, %edx # imm = 0x4000
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2a290
leaq 0xb75dd9(%rip), %rdi # 0xc09770
movl $0x4000, %edx # imm = 0x4000
xorl %esi, %esi
callq 0x2a290
leaq 0xb7ade2(%rip), %rax # 0xc0e78c
movl (%rax), %edi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x10fc(%rip), %rax # 0x94ab7
movq %rax, 0x8(%rsp)
movl $0x1, 0x20(%rsp)
movq $0x0, (%rsp)
leaq 0xb75d29(%rip), %rsi # 0xc09700
leaq 0x31e902(%rip), %rcx # 0x3b22e0
movl $0x40, %r8d
movl $0x10, %edx
xorl %r9d, %r9d
callq 0x95a09
xorl %edi, %edi
callq 0xacec0
movq $-0x8, %r14
movq 0x8(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x93a22
cmpq $0x0, 0x40(%rdi)
je 0x93a22
callq 0x94902
testb %al, %al
je 0x93a22
movq $0x0, 0x8(%rbx,%r14)
addq $0x8, %r14
cmpq $0x3ff0, %r14 # imm = 0x3FF0
jb 0x939ff
leaq -0x2e0(%rbp), %rbx
movb $0x0, (%rbx)
leaq -0x8ae(%rip), %rax # 0x93192
movq %rax, 0x80(%rbx)
leaq -0x8ad(%rip), %rax # 0x931a1
movq %rax, 0x88(%rbx)
leaq -0x8a0(%rip), %rax # 0x931bc
movq %rax, 0x90(%rbx)
leaq 0x10ebc(%rip), %rax # 0xa4926
movq %rax, 0x98(%rbx)
leaq 0x2f7fc0(%rip), %rax # 0x38ba38
movq (%rax), %rax
movq %rax, 0xa0(%rbx)
leaq -0x8af(%rip), %rax # 0x931da
movq %rax, 0xa8(%rbx)
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x9371f
movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49
movq %rcx, (%rax)
movw $0x6c, 0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x94ac8
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0x93ada
addq $0x300, %rsp # imm = 0x300
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2a240
|
init_available_charsets:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 300h
mov rax, fs:28h
mov [rbp+var_18], rax
lea rbx, all_charsets
mov edx, 4000h
mov rdi, rbx
xor esi, esi
call _memset
lea rdi, my_collation_statistics
mov edx, 4000h
xor esi, esi
call _memset
lea rax, key_memory_charsets
mov edi, [rax]
xorps xmm0, xmm0
movups [rsp+310h+var_300], xmm0
lea rax, get_charset_key
mov [rsp+310h+var_308], rax
mov [rsp+310h+var_2F0], 1
mov [rsp+310h+var_310], 0
lea rsi, charset_name_hash
lea rcx, my_charset_latin1
mov r8d, 40h ; '@'
mov edx, 10h
xor r9d, r9d
call my_hash_init2
xor edi, edi
call init_compiled_charsets
mov r14, 0FFFFFFFFFFFFFFF8h
loc_939FF:
mov rdi, [rbx+r14+8]
test rdi, rdi
jz short loc_93A22
cmp qword ptr [rdi+40h], 0
jz short loc_93A22
call init_state_maps
test al, al
jz short loc_93A22
mov qword ptr [rbx+r14+8], 0
loc_93A22:
add r14, 8
cmp r14, 3FF0h
jb short loc_939FF
lea rbx, [rbp+var_2E0]
mov byte ptr [rbx], 0
lea rax, my_once_alloc_c
mov [rbx+80h], rax
lea rax, my_malloc_c
mov [rbx+88h], rax
lea rax, my_realloc_c
mov [rbx+90h], rax
lea rax, my_free
mov [rbx+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rbx+0A0h], rax
lea rax, add_collation
mov [rbx+0A8h], rax
lea r14, [rbp+var_230]
mov rdi, r14
call get_charsets_dir
mov rcx, 6D782E7865646E49h
mov [rax], rcx
mov word ptr [rax+8], 6Ch ; 'l'
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_read_charset_file
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_93ADA
add rsp, 300h
pop rbx
pop r14
pop rbp
retn
loc_93ADA:
call ___stack_chk_fail
|
unsigned long long init_available_charsets()
{
unsigned long long v0; // r14
long long v1; // rdi
_BYTE v3[128]; // [rsp+30h] [rbp-2E0h] BYREF
long long ( *v4)(long long); // [rsp+B0h] [rbp-260h]
long long ( *v5)(long long); // [rsp+B8h] [rbp-258h]
long long ( *v6)(long long, long long, long long, long long, long long, long long); // [rsp+C0h] [rbp-250h]
long long ( *v7)(_QWORD); // [rsp+C8h] [rbp-248h]
long long ( *v8)(); // [rsp+D0h] [rbp-240h]
long long ( *v9)(unsigned int *); // [rsp+D8h] [rbp-238h]
_BYTE v10[536]; // [rsp+E0h] [rbp-230h] BYREF
unsigned long long v11; // [rsp+2F8h] [rbp-18h]
v11 = __readfsqword(0x28u);
memset(all_charsets, 0LL, sizeof(all_charsets));
memset(my_collation_statistics, 0LL, sizeof(my_collation_statistics));
my_hash_init2(
key_memory_charsets,
(unsigned int)&charset_name_hash,
16,
(unsigned int)&my_charset_latin1,
64,
0,
0LL,
(long long)get_charset_key,
0LL,
0LL,
1);
init_compiled_charsets(0LL);
v0 = 0x1FFFFFFFFFFFFFFFLL;
do
{
v1 = all_charsets[v0 + 1];
if ( v1 && *(_QWORD *)(v1 + 64) && (unsigned __int8)init_state_maps(v1) )
all_charsets[v0 + 1] = 0LL;
++v0;
}
while ( v0 < 2046 );
v3[0] = 0;
v4 = my_once_alloc_c;
v5 = my_malloc_c;
v6 = my_realloc_c;
v7 = my_free;
v8 = my_charset_error_reporter;
v9 = add_collation;
strcpy((char *)get_charsets_dir((long long)v10), "Index.xml");
my_read_charset_file(v3, v10, 0LL);
return __readfsqword(0x28u);
}
|
init_available_charsets:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x300
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RBX,[0xd05700]
MOV EDX,0x4000
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0012a290
LEA RDI,[0xd09770]
MOV EDX,0x4000
XOR ESI,ESI
CALL 0x0012a290
LEA RAX,[0xd0e78c]
MOV EDI,dword ptr [RAX]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x10],XMM0
LEA RAX,[0x194ab7]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x20],0x1
MOV qword ptr [RSP],0x0
LEA RSI,[0xd09700]
LEA RCX,[0x4b22e0]
MOV R8D,0x40
MOV EDX,0x10
XOR R9D,R9D
CALL 0x00195a09
XOR EDI,EDI
CALL 0x001acec0
MOV R14,-0x8
LAB_001939ff:
MOV RDI,qword ptr [RBX + R14*0x1 + 0x8]
TEST RDI,RDI
JZ 0x00193a22
CMP qword ptr [RDI + 0x40],0x0
JZ 0x00193a22
CALL 0x00194902
TEST AL,AL
JZ 0x00193a22
MOV qword ptr [RBX + R14*0x1 + 0x8],0x0
LAB_00193a22:
ADD R14,0x8
CMP R14,0x3ff0
JC 0x001939ff
LEA RBX,[RBP + -0x2e0]
MOV byte ptr [RBX],0x0
LEA RAX,[0x193192]
MOV qword ptr [RBX + 0x80],RAX
LEA RAX,[0x1931a1]
MOV qword ptr [RBX + 0x88],RAX
LEA RAX,[0x1931bc]
MOV qword ptr [RBX + 0x90],RAX
LEA RAX,[0x1a4926]
MOV qword ptr [RBX + 0x98],RAX
LEA RAX,[0x48ba38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xa0],RAX
LEA RAX,[0x1931da]
MOV qword ptr [RBX + 0xa8],RAX
LEA R14,[RBP + -0x230]
MOV RDI,R14
CALL 0x0019371f
MOV RCX,0x6d782e7865646e49
MOV qword ptr [RAX],RCX
MOV word ptr [RAX + 0x8],0x6c
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x00194ac8
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x00193ada
ADD RSP,0x300
POP RBX
POP R14
POP RBP
RET
LAB_00193ada:
CALL 0x0012a240
|
void init_available_charsets(void)
{
char cVar1;
int8 *puVar2;
ulong uVar3;
long in_FS_OFFSET;
int1 local_2e8 [128];
code *local_268;
code *local_260;
code *local_258;
code *local_250;
int *local_248;
code *local_240;
int1 local_238 [536];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
memset(&all_charsets,0,0x4000);
memset(my_collation_statistics,0,0x4000);
my_hash_init2(key_memory_charsets,charset_name_hash,0x10,&my_charset_latin1,0x40,0,0,
get_charset_key,0,0,1);
init_compiled_charsets(0);
uVar3 = 0xfffffffffffffff8;
do {
if ((*(long *)((long)&DAT_00d05708 + uVar3) != 0) &&
(*(long *)(*(long *)((long)&DAT_00d05708 + uVar3) + 0x40) != 0)) {
cVar1 = init_state_maps();
if (cVar1 != '\0') {
*(int8 *)((long)&DAT_00d05708 + uVar3) = 0;
}
}
uVar3 = uVar3 + 8;
} while (uVar3 < 0x3ff0);
local_2e8[0] = 0;
local_268 = my_once_alloc_c;
local_260 = my_malloc_c;
local_258 = my_realloc_c;
local_250 = my_free;
local_248 = my_charset_error_reporter;
local_240 = add_collation;
puVar2 = (int8 *)get_charsets_dir(local_238);
*puVar2 = 0x6d782e7865646e49;
*(int2 *)(puVar2 + 1) = 0x6c;
my_read_charset_file(local_2e8,local_238,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,811
|
uf_endspace
|
eloqsql/storage/maria/ma_packrec.c
|
static void uf_endspace(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill(end - spaces, spaces, ' ');
}
|
O0
|
c
|
uf_endspace:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jb 0x36fab
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %ecx
movl %ecx, %edx
leaq 0x2912fd(%rip), %rcx # 0x2c82a0
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0x36fbe
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x35ac0
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0x36fe0
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0x37033
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0x37013
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %eax
movl %eax, %r8d
xorl %eax, %eax
subq %r8, %rax
addq %rax, %rcx
callq 0x36650
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2c0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
uf_endspace:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+24h]
jb short loc_36FAB
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+24h]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+24h]
mov edx, ecx
lea rcx, mask
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_36FBE
loc_36FAB:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+24h]
call fill_and_get_bits
mov [rbp+var_28], eax
loc_36FBE:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_36FE0
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_37033
loc_36FE0:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_37013
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov eax, [rbp+var_24]
mov r8d, eax
xor eax, eax
sub rax, r8
add rcx, rax
call decode_bytes
loc_37013:
mov rdi, [rbp+var_20]
mov eax, [rbp+var_24]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
loc_37033:
add rsp, 30h
pop rbp
retn
|
long long uf_endspace(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
unsigned int v4; // eax
int v5; // ecx
long long result; // rax
unsigned int bits; // [rsp+8h] [rbp-28h]
if ( a2[1] < *(_DWORD *)(a1 + 36) )
{
bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36));
}
else
{
v4 = *a2;
v5 = a2[1] - *(_DWORD *)(a1 + 36);
a2[1] = v5;
bits = mask[*(unsigned int *)(a1 + 36)] & (v4 >> v5);
}
if ( &a3[bits] <= a4 )
{
if ( &a3[bits] != a4 )
decode_bytes(a1, (long long)a2, a3, &a4[-bits]);
return memset(&a4[-bits], 32LL, bits);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
|
uf_endspace:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x24]
JC 0x00136fab
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x24]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x24]
MOV EDX,ECX
LEA RCX,[0x3c82a0]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x00136fbe
LAB_00136fab:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x24]
CALL 0x00135ac0
MOV dword ptr [RBP + -0x28],EAX
LAB_00136fbe:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00136fe0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x00137033
LAB_00136fe0:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00137013
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV R8D,EAX
XOR EAX,EAX
SUB RAX,R8
ADD RCX,RAX
CALL 0x00136650
LAB_00137013:
MOV RDI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2c0
LAB_00137033:
ADD RSP,0x30
POP RBP
RET
|
void uf_endspace(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] < *(uint *)(param_1 + 0x24)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x24);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4);
}
if (param_4 < param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
if (param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 - local_30);
}
memset((void *)(param_4 - local_30),0x20,(ulong)local_30);
}
return;
}
|
|
57,812
|
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>::push_back(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
|
void push_back(basic_json&& val)
{
// push_back only works for null objects or arrays
if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
{
JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
}
// transform null object into an array
if (is_null())
{
m_data.m_type = value_t::array;
m_data.m_value = value_t::array;
assert_invariant();
}
// add element to array (move semantics)
const auto old_capacity = m_data.m_value.array->capacity();
m_data.m_value.array->push_back(std::move(val));
set_parent(m_data.m_value.array->back(), old_capacity);
// if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(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 %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
testl %eax, %eax
jne 0xc654a
movb $0x2, (%r14)
movl $0x18, %edi
callq 0x1b8d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x66666
jmp 0xc654f
cmpl $0x2, %eax
jne 0xc6563
movq 0x8(%r14), %rdi
movq %rbx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x6b228
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
movq %r14, %rdi
callq 0x6cbae
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38b75(%rip), %rsi # 0xff0fc
leaq 0x10(%rsp), %rdi
callq 0x9452d
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x134, %esi # imm = 0x134
movq %r14, %rcx
callq 0x6c956
xorl %ebp, %ebp
leaq 0x72996(%rip), %rsi # 0x138f48
leaq -0x5d7d5(%rip), %rdx # 0x68de4
movq %rbx, %rdi
callq 0x1bf90
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc65df
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1b8f0
testb %bpl, %bpl
jne 0xc65e9
jmp 0xc65f1
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b680
movq %r14, %rdi
callq 0x1c020
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
movzx eax, byte ptr [rdi]
test eax, eax
jnz short loc_C654A
mov byte ptr [r14], 2
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
mov [r14+8], rax
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)
jmp short loc_C654F
loc_C654A:
cmp eax, 2
jnz short loc_C6563
loc_C654F:
mov rdi, [r14+8]
mov rsi, rbx
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
loc_C6563:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUsePushB; "cannot use push_back() with "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 134h; 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
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C65DF
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C65DF:
test bpl, bpl
jnz short loc_C65E9
jmp short loc_C65F1
mov r14, rax
loc_C65E9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_C65F1:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
long long a1,
long long a2)
{
long long v2; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v5; // [rsp+8h] [rbp-40h] BYREF
_QWORD v6[2]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 )
{
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v6,
(long long)"cannot use push_back() with ",
&v5);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
308,
v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
else
{
*(_BYTE *)a1 = 2;
v2 = operator new(0x18uLL);
*(_OWORD *)v2 = 0LL;
*(_QWORD *)(v2 + 16) = 0LL;
*(_QWORD *)(a1 + 8) = v2;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
}
return std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(a1 + 8),
a2);
}
|
push_back:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JNZ 0x001c654a
MOV byte ptr [R14],0x2
MOV EDI,0x18
CALL 0x0011b8d0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [R14 + 0x8],RAX
MOV RDI,R14
MOV ESI,0x1
CALL 0x00166666
JMP 0x001c654f
LAB_001c654a:
CMP EAX,0x2
JNZ 0x001c6563
LAB_001c654f:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,RBX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x0016b228
LAB_001c6563:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
MOV RDI,R14
CALL 0x0016cbae
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001c6580:
LEA RSI,[0x1ff0fc]
LEA RDI,[RSP + 0x10]
CALL 0x0019452d
MOV BPL,0x1
LAB_001c6594:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x134
MOV RCX,R14
CALL 0x0016c956
XOR EBP,EBP
LEA RSI,[0x238f48]
LEA RDX,[0x168de4]
MOV RDI,RBX
CALL 0x0011bf90
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&&) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json *param_1)
{
int8 *puVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2;
puVar1 = (int8 *)operator_new(0x18);
*puVar1 = 0;
puVar1[1] = 0;
puVar1[2] = 0;
*(int8 **)(this + 8) = puVar1;
assert_invariant(SUB81(this,0));
}
else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 001c6580 to 001c6590 has its CatchHandler @ 001c65e6 */
detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"cannot use push_back() with ",&local_40);
/* try { // try from 001c6594 to 001c65c0 has its CatchHandler @ 001c65c1 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x134,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 8),param_1);
return;
}
|
|
57,813
|
ma_bitmap_free_full_pages
|
eloqsql/storage/maria/ma_bitmap.c
|
my_bool _ma_bitmap_free_full_pages(MARIA_HA *info, const uchar *extents,
uint count)
{
MARIA_FILE_BITMAP *bitmap= &info->s->bitmap;
my_bool res;
DBUG_ENTER("_ma_bitmap_free_full_pages");
for (; count--; extents+= ROW_EXTENT_SIZE)
{
pgcache_page_no_t page= uint5korr(extents);
uint page_count= (uint2korr(extents + ROW_EXTENT_PAGE_SIZE) &
~START_EXTENT_BIT);
if (!(page_count & TAIL_BIT))
{
if (page == 0 && page_count == 0)
continue; /* Not used extent */
if (pagecache_delete_pages(info->s->pagecache, &info->dfile, page,
page_count, PAGECACHE_LOCK_WRITE, 1))
DBUG_RETURN(1);
mysql_mutex_lock(&bitmap->bitmap_lock);
res= _ma_bitmap_reset_full_page_bits(info, bitmap, page, page_count);
mysql_mutex_unlock(&bitmap->bitmap_lock);
if (res)
DBUG_RETURN(1);
}
}
DBUG_RETURN(0);
}
|
O0
|
c
|
ma_bitmap_free_full_pages:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x1c(%rbp)
cmpl $0x0, %eax
je 0x609bb
movq -0x18(%rbp), %rdi
callq 0x609d0
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x5(%rax), %eax
andl $0xffffbfff, %eax # imm = 0xFFFFBFFF
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0x609a8
cmpq $0x0, -0x38(%rbp)
jne 0x60918
cmpl $0x0, -0x3c(%rbp)
jne 0x60918
jmp 0x609aa
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %ecx
movl $0x4, %r8d
movl $0x1, %r9d
callq 0x98470
cmpb $0x0, %al
je 0x60955
jmp 0x6094f
movb $0x1, -0x1(%rbp)
jmp 0x609c1
movq -0x28(%rbp), %rdi
addq $0x88, %rdi
leaq 0xf9f74(%rip), %rsi # 0x15a8db
movl $0xb31, %edx # imm = 0xB31
callq 0x5e610
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %ecx
callq 0x5fe10
movb %al, -0x29(%rbp)
movq -0x28(%rbp), %rdi
addq $0x88, %rdi
callq 0x5e8c0
cmpb $0x0, -0x29(%rbp)
je 0x609a6
jmp 0x609a0
movb $0x1, -0x1(%rbp)
jmp 0x609c1
jmp 0x609a8
jmp 0x609aa
movq -0x18(%rbp), %rax
addq $0x7, %rax
movq %rax, -0x18(%rbp)
jmp 0x608c4
jmp 0x609bd
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ma_bitmap_free_full_pages:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_10]
mov rax, [rax]
add rax, 0A10h
mov [rbp+var_28], rax
loc_608C4:
mov eax, [rbp+var_1C]
mov ecx, eax
add ecx, 0FFFFFFFFh
mov [rbp+var_1C], ecx
cmp eax, 0
jz loc_609BB
mov rdi, [rbp+var_18]
call uint5korr_1
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+5]
and eax, 0FFFFBFFFh
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
and eax, 8000h
cmp eax, 0
jnz loc_609A8
cmp [rbp+var_38], 0
jnz short loc_60918
cmp [rbp+var_3C], 0
jnz short loc_60918
jmp loc_609AA
loc_60918:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rdx, [rbp+var_38]
mov ecx, [rbp+var_3C]
mov r8d, 4
mov r9d, 1
call pagecache_delete_pages
cmp al, 0
jz short loc_60955
jmp short $+2
loc_6094F:
mov [rbp+var_1], 1
jmp short loc_609C1
loc_60955:
mov rdi, [rbp+var_28]
add rdi, 88h
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0B31h
call inline_mysql_mutex_lock_7
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
mov ecx, [rbp+var_3C]
call _ma_bitmap_reset_full_page_bits
mov [rbp+var_29], al
mov rdi, [rbp+var_28]
add rdi, 88h
call inline_mysql_mutex_unlock_7
cmp [rbp+var_29], 0
jz short loc_609A6
jmp short $+2
loc_609A0:
mov [rbp+var_1], 1
jmp short loc_609C1
loc_609A6:
jmp short $+2
loc_609A8:
jmp short $+2
loc_609AA:
mov rax, [rbp+var_18]
add rax, 7
mov [rbp+var_18], rax
jmp loc_608C4
loc_609BB:
jmp short $+2
loc_609BD:
mov [rbp+var_1], 0
loc_609C1:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
|
char ma_bitmap_free_full_pages(long long *a1, long long a2, int a3)
{
int v5; // [rsp+4h] [rbp-3Ch]
unsigned long long v6; // [rsp+8h] [rbp-38h]
char v7; // [rsp+17h] [rbp-29h]
long long v8; // [rsp+18h] [rbp-28h]
v8 = *a1 + 2576;
while ( a3-- )
{
v6 = uint5korr_1(a2);
v5 = *(_WORD *)(a2 + 5) & 0xBFFF;
if ( (*(_WORD *)(a2 + 5) & 0x8000) == 0 && (v6 || (*(_WORD *)(a2 + 5) & 0xBFFF) != 0) )
{
if ( (unsigned __int8)pagecache_delete_pages(
*(_QWORD *)(*a1 + 1536),
a1 + 142,
v6,
*(_WORD *)(a2 + 5) & 0xBFFF,
4LL,
1LL) )
return 1;
inline_mysql_mutex_lock_7(
v8 + 136,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0xB31u);
v7 = ma_bitmap_reset_full_page_bits(a1, v8, v6, v5);
inline_mysql_mutex_unlock_7(v8 + 136);
if ( v7 )
return 1;
}
a2 += 7LL;
}
return 0;
}
|
_ma_bitmap_free_full_pages:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x28],RAX
LAB_001608c4:
MOV EAX,dword ptr [RBP + -0x1c]
MOV ECX,EAX
ADD ECX,-0x1
MOV dword ptr [RBP + -0x1c],ECX
CMP EAX,0x0
JZ 0x001609bb
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001609d0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0x5]
AND EAX,0xffffbfff
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x001609a8
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00160918
CMP dword ptr [RBP + -0x3c],0x0
JNZ 0x00160918
JMP 0x001609aa
LAB_00160918:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x3c]
MOV R8D,0x4
MOV R9D,0x1
CALL 0x00198470
CMP AL,0x0
JZ 0x00160955
JMP 0x0016094f
LAB_0016094f:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001609c1
LAB_00160955:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x88
LEA RSI,[0x25a8db]
MOV EDX,0xb31
CALL 0x0015e610
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x3c]
CALL 0x0015fe10
MOV byte ptr [RBP + -0x29],AL
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x88
CALL 0x0015e8c0
CMP byte ptr [RBP + -0x29],0x0
JZ 0x001609a6
JMP 0x001609a0
LAB_001609a0:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001609c1
LAB_001609a6:
JMP 0x001609a8
LAB_001609a8:
JMP 0x001609aa
LAB_001609aa:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x7
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001608c4
LAB_001609bb:
JMP 0x001609bd
LAB_001609bd:
MOV byte ptr [RBP + -0x1],0x0
LAB_001609c1:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1 _ma_bitmap_free_full_pages(long *param_1,long param_2,int param_3)
{
ushort uVar1;
long lVar2;
char cVar3;
long lVar4;
int local_24;
long local_20;
lVar2 = *param_1;
local_24 = param_3;
local_20 = param_2;
do {
if (local_24 == 0) {
return 0;
}
lVar4 = uint5korr(local_20);
uVar1 = *(ushort *)(local_20 + 5);
if (((uVar1 & 0x8000) == 0) && ((lVar4 != 0 || ((uVar1 & 0xbfff) != 0)))) {
cVar3 = pagecache_delete_pages
(*(int8 *)(*param_1 + 0x600),param_1 + 0x8e,lVar4,uVar1 & 0xbfff,4,1);
if (cVar3 != '\0') {
return 1;
}
inline_mysql_mutex_lock
(lVar2 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0xb31);
cVar3 = _ma_bitmap_reset_full_page_bits(param_1,lVar2 + 0xa10,lVar4,uVar1 & 0xbfff);
inline_mysql_mutex_unlock(lVar2 + 0xa98);
if (cVar3 != '\0') {
return 1;
}
}
local_20 = local_20 + 7;
local_24 = local_24 + -1;
} while( true );
}
|
|
57,814
|
plutovg_canvas_save
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c
|
void plutovg_canvas_save(plutovg_canvas_t* canvas)
{
plutovg_state_t* new_state = canvas->freed_state;
if(new_state == NULL)
new_state = plutovg_state_create();
else
canvas->freed_state = new_state->next;
plutovg_state_copy(new_state, canvas->state);
new_state->next = canvas->state;
canvas->state = new_state;
}
|
O0
|
c
|
plutovg_canvas_save:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x5482a
callq 0x544a0
movq %rax, -0x10(%rbp)
jmp 0x5483d
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x54880
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
plutovg_canvas_save:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+20h]
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jnz short loc_5482A
call plutovg_state_create
mov [rbp+var_10], rax
jmp short loc_5483D
loc_5482A:
mov rax, [rbp+var_10]
mov rcx, [rax+98h]
mov rax, [rbp+var_8]
mov [rax+20h], rcx
loc_5483D:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rsi, [rax+18h]
call plutovg_state_copy
mov rax, [rbp+var_8]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax+98h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+18h], rcx
add rsp, 10h
pop rbp
retn
|
long long plutovg_canvas_save(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 32);
if ( v2 )
*(_QWORD *)(a1 + 32) = *(_QWORD *)(v2 + 152);
else
v2 = plutovg_state_create();
plutovg_state_copy(v2, *(_QWORD *)(a1 + 24));
*(_QWORD *)(v2 + 152) = *(_QWORD *)(a1 + 24);
result = a1;
*(_QWORD *)(a1 + 24) = v2;
return result;
}
|
plutovg_canvas_save:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0015482a
CALL 0x001544a0
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0015483d
LAB_0015482a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x98]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
LAB_0015483d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x18]
CALL 0x00154880
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x18],RCX
ADD RSP,0x10
POP RBP
RET
|
void plutovg_canvas_save(long param_1)
{
int8 local_18;
local_18 = *(long *)(param_1 + 0x20);
if (local_18 == 0) {
local_18 = plutovg_state_create();
}
else {
*(int8 *)(param_1 + 0x20) = *(int8 *)(local_18 + 0x98);
}
plutovg_state_copy(local_18,*(int8 *)(param_1 + 0x18));
*(int8 *)(local_18 + 0x98) = *(int8 *)(param_1 + 0x18);
*(long *)(param_1 + 0x18) = local_18;
return;
}
|
|
57,815
|
plutovg_canvas_save
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c
|
void plutovg_canvas_save(plutovg_canvas_t* canvas)
{
plutovg_state_t* new_state = canvas->freed_state;
if(new_state == NULL)
new_state = plutovg_state_create();
else
canvas->freed_state = new_state->next;
plutovg_state_copy(new_state, canvas->state);
new_state->next = canvas->state;
canvas->state = new_state;
}
|
O1
|
c
|
plutovg_canvas_save:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r14
testq %r14, %r14
je 0x23683
movq 0x98(%r14), %rax
movq %rax, 0x20(%rbx)
jmp 0x2368b
callq 0x2351b
movq %rax, %r14
movq 0x18(%rbx), %r15
movq (%r15), %rdi
callq 0x2a173
movq %rax, (%r14)
movq 0x8(%r15), %rdi
callq 0x24ea8
movq %rax, 0x8(%r14)
movups 0x10(%r15), %xmm0
movups %xmm0, 0x10(%r14)
movq 0x30(%r15), %rax
movq %rax, 0x30(%r14)
movups 0x20(%r15), %xmm0
movups %xmm0, 0x20(%r14)
movups 0x38(%r15), %xmm0
movups %xmm0, 0x38(%r14)
movss 0x48(%r15), %xmm0
movss %xmm0, 0x48(%r14)
movl $0x0, 0x58(%r14)
cmpq $0x0, 0x50(%r15)
je 0x2374b
movl 0x58(%r15), %eax
testl %eax, %eax
jle 0x2374b
movl 0x5c(%r14), %edx
cmpl %edx, %eax
jle 0x23726
testl %edx, %edx
movl $0x8, %ecx
cmovnel %edx, %ecx
movl %ecx, %r12d
leal (%r12,%r12), %ecx
cmpl %eax, %r12d
jl 0x23702
movq 0x50(%r14), %rdi
movl %r12d, %esi
shlq $0x2, %rsi
callq 0xa540
movq %rax, 0x50(%r14)
movl %r12d, 0x5c(%r14)
movslq 0x58(%r14), %rdi
shlq $0x2, %rdi
addq 0x50(%r14), %rdi
movq 0x50(%r15), %rsi
movslq 0x58(%r15), %rdx
shlq $0x2, %rdx
callq 0xa2a0
movl 0x58(%r15), %eax
addl %eax, 0x58(%r14)
leaq 0x60(%r14), %rdi
leaq 0x60(%r15), %rsi
callq 0x2cd37
movl 0x80(%r15), %eax
movl %eax, 0x80(%r14)
movl 0x84(%r15), %eax
movl %eax, 0x84(%r14)
movss 0x88(%r15), %xmm0
movss %xmm0, 0x88(%r14)
movss 0x8c(%r15), %xmm0
movss %xmm0, 0x8c(%r14)
movb 0x90(%r15), %al
movb %al, 0x90(%r14)
movq 0x18(%rbx), %rax
movq %rax, 0x98(%r14)
movq %r14, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
plutovg_canvas_save:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov r14, [rdi+20h]
test r14, r14
jz short loc_23683
mov rax, [r14+98h]
mov [rbx+20h], rax
jmp short loc_2368B
loc_23683:
call plutovg_state_create
mov r14, rax
loc_2368B:
mov r15, [rbx+18h]
mov rdi, [r15]
call plutovg_paint_reference
mov [r14], rax
mov rdi, [r15+8]
call plutovg_font_face_reference
mov [r14+8], rax
movups xmm0, xmmword ptr [r15+10h]
movups xmmword ptr [r14+10h], xmm0
mov rax, [r15+30h]
mov [r14+30h], rax
movups xmm0, xmmword ptr [r15+20h]
movups xmmword ptr [r14+20h], xmm0
movups xmm0, xmmword ptr [r15+38h]
movups xmmword ptr [r14+38h], xmm0
movss xmm0, dword ptr [r15+48h]
movss dword ptr [r14+48h], xmm0
mov dword ptr [r14+58h], 0
cmp qword ptr [r15+50h], 0
jz short loc_2374B
mov eax, [r15+58h]
test eax, eax
jle short loc_2374B
mov edx, [r14+5Ch]
cmp eax, edx
jle short loc_23726
test edx, edx
mov ecx, 8
cmovnz ecx, edx
loc_23702:
mov r12d, ecx
lea ecx, [r12+r12]
cmp r12d, eax
jl short loc_23702
mov rdi, [r14+50h]
mov esi, r12d
shl rsi, 2
call _realloc
mov [r14+50h], rax
mov [r14+5Ch], r12d
loc_23726:
movsxd rdi, dword ptr [r14+58h]
shl rdi, 2
add rdi, [r14+50h]
mov rsi, [r15+50h]
movsxd rdx, dword ptr [r15+58h]
shl rdx, 2
call _memcpy
mov eax, [r15+58h]
add [r14+58h], eax
loc_2374B:
lea rdi, [r14+60h]
lea rsi, [r15+60h]
call plutovg_span_buffer_copy
mov eax, [r15+80h]
mov [r14+80h], eax
mov eax, [r15+84h]
mov [r14+84h], eax
movss xmm0, dword ptr [r15+88h]
movss dword ptr [r14+88h], xmm0
movss xmm0, dword ptr [r15+8Ch]
movss dword ptr [r14+8Ch], xmm0
mov al, [r15+90h]
mov [r14+90h], al
mov rax, [rbx+18h]
mov [r14+98h], rax
mov [rbx+18h], r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long plutovg_canvas_save(long long a1)
{
long long v1; // r14
long long v2; // r15
int v3; // eax
long long v4; // rdx
long long v5; // rcx
int v6; // r12d
long long result; // rax
v1 = *(_QWORD *)(a1 + 32);
if ( v1 )
*(_QWORD *)(a1 + 32) = *(_QWORD *)(v1 + 152);
else
v1 = plutovg_state_create();
v2 = *(_QWORD *)(a1 + 24);
*(_QWORD *)v1 = plutovg_paint_reference(*(_QWORD *)v2);
*(_QWORD *)(v1 + 8) = plutovg_font_face_reference(*(_QWORD *)(v2 + 8));
*(_OWORD *)(v1 + 16) = *(_OWORD *)(v2 + 16);
*(_QWORD *)(v1 + 48) = *(_QWORD *)(v2 + 48);
*(_OWORD *)(v1 + 32) = *(_OWORD *)(v2 + 32);
*(_OWORD *)(v1 + 56) = *(_OWORD *)(v2 + 56);
*(_DWORD *)(v1 + 72) = *(_DWORD *)(v2 + 72);
*(_DWORD *)(v1 + 88) = 0;
if ( *(_QWORD *)(v2 + 80) )
{
v3 = *(_DWORD *)(v2 + 88);
if ( v3 > 0 )
{
v4 = *(unsigned int *)(v1 + 92);
if ( v3 > (int)v4 )
{
LODWORD(v5) = 8;
if ( (_DWORD)v4 )
LODWORD(v5) = *(_DWORD *)(v1 + 92);
do
{
v6 = v5;
v5 = (unsigned int)(2 * v5);
}
while ( v6 < v3 );
*(_QWORD *)(v1 + 80) = realloc(*(_QWORD *)(v1 + 80), 4LL * (unsigned int)v6, v4, v5);
*(_DWORD *)(v1 + 92) = v6;
}
memcpy(*(_QWORD *)(v1 + 80) + 4LL * *(int *)(v1 + 88), *(_QWORD *)(v2 + 80), 4LL * *(int *)(v2 + 88));
*(_DWORD *)(v1 + 88) += *(_DWORD *)(v2 + 88);
}
}
plutovg_span_buffer_copy(v1 + 96, v2 + 96);
*(_DWORD *)(v1 + 128) = *(_DWORD *)(v2 + 128);
*(_DWORD *)(v1 + 132) = *(_DWORD *)(v2 + 132);
*(_DWORD *)(v1 + 136) = *(_DWORD *)(v2 + 136);
*(_DWORD *)(v1 + 140) = *(_DWORD *)(v2 + 140);
*(_BYTE *)(v1 + 144) = *(_BYTE *)(v2 + 144);
result = *(_QWORD *)(a1 + 24);
*(_QWORD *)(v1 + 152) = result;
*(_QWORD *)(a1 + 24) = v1;
return result;
}
|
plutovg_canvas_save:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x20]
TEST R14,R14
JZ 0x00123683
MOV RAX,qword ptr [R14 + 0x98]
MOV qword ptr [RBX + 0x20],RAX
JMP 0x0012368b
LAB_00123683:
CALL 0x0012351b
MOV R14,RAX
LAB_0012368b:
MOV R15,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [R15]
CALL 0x0012a173
MOV qword ptr [R14],RAX
MOV RDI,qword ptr [R15 + 0x8]
CALL 0x00124ea8
MOV qword ptr [R14 + 0x8],RAX
MOVUPS XMM0,xmmword ptr [R15 + 0x10]
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV RAX,qword ptr [R15 + 0x30]
MOV qword ptr [R14 + 0x30],RAX
MOVUPS XMM0,xmmword ptr [R15 + 0x20]
MOVUPS xmmword ptr [R14 + 0x20],XMM0
MOVUPS XMM0,xmmword ptr [R15 + 0x38]
MOVUPS xmmword ptr [R14 + 0x38],XMM0
MOVSS XMM0,dword ptr [R15 + 0x48]
MOVSS dword ptr [R14 + 0x48],XMM0
MOV dword ptr [R14 + 0x58],0x0
CMP qword ptr [R15 + 0x50],0x0
JZ 0x0012374b
MOV EAX,dword ptr [R15 + 0x58]
TEST EAX,EAX
JLE 0x0012374b
MOV EDX,dword ptr [R14 + 0x5c]
CMP EAX,EDX
JLE 0x00123726
TEST EDX,EDX
MOV ECX,0x8
CMOVNZ ECX,EDX
LAB_00123702:
MOV R12D,ECX
LEA ECX,[R12 + R12*0x1]
CMP R12D,EAX
JL 0x00123702
MOV RDI,qword ptr [R14 + 0x50]
MOV ESI,R12D
SHL RSI,0x2
CALL 0x0010a540
MOV qword ptr [R14 + 0x50],RAX
MOV dword ptr [R14 + 0x5c],R12D
LAB_00123726:
MOVSXD RDI,dword ptr [R14 + 0x58]
SHL RDI,0x2
ADD RDI,qword ptr [R14 + 0x50]
MOV RSI,qword ptr [R15 + 0x50]
MOVSXD RDX,dword ptr [R15 + 0x58]
SHL RDX,0x2
CALL 0x0010a2a0
MOV EAX,dword ptr [R15 + 0x58]
ADD dword ptr [R14 + 0x58],EAX
LAB_0012374b:
LEA RDI,[R14 + 0x60]
LEA RSI,[R15 + 0x60]
CALL 0x0012cd37
MOV EAX,dword ptr [R15 + 0x80]
MOV dword ptr [R14 + 0x80],EAX
MOV EAX,dword ptr [R15 + 0x84]
MOV dword ptr [R14 + 0x84],EAX
MOVSS XMM0,dword ptr [R15 + 0x88]
MOVSS dword ptr [R14 + 0x88],XMM0
MOVSS XMM0,dword ptr [R15 + 0x8c]
MOVSS dword ptr [R14 + 0x8c],XMM0
MOV AL,byte ptr [R15 + 0x90]
MOV byte ptr [R14 + 0x90],AL
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [R14 + 0x98],RAX
MOV qword ptr [RBX + 0x18],R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void plutovg_canvas_save(long param_1)
{
int iVar1;
int8 *puVar2;
uint uVar3;
int8 *puVar4;
int8 uVar5;
void *pvVar6;
uint uVar7;
puVar4 = *(int8 **)(param_1 + 0x20);
if (puVar4 == (int8 *)0x0) {
puVar4 = (int8 *)plutovg_state_create();
}
else {
*(int8 *)(param_1 + 0x20) = puVar4[0x13];
}
puVar2 = *(int8 **)(param_1 + 0x18);
uVar5 = plutovg_paint_reference(*puVar2);
*puVar4 = uVar5;
uVar5 = plutovg_font_face_reference(puVar2[1]);
puVar4[1] = uVar5;
uVar5 = puVar2[3];
puVar4[2] = puVar2[2];
puVar4[3] = uVar5;
puVar4[6] = puVar2[6];
uVar5 = puVar2[5];
puVar4[4] = puVar2[4];
puVar4[5] = uVar5;
uVar5 = puVar2[8];
puVar4[7] = puVar2[7];
puVar4[8] = uVar5;
*(int4 *)(puVar4 + 9) = *(int4 *)(puVar2 + 9);
*(int4 *)(puVar4 + 0xb) = 0;
if ((puVar2[10] != 0) && (iVar1 = *(int *)(puVar2 + 0xb), 0 < iVar1)) {
uVar7 = *(uint *)((long)puVar4 + 0x5c);
if ((int)uVar7 < iVar1) {
uVar3 = 8;
if (uVar7 != 0) {
uVar3 = uVar7;
}
do {
uVar7 = uVar3;
uVar3 = uVar7 * 2;
} while ((int)uVar7 < iVar1);
pvVar6 = realloc((void *)puVar4[10],(ulong)uVar7 << 2);
puVar4[10] = pvVar6;
*(uint *)((long)puVar4 + 0x5c) = uVar7;
}
memcpy((void *)((long)*(int *)(puVar4 + 0xb) * 4 + puVar4[10]),(void *)puVar2[10],
(long)*(int *)(puVar2 + 0xb) << 2);
*(int *)(puVar4 + 0xb) = *(int *)(puVar4 + 0xb) + *(int *)(puVar2 + 0xb);
}
plutovg_span_buffer_copy(puVar4 + 0xc,puVar2 + 0xc);
*(int4 *)(puVar4 + 0x10) = *(int4 *)(puVar2 + 0x10);
*(int4 *)((long)puVar4 + 0x84) = *(int4 *)((long)puVar2 + 0x84);
*(int4 *)(puVar4 + 0x11) = *(int4 *)(puVar2 + 0x11);
*(int4 *)((long)puVar4 + 0x8c) = *(int4 *)((long)puVar2 + 0x8c);
*(int1 *)(puVar4 + 0x12) = *(int1 *)(puVar2 + 0x12);
puVar4[0x13] = *(int8 *)(param_1 + 0x18);
*(int8 **)(param_1 + 0x18) = puVar4;
return;
}
|
|
57,816
|
uf_varchar1
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_varchar1(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]= 0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
*to= (uchar) length;
decode_bytes(rec,bit_buff,to+1,to+1+length);
}
}
|
O0
|
c
|
uf_varchar1:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc2c07
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc2c2b
jmp 0xc2c37
movq -0x10(%rbp), %rdi
callq 0xc12f0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc2c37
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0xc2cc3
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xc2c7a
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x20a7de(%rip), %rcx # 0x2cd450
andl (%rcx,%rdx,4), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc2c8d
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xbfaa0
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, %eax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0x1, %rdx
movq -0x18(%rbp), %rcx
addq $0x1, %rcx
addq -0x28(%rbp), %rcx
callq 0xc1a00
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
uf_varchar1_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C2C07
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C2C2B
jmp short loc_C2C37
loc_C2C07:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_C2C37
loc_C2C2B:
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
jmp loc_C2CC3
loc_C2C37:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_C2C7A
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_2C], eax
jmp short loc_C2C8D
loc_C2C7A:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_2C], eax
loc_C2C8D:
mov eax, [rbp+var_2C]
mov eax, eax
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov cl, al
mov rax, [rbp+var_18]
mov [rax], cl
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
add rdx, 1
mov rcx, [rbp+var_18]
add rcx, 1
add rcx, [rbp+var_28]
call decode_bytes_0
loc_C2CC3:
add rsp, 30h
pop rbp
retn
|
long long uf_varchar1_0(long long a1, int *a2, _BYTE *a3)
{
int v3; // eax
int v4; // ecx
long long result; // rax
unsigned int v6; // eax
int v7; // ecx
int bits_0; // [rsp+4h] [rbp-2Ch]
if ( a2[1] )
{
v3 = *a2;
v4 = a2[1] - 1;
a2[1] = v4;
if ( ((1 << v4) & v3) == 0 )
goto LABEL_6;
LABEL_5:
result = (long long)a3;
*a3 = 0;
return result;
}
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 < 0 )
goto LABEL_5;
LABEL_6:
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v6 = *a2;
v7 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v7;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v6 >> v7);
}
*a3 = bits_0;
return decode_bytes_0(a1, (long long)a2, a3 + 1, &a3[bits_0 + 1]);
}
|
uf_varchar1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c2c07
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c2c2b
JMP 0x001c2c37
LAB_001c2c07:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c12f0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c2c37
LAB_001c2c2b:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
JMP 0x001c2cc3
LAB_001c2c37:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001c2c7a
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x1c]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x1c]
MOV EDX,ECX
LEA RCX,[0x3cd450]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001c2c8d
LAB_001c2c7a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001bfaa0
MOV dword ptr [RBP + -0x2c],EAX
LAB_001c2c8d:
MOV EAX,dword ptr [RBP + -0x2c]
MOV EAX,EAX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,0x1
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x1
ADD RCX,qword ptr [RBP + -0x28]
CALL 0x001c1a00
LAB_001c2cc3:
ADD RSP,0x30
POP RBP
RET
|
void uf_varchar1(long param_1,uint *param_2,int1 *param_3)
{
uint uVar1;
uint local_34;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] < *(uint *)(param_1 + 0x1c)) {
local_34 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x1c);
param_2[1] = uVar1;
local_34 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4);
}
*param_3 = (char)local_34;
decode_bytes(param_1,param_2,param_3 + 1,param_3 + (ulong)local_34 + 1);
}
else {
*param_3 = 0;
}
return;
}
|
|
57,817
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))())
|
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
|
void Instance::init(VkInstance instance_, const VkApplicationInfo *pApplicationInfo, PFN_vkGetInstanceProcAddr gpa_)
{
if (pApplicationInfo)
{
if (pApplicationInfo->pApplicationName)
applicationName = pApplicationInfo->pApplicationName;
if (pApplicationInfo->pEngineName)
engineName = pApplicationInfo->pEngineName;
}
instance = instance_;
gpa = gpa_;
layerInitInstanceDispatchTable(instance, &table, gpa);
const char *env = getenv("PYROVEIL_CONFIG");
if (!env)
env = "pyroveil.json";
struct FileDeleter { void operator()(FILE *file) { if (file) fclose(file); } };
std::unique_ptr<FILE, FileDeleter> file(fopen(env, "rb"));
if (file)
{
configPath = env;
fprintf(stderr, "pyroveil: Found config in %s!\n", env);
fseek(file.get(), 0, SEEK_END);
size_t len = ftell(file.get());
rewind(file.get());
std::string buf;
buf.resize(len);
if (fread(&buf[0], 1, len, file.get()) != len)
{
fprintf(stderr, "pyroveil: Failed to read config.\n");
return;
}
rapidjson::Document doc;
rapidjson::ParseResult res = doc.Parse(buf);
if (!res)
{
fprintf(stderr, "pyroveil: JSON parse failed: %d\n", res.Code());
return;
}
parseConfig(doc);
}
else
{
fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", env);
}
}
|
O0
|
cpp
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))()):
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x184eb5
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x184e90
movq -0xe8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
addq $0x38, %rdi
callq 0x16cc40
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x184eb3
movq -0xe8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
addq $0x58, %rdi
callq 0x16cc40
jmp 0x184eb5
movq -0xe8(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x30(%rax)
movq (%rax), %rdi
movq %rax, %rsi
addq $0x8, %rsi
movq 0x30(%rax), %rdx
callq 0x28e9a0
leaq 0x765464(%rip), %rdi # 0x8ea349
callq 0x174610
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x184f00
leaq 0x76545d(%rip), %rax # 0x8ea359
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
leaq 0x76545c(%rip), %rsi # 0x8ea367
callq 0x17e550
movq %rax, %rsi
leaq -0x30(%rbp), %rdi
callq 0x185200
leaq -0x30(%rbp), %rdi
callq 0x185230
testb $0x1, %al
jne 0x184f2e
jmp 0x1851b8
movq -0xe8(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq $0xd0, %rdi
callq 0x16cc40
jmp 0x184f47
movq 0xb5b002(%rip), %rax # 0xcdff50
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
leaq 0x76540e(%rip), %rsi # 0x8ea36a
xorl %eax, %eax
movl %eax, -0xec(%rbp)
callq 0x1685c0
leaq -0x30(%rbp), %rdi
callq 0x185260
movq %rax, %rdi
movl -0xec(%rbp), %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x17dd80
jmp 0x184f89
leaq -0x30(%rbp), %rdi
callq 0x185260
movq %rax, %rdi
callq 0x169e40
movq %rax, -0xf8(%rbp)
jmp 0x184fa3
movq -0xf8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x185260
movq %rax, %rdi
callq 0x17eb30
jmp 0x184fc1
leaq -0x68(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x16bc30
movq -0x100(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x16cdb0
jmp 0x184fe3
xorl %eax, %eax
movl %eax, %esi
leaq -0x68(%rbp), %rdi
callq 0x17d4b0
movq %rax, -0x108(%rbp)
jmp 0x184ff9
movq -0x48(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x185260
movq -0x108(%rbp), %rdi
movq -0x118(%rbp), %rdx
movq %rax, %rcx
movl $0x1, %esi
callq 0x16f350
movq %rax, -0x110(%rbp)
jmp 0x185031
movq -0x110(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x185084
movq 0xb5af0b(%rip), %rax # 0xcdff50
movq (%rax), %rdi
leaq 0x76533a(%rip), %rsi # 0x8ea389
movb $0x0, %al
callq 0x1685c0
movl $0x1, -0x6c(%rbp)
jmp 0x185199
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1851ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1851ad
xorl %eax, %eax
movl %eax, %ecx
leaq -0xd0(%rbp), %rdi
movl $0x400, %edx # imm = 0x400
movq %rcx, %rsi
callq 0x1892c0
jmp 0x18509e
leaq -0xd0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1893c0
movq %rax, -0x120(%rbp)
jmp 0x1850b7
movq -0x120(%rbp), %rdi
callq 0x1893f0
movq %rdx, -0x130(%rbp)
movl %eax, -0x124(%rbp)
jmp 0x1850d2
movq -0x130(%rbp), %rax
movl -0x124(%rbp), %ecx
movl %ecx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x189410
movq %rax, -0x138(%rbp)
jmp 0x185101
movq -0x138(%rbp), %rax
cmpq $0x0, %rax
jne 0x185171
movq 0xb5ae3b(%rip), %rax # 0xcdff50
movq (%rax), %rax
movq %rax, -0x148(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x189440
movl %eax, -0x13c(%rbp)
jmp 0x185133
movl -0x13c(%rbp), %edx
movq -0x148(%rbp), %rdi
leaq 0x765264(%rip), %rsi # 0x8ea3ab
movb $0x0, %al
callq 0x1685c0
movl $0x1, -0x6c(%rbp)
jmp 0x18518d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x189450
jmp 0x1851ad
movq -0xe8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x184450
jmp 0x185186
movl $0x0, -0x6c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x189450
leaq -0x68(%rbp), %rdi
callq 0x17f4c0
movl -0x6c(%rbp), %eax
testl %eax, %eax
jne 0x1851db
jmp 0x1851ab
jmp 0x1851d4
leaq -0x68(%rbp), %rdi
callq 0x17f4c0
jmp 0x1851ed
movq 0xb5ad91(%rip), %rax # 0xcdff50
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
leaq 0x7651ff(%rip), %rsi # 0x8ea3cc
movb $0x0, %al
callq 0x1685c0
movl $0x0, -0x6c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x185290
addq $0x150, %rsp # imm = 0x150
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x185290
movq -0x38(%rbp), %rdi
callq 0x171c30
nop
|
_ZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES1_PKcE:
push rbp
mov rbp, rsp
sub rsp, 150h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_8]
mov [rbp+var_E8], rax
cmp [rbp+var_18], 0
jz short loc_184EB5
mov rax, [rbp+var_18]
cmp qword ptr [rax+10h], 0
jz short loc_184E90
mov rdi, [rbp+var_E8]
mov rax, [rbp+var_18]
mov rsi, [rax+10h]
add rdi, 38h ; '8'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
loc_184E90:
mov rax, [rbp+var_18]
cmp qword ptr [rax+20h], 0
jz short loc_184EB3
mov rdi, [rbp+var_E8]
mov rax, [rbp+var_18]
mov rsi, [rax+20h]
add rdi, 58h ; 'X'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
loc_184EB3:
jmp short $+2
loc_184EB5:
mov rax, [rbp+var_E8]
mov rcx, [rbp+var_10]
mov [rax], rcx
mov rcx, [rbp+var_20]
mov [rax+30h], rcx
mov rdi, [rax]
mov rsi, rax
add rsi, 8
mov rdx, [rax+30h]
call _Z30layerInitInstanceDispatchTableP12VkInstance_TP28VkLayerInstanceDispatchTablePFPFvvES0_PKcE; layerInitInstanceDispatchTable(VkInstance_T *,VkLayerInstanceDispatchTable *,void (*)(void) (*)(VkInstance_T *,char const*))
lea rdi, aPyroveilConfig_0; "PYROVEIL_CONFIG"
call _getenv
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jnz short loc_184F00
lea rax, aPyroveilJson; "pyroveil.json"
mov [rbp+var_28], rax
loc_184F00:
mov rdi, [rbp+var_28]
lea rsi, aRb; "rb"
call _fopen
mov rsi, rax
lea rdi, [rbp+var_30]
call _ZNSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterEC2ISD_vEEPS0_; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::unique_ptr<Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter,void>(_IO_FILE*)
lea rdi, [rbp+var_30]
call _ZNKSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterEcvbEv; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::operator bool(void)
test al, 1
jnz short loc_184F2E
jmp loc_1851B8
loc_184F2E:
mov rdi, [rbp+var_E8]
mov rsi, [rbp+var_28]
add rdi, 0D0h
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
jmp short $+2
loc_184F47:
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rdx, [rbp+var_28]
lea rsi, aPyroveilFoundC; "pyroveil: Found config in %s!\n"
xor eax, eax
mov [rbp+var_EC], eax
call _fprintf
lea rdi, [rbp+var_30]
call _ZNKSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterE3getEv; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(void)
mov rdi, rax
mov eax, [rbp+var_EC]
mov esi, eax
mov edx, 2
call _fseek
jmp short $+2
loc_184F89:
lea rdi, [rbp+var_30]
call _ZNKSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterE3getEv; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(void)
mov rdi, rax
call _ftell
mov [rbp+var_F8], rax
jmp short $+2
loc_184FA3:
mov rax, [rbp+var_F8]
mov [rbp+var_48], rax
lea rdi, [rbp+var_30]
call _ZNKSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterE3getEv; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(void)
mov rdi, rax
call _rewind
jmp short $+2
loc_184FC1:
lea rdi, [rbp+var_68]
mov [rbp+var_100], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rbp+var_100]
mov rsi, [rbp+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
jmp short $+2
loc_184FE3:
xor eax, eax
mov esi, eax
lea rdi, [rbp+var_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong)
mov [rbp+var_108], rax
jmp short $+2
loc_184FF9:
mov rax, [rbp+var_48]
mov [rbp+var_118], rax
lea rdi, [rbp+var_30]
call _ZNKSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterE3getEv; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(void)
mov rdi, [rbp+var_108]
mov rdx, [rbp+var_118]
mov rcx, rax
mov esi, 1
call _fread
mov [rbp+var_110], rax
jmp short $+2
loc_185031:
mov rax, [rbp+var_110]
cmp rax, [rbp+var_48]
jz short loc_185084
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aPyroveilFailed; "pyroveil: Failed to read config.\n"
mov al, 0
call _fprintf
mov [rbp+var_6C], 1
jmp loc_185199
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
jmp loc_1851ED
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
jmp loc_1851AD
loc_185084:
xor eax, eax
mov ecx, eax
lea rdi, [rbp+var_D0]
mov edx, 400h
mov rsi, rcx
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_EC2EPS5_mPS4_; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>*,ulong,rapidjson::CrtAllocator*)
jmp short $+2
loc_18509E:
lea rdi, [rbp+var_D0]
lea rsi, [rbp+var_68]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_E5ParseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::Parse(std::string const&)
mov [rbp+var_120], rax
jmp short $+2
loc_1850B7:
mov rdi, [rbp+var_120]
call _ZNK9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_EcvNS_11ParseResultEEv; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::operator rapidjson::ParseResult(void)
mov [rbp+var_130], rdx
mov [rbp+var_124], eax
jmp short $+2
loc_1850D2:
mov rax, [rbp+var_130]
mov ecx, [rbp+var_124]
mov [rbp+var_E0], ecx
mov [rbp+var_D8], rax
lea rdi, [rbp+var_E0]
call _ZNK9rapidjson11ParseResultcvMS0_KFbvEEv; rapidjson::ParseResult::operator bool (rapidjson::ParseResult::*)(void)(void)
mov [rbp+var_138], rax
jmp short $+2
loc_185101:
mov rax, [rbp+var_138]
cmp rax, 0
jnz short loc_185171
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_148], rax
lea rdi, [rbp+var_E0]; this
call _ZNK9rapidjson11ParseResult4CodeEv; rapidjson::ParseResult::Code(void)
mov [rbp+var_13C], eax
jmp short $+2
loc_185133:
mov edx, [rbp+var_13C]
mov rdi, [rbp+var_148]
lea rsi, aPyroveilJsonPa; "pyroveil: JSON parse failed: %d\n"
mov al, 0
call _fprintf
mov [rbp+var_6C], 1
jmp short loc_18518D
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
lea rdi, [rbp+var_D0]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
jmp short loc_1851AD
loc_185171:
mov rdi, [rbp+var_E8]
lea rsi, [rbp+var_D0]
call _ZN8Instance11parseConfigERKN9rapidjson15GenericDocumentINS0_4UTF8IcEENS0_19MemoryPoolAllocatorINS0_12CrtAllocatorEEES5_EE; Instance::parseConfig(rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> const&)
jmp short $+2
loc_185186:
mov [rbp+var_6C], 0
loc_18518D:
lea rdi, [rbp+var_D0]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
loc_185199:
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov eax, [rbp+var_6C]
test eax, eax
jnz short loc_1851DB
jmp short $+2
loc_1851AB:
jmp short loc_1851D4
loc_1851AD:
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1851ED
loc_1851B8:
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rdx, [rbp+var_28]
lea rsi, aPyroveilCouldN; "pyroveil: Could not find config in %s. "...
mov al, 0
call _fprintf
loc_1851D4:
mov [rbp+var_6C], 0
loc_1851DB:
lea rdi, [rbp+var_30]
call _ZNSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterED2Ev; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::~unique_ptr()
add rsp, 150h
pop rbp
retn
loc_1851ED:
lea rdi, [rbp+var_30]
call _ZNSt10unique_ptrI8_IO_FILEZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES3_PKcEE11FileDeleterED2Ev; std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::~unique_ptr()
mov rdi, [rbp+var_38]
call __Unwind_Resume
|
long long Instance::init(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rdx
long long v12; // [rsp+8h] [rbp-148h]
int v13; // [rsp+14h] [rbp-13Ch]
long long v14; // [rsp+30h] [rbp-120h]
long long v15; // [rsp+38h] [rbp-118h]
long long v16; // [rsp+48h] [rbp-108h]
int v17; // [rsp+70h] [rbp-E0h] BYREF
long long v18; // [rsp+78h] [rbp-D8h]
_BYTE v19[100]; // [rsp+80h] [rbp-D0h] BYREF
int v20; // [rsp+E4h] [rbp-6Ch]
_BYTE v21[32]; // [rsp+E8h] [rbp-68h] BYREF
long long v22; // [rsp+108h] [rbp-48h]
_BYTE v23[8]; // [rsp+120h] [rbp-30h] BYREF
const char *v24; // [rsp+128h] [rbp-28h]
long long v25; // [rsp+130h] [rbp-20h]
long long v26; // [rsp+138h] [rbp-18h]
long long v27; // [rsp+140h] [rbp-10h]
_QWORD *v28; // [rsp+148h] [rbp-8h]
v28 = a1;
v27 = a2;
v26 = a3;
v25 = a4;
if ( a3 )
{
if ( *(_QWORD *)(v26 + 16) )
std::string::operator=(a1 + 7, *(_QWORD *)(v26 + 16));
if ( *(_QWORD *)(v26 + 32) )
std::string::operator=(a1 + 11, *(_QWORD *)(v26 + 32));
}
*a1 = v27;
a1[6] = v25;
layerInitInstanceDispatchTable(*a1, a1 + 1, a1[6]);
v24 = (const char *)getenv("PYROVEIL_CONFIG");
if ( !v24 )
v24 = "pyroveil.json";
v4 = fopen(v24, "rb");
std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::unique_ptr<Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter,void>(
v23,
v4);
if ( (std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::operator bool(v23) & 1) == 0 )
{
fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", v24);
LABEL_18:
v20 = 0;
return std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::~unique_ptr(v23);
}
std::string::operator=(a1 + 26, v24);
fprintf(stderr, "pyroveil: Found config in %s!\n", v24);
v5 = std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(v23);
fseek(v5, 0LL, 2LL);
v6 = std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(v23);
v22 = ftell(v6);
v7 = std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(v23);
rewind(v7);
std::string::basic_string();
std::string::resize(v21, v22);
v16 = std::string::operator[](v21, 0LL);
v15 = v22;
v8 = std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::get(v23);
v9 = fread(v16, 1LL, v15, v8);
if ( v9 == v22 )
{
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(
v19,
0LL,
1024LL);
v14 = rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::Parse(
v19,
v21);
v17 = rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::operator rapidjson::ParseResult(v14);
v18 = v10;
if ( rapidjson::ParseResult::operator bool (rapidjson::ParseResult::*)(void)const(&v17) )
{
Instance::parseConfig((long long)a1, (long long)v19);
v20 = 0;
}
else
{
v12 = stderr;
v13 = rapidjson::ParseResult::Code((rapidjson::ParseResult *)&v17);
fprintf(v12, "pyroveil: JSON parse failed: %d\n", v13);
v20 = 1;
}
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument(v19);
}
else
{
fprintf(stderr, "pyroveil: Failed to read config.\n");
v20 = 1;
}
std::string::~string(v21);
if ( !v20 )
goto LABEL_18;
return std::unique_ptr<_IO_FILE,Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*))::FileDeleter>::~unique_ptr(v23);
}
| |||
57,818
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))())
|
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
|
void Instance::init(VkInstance instance_, const VkApplicationInfo *pApplicationInfo, PFN_vkGetInstanceProcAddr gpa_)
{
if (pApplicationInfo)
{
if (pApplicationInfo->pApplicationName)
applicationName = pApplicationInfo->pApplicationName;
if (pApplicationInfo->pEngineName)
engineName = pApplicationInfo->pEngineName;
}
instance = instance_;
gpa = gpa_;
layerInitInstanceDispatchTable(instance, &table, gpa);
const char *env = getenv("PYROVEIL_CONFIG");
if (!env)
env = "pyroveil.json";
struct FileDeleter { void operator()(FILE *file) { if (file) fclose(file); } };
std::unique_ptr<FILE, FileDeleter> file(fopen(env, "rb"));
if (file)
{
configPath = env;
fprintf(stderr, "pyroveil: Found config in %s!\n", env);
fseek(file.get(), 0, SEEK_END);
size_t len = ftell(file.get());
rewind(file.get());
std::string buf;
buf.resize(len);
if (fread(&buf[0], 1, len, file.get()) != len)
{
fprintf(stderr, "pyroveil: Failed to read config.\n");
return;
}
rapidjson::Document doc;
rapidjson::ParseResult res = doc.Parse(buf);
if (!res)
{
fprintf(stderr, "pyroveil: JSON parse failed: %d\n", res.Code());
return;
}
parseConfig(doc);
}
else
{
fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", env);
}
}
|
O1
|
cpp
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))()):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdx, %rdx
je 0x8920b
movq %rdx, %r12
movq 0x10(%rdx), %r13
testq %r13, %r13
je 0x891d9
leaq 0x38(%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x40(%r14), %rax
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x7e800
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x80430
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x8920b
leaq 0x58(%r14), %r13
movq 0x60(%r14), %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x7e800
movq %r13, %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x80430
movq %r15, (%r14)
movq %rbx, 0x30(%r14)
leaq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x11b36b
leaq 0x35b189(%rip), %rdi # 0x3e43b1
callq 0x7fba0
testq %rax, %rax
leaq 0x35b18a(%rip), %r15 # 0x3e43c1
cmovneq %rax, %r15
leaq 0x35b18d(%rip), %rsi # 0x3e43cf
movq %r15, %rdi
callq 0x7fab0
movq %rax, %rbx
testq %rax, %rax
jne 0x89272
movq 0x558d37(%rip), %rax # 0x5e1f90
movq (%rax), %rdi
leaq 0x35b1d1(%rip), %rsi # 0x3e4434
movq %r15, %rdx
xorl %eax, %eax
callq 0x80150
jmp 0x89378
leaq 0xd0(%r14), %r12
movq 0xd8(%r14), %r13
movq %r15, %rdi
callq 0x7e800
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x80430
movq 0x558cee(%rip), %r13 # 0x5e1f90
movq (%r13), %rdi
leaq 0x35b125(%rip), %rsi # 0x3e43d2
movq %r15, %rdx
xorl %eax, %eax
callq 0x80150
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x7f930
movq %rbx, %rdi
callq 0x7e030
movq %rax, %r12
movq %rbx, %rdi
callq 0x7e240
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq -0x58(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x7e500
leaq -0x58(%rbp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x81065
testb $0x1, %al
je 0x89378
leaq -0xc8(%rbp), %rdi
movl $0x400, %edx # imm = 0x400
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x8be08
movq -0x58(%rbp), %rax
leaq -0x68(%rbp), %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
leaq -0xc8(%rbp), %rdi
callq 0x8fdf0
movl 0x50(%rax), %edx
testl %edx, %edx
jne 0x89397
leaq -0xc8(%rbp), %rsi
movq %r14, %rdi
callq 0x889b2
leaq -0xc8(%rbp), %rdi
callq 0x8be9e
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x89378
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x7f6e0
testq %rbx, %rbx
je 0x89385
movq %rbx, %rdi
callq 0x7f650
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rdi
leaq 0x35b071(%rip), %rsi # 0x3e4413
xorl %eax, %eax
callq 0x80150
jmp 0x89357
jmp 0x893be
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0x8be9e
jmp 0x893c1
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x893db
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x7f6e0
jmp 0x893db
movq %rax, %r14
movq %rbx, %rdi
callq 0x7f650
movq %r14, %rdi
callq 0x809f0
nop
|
_ZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES1_PKcE:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rcx
mov r15, rsi
mov r14, rdi
test rdx, rdx
jz short loc_8920B
mov r12, rdx
mov r13, [rdx+10h]
test r13, r13
jz short loc_891D9
lea rax, [r14+38h]
mov [rbp+var_38], rax
mov rax, [r14+40h]
mov [rbp+var_30], rax
mov rdi, r13
call _strlen
mov rdi, [rbp+var_38]
xor esi, esi
mov rdx, [rbp+var_30]
mov rcx, r13
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_891D9:
mov r12, [r12+20h]
test r12, r12
jz short loc_8920B
lea r13, [r14+58h]
mov rax, [r14+60h]
mov [rbp+var_30], rax
mov rdi, r12
call _strlen
mov rdi, r13
xor esi, esi
mov rdx, [rbp+var_30]
mov rcx, r12
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_8920B:
mov [r14], r15
mov [r14+30h], rbx
lea rsi, [r14+8]
mov rdi, r15
mov rdx, rbx
call _Z30layerInitInstanceDispatchTableP12VkInstance_TP28VkLayerInstanceDispatchTablePFPFvvES0_PKcE; layerInitInstanceDispatchTable(VkInstance_T *,VkLayerInstanceDispatchTable *,void (*)(void) (*)(VkInstance_T *,char const*))
lea rdi, aPyroveilConfig_0; "PYROVEIL_CONFIG"
call _getenv
test rax, rax
lea r15, aPyroveilJson; "pyroveil.json"
cmovnz r15, rax
lea rsi, aRb; "rb"
mov rdi, r15
call _fopen
mov rbx, rax
test rax, rax
jnz short loc_89272
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aPyroveilCouldN; "pyroveil: Could not find config in %s. "...
mov rdx, r15
xor eax, eax
call _fprintf
jmp loc_89378
loc_89272:
lea r12, [r14+0D0h]
mov r13, [r14+0D8h]
mov rdi, r15
call _strlen
mov rdi, r12
xor esi, esi
mov rdx, r13
mov rcx, r15
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov r13, cs:stderr_ptr
mov rdi, [r13+0]
lea rsi, aPyroveilFoundC; "pyroveil: Found config in %s!\n"
mov rdx, r15
xor eax, eax
call _fprintf
mov rdi, rbx
xor esi, esi
mov edx, 2
call _fseek
mov rdi, rbx
call _ftell
mov r12, rax
mov rdi, rbx
call _rewind
lea r15, [rbp+var_48]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
lea rdi, [rbp+var_58]
mov rsi, r12
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
lea rdi, [rbp+var_58]
mov rsi, r12
mov rdx, rbx
mov rcx, r15
call _ZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES1_PKcE_cold_1; Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*)) [clone]
test al, 1
jz short loc_89378
lea rdi, [rbp+var_C8]
mov edx, 400h
xor esi, esi
xor ecx, ecx
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_EC2EPS5_mPS4_; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>*,ulong,rapidjson::CrtAllocator*)
mov rax, [rbp+var_58]
lea rsi, [rbp+var_68]
mov [rsi], rax
mov [rsi+8], rax
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_E11ParseStreamILj4ES2_NS_19GenericStringStreamIS2_EEEERS6_RT1_; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(rapidjson::GenericStringStream<rapidjson::UTF8<char>> &)
mov edx, [rax+50h]
test edx, edx
jnz short loc_89397
lea rsi, [rbp+var_C8]
mov rdi, r14
call _ZN8Instance11parseConfigERKN9rapidjson15GenericDocumentINS0_4UTF8IcEENS0_19MemoryPoolAllocatorINS0_12CrtAllocatorEEES5_EE; Instance::parseConfig(rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> const&)
loc_89357:
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
mov rdi, [rbp+var_58]; void *
cmp rdi, r15
jz short loc_89378
mov rsi, [rbp+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_89378:
test rbx, rbx
jz short loc_89385
mov rdi, rbx
call _fclose
loc_89385:
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_89397:
mov rdi, [r13+0]
lea rsi, aPyroveilJsonPa; "pyroveil: JSON parse failed: %d\n"
xor eax, eax
call _fprintf
jmp short loc_89357
jmp short loc_893BE
mov r14, rax
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
jmp short loc_893C1
loc_893BE:
mov r14, rax
loc_893C1:
mov rdi, [rbp+var_58]; void *
cmp rdi, r15
jz short loc_893DB
mov rsi, [rbp+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_893DB
mov r14, rax
loc_893DB:
mov rdi, rbx
call _fclose
mov rdi, r14
call __Unwind_Resume
|
void Instance::init(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long v6; // r13
long long v7; // rax
long long v8; // r12
long long v9; // rax
long long v10; // rax
const char *v11; // r15
long long v12; // rbx
long long v13; // r13
long long v14; // rax
long long v15; // r12
int v16; // edx
_BYTE v17[96]; // [rsp+8h] [rbp-C8h] BYREF
void *v18; // [rsp+68h] [rbp-68h]
void *v19; // [rsp+70h] [rbp-60h]
void *v20[2]; // [rsp+78h] [rbp-58h] BYREF
_QWORD v21[3]; // [rsp+88h] [rbp-48h] BYREF
long long v22; // [rsp+A0h] [rbp-30h]
if ( a3 )
{
v6 = *(_QWORD *)(a3 + 16);
if ( v6 )
{
v21[2] = a1 + 7;
v22 = a1[8];
v7 = strlen(v6);
std::string::_M_replace(a1 + 7, 0LL, v22, v6, v7);
}
v8 = *(_QWORD *)(a3 + 32);
if ( v8 )
{
v22 = a1[12];
v9 = strlen(v8);
std::string::_M_replace(a1 + 11, 0LL, v22, v8, v9);
}
}
*a1 = a2;
a1[6] = a4;
layerInitInstanceDispatchTable(a2, a1 + 1, a4);
v10 = getenv("PYROVEIL_CONFIG");
v11 = "pyroveil.json";
if ( v10 )
v11 = (const char *)v10;
v12 = fopen(v11, "rb");
if ( v12 )
{
v13 = a1[27];
v14 = strlen(v11);
std::string::_M_replace(a1 + 26, 0LL, v13, v11, v14);
fprintf(stderr, "pyroveil: Found config in %s!\n", v11);
fseek(v12, 0LL, 2LL);
v15 = ftell(v12);
rewind(v12);
v20[0] = v21;
v20[1] = 0LL;
LOBYTE(v21[0]) = 0;
std::string::resize(v20, v15, 0LL);
if ( (Instance::init(v20, v15, v12, v21) & 1) != 0 )
{
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(
v17,
0LL,
1024LL,
0LL);
v18 = v20[0];
v19 = v20[0];
v16 = *(_DWORD *)(rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(v17)
+ 80);
if ( v16 )
fprintf(stderr, "pyroveil: JSON parse failed: %d\n", v16);
else
Instance::parseConfig((long long)a1, (long long)v17);
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument(v17);
if ( v20[0] != v21 )
operator delete(v20[0], v21[0] + 1LL);
}
}
else
{
fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", v11);
}
if ( v12 )
fclose(v12);
}
|
init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RCX
MOV R15,RSI
MOV R14,RDI
TEST RDX,RDX
JZ 0x0018920b
MOV R12,RDX
MOV R13,qword ptr [RDX + 0x10]
TEST R13,R13
JZ 0x001891d9
LEA RAX,[R14 + 0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [R14 + 0x40]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,R13
CALL 0x0017e800
MOV RDI,qword ptr [RBP + -0x38]
XOR ESI,ESI
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,R13
MOV R8,RAX
CALL 0x00180430
LAB_001891d9:
MOV R12,qword ptr [R12 + 0x20]
TEST R12,R12
JZ 0x0018920b
LEA R13,[R14 + 0x58]
MOV RAX,qword ptr [R14 + 0x60]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,R12
CALL 0x0017e800
MOV RDI,R13
XOR ESI,ESI
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,R12
MOV R8,RAX
CALL 0x00180430
LAB_0018920b:
MOV qword ptr [R14],R15
MOV qword ptr [R14 + 0x30],RBX
LEA RSI,[R14 + 0x8]
MOV RDI,R15
MOV RDX,RBX
CALL 0x0021b36b
LEA RDI,[0x4e43b1]
CALL 0x0017fba0
TEST RAX,RAX
LEA R15,[0x4e43c1]
CMOVNZ R15,RAX
LEA RSI,[0x4e43cf]
MOV RDI,R15
CALL 0x0017fab0
MOV RBX,RAX
TEST RAX,RAX
JNZ 0x00189272
MOV RAX,qword ptr [0x006e1f90]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x4e4434]
MOV RDX,R15
XOR EAX,EAX
CALL 0x00180150
JMP 0x00189378
LAB_00189272:
LEA R12,[R14 + 0xd0]
MOV R13,qword ptr [R14 + 0xd8]
MOV RDI,R15
CALL 0x0017e800
LAB_00189288:
MOV RDI,R12
XOR ESI,ESI
MOV RDX,R13
MOV RCX,R15
MOV R8,RAX
CALL 0x00180430
MOV R13,qword ptr [0x006e1f90]
MOV RDI,qword ptr [R13]
LEA RSI,[0x4e43d2]
MOV RDX,R15
XOR EAX,EAX
CALL 0x00180150
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x2
CALL 0x0017f930
MOV RDI,RBX
CALL 0x0017e030
MOV R12,RAX
MOV RDI,RBX
CALL 0x0017e240
LEA R15,[RBP + -0x48]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
LAB_001892ed:
LEA RDI,[RBP + -0x58]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0017e500
LAB_001892fb:
LEA RDI,[RBP + -0x58]
MOV RSI,R12
MOV RDX,RBX
MOV RCX,R15
CALL 0x00181065
TEST AL,0x1
JZ 0x00189378
LAB_00189311:
LEA RDI,[RBP + -0xc8]
MOV EDX,0x400
XOR ESI,ESI
XOR ECX,ECX
CALL 0x0018be08
MOV RAX,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x68]
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x8],RAX
LAB_00189335:
LEA RDI,[RBP + -0xc8]
CALL 0x0018fdf0
MOV EDX,dword ptr [RAX + 0x50]
TEST EDX,EDX
JNZ 0x00189397
LEA RSI,[RBP + -0xc8]
MOV RDI,R14
CALL 0x001889b2
LAB_00189357:
LEA RDI,[RBP + -0xc8]
CALL 0x0018be9e
MOV RDI,qword ptr [RBP + -0x58]
CMP RDI,R15
JZ 0x00189378
MOV RSI,qword ptr [RBP + -0x48]
INC RSI
CALL 0x0017f6e0
LAB_00189378:
TEST RBX,RBX
JZ 0x00189385
MOV RDI,RBX
CALL 0x0017f650
LAB_00189385:
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00189397:
MOV RDI,qword ptr [R13]
LEA RSI,[0x4e4413]
XOR EAX,EAX
CALL 0x00180150
JMP 0x00189357
|
/* Instance::init(VkInstance_T*, VkApplicationInfo const*, void (*(*)(VkInstance_T*, char
const*))()) */
void __thiscall
Instance::init(Instance *this,VkInstance_T *param_1,VkApplicationInfo *param_2,_func_void *param_3)
{
int *puVar1;
char *pcVar2;
FILE *__stream;
VkInstance_T *pVVar3;
ulong uVar4;
GenericDocument *pGVar5;
char *pcVar6;
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
local_d0 [96];
_func_void *local_70;
_func_void *local_68;
_func_void *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
Instance *local_40;
char *local_38;
if (param_2 != (VkApplicationInfo *)0x0) {
pcVar6 = *(char **)(param_2 + 0x10);
if (pcVar6 != (char *)0x0) {
local_40 = this + 0x38;
local_38 = *(char **)(this + 0x40);
strlen(pcVar6);
std::__cxx11::string::_M_replace((ulong)local_40,0,local_38,(ulong)pcVar6);
}
pcVar6 = *(char **)(param_2 + 0x20);
if (pcVar6 != (char *)0x0) {
local_38 = *(char **)(this + 0x60);
strlen(pcVar6);
std::__cxx11::string::_M_replace((ulong)(this + 0x58),0,local_38,(ulong)pcVar6);
}
}
*(VkInstance_T **)this = param_1;
*(_func_void **)(this + 0x30) = param_3;
layerInitInstanceDispatchTable(param_1,(VkLayerInstanceDispatchTable *)(this + 8),param_3);
pcVar2 = getenv("PYROVEIL_CONFIG");
pcVar6 = "pyroveil.json";
if (pcVar2 != (char *)0x0) {
pcVar6 = pcVar2;
}
__stream = fopen(pcVar6,"rb");
if (__stream == (FILE *)0x0) {
fprintf(*(FILE **)PTR_stderr_006e1f90,
"pyroveil: Could not find config in %s. Disabling hooking.\n",pcVar6);
}
else {
pcVar2 = *(char **)(this + 0xd8);
strlen(pcVar6);
/* try { // try from 00189288 to 0018929a has its CatchHandler @ 001893d8 */
std::__cxx11::string::_M_replace((ulong)(this + 0xd0),0,pcVar2,(ulong)pcVar6);
puVar1 = PTR_stderr_006e1f90;
fprintf(*(FILE **)PTR_stderr_006e1f90,"pyroveil: Found config in %s!\n",pcVar6);
fseek(__stream,0,2);
pVVar3 = (VkInstance_T *)ftell(__stream);
rewind(__stream);
local_58 = 0;
local_50 = (_func_void)0x0;
/* try { // try from 001892ed to 001892fa has its CatchHandler @ 001893be */
local_60 = (_func_void *)&local_50;
std::__cxx11::string::resize((ulong)&local_60,(char)pVVar3);
uVar4 = init((Instance *)&local_60,pVVar3,(VkApplicationInfo *)__stream,(_func_void *)&local_50)
;
if ((uVar4 & 1) != 0) {
/* try { // try from 00189311 to 00189325 has its CatchHandler @ 001893ab */
rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::GenericDocument(local_d0,(MemoryPoolAllocator *)0x0,0x400,(CrtAllocator *)0x0);
local_70 = local_60;
local_68 = local_60;
/* try { // try from 00189335 to 00189356 has its CatchHandler @ 001893ad */
pGVar5 = rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::
ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>
(local_d0,(GenericStringStream *)&local_70);
if (*(int *)(pGVar5 + 0x50) == 0) {
parseConfig(this,(GenericDocument *)local_d0);
}
else {
fprintf(*(FILE **)puVar1,"pyroveil: JSON parse failed: %d\n");
}
rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::~GenericDocument(local_d0);
if (local_60 != (_func_void *)&local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
}
}
if (__stream != (FILE *)0x0) {
fclose(__stream);
}
return;
}
|
|
57,819
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))())
|
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
|
void Instance::init(VkInstance instance_, const VkApplicationInfo *pApplicationInfo, PFN_vkGetInstanceProcAddr gpa_)
{
if (pApplicationInfo)
{
if (pApplicationInfo->pApplicationName)
applicationName = pApplicationInfo->pApplicationName;
if (pApplicationInfo->pEngineName)
engineName = pApplicationInfo->pEngineName;
}
instance = instance_;
gpa = gpa_;
layerInitInstanceDispatchTable(instance, &table, gpa);
const char *env = getenv("PYROVEIL_CONFIG");
if (!env)
env = "pyroveil.json";
struct FileDeleter { void operator()(FILE *file) { if (file) fclose(file); } };
std::unique_ptr<FILE, FileDeleter> file(fopen(env, "rb"));
if (file)
{
configPath = env;
fprintf(stderr, "pyroveil: Found config in %s!\n", env);
fseek(file.get(), 0, SEEK_END);
size_t len = ftell(file.get());
rewind(file.get());
std::string buf;
buf.resize(len);
if (fread(&buf[0], 1, len, file.get()) != len)
{
fprintf(stderr, "pyroveil: Failed to read config.\n");
return;
}
rapidjson::Document doc;
rapidjson::ParseResult res = doc.Parse(buf);
if (!res)
{
fprintf(stderr, "pyroveil: JSON parse failed: %d\n", res.Code());
return;
}
parseConfig(doc);
}
else
{
fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", env);
}
}
|
O3
|
cpp
|
Instance::init(VkInstance_T*, VkApplicationInfo const*, void (* (*)(VkInstance_T*, char const*))()):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdx, %rdx
je 0x886cd
movq %rdx, %r12
movq 0x10(%rdx), %r13
testq %r13, %r13
je 0x8869b
leaq 0x38(%r14), %rax
movq %rax, -0x58(%rbp)
movq 0x40(%r14), %rax
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x7d810
movq -0x58(%rbp), %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x7f3c0
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x886cd
leaq 0x58(%r14), %r13
movq 0x60(%r14), %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x7d810
movq %r13, %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x7f3c0
movq %r15, (%r14)
movq %rbx, 0x30(%r14)
leaq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x118917
leaq 0x344cd7(%rip), %rdi # 0x3cd3c1
callq 0x7eb70
testq %rax, %rax
leaq 0x344cd8(%rip), %r15 # 0x3cd3d1
cmovneq %rax, %r15
leaq 0x344cdb(%rip), %rsi # 0x3cd3df
movq %r15, %rdi
callq 0x7ea80
testq %rax, %rax
jne 0x8873d
movq 0x540878(%rip), %rax # 0x5c8f90
movq (%rax), %rdi
leaq 0x344d22(%rip), %rsi # 0x3cd444
movq %r15, %rdx
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7f100
movq %rax, %rbx
leaq 0xd0(%r14), %r12
movq 0xd8(%r14), %r13
movq %r15, %rdi
callq 0x7d810
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x7f3c0
movq 0x540820(%rip), %r13 # 0x5c8f90
movq (%r13), %rdi
leaq 0x344c67(%rip), %rsi # 0x3cd3e2
movq %r15, %rdx
xorl %eax, %eax
callq 0x7f100
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x7e910
movq %rbx, %rdi
callq 0x7d030
movq %rax, %r12
movq %rbx, %rdi
callq 0x7d240
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x7d4f0
movq -0x50(%rbp), %rdi
movl $0x1, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x7f260
cmpq %r12, %rax
jne 0x88867
leaq -0xc8(%rbp), %rdi
movl $0x400, %edx # imm = 0x400
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x8ad1c
movq -0x50(%rbp), %rax
leaq -0x68(%rbp), %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
leaq -0xc8(%rbp), %rdi
callq 0x8edce
movl 0x50(%rax), %edx
testl %edx, %edx
jne 0x88875
leaq -0xc8(%rbp), %rsi
movq %r14, %rdi
callq 0x87e72
leaq -0xc8(%rbp), %rdi
callq 0x8adb2
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x8884d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7e6e0
movq %rbx, %rdi
callq 0x7e660
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x807c9
jmp 0x8884d
movq (%r13), %rdi
leaq 0x344ba3(%rip), %rsi # 0x3cd423
xorl %eax, %eax
callq 0x7f100
jmp 0x8882c
jmp 0x8888b
movq %rax, %r14
jmp 0x8889f
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0x8adb2
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x888b9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x7e6e0
jmp 0x888b9
movq %rax, %r14
movq %rbx, %rdi
callq 0x7e660
movq %r14, %rdi
callq 0x7f950
nop
|
_ZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES1_PKcE:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rcx
mov r15, rsi
mov r14, rdi
test rdx, rdx
jz short loc_886CD
mov r12, rdx
mov r13, [rdx+10h]
test r13, r13
jz short loc_8869B
lea rax, [r14+38h]
mov [rbp+var_58], rax
mov rax, [r14+40h]
mov [rbp+var_30], rax
mov rdi, r13
call _strlen
mov rdi, [rbp+var_58]
xor esi, esi
mov rdx, [rbp+var_30]
mov rcx, r13
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_8869B:
mov r12, [r12+20h]
test r12, r12
jz short loc_886CD
lea r13, [r14+58h]
mov rax, [r14+60h]
mov [rbp+var_30], rax
mov rdi, r12
call _strlen
mov rdi, r13
xor esi, esi
mov rdx, [rbp+var_30]
mov rcx, r12
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_886CD:
mov [r14], r15
mov [r14+30h], rbx
lea rsi, [r14+8]
mov rdi, r15
mov rdx, rbx
call _Z30layerInitInstanceDispatchTableP12VkInstance_TP28VkLayerInstanceDispatchTablePFPFvvES0_PKcE; layerInitInstanceDispatchTable(VkInstance_T *,VkLayerInstanceDispatchTable *,void (*)(void) (*)(VkInstance_T *,char const*))
lea rdi, aPyroveilConfig_0; "PYROVEIL_CONFIG"
call _getenv
test rax, rax
lea r15, aPyroveilJson; "pyroveil.json"
cmovnz r15, rax
lea rsi, aRb; "rb"
mov rdi, r15
call _fopen
test rax, rax
jnz short loc_8873D
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aPyroveilCouldN; "pyroveil: Could not find config in %s. "...
mov rdx, r15
xor eax, eax
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _fprintf
loc_8873D:
mov rbx, rax
lea r12, [r14+0D0h]
mov r13, [r14+0D8h]
mov rdi, r15
call _strlen
mov rdi, r12
xor esi, esi
mov rdx, r13
mov rcx, r15
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov r13, cs:stderr_ptr
mov rdi, [r13+0]
lea rsi, aPyroveilFoundC; "pyroveil: Found config in %s!\n"
mov rdx, r15
xor eax, eax
call _fprintf
mov rdi, rbx
xor esi, esi
mov edx, 2
call _fseek
mov rdi, rbx
call _ftell
mov r12, rax
mov rdi, rbx
call _rewind
lea r15, [rbp+var_40]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
lea rdi, [rbp+var_50]
mov rsi, r12
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rdi, [rbp+var_50]
mov esi, 1
mov rdx, r12
mov rcx, rbx
call _fread
cmp rax, r12
jnz loc_88867
lea rdi, [rbp+var_C8]
mov edx, 400h
xor esi, esi
xor ecx, ecx
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_EC2EPS5_mPS4_; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>*,ulong,rapidjson::CrtAllocator*)
mov rax, [rbp+var_50]
lea rsi, [rbp+var_68]
mov [rsi], rax
mov [rsi+8], rax
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_E11ParseStreamILj4ES2_NS_19GenericStringStreamIS2_EEEERS6_RT1_; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(rapidjson::GenericStringStream<rapidjson::UTF8<char>> &)
mov edx, [rax+50h]
test edx, edx
jnz short loc_88875
lea rsi, [rbp+var_C8]
mov rdi, r14
call _ZN8Instance11parseConfigERKN9rapidjson15GenericDocumentINS0_4UTF8IcEENS0_19MemoryPoolAllocatorINS0_12CrtAllocatorEEES5_EE; Instance::parseConfig(rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> const&)
loc_8882C:
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
mov rdi, [rbp+var_50]; void *
cmp rdi, r15
jz short loc_8884D
mov rsi, [rbp+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8884D:
mov rdi, rbx
call _fclose
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_88867:
lea rdi, [rbp+var_50]
mov rsi, r15
call _ZN8Instance4initEP12VkInstance_TPK17VkApplicationInfoPFPFvvES1_PKcE_cold_1; Instance::init(VkInstance_T *,VkApplicationInfo const*,void (*)(void) (*)(VkInstance_T *,char const*)) [clone]
jmp short loc_8884D
loc_88875:
mov rdi, [r13+0]
lea rsi, aPyroveilJsonPa; "pyroveil: JSON parse failed: %d\n"
xor eax, eax
call _fprintf
jmp short loc_8882C
jmp short $+2
loc_8888B:
mov r14, rax
jmp short loc_8889F
mov r14, rax
lea rdi, [rbp+var_C8]
call _ZN9rapidjson15GenericDocumentINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEES4_ED2Ev; rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument()
loc_8889F:
mov rdi, [rbp+var_50]; void *
cmp rdi, r15
jz short loc_888B9
mov rsi, [rbp+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_888B9
mov r14, rax
loc_888B9:
mov rdi, rbx
call _fclose
mov rdi, r14
call __Unwind_Resume
|
long long Instance::init(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long v6; // r13
long long v7; // rax
long long v8; // r12
long long v9; // rax
long long v10; // rax
const char *v11; // r15
long long v12; // rax
long long v14; // rbx
long long v15; // r13
long long v16; // rax
long long v17; // r12
int v18; // edx
_BYTE v19[96]; // [rsp+8h] [rbp-C8h] BYREF
void *v20; // [rsp+68h] [rbp-68h]
void *v21; // [rsp+70h] [rbp-60h]
_QWORD *v22; // [rsp+78h] [rbp-58h]
void *v23[2]; // [rsp+80h] [rbp-50h] BYREF
_QWORD v24[2]; // [rsp+90h] [rbp-40h] BYREF
long long v25; // [rsp+A0h] [rbp-30h]
if ( a3 )
{
v6 = *(_QWORD *)(a3 + 16);
if ( v6 )
{
v22 = a1 + 7;
v25 = a1[8];
v7 = strlen(v6);
std::string::_M_replace(a1 + 7, 0LL, v25, v6, v7);
}
v8 = *(_QWORD *)(a3 + 32);
if ( v8 )
{
v25 = a1[12];
v9 = strlen(v8);
std::string::_M_replace(a1 + 11, 0LL, v25, v8, v9);
}
}
*a1 = a2;
a1[6] = a4;
layerInitInstanceDispatchTable(a2, a1 + 1, a4);
v10 = getenv("PYROVEIL_CONFIG");
v11 = "pyroveil.json";
if ( v10 )
v11 = (const char *)v10;
v12 = fopen(v11, "rb");
if ( !v12 )
return fprintf(stderr, "pyroveil: Could not find config in %s. Disabling hooking.\n", v11);
v14 = v12;
v15 = a1[27];
v16 = strlen(v11);
std::string::_M_replace(a1 + 26, 0LL, v15, v11, v16);
fprintf(stderr, "pyroveil: Found config in %s!\n", v11);
fseek(v14, 0LL, 2LL);
v17 = ftell(v14);
rewind(v14);
v23[0] = v24;
v23[1] = 0LL;
LOBYTE(v24[0]) = 0;
std::string::resize(v23, v17, 0LL);
if ( fread(v23[0], 1LL, v17, v14) == v17 )
{
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::GenericDocument(
v19,
0LL,
1024LL,
0LL);
v20 = v23[0];
v21 = v23[0];
v18 = *(_DWORD *)(rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>(v19)
+ 80);
if ( v18 )
fprintf(stderr, "pyroveil: JSON parse failed: %d\n", v18);
else
Instance::parseConfig((long long)a1, (long long)v19);
rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::~GenericDocument(v19);
if ( v23[0] != v24 )
operator delete(v23[0], v24[0] + 1LL);
}
else
{
Instance::init(v23, v24);
}
return fclose(v14);
}
|
init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RCX
MOV R15,RSI
MOV R14,RDI
TEST RDX,RDX
JZ 0x001886cd
MOV R12,RDX
MOV R13,qword ptr [RDX + 0x10]
TEST R13,R13
JZ 0x0018869b
LEA RAX,[R14 + 0x38]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [R14 + 0x40]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,R13
CALL 0x0017d810
MOV RDI,qword ptr [RBP + -0x58]
XOR ESI,ESI
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,R13
MOV R8,RAX
CALL 0x0017f3c0
LAB_0018869b:
MOV R12,qword ptr [R12 + 0x20]
TEST R12,R12
JZ 0x001886cd
LEA R13,[R14 + 0x58]
MOV RAX,qword ptr [R14 + 0x60]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,R12
CALL 0x0017d810
MOV RDI,R13
XOR ESI,ESI
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,R12
MOV R8,RAX
CALL 0x0017f3c0
LAB_001886cd:
MOV qword ptr [R14],R15
MOV qword ptr [R14 + 0x30],RBX
LEA RSI,[R14 + 0x8]
MOV RDI,R15
MOV RDX,RBX
CALL 0x00218917
LEA RDI,[0x4cd3c1]
CALL 0x0017eb70
TEST RAX,RAX
LEA R15,[0x4cd3d1]
CMOVNZ R15,RAX
LEA RSI,[0x4cd3df]
MOV RDI,R15
CALL 0x0017ea80
TEST RAX,RAX
JNZ 0x0018873d
MOV RAX,qword ptr [0x006c8f90]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x4cd444]
MOV RDX,R15
XOR EAX,EAX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0017f100
LAB_0018873d:
MOV RBX,RAX
LEA R12,[R14 + 0xd0]
MOV R13,qword ptr [R14 + 0xd8]
MOV RDI,R15
CALL 0x0017d810
LAB_00188756:
MOV RDI,R12
XOR ESI,ESI
MOV RDX,R13
MOV RCX,R15
MOV R8,RAX
CALL 0x0017f3c0
MOV R13,qword ptr [0x006c8f90]
MOV RDI,qword ptr [R13]
LEA RSI,[0x4cd3e2]
MOV RDX,R15
XOR EAX,EAX
CALL 0x0017f100
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x2
CALL 0x0017e910
MOV RDI,RBX
CALL 0x0017d030
MOV R12,RAX
MOV RDI,RBX
CALL 0x0017d240
LEA R15,[RBP + -0x40]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
LAB_001887bb:
LEA RDI,[RBP + -0x50]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0017d4f0
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,0x1
MOV RDX,R12
MOV RCX,RBX
CALL 0x0017f260
CMP RAX,R12
JNZ 0x00188867
LAB_001887e6:
LEA RDI,[RBP + -0xc8]
MOV EDX,0x400
XOR ESI,ESI
XOR ECX,ECX
CALL 0x0018ad1c
MOV RAX,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0x68]
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x8],RAX
LAB_0018880a:
LEA RDI,[RBP + -0xc8]
CALL 0x0018edce
MOV EDX,dword ptr [RAX + 0x50]
TEST EDX,EDX
JNZ 0x00188875
LEA RSI,[RBP + -0xc8]
MOV RDI,R14
CALL 0x00187e72
LAB_0018882c:
LEA RDI,[RBP + -0xc8]
CALL 0x0018adb2
MOV RDI,qword ptr [RBP + -0x50]
CMP RDI,R15
JZ 0x0018884d
MOV RSI,qword ptr [RBP + -0x40]
INC RSI
CALL 0x0017e6e0
LAB_0018884d:
MOV RDI,RBX
CALL 0x0017e660
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00188867:
LEA RDI,[RBP + -0x50]
MOV RSI,R15
CALL 0x001807c9
JMP 0x0018884d
LAB_00188875:
MOV RDI,qword ptr [R13]
LEA RSI,[0x4cd423]
XOR EAX,EAX
CALL 0x0017f100
JMP 0x0018882c
|
/* Instance::init(VkInstance_T*, VkApplicationInfo const*, void (*(*)(VkInstance_T*, char
const*))()) */
void __thiscall
Instance::init(Instance *this,VkInstance_T *param_1,VkApplicationInfo *param_2,_func_void *param_3)
{
int *puVar1;
char *pcVar2;
FILE *__stream;
size_t __n;
size_t sVar3;
GenericDocument *pGVar4;
_func_void *extraout_RDX;
char *pcVar5;
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
local_d0 [96];
VkApplicationInfo *local_70;
VkApplicationInfo *local_68;
Instance *local_60;
VkApplicationInfo *local_58;
int8 local_50;
VkApplicationInfo local_48;
int7 uStack_47;
char *local_38;
if (param_2 != (VkApplicationInfo *)0x0) {
pcVar5 = *(char **)(param_2 + 0x10);
if (pcVar5 != (char *)0x0) {
local_60 = this + 0x38;
local_38 = *(char **)(this + 0x40);
strlen(pcVar5);
std::__cxx11::string::_M_replace((ulong)local_60,0,local_38,(ulong)pcVar5);
}
pcVar5 = *(char **)(param_2 + 0x20);
if (pcVar5 != (char *)0x0) {
local_38 = *(char **)(this + 0x60);
strlen(pcVar5);
std::__cxx11::string::_M_replace((ulong)(this + 0x58),0,local_38,(ulong)pcVar5);
}
}
*(VkInstance_T **)this = param_1;
*(_func_void **)(this + 0x30) = param_3;
layerInitInstanceDispatchTable(param_1,(VkLayerInstanceDispatchTable *)(this + 8),param_3);
pcVar2 = getenv("PYROVEIL_CONFIG");
pcVar5 = "pyroveil.json";
if (pcVar2 != (char *)0x0) {
pcVar5 = pcVar2;
}
__stream = fopen(pcVar5,"rb");
if (__stream == (FILE *)0x0) {
fprintf(*(FILE **)PTR_stderr_006c8f90,
"pyroveil: Could not find config in %s. Disabling hooking.\n",pcVar5);
return;
}
pcVar2 = *(char **)(this + 0xd8);
strlen(pcVar5);
/* try { // try from 00188756 to 00188768 has its CatchHandler @ 001888b6 */
std::__cxx11::string::_M_replace((ulong)(this + 0xd0),0,pcVar2,(ulong)pcVar5);
puVar1 = PTR_stderr_006c8f90;
fprintf(*(FILE **)PTR_stderr_006c8f90,"pyroveil: Found config in %s!\n",pcVar5);
fseek(__stream,0,2);
__n = ftell(__stream);
rewind(__stream);
local_50 = 0;
local_48 = (VkApplicationInfo)0x0;
/* try { // try from 001887bb to 001887c8 has its CatchHandler @ 0018888b */
local_58 = &local_48;
std::__cxx11::string::resize((ulong)&local_58,(char)__n);
sVar3 = fread(local_58,1,__n,__stream);
if (sVar3 == __n) {
/* try { // try from 001887e6 to 001887fa has its CatchHandler @ 00188889 */
rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::GenericDocument(local_d0,(MemoryPoolAllocator *)0x0,0x400,(CrtAllocator *)0x0);
local_70 = local_58;
local_68 = local_58;
/* try { // try from 0018880a to 0018882b has its CatchHandler @ 00188890 */
pGVar4 = rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::
ParseStream<4u,rapidjson::UTF8<char>,rapidjson::GenericStringStream<rapidjson::UTF8<char>>>
(local_d0,(GenericStringStream *)&local_70);
if (*(int *)(pGVar4 + 0x50) == 0) {
parseConfig(this,(GenericDocument *)local_d0);
}
else {
fprintf(*(FILE **)puVar1,"pyroveil: JSON parse failed: %d\n");
}
rapidjson::
GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>
::~GenericDocument(local_d0);
if (local_58 != &local_48) {
operator_delete(local_58,CONCAT71(uStack_47,local_48) + 1);
}
}
else {
init((VkInstance_T *)&local_58,&local_48,extraout_RDX);
}
fclose(__stream);
return;
}
|
|
57,820
|
nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long)
|
ng-log[P]ng-log/src/symbolize.cc
|
ATTRIBUTE_NOINLINE
void DemangleInplace(char* out, size_t out_size) {
char demangled[256]; // Big enough for sane demangled symbols.
if (Demangle(out, demangled, sizeof(demangled))) {
// Demangling succeeded. Copy to out if the space allows.
size_t len = strlen(demangled);
if (len + 1 <= out_size) { // +1 for '\0'.
NGLOG_SAFE_ASSERT(len < sizeof(demangled));
memmove(out, demangled, len + 1);
}
}
}
|
O0
|
cpp
|
nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
movl $0x100, %edx # imm = 0x100
callq 0xdf40
testb $0x1, %al
jne 0x4b79e
jmp 0x4b7f3
leaq -0x110(%rbp), %rdi
callq 0x92f0
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
addq $0x1, %rax
cmpq -0x10(%rbp), %rax
ja 0x4b7f1
cmpq $0x100, -0x118(%rbp) # imm = 0x100
jae 0x4b7d1
jmp 0x4b7d6
callq 0x93b0
movq -0x8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
movq -0x118(%rbp), %rdx
addq $0x1, %rdx
callq 0x9c10
jmp 0x4b7f3
addq $0x120, %rsp # imm = 0x120
popq %rbp
retq
nopl (%rax)
|
_ZN5nglog5tools12_GLOBAL__N_115DemangleInplaceEPcm:
push rbp
mov rbp, rsp
sub rsp, 120h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]; this
lea rsi, [rbp+var_110]; char *
mov edx, offset qword_100; char *
call _ZN5nglog5tools8DemangleEPKcPcm; nglog::tools::Demangle(char const*,char *,ulong)
test al, 1
jnz short loc_4B79E
jmp short loc_4B7F3
loc_4B79E:
lea rdi, [rbp+var_110]
call _strlen
mov [rbp+var_118], rax
mov rax, [rbp+var_118]
add rax, 1
cmp rax, [rbp+var_10]
ja short loc_4B7F1
cmp [rbp+var_118], 100h
jnb short loc_4B7D1
jmp short loc_4B7D6
loc_4B7D1:
call _abort
loc_4B7D6:
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_110]
mov rdx, [rbp+var_118]
add rdx, 1
call _memmove
loc_4B7F1:
jmp short $+2
loc_4B7F3:
add rsp, 120h
pop rbp
retn
|
char nglog::tools::`anonymous namespace'::DemangleInplace(
nglog::tools::_anonymous_namespace_ *this,
char *a2)
{
char result; // al
unsigned long long v3; // [rsp+8h] [rbp-118h]
char v4[256]; // [rsp+10h] [rbp-110h] BYREF
char *v5; // [rsp+110h] [rbp-10h]
nglog::tools *v6; // [rsp+118h] [rbp-8h]
v6 = this;
v5 = a2;
result = nglog::tools::Demangle(this, v4, (char *)qword_100);
if ( (result & 1) != 0 )
{
v3 = strlen(v4);
result = v3 + 1;
if ( v3 + 1 <= (unsigned long long)v5 )
{
if ( v3 >= 0x100 )
abort(v4, v4);
return memmove(v6, v4, v3 + 1);
}
}
return result;
}
|
DemangleInplace:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x120
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x110]
MOV EDX,0x100
CALL 0x0010df40
TEST AL,0x1
JNZ 0x0014b79e
JMP 0x0014b7f3
LAB_0014b79e:
LEA RDI,[RBP + -0x110]
CALL 0x001092f0
MOV qword ptr [RBP + -0x118],RAX
MOV RAX,qword ptr [RBP + -0x118]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x10]
JA 0x0014b7f1
CMP qword ptr [RBP + -0x118],0x100
JNC 0x0014b7d1
JMP 0x0014b7d6
LAB_0014b7d1:
CALL 0x001093b0
LAB_0014b7d6:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x110]
MOV RDX,qword ptr [RBP + -0x118]
ADD RDX,0x1
CALL 0x00109c10
LAB_0014b7f1:
JMP 0x0014b7f3
LAB_0014b7f3:
ADD RSP,0x120
POP RBP
RET
|
/* nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long) */
void nglog::tools::(anonymous_namespace)::DemangleInplace(char *param_1,ulong param_2)
{
ulong uVar1;
size_t sVar2;
char local_118 [256];
ulong local_18;
char *local_10;
local_18 = param_2;
local_10 = param_1;
uVar1 = Demangle(param_1,local_118,0x100);
if (((uVar1 & 1) != 0) && (sVar2 = strlen(local_118), sVar2 + 1 <= local_18)) {
if (0xff < sVar2) {
/* WARNING: Subroutine does not return */
abort();
}
memmove(local_10,local_118,sVar2 + 1);
}
return;
}
|
|
57,821
|
nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long)
|
ng-log[P]ng-log/src/symbolize.cc
|
ATTRIBUTE_NOINLINE
void DemangleInplace(char* out, size_t out_size) {
char demangled[256]; // Big enough for sane demangled symbols.
if (Demangle(out, demangled, sizeof(demangled))) {
// Demangling succeeded. Copy to out if the space allows.
size_t len = strlen(demangled);
if (len + 1 <= out_size) { // +1 for '\0'.
NGLOG_SAFE_ASSERT(len < sizeof(demangled));
memmove(out, demangled, len + 1);
}
}
}
|
O3
|
cpp
|
nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long):
pushq %r14
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rsi
movl $0x100, %edx # imm = 0x100
callq 0x9e6c
testb %al, %al
je 0x216f7
movq %rsp, %rdi
callq 0x7200
leaq 0x1(%rax), %rdx
cmpq %r14, %rdx
ja 0x216f7
cmpq $0x100, %rax # imm = 0x100
jae 0x21702
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7410
addq $0x108, %rsp # imm = 0x108
popq %rbx
popq %r14
retq
callq 0x72c0
|
_ZN5nglog5tools12_GLOBAL__N_115DemangleInplaceEPcm:
push r14
push rbx
sub rsp, 108h
mov r14, rsi
mov rbx, rdi
mov rsi, rsp; char *
mov edx, offset qword_100; char *
call _ZN5nglog5tools8DemangleEPKcPcm; nglog::tools::Demangle(char const*,char *,ulong)
test al, al
jz short loc_216F7
mov rdi, rsp
call _strlen
lea rdx, [rax+1]
cmp rdx, r14
ja short loc_216F7
cmp rax, 100h
jnb short loc_21702
mov rsi, rsp
mov rdi, rbx
call _memcpy
loc_216F7:
add rsp, 108h
pop rbx
pop r14
retn
loc_21702:
call _abort
|
unsigned long long nglog::tools::`anonymous namespace'::DemangleInplace(
nglog::tools::_anonymous_namespace_ *this,
char *a2)
{
unsigned long long result; // rax
char v3[280]; // [rsp+0h] [rbp-118h] BYREF
result = nglog::tools::Demangle(this, v3, (char *)qword_100);
if ( (_BYTE)result )
{
result = strlen(v3);
if ( result + 1 <= (unsigned long long)a2 )
{
if ( result >= 0x100 )
abort(v3);
return memcpy(this, v3, result + 1);
}
}
return result;
}
|
DemangleInplace:
PUSH R14
PUSH RBX
SUB RSP,0x108
MOV R14,RSI
MOV RBX,RDI
MOV RSI,RSP
MOV EDX,0x100
CALL 0x00109e6c
TEST AL,AL
JZ 0x001216f7
MOV RDI,RSP
CALL 0x00107200
LEA RDX,[RAX + 0x1]
CMP RDX,R14
JA 0x001216f7
CMP RAX,0x100
JNC 0x00121702
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00107410
LAB_001216f7:
ADD RSP,0x108
POP RBX
POP R14
RET
LAB_00121702:
CALL 0x001072c0
|
/* nglog::tools::(anonymous namespace)::DemangleInplace(char*, unsigned long) */
void nglog::tools::(anonymous_namespace)::DemangleInplace(char *param_1,ulong param_2)
{
char cVar1;
size_t sVar2;
char acStack_118 [264];
cVar1 = Demangle(param_1,acStack_118,0x100);
if (cVar1 != '\0') {
sVar2 = strlen(acStack_118);
if (sVar2 + 1 <= param_2) {
if (0xff < sVar2) {
/* WARNING: Subroutine does not return */
abort();
}
memcpy(param_1,acStack_118,sVar2 + 1);
}
}
return;
}
|
|
57,822
|
bool nlohmann::json_abi_v3_11_3::operator==<unsigned long, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, unsigned long)
|
monkey531[P]llama/common/json.hpp
|
bool operator==(const_reference lhs, ScalarType rhs) noexcept
{
return lhs == basic_json(rhs);
}
|
O3
|
cpp
|
bool nlohmann::json_abi_v3_11_3::operator==<unsigned long, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, unsigned long):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
callq 0x612da
movq %r14, %rdi
movl $0x1, %esi
callq 0x58f20
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8d8dc
movl %eax, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x58f20
movq %r14, %rdi
callq 0x5e40e
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_3eqImTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
xorps xmm0, xmm0
mov r14, rsp
movaps xmmword ptr [r14], xmm0
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_17number_unsigned_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_unsigned_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov ebx, eax
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 eax, ebx
add rsp, 18h
pop rbx
pop r14
retn
|
long long ZN8nlohmann16json_abi_v3_11_3eqImTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_(
unsigned __int8 *a1,
long long a2)
{
unsigned int v2; // ebx
_OWORD v4[2]; // [rsp+0h] [rbp-28h] BYREF
v4[0] = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)v4,
a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v4);
v2 = nlohmann::json_abi_v3_11_3::operator==(a1, (unsigned __int8 *)v4, (__m128d)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 *)v4);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v4);
return v2;
}
|
_ZN8nlohmann16json_abi_v3_11_3eqImTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
XORPS XMM0,XMM0
MOV R14,RSP
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
CALL 0x001612da
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158f20
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018d8dc
MOV EBX,EAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158f20
MOV RDI,R14
CALL 0x0015e40e
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
int4
_ZN8nlohmann16json_abi_v3_11_3eqImTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_
(basic_json *param_1)
{
int4 uVar1;
int8 local_28;
int8 uStack_20;
local_28 = 0;
uStack_20 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_28);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_28,0));
uVar1 = nlohmann::json_abi_v3_11_3::operator==(param_1,(basic_json *)&local_28);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_28,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_28);
return uVar1;
}
|
|
57,823
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const
|
monkey531[P]llama/common/minja.hpp
|
inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0x87a48
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4a8f8
jmp 0x87c9e
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x87a97
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x52814
movq %rbx, %rdi
movl $0x1, %esi
callq 0x52814
jmp 0x87c9e
testq %rax, %rax
je 0x87b09
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0x87af1
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x87a06
movq %r12, %rdi
movq %r15, %rsi
callq 0x53e2c
movq %r15, %rdi
xorl %esi, %esi
callq 0x52814
movq %r15, %rdi
callq 0x5f2cc
addq $0x50, %r14
cmpq %r13, %r14
jne 0x87ac0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x885f0
movq %rsp, %rdi
callq 0x53d5e
jmp 0x87c9e
testq %rcx, %rcx
je 0x87d19
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x4ae90
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0x87c40
leaq 0xa8(%rsp), %rbp
leaq 0x68(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0x87bbe
cmpl $0x4, %eax
je 0x87bbe
cmpl $0x3, %eax
jne 0x87bb4
leaq 0x40(%rsp), %rdi
callq 0x87a06
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x5471c
movq %rbx, %rdi
movq %r12, %rsi
callq 0x81894
movq %rax, %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x4a61e
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
jne 0x87c0c
leaq 0x40(%rsp), %r12
jmp 0x87c1c
addb $-0x5, %al
cmpb $0x3, %al
ja 0x87cb3
movq %rbp, %rdi
callq 0x87a06
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4bba0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x81894
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4a61e
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rcx
movq %rcx, %rax
movq %rbp, %r12
cmpq %rcx, %rdi
je 0x87c19
movq (%rax), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87c1c
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x52814
movq %r12, %rdi
callq 0x5f2cc
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x68(%rsp), %r12
jne 0x87b47
cmpq $0x0, 0x30(%r14)
je 0x87c9e
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5482a
movq %r14, %rdi
movl $0x1, %esi
callq 0x52814
leaq 0x39904(%rip), %rsi # 0xc1578
movq %rbx, %rdi
callq 0x7ad0a
leaq 0x50(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x4a61e
movq %r14, %rdi
xorl %esi, %esi
callq 0x52814
movq %r14, %rdi
callq 0x5f2cc
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a3b0
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4bba0
leaq 0x3986a(%rip), %rsi # 0xc154e
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x446ab
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1ac80
xorl %ebp, %ebp
movq 0x6d2e8(%rip), %rsi # 0xf4ff0
movq 0x6d261(%rip), %rdx # 0xf4f70
movq %r12, %rdi
callq 0x1ad60
jmp 0x87d74
movl $0x10, %edi
callq 0x1a3b0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x52b1c
leaq 0x39844(%rip), %rsi # 0xc1585
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x446ab
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1ac80
xorl %ebp, %ebp
movq 0x6d28b(%rip), %rsi # 0xf4ff0
movq 0x6d204(%rip), %rdx # 0xf4f70
movq %rbx, %rdi
callq 0x1ad60
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87d9a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87d9a
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87dbd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87dbd
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x87eea
movq %rbx, %rdi
callq 0x1a5a0
jmp 0x87eea
movq %rax, %r14
leaq 0x50(%rsp), %r15
jmp 0x87e98
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87e06
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87e06
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87e2e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87e2e
jmp 0x87ec3
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x87eaf
movq %r12, %rdi
callq 0x1a5a0
jmp 0x87eaf
movq %rax, %r14
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87e66
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87e66
movq %rax, %r14
leaq 0x40(%rsp), %r15
jmp 0x87e98
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87e90
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a7f0
jmp 0x87e90
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x52814
movq %r15, %rdi
callq 0x5f2cc
jmp 0x87eaf
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x52814
movq %rbx, %rdi
callq 0x5f2cc
jmp 0x87eea
movq %rax, %r14
jmp 0x87ee2
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x52814
movq %rbx, %rdi
callq 0x5f2cc
movq %rsp, %rdi
callq 0x53d5e
movq %r14, %rdi
callq 0x1adc0
|
_ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_87A48
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp loc_87C9E
loc_87A48:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_87A97
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp loc_87C9E
loc_87A97:
test rax, rax
jz short loc_87B09
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_87AF1
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_87AC0:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 50h ; 'P'
cmp r14, r13
jnz short loc_87AC0
loc_87AF1:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_87C9E
loc_87B09:
test rcx, rcx
jz loc_87D19
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_87C40
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_80]
loc_87B47:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_87BBE
cmp eax, 4
jz short loc_87BBE
cmp eax, 3
jnz short loc_87BB4
lea rdi, [rsp+0E8h+var_A8]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_A8]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_60]
lea rcx, [rsp+0E8h+var_50]
mov rax, rcx
cmp rdi, rcx
jnz short loc_87C0C
lea r12, [rsp+0E8h+var_A8]
jmp short loc_87C1C
loc_87BB4:
add al, 0FBh
cmp al, 3
ja loc_87CB3
loc_87BBE:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_80]; void *
lea rcx, [rsp+0E8h+var_70]
mov rax, rcx
mov r12, rbp
cmp rdi, rcx
jz short loc_87C19
loc_87C0C:
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87C1C
loc_87C19:
mov r12, rbp
loc_87C1C:
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_80]
jnz loc_87B47
loc_87C40:
cmp qword ptr [r14+30h], 0
jz short loc_87C9E
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_98]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r14, [rsp+0E8h+var_98]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_87C9E:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_87CB3:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_87D74
loc_87D19:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_87D74:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87D9A
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87D9A
mov r14, rax
mov bpl, 1
loc_87D9A:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87DBD
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87DBD
mov r14, rax
mov bpl, 1
loc_87DBD:
test bpl, bpl
jz loc_87EEA
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_87EEA
mov r14, rax
lea r15, [rsp+0E8h+var_98]
jmp loc_87E98
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87E06
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87E06
mov r14, rax
mov bpl, 1
loc_87E06:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87E2E
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87E2E
jmp loc_87EC3
mov r14, rax
mov bpl, 1
loc_87E2E:
test bpl, bpl
jz short loc_87EAF
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_87EAF
mov r14, rax
lea rax, [rsp+0E8h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87E66
mov rsi, [rsp+0E8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87E66
mov r14, rax
loc_87E66:
lea r15, [rsp+0E8h+var_A8]
jmp short loc_87E98
mov r14, rax
lea rax, [rsp+0E8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_87E90
mov rsi, [rsp+0E8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87E90
mov r14, rax
loc_87E90:
lea r15, [rsp+0E8h+var_40]
loc_87E98:
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_87EAF
mov r14, rax
loc_87EAF:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_87EEA
loc_87EC3:
mov r14, rax
jmp short loc_87EE2
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_87EE2:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_87EEA:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1,
long long a2)
{
unsigned long long v4; // rax
long long v5; // rcx
long long v6; // rdx
long long v7; // r14
long long v8; // r13
long long v9; // rax
_BYTE *v10; // r15
_BYTE *v11; // r13
_BYTE *v12; // rsi
int v13; // eax
char *v14; // rax
char *v15; // r12
void *v16; // rdi
_QWORD *v17; // rax
char *v18; // rax
char *v19; // rax
void *v21; // r12
void *exception; // rbx
__int128 v23; // [rsp+0h] [rbp-E8h] BYREF
long long v24; // [rsp+10h] [rbp-D8h]
void *v25[2]; // [rsp+20h] [rbp-C8h] BYREF
char v26[16]; // [rsp+40h] [rbp-A8h] BYREF
__int128 v27; // [rsp+50h] [rbp-98h] BYREF
void *v28[2]; // [rsp+68h] [rbp-80h] BYREF
_QWORD v29[2]; // [rsp+78h] [rbp-70h] BYREF
long long v30[2]; // [rsp+88h] [rbp-60h] BYREF
_QWORD v31[2]; // [rsp+98h] [rbp-50h] BYREF
char v32[64]; // [rsp+A8h] [rbp-40h] BYREF
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
if ( !(v6 | v5 | v4) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
a2 + 64);
return a1;
}
if ( v6 == 0 && (v5 | v4) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
if ( v4 )
{
v23 = 0LL;
v24 = 0LL;
v7 = *(_QWORD *)v4;
v8 = *(_QWORD *)(v4 + 8);
if ( *(_QWORD *)v4 != v8 )
{
do
{
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v25,
v7);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
(long long)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25);
v7 += 80LL;
}
while ( v7 != v8 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v23);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v23);
return a1;
}
if ( !v5 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v23, (long long)"get<json> not defined for this value type: ", (long long)v25);
std::runtime_error::runtime_error(exception, &v23);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL,
0LL,
0LL,
1LL);
v9 = *(_QWORD *)(a2 + 32);
v10 = *(_BYTE **)v9;
v11 = *(_BYTE **)(v9 + 8);
if ( *(_BYTE **)v9 != v11 )
{
while ( 1 )
{
v12 = v10 + 16;
v13 = (unsigned __int8)*v10;
if ( !*v10 || v13 == 4 )
goto LABEL_17;
if ( v13 != 3 )
break;
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v26,
v12);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v30,
(long long)v10);
v14 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
a1,
v30);
v15 = v26;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v14,
v26);
v16 = (void *)v30[0];
v17 = v31;
if ( (_QWORD *)v30[0] != v31 )
goto LABEL_18;
v15 = v26;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)v15);
v10 += 96;
if ( v10 == v11 )
goto LABEL_21;
}
if ( (unsigned __int8)(v13 - 5) > 3u )
{
v21 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v25,
(long long)v10,
-1,
32,
0,
0);
std::operator+<char>((long long)&v23, (long long)"Invalid key type for conversion to JSON: ", (long long)v25);
std::runtime_error::runtime_error(v21, &v23);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v32,
v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v28,
(long long)v10,
-1,
32,
0,
0);
v18 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
a1,
(long long *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v18,
v32);
v16 = v28[0];
v17 = v29;
v15 = v32;
if ( v28[0] == v29 )
{
v15 = v32;
goto LABEL_20;
}
LABEL_18:
operator delete(v16, *v17 + 1LL);
goto LABEL_20;
}
LABEL_21:
if ( *(_QWORD *)(a2 + 48) )
{
v27 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)&v27,
1u);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v27);
v19 = (char *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(long long)"__callable__");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v19,
(char *)&v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)&v27);
}
return a1;
}
|
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x00187a48
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0014a8f8
JMP 0x00187c9e
LAB_00187a48:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x00187a97
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00152814
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00152814
JMP 0x00187c9e
LAB_00187a97:
TEST RAX,RAX
JZ 0x00187b09
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x00187af1
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_00187ac0:
MOV RDI,R15
MOV RSI,R14
CALL 0x00187a06
LAB_00187acb:
MOV RDI,R12
MOV RSI,R15
CALL 0x00153e2c
MOV RDI,R15
XOR ESI,ESI
CALL 0x00152814
MOV RDI,R15
CALL 0x0015f2cc
ADD R14,0x50
CMP R14,R13
JNZ 0x00187ac0
LAB_00187af1:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x001885f0
LAB_00187afc:
MOV RDI,RSP
CALL 0x00153d5e
JMP 0x00187c9e
LAB_00187b09:
TEST RCX,RCX
JZ 0x00187d19
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x0014ae90
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x00187c40
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x68]
LAB_00187b47:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x00187bbe
CMP EAX,0x4
JZ 0x00187bbe
CMP EAX,0x3
JNZ 0x00187bb4
LAB_00187b5d:
LEA RDI,[RSP + 0x40]
CALL 0x00187a06
LAB_00187b67:
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R15
CALL 0x0015471c
LAB_00187b7a:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00181894
MOV RDI,RAX
LEA R12,[RSP + 0x40]
MOV RSI,R12
CALL 0x0014a61e
MOV RDI,qword ptr [RSP + 0x88]
LEA RCX,[RSP + 0x98]
MOV RAX,RCX
CMP RDI,RCX
JNZ 0x00187c0c
LEA R12,[RSP + 0x40]
JMP 0x00187c1c
LAB_00187bb4:
ADD AL,0xfb
CMP AL,0x3
JA 0x00187cb3
LAB_00187bbe:
MOV RDI,RBP
CALL 0x00187a06
LAB_00187bc6:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0014bba0
LAB_00187be1:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00181894
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0014a61e
MOV RDI,qword ptr [RSP + 0x68]
LEA RCX,[RSP + 0x78]
MOV RAX,RCX
MOV R12,RBP
CMP RDI,RCX
JZ 0x00187c19
LAB_00187c0c:
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a7f0
JMP 0x00187c1c
LAB_00187c19:
MOV R12,RBP
LAB_00187c1c:
MOV RDI,R12
XOR ESI,ESI
CALL 0x00152814
MOV RDI,R12
CALL 0x0015f2cc
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x68]
JNZ 0x00187b47
LAB_00187c40:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x00187c9e
XORPS XMM0,XMM0
LEA R14,[RSP + 0x50]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015482a
MOV RDI,R14
MOV ESI,0x1
CALL 0x00152814
LAB_00187c6d:
LEA RSI,[0x1c1578]
MOV RDI,RBX
CALL 0x0017ad0a
LAB_00187c7c:
LEA R14,[RSP + 0x50]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0014a61e
MOV RDI,R14
XOR ESI,ESI
CALL 0x00152814
MOV RDI,R14
CALL 0x0015f2cc
LAB_00187c9e:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00187cb3:
MOV EDI,0x10
CALL 0x0011a3b0
MOV R12,RAX
LAB_00187cc0:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0014bba0
LAB_00187cdd:
LEA RSI,[0x1c154e]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001446ab
MOV BPL,0x1
LAB_00187cf4:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011ac80
XOR EBP,EBP
MOV RSI,qword ptr [0x001f4ff0]
MOV RDX,qword ptr [0x001f4f70]
MOV RDI,R12
CALL 0x0011ad60
LAB_00187d19:
MOV EDI,0x10
CALL 0x0011a3b0
MOV RBX,RAX
LAB_00187d26:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00152b1c
LAB_00187d3a:
LEA RSI,[0x1c1585]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001446ab
MOV BPL,0x1
LAB_00187d51:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011ac80
XOR EBP,EBP
MOV RSI,qword ptr [0x001f4ff0]
MOV RDX,qword ptr [0x001f4f70]
MOV RDI,RBX
CALL 0x0011ad60
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >() const */
void minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(void)
{
char cVar1;
long lVar2;
char *pcVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar4;
long *plVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*in_RDI;
long *plVar8;
data *this;
long lVar9;
char *pcVar10;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
data local_a8 [16];
int8 local_98;
int8 uStack_90;
long *local_80 [2];
long local_70 [2];
long *local_60 [2];
long local_50 [2];
data local_40 [16];
plVar5 = *(long **)(in_RSI + 0x10);
lVar9 = *(long *)(in_RSI + 0x20);
if ((plVar5 == (long *)0x0 && lVar9 == 0) && *(long *)(in_RSI + 0x30) == 0) {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar5 == (long *)0x0 && lVar9 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(in_RDI + 8) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
}
else if (plVar5 == (long *)0x0) {
if (lVar9 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00187d26 to 00187d39 has its CatchHandler @ 00187db7 */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 00187d3a to 00187d4d has its CatchHandler @ 00187d94 */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 00187d51 to 00187d73 has its CatchHandler @ 00187d74 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001f4ff0,PTR__runtime_error_001f4f70);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json();
pcVar10 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar3 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar10 != pcVar3) {
do {
cVar1 = *pcVar10;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_00187bbe:
/* try { // try from 00187bbe to 00187bc5 has its CatchHandler @ 00187eac */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00187bc6 to 00187be0 has its CatchHandler @ 00187e8d */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_80,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 00187be1 to 00187beb has its CatchHandler @ 00187e6d */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_40);
plVar5 = local_70;
plVar8 = local_80[0];
this = local_40;
if (local_80[0] != plVar5) {
LAB_00187c0c:
operator_delete(plVar8,*plVar5 + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar10 + 0x10);
/* try { // try from 00187cc0 to 00187cdc has its CatchHandler @ 00187e28 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_c8,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 00187cdd to 00187cf0 has its CatchHandler @ 00187e00 */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 00187cf4 to 00187d16 has its CatchHandler @ 00187de0 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001f4ff0,PTR__runtime_error_001f4f70);
}
goto LAB_00187bbe;
}
/* try { // try from 00187b5d to 00187b66 has its CatchHandler @ 00187eac */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00187b67 to 00187b79 has its CatchHandler @ 00187e63 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_60,pcVar10);
/* try { // try from 00187b7a to 00187b84 has its CatchHandler @ 00187e3d */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_a8);
plVar5 = local_50;
plVar8 = local_60[0];
this = local_a8;
if (local_60[0] != plVar5) goto LAB_00187c0c;
this = local_a8;
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(this,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(this);
pcVar10 = pcVar10 + 0x60;
} while (pcVar10 != pcVar3);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_98 = 0;
uStack_90 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_98,1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_98,0));
/* try { // try from 00187c6d to 00187c7b has its CatchHandler @ 00187dd3 */
pbVar6 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(in_RDI,"__callable__");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)pbVar6,(data *)&local_98);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_98,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_98);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar9 = *plVar5;
lVar2 = plVar5[1];
if (lVar9 != lVar2) {
do {
/* try { // try from 00187ac0 to 00187aca has its CatchHandler @ 00187ec3 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00187acb to 00187ad5 has its CatchHandler @ 00187ec8 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,(basic_json *)local_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_c8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_c8);
lVar9 = lVar9 + 0x50;
} while (lVar9 != lVar2);
}
/* try { // try from 00187af1 to 00187afb has its CatchHandler @ 00187e23 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8);
}
return;
}
|
|
57,824
|
minja::Value::contains(minja::Value const&) const
|
llama.cpp/common/minja/minja.hpp
|
bool contains(const Value & value) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (array_) {
for (const auto& item : *array_) {
if (item.to_bool() && item == value) return true;
}
return false;
} else if (object_) {
if (!value.is_hashable()) throw std::runtime_error("Unashable type: " + value.dump());
return object_->find(value.primitive_) != object_->end();
} else {
throw std::runtime_error("contains can only be called on arrays and objects: " + dump());
}
}
|
O3
|
cpp
|
minja::Value::contains(minja::Value const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rax
movq 0x20(%rdi), %r12
testq %r12, %r12
jne 0xc3a10
testq %rax, %rax
jne 0xc3a10
cmpb $0x0, 0x40(%r15)
jne 0xc3a10
cmpq $0x0, 0x30(%r15)
je 0xc3ac0
testq %rax, %rax
je 0xc3a46
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0xc3a42
movq %r14, %rdi
callq 0xc2700
testb %al, %al
je 0xc3a3c
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc3dec
testb %al, %al
jne 0xc3ab1
addq $0x50, %r14
jmp 0xc3a1c
xorl %eax, %eax
jmp 0xc3ab3
testq %r12, %r12
je 0xc3af2
cmpq $0x0, 0x10(%rbx)
jne 0xc3b4f
cmpq $0x0, 0x20(%rbx)
jne 0xc3b4f
cmpq $0x0, 0x30(%rbx)
jne 0xc3b4f
movq (%r12), %r14
cmpq 0x8(%r12), %r14
je 0xc3aa6
addq $0x40, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbfd6c
testb %al, %al
jne 0xc3a99
addq $0x60, %r14
cmpq 0x8(%r12), %r14
jne 0xc3a7f
movq %r14, %rax
movq 0x20(%r15), %rcx
movq 0x8(%rcx), %r14
jmp 0xc3aa9
movq %r14, %rax
cmpq %r14, %rax
setne %al
jmp 0xc3ab3
movb $0x1, %al
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20680
movq %rax, %r14
leaq 0x5f2fa(%rip), %rsi # 0x122dce
movq %rax, %rdi
callq 0x20450
movq 0xa24dd(%rip), %rsi # 0x165fc0
movq 0xa2496(%rip), %rdx # 0x165f80
movq %r14, %rdi
callq 0x20ab0
movl $0x10, %edi
callq 0x20680
movq %rax, %r14
movq %rsp, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0xb99d8
leaq 0x5f307(%rip), %rsi # 0x122e1f
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0xb3278
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x204b0
xorl %ebp, %ebp
movq 0xa2482(%rip), %rsi # 0x165fc0
movq 0xa243b(%rip), %rdx # 0x165f80
movq %r14, %rdi
callq 0x20ab0
jmp 0xc3baa
movl $0x10, %edi
callq 0x20680
movq %rax, %r14
movq %rsp, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0xb99d8
leaq 0x5f299(%rip), %rsi # 0x122e0e
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0xb3278
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x204b0
xorl %ebp, %ebp
movq 0xa2425(%rip), %rsi # 0x165fc0
movq 0xa23de(%rip), %rdx # 0x165f80
movq %r14, %rdi
callq 0x20ab0
jmp 0xc3bae
jmp 0xc3bee
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc3bcc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc3be7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
testb %bpl, %bpl
jne 0xc3c15
jmp 0xc3c1d
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc3c15
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xc3c15
jmp 0xc3c12
jmp 0xc3c12
movq %rax, %rbx
movq %r14, %rdi
callq 0x20f60
movq %rbx, %rdi
callq 0x20b50
nop
|
_ZNK5minja5Value8containsERKS0_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov rbx, rsi
mov r15, rdi
mov rax, [rdi+10h]
mov r12, [rdi+20h]
test r12, r12
jnz short loc_C3A10
test rax, rax
jnz short loc_C3A10
cmp byte ptr [r15+40h], 0
jnz short loc_C3A10
cmp qword ptr [r15+30h], 0
jz loc_C3AC0
loc_C3A10:
test rax, rax
jz short loc_C3A46
mov r14, [rax]
mov r15, [rax+8]
loc_C3A1C:
cmp r14, r15
jz short loc_C3A42
mov rdi, r14; this
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
test al, al
jz short loc_C3A3C
mov rdi, r14
mov rsi, rbx
call _ZNK5minja5ValueeqERKS0_; minja::Value::operator==(minja::Value const&)
test al, al
jnz short loc_C3AB1
loc_C3A3C:
add r14, 50h ; 'P'
jmp short loc_C3A1C
loc_C3A42:
xor eax, eax
jmp short loc_C3AB3
loc_C3A46:
test r12, r12
jz loc_C3AF2
cmp qword ptr [rbx+10h], 0
jnz loc_C3B4F
cmp qword ptr [rbx+20h], 0
jnz loc_C3B4F
cmp qword ptr [rbx+30h], 0
jnz loc_C3B4F
mov r14, [r12]
cmp r14, [r12+8]
jz short loc_C3AA6
add rbx, 40h ; '@'
loc_C3A7F:
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
test al, al
jnz short loc_C3A99
add r14, 60h ; '`'
cmp r14, [r12+8]
jnz short loc_C3A7F
loc_C3A99:
mov rax, r14
mov rcx, [r15+20h]
mov r14, [rcx+8]
jmp short loc_C3AA9
loc_C3AA6:
mov rax, r14
loc_C3AA9:
cmp rax, r14
setnz al
jmp short loc_C3AB3
loc_C3AB1:
mov al, 1
loc_C3AB3:
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_C3AC0:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, 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, r14; void *
call ___cxa_throw
loc_C3AF2:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aContainsCanOnl; "contains can only be called on arrays a"...
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
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
jmp short loc_C3BAA
loc_C3B4F:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
mov rsi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
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
loc_C3BAA:
jmp short loc_C3BAE
jmp short loc_C3BEE
loc_C3BAE:
mov rbx, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C3BCC
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3BCC:
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C3BE7
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3BE7:
test bpl, bpl
jnz short loc_C3C15
jmp short loc_C3C1D
loc_C3BEE:
mov rbx, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C3C15
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_C3C15
jmp short loc_C3C12
jmp short $+2
loc_C3C12:
mov rbx, rax
loc_C3C15:
mov rdi, r14; void *
call ___cxa_free_exception
loc_C3C1D:
mov rdi, rbx
call __Unwind_Resume
|
bool minja::Value::contains(minja::Value *this, const minja::Value *a2, __m128d a3)
{
minja::Value **v3; // rax
unsigned __int8 **v4; // r12
minja::Value *v5; // r14
minja::Value *v6; // r15
unsigned __int8 *v8; // r14
unsigned __int8 *v9; // rax
std::runtime_error *exception; // r14
void *v11; // r14
void *v12; // r14
_BYTE v13[16]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v14[2]; // [rsp+20h] [rbp-48h] BYREF
v3 = (minja::Value **)*((_QWORD *)this + 2);
v4 = (unsigned __int8 **)*((_QWORD *)this + 4);
if ( !v4 && !v3 && !*((_BYTE *)this + 64) && !*((_QWORD *)this + 6) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v3 )
{
v5 = *v3;
v6 = v3[1];
while ( 1 )
{
if ( v5 == v6 )
return 0;
if ( (unsigned __int8)minja::Value::to_bool(v5) && (unsigned __int8)minja::Value::operator==(v5, a2) )
break;
v5 = (minja::Value *)((char *)v5 + 80);
}
return 1;
}
else
{
if ( !v4 )
{
v11 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v13, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>(v14, (long long)"contains can only be called on arrays and objects: ", (long long)v13);
std::runtime_error::runtime_error(v11, v14);
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) )
{
v12 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v13, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>(v14, (long long)"Unashable type: ", (long long)v13);
std::runtime_error::runtime_error(v12, v14);
__cxa_throw(
v12,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v8 = *v4;
if ( *v4 == v4[1] )
{
v9 = *v4;
}
else
{
do
{
if ( (unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v8, (unsigned __int8 *)a2 + 64, a3) )
break;
v8 += 96;
}
while ( v8 != v4[1] );
v9 = v8;
v8 = *(unsigned __int8 **)(*((_QWORD *)this + 4) + 8LL);
}
return v9 != v8;
}
}
|
contains:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI + 0x10]
MOV R12,qword ptr [RDI + 0x20]
TEST R12,R12
JNZ 0x001c3a10
TEST RAX,RAX
JNZ 0x001c3a10
CMP byte ptr [R15 + 0x40],0x0
JNZ 0x001c3a10
CMP qword ptr [R15 + 0x30],0x0
JZ 0x001c3ac0
LAB_001c3a10:
TEST RAX,RAX
JZ 0x001c3a46
MOV R14,qword ptr [RAX]
MOV R15,qword ptr [RAX + 0x8]
LAB_001c3a1c:
CMP R14,R15
JZ 0x001c3a42
MOV RDI,R14
CALL 0x001c2700
TEST AL,AL
JZ 0x001c3a3c
MOV RDI,R14
MOV RSI,RBX
CALL 0x001c3dec
TEST AL,AL
JNZ 0x001c3ab1
LAB_001c3a3c:
ADD R14,0x50
JMP 0x001c3a1c
LAB_001c3a42:
XOR EAX,EAX
JMP 0x001c3ab3
LAB_001c3a46:
TEST R12,R12
JZ 0x001c3af2
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001c3b4f
CMP qword ptr [RBX + 0x20],0x0
JNZ 0x001c3b4f
CMP qword ptr [RBX + 0x30],0x0
JNZ 0x001c3b4f
MOV R14,qword ptr [R12]
CMP R14,qword ptr [R12 + 0x8]
JZ 0x001c3aa6
ADD RBX,0x40
LAB_001c3a7f:
MOV RDI,R14
MOV RSI,RBX
CALL 0x001bfd6c
TEST AL,AL
JNZ 0x001c3a99
ADD R14,0x60
CMP R14,qword ptr [R12 + 0x8]
JNZ 0x001c3a7f
LAB_001c3a99:
MOV RAX,R14
MOV RCX,qword ptr [R15 + 0x20]
MOV R14,qword ptr [RCX + 0x8]
JMP 0x001c3aa9
LAB_001c3aa6:
MOV RAX,R14
LAB_001c3aa9:
CMP RAX,R14
SETNZ AL
JMP 0x001c3ab3
LAB_001c3ab1:
MOV AL,0x1
LAB_001c3ab3:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001c3ac0:
MOV EDI,0x10
CALL 0x00120680
MOV R14,RAX
LAB_001c3acd:
LEA RSI,[0x222dce]
MOV RDI,RAX
CALL 0x00120450
LAB_001c3adc:
MOV RSI,qword ptr [0x00265fc0]
MOV RDX,qword ptr [0x00265f80]
MOV RDI,R14
CALL 0x00120ab0
LAB_001c3af2:
MOV EDI,0x10
CALL 0x00120680
MOV R14,RAX
LAB_001c3aff:
MOV RDI,RSP
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001b99d8
LAB_001c3b11:
LEA RSI,[0x222e1f]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001b3278
MOV BPL,0x1
LAB_001c3b28:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x001204b0
XOR EBP,EBP
MOV RSI,qword ptr [0x00265fc0]
MOV RDX,qword ptr [0x00265f80]
MOV RDI,R14
CALL 0x00120ab0
LAB_001c3b4f:
MOV EDI,0x10
CALL 0x00120680
MOV R14,RAX
LAB_001c3b5c:
MOV RDI,RSP
MOV RSI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001b99d8
LAB_001c3b6e:
LEA RSI,[0x222e0e]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001b3278
MOV BPL,0x1
LAB_001c3b85:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x001204b0
XOR EBP,EBP
MOV RSI,qword ptr [0x00265fc0]
MOV RDX,qword ptr [0x00265f80]
MOV RDI,R14
CALL 0x00120ab0
|
/* minja::Value::contains(minja::Value const&) const */
bool __thiscall minja::Value::contains(Value *this,Value *param_1)
{
int8 *puVar1;
long *plVar2;
Value *pVVar3;
char cVar4;
runtime_error *prVar5;
Value *this_00;
basic_json *pbVar6;
basic_json *pbVar7;
bool bVar8;
int1 auStack_68 [32];
string local_48 [32];
puVar1 = *(int8 **)(this + 0x10);
plVar2 = *(long **)(this + 0x20);
if ((((plVar2 == (long *)0x0) && (puVar1 == (int8 *)0x0)) && (this[0x40] == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001c3acd to 001c3adb has its CatchHandler @ 001c3c12 */
std::runtime_error::runtime_error(prVar5,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00265fc0,PTR__runtime_error_00265f80);
}
if (puVar1 == (int8 *)0x0) {
if (plVar2 == (long *)0x0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001c3aff to 001c3b10 has its CatchHandler @ 001c3c10 */
dump_abi_cxx11_((int)auStack_68,SUB81(this,0));
/* try { // try from 001c3b11 to 001c3b24 has its CatchHandler @ 001c3bee */
std::operator+((char *)local_48,
(string *)"contains can only be called on arrays and objects: ");
/* try { // try from 001c3b28 to 001c3b4c has its CatchHandler @ 001c3bae */
std::runtime_error::runtime_error(prVar5,local_48);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00265fc0,PTR__runtime_error_00265f80);
}
if (((*(long *)(param_1 + 0x10) != 0) || (*(long *)(param_1 + 0x20) != 0)) ||
(*(long *)(param_1 + 0x30) != 0)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001c3b5c to 001c3b6d has its CatchHandler @ 001c3c0e */
dump_abi_cxx11_((int)auStack_68,SUB81(param_1,0));
/* try { // try from 001c3b6e to 001c3b81 has its CatchHandler @ 001c3bac */
std::operator+((char *)local_48,(string *)"Unashable type: ");
/* try { // try from 001c3b85 to 001c3ba9 has its CatchHandler @ 001c3baa */
std::runtime_error::runtime_error(prVar5,local_48);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_00265fc0,PTR__runtime_error_00265f80);
}
pbVar6 = (basic_json *)*plVar2;
pbVar7 = pbVar6;
if (pbVar6 != (basic_json *)plVar2[1]) {
do {
cVar4 = nlohmann::json_abi_v3_11_3::operator==(pbVar6,(basic_json *)(param_1 + 0x40));
if (cVar4 != '\0') break;
pbVar6 = pbVar6 + 0x60;
} while (pbVar6 != (basic_json *)plVar2[1]);
pbVar7 = *(basic_json **)(*(long *)(this + 0x20) + 8);
}
bVar8 = pbVar6 != pbVar7;
}
else {
pVVar3 = (Value *)puVar1[1];
for (this_00 = (Value *)*puVar1; this_00 != pVVar3; this_00 = this_00 + 0x50) {
cVar4 = to_bool(this_00);
if ((cVar4 != '\0') && (cVar4 = operator==(this_00,param_1), cVar4 != '\0')) {
return true;
}
}
bVar8 = false;
}
return bVar8;
}
|
|
57,825
|
Catch::TestSpec::NamePattern::NamePattern(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
TestSpec::NamePattern::NamePattern( std::string const& name, std::string const& filterString )
: Pattern( filterString )
, m_wildcardPattern( toLower( name ), CaseSensitive::No )
{}
|
O3
|
cpp
|
Catch::TestSpec::NamePattern::NamePattern(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xd60da(%rip), %r12 # 0x12d408
addq $0x10, %r12
movq %r12, (%rdi)
addq $0x8, %rdi
leaq 0x18(%rbx), %r15
movq %r15, 0x8(%rbx)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
callq 0x251d8
leaq 0xd60e1(%rip), %rax # 0x12d438
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x573e7
leaq 0x28(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movl $0x1, %edx
callq 0x63e08
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57399
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x573c8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
jmp 0x573c8
movq %rax, %r14
movq %r12, (%rbx)
movq 0x8(%rbx), %rdi
cmpq %r15, %rdi
je 0x573df
movq (%r15), %rsi
incq %rsi
callq 0x17150
movq %r14, %rdi
callq 0x17740
|
_ZN5Catch8TestSpec11NamePatternC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_:
push r15; Alternative name is 'Catch::TestSpec::NamePattern::NamePattern(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)'
push r14
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
lea r12, _ZTVN5Catch8TestSpec7PatternE; `vtable for'Catch::TestSpec::Pattern
add r12, 10h
mov [rdi], r12
add rdi, 8
lea r15, [rbx+18h]
mov [rbx+8], r15
mov rsi, [rdx]
mov rdx, [rdx+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, _ZTVN5Catch8TestSpec11NamePatternE; `vtable for'Catch::TestSpec::NamePattern
add rax, 10h
mov [rbx], rax
lea rdi, [rsp+48h+var_40]
mov rsi, r14
call _ZN5Catch7toLowerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Catch::toLower(std::string const&)
lea rdi, [rbx+28h]
lea rsi, [rsp+48h+var_40]
mov edx, 1
call _ZN5Catch15WildcardPatternC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13CaseSensitiveE; Catch::WildcardPattern::WildcardPattern(std::string const&,Catch::CaseSensitive)
lea rax, [rsp+48h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_57399
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_57399:
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_573C8
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_573C8
mov r14, rax
loc_573C8:
mov [rbx], r12
mov rdi, [rbx+8]; void *
cmp rdi, r15
jz short loc_573DF
mov rsi, [r15]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_573DF:
mov rdi, r14
call __Unwind_Resume
|
void Catch::TestSpec::NamePattern::NamePattern(_QWORD *a1, long long a2, long long a3)
{
void *v3[2]; // [rsp+8h] [rbp-40h] BYREF
long long v4; // [rsp+18h] [rbp-30h] BYREF
*a1 = &`vtable for'Catch::TestSpec::Pattern + 2;
a1[1] = a1 + 3;
std::string::_M_construct<char *>(a1 + 1, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8));
*a1 = &`vtable for'Catch::TestSpec::NamePattern + 2;
Catch::toLower(v3, a2);
Catch::WildcardPattern::WildcardPattern(a1 + 5, v3, 1LL);
if ( v3[0] != &v4 )
operator delete(v3[0], v4 + 1);
}
|
NamePattern:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
LEA R12,[0x22d408]
ADD R12,0x10
MOV qword ptr [RDI],R12
ADD RDI,0x8
LEA R15,[RBX + 0x18]
MOV qword ptr [RBX + 0x8],R15
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
ADD RDX,RSI
CALL 0x001251d8
LEA RAX,[0x22d438]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LAB_0015735e:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x001573e7
LEA RDI,[RBX + 0x28]
LAB_0015736f:
LEA RSI,[RSP + 0x8]
MOV EDX,0x1
CALL 0x00163e08
LAB_0015737e:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00157399
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00117150
LAB_00157399:
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Catch::TestSpec::NamePattern::NamePattern(std::__cxx11::string const&, std::__cxx11::string
const&) */
void __thiscall
Catch::TestSpec::NamePattern::NamePattern(NamePattern *this,string *param_1,string *param_2)
{
long *local_40 [2];
long local_30 [2];
*(int ***)this = &PTR__Pattern_0022d418;
*(NamePattern **)(this + 8) = this + 0x18;
std::__cxx11::string::_M_construct<char*>
(this + 8,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
*(int ***)this = &PTR__NamePattern_0022d448;
/* try { // try from 0015735e to 0015736a has its CatchHandler @ 001573c5 */
toLower((Catch *)local_40,param_1);
/* try { // try from 0015736f to 0015737d has its CatchHandler @ 001573a5 */
WildcardPattern::WildcardPattern((WildcardPattern *)(this + 0x28),local_40,1);
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
return;
}
|
|
57,826
|
LefDefParser::defiPin::addLayer(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinCap.cpp
|
void defiPin::addLayer(const char* layer) {
if (numLayers_ >= layersAllocated_) {
int i;
char** newl;
int *nxl, *nyl, *nxh, *nyh;
int *lms, *lew, *lm;
layersAllocated_ = layersAllocated_ ?
layersAllocated_ * 2 : 8;
newl = (char**)malloc(layersAllocated_ * sizeof(char*));
nxl = (int*)malloc(layersAllocated_ * sizeof(int));
nyl = (int*)malloc(layersAllocated_ * sizeof(int));
nxh = (int*)malloc(layersAllocated_ * sizeof(int));
nyh = (int*)malloc(layersAllocated_ * sizeof(int));
lms = (int*)malloc(layersAllocated_ * sizeof(int));
lew = (int*)malloc(layersAllocated_ * sizeof(int));
lm = (int*)malloc(layersAllocated_ * sizeof(int));
for (i = 0; i < numLayers_; i++) {
newl[i] = layers_[i];
nxl[i] = xl_[i];
nyl[i] = yl_[i];
nxh[i] = xh_[i];
nyh[i] = yh_[i];
lms[i] = layerMinSpacing_[i];
lew[i] = layerEffectiveWidth_[i];
lm[i] = layerMask_[i];
}
if (numLayers_ > 0) {
free((char*)layers_);
free((char*)xl_);
free((char*)yl_);
free((char*)xh_);
free((char*)yh_);
free((char*)layerMinSpacing_);
free((char*)layerMask_);
free((char*)layerEffectiveWidth_);
}
layers_ = newl;
xl_ = nxl;
yl_ = nyl;
xh_ = nxh;
yh_ = nyh;
layerMinSpacing_ = lms;
layerEffectiveWidth_ = lew;
layerMask_ = lm;
}
layers_[numLayers_] = (char*)malloc(strlen(layer)+1);
strcpy(layers_[numLayers_], defData->DEFCASE(layer));
xl_[numLayers_] = 0;
yl_[numLayers_] = 0;
xh_[numLayers_] = 0;
yh_[numLayers_] = 0;
layerMinSpacing_[numLayers_] = -1;
layerMask_[numLayers_] = 0;
layerEffectiveWidth_[numLayers_] = -1;
numLayers_ += 1;
}
|
O3
|
cpp
|
LefDefParser::defiPin::addLayer(char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbp
movq %rdi, %rbx
movl 0x78(%rdi), %eax
movl 0x7c(%rdi), %r15d
cmpl %eax, %r15d
jge 0x1b07f
movq 0x40(%rbx), %r14
jmp 0x1b280
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x8, %eax
cmovnel %ecx, %eax
movl %eax, 0x78(%rbx)
movslq %eax, %r13
leaq (,%r13,8), %rdi
callq 0x6270
movq %rax, %r14
shlq $0x2, %r13
movq %r13, %rdi
callq 0x6270
movq %rax, 0x28(%rsp)
movq %r13, %rdi
callq 0x6270
movq %rax, %r12
movq %r13, %rdi
callq 0x6270
movq %rax, 0x20(%rsp)
movq %r13, %rdi
callq 0x6270
movq %rax, 0x18(%rsp)
movq %r13, %rdi
callq 0x6270
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0x6270
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0x6270
movq %rax, %r13
testl %r15d, %r15d
jle 0x1b244
movq %rbp, 0x40(%rsp)
movq 0x40(%rbx), %rax
movq %rax, 0x60(%rsp)
movq 0x48(%rbx), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rbx), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rbx), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%rbx), %rdi
movq 0x68(%rbx), %r8
movq 0x70(%rbx), %r9
movq %rbx, 0x30(%rsp)
movq 0x80(%rbx), %r10
movq %r15, 0x38(%rsp)
leaq (,%r15,4), %r11
xorl %ebp, %ebp
movq %r14, %r15
movq %r13, %rsi
movq %r12, %r13
movq 0x28(%rsp), %r12
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %r14
movq (%r14,%rbp,2), %r14
movq %r14, (%r15,%rbp,2)
movq 0x58(%rsp), %r14
movl (%r14,%rbp), %r14d
movl %r14d, (%r12,%rbp)
movq 0x50(%rsp), %r14
movl (%r14,%rbp), %r14d
movl %r14d, (%r13,%rbp)
movq 0x48(%rsp), %r14
movl (%r14,%rbp), %r14d
movl %r14d, (%rbx,%rbp)
movl (%rdi,%rbp), %r14d
movl %r14d, (%rax,%rbp)
movl (%r8,%rbp), %r14d
movl %r14d, (%rcx,%rbp)
movl (%r9,%rbp), %r14d
movl %r14d, (%rdx,%rbp)
movl (%r10,%rbp), %r14d
movl %r14d, (%rsi,%rbp)
addq $0x4, %rbp
cmpq %rbp, %r11
jne 0x1b178
movq 0x38(%rsp), %rax
testl %eax, %eax
movq 0x40(%rsp), %rbp
movq %r15, %r14
movq %rax, %r15
movq %r13, %r12
movq 0x30(%rsp), %rbx
movq %rsi, %r13
jle 0x1b244
movq 0x40(%rbx), %rdi
callq 0x6220
movq 0x48(%rbx), %rdi
callq 0x6220
movq 0x50(%rbx), %rdi
callq 0x6220
movq 0x58(%rbx), %rdi
callq 0x6220
movq 0x60(%rbx), %rdi
callq 0x6220
movq 0x68(%rbx), %rdi
callq 0x6220
movq 0x80(%rbx), %rdi
callq 0x6220
movq 0x70(%rbx), %rdi
callq 0x6220
movl 0x7c(%rbx), %r15d
movq %r14, 0x40(%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x48(%rbx)
movq %r12, 0x50(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x58(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x60(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x68(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x70(%rbx)
movq %r13, 0x80(%rbx)
movq %rbp, %rdi
callq 0x60d0
leaq 0x1(%rax), %rdi
callq 0x6270
movslq %r15d, %rcx
movq %rax, (%r14,%rcx,8)
movq 0x40(%rbx), %rax
movq 0x1a0(%rbx), %rdi
movq (%rax,%rcx,8), %r14
movq %rbp, %rsi
callq 0x18aa0
movq %r14, %rdi
movq %rax, %rsi
callq 0x6190
movq 0x48(%rbx), %rax
movslq 0x7c(%rbx), %rcx
xorl %edx, %edx
movl %edx, (%rax,%rcx,4)
movq 0x50(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x58(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x60(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x68(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movl %esi, (%rax,%rcx,4)
movq 0x80(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x70(%rbx), %rax
movslq 0x7c(%rbx), %rcx
movl %esi, (%rax,%rcx,4)
incl 0x7c(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN12LefDefParser7defiPin8addLayerEPKc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbp, rsi
mov rbx, rdi
mov eax, [rdi+78h]
mov r15d, [rdi+7Ch]
cmp r15d, eax
jge short loc_1B07F
mov r14, [rbx+40h]
jmp loc_1B280
loc_1B07F:
lea ecx, [rax+rax]
test eax, eax
mov eax, 8
cmovnz eax, ecx
mov [rbx+78h], eax
movsxd r13, eax
lea rdi, ds:0[r13*8]
call _malloc
mov r14, rax
shl r13, 2
mov rdi, r13
call _malloc
mov [rsp+98h+var_70], rax
mov rdi, r13
call _malloc
mov r12, rax
mov rdi, r13
call _malloc
mov [rsp+98h+var_78], rax
mov rdi, r13
call _malloc
mov [rsp+98h+var_80], rax
mov rdi, r13
call _malloc
mov [rsp+98h+var_88], rax
mov rdi, r13
call _malloc
mov [rsp+98h+var_90], rax
mov rdi, r13
call _malloc
mov r13, rax
test r15d, r15d
jle loc_1B244
mov [rsp+98h+var_58], rbp
mov rax, [rbx+40h]
mov [rsp+98h+var_38], rax
mov rax, [rbx+48h]
mov [rsp+98h+var_40], rax
mov rax, [rbx+50h]
mov [rsp+98h+var_48], rax
mov rax, [rbx+58h]
mov [rsp+98h+var_50], rax
mov rdi, [rbx+60h]
mov r8, [rbx+68h]
mov r9, [rbx+70h]
mov [rsp+98h+var_68], rbx
mov r10, [rbx+80h]
mov [rsp+98h+var_60], r15
lea r11, ds:0[r15*4]
xor ebp, ebp
mov r15, r14
mov rsi, r13
mov r13, r12
mov r12, [rsp+98h+var_70]
mov rbx, [rsp+98h+var_78]
mov rax, [rsp+98h+var_80]
mov rcx, [rsp+98h+var_88]
mov rdx, [rsp+98h+var_90]
loc_1B178:
mov r14, [rsp+98h+var_38]
mov r14, [r14+rbp*2]
mov [r15+rbp*2], r14
mov r14, [rsp+98h+var_40]
mov r14d, [r14+rbp]
mov [r12+rbp], r14d
mov r14, [rsp+98h+var_48]
mov r14d, [r14+rbp]
mov [r13+rbp+0], r14d
mov r14, [rsp+98h+var_50]
mov r14d, [r14+rbp]
mov [rbx+rbp], r14d
mov r14d, [rdi+rbp]
mov [rax+rbp], r14d
mov r14d, [r8+rbp]
mov [rcx+rbp], r14d
mov r14d, [r9+rbp]
mov [rdx+rbp], r14d
mov r14d, [r10+rbp]
mov [rsi+rbp], r14d
add rbp, 4
cmp r11, rbp
jnz short loc_1B178
mov rax, [rsp+98h+var_60]
test eax, eax
mov rbp, [rsp+98h+var_58]
mov r14, r15
mov r15, rax
mov r12, r13
mov rbx, [rsp+98h+var_68]
mov r13, rsi
jle short loc_1B244
mov rdi, [rbx+40h]
call _free
mov rdi, [rbx+48h]
call _free
mov rdi, [rbx+50h]
call _free
mov rdi, [rbx+58h]
call _free
mov rdi, [rbx+60h]
call _free
mov rdi, [rbx+68h]
call _free
mov rdi, [rbx+80h]
call _free
mov rdi, [rbx+70h]
call _free
mov r15d, [rbx+7Ch]
loc_1B244:
mov [rbx+40h], r14
mov rax, [rsp+98h+var_70]
mov [rbx+48h], rax
mov [rbx+50h], r12
mov rax, [rsp+98h+var_78]
mov [rbx+58h], rax
mov rax, [rsp+98h+var_80]
mov [rbx+60h], rax
mov rax, [rsp+98h+var_88]
mov [rbx+68h], rax
mov rax, [rsp+98h+var_90]
mov [rbx+70h], rax
mov [rbx+80h], r13
loc_1B280:
mov rdi, rbp
call _strlen
lea rdi, [rax+1]
call _malloc
movsxd rcx, r15d
mov [r14+rcx*8], rax
mov rax, [rbx+40h]
mov rdi, [rbx+1A0h]; this
mov r14, [rax+rcx*8]
mov rsi, rbp; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, r14
mov rsi, rax
call _strcpy
mov rax, [rbx+48h]
movsxd rcx, dword ptr [rbx+7Ch]
xor edx, edx
mov [rax+rcx*4], edx
mov rax, [rbx+50h]
movsxd rcx, dword ptr [rbx+7Ch]
mov [rax+rcx*4], edx
mov rax, [rbx+58h]
movsxd rcx, dword ptr [rbx+7Ch]
mov [rax+rcx*4], edx
mov rax, [rbx+60h]
movsxd rcx, dword ptr [rbx+7Ch]
mov [rax+rcx*4], edx
mov rax, [rbx+68h]
movsxd rcx, dword ptr [rbx+7Ch]
mov esi, 0FFFFFFFFh
mov [rax+rcx*4], esi
mov rax, [rbx+80h]
movsxd rcx, dword ptr [rbx+7Ch]
mov [rax+rcx*4], edx
mov rax, [rbx+70h]
movsxd rcx, dword ptr [rbx+7Ch]
mov [rax+rcx*4], esi
inc dword ptr [rbx+7Ch]
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long LefDefParser::defiPin::addLayer(LefDefParser::defiPin *this, const char *a2)
{
const char *v2; // rbp
int v4; // eax
long long v5; // r15
long long v6; // r14
int v7; // ecx
bool v8; // zf
int v9; // eax
long long v10; // r13
long long v11; // r12
long long v12; // rax
long long v13; // r13
long long v14; // rdi
long long v15; // r8
long long v16; // r9
long long v17; // r10
long long v18; // rbp
long long v19; // rax
long long v20; // r14
const char *v21; // rax
long long result; // rax
long long v23; // [rsp+8h] [rbp-90h]
long long v24; // [rsp+10h] [rbp-88h]
long long v25; // [rsp+18h] [rbp-80h]
long long v26; // [rsp+20h] [rbp-78h]
long long v27; // [rsp+28h] [rbp-70h]
long long v28; // [rsp+48h] [rbp-50h]
long long v29; // [rsp+50h] [rbp-48h]
long long v30; // [rsp+58h] [rbp-40h]
long long v31; // [rsp+60h] [rbp-38h]
v2 = a2;
v4 = *((_DWORD *)this + 30);
v5 = *((unsigned int *)this + 31);
if ( (int)v5 >= v4 )
{
v7 = 2 * v4;
v8 = v4 == 0;
v9 = 8;
if ( !v8 )
v9 = v7;
*((_DWORD *)this + 30) = v9;
v10 = v9;
v6 = malloc(8LL * v9);
v10 *= 4LL;
v27 = malloc(v10);
v11 = malloc(v10);
v26 = malloc(v10);
v25 = malloc(v10);
v24 = malloc(v10);
v23 = malloc(v10);
v12 = malloc(v10);
v13 = v12;
if ( (int)v5 > 0 )
{
v31 = *((_QWORD *)this + 8);
v30 = *((_QWORD *)this + 9);
v29 = *((_QWORD *)this + 10);
v28 = *((_QWORD *)this + 11);
v14 = *((_QWORD *)this + 12);
v15 = *((_QWORD *)this + 13);
v16 = *((_QWORD *)this + 14);
v17 = *((_QWORD *)this + 16);
v18 = 0LL;
do
{
*(_QWORD *)(v6 + 2 * v18) = *(_QWORD *)(v31 + 2 * v18);
*(_DWORD *)(v27 + v18) = *(_DWORD *)(v30 + v18);
*(_DWORD *)(v11 + v18) = *(_DWORD *)(v29 + v18);
*(_DWORD *)(v26 + v18) = *(_DWORD *)(v28 + v18);
*(_DWORD *)(v25 + v18) = *(_DWORD *)(v14 + v18);
*(_DWORD *)(v24 + v18) = *(_DWORD *)(v15 + v18);
*(_DWORD *)(v23 + v18) = *(_DWORD *)(v16 + v18);
*(_DWORD *)(v12 + v18) = *(_DWORD *)(v17 + v18);
v18 += 4LL;
}
while ( 4 * v5 != v18 );
v2 = a2;
v13 = v12;
free(*((_QWORD *)this + 8));
free(*((_QWORD *)this + 9));
free(*((_QWORD *)this + 10));
free(*((_QWORD *)this + 11));
free(*((_QWORD *)this + 12));
free(*((_QWORD *)this + 13));
free(*((_QWORD *)this + 16));
free(*((_QWORD *)this + 14));
LODWORD(v5) = *((_DWORD *)this + 31);
}
*((_QWORD *)this + 8) = v6;
*((_QWORD *)this + 9) = v27;
*((_QWORD *)this + 10) = v11;
*((_QWORD *)this + 11) = v26;
*((_QWORD *)this + 12) = v25;
*((_QWORD *)this + 13) = v24;
*((_QWORD *)this + 14) = v23;
*((_QWORD *)this + 16) = v13;
}
else
{
v6 = *((_QWORD *)this + 8);
}
v19 = strlen(v2);
*(_QWORD *)(v6 + 8LL * (int)v5) = malloc(v19 + 1);
v20 = *(_QWORD *)(*((_QWORD *)this + 8) + 8LL * (int)v5);
v21 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 52), v2);
strcpy(v20, v21);
*(_DWORD *)(*((_QWORD *)this + 9) + 4LL * *((int *)this + 31)) = 0;
*(_DWORD *)(*((_QWORD *)this + 10) + 4LL * *((int *)this + 31)) = 0;
*(_DWORD *)(*((_QWORD *)this + 11) + 4LL * *((int *)this + 31)) = 0;
*(_DWORD *)(*((_QWORD *)this + 12) + 4LL * *((int *)this + 31)) = 0;
*(_DWORD *)(*((_QWORD *)this + 13) + 4LL * *((int *)this + 31)) = -1;
*(_DWORD *)(*((_QWORD *)this + 16) + 4LL * *((int *)this + 31)) = 0;
result = *((_QWORD *)this + 14);
*(_DWORD *)(result + 4LL * (int)(*((_DWORD *)this + 31))++) = -1;
return result;
}
|
addLayer:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBP,RSI
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x78]
MOV R15D,dword ptr [RDI + 0x7c]
CMP R15D,EAX
JGE 0x0011b07f
MOV R14,qword ptr [RBX + 0x40]
JMP 0x0011b280
LAB_0011b07f:
LEA ECX,[RAX + RAX*0x1]
TEST EAX,EAX
MOV EAX,0x8
CMOVNZ EAX,ECX
MOV dword ptr [RBX + 0x78],EAX
MOVSXD R13,EAX
LEA RDI,[R13*0x8]
CALL 0x00106270
MOV R14,RAX
SHL R13,0x2
MOV RDI,R13
CALL 0x00106270
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,R13
CALL 0x00106270
MOV R12,RAX
MOV RDI,R13
CALL 0x00106270
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,R13
CALL 0x00106270
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R13
CALL 0x00106270
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,R13
CALL 0x00106270
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,R13
CALL 0x00106270
MOV R13,RAX
TEST R15D,R15D
JLE 0x0011b244
MOV qword ptr [RSP + 0x40],RBP
MOV RAX,qword ptr [RBX + 0x40]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RBX + 0x48]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RBX + 0x50]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RBX + 0x58]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RBX + 0x60]
MOV R8,qword ptr [RBX + 0x68]
MOV R9,qword ptr [RBX + 0x70]
MOV qword ptr [RSP + 0x30],RBX
MOV R10,qword ptr [RBX + 0x80]
MOV qword ptr [RSP + 0x38],R15
LEA R11,[R15*0x4]
XOR EBP,EBP
MOV R15,R14
MOV RSI,R13
MOV R13,R12
MOV R12,qword ptr [RSP + 0x28]
MOV RBX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x8]
LAB_0011b178:
MOV R14,qword ptr [RSP + 0x60]
MOV R14,qword ptr [R14 + RBP*0x2]
MOV qword ptr [R15 + RBP*0x2],R14
MOV R14,qword ptr [RSP + 0x58]
MOV R14D,dword ptr [R14 + RBP*0x1]
MOV dword ptr [R12 + RBP*0x1],R14D
MOV R14,qword ptr [RSP + 0x50]
MOV R14D,dword ptr [R14 + RBP*0x1]
MOV dword ptr [R13 + RBP*0x1],R14D
MOV R14,qword ptr [RSP + 0x48]
MOV R14D,dword ptr [R14 + RBP*0x1]
MOV dword ptr [RBX + RBP*0x1],R14D
MOV R14D,dword ptr [RDI + RBP*0x1]
MOV dword ptr [RAX + RBP*0x1],R14D
MOV R14D,dword ptr [R8 + RBP*0x1]
MOV dword ptr [RCX + RBP*0x1],R14D
MOV R14D,dword ptr [R9 + RBP*0x1]
MOV dword ptr [RDX + RBP*0x1],R14D
MOV R14D,dword ptr [R10 + RBP*0x1]
MOV dword ptr [RSI + RBP*0x1],R14D
ADD RBP,0x4
CMP R11,RBP
JNZ 0x0011b178
MOV RAX,qword ptr [RSP + 0x38]
TEST EAX,EAX
MOV RBP,qword ptr [RSP + 0x40]
MOV R14,R15
MOV R15,RAX
MOV R12,R13
MOV RBX,qword ptr [RSP + 0x30]
MOV R13,RSI
JLE 0x0011b244
MOV RDI,qword ptr [RBX + 0x40]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x48]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x50]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x58]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x60]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x68]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x80]
CALL 0x00106220
MOV RDI,qword ptr [RBX + 0x70]
CALL 0x00106220
MOV R15D,dword ptr [RBX + 0x7c]
LAB_0011b244:
MOV qword ptr [RBX + 0x40],R14
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RBX + 0x48],RAX
MOV qword ptr [RBX + 0x50],R12
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RBX + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x70],RAX
MOV qword ptr [RBX + 0x80],R13
LAB_0011b280:
MOV RDI,RBP
CALL 0x001060d0
LEA RDI,[RAX + 0x1]
CALL 0x00106270
MOVSXD RCX,R15D
MOV qword ptr [R14 + RCX*0x8],RAX
MOV RAX,qword ptr [RBX + 0x40]
MOV RDI,qword ptr [RBX + 0x1a0]
MOV R14,qword ptr [RAX + RCX*0x8]
MOV RSI,RBP
CALL 0x00118aa0
MOV RDI,R14
MOV RSI,RAX
CALL 0x00106190
MOV RAX,qword ptr [RBX + 0x48]
MOVSXD RCX,dword ptr [RBX + 0x7c]
XOR EDX,EDX
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RBX + 0x50]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RBX + 0x58]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RBX + 0x60]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RBX + 0x68]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV ESI,0xffffffff
MOV dword ptr [RAX + RCX*0x4],ESI
MOV RAX,qword ptr [RBX + 0x80]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RBX + 0x70]
MOVSXD RCX,dword ptr [RBX + 0x7c]
MOV dword ptr [RAX + RCX*0x4],ESI
INC dword ptr [RBX + 0x7c]
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::defiPin::addLayer(char const*) */
void __thiscall LefDefParser::defiPin::addLayer(defiPin *this,char *param_1)
{
int iVar1;
long lVar2;
long lVar3;
long lVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
char *__dest;
int iVar10;
void *pvVar11;
void *pvVar12;
void *pvVar13;
void *pvVar14;
void *pvVar15;
void *pvVar16;
void *pvVar17;
size_t sVar18;
void *pvVar19;
char *__src;
long lVar20;
uint uVar21;
iVar1 = *(int *)(this + 0x78);
uVar21 = *(uint *)(this + 0x7c);
if ((int)uVar21 < iVar1) {
pvVar11 = *(void **)(this + 0x40);
}
else {
iVar10 = 8;
if (iVar1 != 0) {
iVar10 = iVar1 * 2;
}
*(int *)(this + 0x78) = iVar10;
pvVar11 = malloc((long)iVar10 * 8);
sVar18 = (long)iVar10 << 2;
pvVar19 = malloc(sVar18);
pvVar12 = malloc(sVar18);
pvVar13 = malloc(sVar18);
pvVar14 = malloc(sVar18);
pvVar15 = malloc(sVar18);
pvVar16 = malloc(sVar18);
pvVar17 = malloc(sVar18);
if (0 < (int)uVar21) {
lVar2 = *(long *)(this + 0x40);
lVar3 = *(long *)(this + 0x48);
lVar4 = *(long *)(this + 0x50);
lVar5 = *(long *)(this + 0x58);
lVar6 = *(long *)(this + 0x60);
lVar7 = *(long *)(this + 0x68);
lVar8 = *(long *)(this + 0x70);
lVar9 = *(long *)(this + 0x80);
lVar20 = 0;
do {
*(int8 *)((long)pvVar11 + lVar20 * 2) = *(int8 *)(lVar2 + lVar20 * 2);
*(int4 *)((long)pvVar19 + lVar20) = *(int4 *)(lVar3 + lVar20);
*(int4 *)((long)pvVar12 + lVar20) = *(int4 *)(lVar4 + lVar20);
*(int4 *)((long)pvVar13 + lVar20) = *(int4 *)(lVar5 + lVar20);
*(int4 *)((long)pvVar14 + lVar20) = *(int4 *)(lVar6 + lVar20);
*(int4 *)((long)pvVar15 + lVar20) = *(int4 *)(lVar7 + lVar20);
*(int4 *)((long)pvVar16 + lVar20) = *(int4 *)(lVar8 + lVar20);
*(int4 *)((long)pvVar17 + lVar20) = *(int4 *)(lVar9 + lVar20);
lVar20 = lVar20 + 4;
} while ((ulong)uVar21 * 4 - lVar20 != 0);
if (0 < (int)uVar21) {
free(*(void **)(this + 0x40));
free(*(void **)(this + 0x48));
free(*(void **)(this + 0x50));
free(*(void **)(this + 0x58));
free(*(void **)(this + 0x60));
free(*(void **)(this + 0x68));
free(*(void **)(this + 0x80));
free(*(void **)(this + 0x70));
uVar21 = *(uint *)(this + 0x7c);
}
}
*(void **)(this + 0x40) = pvVar11;
*(void **)(this + 0x48) = pvVar19;
*(void **)(this + 0x50) = pvVar12;
*(void **)(this + 0x58) = pvVar13;
*(void **)(this + 0x60) = pvVar14;
*(void **)(this + 0x68) = pvVar15;
*(void **)(this + 0x70) = pvVar16;
*(void **)(this + 0x80) = pvVar17;
}
sVar18 = strlen(param_1);
pvVar19 = malloc(sVar18 + 1);
*(void **)((long)pvVar11 + (long)(int)uVar21 * 8) = pvVar19;
__dest = *(char **)(*(long *)(this + 0x40) + (long)(int)uVar21 * 8);
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x1a0),param_1);
strcpy(__dest,__src);
*(int4 *)(*(long *)(this + 0x48) + (long)*(int *)(this + 0x7c) * 4) = 0;
*(int4 *)(*(long *)(this + 0x50) + (long)*(int *)(this + 0x7c) * 4) = 0;
*(int4 *)(*(long *)(this + 0x58) + (long)*(int *)(this + 0x7c) * 4) = 0;
*(int4 *)(*(long *)(this + 0x60) + (long)*(int *)(this + 0x7c) * 4) = 0;
*(int4 *)(*(long *)(this + 0x68) + (long)*(int *)(this + 0x7c) * 4) = 0xffffffff;
*(int4 *)(*(long *)(this + 0x80) + (long)*(int *)(this + 0x7c) * 4) = 0;
*(int4 *)(*(long *)(this + 0x70) + (long)*(int *)(this + 0x7c) * 4) = 0xffffffff;
*(int *)(this + 0x7c) = *(int *)(this + 0x7c) + 1;
return;
}
|
|
57,827
|
ma_strmake
|
eloqsql/libmariadb/libmariadb/ma_string.c
|
char *ma_strmake(register char *dst, register const char *src, size_t length)
{
while (length--)
if (! (*dst++ = *src++))
return dst-1;
*dst=0;
return dst;
}
|
O0
|
c
|
ma_strmake:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x20(%rbp)
cmpq $0x0, %rax
je 0x4c6ab
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %al, (%rcx)
cmpb $0x0, %al
jne 0x4c6a9
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x4c6ba
jmp 0x4c660
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
|
ma_strmake:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
loc_4C660:
mov rax, [rbp+var_20]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_20], rcx
cmp rax, 0
jz short loc_4C6AB
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
mov al, [rax]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
mov [rcx], al
cmp al, 0
jnz short loc_4C6A9
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_8], rax
jmp short loc_4C6BA
loc_4C6A9:
jmp short loc_4C660
loc_4C6AB:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_4C6BA:
mov rax, [rbp+var_8]
pop rbp
retn
|
_BYTE * ma_strmake(_BYTE *a1, _BYTE *a2, long long a3)
{
_BYTE *v4; // rax
_BYTE *v5; // rcx
while ( a3-- )
{
v4 = a2++;
LOBYTE(v4) = *v4;
v5 = a1++;
*v5 = (_BYTE)v4;
if ( !(_BYTE)v4 )
return a1 - 1;
}
*a1 = 0;
return a1;
}
|
ma_strmake:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
LAB_0014c660:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x20],RCX
CMP RAX,0x0
JZ 0x0014c6ab
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOV AL,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RCX],AL
CMP AL,0x0
JNZ 0x0014c6a9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014c6ba
LAB_0014c6a9:
JMP 0x0014c660
LAB_0014c6ab:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014c6ba:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * ma_strmake(char *param_1,char *param_2,long param_3)
{
char cVar1;
char *pcVar2;
long local_28;
char *local_20;
char *local_18;
local_28 = param_3;
local_20 = param_2;
pcVar2 = param_1;
do {
local_18 = pcVar2;
if (local_28 == 0) {
*local_18 = '\0';
return local_18;
}
cVar1 = *local_20;
*local_18 = cVar1;
local_28 = local_28 + -1;
local_20 = local_20 + 1;
pcVar2 = local_18 + 1;
} while (cVar1 != '\0');
return local_18;
}
|
|
57,828
|
my_vfprintf
|
eloqsql/strings/my_vsnprintf.c
|
int my_vfprintf(FILE *stream, const char* format, va_list args)
{
char cvtbuf[1024];
int alloc= 0;
char *p= cvtbuf;
size_t cur_len= sizeof(cvtbuf), actual;
int ret;
/*
We do not know how much buffer we need.
So start with a reasonably-sized stack-allocated buffer, and increase
it exponentially until it is big enough.
*/
for (;;)
{
size_t new_len;
actual= my_vsnprintf(p, cur_len, format, args);
if (actual < cur_len - 1)
break;
/*
Not enough space (or just enough with nothing to spare - but we cannot
distinguish this case from the return value). Allocate a bigger buffer
and try again.
*/
if (alloc)
my_free(p);
else
alloc= 1;
new_len= cur_len*2;
if (new_len < cur_len)
return 0; /* Overflow */
cur_len= new_len;
p= my_malloc(PSI_INSTRUMENT_ME, cur_len, MYF(MY_FAE));
if (!p)
return 0;
}
ret= (int) actual;
if (fputs(p, stream) < 0)
ret= -1;
if (alloc)
my_free(p);
return ret;
}
|
O0
|
c
|
my_vfprintf:
pushq %rbp
movq %rsp, %rbp
subq $0x470, %rsp # imm = 0x470
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x420(%rbp)
movq %rsi, -0x428(%rbp)
movq %rdx, -0x430(%rbp)
movl $0x0, -0x434(%rbp)
leaq -0x410(%rbp), %rax
movq %rax, -0x440(%rbp)
movq $0x400, -0x448(%rbp) # imm = 0x400
movq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
movq -0x428(%rbp), %rdx
movq -0x430(%rbp), %rcx
callq 0x7c610
movq %rax, -0x450(%rbp)
movq -0x450(%rbp), %rax
movq -0x448(%rbp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x7c794
jmp 0x7c828
cmpl $0x0, -0x434(%rbp)
je 0x7c7ab
movq -0x440(%rbp), %rdi
callq 0x28570
jmp 0x7c7b5
movl $0x1, -0x434(%rbp)
movq -0x448(%rbp), %rax
shlq %rax
movq %rax, -0x460(%rbp)
movq -0x460(%rbp), %rax
cmpq -0x448(%rbp), %rax
jae 0x7c7e5
movl $0x0, -0x414(%rbp)
jmp 0x7c878
movq -0x460(%rbp), %rax
movq %rax, -0x448(%rbp)
movq -0x448(%rbp), %rsi
xorl %edi, %edi
movl $0x8, %edx
callq 0x281f0
movq %rax, -0x440(%rbp)
cmpq $0x0, -0x440(%rbp)
jne 0x7c823
movl $0x0, -0x414(%rbp)
jmp 0x7c878
jmp 0x7c750
movq -0x450(%rbp), %rax
movl %eax, -0x454(%rbp)
movq -0x440(%rbp), %rdi
movq -0x420(%rbp), %rsi
callq 0x24320
cmpl $0x0, %eax
jge 0x7c857
movl $0xffffffff, -0x454(%rbp) # imm = 0xFFFFFFFF
cmpl $0x0, -0x434(%rbp)
je 0x7c86c
movq -0x440(%rbp), %rdi
callq 0x28570
movl -0x454(%rbp), %eax
movl %eax, -0x414(%rbp)
movl -0x414(%rbp), %eax
movl %eax, -0x464(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x7c8a5
movl -0x464(%rbp), %eax
addq $0x470, %rsp # imm = 0x470
popq %rbp
retq
callq 0x24300
nopw (%rax,%rax)
|
my_vfprintf:
push rbp
mov rbp, rsp
sub rsp, 470h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_420], rdi
mov [rbp+var_428], rsi
mov [rbp+var_430], rdx
mov [rbp+var_434], 0
lea rax, [rbp+var_410]
mov [rbp+var_440], rax
mov [rbp+var_448], 400h
loc_7C750:
mov rdi, [rbp+var_440]
mov rsi, [rbp+var_448]
mov rdx, [rbp+var_428]
mov rcx, [rbp+var_430]
call my_vsnprintf
mov [rbp+var_450], rax
mov rax, [rbp+var_450]
mov rcx, [rbp+var_448]
sub rcx, 1
cmp rax, rcx
jnb short loc_7C794
jmp loc_7C828
loc_7C794:
cmp [rbp+var_434], 0
jz short loc_7C7AB
mov rdi, [rbp+var_440]
call my_free
jmp short loc_7C7B5
loc_7C7AB:
mov [rbp+var_434], 1
loc_7C7B5:
mov rax, [rbp+var_448]
shl rax, 1
mov [rbp+var_460], rax
mov rax, [rbp+var_460]
cmp rax, [rbp+var_448]
jnb short loc_7C7E5
mov [rbp+var_414], 0
jmp loc_7C878
loc_7C7E5:
mov rax, [rbp+var_460]
mov [rbp+var_448], rax
mov rsi, [rbp+var_448]
xor edi, edi
mov edx, 8
call my_malloc
mov [rbp+var_440], rax
cmp [rbp+var_440], 0
jnz short loc_7C823
mov [rbp+var_414], 0
jmp short loc_7C878
loc_7C823:
jmp loc_7C750
loc_7C828:
mov rax, [rbp+var_450]
mov [rbp+var_454], eax
mov rdi, [rbp+var_440]
mov rsi, [rbp+var_420]
call _fputs
cmp eax, 0
jge short loc_7C857
mov [rbp+var_454], 0FFFFFFFFh
loc_7C857:
cmp [rbp+var_434], 0
jz short loc_7C86C
mov rdi, [rbp+var_440]
call my_free
loc_7C86C:
mov eax, [rbp+var_454]
mov [rbp+var_414], eax
loc_7C878:
mov eax, [rbp+var_414]
mov [rbp+var_464], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_7C8A5
mov eax, [rbp+var_464]
add rsp, 470h
pop rbp
retn
loc_7C8A5:
call ___stack_chk_fail
|
long long my_vfprintf(long long a1, char *a2, int *a3)
{
unsigned long long v4; // [rsp+10h] [rbp-460h]
unsigned int v5; // [rsp+1Ch] [rbp-454h]
_BYTE *v6; // [rsp+20h] [rbp-450h]
unsigned long long i; // [rsp+28h] [rbp-448h]
char *v8; // [rsp+30h] [rbp-440h]
int v9; // [rsp+3Ch] [rbp-434h]
char v12; // [rsp+60h] [rbp-410h] BYREF
unsigned long long v13; // [rsp+468h] [rbp-8h]
v13 = __readfsqword(0x28u);
v9 = 0;
v8 = &v12;
for ( i = 1024LL; ; i *= 2LL )
{
v6 = my_vsnprintf(v8, i, a2, a3);
if ( (unsigned long long)v6 < i - 1 )
break;
if ( v9 )
my_free((long long)v8);
else
v9 = 1;
v4 = 2 * i;
if ( 2 * i < i )
return 0;
v8 = (char *)my_malloc(0, v4, 8);
if ( !v8 )
return 0;
}
v5 = (unsigned int)v6;
if ( (int)fputs(v8, a1) < 0 )
v5 = -1;
if ( v9 )
my_free((long long)v8);
return v5;
}
|
my_vfprintf:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x470
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x420],RDI
MOV qword ptr [RBP + -0x428],RSI
MOV qword ptr [RBP + -0x430],RDX
MOV dword ptr [RBP + -0x434],0x0
LEA RAX,[RBP + -0x410]
MOV qword ptr [RBP + -0x440],RAX
MOV qword ptr [RBP + -0x448],0x400
LAB_0017c750:
MOV RDI,qword ptr [RBP + -0x440]
MOV RSI,qword ptr [RBP + -0x448]
MOV RDX,qword ptr [RBP + -0x428]
MOV RCX,qword ptr [RBP + -0x430]
CALL 0x0017c610
MOV qword ptr [RBP + -0x450],RAX
MOV RAX,qword ptr [RBP + -0x450]
MOV RCX,qword ptr [RBP + -0x448]
SUB RCX,0x1
CMP RAX,RCX
JNC 0x0017c794
JMP 0x0017c828
LAB_0017c794:
CMP dword ptr [RBP + -0x434],0x0
JZ 0x0017c7ab
MOV RDI,qword ptr [RBP + -0x440]
CALL 0x00128570
JMP 0x0017c7b5
LAB_0017c7ab:
MOV dword ptr [RBP + -0x434],0x1
LAB_0017c7b5:
MOV RAX,qword ptr [RBP + -0x448]
SHL RAX,0x1
MOV qword ptr [RBP + -0x460],RAX
MOV RAX,qword ptr [RBP + -0x460]
CMP RAX,qword ptr [RBP + -0x448]
JNC 0x0017c7e5
MOV dword ptr [RBP + -0x414],0x0
JMP 0x0017c878
LAB_0017c7e5:
MOV RAX,qword ptr [RBP + -0x460]
MOV qword ptr [RBP + -0x448],RAX
MOV RSI,qword ptr [RBP + -0x448]
XOR EDI,EDI
MOV EDX,0x8
CALL 0x001281f0
MOV qword ptr [RBP + -0x440],RAX
CMP qword ptr [RBP + -0x440],0x0
JNZ 0x0017c823
MOV dword ptr [RBP + -0x414],0x0
JMP 0x0017c878
LAB_0017c823:
JMP 0x0017c750
LAB_0017c828:
MOV RAX,qword ptr [RBP + -0x450]
MOV dword ptr [RBP + -0x454],EAX
MOV RDI,qword ptr [RBP + -0x440]
MOV RSI,qword ptr [RBP + -0x420]
CALL 0x00124320
CMP EAX,0x0
JGE 0x0017c857
MOV dword ptr [RBP + -0x454],0xffffffff
LAB_0017c857:
CMP dword ptr [RBP + -0x434],0x0
JZ 0x0017c86c
MOV RDI,qword ptr [RBP + -0x440]
CALL 0x00128570
LAB_0017c86c:
MOV EAX,dword ptr [RBP + -0x454]
MOV dword ptr [RBP + -0x414],EAX
LAB_0017c878:
MOV EAX,dword ptr [RBP + -0x414]
MOV dword ptr [RBP + -0x464],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0017c8a5
MOV EAX,dword ptr [RBP + -0x464]
ADD RSP,0x470
POP RBP
RET
LAB_0017c8a5:
CALL 0x00124300
|
int4 my_vfprintf(FILE *param_1,int8 param_2,int8 param_3)
{
bool bVar1;
int iVar2;
ulong uVar3;
long in_FS_OFFSET;
int4 local_45c;
ulong local_450;
char *local_448;
int4 local_41c;
char local_418 [1032];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
bVar1 = false;
local_448 = local_418;
local_450 = 0x400;
do {
uVar3 = my_vsnprintf(local_448,local_450,param_2,param_3);
if (uVar3 < local_450 - 1) {
local_45c = (int4)uVar3;
iVar2 = fputs(local_448,param_1);
if (iVar2 < 0) {
local_45c = 0xffffffff;
}
if (bVar1) {
my_free(local_448);
}
local_41c = local_45c;
goto LAB_0017c878;
}
if (bVar1) {
my_free(local_448);
}
else {
bVar1 = true;
}
uVar3 = local_450 << 1;
if (uVar3 < local_450) {
local_41c = 0;
goto LAB_0017c878;
}
local_448 = (char *)my_malloc(0,uVar3,8);
local_450 = uVar3;
} while (local_448 != (char *)0x0);
local_41c = 0;
LAB_0017c878:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_41c;
}
|
|
57,829
|
my_wc_mb_big5
|
eloqsql/strings/ctype-big5.c
|
static int
my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((int) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_big5_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
}
|
O3
|
c
|
my_wc_mb_big5:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x2de99
cmpl $0x7f, %esi
jg 0x2dd5c
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x2de99
leal -0xa2(%rsi), %edi
cmpl $0x55, %edi
ja 0x2dd72
movl %edi, %esi
leaq 0x3d2f0(%rip), %rdi # 0x6b060
jmp 0x2ddd4
leal -0x2c7(%rsi), %edi
cmpl $0x18a, %edi # imm = 0x18A
ja 0x2dd8b
movl %edi, %esi
leaq 0x3d387(%rip), %rdi # 0x6b110
jmp 0x2ddd4
leal -0x2013(%rsi), %edi
cmpl $0x2ac, %edi # imm = 0x2AC
ja 0x2dda4
movl %edi, %esi
leaq 0x3d68e(%rip), %rdi # 0x6b430
jmp 0x2ddd4
leal -0x2460(%rsi), %edi
cmpl $0x1e2, %edi # imm = 0x1E2
ja 0x2ddbd
movl %edi, %esi
leaq 0x3dbd5(%rip), %rdi # 0x6b990
jmp 0x2ddd4
leal -0x3000(%rsi), %edi
cmpl $0x129, %edi # imm = 0x129
ja 0x2de01
movl %edi, %esi
leaq 0x3df8c(%rip), %rdi # 0x6bd60
leaq (%rdi,%rsi,2), %rsi
movzwl (%rsi), %edi
testl %edi, %edi
je 0x2de97
leaq 0x2(%rdx), %rsi
cmpq %rcx, %rsi
ja 0x2de99
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
jmp 0x2de99
movl $0xa1c0, %edi # imm = 0xA1C0
cmpl $0x32a3, %esi # imm = 0x32A3
je 0x2dde3
leal -0x338e(%rsi), %edi
cmpl $0x47, %edi
ja 0x2de24
movl %edi, %esi
leaq 0x3e19e(%rip), %rdi # 0x6bfc0
jmp 0x2ddd4
leal -0x4e00(%rsi), %edi
cmpl $0x4683, %edi # imm = 0x4683
ja 0x2de3d
movl %edi, %esi
leaq 0x3e215(%rip), %rdi # 0x6c050
jmp 0x2ddd4
leal -0x9577(%rsi), %edi
cmpl $0xa2d, %edi # imm = 0xA2D
ja 0x2de59
movl %edi, %esi
leaq 0x46f0c(%rip), %rdi # 0x74d60
jmp 0x2ddd4
movl %esi, %edi
andl $0x7ffffffe, %edi # imm = 0x7FFFFFFE
cmpl $0xfa0c, %edi # imm = 0xFA0C
jne 0x2de7b
addl $0xffff05f4, %esi # imm = 0xFFFF05F4
leaq 0x486e6(%rip), %rdi # 0x7655c
jmp 0x2ddd4
addl $0xffff01d0, %esi # imm = 0xFFFF01D0
cmpl $0x1cd, %esi # imm = 0x1CD
ja 0x2de97
movl %esi, %esi
leaq 0x4832e(%rip), %rdi # 0x761c0
jmp 0x2ddd4
xorl %eax, %eax
popq %rbp
retq
|
my_wc_mb_big5:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_2DE99
cmp esi, 7Fh
jg short loc_2DD5C
mov [rdx], sil
mov eax, 1
jmp loc_2DE99
loc_2DD5C:
lea edi, [rsi-0A2h]
cmp edi, 55h ; 'U'
ja short loc_2DD72
mov esi, edi
lea rdi, tab_uni_big50
jmp short loc_2DDD4
loc_2DD72:
lea edi, [rsi-2C7h]
cmp edi, 18Ah
ja short loc_2DD8B
mov esi, edi
lea rdi, tab_uni_big51
jmp short loc_2DDD4
loc_2DD8B:
lea edi, [rsi-2013h]
cmp edi, 2ACh
ja short loc_2DDA4
mov esi, edi
lea rdi, tab_uni_big52
jmp short loc_2DDD4
loc_2DDA4:
lea edi, [rsi-2460h]
cmp edi, 1E2h
ja short loc_2DDBD
mov esi, edi
lea rdi, tab_uni_big53
jmp short loc_2DDD4
loc_2DDBD:
lea edi, [rsi-3000h]
cmp edi, 129h
ja short loc_2DE01
mov esi, edi
lea rdi, tab_uni_big54
loc_2DDD4:
lea rsi, [rdi+rsi*2]
movzx edi, word ptr [rsi]
test edi, edi
jz loc_2DE97
loc_2DDE3:
lea rsi, [rdx+2]
cmp rsi, rcx
ja loc_2DE99
rol di, 8
mov [rdx], di
mov eax, 2
jmp loc_2DE99
loc_2DE01:
mov edi, 0A1C0h
cmp esi, 32A3h
jz short loc_2DDE3
lea edi, [rsi-338Eh]
cmp edi, 47h ; 'G'
ja short loc_2DE24
mov esi, edi
lea rdi, tab_uni_big56
jmp short loc_2DDD4
loc_2DE24:
lea edi, [rsi-4E00h]
cmp edi, 4683h
ja short loc_2DE3D
mov esi, edi
lea rdi, tab_uni_big57
jmp short loc_2DDD4
loc_2DE3D:
lea edi, [rsi-9577h]
cmp edi, 0A2Dh
ja short loc_2DE59
mov esi, edi
lea rdi, tab_uni_big58
jmp loc_2DDD4
loc_2DE59:
mov edi, esi
and edi, 7FFFFFFEh
cmp edi, 0FA0Ch
jnz short loc_2DE7B
add esi, 0FFFF05F4h
lea rdi, tab_uni_big59
jmp loc_2DDD4
loc_2DE7B:
add esi, 0FFFF01D0h
cmp esi, 1CDh
ja short loc_2DE97
mov esi, esi
lea rdi, tab_uni_big510
jmp loc_2DDD4
loc_2DE97:
xor eax, eax
loc_2DE99:
pop rbp
retn
|
long long my_wc_mb_big5(long long a1, int a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rsi
_WORD *v6; // rdi
__int16 v7; // di
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 127 )
{
*a3 = a2;
return 1LL;
}
if ( (unsigned int)(a2 - 162) > 0x55 )
{
if ( (unsigned int)(a2 - 711) > 0x18A )
{
if ( (unsigned int)(a2 - 8211) > 0x2AC )
{
if ( (unsigned int)(a2 - 9312) > 0x1E2 )
{
if ( (unsigned int)(a2 - 12288) > 0x129 )
{
v7 = -24128;
if ( a2 == 12963 )
{
LABEL_15:
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v7, 8);
return 2LL;
}
return result;
}
if ( (unsigned int)(a2 - 13198) > 0x47 )
{
if ( (unsigned int)(a2 - 19968) > 0x4683 )
{
if ( (unsigned int)(a2 - 38263) > 0xA2D )
{
if ( (a2 & 0x7FFFFFFE) == 0xFA0C )
{
v5 = (unsigned int)(a2 - 64012);
v6 = &tab_uni_big59;
}
else
{
LODWORD(v5) = a2 - 65072;
if ( (unsigned int)v5 > 0x1CD )
return 0LL;
v5 = (unsigned int)v5;
v6 = &tab_uni_big510;
}
}
else
{
v5 = (unsigned int)(a2 - 38263);
v6 = &tab_uni_big58;
}
}
else
{
v5 = (unsigned int)(a2 - 19968);
v6 = &tab_uni_big57;
}
}
else
{
v5 = (unsigned int)(a2 - 13198);
v6 = &tab_uni_big56;
}
}
else
{
v5 = (unsigned int)(a2 - 12288);
v6 = &tab_uni_big54;
}
}
else
{
v5 = (unsigned int)(a2 - 9312);
v6 = &tab_uni_big53;
}
}
else
{
v5 = (unsigned int)(a2 - 8211);
v6 = &tab_uni_big52;
}
}
else
{
v5 = (unsigned int)(a2 - 711);
v6 = &tab_uni_big51;
}
}
else
{
v5 = (unsigned int)(a2 - 162);
v6 = &tab_uni_big50;
}
v7 = v6[v5];
if ( v7 )
goto LABEL_15;
return 0LL;
}
return result;
}
|
my_wc_mb_big5:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0012de99
CMP ESI,0x7f
JG 0x0012dd5c
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x0012de99
LAB_0012dd5c:
LEA EDI,[RSI + -0xa2]
CMP EDI,0x55
JA 0x0012dd72
MOV ESI,EDI
LEA RDI,[0x16b060]
JMP 0x0012ddd4
LAB_0012dd72:
LEA EDI,[RSI + -0x2c7]
CMP EDI,0x18a
JA 0x0012dd8b
MOV ESI,EDI
LEA RDI,[0x16b110]
JMP 0x0012ddd4
LAB_0012dd8b:
LEA EDI,[RSI + -0x2013]
CMP EDI,0x2ac
JA 0x0012dda4
MOV ESI,EDI
LEA RDI,[0x16b430]
JMP 0x0012ddd4
LAB_0012dda4:
LEA EDI,[RSI + -0x2460]
CMP EDI,0x1e2
JA 0x0012ddbd
MOV ESI,EDI
LEA RDI,[0x16b990]
JMP 0x0012ddd4
LAB_0012ddbd:
LEA EDI,[RSI + -0x3000]
CMP EDI,0x129
JA 0x0012de01
MOV ESI,EDI
LEA RDI,[0x16bd60]
LAB_0012ddd4:
LEA RSI,[RDI + RSI*0x2]
MOVZX EDI,word ptr [RSI]
TEST EDI,EDI
JZ 0x0012de97
LAB_0012dde3:
LEA RSI,[RDX + 0x2]
CMP RSI,RCX
JA 0x0012de99
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
JMP 0x0012de99
LAB_0012de01:
MOV EDI,0xa1c0
CMP ESI,0x32a3
JZ 0x0012dde3
LEA EDI,[RSI + -0x338e]
CMP EDI,0x47
JA 0x0012de24
MOV ESI,EDI
LEA RDI,[0x16bfc0]
JMP 0x0012ddd4
LAB_0012de24:
LEA EDI,[RSI + -0x4e00]
CMP EDI,0x4683
JA 0x0012de3d
MOV ESI,EDI
LEA RDI,[0x16c050]
JMP 0x0012ddd4
LAB_0012de3d:
LEA EDI,[RSI + -0x9577]
CMP EDI,0xa2d
JA 0x0012de59
MOV ESI,EDI
LEA RDI,[0x174d60]
JMP 0x0012ddd4
LAB_0012de59:
MOV EDI,ESI
AND EDI,0x7ffffffe
CMP EDI,0xfa0c
JNZ 0x0012de7b
ADD ESI,0xffff05f4
LEA RDI,[0x17655c]
JMP 0x0012ddd4
LAB_0012de7b:
ADD ESI,0xffff01d0
CMP ESI,0x1cd
JA 0x0012de97
MOV ESI,ESI
LEA RDI,[0x1761c0]
JMP 0x0012ddd4
LAB_0012de97:
XOR EAX,EAX
LAB_0012de99:
POP RBP
RET
|
int8 my_wc_mb_big5(int8 param_1,uint param_2,ushort *param_3,ushort *param_4)
{
int8 uVar1;
ulong uVar2;
ushort uVar3;
int1 *puVar4;
uVar1 = 0xffffff9b;
if (param_4 <= param_3) {
return 0xffffff9b;
}
if ((int)param_2 < 0x80) {
*(char *)param_3 = (char)param_2;
return 1;
}
if (param_2 - 0xa2 < 0x56) {
uVar2 = (ulong)(param_2 - 0xa2);
puVar4 = tab_uni_big50;
}
else if (param_2 - 0x2c7 < 0x18b) {
uVar2 = (ulong)(param_2 - 0x2c7);
puVar4 = tab_uni_big51;
}
else if (param_2 - 0x2013 < 0x2ad) {
uVar2 = (ulong)(param_2 - 0x2013);
puVar4 = tab_uni_big52;
}
else if (param_2 - 0x2460 < 0x1e3) {
uVar2 = (ulong)(param_2 - 0x2460);
puVar4 = tab_uni_big53;
}
else if (param_2 - 0x3000 < 0x12a) {
uVar2 = (ulong)(param_2 - 0x3000);
puVar4 = tab_uni_big54;
}
else {
uVar3 = 0xa1c0;
if (param_2 == 0x32a3) goto LAB_0012dde3;
if (param_2 - 0x338e < 0x48) {
uVar2 = (ulong)(param_2 - 0x338e);
puVar4 = tab_uni_big56;
}
else if (param_2 - 0x4e00 < 0x4684) {
uVar2 = (ulong)(param_2 - 0x4e00);
puVar4 = tab_uni_big57;
}
else if (param_2 - 0x9577 < 0xa2e) {
uVar2 = (ulong)(param_2 - 0x9577);
puVar4 = tab_uni_big58;
}
else if ((param_2 & 0x7ffffffe) == 0xfa0c) {
uVar2 = (ulong)(param_2 - 0xfa0c);
puVar4 = (int1 *)&tab_uni_big59;
}
else {
if (0x1cd < param_2 - 0xfe30) {
return 0;
}
uVar2 = (ulong)(param_2 - 0xfe30);
puVar4 = tab_uni_big510;
}
}
uVar3 = *(ushort *)((long)puVar4 + uVar2 * 2);
if (uVar3 == 0) {
return 0;
}
LAB_0012dde3:
if (param_3 + 1 <= param_4) {
*param_3 = uVar3 << 8 | uVar3 >> 8;
uVar1 = 2;
}
return uVar1;
}
|
|
57,830
|
ma_scan_restore_block_record
|
eloqsql/storage/maria/ma_blockrec.c
|
int _ma_scan_restore_block_record(MARIA_HA *info,
MARIA_RECORD_POS lastpos)
{
uchar *bitmap_buff;
DBUG_ENTER("_ma_scan_restore_block_record");
info->cur_row.nextpos= lastpos;
bitmap_buff= info->scan.bitmap_buff;
memcpy(&info->scan, info->scan_save, sizeof(*info->scan_save));
info->scan.bitmap_buff= bitmap_buff;
memcpy(bitmap_buff, info->scan_save->bitmap_buff, info->s->block_size * 2);
if (info->scan.row_changes != info->row_changes)
{
/*
Table has been changed. We have to re-read the current page block as
data may have changed on it that we have to see.
*/
if (!(pagecache_read(info->s->pagecache,
&info->dfile,
ma_recordpos_to_page(info->scan.row_base_page),
0, info->scan.page_buff,
info->s->page_type,
PAGECACHE_LOCK_LEFT_UNLOCKED, 0)))
DBUG_RETURN(my_errno);
info->scan.number_of_rows=
(uint) (uchar) info->scan.page_buff[DIR_COUNT_OFFSET];
info->scan.dir_end= (info->scan.page_buff + info->s->block_size -
PAGE_SUFFIX_SIZE -
info->scan.number_of_rows * DIR_ENTRY_SIZE);
}
DBUG_RETURN(0);
}
|
O0
|
c
|
ma_scan_restore_block_record:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rsi
movl $0x60, %edx
callq 0x2a0c0
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x220(%rax)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
shll %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a0c0
movq -0x10(%rbp), %rax
movq 0x278(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x3f0(%rcx), %rax
je 0x32440
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x600(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq $0x470, %rax # imm = 0x470
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x270(%rax), %rdi
callq 0x2f4c0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq %rax, %rdx
movq -0x10(%rbp), %rax
movq 0x238(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7d4(%rax), %r9d
xorl %ecx, %ecx
xorl %eax, %eax
movl $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x54cf0
cmpq $0x0, %rax
jne 0x323e4
jmp 0x323d8
callq 0x122520
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x32449
movq -0x10(%rbp), %rax
movq 0x238(%rax), %rax
movzbl 0x8(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x268(%rax)
movq -0x10(%rbp), %rax
movq 0x238(%rax), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
addq %rax, %rcx
addq $-0x4, %rcx
movq -0x10(%rbp), %rax
movl 0x268(%rax), %eax
shll $0x2, %eax
movl %eax, %eax
movl %eax, %edx
xorl %eax, %eax
subq %rdx, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x248(%rax)
jmp 0x32442
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_scan_restore_block_record:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0A0h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+220h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_10]
add rdi, 220h
mov rax, [rbp+var_10]
mov rsi, [rax+280h]
mov edx, 60h ; '`'
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+220h], rcx
mov rdi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rax, [rax+280h]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+7BCh]
shl eax, 1
mov eax, eax
mov edx, eax
call _memcpy
mov rax, [rbp+var_10]
mov rax, [rax+278h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+3F0h]
jz loc_32440
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+600h]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
add rax, 470h
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rdi, [rax+270h]
call ma_recordpos_to_page
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_28]
mov rdx, rax
mov rax, [rbp+var_10]
mov r8, [rax+238h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov r9d, [rax+7D4h]
xor ecx, ecx
xor eax, eax
mov [rsp+40h+var_40], 0
mov [rsp+40h+var_38], 0
call pagecache_read
cmp rax, 0
jnz short loc_323E4
jmp short $+2
loc_323D8:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4], eax
jmp short loc_32449
loc_323E4:
mov rax, [rbp+var_10]
mov rax, [rax+238h]
movzx ecx, byte ptr [rax+8]
mov rax, [rbp+var_10]
mov [rax+268h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+238h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+7BCh]
add rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov rax, [rbp+var_10]
mov eax, [rax+268h]
shl eax, 2
mov eax, eax
mov edx, eax
xor eax, eax
sub rax, rdx
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+248h], rcx
loc_32440:
jmp short $+2
loc_32442:
mov [rbp+var_4], 0
loc_32449:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
|
long long ma_scan_restore_block_record(_QWORD *a1, long long a2)
{
int v2; // eax
long long v4; // [rsp+10h] [rbp-30h]
long long v5; // [rsp+20h] [rbp-20h]
a1[20] = a2;
v5 = a1[68];
memcpy(a1 + 68, a1[80], 96LL);
a1[68] = v5;
memcpy(v5, *(_QWORD *)a1[80], (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)));
if ( a1[79] == a1[126] )
return 0;
v4 = *(_QWORD *)(*a1 + 1536LL);
v2 = ma_recordpos_to_page(a1[78]);
if ( pagecache_read(v4, (int)a1 + 1136, v2, 0, a1[71], *(_DWORD *)(*a1 + 2004LL), 0, 0LL) )
{
*((_DWORD *)a1 + 154) = *(unsigned __int8 *)(a1[71] + 8LL);
a1[73] = *(unsigned int *)(*a1 + 1980LL) + a1[71] - 4LL - (unsigned int)(4 * *((_DWORD *)a1 + 154));
return 0;
}
return *(unsigned int *)my_thread_var();
}
|
_ma_scan_restore_block_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x220]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x220
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x280]
MOV EDX,0x60
CALL 0x0012a0c0
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x220],RCX
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x280]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
SHL EAX,0x1
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a0c0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x278]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x3f0]
JZ 0x00132440
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x600]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x470
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x270]
CALL 0x0012f4c0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RAX + 0x238]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x7d4]
XOR ECX,ECX
XOR EAX,EAX
MOV dword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00154cf0
CMP RAX,0x0
JNZ 0x001323e4
JMP 0x001323d8
LAB_001323d8:
CALL 0x00222520
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00132449
LAB_001323e4:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x238]
MOVZX ECX,byte ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x268],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x238]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
ADD RCX,RAX
ADD RCX,-0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x268]
SHL EAX,0x2
MOV EAX,EAX
MOV EDX,EAX
XOR EAX,EAX
SUB RAX,RDX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x248],RCX
LAB_00132440:
JMP 0x00132442
LAB_00132442:
MOV dword ptr [RBP + -0x4],0x0
LAB_00132449:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 _ma_scan_restore_block_record(long *param_1,long param_2)
{
void *__dest;
int8 uVar1;
int8 uVar2;
long lVar3;
int4 *puVar4;
param_1[0x14] = param_2;
__dest = (void *)param_1[0x44];
memcpy(param_1 + 0x44,(void *)param_1[0x50],0x60);
param_1[0x44] = (long)__dest;
memcpy(__dest,*(void **)param_1[0x50],(ulong)(uint)(*(int *)(*param_1 + 0x7bc) << 1));
if (param_1[0x4f] != param_1[0x7e]) {
uVar1 = *(int8 *)(*param_1 + 0x600);
uVar2 = ma_recordpos_to_page(param_1[0x4e]);
lVar3 = pagecache_read(uVar1,param_1 + 0x8e,uVar2,0,param_1[0x47],
*(int4 *)(*param_1 + 0x7d4),0,0);
if (lVar3 == 0) {
puVar4 = (int4 *)_my_thread_var();
return *puVar4;
}
*(uint *)(param_1 + 0x4d) = (uint)*(byte *)(param_1[0x47] + 8);
param_1[0x49] =
(param_1[0x47] + (ulong)*(uint *)(*param_1 + 0x7bc) + -4) -
(ulong)(uint)((int)param_1[0x4d] << 2);
}
return 0;
}
|
|
57,831
|
ma_update_dynamic_record
|
eloqsql/storage/maria/ma_dynrec.c
|
my_bool _ma_update_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
uint length= _ma_rec_pack(info, info->rec_buff + MARIA_REC_BUFF_OFFSET,
record);
if (!length)
return 1;
return (update_dynamic_record(info, pos,
info->rec_buff + MARIA_REC_BUFF_OFFSET,
length));
}
|
O0
|
c
|
ma_update_dynamic_record:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rsi
addq $0x18, %rsi
movq -0x28(%rbp), %rdx
callq 0x504d0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x50c73
movb $0x1, -0x1(%rbp)
jmp 0x50c97
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rdx
addq $0x18, %rdx
movl -0x2c(%rbp), %eax
movl %eax, %ecx
callq 0x50ca0
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
|
_ma_update_dynamic_record:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+3A0h]
add rsi, 18h
mov rdx, [rbp+var_28]
call _ma_rec_pack
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_50C73
mov [rbp+var_1], 1
jmp short loc_50C97
loc_50C73:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rdx, [rax+3A0h]
add rdx, 18h
mov eax, [rbp+var_2C]
mov ecx, eax
call update_dynamic_record
mov [rbp+var_1], al
loc_50C97:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char ma_update_dynamic_record(long long a1, long long a2, long long a3, _BYTE *a4)
{
unsigned int v5; // [rsp+4h] [rbp-2Ch]
v5 = ma_rec_pack((_DWORD *)a1, (_BYTE *)(*(_QWORD *)(a1 + 928) + 24LL), a4);
if ( v5 )
return update_dynamic_record(a1, a2, *(_QWORD *)(a1 + 928) + 24LL, v5);
else
return 1;
}
|
_ma_update_dynamic_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x3a0]
ADD RSI,0x18
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001504d0
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x00150c73
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00150c97
LAB_00150c73:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x3a0]
ADD RDX,0x18
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,EAX
CALL 0x00150ca0
MOV byte ptr [RBP + -0x1],AL
LAB_00150c97:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1
_ma_update_dynamic_record(long param_1,int8 param_2,int8 param_3,int8 param_4)
{
int iVar1;
int1 local_9;
iVar1 = _ma_rec_pack(param_1,*(long *)(param_1 + 0x3a0) + 0x18,param_4);
if (iVar1 == 0) {
local_9 = 1;
}
else {
local_9 = update_dynamic_record(param_1,param_2,*(long *)(param_1 + 0x3a0) + 0x18,iVar1);
}
return local_9;
}
|
|
57,832
|
uf_space_prespace_selected
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_space_prespace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) 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((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
else
decode_bytes(rec,bit_buff,to,end);
}
}
|
O0
|
c
|
uf_space_prespace_selected:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc0397
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc03bb
jmp 0xc03d9
movq -0x10(%rbp), %rdi
callq 0xbf250
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc03d9
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
movl $0x20, %esi
callq 0x2a2b0
jmp 0xc0502
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc040b
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc0433
jmp 0xc04eb
movq -0x10(%rbp), %rdi
callq 0xbf250
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc04eb
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xc0476
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x20a552(%rip), %rcx # 0x2ca9c0
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0xc0489
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xbda00
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0xc04ab
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0xc0502
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2b0
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0xc04e9
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x24(%rbp), %eax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
callq 0xbf960
jmp 0xc0500
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xbf960
jmp 0xc0502
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
uf_space_prespace_selected_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C0397
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C03BB
jmp short loc_C03D9
loc_C0397:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_C03D9
loc_C03BB:
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rax, [rbp+var_18]
sub rdx, rax
mov esi, 20h ; ' '
call _memset
jmp loc_C0502
loc_C03D9:
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C040B
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C0433
jmp loc_C04EB
loc_C040B:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz loc_C04EB
loc_C0433:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_C0476
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_C0489
loc_C0476:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_28], eax
loc_C0489:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_C04AB
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_C0502
loc_C04AB:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_C04E9
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_24]
add rdx, rax
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_C04E9:
jmp short loc_C0500
loc_C04EB:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_C0500:
jmp short $+2
loc_C0502:
add rsp, 30h
pop rbp
retn
|
long long uf_space_prespace_selected_0(long long a1, int *a2, _BYTE *a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
long long result; // rax
int v7; // eax
int v8; // ecx
unsigned int v9; // eax
int v10; // ecx
unsigned int bits_0; // [rsp+8h] [rbp-28h]
if ( !a2[1] )
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
goto LABEL_6;
return memset(a3, 32LL, a4 - a3);
}
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) != 0 )
return memset(a3, 32LL, a4 - a3);
LABEL_6:
if ( a2[1] )
{
v7 = *a2;
v8 = a2[1] - 1;
a2[1] = v8;
if ( ((1 << v8) & v7) == 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v9 = *a2;
v10 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v10;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v9 >> v10);
}
if ( &a3[bits_0] <= a4 )
{
memset(a3, 32LL, bits_0);
result = (long long)&a3[bits_0];
if ( (_BYTE *)result != a4 )
return decode_bytes_0(a1, (long long)a2, &a3[bits_0], a4);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
|
uf_space_prespace_selected:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c0397
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c03bb
JMP 0x001c03d9
LAB_001c0397:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001bf250
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c03d9
LAB_001c03bb:
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
SUB RDX,RAX
MOV ESI,0x20
CALL 0x0012a2b0
JMP 0x001c0502
LAB_001c03d9:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c040b
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c0433
JMP 0x001c04eb
LAB_001c040b:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001bf250
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c04eb
LAB_001c0433:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001c0476
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x1c]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x1c]
MOV EDX,ECX
LEA RCX,[0x3ca9c0]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001c0489
LAB_001c0476:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001bda00
MOV dword ptr [RBP + -0x28],EAX
LAB_001c0489:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001c04ab
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x001c0502
LAB_001c04ab:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2b0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001c04e9
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001bf960
LAB_001c04e9:
JMP 0x001c0500
LAB_001c04eb:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001bf960
LAB_001c0500:
JMP 0x001c0502
LAB_001c0502:
ADD RSP,0x30
POP RBP
RET
|
void uf_space_prespace_selected(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
decode_bytes(param_1,param_2,param_3,param_4);
}
else {
if (param_2[1] < *(uint *)(param_1 + 0x1c)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x1c);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4);
}
if (param_4 < (long)param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)local_30);
if ((long)param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4);
}
}
}
}
else {
memset(param_3,0x20,param_4 - (long)param_3);
}
return;
}
|
|
57,833
|
fmt::v10::appender fmt::v10::vformat_to<fmt::v10::appender, 0>(fmt::v10::appender, fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>)
|
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h
|
explicit iterator_buffer(OutputIt out, size_t n = buffer_size)
: Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {}
|
O3
|
c
|
fmt::v10::appender fmt::v10::vformat_to<fmt::v10::appender, 0>(fmt::v10::appender, fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>):
pushq %rbx
subq $0x130, %rsp # imm = 0x130
leaq 0x30(%rsp), %rbx
movq %rbx, -0x20(%rbx)
movq $0x0, -0x18(%rbx)
movq $0x100, -0x10(%rbx) # imm = 0x100
leaq 0x96083(%rip), %rax # 0xb0128
addq $0x10, %rax
movq %rax, -0x28(%rbx)
movq %rdi, -0x8(%rbx)
leaq 0x8(%rsp), %rdi
xorl %r9d, %r9d
callq 0x4163d
movq 0x18(%rsp), %rsi
addq %rbx, %rsi
movq $0x0, 0x18(%rsp)
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a1e8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
movq %rax, 0x20(%rdi)
callq 0x1a18a
movq %rbx, %rax
addq $0x130, %rsp # imm = 0x130
popq %rbx
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1a18a
movq %rbx, %rdi
callq 0x11760
|
_ZN3fmt3v1010vformat_toINS0_8appenderETnNSt9enable_ifIXsr6detail18is_output_iteratorIT_cEE5valueEiE4typeELi0EEES4_S4_NS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextIS2_cEEEE:
push rbx
sub rsp, 130h
lea rbx, [rsp+138h+var_108]
mov [rbx-20h], rbx
mov qword ptr [rbx-18h], 0
mov qword ptr [rbx-10h], 100h
lea rax, _ZTVN3fmt3v106detail15iterator_bufferINS0_8appenderEcNS1_13buffer_traitsEEE; `vtable for'fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits>
add rax, 10h
mov [rbx-28h], rax
mov [rbx-8], rdi
lea rdi, [rsp+138h+var_130]; int
xor r9d, r9d
call _ZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refE; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)
mov rsi, [rsp+138h+var_120]
add rsi, rbx
mov [rsp+138h+var_120], 0
mov rdx, [rsp+138h+var_110]
mov rdi, rbx
call _ZN3fmt3v106detail8copy_strIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov rbx, rax
lea rdi, [rsp+138h+var_130]
mov [rdi+20h], rax
call _ZN3fmt3v106detail15iterator_bufferINS0_8appenderEcNS1_13buffer_traitsEED2Ev; fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits>::~iterator_buffer()
mov rax, rbx
add rsp, 130h
pop rbx
retn
mov rbx, rax
lea rdi, [rsp+arg_0]
call _ZN3fmt3v106detail15iterator_bufferINS0_8appenderEcNS1_13buffer_traitsEED2Ev; fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits>::~iterator_buffer()
mov rdi, rbx
call __Unwind_Resume
|
long long ZN3fmt3v1010vformat_toINS0_8appenderETnNSt9enable_ifIXsr6detail18is_output_iteratorIT_cEE5valueEiE4typeELi0EEES4_S4_NS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextIS2_cEEEE(
long long a1)
{
_BYTE *v1; // rsi
long long v2; // rbx
_QWORD v4[2]; // [rsp+8h] [rbp-130h] BYREF
long long v5; // [rsp+18h] [rbp-120h]
long long v6; // [rsp+20h] [rbp-118h]
long long v7; // [rsp+28h] [rbp-110h]
_BYTE v8[264]; // [rsp+30h] [rbp-108h] BYREF
v4[1] = v8;
v5 = 0LL;
v6 = 256LL;
v4[0] = &`vtable for'fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits> + 2;
v7 = a1;
fmt::v10::detail::vformat_to<char>((int)v4);
v1 = &v8[v5];
v5 = 0LL;
v2 = fmt::v10::detail::copy_str<char,char *,fmt::v10::appender>(v8, v1, v7);
v7 = v2;
fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits>::~iterator_buffer();
return v2;
}
|
_ZN3fmt3v1010vformat_toINS0_8appenderETnNSt9enable_ifIXsr6detail18is_output_iteratorIT_cEE5valueEiE4typeELi0EEES4_S4_NS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextIS2_cEEEE:
PUSH RBX
SUB RSP,0x130
LEA RBX,[RSP + 0x30]
MOV qword ptr [RBX + -0x20],RBX
MOV qword ptr [RBX + -0x18],0x0
MOV qword ptr [RBX + -0x10],0x100
LEA RAX,[0x1b0128]
ADD RAX,0x10
MOV qword ptr [RBX + -0x28],RAX
MOV qword ptr [RBX + -0x8],RDI
LAB_0011a0b1:
LEA RDI,[RSP + 0x8]
XOR R9D,R9D
CALL 0x0014163d
MOV RSI,qword ptr [RSP + 0x18]
ADD RSI,RBX
MOV qword ptr [RSP + 0x18],0x0
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x0011a1e8
LAB_0011a0dc:
MOV RBX,RAX
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI + 0x20],RAX
CALL 0x0011a18a
MOV RAX,RBX
ADD RSP,0x130
POP RBX
RET
|
int8
_ZN3fmt3v1010vformat_toINS0_8appenderETnNSt9enable_ifIXsr6detail18is_output_iteratorIT_cEE5valueEiE4typeELi0EEES4_S4_NS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextIS2_cEEEE
(int8 param_1)
{
int8 uVar1;
int1 *puVar2;
int **local_130;
int1 *local_128;
long local_120;
int8 local_118;
int8 local_110;
int1 local_108 [256];
local_120 = 0;
local_118 = 0x100;
local_130 = &PTR_grow_001b0138;
/* try { // try from 0011a0b1 to 0011a0db has its CatchHandler @ 0011a0f9 */
local_128 = local_108;
local_110 = param_1;
fmt::v10::detail::vformat_to<char>(&local_130);
puVar2 = local_108 + local_120;
local_120 = 0;
uVar1 = fmt::v10::detail::copy_str<char,char*,fmt::v10::appender>(local_108,puVar2,local_110);
local_110 = uVar1;
fmt::v10::detail::iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits>::
~iterator_buffer((iterator_buffer<fmt::v10::appender,char,fmt::v10::detail::buffer_traits> *)
&local_130);
return uVar1;
}
|
|
57,834
|
ma_test_if_reopen
|
eloqsql/storage/maria/ma_open.c
|
MARIA_HA *_ma_test_if_reopen(const char *filename)
{
LIST *pos;
for (pos=maria_open_list ; pos ; pos=pos->next)
{
MARIA_HA *info=(MARIA_HA*) pos->data;
MARIA_SHARE *share= info->s;
if (!strcmp(share->unique_file_name.str,filename) && share->last_version)
return info;
}
return 0;
}
|
O3
|
c
|
ma_test_if_reopen:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x3ce0ae(%rip), %rax # 0x424e80
movq (%rax), %r15
testq %r15, %r15
je 0x56e0c
movq %rdi, %rbx
movq 0x10(%r15), %r14
movq (%r14), %r12
movq 0x5b0(%r12), %rdi
movq %rbx, %rsi
callq 0x2a750
testl %eax, %eax
jne 0x56e03
cmpq $0x0, 0x718(%r12)
jne 0x56e0f
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x56ddd
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ma_test_if_reopen:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
lea rax, maria_open_list
mov r15, [rax]
test r15, r15
jz short loc_56E0C
mov rbx, rdi
loc_56DDD:
mov r14, [r15+10h]
mov r12, [r14]
mov rdi, [r12+5B0h]
mov rsi, rbx
call _strcmp
test eax, eax
jnz short loc_56E03
cmp qword ptr [r12+718h], 0
jnz short loc_56E0F
loc_56E03:
mov r15, [r15+8]
test r15, r15
jnz short loc_56DDD
loc_56E0C:
xor r14d, r14d
loc_56E0F:
mov rax, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long * ma_test_if_reopen(long long a1)
{
long long v1; // r15
long long *v2; // r14
long long v3; // r12
v1 = maria_open_list;
if ( !maria_open_list )
return 0LL;
while ( 1 )
{
v2 = *(long long **)(v1 + 16);
v3 = *v2;
if ( !(unsigned int)strcmp(*(_QWORD *)(*v2 + 1456), a1) )
{
if ( *(_QWORD *)(v3 + 1816) )
break;
}
v1 = *(_QWORD *)(v1 + 8);
if ( !v1 )
return 0LL;
}
return v2;
}
|
_ma_test_if_reopen:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
LEA RAX,[0x524e80]
MOV R15,qword ptr [RAX]
TEST R15,R15
JZ 0x00156e0c
MOV RBX,RDI
LAB_00156ddd:
MOV R14,qword ptr [R15 + 0x10]
MOV R12,qword ptr [R14]
MOV RDI,qword ptr [R12 + 0x5b0]
MOV RSI,RBX
CALL 0x0012a750
TEST EAX,EAX
JNZ 0x00156e03
CMP qword ptr [R12 + 0x718],0x0
JNZ 0x00156e0f
LAB_00156e03:
MOV R15,qword ptr [R15 + 0x8]
TEST R15,R15
JNZ 0x00156ddd
LAB_00156e0c:
XOR R14D,R14D
LAB_00156e0f:
MOV RAX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long * _ma_test_if_reopen(char *param_1)
{
long *plVar1;
long lVar2;
int iVar3;
long lVar4;
lVar4 = maria_open_list;
if (maria_open_list != 0) {
do {
plVar1 = *(long **)(lVar4 + 0x10);
lVar2 = *plVar1;
iVar3 = strcmp(*(char **)(lVar2 + 0x5b0),param_1);
if ((iVar3 == 0) && (*(long *)(lVar2 + 0x718) != 0)) {
return plVar1;
}
plVar1 = (long *)(lVar4 + 8);
lVar4 = *plVar1;
} while (*plVar1 != 0);
}
return (long *)0x0;
}
|
|
57,835
|
my_wc_mb_big5
|
eloqsql/strings/ctype-big5.c
|
static int
my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((int) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_big5_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
}
|
O3
|
c
|
my_wc_mb_big5:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x2e45d
cmpl $0x7f, %esi
jg 0x2e320
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x2e45d
leal -0xa2(%rsi), %edi
cmpl $0x55, %edi
ja 0x2e336
movl %edi, %esi
leaq 0x3dcbc(%rip), %rdi # 0x6bff0
jmp 0x2e398
leal -0x2c7(%rsi), %edi
cmpl $0x18a, %edi # imm = 0x18A
ja 0x2e34f
movl %edi, %esi
leaq 0x3dd53(%rip), %rdi # 0x6c0a0
jmp 0x2e398
leal -0x2013(%rsi), %edi
cmpl $0x2ac, %edi # imm = 0x2AC
ja 0x2e368
movl %edi, %esi
leaq 0x3e05a(%rip), %rdi # 0x6c3c0
jmp 0x2e398
leal -0x2460(%rsi), %edi
cmpl $0x1e2, %edi # imm = 0x1E2
ja 0x2e381
movl %edi, %esi
leaq 0x3e5a1(%rip), %rdi # 0x6c920
jmp 0x2e398
leal -0x3000(%rsi), %edi
cmpl $0x129, %edi # imm = 0x129
ja 0x2e3c5
movl %edi, %esi
leaq 0x3e958(%rip), %rdi # 0x6ccf0
leaq (%rdi,%rsi,2), %rsi
movzwl (%rsi), %edi
testl %edi, %edi
je 0x2e45b
leaq 0x2(%rdx), %rsi
cmpq %rcx, %rsi
ja 0x2e45d
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
jmp 0x2e45d
movl $0xa1c0, %edi # imm = 0xA1C0
cmpl $0x32a3, %esi # imm = 0x32A3
je 0x2e3a7
leal -0x338e(%rsi), %edi
cmpl $0x47, %edi
ja 0x2e3e8
movl %edi, %esi
leaq 0x3eb6a(%rip), %rdi # 0x6cf50
jmp 0x2e398
leal -0x4e00(%rsi), %edi
cmpl $0x4683, %edi # imm = 0x4683
ja 0x2e401
movl %edi, %esi
leaq 0x3ebe1(%rip), %rdi # 0x6cfe0
jmp 0x2e398
leal -0x9577(%rsi), %edi
cmpl $0xa2d, %edi # imm = 0xA2D
ja 0x2e41d
movl %edi, %esi
leaq 0x478d8(%rip), %rdi # 0x75cf0
jmp 0x2e398
movl %esi, %edi
andl $0x7ffffffe, %edi # imm = 0x7FFFFFFE
cmpl $0xfa0c, %edi # imm = 0xFA0C
jne 0x2e43f
addl $0xffff05f4, %esi # imm = 0xFFFF05F4
leaq 0x490b2(%rip), %rdi # 0x774ec
jmp 0x2e398
addl $0xffff01d0, %esi # imm = 0xFFFF01D0
cmpl $0x1cd, %esi # imm = 0x1CD
ja 0x2e45b
movl %esi, %esi
leaq 0x48cfa(%rip), %rdi # 0x77150
jmp 0x2e398
xorl %eax, %eax
popq %rbp
retq
|
my_wc_mb_big5:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_2E45D
cmp esi, 7Fh
jg short loc_2E320
mov [rdx], sil
mov eax, 1
jmp loc_2E45D
loc_2E320:
lea edi, [rsi-0A2h]
cmp edi, 55h ; 'U'
ja short loc_2E336
mov esi, edi
lea rdi, tab_uni_big50
jmp short loc_2E398
loc_2E336:
lea edi, [rsi-2C7h]
cmp edi, 18Ah
ja short loc_2E34F
mov esi, edi
lea rdi, tab_uni_big51
jmp short loc_2E398
loc_2E34F:
lea edi, [rsi-2013h]
cmp edi, 2ACh
ja short loc_2E368
mov esi, edi
lea rdi, tab_uni_big52
jmp short loc_2E398
loc_2E368:
lea edi, [rsi-2460h]
cmp edi, 1E2h
ja short loc_2E381
mov esi, edi
lea rdi, tab_uni_big53
jmp short loc_2E398
loc_2E381:
lea edi, [rsi-3000h]
cmp edi, 129h
ja short loc_2E3C5
mov esi, edi
lea rdi, tab_uni_big54
loc_2E398:
lea rsi, [rdi+rsi*2]
movzx edi, word ptr [rsi]
test edi, edi
jz loc_2E45B
loc_2E3A7:
lea rsi, [rdx+2]
cmp rsi, rcx
ja loc_2E45D
rol di, 8
mov [rdx], di
mov eax, 2
jmp loc_2E45D
loc_2E3C5:
mov edi, 0A1C0h
cmp esi, 32A3h
jz short loc_2E3A7
lea edi, [rsi-338Eh]
cmp edi, 47h ; 'G'
ja short loc_2E3E8
mov esi, edi
lea rdi, tab_uni_big56
jmp short loc_2E398
loc_2E3E8:
lea edi, [rsi-4E00h]
cmp edi, 4683h
ja short loc_2E401
mov esi, edi
lea rdi, tab_uni_big57
jmp short loc_2E398
loc_2E401:
lea edi, [rsi-9577h]
cmp edi, 0A2Dh
ja short loc_2E41D
mov esi, edi
lea rdi, tab_uni_big58
jmp loc_2E398
loc_2E41D:
mov edi, esi
and edi, 7FFFFFFEh
cmp edi, 0FA0Ch
jnz short loc_2E43F
add esi, 0FFFF05F4h
lea rdi, tab_uni_big59
jmp loc_2E398
loc_2E43F:
add esi, 0FFFF01D0h
cmp esi, 1CDh
ja short loc_2E45B
mov esi, esi
lea rdi, tab_uni_big510
jmp loc_2E398
loc_2E45B:
xor eax, eax
loc_2E45D:
pop rbp
retn
|
long long my_wc_mb_big5(long long a1, int a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rsi
_WORD *v6; // rdi
__int16 v7; // di
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 127 )
{
*a3 = a2;
return 1LL;
}
if ( (unsigned int)(a2 - 162) > 0x55 )
{
if ( (unsigned int)(a2 - 711) > 0x18A )
{
if ( (unsigned int)(a2 - 8211) > 0x2AC )
{
if ( (unsigned int)(a2 - 9312) > 0x1E2 )
{
if ( (unsigned int)(a2 - 12288) > 0x129 )
{
v7 = -24128;
if ( a2 == 12963 )
{
LABEL_15:
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v7, 8);
return 2LL;
}
return result;
}
if ( (unsigned int)(a2 - 13198) > 0x47 )
{
if ( (unsigned int)(a2 - 19968) > 0x4683 )
{
if ( (unsigned int)(a2 - 38263) > 0xA2D )
{
if ( (a2 & 0x7FFFFFFE) == 0xFA0C )
{
v5 = (unsigned int)(a2 - 64012);
v6 = &tab_uni_big59;
}
else
{
LODWORD(v5) = a2 - 65072;
if ( (unsigned int)v5 > 0x1CD )
return 0LL;
v5 = (unsigned int)v5;
v6 = &tab_uni_big510;
}
}
else
{
v5 = (unsigned int)(a2 - 38263);
v6 = &tab_uni_big58;
}
}
else
{
v5 = (unsigned int)(a2 - 19968);
v6 = &tab_uni_big57;
}
}
else
{
v5 = (unsigned int)(a2 - 13198);
v6 = &tab_uni_big56;
}
}
else
{
v5 = (unsigned int)(a2 - 12288);
v6 = &tab_uni_big54;
}
}
else
{
v5 = (unsigned int)(a2 - 9312);
v6 = &tab_uni_big53;
}
}
else
{
v5 = (unsigned int)(a2 - 8211);
v6 = &tab_uni_big52;
}
}
else
{
v5 = (unsigned int)(a2 - 711);
v6 = &tab_uni_big51;
}
}
else
{
v5 = (unsigned int)(a2 - 162);
v6 = &tab_uni_big50;
}
v7 = v6[v5];
if ( v7 )
goto LABEL_15;
return 0LL;
}
return result;
}
|
my_wc_mb_big5:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0012e45d
CMP ESI,0x7f
JG 0x0012e320
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x0012e45d
LAB_0012e320:
LEA EDI,[RSI + -0xa2]
CMP EDI,0x55
JA 0x0012e336
MOV ESI,EDI
LEA RDI,[0x16bff0]
JMP 0x0012e398
LAB_0012e336:
LEA EDI,[RSI + -0x2c7]
CMP EDI,0x18a
JA 0x0012e34f
MOV ESI,EDI
LEA RDI,[0x16c0a0]
JMP 0x0012e398
LAB_0012e34f:
LEA EDI,[RSI + -0x2013]
CMP EDI,0x2ac
JA 0x0012e368
MOV ESI,EDI
LEA RDI,[0x16c3c0]
JMP 0x0012e398
LAB_0012e368:
LEA EDI,[RSI + -0x2460]
CMP EDI,0x1e2
JA 0x0012e381
MOV ESI,EDI
LEA RDI,[0x16c920]
JMP 0x0012e398
LAB_0012e381:
LEA EDI,[RSI + -0x3000]
CMP EDI,0x129
JA 0x0012e3c5
MOV ESI,EDI
LEA RDI,[0x16ccf0]
LAB_0012e398:
LEA RSI,[RDI + RSI*0x2]
MOVZX EDI,word ptr [RSI]
TEST EDI,EDI
JZ 0x0012e45b
LAB_0012e3a7:
LEA RSI,[RDX + 0x2]
CMP RSI,RCX
JA 0x0012e45d
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
JMP 0x0012e45d
LAB_0012e3c5:
MOV EDI,0xa1c0
CMP ESI,0x32a3
JZ 0x0012e3a7
LEA EDI,[RSI + -0x338e]
CMP EDI,0x47
JA 0x0012e3e8
MOV ESI,EDI
LEA RDI,[0x16cf50]
JMP 0x0012e398
LAB_0012e3e8:
LEA EDI,[RSI + -0x4e00]
CMP EDI,0x4683
JA 0x0012e401
MOV ESI,EDI
LEA RDI,[0x16cfe0]
JMP 0x0012e398
LAB_0012e401:
LEA EDI,[RSI + -0x9577]
CMP EDI,0xa2d
JA 0x0012e41d
MOV ESI,EDI
LEA RDI,[0x175cf0]
JMP 0x0012e398
LAB_0012e41d:
MOV EDI,ESI
AND EDI,0x7ffffffe
CMP EDI,0xfa0c
JNZ 0x0012e43f
ADD ESI,0xffff05f4
LEA RDI,[0x1774ec]
JMP 0x0012e398
LAB_0012e43f:
ADD ESI,0xffff01d0
CMP ESI,0x1cd
JA 0x0012e45b
MOV ESI,ESI
LEA RDI,[0x177150]
JMP 0x0012e398
LAB_0012e45b:
XOR EAX,EAX
LAB_0012e45d:
POP RBP
RET
|
int8 my_wc_mb_big5(int8 param_1,uint param_2,ushort *param_3,ushort *param_4)
{
int8 uVar1;
ulong uVar2;
ushort uVar3;
int1 *puVar4;
uVar1 = 0xffffff9b;
if (param_4 <= param_3) {
return 0xffffff9b;
}
if ((int)param_2 < 0x80) {
*(char *)param_3 = (char)param_2;
return 1;
}
if (param_2 - 0xa2 < 0x56) {
uVar2 = (ulong)(param_2 - 0xa2);
puVar4 = tab_uni_big50;
}
else if (param_2 - 0x2c7 < 0x18b) {
uVar2 = (ulong)(param_2 - 0x2c7);
puVar4 = tab_uni_big51;
}
else if (param_2 - 0x2013 < 0x2ad) {
uVar2 = (ulong)(param_2 - 0x2013);
puVar4 = tab_uni_big52;
}
else if (param_2 - 0x2460 < 0x1e3) {
uVar2 = (ulong)(param_2 - 0x2460);
puVar4 = tab_uni_big53;
}
else if (param_2 - 0x3000 < 0x12a) {
uVar2 = (ulong)(param_2 - 0x3000);
puVar4 = tab_uni_big54;
}
else {
uVar3 = 0xa1c0;
if (param_2 == 0x32a3) goto LAB_0012e3a7;
if (param_2 - 0x338e < 0x48) {
uVar2 = (ulong)(param_2 - 0x338e);
puVar4 = tab_uni_big56;
}
else if (param_2 - 0x4e00 < 0x4684) {
uVar2 = (ulong)(param_2 - 0x4e00);
puVar4 = tab_uni_big57;
}
else if (param_2 - 0x9577 < 0xa2e) {
uVar2 = (ulong)(param_2 - 0x9577);
puVar4 = tab_uni_big58;
}
else if ((param_2 & 0x7ffffffe) == 0xfa0c) {
uVar2 = (ulong)(param_2 - 0xfa0c);
puVar4 = (int1 *)&tab_uni_big59;
}
else {
if (0x1cd < param_2 - 0xfe30) {
return 0;
}
uVar2 = (ulong)(param_2 - 0xfe30);
puVar4 = tab_uni_big510;
}
}
uVar3 = *(ushort *)((long)puVar4 + uVar2 * 2);
if (uVar3 == 0) {
return 0;
}
LAB_0012e3a7:
if (param_3 + 1 <= param_4) {
*param_3 = uVar3 << 8 | uVar3 >> 8;
uVar1 = 2;
}
return uVar1;
}
|
|
57,836
|
s2b
|
eloqsql/strings/dtoa.c
|
static Bigint *s2b(const char *s, int nd0, int nd, ULong y9, Stack_alloc *alloc)
{
Bigint *b;
int i, k;
Long x, y;
x= (nd + 8) / 9;
for (k= 0, y= 1; x > y; y <<= 1, k++) ;
b= Balloc(k, alloc);
b->p.x[0]= y9;
b->wds= 1;
i= 9;
if (9 < nd0)
{
s+= 9;
do
b= multadd(b, 10, *s++ - '0', alloc);
while (++i < nd0);
s++; /* skip '.' */
}
else
s+= 10;
/* now do the fractional part */
for(; i < nd; i++)
b= multadd(b, 10, *s++ - '0', alloc);
return b;
}
|
O0
|
c
|
s2b:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movl -0x10(%rbp), %eax
addl $0x8, %eax
movl $0x9, %ecx
cltd
idivl %ecx
movl %eax, -0x34(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x1, -0x38(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0x87415
jmp 0x87402
movl -0x38(%rbp), %eax
shll %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x873f8
movl -0x30(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x87500
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %ecx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl $0x1, 0x14(%rax)
movl $0x9, -0x2c(%rbp)
movl $0x9, %eax
cmpl -0xc(%rbp), %eax
jge 0x874a0
movq -0x8(%rbp), %rax
addq $0x9, %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movsbl (%rax), %edx
subl $0x30, %edx
movq -0x20(%rbp), %rcx
movl $0xa, %esi
callq 0x88190
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
cmpl -0xc(%rbp), %eax
jl 0x87459
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x874ac
movq -0x8(%rbp), %rax
addq $0xa, %rax
movq %rax, -0x8(%rbp)
jmp 0x874ae
movl -0x2c(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x874ec
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movsbl (%rax), %edx
subl $0x30, %edx
movq -0x20(%rbp), %rcx
movl $0xa, %esi
callq 0x88190
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x874ae
movq -0x28(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
s2b:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov [rbp+var_20], r8
mov eax, [rbp+var_10]
add eax, 8
mov ecx, 9
cdq
idiv ecx
mov [rbp+var_34], eax
mov [rbp+var_30], 0
mov [rbp+var_38], 1
loc_873F8:
mov eax, [rbp+var_34]
cmp eax, [rbp+var_38]
jle short loc_87415
jmp short $+2
loc_87402:
mov eax, [rbp+var_38]
shl eax, 1
mov [rbp+var_38], eax
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp short loc_873F8
loc_87415:
mov edi, [rbp+var_30]
mov rsi, [rbp+var_20]
call Balloc
mov [rbp+var_28], rax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rax], ecx
mov rax, [rbp+var_28]
mov dword ptr [rax+14h], 1
mov [rbp+var_2C], 9
mov eax, 9
cmp eax, [rbp+var_C]
jge short loc_874A0
mov rax, [rbp+var_8]
add rax, 9
mov [rbp+var_8], rax
loc_87459:
mov rdi, [rbp+var_28]
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movsx edx, byte ptr [rax]
sub edx, 30h ; '0'
mov rcx, [rbp+var_20]
mov esi, 0Ah
call multadd
mov [rbp+var_28], rax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
cmp eax, [rbp+var_C]
jl short loc_87459
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_874AC
loc_874A0:
mov rax, [rbp+var_8]
add rax, 0Ah
mov [rbp+var_8], rax
loc_874AC:
jmp short $+2
loc_874AE:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_10]
jge short loc_874EC
mov rdi, [rbp+var_28]
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movsx edx, byte ptr [rax]
sub edx, 30h ; '0'
mov rcx, [rbp+var_20]
mov esi, 0Ah
call multadd
mov [rbp+var_28], rax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp short loc_874AE
loc_874EC:
mov rax, [rbp+var_28]
add rsp, 40h
pop rbp
retn
|
long long s2b(long long a1, int a2, int a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
int i; // [rsp+8h] [rbp-38h]
unsigned int v9; // [rsp+10h] [rbp-30h]
int v10; // [rsp+14h] [rbp-2Ch]
long long v11; // [rsp+18h] [rbp-28h]
char *v15; // [rsp+38h] [rbp-8h]
char *v16; // [rsp+38h] [rbp-8h]
v9 = 0;
for ( i = 1; (a3 + 8) / 9 > i; i *= 2 )
++v9;
v11 = Balloc(v9, a5);
**(_DWORD **)v11 = a4;
*(_DWORD *)(v11 + 20) = 1;
v10 = 9;
if ( a2 <= 9 )
{
v16 = (char *)(a1 + 10);
}
else
{
v15 = (char *)(a1 + 9);
do
{
v5 = v15++;
v11 = multadd(v11, 10LL, (unsigned int)(*v5 - 48), a5);
++v10;
}
while ( v10 < a2 );
v16 = v15 + 1;
}
while ( v10 < a3 )
{
v6 = v16++;
v11 = multadd(v11, 10LL, (unsigned int)(*v6 - 48), a5);
++v10;
}
return v11;
}
|
s2b:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV qword ptr [RBP + -0x20],R8
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x8
MOV ECX,0x9
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x34],EAX
MOV dword ptr [RBP + -0x30],0x0
MOV dword ptr [RBP + -0x38],0x1
LAB_001873f8:
MOV EAX,dword ptr [RBP + -0x34]
CMP EAX,dword ptr [RBP + -0x38]
JLE 0x00187415
JMP 0x00187402
LAB_00187402:
MOV EAX,dword ptr [RBP + -0x38]
SHL EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001873f8
LAB_00187415:
MOV EDI,dword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00187500
MOV qword ptr [RBP + -0x28],RAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],0x1
MOV dword ptr [RBP + -0x2c],0x9
MOV EAX,0x9
CMP EAX,dword ptr [RBP + -0xc]
JGE 0x001874a0
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x9
MOV qword ptr [RBP + -0x8],RAX
LAB_00187459:
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVSX EDX,byte ptr [RAX]
SUB EDX,0x30
MOV RCX,qword ptr [RBP + -0x20]
MOV ESI,0xa
CALL 0x00188190
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,dword ptr [RBP + -0xc]
JL 0x00187459
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001874ac
LAB_001874a0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xa
MOV qword ptr [RBP + -0x8],RAX
LAB_001874ac:
JMP 0x001874ae
LAB_001874ae:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x001874ec
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVSX EDX,byte ptr [RAX]
SUB EDX,0x30
MOV RCX,qword ptr [RBP + -0x20]
MOV ESI,0xa
CALL 0x00188190
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001874ae
LAB_001874ec:
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x40
POP RBP
RET
|
int8 * s2b(long param_1,int param_2,int param_3,int4 param_4,int8 param_5)
{
char *pcVar1;
int local_40;
int local_38;
int local_34;
int8 *local_30;
char *local_10;
local_38 = 0;
for (local_40 = 1; local_40 < (param_3 + 8) / 9; local_40 = local_40 << 1) {
local_38 = local_38 + 1;
}
local_30 = (int8 *)Balloc(local_38,param_5,(long)(param_3 + 8) % 9 & 0xffffffff);
*(int4 *)*local_30 = param_4;
*(int4 *)((long)local_30 + 0x14) = 1;
local_34 = 9;
if (param_2 < 10) {
local_10 = (char *)(param_1 + 10);
}
else {
pcVar1 = (char *)(param_1 + 9);
do {
local_10 = pcVar1;
local_30 = (int8 *)multadd(local_30,10,*local_10 + -0x30,param_5);
local_34 = local_34 + 1;
pcVar1 = local_10 + 1;
} while (local_34 < param_2);
local_10 = local_10 + 2;
}
for (; local_34 < param_3; local_34 = local_34 + 1) {
local_30 = (int8 *)multadd(local_30,10,*local_10 + -0x30,param_5);
local_10 = local_10 + 1;
}
return local_30;
}
|
|
57,837
|
list_free
|
eloqsql/mysys/list.c
|
void list_free(LIST *root, uint free_data)
{
LIST *next;
while (root)
{
next=root->next;
if (free_data)
my_free(root->data);
my_free(root);
root=next;
}
}
|
O0
|
c
|
list_free:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0xe44b8
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0xe44a5
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xfc410
movq -0x8(%rbp), %rdi
callq 0xfc410
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xe447f
addq $0x20, %rsp
popq %rbp
retq
nop
|
list_free:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
loc_E447F:
cmp [rbp+var_8], 0
jz short loc_E44B8
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
cmp [rbp+var_C], 0
jz short loc_E44A5
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
call my_free
loc_E44A5:
mov rdi, [rbp+var_8]
call my_free
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp short loc_E447F
loc_E44B8:
add rsp, 20h
pop rbp
retn
|
long long list_free(long long a1, int a2)
{
long long result; // rax
long long v3; // [rsp+8h] [rbp-18h]
while ( a1 )
{
v3 = *(_QWORD *)(a1 + 8);
if ( a2 )
my_free(*(_QWORD *)(a1 + 16));
my_free(a1);
result = v3;
a1 = v3;
}
return result;
}
|
list_free:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
LAB_001e447f:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x001e44b8
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP dword ptr [RBP + -0xc],0x0
JZ 0x001e44a5
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001fc410
LAB_001e44a5:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fc410
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001e447f
LAB_001e44b8:
ADD RSP,0x20
POP RBP
RET
|
void list_free(long param_1,int param_2)
{
long lVar1;
int8 local_10;
local_10 = param_1;
while (local_10 != 0) {
lVar1 = *(long *)(local_10 + 8);
if (param_2 != 0) {
my_free(*(int8 *)(local_10 + 0x10));
}
my_free(local_10);
local_10 = lVar1;
}
return;
}
|
|
57,838
|
list_free
|
eloqsql/mysys/list.c
|
void list_free(LIST *root, uint free_data)
{
LIST *next;
while (root)
{
next=root->next;
if (free_data)
my_free(root->data);
my_free(root);
root=next;
}
}
|
O3
|
c
|
list_free:
testq %rdi, %rdi
je 0x99612
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0x8(%r14), %r15
testl %ebx, %ebx
je 0x995f8
movq 0x10(%r14), %rdi
callq 0xa71c6
movq %r14, %rdi
callq 0xa71c6
movq %r15, %r14
testq %r15, %r15
jne 0x995e7
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
list_free:
test rdi, rdi
jz short locret_99612
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
loc_995E7:
mov r15, [r14+8]
test ebx, ebx
jz short loc_995F8
mov rdi, [r14+10h]
call my_free
loc_995F8:
mov rdi, r14
call my_free
mov r14, r15
test r15, r15
jnz short loc_995E7
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
locret_99612:
retn
|
long long list_free(long long a1, int a2)
{
long long v2; // r14
long long v3; // r15
long long result; // rax
if ( a1 )
{
v2 = a1;
do
{
v3 = *(_QWORD *)(v2 + 8);
if ( a2 )
my_free(*(_QWORD *)(v2 + 16));
result = my_free(v2);
v2 = v3;
}
while ( v3 );
}
return result;
}
|
list_free:
TEST RDI,RDI
JZ 0x00199612
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
LAB_001995e7:
MOV R15,qword ptr [R14 + 0x8]
TEST EBX,EBX
JZ 0x001995f8
MOV RDI,qword ptr [R14 + 0x10]
CALL 0x001a71c6
LAB_001995f8:
MOV RDI,R14
CALL 0x001a71c6
MOV R14,R15
TEST R15,R15
JNZ 0x001995e7
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
LAB_00199612:
RET
|
void list_free(long param_1,int param_2)
{
long lVar1;
if (param_1 != 0) {
do {
lVar1 = *(long *)(param_1 + 8);
if (param_2 != 0) {
my_free(*(int8 *)(param_1 + 0x10));
}
my_free(param_1);
param_1 = lVar1;
} while (lVar1 != 0);
}
return;
}
|
|
57,839
|
Trie::SearchForAllWithScore(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, int, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
|
MikePodsytnik[P]TCRtrie/src/Trie.cpp
|
std::unordered_map<std::string, std::vector<AIRREntity>> Trie::SearchForAllWithScore(
const std::vector<std::string>& queries,
int maxScore,
const std::optional<std::string>& vGeneFilter,
const std::optional<std::string>& jGeneFilter) {
std::unordered_map<std::string, std::vector<AIRREntity>> result;
std::vector<std::future<std::pair<std::string, std::vector<AIRREntity>>>> futures;
std::size_t maxConcurrent = 10 * std::thread::hardware_concurrency();
for (std::size_t i = 0; i < queries.size(); ++i) {
const std::string& query = queries[i];
futures.push_back(std::async(std::launch::async,
[this, query, maxScore]() {
return std::make_pair(query, this->SearchWithScore(query, maxScore));
}));
if (futures.size() >= maxConcurrent || i == queries.size() - 1) {
for (std::future<std::pair<std::string, std::vector<AIRREntity>>>& fut : futures) {
std::pair<std::string, std::vector<AIRREntity>> completed = fut.get();
result[std::move(completed.first)] = std::move(completed.second);
}
futures.clear();
}
}
for (auto& fut : futures) {
auto [query, matches] = fut.get();
result[query] = std::move(matches);
}
return result;
}
|
O0
|
cpp
|
Trie::SearchForAllWithScore(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, int, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp # imm = 0x1D0
movq %rdi, -0x190(%rbp)
movq %rdi, %rax
movq %rax, -0x188(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x180(%rbp)
movb $0x0, -0x31(%rbp)
callq 0x5a6a0
leaq -0x50(%rbp), %rdi
callq 0x5a6c0
callq 0x9880
imull $0xa, %eax, %eax
movl %eax, %eax
movq %rax, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x18(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movq -0x198(%rbp), %rax
cmpq %rcx, %rax
jae 0x53de1
movq -0x18(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x1b040
movq %rax, %rcx
movq -0x180(%rbp), %rax
movq %rcx, -0x68(%rbp)
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x9250
jmp 0x53c01
movl -0x1c(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
movl $0x1, %esi
leaq -0xa8(%rbp), %rdx
callq 0x53f60
jmp 0x53c1e
leaq -0x50(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x5aa10
jmp 0x53c2d
leaq -0x78(%rbp), %rdi
callq 0x5a760
leaq -0xa8(%rbp), %rdi
callq 0x54100
leaq -0x50(%rbp), %rdi
callq 0x5a780
cmpq -0x58(%rbp), %rax
jae 0x53c7c
movq -0x60(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movq -0x1a0(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x53dce
leaq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x5a7a0
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x5a7d0
movq %rax, -0xd0(%rbp)
leaq -0xc8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x5a800
testb $0x1, %al
jne 0x53cc9
jmp 0x53dc5
leaq -0xc8(%rbp), %rdi
callq 0x5a840
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x5a860
jmp 0x53cf1
movq -0x190(%rbp), %rdi
leaq -0xf0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0x110(%rbp), %rsi
callq 0x5a8f0
movq %rax, -0x1a8(%rbp)
jmp 0x53d1b
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdi
callq 0x5a020
leaq -0x110(%rbp), %rdi
callq 0x5a920
leaq -0xc8(%rbp), %rdi
callq 0x5a950
jmp 0x53cad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
jmp 0x53f12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
jmp 0x53d91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x5a760
leaq -0xa8(%rbp), %rdi
callq 0x54100
jmp 0x53f12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x5a920
jmp 0x53f12
leaq -0x50(%rbp), %rdi
callq 0x5a970
jmp 0x53dd0
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x53ba6
leaq -0x50(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rdi
callq 0x5a7a0
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rdi
callq 0x5a7d0
movq %rax, -0x128(%rbp)
leaq -0x120(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x5a800
testb $0x1, %al
jne 0x53e2e
jmp 0x53efd
leaq -0x120(%rbp), %rdi
callq 0x5a840
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rsi
leaq -0x168(%rbp), %rdi
callq 0x5a860
jmp 0x53e56
leaq -0x168(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x5aa40
movq -0x1c8(%rbp), %rdi
movq %rax, -0x170(%rbp)
callq 0x5aa60
movq -0x190(%rbp), %rdi
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x170(%rbp), %rsi
callq 0x5aa80
movq %rax, -0x1b8(%rbp)
jmp 0x53ead
movq -0x1c0(%rbp), %rsi
movq -0x1b8(%rbp), %rdi
callq 0x5a020
leaq -0x168(%rbp), %rdi
callq 0x5a920
leaq -0x120(%rbp), %rdi
callq 0x5a950
jmp 0x53e12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x5a920
jmp 0x53f12
movb $0x1, -0x31(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x5a990
testb $0x1, -0x31(%rbp)
jne 0x53f35
jmp 0x53f29
leaq -0x50(%rbp), %rdi
callq 0x5a990
movq -0x190(%rbp), %rdi
callq 0x5a9f0
jmp 0x53f45
movq -0x190(%rbp), %rdi
callq 0x5a9f0
movq -0x188(%rbp), %rax
addq $0x1d0, %rsp # imm = 0x1D0
popq %rbp
retq
movq -0xb0(%rbp), %rdi
callq 0x9a70
nopw %cs:(%rax,%rax)
|
_ZN4Trie21SearchForAllWithScoreERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEiRKSt8optionalIS6_ESE_:
push rbp
mov rbp, rsp
sub rsp, 1D0h
mov [rbp+var_190], rdi
mov rax, rdi
mov [rbp+var_188], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_180], rax
mov [rbp+var_31], 0
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEEC2Ev; std::unordered_map<std::string,std::vector<AIRREntity>>::unordered_map(void)
lea rdi, [rbp+var_50]; this
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EEC2Ev; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::vector(void)
call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void)
imul eax, 0Ah
mov eax, eax
mov [rbp+var_58], rax
mov [rbp+var_60], 0
loc_53BA6:
mov rax, [rbp+var_60]
mov [rbp+var_198], rax
mov rdi, [rbp+var_18]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov rax, [rbp+var_198]
cmp rax, rcx
jnb loc_53DE1
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_60]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong)
mov rcx, rax
mov rax, [rbp+var_180]
mov [rbp+var_68], rcx
mov [rbp+var_A8], rax
lea rdi, [rbp+var_A0]
mov rsi, [rbp+var_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_53C01:
mov eax, [rbp+var_1C]
mov [rbp+var_80], eax
lea rdi, [rbp+var_78]
mov esi, 1
lea rdx, [rbp+var_A8]
call _ZSt5asyncB5cxx11IZN4Trie21SearchForAllWithScoreERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEiRKSt8optionalIS7_ESF_E3$_0JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNSJ_IT0_E4typeEEE4typeEESt6launchOSK_DpOSN_
jmp short $+2
loc_53C1E:
lea rdi, [rbp+var_50]
lea rsi, [rbp+var_78]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE9push_backEOSC_; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::push_back(std::future<std::pair<std::string,std::vector<AIRREntity>>>&&)
jmp short $+2
loc_53C2D:
lea rdi, [rbp+var_78]
call _ZNSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS8_EEEED2Ev; std::future<std::pair<std::string,std::vector<AIRREntity>>>::~future()
lea rdi, [rbp+var_A8]
call _ZZN4Trie21SearchForAllWithScoreERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEiRKSt8optionalIS6_ESE_EN3$_0D2Ev; Trie::SearchForAllWithScore(std::vector<std::string> const&,int,std::optional<std::string> const&,std::optional<std::string> const&)::$_0::~$_0()
lea rdi, [rbp+var_50]
call _ZNKSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE4sizeEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::size(void)
cmp rax, [rbp+var_58]
jnb short loc_53C7C
mov rax, [rbp+var_60]
mov [rbp+var_1A0], rax
mov rdi, [rbp+var_18]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov rax, [rbp+var_1A0]
sub rcx, 1
cmp rax, rcx
jnz loc_53DCE
loc_53C7C:
lea rax, [rbp+var_50]
mov [rbp+var_C0], rax
mov rdi, [rbp+var_C0]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE5beginEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::begin(void)
mov [rbp+var_C8], rax
mov rdi, [rbp+var_C0]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE3endEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::end(void)
mov [rbp+var_D0], rax
loc_53CAD:
lea rdi, [rbp+var_C8]
lea rsi, [rbp+var_D0]
call _ZN9__gnu_cxxneIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_; __gnu_cxx::operator!=<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>(__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>> const&,__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>> const&)
test al, 1
jnz short loc_53CC9
jmp loc_53DC5
loc_53CC9:
lea rdi, [rbp+var_C8]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEdeEv; __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator*(void)
mov [rbp+var_D8], rax
mov rsi, [rbp+var_D8]
lea rdi, [rbp+var_110]
call _ZNSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS8_EEEE3getEv; std::future<std::pair<std::string,std::vector<AIRREntity>>>::get(void)
jmp short $+2
loc_53CF1:
mov rdi, [rbp+var_190]
lea rax, [rbp+var_F0]
mov [rbp+var_1B0], rax
lea rsi, [rbp+var_110]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEEixEOS5_; std::unordered_map<std::string,std::vector<AIRREntity>>::operator[](std::string&&)
mov [rbp+var_1A8], rax
jmp short $+2
loc_53D1B:
mov rsi, [rbp+var_1B0]
mov rdi, [rbp+var_1A8]
call _ZNSt6vectorI10AIRREntitySaIS0_EEaSEOS2_; std::vector<AIRREntity>::operator=(std::vector<AIRREntity>&&)
lea rdi, [rbp+var_110]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEED2Ev; std::pair<std::string,std::vector<AIRREntity>>::~pair()
lea rdi, [rbp+var_C8]
call _ZN9__gnu_cxx17__normal_iteratorIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEppEv; __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator++(void)
jmp loc_53CAD
mov rcx, rax
mov eax, edx
mov [rbp+var_B0], rcx
mov [rbp+var_B4], eax
jmp loc_53F12
mov rcx, rax
mov eax, edx
mov [rbp+var_B0], rcx
mov [rbp+var_B4], eax
jmp short loc_53D91
mov rcx, rax
mov eax, edx
mov [rbp+var_B0], rcx
mov [rbp+var_B4], eax
lea rdi, [rbp+var_78]
call _ZNSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS8_EEEED2Ev; std::future<std::pair<std::string,std::vector<AIRREntity>>>::~future()
loc_53D91:
lea rdi, [rbp+var_A8]
call _ZZN4Trie21SearchForAllWithScoreERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEiRKSt8optionalIS6_ESE_EN3$_0D2Ev; Trie::SearchForAllWithScore(std::vector<std::string> const&,int,std::optional<std::string> const&,std::optional<std::string> const&)::$_0::~$_0()
jmp loc_53F12
mov rcx, rax
mov eax, edx
mov [rbp+var_B0], rcx
mov [rbp+var_B4], eax
lea rdi, [rbp+var_110]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEED2Ev; std::pair<std::string,std::vector<AIRREntity>>::~pair()
jmp loc_53F12
loc_53DC5:
lea rdi, [rbp+var_50]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE5clearEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::clear(void)
loc_53DCE:
jmp short $+2
loc_53DD0:
mov rax, [rbp+var_60]
add rax, 1
mov [rbp+var_60], rax
jmp loc_53BA6
loc_53DE1:
lea rax, [rbp+var_50]
mov [rbp+var_118], rax
mov rdi, [rbp+var_118]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE5beginEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::begin(void)
mov [rbp+var_120], rax
mov rdi, [rbp+var_118]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EE3endEv; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::end(void)
mov [rbp+var_128], rax
loc_53E12:
lea rdi, [rbp+var_120]
lea rsi, [rbp+var_128]
call _ZN9__gnu_cxxneIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_; __gnu_cxx::operator!=<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>(__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>> const&,__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>> const&)
test al, 1
jnz short loc_53E2E
jmp loc_53EFD
loc_53E2E:
lea rdi, [rbp+var_120]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEdeEv; __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator*(void)
mov [rbp+var_130], rax
mov rsi, [rbp+var_130]
lea rdi, [rbp+var_168]
call _ZNSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS8_EEEE3getEv; std::future<std::pair<std::string,std::vector<AIRREntity>>>::get(void)
jmp short $+2
loc_53E56:
lea rdi, [rbp+var_168]
mov [rbp+var_1C8], rdi
call _ZSt3getILm0ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOSE_; std::get<0ul,std::string,std::vector<AIRREntity>>(std::pair<std::string,std::vector<AIRREntity>>&&)
mov rdi, [rbp+var_1C8]
mov [rbp+var_170], rax
call _ZSt3getILm1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOSE_; std::get<1ul,std::string,std::vector<AIRREntity>>(std::pair<std::string,std::vector<AIRREntity>>&&)
mov rdi, [rbp+var_190]
mov [rbp+var_178], rax
mov rax, [rbp+var_178]
mov [rbp+var_1C0], rax
mov rsi, [rbp+var_170]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEEixERSF_; std::unordered_map<std::string,std::vector<AIRREntity>>::operator[](std::string const&)
mov [rbp+var_1B8], rax
jmp short $+2
loc_53EAD:
mov rsi, [rbp+var_1C0]
mov rdi, [rbp+var_1B8]
call _ZNSt6vectorI10AIRREntitySaIS0_EEaSEOS2_; std::vector<AIRREntity>::operator=(std::vector<AIRREntity>&&)
lea rdi, [rbp+var_168]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEED2Ev; std::pair<std::string,std::vector<AIRREntity>>::~pair()
lea rdi, [rbp+var_120]
call _ZN9__gnu_cxx17__normal_iteratorIPSt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaISA_EEEES9_ISE_SaISE_EEEppEv; __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator++(void)
jmp loc_53E12
mov rcx, rax
mov eax, edx
mov [rbp+var_B0], rcx
mov [rbp+var_B4], eax
lea rdi, [rbp+var_168]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EEED2Ev; std::pair<std::string,std::vector<AIRREntity>>::~pair()
jmp short loc_53F12
loc_53EFD:
mov [rbp+var_31], 1
lea rdi, [rbp+var_50]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EED2Ev; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::~vector()
test [rbp+var_31], 1
jnz short loc_53F35
jmp short loc_53F29
loc_53F12:
lea rdi, [rbp+var_50]
call _ZNSt6vectorISt6futureISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_I10AIRREntitySaIS8_EEEESaISC_EED2Ev; std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::~vector()
mov rdi, [rbp+var_190]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEED2Ev; std::unordered_map<std::string,std::vector<AIRREntity>>::~unordered_map()
jmp short loc_53F45
loc_53F29:
mov rdi, [rbp+var_190]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10AIRREntitySaIS7_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEED2Ev; std::unordered_map<std::string,std::vector<AIRREntity>>::~unordered_map()
loc_53F35:
mov rax, [rbp+var_188]
add rsp, 1D0h
pop rbp
retn
loc_53F45:
mov rdi, [rbp+var_B0]
call __Unwind_Resume
|
long long Trie::SearchForAllWithScore(long long a1, long long a2, _QWORD *a3, int a4, long long a5, long long a6)
{
unsigned long long v6; // rax
long long v8; // [rsp+10h] [rbp-1C0h]
long long v9; // [rsp+18h] [rbp-1B8h]
long long v10; // [rsp+28h] [rbp-1A8h]
long long v11; // [rsp+30h] [rbp-1A0h]
unsigned long long v12; // [rsp+38h] [rbp-198h]
long long v13; // [rsp+60h] [rbp-170h]
_BYTE v14[56]; // [rsp+68h] [rbp-168h] BYREF
long long v15; // [rsp+A0h] [rbp-130h]
long long v16; // [rsp+A8h] [rbp-128h] BYREF
_QWORD v17[2]; // [rsp+B0h] [rbp-120h] BYREF
_BYTE v18[32]; // [rsp+C0h] [rbp-110h] BYREF
_BYTE v19[24]; // [rsp+E0h] [rbp-F0h] BYREF
long long v20; // [rsp+F8h] [rbp-D8h]
long long v21; // [rsp+100h] [rbp-D0h] BYREF
long long v22; // [rsp+108h] [rbp-C8h] BYREF
_BYTE *v23; // [rsp+110h] [rbp-C0h]
long long v24; // [rsp+128h] [rbp-A8h] BYREF
_BYTE v25[32]; // [rsp+130h] [rbp-A0h] BYREF
int v26; // [rsp+150h] [rbp-80h]
_BYTE v27[16]; // [rsp+158h] [rbp-78h] BYREF
long long v28; // [rsp+168h] [rbp-68h]
unsigned long long i; // [rsp+170h] [rbp-60h]
unsigned long long v30; // [rsp+178h] [rbp-58h]
_BYTE v31[31]; // [rsp+180h] [rbp-50h] BYREF
char v32; // [rsp+19Fh] [rbp-31h]
long long v33; // [rsp+1A0h] [rbp-30h]
long long v34; // [rsp+1A8h] [rbp-28h]
int v35; // [rsp+1B4h] [rbp-1Ch]
_QWORD *v36; // [rsp+1B8h] [rbp-18h]
long long v37; // [rsp+1C0h] [rbp-10h]
long long v38; // [rsp+1C8h] [rbp-8h]
v38 = a1;
v37 = a2;
v36 = a3;
v35 = a4;
v34 = a5;
v33 = a6;
v32 = 0;
std::unordered_map<std::string,std::vector<AIRREntity>>::unordered_map();
std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::vector(v31);
v30 = 10 * (unsigned int)std::thread::hardware_concurrency((std::thread *)v31);
for ( i = 0LL; ; ++i )
{
v12 = i;
if ( v12 >= std::vector<std::string>::size(v36) )
break;
v28 = std::vector<std::string>::operator[](v36, i);
v24 = a2;
std::string::basic_string(v25, v28);
v26 = v35;
std::async[abi:cxx11]<Trie::SearchForAllWithScore(std::vector<std::string> const&,int,std::optional<std::string> const&,std::optional<std::string> const&)::$_0>(
v27,
1LL,
&v24);
std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::push_back(v31, v27);
std::future<std::pair<std::string,std::vector<AIRREntity>>>::~future(v27);
Trie::SearchForAllWithScore(std::vector<std::string> const&,int,std::optional<std::string> const&,std::optional<std::string> const&)::$_0::~$_0(&v24);
v6 = std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::size(v31);
if ( v6 < v30 )
{
v11 = i;
if ( v11 != std::vector<std::string>::size(v36) - 1 )
continue;
}
v23 = v31;
v22 = std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::begin(v31);
v21 = std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::end(v23);
while ( (__gnu_cxx::operator!=<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>(
&v22,
&v21) & 1) != 0 )
{
v20 = __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator*(&v22);
std::future<std::pair<std::string,std::vector<AIRREntity>>>::get(v18, v20);
v10 = std::unordered_map<std::string,std::vector<AIRREntity>>::operator[](a1, v18);
std::vector<AIRREntity>::operator=(v10, v19);
std::pair<std::string,std::vector<AIRREntity>>::~pair(v18);
__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator++(&v22);
}
std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::clear(v31);
}
v17[1] = v31;
v17[0] = std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::begin(v31);
v16 = std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::end(v31);
while ( (__gnu_cxx::operator!=<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>(
v17,
&v16) & 1) != 0 )
{
v15 = __gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator*(v17);
std::future<std::pair<std::string,std::vector<AIRREntity>>>::get(v14, v15);
v13 = std::get<0ul,std::string,std::vector<AIRREntity>>();
v8 = std::get<1ul,std::string,std::vector<AIRREntity>>(v14);
v9 = std::unordered_map<std::string,std::vector<AIRREntity>>::operator[](a1, v13);
std::vector<AIRREntity>::operator=(v9, v8);
std::pair<std::string,std::vector<AIRREntity>>::~pair(v14);
__gnu_cxx::__normal_iterator<std::future<std::pair<std::string,std::vector<AIRREntity>>> *,std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>>::operator++(v17);
}
v32 = 1;
std::vector<std::future<std::pair<std::string,std::vector<AIRREntity>>>>::~vector(v31);
if ( (v32 & 1) == 0 )
std::unordered_map<std::string,std::vector<AIRREntity>>::~unordered_map(a1);
return a1;
}
|
SearchForAllWithScore:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1d0
MOV qword ptr [RBP + -0x190],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x188],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x180],RAX
MOV byte ptr [RBP + -0x31],0x0
CALL 0x0015a6a0
LEA RDI,[RBP + -0x50]
CALL 0x0015a6c0
CALL 0x00109880
IMUL EAX,EAX,0xa
MOV EAX,EAX
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x60],0x0
LAB_00153ba6:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x198],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00118430
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x198]
CMP RAX,RCX
JNC 0x00153de1
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x60]
CALL 0x0011b040
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x180]
MOV qword ptr [RBP + -0x68],RCX
MOV qword ptr [RBP + -0xa8],RAX
LEA RDI,[RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x68]
LAB_00153bfa:
CALL 0x00109250
JMP 0x00153c01
LAB_00153c01:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x80],EAX
LAB_00153c07:
LEA RDI,[RBP + -0x78]
MOV ESI,0x1
LEA RDX,[RBP + -0xa8]
CALL 0x00153f60
JMP 0x00153c1e
LAB_00153c1e:
LEA RDI,[RBP + -0x50]
LEA RSI,[RBP + -0x78]
CALL 0x0015aa10
JMP 0x00153c2d
LAB_00153c2d:
LEA RDI,[RBP + -0x78]
CALL 0x0015a760
LEA RDI,[RBP + -0xa8]
CALL 0x00154100
LEA RDI,[RBP + -0x50]
CALL 0x0015a780
CMP RAX,qword ptr [RBP + -0x58]
JNC 0x00153c7c
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x1a0],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00118430
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x1a0]
SUB RCX,0x1
CMP RAX,RCX
JNZ 0x00153dce
LAB_00153c7c:
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0xc0],RAX
MOV RDI,qword ptr [RBP + -0xc0]
CALL 0x0015a7a0
MOV qword ptr [RBP + -0xc8],RAX
MOV RDI,qword ptr [RBP + -0xc0]
CALL 0x0015a7d0
MOV qword ptr [RBP + -0xd0],RAX
LAB_00153cad:
LEA RDI,[RBP + -0xc8]
LEA RSI,[RBP + -0xd0]
CALL 0x0015a800
TEST AL,0x1
JNZ 0x00153cc9
JMP 0x00153dc5
LAB_00153cc9:
LEA RDI,[RBP + -0xc8]
CALL 0x0015a840
MOV qword ptr [RBP + -0xd8],RAX
MOV RSI,qword ptr [RBP + -0xd8]
LAB_00153ce3:
LEA RDI,[RBP + -0x110]
CALL 0x0015a860
JMP 0x00153cf1
LAB_00153cf1:
MOV RDI,qword ptr [RBP + -0x190]
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x1b0],RAX
LAB_00153d06:
LEA RSI,[RBP + -0x110]
CALL 0x0015a8f0
MOV qword ptr [RBP + -0x1a8],RAX
JMP 0x00153d1b
LAB_00153d1b:
MOV RSI,qword ptr [RBP + -0x1b0]
MOV RDI,qword ptr [RBP + -0x1a8]
CALL 0x0015a020
LEA RDI,[RBP + -0x110]
CALL 0x0015a920
LEA RDI,[RBP + -0xc8]
CALL 0x0015a950
JMP 0x00153cad
LAB_00153dc5:
LEA RDI,[RBP + -0x50]
CALL 0x0015a970
LAB_00153dce:
JMP 0x00153dd0
LAB_00153dd0:
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00153ba6
LAB_00153de1:
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0x118],RAX
MOV RDI,qword ptr [RBP + -0x118]
CALL 0x0015a7a0
MOV qword ptr [RBP + -0x120],RAX
MOV RDI,qword ptr [RBP + -0x118]
CALL 0x0015a7d0
MOV qword ptr [RBP + -0x128],RAX
LAB_00153e12:
LEA RDI,[RBP + -0x120]
LEA RSI,[RBP + -0x128]
CALL 0x0015a800
TEST AL,0x1
JNZ 0x00153e2e
JMP 0x00153efd
LAB_00153e2e:
LEA RDI,[RBP + -0x120]
CALL 0x0015a840
MOV qword ptr [RBP + -0x130],RAX
MOV RSI,qword ptr [RBP + -0x130]
LAB_00153e48:
LEA RDI,[RBP + -0x168]
CALL 0x0015a860
JMP 0x00153e56
LAB_00153e56:
LEA RDI,[RBP + -0x168]
MOV qword ptr [RBP + -0x1c8],RDI
CALL 0x0015aa40
MOV RDI,qword ptr [RBP + -0x1c8]
MOV qword ptr [RBP + -0x170],RAX
CALL 0x0015aa60
MOV RDI,qword ptr [RBP + -0x190]
MOV qword ptr [RBP + -0x178],RAX
MOV RAX,qword ptr [RBP + -0x178]
MOV qword ptr [RBP + -0x1c0],RAX
MOV RSI,qword ptr [RBP + -0x170]
LAB_00153e9f:
CALL 0x0015aa80
LAB_00153ea4:
MOV qword ptr [RBP + -0x1b8],RAX
JMP 0x00153ead
LAB_00153ead:
MOV RSI,qword ptr [RBP + -0x1c0]
MOV RDI,qword ptr [RBP + -0x1b8]
CALL 0x0015a020
LEA RDI,[RBP + -0x168]
CALL 0x0015a920
LEA RDI,[RBP + -0x120]
CALL 0x0015a950
JMP 0x00153e12
LAB_00153efd:
MOV byte ptr [RBP + -0x31],0x1
LEA RDI,[RBP + -0x50]
CALL 0x0015a990
TEST byte ptr [RBP + -0x31],0x1
JNZ 0x00153f35
JMP 0x00153f29
LAB_00153f29:
MOV RDI,qword ptr [RBP + -0x190]
CALL 0x0015a9f0
LAB_00153f35:
MOV RAX,qword ptr [RBP + -0x188]
ADD RSP,0x1d0
POP RBP
RET
|
/* Trie::SearchForAllWithScore(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string
> > const&, int, std::optional<std::__cxx11::string > const&, std::optional<std::__cxx11::string
> const&) */
vector * Trie::SearchForAllWithScore
(vector *param_1,int param_2,optional *param_3,optional *param_4)
{
ulong uVar1;
bool bVar2;
int iVar3;
ulong uVar4;
long lVar5;
vector<AIRREntity,std::allocator<AIRREntity>> *pvVar6;
type *ptVar7;
type *ptVar8;
int4 in_register_00000034;
pair local_170 [56];
int8 local_138;
int8 local_130;
int8 local_128;
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
*local_120;
string local_118 [32];
vector local_f8 [24];
int8 local_e0;
int8 local_d8;
int8 local_d0;
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
*local_c8;
int8 local_b0;
string local_a8 [32];
int4 local_88;
future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>
local_80 [16];
string *local_70;
ulong local_68;
ulong local_60;
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
local_58 [31];
byte local_39;
int4 local_24;
optional *local_20;
int8 local_18;
vector *local_10;
local_24 = SUB84(param_4,0);
local_39 = 0;
local_20 = param_3;
local_18 = CONCAT44(in_register_00000034,param_2);
local_10 = param_1;
std::
unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
::unordered_map((unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
*)param_1);
std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::vector(local_58);
iVar3 = std::thread::hardware_concurrency();
local_60 = (ulong)(uint)(iVar3 * 10);
local_68 = 0;
do {
uVar1 = local_68;
uVar4 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_20
);
if (uVar4 <= uVar1) {
local_120 = local_58;
local_128 = std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::begin(local_120);
local_130 = std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::end(local_120);
while( true ) {
bVar2 = __gnu_cxx::operator!=
((__normal_iterator *)&local_128,(__normal_iterator *)&local_130);
if (!bVar2) break;
local_138 = __gnu_cxx::
__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
::operator*((__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
*)&local_128);
/* try { // try from 00153e48 to 00153e53 has its CatchHandler @ 00153d4b */
std::
future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>::
get();
ptVar7 = std::
get<0ul,std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>
(local_170);
ptVar8 = std::
get<1ul,std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>
(local_170);
/* try { // try from 00153e9f to 00153ea3 has its CatchHandler @ 00153edd */
pvVar6 = (vector<AIRREntity,std::allocator<AIRREntity>> *)
std::
unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
::operator[]((unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
*)param_1,(string *)ptVar7);
std::vector<AIRREntity,std::allocator<AIRREntity>>::operator=(pvVar6,(vector *)ptVar8);
std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>::~pair
((pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>> *)
local_170);
__gnu_cxx::
__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
::operator++((__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
*)&local_128);
}
local_39 = 1;
std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::~vector(local_58);
if ((local_39 & 1) == 0) {
std::
unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
::~unordered_map((unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
*)param_1);
}
return param_1;
}
local_70 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[]
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_20,local_68);
local_b0 = CONCAT44(in_register_00000034,param_2);
/* try { // try from 00153bfa to 00153bfe has its CatchHandler @ 00153d4b */
std::__cxx11::string::string(local_a8,local_70);
local_88 = local_24;
/* try { // try from 00153c07 to 00153c1b has its CatchHandler @ 00153d62 */
std::
async_abi_cxx11_<Trie::SearchForAllWithScore(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,int,std::optional<std::__cxx11::string>const&,std::optional<std::__cxx11::string>const&)::__0>
(local_80,1,&local_b0);
/* try { // try from 00153c1e to 00153c2a has its CatchHandler @ 00153d76 */
std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::push_back(local_58,local_80);
std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>
::~future(local_80);
SearchForAllWithScore(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,int,std::optional<std::__cxx11::string>const&,std::optional<std::__cxx11::string>const&)
::$_0::~__0((__0 *)&local_b0);
uVar4 = std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::size(local_58);
uVar1 = local_68;
if (uVar4 < local_60) {
lVar5 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_20);
if (uVar1 == lVar5 - 1U) goto LAB_00153c7c;
}
else {
LAB_00153c7c:
local_c8 = local_58;
local_d0 = std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::begin(local_c8);
local_d8 = std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::end(local_c8);
while( true ) {
bVar2 = __gnu_cxx::operator!=((__normal_iterator *)&local_d0,(__normal_iterator *)&local_d8)
;
if (!bVar2) break;
local_e0 = __gnu_cxx::
__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
::operator*((__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
*)&local_d0);
/* try { // try from 00153ce3 to 00153cee has its CatchHandler @ 00153d4b */
std::
future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>::
get();
/* try { // try from 00153d06 to 00153d11 has its CatchHandler @ 00153da2 */
pvVar6 = (vector<AIRREntity,std::allocator<AIRREntity>> *)
std::
unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
::operator[]((unordered_map<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>
*)param_1,local_118);
std::vector<AIRREntity,std::allocator<AIRREntity>>::operator=(pvVar6,local_f8);
std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>::~pair
((pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>> *)
local_118);
__gnu_cxx::
__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
::operator++((__normal_iterator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>*,std::vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>>
*)&local_d0);
}
std::
vector<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>,std::allocator<std::future<std::pair<std::__cxx11::string,std::vector<AIRREntity,std::allocator<AIRREntity>>>>>>
::clear(local_58);
}
local_68 = local_68 + 1;
} while( true );
}
|
|
57,840
|
stbi_is_hdr
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
STBIDEF int stbi_is_hdr (char const *filename)
{
FILE *f = stbi__fopen(filename, "rb");
int result=0;
if (f) {
result = stbi_is_hdr_from_file(f);
fclose(f);
}
return result;
}
|
O3
|
c
|
stbi_is_hdr:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0xe3b68(%rip), %rsi # 0x10d505
callq 0x1de60
testq %rax, %rax
je 0x299c0
movq %rax, %rbx
movq %rax, %rdi
callq 0x299c9
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1dc10
movl %ebp, %eax
jmp 0x299c2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
stbi_is_hdr:
push rbp
push rbx
push rax
lea rsi, aCrb+2; "rb"
call _fopen
test rax, rax
jz short loc_299C0
mov rbx, rax
mov rdi, rax
call stbi_is_hdr_from_file
mov ebp, eax
mov rdi, rbx
call _fclose
mov eax, ebp
jmp short loc_299C2
loc_299C0:
xor eax, eax
loc_299C2:
add rsp, 8
pop rbx
pop rbp
retn
|
long long stbi_is_hdr(long long a1)
{
long long v1; // rax
long long v2; // rbx
unsigned int is_hdr_from_file; // ebp
v1 = fopen(a1, "rb");
if ( !v1 )
return 0LL;
v2 = v1;
is_hdr_from_file = stbi_is_hdr_from_file(v1);
fclose(v2);
return is_hdr_from_file;
}
|
stbi_is_hdr:
PUSH RBP
PUSH RBX
PUSH RAX
LEA RSI,[0x20d505]
CALL 0x0011de60
TEST RAX,RAX
JZ 0x001299c0
MOV RBX,RAX
MOV RDI,RAX
CALL 0x001299c9
MOV EBP,EAX
MOV RDI,RBX
CALL 0x0011dc10
MOV EAX,EBP
JMP 0x001299c2
LAB_001299c0:
XOR EAX,EAX
LAB_001299c2:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int4 stbi_is_hdr(char *param_1)
{
int4 uVar1;
FILE *__stream;
__stream = fopen(param_1,"rb");
if (__stream == (FILE *)0x0) {
uVar1 = 0;
}
else {
uVar1 = stbi_is_hdr_from_file(__stream);
fclose(__stream);
}
return uVar1;
}
|
|
57,841
|
ma_log_del_prefix
|
eloqsql/storage/maria/ma_write.c
|
static my_bool _ma_log_del_prefix(MARIA_PAGE *ma_page,
uint org_length, uint new_length,
const uchar *key_pos, uint key_length,
int move_length)
{
LSN lsn;
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 2 + 2 + 12 + 7];
uchar *log_pos;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4];
uint offset= (uint) (key_pos - ma_page->buff);
uint diff_length= org_length + move_length - new_length;
uint translog_parts, extra_length;
MARIA_HA *info= ma_page->info;
my_off_t page= ma_page->pos / info->s->block_size;
DBUG_ENTER("_ma_log_del_prefix");
DBUG_PRINT("enter", ("page: %lu org_length: %u new_length: %u",
(ulong) page, org_length, new_length));
DBUG_ASSERT((int) diff_length > 0);
DBUG_ASSERT(ma_page->org_size == org_length);
DBUG_ASSERT(ma_page->size == new_length);
log_pos= log_data + FILEID_STORE_SIZE;
page_store(log_pos, page);
log_pos+= PAGE_STORE_SIZE;
translog_parts= 1;
extra_length= 0;
#ifdef EXTRA_DEBUG_KEY_CHANGES
*log_pos++= KEY_OP_DEBUG;
*log_pos++= KEY_OP_DEBUG_LOG_DEL_PREFIX;
#endif
/* Store keypage_flag */
*log_pos++= KEY_OP_SET_PAGEFLAG;
*log_pos++= _ma_get_keypage_flag(info->s, ma_page->buff);
if (offset < diff_length + info->s->keypage_header)
{
/*
Key is not anymore on page. Move data down, but take into account that
the original page had grown with 'move_length bytes'
*/
DBUG_ASSERT(offset + key_length <= diff_length + info->s->keypage_header);
log_pos[0]= KEY_OP_DEL_PREFIX;
int2store(log_pos+1, diff_length - move_length);
log_pos+= 3;
}
else
{
/*
Correct position to key, as data before key has been delete and key
has thus been moved down
*/
offset-= diff_length;
key_pos-= diff_length;
/* Move data down */
log_pos[0]= KEY_OP_DEL_PREFIX;
int2store(log_pos+1, diff_length);
log_pos+= 3;
log_pos[0]= KEY_OP_OFFSET;
int2store(log_pos+1, offset);
log_pos+= 3;
if (move_length)
{
log_pos[0]= KEY_OP_SHIFT;
int2store(log_pos+1, move_length);
log_pos+= 3;
}
log_pos[0]= KEY_OP_CHANGE;
int2store(log_pos+1, key_length);
log_pos+= 3;
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key_pos;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= key_length;
translog_parts= 2;
extra_length= key_length;
}
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos -
log_data);
_ma_log_key_changes(ma_page,
log_array + TRANSLOG_INTERNAL_PARTS + translog_parts,
log_pos, &extra_length, &translog_parts);
/* Remember new page length for future log entires for same page */
ma_page->org_size= ma_page->size;
DBUG_RETURN(translog_write_record(&lsn, LOGREC_REDO_INDEX,
info->trn, info,
(translog_size_t)
log_array[TRANSLOG_INTERNAL_PARTS +
0].length + extra_length,
TRANSLOG_INTERNAL_PARTS + translog_parts,
log_array, log_data, NULL));
}
|
O3
|
c
|
ma_log_del_prefix:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rcx, %r10
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq (%rdi), %rcx
movq 0x10(%rdi), %r14
movl %r10d, %r11d
subl %r14d, %r11d
subl %edx, %esi
leal (%rsi,%r9), %ebx
movq 0x18(%rdi), %rax
movq (%rcx), %r15
movl 0x7bc(%r15), %r12d
xorl %edx, %edx
divq %r12
movl %eax, -0x4e(%rbp)
shrq $0x20, %rax
movb %al, -0x4a(%rbp)
movb $0xa, -0x49(%rbp)
movl 0x744(%r15), %eax
leal -0x3(%rax), %edx
movb (%r14,%rdx), %dl
movb %dl, -0x48(%rbp)
addl %ebx, %eax
cmpl %r11d, %eax
jbe 0x5869e
leaq -0x44(%rbp), %rax
movb $0x5, -0x3(%rax)
movw %si, -0x2(%rax)
movl $0x3, %r9d
xorl %r8d, %r8d
jmp 0x586f2
subl %ebx, %r11d
movl %ebx, %eax
subq %rax, %r10
movb $0x5, -0x47(%rbp)
movw %bx, -0x46(%rbp)
movb $0x1, -0x44(%rbp)
movw %r11w, -0x43(%rbp)
testl %r9d, %r9d
je 0x586cb
leaq -0x3e(%rbp), %rax
movb $0x2, -0x3(%rax)
movw %r9w, -0x2(%rax)
jmp 0x586cf
leaq -0x41(%rbp), %rax
movb $0x3, (%rax)
movw %r8w, 0x1(%rax)
addq $0x3, %rax
movq %r10, -0x90(%rbp)
movl %r8d, %edx
movq %rdx, -0x88(%rbp)
movl $0x4, %r9d
leaq -0x50(%rbp), %r10
leaq -0xc0(%rbp), %r11
movq %r10, 0x20(%r11)
subq %r10, %rax
movl %eax, %edx
movq %rdx, 0x28(%r11)
movl 0x20(%rdi), %edx
movl %edx, 0x24(%rdi)
movq 0x8(%rcx), %rdx
addl %eax, %r8d
subq $0x8, %rsp
leaq -0x58(%rbp), %rdi
movl $0xc, %esi
pushq $0x0
pushq %r10
pushq %r11
callq 0x29c44
addq $0x20, %rsp
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x58752
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
nop
|
_ma_log_del_prefix:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 0A0h
mov r10, rcx
mov rax, fs:28h
mov [rbp+var_28], rax
mov rcx, [rdi]
mov r14, [rdi+10h]
mov r11d, r10d
sub r11d, r14d
sub esi, edx
lea ebx, [rsi+r9]
mov rax, [rdi+18h]
mov r15, [rcx]
mov r12d, [r15+7BCh]
xor edx, edx
div r12
mov [rbp+var_4E], eax
shr rax, 20h
mov [rbp+var_4A], al
mov [rbp+var_49], 0Ah
mov eax, [r15+744h]
lea edx, [rax-3]
mov dl, [r14+rdx]
mov [rbp+var_48], dl
add eax, ebx
cmp eax, r11d
jbe short loc_5869E
lea rax, [rbp+var_44]
mov byte ptr [rax-3], 5
mov [rax-2], si
mov r9d, 3
xor r8d, r8d
jmp short loc_586F2
loc_5869E:
sub r11d, ebx
mov eax, ebx
sub r10, rax
mov [rbp+var_47], 5
mov [rbp+var_46], bx
mov [rbp+var_44], 1
mov [rbp+var_43], r11w
test r9d, r9d
jz short loc_586CB
lea rax, [rbp+var_3E]
mov byte ptr [rax-3], 2
mov [rax-2], r9w
jmp short loc_586CF
loc_586CB:
lea rax, [rbp+var_41]
loc_586CF:
mov byte ptr [rax], 3
mov [rax+1], r8w
add rax, 3
mov [rbp+var_90], r10
mov edx, r8d
mov [rbp+var_88], rdx
mov r9d, 4
loc_586F2:
lea r10, [rbp+var_50]
lea r11, [rbp+var_C0]
mov [r11+20h], r10
sub rax, r10
mov edx, eax
mov [r11+28h], rdx
mov edx, [rdi+20h]
mov [rdi+24h], edx
mov rdx, [rcx+8]
add r8d, eax
sub rsp, 8
lea rdi, [rbp+var_58]
mov esi, 0Ch
push 0
push r10
push r11
call translog_write_record
add rsp, 20h
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_58752
add rsp, 0A0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_58752:
call ___stack_chk_fail
|
long long ma_log_del_prefix(long long **a1, int a2, int a3, long long a4, unsigned int a5, int a6)
{
long long *v7; // rcx
long long *v8; // r14
__int16 v9; // r11
int v10; // esi
unsigned int v11; // ebx
long long v12; // r15
unsigned long long v13; // rax
char *v14; // rax
int v15; // r9d
long long v16; // r10
char *v17; // rax
signed long long v18; // rax
__int128 v20; // [rsp+0h] [rbp-C0h] BYREF
__int16 *v21; // [rsp+20h] [rbp-A0h]
long long v22; // [rsp+28h] [rbp-98h]
long long v23; // [rsp+30h] [rbp-90h]
long long v24; // [rsp+38h] [rbp-88h]
_BYTE v25[8]; // [rsp+68h] [rbp-58h] BYREF
__int16 v26; // [rsp+70h] [rbp-50h] BYREF
int v27; // [rsp+72h] [rbp-4Eh]
char v28; // [rsp+76h] [rbp-4Ah]
char v29; // [rsp+77h] [rbp-49h]
char v30; // [rsp+78h] [rbp-48h]
char v31; // [rsp+79h] [rbp-47h]
__int16 v32; // [rsp+7Ah] [rbp-46h]
char v33; // [rsp+7Ch] [rbp-44h] BYREF
__int16 v34; // [rsp+7Dh] [rbp-43h]
char v35; // [rsp+7Fh] [rbp-41h] BYREF
__int16 v36; // [rsp+80h] [rbp-40h]
char v37; // [rsp+82h] [rbp-3Eh] BYREF
unsigned long long v38; // [rsp+98h] [rbp-28h]
v38 = __readfsqword(0x28u);
v7 = *a1;
v8 = a1[2];
v9 = a4 - (_WORD)v8;
v10 = a2 - a3;
v11 = v10 + a6;
v12 = **a1;
v13 = (unsigned long long)a1[3] / *(unsigned int *)(v12 + 1980);
v27 = v13;
v28 = BYTE4(v13);
v29 = 10;
LODWORD(v13) = *(_DWORD *)(v12 + 1860);
v30 = *((_BYTE *)v8 + (unsigned int)(v13 - 3));
if ( v10 + a6 + (int)v13 <= (unsigned int)(a4 - (_DWORD)v8) )
{
v16 = a4 - v11;
v31 = 5;
v32 = v10 + a6;
v33 = 1;
v34 = v9 - v11;
if ( a6 )
{
v17 = &v37;
v35 = 2;
v36 = a6;
}
else
{
v17 = &v35;
}
*v17 = 3;
*(_WORD *)(v17 + 1) = a5;
v14 = v17 + 3;
v23 = v16;
v24 = a5;
v15 = 4;
}
else
{
v14 = &v33;
v31 = 5;
v32 = v10;
v15 = 3;
a5 = 0;
}
v21 = &v26;
v18 = v14 - (char *)&v26;
v22 = (unsigned int)v18;
*((_DWORD *)a1 + 9) = *((_DWORD *)a1 + 8);
return translog_write_record(
(unsigned long long)v25,
&byte_9[3],
v7[1],
v7,
(unsigned int)v18 + a5,
v15,
&v20,
&v26,
0LL);
}
|
_ma_log_del_prefix:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xa0
MOV R10,RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RDI]
MOV R14,qword ptr [RDI + 0x10]
MOV R11D,R10D
SUB R11D,R14D
SUB ESI,EDX
LEA EBX,[RSI + R9*0x1]
MOV RAX,qword ptr [RDI + 0x18]
MOV R15,qword ptr [RCX]
MOV R12D,dword ptr [R15 + 0x7bc]
XOR EDX,EDX
DIV R12
MOV dword ptr [RBP + -0x4e],EAX
SHR RAX,0x20
MOV byte ptr [RBP + -0x4a],AL
MOV byte ptr [RBP + -0x49],0xa
MOV EAX,dword ptr [R15 + 0x744]
LEA EDX,[RAX + -0x3]
MOV DL,byte ptr [R14 + RDX*0x1]
MOV byte ptr [RBP + -0x48],DL
ADD EAX,EBX
CMP EAX,R11D
JBE 0x0015869e
LEA RAX,[RBP + -0x44]
MOV byte ptr [RAX + -0x3],0x5
MOV word ptr [RAX + -0x2],SI
MOV R9D,0x3
XOR R8D,R8D
JMP 0x001586f2
LAB_0015869e:
SUB R11D,EBX
MOV EAX,EBX
SUB R10,RAX
MOV byte ptr [RBP + -0x47],0x5
MOV word ptr [RBP + -0x46],BX
MOV byte ptr [RBP + -0x44],0x1
MOV word ptr [RBP + -0x43],R11W
TEST R9D,R9D
JZ 0x001586cb
LEA RAX,[RBP + -0x3e]
MOV byte ptr [RAX + -0x3],0x2
MOV word ptr [RAX + -0x2],R9W
JMP 0x001586cf
LAB_001586cb:
LEA RAX,[RBP + -0x41]
LAB_001586cf:
MOV byte ptr [RAX],0x3
MOV word ptr [RAX + 0x1],R8W
ADD RAX,0x3
MOV qword ptr [RBP + -0x90],R10
MOV EDX,R8D
MOV qword ptr [RBP + -0x88],RDX
MOV R9D,0x4
LAB_001586f2:
LEA R10,[RBP + -0x50]
LEA R11,[RBP + -0xc0]
MOV qword ptr [R11 + 0x20],R10
SUB RAX,R10
MOV EDX,EAX
MOV qword ptr [R11 + 0x28],RDX
MOV EDX,dword ptr [RDI + 0x20]
MOV dword ptr [RDI + 0x24],EDX
MOV RDX,qword ptr [RCX + 0x8]
ADD R8D,EAX
SUB RSP,0x8
LEA RDI,[RBP + -0x58]
MOV ESI,0xc
PUSH 0x0
PUSH R10
PUSH R11
CALL 0x00129c44
ADD RSP,0x20
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x00158752
ADD RSP,0xa0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00158752:
CALL 0x00129250
|
void _ma_log_del_prefix(long *param_1,int param_2,int param_3,long param_4,uint param_5,int param_6)
{
long *plVar1;
int1 auVar2 [16];
int iVar3;
uint uVar4;
int1 *puVar5;
int8 uVar6;
uint uVar7;
long in_FS_OFFSET;
int1 local_c8 [32];
int1 *local_a8;
ulong local_a0;
long local_98;
ulong local_90;
int1 local_60 [8];
int1 local_58 [2];
int4 local_56;
int1 local_52;
int1 local_51;
int1 local_50;
int1 local_4f;
short local_4e;
int1 local_4c;
short local_4b;
int1 local_49;
int2 local_48;
int1 local_46 [22];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
plVar1 = (long *)*param_1;
uVar7 = (int)param_4 - (int)param_1[2];
uVar4 = (param_2 - param_3) + param_6;
auVar2._8_8_ = 0;
auVar2._0_8_ = param_1[3];
auVar2 = auVar2 / ZEXT416(*(uint *)(*plVar1 + 0x7bc));
local_56 = auVar2._0_4_;
local_52 = auVar2[4];
local_51 = 10;
iVar3 = *(int *)(*plVar1 + 0x744);
local_50 = *(int1 *)(param_1[2] + (ulong)(iVar3 - 3));
if (uVar7 < iVar3 + uVar4) {
iVar3 = (int)&local_4c;
local_4e = (short)(param_2 - param_3);
uVar6 = 3;
param_5 = 0;
}
else {
local_4e = (short)uVar4;
local_4b = (short)uVar7 - local_4e;
local_98 = param_4 - (ulong)uVar4;
local_4c = 1;
if (param_6 == 0) {
puVar5 = &local_49;
}
else {
puVar5 = local_46;
local_49 = 2;
local_48 = (int2)param_6;
}
*puVar5 = 3;
*(short *)(puVar5 + 1) = (short)param_5;
iVar3 = (int)puVar5 + 3;
local_90 = (ulong)param_5;
uVar6 = 4;
}
local_4f = 5;
local_a8 = local_58;
uVar4 = iVar3 - (int)local_a8;
local_a0 = (ulong)uVar4;
*(int *)((long)param_1 + 0x24) = (int)param_1[4];
translog_write_record(local_60,0xc,plVar1[1],plVar1,param_5 + uVar4,uVar6,local_c8,local_a8,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,842
|
my_set_error
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
void my_set_error(MYSQL *mysql,
unsigned int error_nr,
const char *sqlstate,
const char *format,
...)
{
va_list ap;
const char *errmsg;
if (!format)
{
if (error_nr >= CR_MIN_ERROR && error_nr <= CR_MYSQL_LAST_ERROR)
errmsg= ER(error_nr);
else if (error_nr >= CER_MIN_ERROR && error_nr <= CR_MARIADB_LAST_ERROR)
errmsg= CER(error_nr);
else
errmsg= ER(CR_UNKNOWN_ERROR);
}
mysql->net.last_errno= error_nr;
ma_strmake(mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH);
va_start(ap, format);
vsnprintf(mysql->net.last_error, MYSQL_ERRMSG_SIZE - 1,
format ? format : errmsg, ap);
va_end(ap);
return;
}
|
O0
|
c
|
my_set_error:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
testb %al, %al
je 0x1defe
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
movq %r9, -0xd8(%rbp)
movq %r8, -0xe0(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1df92
cmpl $0x7d0, -0xc(%rbp) # imm = 0x7D0
jb 0x1df51
cmpl $0x80d, -0xc(%rbp) # imm = 0x80D
ja 0x1df51
movl -0xc(%rbp), %eax
subl $0x7d0, %eax # imm = 0x7D0
movl %eax, %eax
movl %eax, %ecx
leaq 0x4c459(%rip), %rax # 0x6a3a0
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
jmp 0x1df90
cmpl $0x1388, -0xc(%rbp) # imm = 0x1388
jb 0x1df80
cmpl $0x1397, -0xc(%rbp) # imm = 0x1397
ja 0x1df80
movl -0xc(%rbp), %eax
subl $0x1388, %eax # imm = 0x1388
movl %eax, %eax
movl %eax, %ecx
leaq 0x4c62a(%rip), %rax # 0x6a5a0
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
jmp 0x1df8e
leaq 0x4c419(%rip), %rax # 0x6a3a0
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x1df90
jmp 0x1df92
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
movq -0x18(%rbp), %rsi
movl $0x5, %edx
callq 0x39d40
leaq -0x40(%rbp), %rax
leaq -0x100(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x20, (%rax)
movq -0x8(%rbp), %rax
addq $0x97, %rax
movq %rax, -0x108(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1e001
movq -0x20(%rbp), %rax
movq %rax, -0x110(%rbp)
jmp 0x1e00c
movq -0x48(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rdi
movq -0x110(%rbp), %rdx
movl $0x1ff, %esi # imm = 0x1FF
leaq -0x40(%rbp), %rcx
callq 0x132a0
addq $0x110, %rsp # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_set_error:
push rbp
mov rbp, rsp
sub rsp, 110h
test al, al
jz short loc_1DEFE
movaps [rbp+var_D0], xmm0
movaps [rbp+var_C0], xmm1
movaps [rbp+var_B0], xmm2
movaps [rbp+var_A0], xmm3
movaps [rbp+var_90], xmm4
movaps [rbp+var_80], xmm5
movaps [rbp+var_70], xmm6
movaps [rbp+var_60], xmm7
loc_1DEFE:
mov [rbp+var_D8], r9
mov [rbp+var_E0], r8
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
cmp [rbp+var_20], 0
jnz short loc_1DF92
cmp [rbp+var_C], 7D0h
jb short loc_1DF51
cmp [rbp+var_C], 80Dh
ja short loc_1DF51
mov eax, [rbp+var_C]
sub eax, 7D0h
mov eax, eax
mov ecx, eax
lea rax, client_errors
mov rax, [rax+rcx*8]
mov [rbp+var_48], rax
jmp short loc_1DF90
loc_1DF51:
cmp [rbp+var_C], 1388h
jb short loc_1DF80
cmp [rbp+var_C], 1397h
ja short loc_1DF80
mov eax, [rbp+var_C]
sub eax, 1388h
mov eax, eax
mov ecx, eax
lea rax, mariadb_client_errors
mov rax, [rax+rcx*8]
mov [rbp+var_48], rax
jmp short loc_1DF8E
loc_1DF80:
lea rax, client_errors
mov rax, [rax]
mov [rbp+var_48], rax
loc_1DF8E:
jmp short $+2
loc_1DF90:
jmp short $+2
loc_1DF92:
mov ecx, [rbp+var_C]
mov rax, [rbp+var_8]
mov [rax+90h], ecx
mov rdi, [rbp+var_8]
add rdi, 297h
mov rsi, [rbp+var_18]
mov edx, 5
call ma_strmake
lea rax, [rbp+var_40]
lea rcx, [rbp+var_100]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 20h ; ' '
mov rax, [rbp+var_8]
add rax, 97h
mov [rbp+var_108], rax
cmp [rbp+var_20], 0
jz short loc_1E001
mov rax, [rbp+var_20]
mov [rbp+var_110], rax
jmp short loc_1E00C
loc_1E001:
mov rax, [rbp+var_48]
mov [rbp+var_110], rax
loc_1E00C:
mov rdi, [rbp+var_108]
mov rdx, [rbp+var_110]
mov esi, 1FFh
lea rcx, [rbp+var_40]
call _vsnprintf
add rsp, 110h
pop rbp
retn
|
long long my_set_error(long long a1, unsigned int a2, long long a3, long long a4, ...)
{
long long v5; // [rsp+8h] [rbp-108h]
char *v6; // [rsp+C8h] [rbp-48h]
va_list va; // [rsp+D0h] [rbp-40h] BYREF
long long v8; // [rsp+F0h] [rbp-20h]
long long v9; // [rsp+F8h] [rbp-18h]
unsigned int v10; // [rsp+104h] [rbp-Ch]
long long v11; // [rsp+108h] [rbp-8h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
if ( !a4 )
{
if ( v10 < 0x7D0 || v10 > 0x80D )
{
if ( v10 < 0x1388 || v10 > 0x1397 )
v6 = client_errors[0];
else
v6 = mariadb_client_errors[v10 - 5000];
}
else
{
v6 = client_errors[v10 - 2000];
}
}
*(_DWORD *)(v11 + 144) = v10;
ma_strmake(v11 + 663, v9, 5LL);
va_start(va, a4);
v5 = v11 + 151;
if ( v8 )
return vsnprintf(v5, 511LL, v8, va);
else
return vsnprintf(v5, 511LL, v6, va);
}
|
my_set_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x110
TEST AL,AL
JZ 0x0011defe
MOVAPS xmmword ptr [RBP + -0xd0],XMM0
MOVAPS xmmword ptr [RBP + -0xc0],XMM1
MOVAPS xmmword ptr [RBP + -0xb0],XMM2
MOVAPS xmmword ptr [RBP + -0xa0],XMM3
MOVAPS xmmword ptr [RBP + -0x90],XMM4
MOVAPS xmmword ptr [RBP + -0x80],XMM5
MOVAPS xmmword ptr [RBP + -0x70],XMM6
MOVAPS xmmword ptr [RBP + -0x60],XMM7
LAB_0011defe:
MOV qword ptr [RBP + -0xd8],R9
MOV qword ptr [RBP + -0xe0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0011df92
CMP dword ptr [RBP + -0xc],0x7d0
JC 0x0011df51
CMP dword ptr [RBP + -0xc],0x80d
JA 0x0011df51
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x7d0
MOV EAX,EAX
MOV ECX,EAX
LEA RAX,[0x16a3a0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0011df90
LAB_0011df51:
CMP dword ptr [RBP + -0xc],0x1388
JC 0x0011df80
CMP dword ptr [RBP + -0xc],0x1397
JA 0x0011df80
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x1388
MOV EAX,EAX
MOV ECX,EAX
LEA RAX,[0x16a5a0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0011df8e
LAB_0011df80:
LEA RAX,[0x16a3a0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
LAB_0011df8e:
JMP 0x0011df90
LAB_0011df90:
JMP 0x0011df92
LAB_0011df92:
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x90],ECX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x297
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0x5
CALL 0x00139d40
LEA RAX,[RBP + -0x40]
LEA RCX,[RBP + -0x100]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x20
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x97
MOV qword ptr [RBP + -0x108],RAX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0011e001
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x110],RAX
JMP 0x0011e00c
LAB_0011e001:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x110],RAX
LAB_0011e00c:
MOV RDI,qword ptr [RBP + -0x108]
MOV RDX,qword ptr [RBP + -0x110]
MOV ESI,0x1ff
LEA RCX,[RBP + -0x40]
CALL 0x001132a0
ADD RSP,0x110
POP RBP
RET
|
void my_set_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
long param_9,uint param_10,int8 param_11,char *param_12,int8 param_13,
int8 param_14)
{
char in_AL;
char *local_118;
int1 local_108 [32];
int8 local_e8;
int8 local_e0;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
char *local_50;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
char *local_28;
int8 local_20;
uint local_14;
long local_10;
if (in_AL != '\0') {
local_d8 = param_1;
local_c8 = param_2;
local_b8 = param_3;
local_a8 = param_4;
local_98 = param_5;
local_88 = param_6;
local_78 = param_7;
local_68 = param_8;
}
if (param_12 == (char *)0x0) {
if ((param_10 < 2000) || (0x80d < param_10)) {
if ((param_10 < 5000) || (0x1397 < param_10)) {
local_50 = client_errors;
}
else {
local_50 = *(char **)(mariadb_client_errors + (ulong)(param_10 - 5000) * 8);
}
}
else {
local_50 = (&client_errors)[param_10 - 2000];
}
}
*(uint *)(param_9 + 0x90) = param_10;
local_e8 = param_13;
local_e0 = param_14;
local_28 = param_12;
local_20 = param_11;
local_14 = param_10;
local_10 = param_9;
ma_strmake(param_9 + 0x297,param_11,5);
local_38 = local_108;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
if (local_28 == (char *)0x0) {
local_118 = local_50;
}
else {
local_118 = local_28;
}
vsnprintf((char *)(local_10 + 0x97),0x1ff,local_118,&local_48);
return;
}
|
|
57,843
|
atoi_octal
|
eloqsql/mysys/my_init.c
|
static ulong atoi_octal(const char *str)
{
long int tmp;
while (*str && my_isspace(&my_charset_latin1, *str))
str++;
str2int(str,
(*str == '0' ? 8 : 10), /* Octalt or decimalt */
0, INT_MAX, &tmp);
return (ulong) tmp;
}
|
O3
|
c
|
atoi_octal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movb (%rdi), %al
movl $0xa, %esi
testb %al, %al
je 0x9fdae
leaq 0x30c19a(%rip), %rcx # 0x3abf20
movq 0x40(%rcx), %rcx
movzbl %al, %edx
testb $0x8, 0x1(%rcx,%rdx)
je 0x9fda0
movb 0x1(%rdi), %al
incq %rdi
testb %al, %al
jne 0x9fd8a
jmp 0x9fdae
xorl %ecx, %ecx
cmpb $0x30, %al
setne %cl
leal 0x8(,%rcx,2), %esi
leaq -0x10(%rbp), %rbx
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
xorl %edx, %edx
movq %rbx, %r8
callq 0xd7878
movq (%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
atoi_octal:
push rbp
mov rbp, rsp
push rbx
push rax
mov al, [rdi]
mov esi, 0Ah
test al, al
jz short loc_9FDAE
lea rcx, my_charset_latin1
mov rcx, [rcx+40h]
loc_9FD8A:
movzx edx, al
test byte ptr [rcx+rdx+1], 8
jz short loc_9FDA0
mov al, [rdi+1]
inc rdi
test al, al
jnz short loc_9FD8A
jmp short loc_9FDAE
loc_9FDA0:
xor ecx, ecx
cmp al, 30h ; '0'
setnz cl
lea esi, ds:8[rcx*2]
loc_9FDAE:
lea rbx, [rbp+var_10]
mov ecx, 7FFFFFFFh
xor edx, edx
mov r8, rbx
call str2int
mov rax, [rbx]
add rsp, 8
pop rbx
pop rbp
retn
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> atoi_octal(unsigned __int8 *a1)
{
unsigned __int8 v1; // al
long long v2; // rsi
_BYTE v3[16]; // [rsp+0h] [rbp-10h] BYREF
v1 = *a1;
v2 = 10LL;
if ( *a1 )
{
while ( (*(_BYTE *)(*((_QWORD *)&my_charset_latin1 + 8) + v1 + 1LL) & 8) != 0 )
{
v1 = *++a1;
if ( !v1 )
goto LABEL_6;
}
v2 = 2 * (unsigned int)(v1 != 48) + 8;
}
LABEL_6:
str2int(a1, v2, 0LL, 0x7FFFFFFFLL, v3);
}
|
atoi_octal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV AL,byte ptr [RDI]
MOV ESI,0xa
TEST AL,AL
JZ 0x0019fdae
LEA RCX,[0x4abf20]
MOV RCX,qword ptr [RCX + 0x40]
LAB_0019fd8a:
MOVZX EDX,AL
TEST byte ptr [RCX + RDX*0x1 + 0x1],0x8
JZ 0x0019fda0
MOV AL,byte ptr [RDI + 0x1]
INC RDI
TEST AL,AL
JNZ 0x0019fd8a
JMP 0x0019fdae
LAB_0019fda0:
XOR ECX,ECX
CMP AL,0x30
SETNZ CL
LEA ESI,[0x8 + RCX*0x2]
LAB_0019fdae:
LEA RBX,[RBP + -0x10]
MOV ECX,0x7fffffff
XOR EDX,EDX
MOV R8,RBX
CALL 0x001d7878
MOV RAX,qword ptr [RBX]
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 atoi_octal(byte *param_1)
{
byte bVar1;
int8 in_RAX;
char cVar2;
int8 local_18;
bVar1 = *param_1;
cVar2 = '\n';
do {
if (bVar1 == 0) {
LAB_0019fdae:
local_18 = in_RAX;
str2int(param_1,cVar2,0,0x7fffffff,&local_18);
return local_18;
}
if ((PTR_ctype_latin1_004abf60[(ulong)bVar1 + 1] & 8) == 0) {
cVar2 = (bVar1 != 0x30) * '\x02' + '\b';
goto LAB_0019fdae;
}
bVar1 = param_1[1];
param_1 = param_1 + 1;
} while( true );
}
|
|
57,844
|
end_server
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void
end_server(MYSQL *mysql)
{
/* if net->error 2 and reconnect is activated, we need to inform
connection handler */
if (mysql->net.pvio != 0)
{
ma_pvio_close(mysql->net.pvio);
mysql->net.pvio= 0; /* Marker */
}
ma_net_end(&mysql->net);
free_old_query(mysql);
return;
}
|
O0
|
c
|
end_server:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x70cbd
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x7e880
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rdi
callq 0x6f6a0
movq -0x8(%rbp), %rdi
callq 0x78e80
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
end_server:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax], 0
jz short loc_70CBD
mov rax, [rbp+var_8]
mov rdi, [rax]
call ma_pvio_close
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
loc_70CBD:
mov rdi, [rbp+var_8]
call ma_net_end
mov rdi, [rbp+var_8]
call free_old_query
add rsp, 10h
pop rbp
retn
|
long long end_server(_QWORD *a1)
{
if ( *a1 )
{
ma_pvio_close(*a1);
*a1 = 0LL;
}
ma_net_end((long long)a1);
return free_old_query(a1);
}
|
end_server:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX],0x0
JZ 0x00170cbd
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
CALL 0x0017e880
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
LAB_00170cbd:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0016f6a0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00178e80
ADD RSP,0x10
POP RBP
RET
|
void end_server(long *param_1)
{
if (*param_1 != 0) {
ma_pvio_close(*param_1);
*param_1 = 0;
}
ma_net_end(param_1);
free_old_query(param_1);
return;
}
|
|
57,845
|
mariadb_read_options
|
eloqsql/libmariadb/libmariadb/ma_default.c
|
my_bool _mariadb_read_options(MYSQL *mysql,
const char *config_dir,
const char *config_file,
const char *group,
unsigned int recursion)
{
int i= 0,
exts,
errors= 0;
char filename[FN_REFLEN + 1];
unsigned int recursion_stop= 64;
#ifndef _WIN32
char *env;
#endif
if (recursion >= recursion_stop)
return 1;
if (config_file && config_file[0])
return _mariadb_read_options_from_file(mysql, config_file, group, recursion);
if (config_dir && config_dir[0])
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%cmy.%s", config_dir, FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
return errors;
}
for (i=0; i < MAX_CONFIG_DIRS && configuration_dirs[i]; i++)
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%cmy.%s", configuration_dirs[i], FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
}
#ifndef _WIN32
/* special case: .my.cnf in Home directory */
if ((env= getenv("HOME")))
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%c.my.%s", env, FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
}
#endif
return errors;
}
|
O3
|
c
|
mariadb_read_options:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movq %rcx, -0x258(%rbp)
movq %rdi, -0x250(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movb $0x1, %r12b
movl %r8d, -0x244(%rbp)
cmpl $0x3f, %r8d
jbe 0x34aec
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x34ccf
movl %r12d, %eax
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r9
testq %rdx, %rdx
je 0x34b39
cmpb $0x0, (%rdx)
je 0x34b39
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x34ccf
movq -0x250(%rbp), %rdi
movq %rdx, %rsi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x34cd4
testq %r9, %r9
je 0x34bb7
cmpb $0x0, (%r9)
je 0x34bb7
leaq 0x6678(%rip), %r10 # 0x3b1c3
leaq 0x662c(%rip), %r8 # 0x3b17e
xorl %r12d, %r12d
leaq -0x240(%rbp), %r14
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
xorl %eax, %eax
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13770
testl %eax, %eax
jne 0x34ac4
leaq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x34cd4
jmp 0x34cc7
xorl %r12d, %r12d
leaq 0x1b03f(%rip), %r15 # 0x4fc00
leaq 0x65b6(%rip), %r13 # 0x3b17e
leaq -0x240(%rbp), %r14
xorl %ebx, %ebx
movq (%r15), %rax
movq (%rax,%rbx,8), %r9
testq %r9, %r9
je 0x34c41
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
movq %r13, %r8
xorl %eax, %eax
leaq 0x65c8(%rip), %r10 # 0x3b1c3
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13770
testl %eax, %eax
jne 0x34c38
movq -0x250(%rbp), %rdi
movq %r14, %rsi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x34cd4
addb %al, %r12b
incq %rbx
cmpq $0x6, %rbx
jne 0x34bd1
leaq 0x6526(%rip), %rdi # 0x3b16e
callq 0x135a0
testq %rax, %rax
je 0x34ac4
leaq 0x652b(%rip), %r8 # 0x3b188
leaq -0x240(%rbp), %r14
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
movq %rax, %r9
xorl %eax, %eax
leaq 0x6541(%rip), %r10 # 0x3b1c3
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13770
testl %eax, %eax
jne 0x34ac4
leaq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x34cd4
addb %r12b, %al
movl %eax, %r12d
jmp 0x34ac4
callq 0x13500
|
_mariadb_read_options:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 238h
mov [rbp+var_258], rcx
mov [rbp+var_250], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r12b, 1
mov [rbp+var_244], r8d
cmp r8d, 3Fh ; '?'
jbe short loc_34AEC
loc_34AC4:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_34CCF
mov eax, r12d
add rsp, 238h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_34AEC:
mov r9, rsi
test rdx, rdx
jz short loc_34B39
cmp byte ptr [rdx], 0
jz short loc_34B39
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_34CCF
mov rdi, [rbp+var_250]
mov rsi, rdx
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
add rsp, 238h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _mariadb_read_options_from_file
loc_34B39:
test r9, r9
jz short loc_34BB7
cmp byte ptr [r9], 0
jz short loc_34BB7
lea r10, aCnf; "cnf"
lea r8, aSCmyS; "%s%cmy.%s"
xor r12d, r12d
lea r14, [rbp+var_240]
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
xor eax, eax
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz loc_34AC4
lea rsi, [rbp+var_240]
mov rdi, [rbp+var_250]
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
jmp loc_34CC7
loc_34BB7:
xor r12d, r12d
lea r15, configuration_dirs
lea r13, aSCmyS; "%s%cmy.%s"
lea r14, [rbp+var_240]
xor ebx, ebx
loc_34BD1:
mov rax, [r15]
mov r9, [rax+rbx*8]
test r9, r9
jz short loc_34C41
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
mov r8, r13
xor eax, eax
lea r10, aCnf; "cnf"
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz short loc_34C38
mov rdi, [rbp+var_250]
mov rsi, r14
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
add r12b, al
loc_34C38:
inc rbx
cmp rbx, 6
jnz short loc_34BD1
loc_34C41:
lea rdi, aMariadbHome+8; "HOME"
call _getenv
test rax, rax
jz loc_34AC4
lea r8, aSCMyS; "%s%c.my.%s"
lea r14, [rbp+var_240]
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
mov r9, rax
xor eax, eax
lea r10, aCnf; "cnf"
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz loc_34AC4
lea rsi, [rbp+var_240]
mov rdi, [rbp+var_250]
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
add al, r12b
loc_34CC7:
mov r12d, eax
jmp loc_34AC4
loc_34CCF:
call ___stack_chk_fail
|
long long mariadb_read_options(long long a1, const char *a2, _BYTE *a3, long long a4, unsigned int a5)
{
unsigned int v5; // r12d
double v7; // xmm0_8
unsigned int options_from_file; // eax
long long i; // rbx
const char *v10; // r9
double v11; // xmm0_8
const char *v12; // rax
double v13; // xmm0_8
_BYTE v16[528]; // [rsp+20h] [rbp-240h] BYREF
unsigned long long v17; // [rsp+230h] [rbp-30h]
v17 = __readfsqword(0x28u);
LOBYTE(v5) = 1;
if ( a5 > 0x3F )
return v5;
if ( !a3 || !*a3 )
{
if ( a2 && *a2 )
{
v5 = 0;
v7 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%cmy.%s", a2, 47LL, "cnf");
if ( (unsigned int)access(v16, 4LL, v7) )
return v5;
return (unsigned int)mariadb_read_options_from_file(a1, v16, a4, a5);
}
else
{
v5 = 0;
for ( i = 0LL; i != 6; ++i )
{
v10 = *(const char **)(configuration_dirs + 8 * i);
if ( !v10 )
break;
v11 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%cmy.%s", v10, 47LL, "cnf");
if ( !(unsigned int)access(v16, 4LL, v11) )
LOBYTE(v5) = mariadb_read_options_from_file(a1, v16, a4, a5) + v5;
}
v12 = (const char *)getenv("HOME");
if ( !v12 )
return v5;
v13 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%c.my.%s", v12, 47LL, "cnf");
if ( (unsigned int)access(v16, 4LL, v13) )
return v5;
options_from_file = mariadb_read_options_from_file(a1, v16, a4, a5);
LOBYTE(options_from_file) = v5 + options_from_file;
}
return options_from_file;
}
return mariadb_read_options_from_file(a1, a3, a4, a5);
}
|
_mariadb_read_options:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x238
MOV qword ptr [RBP + -0x258],RCX
MOV qword ptr [RBP + -0x250],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R12B,0x1
MOV dword ptr [RBP + -0x244],R8D
CMP R8D,0x3f
JBE 0x00134aec
LAB_00134ac4:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00134ccf
MOV EAX,R12D
ADD RSP,0x238
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00134aec:
MOV R9,RSI
TEST RDX,RDX
JZ 0x00134b39
CMP byte ptr [RDX],0x0
JZ 0x00134b39
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00134ccf
MOV RDI,qword ptr [RBP + -0x250]
MOV RSI,RDX
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
ADD RSP,0x238
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00134cd4
LAB_00134b39:
TEST R9,R9
JZ 0x00134bb7
CMP byte ptr [R9],0x0
JZ 0x00134bb7
LEA R10,[0x13b1c3]
LEA R8,[0x13b17e]
XOR R12D,R12D
LEA R14,[RBP + -0x240]
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
XOR EAX,EAX
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113770
TEST EAX,EAX
JNZ 0x00134ac4
LEA RSI,[RBP + -0x240]
MOV RDI,qword ptr [RBP + -0x250]
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x00134cd4
JMP 0x00134cc7
LAB_00134bb7:
XOR R12D,R12D
LEA R15,[0x14fc00]
LEA R13,[0x13b17e]
LEA R14,[RBP + -0x240]
XOR EBX,EBX
LAB_00134bd1:
MOV RAX,qword ptr [R15]
MOV R9,qword ptr [RAX + RBX*0x8]
TEST R9,R9
JZ 0x00134c41
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
MOV R8,R13
XOR EAX,EAX
LEA R10,[0x13b1c3]
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113770
TEST EAX,EAX
JNZ 0x00134c38
MOV RDI,qword ptr [RBP + -0x250]
MOV RSI,R14
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x00134cd4
ADD R12B,AL
LAB_00134c38:
INC RBX
CMP RBX,0x6
JNZ 0x00134bd1
LAB_00134c41:
LEA RDI,[0x13b16e]
CALL 0x001135a0
TEST RAX,RAX
JZ 0x00134ac4
LEA R8,[0x13b188]
LEA R14,[RBP + -0x240]
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
MOV R9,RAX
XOR EAX,EAX
LEA R10,[0x13b1c3]
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113770
TEST EAX,EAX
JNZ 0x00134ac4
LEA RSI,[RBP + -0x240]
MOV RDI,qword ptr [RBP + -0x250]
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x00134cd4
ADD AL,R12B
LAB_00134cc7:
MOV R12D,EAX
JMP 0x00134ac4
LAB_00134ccf:
CALL 0x00113500
|
ulong _mariadb_read_options
(int8 param_1,char *param_2,char *param_3,int8 param_4,uint param_5)
{
long lVar1;
char cVar2;
int iVar3;
uint uVar4;
ulong uVar5;
char *pcVar6;
int8 uVar7;
long lVar8;
int8 unaff_R12;
long in_FS_OFFSET;
char local_248 [528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar5 = CONCAT71((int7)((ulong)unaff_R12 >> 8),1);
if (param_5 < 0x40) {
if ((param_3 != (char *)0x0) && (*param_3 != '\0')) {
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
uVar5 = _mariadb_read_options_from_file(param_1,param_3,param_4,param_5);
return uVar5;
}
goto LAB_00134ccf;
}
if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
uVar5 = 0;
lVar8 = 0;
do {
lVar1 = *(long *)(configuration_dirs + lVar8 * 8);
if (lVar1 == 0) break;
__snprintf_chk(local_248,0x200,1,0x201,"%s%cmy.%s",lVar1,0x2f,&DAT_0013b1c3);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
cVar2 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
uVar5 = (ulong)(byte)((char)uVar5 + cVar2);
}
lVar8 = lVar8 + 1;
} while (lVar8 != 6);
pcVar6 = getenv("HOME");
if (pcVar6 != (char *)0x0) {
__snprintf_chk(local_248,0x200,1,0x201,"%s%c.my.%s",pcVar6,0x2f,&DAT_0013b1c3);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
uVar7 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
uVar4 = (uint)CONCAT71((int7)((ulong)uVar7 >> 8),(char)uVar7 + (char)uVar5);
goto LAB_00134cc7;
}
}
}
else {
uVar5 = 0;
__snprintf_chk(local_248,0x200,1,0x201,"%s%cmy.%s",param_2,0x2f,&DAT_0013b1c3);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
uVar4 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
LAB_00134cc7:
uVar5 = (ulong)uVar4;
}
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar5 & 0xffffffff;
}
LAB_00134ccf:
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,846
|
inline_mysql_cond_init
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_cond_init(
#ifdef HAVE_PSI_COND_INTERFACE
PSI_cond_key key,
#endif
mysql_cond_t *that,
const pthread_condattr_t *attr)
{
#ifdef HAVE_PSI_COND_INTERFACE
that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond);
#else
that->m_psi= NULL;
#endif
return pthread_cond_init(&that->m_cond, attr);
}
|
O0
|
c
|
inline_mysql_cond_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1a692e(%rip), %rax # 0x1d8c48
movq (%rax), %rax
movq 0x60(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24380
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
inline_mysql_cond_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+60h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_cond_init
add rsp, 20h
pop rbp
retn
|
long long inline_mysql_cond_init(unsigned int a1, long long a2, long long a3)
{
*(_QWORD *)(a2 + 48) = (*((long long ( **)(_QWORD, long long))PSI_server[0] + 12))(a1, a2);
return pthread_cond_init(a2, a3);
}
|
inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x2d8c48]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00124380
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_cond_init(int4 param_1,pthread_cond_t *param_2,pthread_condattr_t *param_3)
{
longlong lVar1;
lVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2);
param_2[1].__align = lVar1;
pthread_cond_init(param_2,param_3);
return;
}
|
|
57,847
|
mysql_cset_escape_slashes
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
size_t mysql_cset_escape_slashes(const MARIADB_CHARSET_INFO * cset, char *newstr,
const char * escapestr, size_t escapestr_len )
{
const char *newstr_s = newstr;
const char *newstr_e = newstr + 2 * escapestr_len;
const char *end = escapestr + escapestr_len;
my_bool escape_overflow = FALSE;
for (;escapestr < end; escapestr++) {
char esc = '\0';
unsigned int len = 0;
/* check unicode characters */
if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) {
/* check possible overflow */
if ((newstr + len) > newstr_e) {
escape_overflow = TRUE;
break;
}
/* copy mb char without escaping it */
while (len--) {
*newstr++ = *escapestr++;
}
escapestr--;
continue;
}
if (cset->char_maxlen > 1 && cset->mb_charlen(*escapestr) > 1) {
esc = *escapestr;
} else {
switch (*escapestr) {
case 0:
esc = '0';
break;
case '\n':
esc = 'n';
break;
case '\r':
esc = 'r';
break;
case '\\':
case '\'':
case '"':
esc = *escapestr;
break;
case '\032':
esc = 'Z';
break;
}
}
if (esc) {
if (newstr + 2 > newstr_e) {
escape_overflow = TRUE;
break;
}
/* copy escaped character */
*newstr++ = '\\';
*newstr++ = esc;
} else {
if (newstr + 1 > newstr_e) {
escape_overflow = TRUE;
break;
}
/* copy non escaped character */
*newstr++ = *escapestr;
}
}
*newstr = '\0';
if (escape_overflow) {
return((size_t)~0);
}
return((size_t)(newstr - newstr_s));
}
|
O3
|
c
|
mysql_cset_escape_slashes:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq %rsi, %rax
testq %rcx, %rcx
jle 0x30e6c
movq %rcx, %r14
movq %rdx, %r12
movq %rdi, %r15
movq -0x30(%rbp), %rbx
leaq (%rbx,%rcx,2), %r13
addq %rdx, %r14
cmpl $0x2, 0x34(%r15)
jb 0x30dfe
movq %r12, %rdi
movq %r14, %rsi
callq *0x40(%r15)
testl %eax, %eax
je 0x30ddd
movl %eax, %ecx
movl %eax, %eax
addq %rbx, %rax
cmpq %r13, %rax
ja 0x30e75
decq %r12
movq %r12, %rdx
leaq 0x1(%rdx), %r12
leaq 0x1(%rbx), %rax
movb 0x1(%rdx), %dl
movb %dl, (%rbx)
movq %r12, %rdx
movq %rax, %rbx
decl %ecx
jne 0x30dc1
jmp 0x30e5d
cmpl $0x2, 0x34(%r15)
jb 0x30dfe
movsbl (%r12), %edi
callq *0x38(%r15)
cmpl $0x1, %eax
jbe 0x30dfe
movb (%r12), %cl
testb %cl, %cl
jne 0x30e4e
xorl %ecx, %ecx
jmp 0x30e37
movb (%r12), %cl
movzbl %cl, %eax
cmpl $0x19, %eax
jle 0x30e1b
cmpl $0x26, %eax
jg 0x30e2d
cmpl $0x1a, %eax
je 0x30e48
cmpl $0x22, %eax
je 0x30e4e
jmp 0x30e37
testl %eax, %eax
je 0x30e44
cmpl $0xa, %eax
je 0x30e4c
cmpl $0xd, %eax
jne 0x30e37
movb $0x72, %cl
jmp 0x30e4e
cmpl $0x27, %eax
je 0x30e4e
cmpl $0x5c, %eax
je 0x30e4e
leaq 0x1(%rbx), %rax
cmpq %r13, %rax
ja 0x30e75
movb %cl, (%rbx)
jmp 0x30e5d
movb $0x30, %cl
jmp 0x30e4e
movb $0x5a, %cl
jmp 0x30e4e
movb $0x6e, %cl
leaq 0x2(%rbx), %rax
cmpq %r13, %rax
ja 0x30e75
movb $0x5c, (%rbx)
movb %cl, 0x1(%rbx)
incq %r12
movq %rax, %rbx
cmpq %r14, %r12
jb 0x30d96
movb $0x0, (%rax)
subq -0x30(%rbp), %rax
jmp 0x30e7f
movb $0x0, (%rbx)
movq $-0x1, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
mysql_cset_escape_slashes:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_30], rsi
mov rax, rsi
test rcx, rcx
jle loc_30E6C
mov r14, rcx
mov r12, rdx
mov r15, rdi
mov rbx, [rbp+var_30]
lea r13, [rbx+rcx*2]
add r14, rdx
loc_30D96:
cmp dword ptr [r15+34h], 2
jb short loc_30DFE
mov rdi, r12
mov rsi, r14
call qword ptr [r15+40h]
test eax, eax
jz short loc_30DDD
mov ecx, eax
mov eax, eax
add rax, rbx
cmp rax, r13
ja loc_30E75
dec r12
mov rdx, r12
loc_30DC1:
lea r12, [rdx+1]
lea rax, [rbx+1]
mov dl, [rdx+1]
mov [rbx], dl
mov rdx, r12
mov rbx, rax
dec ecx
jnz short loc_30DC1
jmp loc_30E5D
loc_30DDD:
cmp dword ptr [r15+34h], 2
jb short loc_30DFE
movsx edi, byte ptr [r12]
call qword ptr [r15+38h]
cmp eax, 1
jbe short loc_30DFE
mov cl, [r12]
test cl, cl
jnz short loc_30E4E
xor ecx, ecx
jmp short loc_30E37
loc_30DFE:
mov cl, [r12]
movzx eax, cl
cmp eax, 19h
jle short loc_30E1B
cmp eax, 26h ; '&'
jg short loc_30E2D
cmp eax, 1Ah
jz short loc_30E48
cmp eax, 22h ; '"'
jz short loc_30E4E
jmp short loc_30E37
loc_30E1B:
test eax, eax
jz short loc_30E44
cmp eax, 0Ah
jz short loc_30E4C
cmp eax, 0Dh
jnz short loc_30E37
mov cl, 72h ; 'r'
jmp short loc_30E4E
loc_30E2D:
cmp eax, 27h ; '''
jz short loc_30E4E
cmp eax, 5Ch ; '\'
jz short loc_30E4E
loc_30E37:
lea rax, [rbx+1]
cmp rax, r13
ja short loc_30E75
mov [rbx], cl
jmp short loc_30E5D
loc_30E44:
mov cl, 30h ; '0'
jmp short loc_30E4E
loc_30E48:
mov cl, 5Ah ; 'Z'
jmp short loc_30E4E
loc_30E4C:
mov cl, 6Eh ; 'n'
loc_30E4E:
lea rax, [rbx+2]
cmp rax, r13
ja short loc_30E75
mov byte ptr [rbx], 5Ch ; '\'
mov [rbx+1], cl
loc_30E5D:
inc r12
mov rbx, rax
cmp r12, r14
jb loc_30D96
loc_30E6C:
mov byte ptr [rax], 0
sub rax, [rbp+var_30]
jmp short loc_30E7F
loc_30E75:
mov byte ptr [rbx], 0
mov rax, 0FFFFFFFFFFFFFFFFh
loc_30E7F:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mysql_cset_escape_slashes(long long a1, char *a2, char *a3, long long a4)
{
char *v4; // rax
char *v5; // r12
char *v6; // rbx
unsigned long long v7; // r13
unsigned long long v8; // r14
int v9; // eax
int v10; // ecx
char *v11; // rdx
char v12; // cl
unsigned int v13; // eax
v4 = a2;
if ( a4 <= 0 )
{
LABEL_32:
*v4 = 0;
return v4 - a2;
}
v5 = a3;
v6 = a2;
v7 = (unsigned long long)&a2[2 * a4];
v8 = (unsigned long long)&a3[a4];
while ( *(_DWORD *)(a1 + 52) >= 2u )
{
v9 = (*(long long ( **)(char *, unsigned long long))(a1 + 64))(v5, v8);
if ( v9 )
{
v10 = v9;
if ( (unsigned long long)&v6[v9] > v7 )
goto LABEL_33;
v11 = v5 - 1;
do
{
v5 = v11 + 1;
v4 = v6 + 1;
*v6++ = *++v11;
--v10;
}
while ( v10 );
goto LABEL_31;
}
if ( *(_DWORD *)(a1 + 52) < 2u || (*(unsigned int ( **)(_QWORD))(a1 + 56))((unsigned int)*v5) <= 1 )
break;
v12 = *v5;
if ( *v5 )
goto LABEL_29;
v12 = 0;
LABEL_24:
v4 = v6 + 1;
if ( (unsigned long long)(v6 + 1) > v7 )
goto LABEL_33;
*v6 = v12;
LABEL_31:
++v5;
v6 = v4;
if ( (unsigned long long)v5 >= v8 )
goto LABEL_32;
}
v12 = *v5;
v13 = (unsigned __int8)*v5;
if ( v13 > 0x19 )
{
if ( (unsigned __int8)*v5 > 0x26u )
{
if ( v13 == 39 || v13 == 92 )
goto LABEL_29;
}
else
{
if ( v13 == 26 )
{
v12 = 90;
goto LABEL_29;
}
if ( v13 == 34 )
goto LABEL_29;
}
goto LABEL_24;
}
if ( !*v5 )
{
v12 = 48;
goto LABEL_29;
}
if ( v13 != 10 )
{
if ( v13 == 13 )
{
v12 = 114;
goto LABEL_29;
}
goto LABEL_24;
}
v12 = 110;
LABEL_29:
v4 = v6 + 2;
if ( (unsigned long long)(v6 + 2) <= v7 )
{
*v6 = 92;
v6[1] = v12;
goto LABEL_31;
}
LABEL_33:
*v6 = 0;
return -1LL;
}
|
mysql_cset_escape_slashes:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RBP + -0x30],RSI
MOV RAX,RSI
TEST RCX,RCX
JLE 0x00130e6c
MOV R14,RCX
MOV R12,RDX
MOV R15,RDI
MOV RBX,qword ptr [RBP + -0x30]
LEA R13,[RBX + RCX*0x2]
ADD R14,RDX
LAB_00130d96:
CMP dword ptr [R15 + 0x34],0x2
JC 0x00130dfe
MOV RDI,R12
MOV RSI,R14
CALL qword ptr [R15 + 0x40]
TEST EAX,EAX
JZ 0x00130ddd
MOV ECX,EAX
MOV EAX,EAX
ADD RAX,RBX
CMP RAX,R13
JA 0x00130e75
DEC R12
MOV RDX,R12
LAB_00130dc1:
LEA R12,[RDX + 0x1]
LEA RAX,[RBX + 0x1]
MOV DL,byte ptr [RDX + 0x1]
MOV byte ptr [RBX],DL
MOV RDX,R12
MOV RBX,RAX
DEC ECX
JNZ 0x00130dc1
JMP 0x00130e5d
LAB_00130ddd:
CMP dword ptr [R15 + 0x34],0x2
JC 0x00130dfe
MOVSX EDI,byte ptr [R12]
CALL qword ptr [R15 + 0x38]
CMP EAX,0x1
JBE 0x00130dfe
MOV CL,byte ptr [R12]
TEST CL,CL
JNZ 0x00130e4e
XOR ECX,ECX
JMP 0x00130e37
LAB_00130dfe:
MOV CL,byte ptr [R12]
MOVZX EAX,CL
CMP EAX,0x19
JLE 0x00130e1b
CMP EAX,0x26
JG 0x00130e2d
CMP EAX,0x1a
JZ 0x00130e48
CMP EAX,0x22
JZ 0x00130e4e
JMP 0x00130e37
LAB_00130e1b:
TEST EAX,EAX
JZ 0x00130e44
CMP EAX,0xa
JZ 0x00130e4c
CMP EAX,0xd
JNZ 0x00130e37
MOV CL,0x72
JMP 0x00130e4e
LAB_00130e2d:
CMP EAX,0x27
JZ 0x00130e4e
CMP EAX,0x5c
JZ 0x00130e4e
LAB_00130e37:
LEA RAX,[RBX + 0x1]
CMP RAX,R13
JA 0x00130e75
MOV byte ptr [RBX],CL
JMP 0x00130e5d
LAB_00130e44:
MOV CL,0x30
JMP 0x00130e4e
LAB_00130e48:
MOV CL,0x5a
JMP 0x00130e4e
LAB_00130e4c:
MOV CL,0x6e
LAB_00130e4e:
LEA RAX,[RBX + 0x2]
CMP RAX,R13
JA 0x00130e75
MOV byte ptr [RBX],0x5c
MOV byte ptr [RBX + 0x1],CL
LAB_00130e5d:
INC R12
MOV RBX,RAX
CMP R12,R14
JC 0x00130d96
LAB_00130e6c:
MOV byte ptr [RAX],0x0
SUB RAX,qword ptr [RBP + -0x30]
JMP 0x00130e7f
LAB_00130e75:
MOV byte ptr [RBX],0x0
MOV RAX,-0x1
LAB_00130e7f:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long mysql_cset_escape_slashes(long param_1,byte *param_2,byte *param_3,long param_4)
{
byte *pbVar1;
uint uVar2;
byte *pbVar3;
byte bVar4;
byte *pbVar5;
byte *pbVar6;
byte *pbVar7;
pbVar3 = param_2;
if (0 < param_4) {
pbVar1 = param_2 + param_4 * 2;
pbVar7 = param_3 + param_4;
pbVar6 = param_2;
do {
if (*(uint *)(param_1 + 0x34) < 2) {
LAB_00130dfe:
bVar4 = *param_3;
if (bVar4 < 0x1a) {
if (bVar4 == 0) {
bVar4 = 0x30;
}
else if (bVar4 == 10) {
bVar4 = 0x6e;
}
else {
if (bVar4 != 0xd) goto LAB_00130e37;
bVar4 = 0x72;
}
}
else if (bVar4 < 0x27) {
if (bVar4 == 0x1a) {
bVar4 = 0x5a;
}
else if (bVar4 != 0x22) goto LAB_00130e37;
}
else if ((bVar4 != 0x27) && (bVar4 != 0x5c)) {
LAB_00130e37:
pbVar3 = pbVar6 + 1;
if (pbVar1 < pbVar3) goto LAB_00130e75;
*pbVar6 = bVar4;
goto LAB_00130e5d;
}
LAB_00130e4e:
pbVar3 = pbVar6 + 2;
if (pbVar1 < pbVar3) {
LAB_00130e75:
*pbVar6 = 0;
return -1;
}
*pbVar6 = 0x5c;
pbVar6[1] = bVar4;
}
else {
uVar2 = (**(code **)(param_1 + 0x40))(param_3,pbVar7);
if (uVar2 == 0) {
if ((*(uint *)(param_1 + 0x34) < 2) ||
(uVar2 = (**(code **)(param_1 + 0x38))((int)(char)*param_3), uVar2 < 2))
goto LAB_00130dfe;
bVar4 = *param_3;
if (bVar4 == 0) {
bVar4 = 0;
goto LAB_00130e37;
}
goto LAB_00130e4e;
}
if (pbVar1 < pbVar6 + uVar2) goto LAB_00130e75;
pbVar5 = param_3 + -1;
do {
param_3 = pbVar5 + 1;
pbVar3 = pbVar6 + 1;
*pbVar6 = pbVar5[1];
uVar2 = uVar2 - 1;
pbVar5 = param_3;
pbVar6 = pbVar3;
} while (uVar2 != 0);
}
LAB_00130e5d:
param_3 = param_3 + 1;
pbVar6 = pbVar3;
} while (param_3 < pbVar7);
}
*pbVar3 = 0;
return (long)pbVar3 - (long)param_2;
}
|
|
57,848
|
ggml_compute_forward_get_rel_pos_f16(ggml_compute_params const*, ggml_tensor*)
|
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
|
static void ggml_compute_forward_get_rel_pos_f16(
const ggml_compute_params * params,
ggml_tensor * dst) {
GGML_UNUSED(params);
const ggml_tensor * src0 = dst->src[0];
// ref: https://github.com/facebookresearch/segment-anything/blob/main/segment_anything/modeling/image_encoder.py#L292-L322
GGML_TENSOR_UNARY_OP_LOCALS
const int64_t w = ne1;
ggml_fp16_t * src0_data = (ggml_fp16_t *) src0->data;
ggml_fp16_t * dst_data = (ggml_fp16_t *) dst->data;
for (int64_t i2 = 0; i2 < ne2; ++i2) {
for (int64_t i1 = 0; i1 < ne1; ++i1) {
const int64_t pos = (w - i1 - 1) + i2;
for (int64_t i0 = 0; i0 < ne0; ++i0) {
dst_data[i2*ne1*ne0 + i1*ne0 + i0] = src0_data[pos*ne00 + i0];
}
}
}
}
|
O0
|
cpp
|
ggml_compute_forward_get_rel_pos_f16(ggml_compute_params const*, ggml_tensor*):
subq $0x50, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x8(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x30(%rsp)
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x38(%rsp)
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x48(%rsp)
movq -0x18(%rsp), %rax
movq %rax, -0x50(%rsp)
movq 0x38(%rsp), %rax
movq 0xf8(%rax), %rax
movq %rax, -0x58(%rsp)
movq 0x40(%rsp), %rax
movq 0xf8(%rax), %rax
movq %rax, -0x60(%rsp)
movq $0x0, -0x68(%rsp)
movq -0x68(%rsp), %rax
cmpq -0x20(%rsp), %rax
jge 0xa3869
movq $0x0, -0x70(%rsp)
movq -0x70(%rsp), %rax
cmpq -0x18(%rsp), %rax
jge 0xa3854
movq -0x50(%rsp), %rax
subq -0x70(%rsp), %rax
subq $0x1, %rax
addq -0x68(%rsp), %rax
movq %rax, -0x78(%rsp)
movq $0x0, -0x80(%rsp)
movq -0x80(%rsp), %rax
cmpq -0x10(%rsp), %rax
jge 0xa383f
movq -0x58(%rsp), %rax
movq -0x78(%rsp), %rcx
imulq 0x30(%rsp), %rcx
addq -0x80(%rsp), %rcx
movw (%rax,%rcx,2), %dx
movq -0x60(%rsp), %rax
movq -0x68(%rsp), %rcx
imulq -0x18(%rsp), %rcx
imulq -0x10(%rsp), %rcx
movq -0x70(%rsp), %rsi
imulq -0x10(%rsp), %rsi
addq %rsi, %rcx
addq -0x80(%rsp), %rcx
movw %dx, (%rax,%rcx,2)
movq -0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rsp)
jmp 0xa37dd
jmp 0xa3841
movq -0x70(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rsp)
jmp 0xa37ac
jmp 0xa3856
movq -0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rsp)
jmp 0xa3793
addq $0x50, %rsp
retq
nop
|
_ZL36ggml_compute_forward_get_rel_pos_f16PK19ggml_compute_paramsP11ggml_tensor:
sub rsp, 50h
mov [rsp+50h+var_8], rdi
mov [rsp+50h+var_10], rsi
mov rax, [rsp+50h+var_10]
mov rax, [rax+98h]
mov [rsp+50h+var_18], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+10h]
mov [rsp+50h+var_20], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+18h]
mov [rsp+50h+var_28], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+20h]
mov [rsp+50h+var_30], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+28h]
mov [rsp+50h+var_38], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+30h]
mov [rsp+50h+var_40], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+38h]
mov [rsp+50h+var_48], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+40h]
mov [rsp+50h+var_50], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+48h]
mov [rsp+50h+var_58], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+10h]
mov [rsp+50h+var_60], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+18h]
mov [rsp+50h+var_68], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+20h]
mov [rsp+50h+var_70], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+28h]
mov [rsp+50h+var_78], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+30h]
mov [rsp+50h+var_80], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+38h]
mov [rsp+50h+var_88], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+40h]
mov [rsp+50h+var_90], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+48h]
mov [rsp+50h+var_98], rax
mov rax, [rsp+50h+var_68]
mov [rsp+50h+var_A0], rax
mov rax, [rsp+50h+var_18]
mov rax, [rax+0F8h]
mov [rsp+50h+var_A8], rax
mov rax, [rsp+50h+var_10]
mov rax, [rax+0F8h]
mov [rsp+50h+var_B0], rax
mov [rsp+50h+var_B8], 0
loc_A3793:
mov rax, [rsp+50h+var_B8]
cmp rax, [rsp+50h+var_70]
jge loc_A3869
mov [rsp+50h+var_C0], 0
loc_A37AC:
mov rax, [rsp+50h+var_C0]
cmp rax, [rsp+50h+var_68]
jge loc_A3854
mov rax, [rsp+50h+var_A0]
sub rax, [rsp+50h+var_C0]
sub rax, 1
add rax, [rsp+50h+var_B8]
mov [rsp+50h+var_C8], rax
mov [rsp+50h+var_D0], 0
loc_A37DD:
mov rax, [rsp+50h+var_D0]
cmp rax, [rsp+50h+var_60]
jge short loc_A383F
mov rax, [rsp+50h+var_A8]
mov rcx, [rsp+50h+var_C8]
imul rcx, [rsp+50h+var_20]
add rcx, [rsp+50h+var_D0]
mov dx, [rax+rcx*2]
mov rax, [rsp+50h+var_B0]
mov rcx, [rsp+50h+var_B8]
imul rcx, [rsp+50h+var_68]
imul rcx, [rsp+50h+var_60]
mov rsi, [rsp+50h+var_C0]
imul rsi, [rsp+50h+var_60]
add rcx, rsi
add rcx, [rsp+50h+var_D0]
mov [rax+rcx*2], dx
mov rax, [rsp+50h+var_D0]
add rax, 1
mov [rsp+50h+var_D0], rax
jmp short loc_A37DD
loc_A383F:
jmp short $+2
loc_A3841:
mov rax, [rsp+50h+var_C0]
add rax, 1
mov [rsp+50h+var_C0], rax
jmp loc_A37AC
loc_A3854:
jmp short $+2
loc_A3856:
mov rax, [rsp+50h+var_B8]
add rax, 1
mov [rsp+50h+var_B8], rax
jmp loc_A3793
loc_A3869:
add rsp, 50h
retn
|
long long ggml_compute_forward_get_rel_pos_f16(long long a1, _QWORD *a2)
{
long long result; // rax
long long k; // [rsp+0h] [rbp-D0h]
long long j; // [rsp+10h] [rbp-C0h]
long long i; // [rsp+18h] [rbp-B8h]
long long v6; // [rsp+20h] [rbp-B0h]
long long v7; // [rsp+28h] [rbp-A8h]
long long v8; // [rsp+60h] [rbp-70h]
long long v9; // [rsp+68h] [rbp-68h]
long long v10; // [rsp+70h] [rbp-60h]
long long v11; // [rsp+B0h] [rbp-20h]
long long v12; // [rsp+B8h] [rbp-18h]
v12 = a2[19];
v11 = *(_QWORD *)(v12 + 16);
v10 = a2[2];
v9 = a2[3];
v8 = a2[4];
v7 = *(_QWORD *)(v12 + 248);
v6 = a2[31];
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= v8 )
break;
for ( j = 0LL; j < v9; ++j )
{
for ( k = 0LL; k < v10; ++k )
*(_WORD *)(v6 + 2 * (k + v10 * j + v10 * v9 * i)) = *(_WORD *)(v7 + 2 * (k + v11 * (i + v9 - j - 1)));
}
}
return result;
}
|
ggml_compute_forward_get_rel_pos_f16:
SUB RSP,0x50
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RSP + -0x8],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + -0x10],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + -0x18],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + -0x30],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + -0x38],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP + -0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RSP + -0x48],RAX
MOV RAX,qword ptr [RSP + -0x18]
MOV qword ptr [RSP + -0x50],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + -0x58],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + -0x60],RAX
MOV qword ptr [RSP + -0x68],0x0
LAB_001a3793:
MOV RAX,qword ptr [RSP + -0x68]
CMP RAX,qword ptr [RSP + -0x20]
JGE 0x001a3869
MOV qword ptr [RSP + -0x70],0x0
LAB_001a37ac:
MOV RAX,qword ptr [RSP + -0x70]
CMP RAX,qword ptr [RSP + -0x18]
JGE 0x001a3854
MOV RAX,qword ptr [RSP + -0x50]
SUB RAX,qword ptr [RSP + -0x70]
SUB RAX,0x1
ADD RAX,qword ptr [RSP + -0x68]
MOV qword ptr [RSP + -0x78],RAX
MOV qword ptr [RSP + -0x80],0x0
LAB_001a37dd:
MOV RAX,qword ptr [RSP + -0x80]
CMP RAX,qword ptr [RSP + -0x10]
JGE 0x001a383f
MOV RAX,qword ptr [RSP + -0x58]
MOV RCX,qword ptr [RSP + -0x78]
IMUL RCX,qword ptr [RSP + 0x30]
ADD RCX,qword ptr [RSP + -0x80]
MOV DX,word ptr [RAX + RCX*0x2]
MOV RAX,qword ptr [RSP + -0x60]
MOV RCX,qword ptr [RSP + -0x68]
IMUL RCX,qword ptr [RSP + -0x18]
IMUL RCX,qword ptr [RSP + -0x10]
MOV RSI,qword ptr [RSP + -0x70]
IMUL RSI,qword ptr [RSP + -0x10]
ADD RCX,RSI
ADD RCX,qword ptr [RSP + -0x80]
MOV word ptr [RAX + RCX*0x2],DX
MOV RAX,qword ptr [RSP + -0x80]
ADD RAX,0x1
MOV qword ptr [RSP + -0x80],RAX
JMP 0x001a37dd
LAB_001a383f:
JMP 0x001a3841
LAB_001a3841:
MOV RAX,qword ptr [RSP + -0x70]
ADD RAX,0x1
MOV qword ptr [RSP + -0x70],RAX
JMP 0x001a37ac
LAB_001a3854:
JMP 0x001a3856
LAB_001a3856:
MOV RAX,qword ptr [RSP + -0x68]
ADD RAX,0x1
MOV qword ptr [RSP + -0x68],RAX
JMP 0x001a3793
LAB_001a3869:
ADD RSP,0x50
RET
|
/* ggml_compute_forward_get_rel_pos_f16(ggml_compute_params const*, ggml_tensor*) */
void ggml_compute_forward_get_rel_pos_f16(ggml_compute_params *param_1,ggml_tensor *param_2)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long lVar5;
long lVar6;
long local_d0;
long local_c0;
long local_b8;
lVar1 = *(long *)(*(long *)(param_2 + 0x98) + 0x10);
lVar2 = *(long *)(param_2 + 0x10);
lVar3 = *(long *)(param_2 + 0x18);
lVar4 = *(long *)(param_2 + 0x20);
lVar5 = *(long *)(*(long *)(param_2 + 0x98) + 0xf8);
lVar6 = *(long *)(param_2 + 0xf8);
for (local_b8 = 0; local_b8 < lVar4; local_b8 = local_b8 + 1) {
for (local_c0 = 0; local_c0 < lVar3; local_c0 = local_c0 + 1) {
for (local_d0 = 0; local_d0 < lVar2; local_d0 = local_d0 + 1) {
*(int2 *)(lVar6 + (local_b8 * lVar3 * lVar2 + local_c0 * lVar2 + local_d0) * 2) =
*(int2 *)(lVar5 + (((lVar3 - local_c0) + -1 + local_b8) * lVar1 + local_d0) * 2);
}
}
}
return;
}
|
|
57,849
|
minja::Value::to_str[abi:cxx11]() const
|
monkey531[P]llama/common/minja.hpp
|
std::string to_str() const {
if (is_string()) return get<std::string>();
if (is_number_integer()) return std::to_string(get<int64_t>());
if (is_number_float()) return std::to_string(get<double>());
if (is_boolean()) return get<bool>() ? "True" : "False";
if (is_null()) return "None";
return dump();
}
|
O1
|
cpp
|
minja::Value::to_str[abi:cxx11]() const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl 0x40(%rsi), %eax
cmpl $0x3, %eax
jne 0x5da75
movq %rbx, %rdi
callq 0x44a8a
jmp 0x5dbde
leal -0x5(%rax), %ecx
cmpb $0x1, %cl
ja 0x5dafc
movq %rsi, %rdi
callq 0x42ee8
movq %rax, %r15
movq %rax, %r14
negq %r14
cmovsq %rax, %r14
movl $0x1, %r12d
cmpq $0xa, %r14
jb 0x5dbb1
movl $0x4, %r12d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x5dba8
cmpq $0x3e7, %rcx # imm = 0x3E7
jbe 0x5dbae
cmpq $0x2710, %rcx # imm = 0x2710
jb 0x5dbb1
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r12d
cmpq $0x1869f, %rcx # imm = 0x1869F
movq %rdx, %rcx
ja 0x5dab5
addl $-0x3, %r12d
jmp 0x5dbb1
cmpl $0x4, %eax
je 0x5db30
cmpl $0x7, %eax
jne 0x5db5f
movq %rsi, %rdi
callq 0x4301a
movq 0x8743b(%rip), %rsi # 0xe4f50
leaq 0x558e5(%rip), %rcx # 0xb3401
movl $0x148, %edx # imm = 0x148
movq %rbx, %rdi
movb $0x1, %al
callq 0x5e8f7
jmp 0x5dbde
movq %rsi, %rdi
callq 0x44990
leaq 0x53b4c(%rip), %rcx # 0xb168b
leaq 0x53b4a(%rip), %rsi # 0xb1690
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movzbl %al, %edx
xorq $0x5, %rdx
addq %rsi, %rdx
jmp 0x5db8d
testl %eax, %eax
jne 0x5db97
cmpq $0x0, 0x20(%rsi)
jne 0x5db97
cmpq $0x0, 0x10(%rsi)
jne 0x5db97
cmpq $0x0, 0x30(%rsi)
jne 0x5db97
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x53f35(%rip), %rsi # 0xb1abb
leaq 0x53f32(%rip), %rdx # 0xb1abf
movq %rbx, %rdi
callq 0x2175a
jmp 0x5dbde
movq %rbx, %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x43150
jmp 0x5dbde
addl $-0x2, %r12d
jmp 0x5dbb1
decl %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x197f0
addq (%rbx), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4ebe5
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
|
_ZNK5minja5Value6to_strB5cxx11Ev:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
movzx eax, byte ptr [rsi+40h]
cmp eax, 3
jnz short loc_5DA75
mov rdi, rbx
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
jmp loc_5DBDE
loc_5DA75:
lea ecx, [rax-5]
cmp cl, 1
ja short loc_5DAFC
mov rdi, rsi
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r15, rax
mov r14, rax
neg r14
cmovs r14, rax
mov r12d, 1
cmp r14, 0Ah
jb loc_5DBB1
mov r12d, 4
mov rsi, 346DC5D63886594Bh
mov rcx, r14
loc_5DAB5:
cmp rcx, 63h ; 'c'
jbe loc_5DBA8
cmp rcx, 3E7h
jbe loc_5DBAE
cmp rcx, 2710h
jb loc_5DBB1
mov rax, rcx
mul rsi
shr rdx, 0Bh
add r12d, 4
cmp rcx, 1869Fh
mov rcx, rdx
ja short loc_5DAB5
add r12d, 0FFFFFFFDh
jmp loc_5DBB1
loc_5DAFC:
cmp eax, 4
jz short loc_5DB30
cmp eax, 7
jnz short loc_5DB5F
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
mov rsi, cs:vsnprintf_ptr
lea rcx, asc_B3401; "%f"
mov edx, 148h
mov rdi, rbx
mov al, 1
call _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z; __gnu_cxx::__to_xstring<std::string,char>(int (*)(char *,ulong,char const*,__va_list_tag *),ulong,char const*,...)
jmp loc_5DBDE
loc_5DB30:
mov rdi, rsi
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
lea rcx, aTrue_0; "True"
lea rsi, aFalse_0; "False"
test al, al
cmovnz rsi, rcx
lea rcx, [rbx+10h]
mov [rbx], rcx
movzx edx, al
xor rdx, 5
add rdx, rsi
jmp short loc_5DB8D
loc_5DB5F:
test eax, eax
jnz short loc_5DB97
cmp qword ptr [rsi+20h], 0
jnz short loc_5DB97
cmp qword ptr [rsi+10h], 0
jnz short loc_5DB97
cmp qword ptr [rsi+30h], 0
jnz short loc_5DB97
lea rax, [rbx+10h]
mov [rbx], rax
lea rsi, aNone; "None"
lea rdx, aNone+4; ""
loc_5DB8D:
mov rdi, rbx
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)
jmp short loc_5DBDE
loc_5DB97:
mov rdi, rbx
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short loc_5DBDE
loc_5DBA8:
add r12d, 0FFFFFFFEh
jmp short loc_5DBB1
loc_5DBAE:
dec r12d
loc_5DBB1:
shr r15, 3Fh
lea esi, [r15+r12]
lea rax, [rbx+10h]
mov [rbx], rax
mov rdi, rbx
mov edx, 2Dh ; '-'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
add r15, [rbx]
mov rdi, r15
mov esi, r12d
mov rdx, r14
call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong)
loc_5DBDE:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
_QWORD * minja::Value::to_str[abi:cxx11](_QWORD *a1, long long a2)
{
char v2; // al
int v3; // eax
long long v4; // rax
unsigned long long v5; // r14
int v6; // r12d
unsigned long long v7; // rcx
bool v8; // cc
int v9; // r8d
int v10; // r9d
unsigned __int8 v11; // al
char *v12; // rsi
char *v13; // rdx
unsigned long long v14; // r15
char v16; // [rsp-8h] [rbp-28h]
v16 = v2;
v3 = *(unsigned __int8 *)(a2 + 64);
if ( v3 == 3 )
{
minja::Value::get<std::string>((long long)a1, (_QWORD *)a2);
}
else
{
if ( (unsigned __int8)(v3 - 5) > 1u )
{
if ( v3 == 4 )
{
v11 = minja::Value::get<bool>((_QWORD *)a2);
v12 = "False";
if ( v11 )
v12 = "True";
*a1 = a1 + 2;
v13 = &v12[v11 ^ 5LL];
}
else
{
if ( v3 == 7 )
{
minja::Value::get<double>(a2);
__gnu_cxx::__to_xstring<std::string,char>(
(_DWORD)a1,
(unsigned int)&vsnprintf,
328,
(unsigned int)"%f",
v9,
v10,
v16);
return a1;
}
if ( *(_BYTE *)(a2 + 64) || *(_QWORD *)(a2 + 32) || *(_QWORD *)(a2 + 16) || *(_QWORD *)(a2 + 48) )
{
minja::Value::dump[abi:cxx11]((long long)a1, a2, 0xFFFFFFFF, 0);
return a1;
}
*a1 = a1 + 2;
v12 = "None";
v13 = "";
}
std::string::_M_construct<char const*>(a1, v12, (long long)v13);
return a1;
}
v4 = minja::Value::get<long>(a2);
v5 = -v4;
if ( v4 > 0 )
v5 = v4;
v6 = 1;
if ( v5 >= 0xA )
{
v6 = 4;
v7 = v5;
while ( 1 )
{
if ( v7 <= 0x63 )
{
v6 -= 2;
goto LABEL_28;
}
if ( v7 <= 0x3E7 )
break;
if ( v7 < 0x2710 )
goto LABEL_28;
v6 += 4;
v8 = v7 <= 0x1869F;
v7 /= 0x2710uLL;
if ( v8 )
{
v6 -= 3;
goto LABEL_28;
}
}
--v6;
}
LABEL_28:
v14 = (unsigned long long)v4 >> 63;
*a1 = a1 + 2;
std::string::_M_construct(a1, (unsigned int)((unsigned long long)v4 >> 63) + v6, 45LL);
std::__detail::__to_chars_10_impl<unsigned long>((char *)(*a1 + v14), v6, v5);
}
return a1;
}
|
to_str[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOVZX EAX,byte ptr [RSI + 0x40]
CMP EAX,0x3
JNZ 0x0015da75
MOV RDI,RBX
CALL 0x00144a8a
JMP 0x0015dbde
LAB_0015da75:
LEA ECX,[RAX + -0x5]
CMP CL,0x1
JA 0x0015dafc
MOV RDI,RSI
CALL 0x00142ee8
MOV R15,RAX
MOV R14,RAX
NEG R14
CMOVS R14,RAX
MOV R12D,0x1
CMP R14,0xa
JC 0x0015dbb1
MOV R12D,0x4
MOV RSI,0x346dc5d63886594b
MOV RCX,R14
LAB_0015dab5:
CMP RCX,0x63
JBE 0x0015dba8
CMP RCX,0x3e7
JBE 0x0015dbae
CMP RCX,0x2710
JC 0x0015dbb1
MOV RAX,RCX
MUL RSI
SHR RDX,0xb
ADD R12D,0x4
CMP RCX,0x1869f
MOV RCX,RDX
JA 0x0015dab5
ADD R12D,-0x3
JMP 0x0015dbb1
LAB_0015dafc:
CMP EAX,0x4
JZ 0x0015db30
CMP EAX,0x7
JNZ 0x0015db5f
MOV RDI,RSI
CALL 0x0014301a
MOV RSI,qword ptr [0x001e4f50]
LEA RCX,[0x1b3401]
MOV EDX,0x148
MOV RDI,RBX
MOV AL,0x1
CALL 0x0015e8f7
JMP 0x0015dbde
LAB_0015db30:
MOV RDI,RSI
CALL 0x00144990
LEA RCX,[0x1b168b]
LEA RSI,[0x1b1690]
TEST AL,AL
CMOVNZ RSI,RCX
LEA RCX,[RBX + 0x10]
MOV qword ptr [RBX],RCX
MOVZX EDX,AL
XOR RDX,0x5
ADD RDX,RSI
JMP 0x0015db8d
LAB_0015db5f:
TEST EAX,EAX
JNZ 0x0015db97
CMP qword ptr [RSI + 0x20],0x0
JNZ 0x0015db97
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x0015db97
CMP qword ptr [RSI + 0x30],0x0
JNZ 0x0015db97
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b1abb]
LEA RDX,[0x1b1abf]
LAB_0015db8d:
MOV RDI,RBX
CALL 0x0012175a
JMP 0x0015dbde
LAB_0015db97:
MOV RDI,RBX
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00143150
JMP 0x0015dbde
LAB_0015dba8:
ADD R12D,-0x2
JMP 0x0015dbb1
LAB_0015dbae:
DEC R12D
LAB_0015dbb1:
SHR R15,0x3f
LEA ESI,[R15 + R12*0x1]
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RDI,RBX
MOV EDX,0x2d
CALL 0x001197f0
ADD R15,qword ptr [RBX]
MOV RDI,R15
MOV ESI,R12D
MOV RDX,R14
CALL 0x0014ebe5
LAB_0015dbde:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Value::to_str[abi:cxx11]() const */
void minja::Value::to_str_abi_cxx11_(void)
{
Value VVar1;
bool bVar2;
uint uVar3;
ulong uVar4;
ulong uVar5;
Value *in_RSI;
_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr *in_RDI;
uint uVar6;
ulong uVar7;
VVar1 = in_RSI[0x40];
if (VVar1 == (Value)0x3) {
get<std::__cxx11::string>();
}
else if ((byte)((char)VVar1 - 5U) < 2) {
uVar4 = get<long>(in_RSI);
uVar7 = -uVar4;
if (0 < (long)uVar4) {
uVar7 = uVar4;
}
uVar6 = 1;
if (9 < uVar7) {
uVar5 = uVar7;
uVar3 = 4;
do {
uVar6 = uVar3;
if (uVar5 < 100) {
uVar6 = uVar6 - 2;
goto LAB_0015dbb1;
}
if (uVar5 < 1000) {
uVar6 = uVar6 - 1;
goto LAB_0015dbb1;
}
if (uVar5 < 10000) goto LAB_0015dbb1;
bVar2 = 99999 < uVar5;
uVar5 = uVar5 / 10000;
uVar3 = uVar6 + 4;
} while (bVar2);
uVar6 = uVar6 + 1;
}
LAB_0015dbb1:
*(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10;
std::__cxx11::string::_M_construct((ulong)in_RDI,(char)uVar6 - (char)((long)uVar4 >> 0x3f));
std::__detail::__to_chars_10_impl<unsigned_long>
((char *)(*(long *)in_RDI - ((long)uVar4 >> 0x3f)),uVar6,uVar7);
}
else {
if (VVar1 == (Value)0x4) {
get<bool>(in_RSI);
*(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10;
}
else {
if (VVar1 == (Value)0x7) {
get<double>(in_RSI);
__gnu_cxx::__to_xstring<std::__cxx11::string,char>
(in_RDI,(ulong)PTR_vsnprintf_001e4f50,(char *)0x148,&DAT_001b3401);
return;
}
if ((((VVar1 != (Value)0x0) || (*(long *)(in_RSI + 0x20) != 0)) ||
(*(long *)(in_RSI + 0x10) != 0)) || (*(long *)(in_RSI + 0x30) != 0)) {
dump_abi_cxx11_((int)in_RDI,SUB81(in_RSI,0));
return;
}
*(_func_int_char_ptr_ulong_char_ptr___va_list_tag_ptr **)in_RDI = in_RDI + 0x10;
}
std::__cxx11::string::_M_construct<char_const*>();
}
return;
}
|
|
57,850
|
ma_crypt_post_write_hook
|
eloqsql/storage/maria/ma_crypt.c
|
static void ma_crypt_post_write_hook(int res,
PAGECACHE_IO_HOOK_ARGS *args)
{
if (args->crypt_buf != NULL)
{
uchar *tmp= args->page;
args->page= args->crypt_buf;
args->crypt_buf= NULL;
my_free(tmp);
}
maria_page_write_failure(res, args);
}
|
O0
|
c
|
ma_crypt_post_write_hook:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x89749
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x18(%rbp), %rdi
callq 0xf3ba0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x415a0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
ma_crypt_post_write_hook:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jz short loc_89749
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov rdi, [rbp+var_18]
call my_free
loc_89749:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call maria_page_write_failure
add rsp, 20h
pop rbp
retn
|
long long ma_crypt_post_write_hook(int a1, long long *a2)
{
long long v3; // [rsp+8h] [rbp-18h]
if ( a2[3] )
{
v3 = *a2;
*a2 = a2[3];
a2[3] = 0LL;
my_free(v3);
}
return maria_page_write_failure(a1, (long long)a2);
}
|
ma_crypt_post_write_hook:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x00189749
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001f3ba0
LAB_00189749:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001415a0
ADD RSP,0x20
POP RBP
RET
|
void ma_crypt_post_write_hook(int4 param_1,int8 *param_2)
{
int8 uVar1;
if (param_2[3] != 0) {
uVar1 = *param_2;
*param_2 = param_2[3];
param_2[3] = 0;
my_free(uVar1);
}
maria_page_write_failure(param_1,param_2);
return;
}
|
|
57,851
|
ma_crypt_post_write_hook
|
eloqsql/storage/maria/ma_crypt.c
|
static void ma_crypt_post_write_hook(int res,
PAGECACHE_IO_HOOK_ARGS *args)
{
if (args->crypt_buf != NULL)
{
uchar *tmp= args->page;
args->page= args->crypt_buf;
args->crypt_buf= NULL;
my_free(tmp);
}
maria_page_write_failure(res, args);
}
|
O3
|
c
|
ma_crypt_post_write_hook:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
movq 0x18(%rsi), %rax
testq %rax, %rax
je 0x5120e
movq (%rbx), %rdi
movq %rax, (%rbx)
movq $0x0, 0x18(%rbx)
callq 0x9ffb6
movl %r14d, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x50592
|
ma_crypt_post_write_hook:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14d, edi
mov rax, [rsi+18h]
test rax, rax
jz short loc_5120E
mov rdi, [rbx]
mov [rbx], rax
mov qword ptr [rbx+18h], 0
call my_free
loc_5120E:
mov edi, r14d
mov rsi, rbx
pop rbx
pop r14
pop rbp
jmp maria_page_write_failure
|
long long ma_crypt_post_write_hook(int a1, long long *a2)
{
long long v3; // rax
long long v4; // rdi
v3 = a2[3];
if ( v3 )
{
v4 = *a2;
*a2 = v3;
a2[3] = 0LL;
my_free(v4);
}
return maria_page_write_failure(a1, (long long)a2);
}
|
ma_crypt_post_write_hook:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14D,EDI
MOV RAX,qword ptr [RSI + 0x18]
TEST RAX,RAX
JZ 0x0015120e
MOV RDI,qword ptr [RBX]
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x18],0x0
CALL 0x0019ffb6
LAB_0015120e:
MOV EDI,R14D
MOV RSI,RBX
POP RBX
POP R14
POP RBP
JMP 0x00150592
|
void ma_crypt_post_write_hook(int4 param_1,long *param_2)
{
long lVar1;
if (param_2[3] != 0) {
lVar1 = *param_2;
*param_2 = param_2[3];
param_2[3] = 0;
my_free(lVar1);
}
maria_page_write_failure(param_1,param_2);
return;
}
|
|
57,852
|
my_instr_mb
|
eloqsql/strings/ctype-mb.c
|
uint my_instr_mb(CHARSET_INFO *cs,
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const char *end, *b0;
int res= 0;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
b0= b;
end= b+b_length-s_length+1;
while (b < end)
{
int mb_len;
if (!my_ci_strnncoll(cs, (const uchar *) b, s_length,
(const uchar *) s, s_length, 0))
{
if (nmatch)
{
match[0].beg= 0;
match[0].end= (uint) (b-b0);
match[0].mb_len= res;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= 0; /* Not computed */
}
}
return 2;
}
mb_len= (mb_len= my_ismbchar(cs, b, end)) ? mb_len : 1;
b+= mb_len;
b_length-= mb_len;
res++;
}
}
return 0;
}
|
O0
|
c
|
my_instr_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
ja 0x40efe
cmpq $0x0, -0x30(%rbp)
jne 0x40de1
cmpl $0x0, 0x10(%rbp)
je 0x40dd5
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x40f05
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
xorl %ecx, %ecx
subq -0x30(%rbp), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x40efc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
xorl %r9d, %r9d
callq 0x40f10
cmpl $0x0, %eax
jne 0x40e9d
cmpl $0x0, 0x10(%rbp)
je 0x40e94
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x18(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x4c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpl $0x1, 0x10(%rbp)
jbe 0x40e92
movq -0x38(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addq -0x30(%rbp), %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x14(%rax)
jmp 0x40e94
movl $0x2, -0x4(%rbp)
jmp 0x40f05
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x3fea0
movl %eax, -0x50(%rbp)
cmpl $0x0, %eax
je 0x40ebe
movl -0x50(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x40ec8
movl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x40ec8
movl -0x54(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movslq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x40e02
jmp 0x40efe
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nop
|
my_instr_mb:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov [rbp+var_4C], 0
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
ja loc_40EFE
cmp [rbp+var_30], 0
jnz short loc_40DE1
cmp [rbp+arg_0], 0
jz short loc_40DD5
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+8], 0
loc_40DD5:
mov [rbp+var_4], 1
jmp loc_40F05
loc_40DE1:
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
xor ecx, ecx
sub rcx, [rbp+var_30]
add rax, rcx
add rax, 1
mov [rbp+var_40], rax
loc_40E02:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_40]
jnb loc_40EFC
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
xor r9d, r9d
call my_ci_strnncoll
cmp eax, 0
jnz short loc_40E9D
cmp [rbp+arg_0], 0
jz short loc_40E94
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_18]
mov rcx, [rbp+var_48]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+4], ecx
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_38]
mov [rax+8], ecx
cmp [rbp+arg_0], 1
jbe short loc_40E92
mov rax, [rbp+var_38]
mov ecx, [rax+4]
mov rax, [rbp+var_38]
mov [rax+0Ch], ecx
mov rax, [rbp+var_38]
mov eax, [rax+4]
add rax, [rbp+var_30]
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+10h], ecx
mov rax, [rbp+var_38]
mov dword ptr [rax+14h], 0
loc_40E92:
jmp short $+2
loc_40E94:
mov [rbp+var_4], 2
jmp short loc_40F05
loc_40E9D:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_40]
call my_ismbchar_0
mov [rbp+var_50], eax
cmp eax, 0
jz short loc_40EBE
mov eax, [rbp+var_50]
mov [rbp+var_54], eax
jmp short loc_40EC8
loc_40EBE:
mov eax, 1
mov [rbp+var_54], eax
jmp short $+2
loc_40EC8:
mov eax, [rbp+var_54]
mov [rbp+var_50], eax
mov ecx, [rbp+var_50]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
movsxd rcx, [rbp+var_50]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov eax, [rbp+var_4C]
add eax, 1
mov [rbp+var_4C], eax
jmp loc_40E02
loc_40EFC:
jmp short $+2
loc_40EFE:
mov [rbp+var_4], 0
loc_40F05:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long my_instr_mb(
long long a1,
unsigned long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
_DWORD *a6,
unsigned int a7)
{
int v8; // [rsp+Ch] [rbp-54h]
int v9; // [rsp+10h] [rbp-50h]
int v10; // [rsp+14h] [rbp-4Ch]
unsigned long long v11; // [rsp+20h] [rbp-40h]
unsigned long long v15; // [rsp+40h] [rbp-20h]
unsigned long long v16; // [rsp+48h] [rbp-18h]
v16 = a2;
v15 = a3;
v10 = 0;
if ( a5 > a3 )
return 0;
if ( a5 )
{
v11 = a3 + a2 - a5 + 1;
while ( v16 < v11 )
{
if ( !(unsigned int)my_ci_strnncoll(a1, v16, a5, a4, a5, 0LL) )
{
if ( a7 )
{
*a6 = 0;
a6[1] = v16 - a2;
a6[2] = v10;
if ( a7 > 1 )
{
a6[3] = a6[1];
a6[4] = a5 + a6[1];
a6[5] = 0;
}
}
return 2;
}
v9 = my_ismbchar_0(a1, v16, v11);
if ( v9 )
v8 = v9;
else
v8 = 1;
v16 += v8;
v15 -= v8;
++v10;
}
return 0;
}
if ( a7 )
{
*a6 = 0;
a6[1] = 0;
a6[2] = 0;
}
return 1;
}
|
my_instr_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV dword ptr [RBP + -0x4c],0x0
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JA 0x00140efe
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x00140de1
CMP dword ptr [RBP + 0x10],0x0
JZ 0x00140dd5
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],0x0
LAB_00140dd5:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00140f05
LAB_00140de1:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
XOR ECX,ECX
SUB RCX,qword ptr [RBP + -0x30]
ADD RAX,RCX
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
LAB_00140e02:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x00140efc
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
XOR R9D,R9D
CALL 0x00140f10
CMP EAX,0x0
JNZ 0x00140e9d
CMP dword ptr [RBP + 0x10],0x0
JZ 0x00140e94
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],ECX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],ECX
CMP dword ptr [RBP + 0x10],0x1
JBE 0x00140e92
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0xc],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x4]
ADD RAX,qword ptr [RBP + -0x30]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x14],0x0
LAB_00140e92:
JMP 0x00140e94
LAB_00140e94:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00140f05
LAB_00140e9d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x40]
CALL 0x0013fea0
MOV dword ptr [RBP + -0x50],EAX
CMP EAX,0x0
JZ 0x00140ebe
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x54],EAX
JMP 0x00140ec8
LAB_00140ebe:
MOV EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x00140ec8
LAB_00140ec8:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x50],EAX
MOV ECX,dword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOVSXD RCX,dword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x00140e02
LAB_00140efc:
JMP 0x00140efe
LAB_00140efe:
MOV dword ptr [RBP + -0x4],0x0
LAB_00140f05:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4
my_instr_mb(int8 param_1,ulong param_2,ulong param_3,int8 param_4,ulong param_5,
int4 *param_6,uint param_7)
{
int iVar1;
ulong uVar2;
int local_5c;
int local_54;
ulong local_20;
local_54 = 0;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = 0;
param_6[2] = 0;
}
return 1;
}
uVar2 = ((param_2 + param_3) - param_5) + 1;
for (local_20 = param_2; local_20 < uVar2; local_20 = local_20 + (long)local_5c) {
iVar1 = my_ci_strnncoll(param_1,local_20,param_5,param_4,param_5,0);
if (iVar1 == 0) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = (int)local_20 - (int)param_2;
param_6[2] = local_54;
if (1 < param_7) {
param_6[3] = param_6[1];
param_6[4] = param_6[1] + (int)param_5;
param_6[5] = 0;
}
}
return 2;
}
local_5c = my_ismbchar(param_1,local_20,uVar2);
if (local_5c == 0) {
local_5c = 1;
}
local_54 = local_54 + 1;
}
}
return 0;
}
|
|
57,853
|
minja::Parser::parseMathUnaryPlusMinus()
|
monkey531[P]llama/common/minja.hpp
|
std::shared_ptr<Expression> parseMathUnaryPlusMinus() {
static std::regex unary_plus_minus_tok(R"(\+|-(?![}%#]\}))");
auto op_str = consumeToken(unary_plus_minus_tok);
auto expr = parseExpansion();
if (!expr) throw std::runtime_error("Expected expr of 'unary plus/minus/expansion' expression");
if (!op_str.empty()) {
auto op = op_str == "+" ? UnaryOpExpr::Op::Plus : UnaryOpExpr::Op::Minus;
return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op);
}
return expr;
}
|
O1
|
cpp
|
minja::Parser::parseMathUnaryPlusMinus():
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9e5ba(%rip), %rax # 0xdeea8
movb (%rax), %al
testb %al, %al
je 0x40a2c
leaq 0x9e589(%rip), %rdx # 0xdee88
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x3008e
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x40baa
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x40a83
cmpq $0x0, 0x38(%rsp)
je 0x40977
leaq 0x6ce1a(%rip), %rsi # 0xad755
leaq 0x30(%rsp), %rdi
callq 0x18190
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl %ecx, 0x1c(%rsp)
movq (%r14), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x40999
movq 0x9d62b(%rip), %rcx # 0xddf98
cmpb $0x0, (%rcx)
je 0x40995
incl 0x8(%rax)
jmp 0x40999
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x10(%rsp), %rcx
movq %rax, 0x10(%rsp)
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%rsp)
jmp 0x409f7
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
leaq 0x50(%rsp), %rcx
movq %rax, 0x10(%rcx)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x8(%rsp), %r8
leaq 0x1c(%rsp), %r9
callq 0x56bd4
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movaps 0x20(%rsp), %xmm0
movq %rax, 0x28(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x409f7
callq 0x2fb64
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x40a06
callq 0x2fb64
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40a21
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
leaq 0x9e475(%rip), %rdi # 0xdeea8
callq 0x18bf0
testl %eax, %eax
je 0x408f8
leaq 0x9e441(%rip), %rdi # 0xdee88
leaq 0x6b03f(%rip), %rsi # 0xaba8d
movl $0x10, %edx
callq 0x2fbd4
leaq -0x10e23(%rip), %rdi # 0x2fc3c
leaq 0x9e422(%rip), %rsi # 0xdee88
leaq 0x9dc3b(%rip), %rdx # 0xde6a8
callq 0x185d0
leaq 0x9e42f(%rip), %rdi # 0xdeea8
callq 0x18440
jmp 0x408f8
movl $0x10, %edi
callq 0x18350
movq %rax, %r14
leaq 0x6b0e0(%rip), %rsi # 0xabb77
movq %rax, %rdi
callq 0x18260
movq 0x9d54a(%rip), %rsi # 0xddff0
movq 0x9d4c3(%rip), %rdx # 0xddf70
movq %r14, %rdi
callq 0x18b30
movq %rax, %rbx
leaq 0x9e3e9(%rip), %rdi # 0xdeea8
callq 0x18430
jmp 0x40b19
movq %rax, %rbx
jmp 0x40aea
movq %rax, %rbx
movq %r14, %rdi
callq 0x184f0
jmp 0x40aea
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x40aea
callq 0x2fb64
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x40afe
callq 0x2fb64
jmp 0x40afe
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40b19
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rdi
callq 0x18ba0
nop
|
_ZN5minja6Parser23parseMathUnaryPlusMinusEv:
push r14
push rbx
sub rsp, 68h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
mov al, [rax]
test al, al
jz loc_40A2C
loc_408F8:
lea rdx, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
lea rdi, [rsp+78h+var_48]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+78h+var_70]; this
mov rsi, r14
call _ZN5minja6Parser14parseExpansionEv; minja::Parser::parseExpansion(void)
mov rax, [rsp+78h+var_70]
test rax, rax
jz loc_40A83
cmp [rsp+78h+var_40], 0
jz short loc_40977
lea rsi, aSRN_0+0Bh; "+"
lea rdi, [rsp+78h+var_48]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
xor ecx, ecx
test eax, eax
setnz cl
mov [rsp+78h+var_5C], ecx
mov rax, [r14]
mov [rsp+78h+var_28], rax
mov rax, [r14+8]
mov [rsp+78h+var_20], rax
test rax, rax
jz short loc_40999
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_40995
inc dword ptr [rax+8]
jmp short loc_40999
loc_40977:
mov [rbx], rax
xor eax, eax
mov [rbx+8], rax
mov rcx, [rsp+78h+var_68]
mov [rsp+78h+var_68], rax
mov [rbx+8], rcx
mov [rsp+78h+var_70], rax
jmp short loc_409F7
loc_40995:
lock inc dword ptr [rax+8]
loc_40999:
mov rax, [r14+20h]
sub rax, [r14+10h]
lea rcx, [rsp+78h+var_28]
mov [rcx+10h], rax
lea rdi, [rsp+78h+var_58+8]
mov qword ptr [rdi-8], 0
lea rsi, [rsp+78h+var_58]
lea rdx, [rsp+78h+var_71]
lea r8, [rsp+78h+var_70]
lea r9, [rsp+78h+var_5C]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEERNS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &)
xor eax, eax
mov [rbx+8], rax
movaps xmm0, [rsp+78h+var_58]
mov qword ptr [rsp+78h+var_58+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+78h+var_58], rax
mov rdi, [rsp+78h+var_20]
test rdi, rdi
jz short loc_409F7
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_409F7:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_40A06
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_40A06:
lea rax, [rsp+78h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_40A21
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_40A21:
mov rax, rbx
add rsp, 68h
pop rbx
pop r14
retn
loc_40A2C:
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_408F8
lea rdi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
lea rsi, asc_ABA8D; "\\+|-(?![}%#]\\})"
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, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_408F8
loc_40A83:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExprOf; "Expected expr of 'unary plus/minus/expa"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_40B19
mov rbx, rax
jmp short loc_40AEA
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_40AEA
mov rbx, rax
mov rdi, [rsp+78h+var_20]
test rdi, rdi
jz short loc_40AEA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_40AEA:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_40AFE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_40AFE
mov rbx, rax
loc_40AFE:
lea rax, [rsp+78h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_40B19
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_40B19:
mov rdi, rbx
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseMathUnaryPlusMinus(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
volatile signed __int32 *v3; // rcx
__int128 v4; // xmm0
std::runtime_error *exception; // r14
char v7; // [rsp+7h] [rbp-71h] BYREF
long long v8; // [rsp+8h] [rbp-70h] BYREF
volatile signed __int32 *v9; // [rsp+10h] [rbp-68h]
BOOL v10; // [rsp+1Ch] [rbp-5Ch] BYREF
__int128 v11; // [rsp+20h] [rbp-58h] BYREF
void *v12[2]; // [rsp+30h] [rbp-48h] BYREF
long long v13; // [rsp+40h] [rbp-38h] BYREF
long long v14; // [rsp+50h] [rbp-28h] BYREF
volatile signed __int32 *v15; // [rsp+58h] [rbp-20h]
long long v16; // [rsp+60h] [rbp-18h]
if ( !(_BYTE)`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
"\\+|-(?![}%#]\\})",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)v12,
(long long)a2,
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
1u);
minja::Parser::parseExpansion((minja::Parser *)&v8);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expr of 'unary plus/minus/expansion' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v12[1] )
{
v10 = std::string::compare(v12, "+") != 0;
v14 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v15 = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v16 = a2[4] - a2[2];
*(_QWORD *)&v11 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(
(char *)&v11 + 8,
&v11,
&v7,
&v14,
&v8,
&v10);
*((_QWORD *)this + 1) = 0LL;
v4 = v11;
*((_QWORD *)&v11 + 1) = 0LL;
*(_OWORD *)this = v4;
*(_QWORD *)&v11 = 0LL;
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
}
else
{
*(_QWORD *)this = v8;
*((_QWORD *)this + 1) = 0LL;
v3 = v9;
v9 = 0LL;
*((_QWORD *)this + 1) = v3;
v8 = 0LL;
}
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
if ( v12[0] != &v13 )
operator delete(v12[0], v13 + 1);
return this;
}
|
parseMathUnaryPlusMinus:
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x1deea8]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00140a2c
LAB_001408f8:
LEA RDX,[0x1dee88]
LEA RDI,[RSP + 0x30]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0013008e
LAB_00140911:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00140baa
MOV RAX,qword ptr [RSP + 0x8]
TEST RAX,RAX
JZ 0x00140a83
CMP qword ptr [RSP + 0x38],0x0
JZ 0x00140977
LEA RSI,[0x1ad755]
LEA RDI,[RSP + 0x30]
CALL 0x00118190
XOR ECX,ECX
TEST EAX,EAX
SETNZ CL
MOV dword ptr [RSP + 0x1c],ECX
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x58],RAX
TEST RAX,RAX
JZ 0x00140999
MOV RCX,qword ptr [0x001ddf98]
CMP byte ptr [RCX],0x0
JZ 0x00140995
INC dword ptr [RAX + 0x8]
JMP 0x00140999
LAB_00140977:
MOV qword ptr [RBX],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x8],RAX
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001409f7
LAB_00140995:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00140999:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
LEA RCX,[RSP + 0x50]
MOV qword ptr [RCX + 0x10],RAX
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI + -0x8],0x0
LAB_001409b7:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x7]
LEA R8,[RSP + 0x8]
LEA R9,[RSP + 0x1c]
CALL 0x00156bd4
XOR EAX,EAX
MOV qword ptr [RBX + 0x8],RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x28],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x58]
TEST RDI,RDI
JZ 0x001409f7
CALL 0x0012fb64
LAB_001409f7:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x00140a06
CALL 0x0012fb64
LAB_00140a06:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00140a21
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001186a0
LAB_00140a21:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R14
RET
LAB_00140a2c:
LEA RDI,[0x1deea8]
CALL 0x00118bf0
TEST EAX,EAX
JZ 0x001408f8
LAB_00140a40:
LEA RDI,[0x1dee88]
LEA RSI,[0x1aba8d]
MOV EDX,0x10
CALL 0x0012fbd4
LAB_00140a58:
LEA RDI,[0x12fc3c]
LEA RSI,[0x1dee88]
LEA RDX,[0x1de6a8]
CALL 0x001185d0
LEA RDI,[0x1deea8]
CALL 0x00118440
JMP 0x001408f8
LAB_00140a83:
MOV EDI,0x10
CALL 0x00118350
MOV R14,RAX
LAB_00140a90:
LEA RSI,[0x1abb77]
MOV RDI,RAX
CALL 0x00118260
LAB_00140a9f:
MOV RSI,qword ptr [0x001ddff0]
MOV RDX,qword ptr [0x001ddf70]
MOV RDI,R14
CALL 0x00118b30
|
/* minja::Parser::parseMathUnaryPlusMinus() */
void minja::Parser::parseMathUnaryPlusMinus(void)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var1;
long lVar2;
int iVar3;
runtime_error *this;
int8 *in_RSI;
long *in_RDI;
int1 local_71;
long local_70;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
uint local_5c;
long local_58;
long lStack_50;
long *local_48;
long local_40;
long local_38 [2];
int8 local_28;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20;
long local_18;
if (parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_ == '\0') {
iVar3 = __cxa_guard_acquire(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
if (iVar3 != 0) {
/* try { // try from 00140a40 to 00140a57 has its CatchHandler @ 00140ab5 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10
);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
}
}
consumeToken(&local_48);
/* try { // try from 00140911 to 0014091d has its CatchHandler @ 00140afb */
parseExpansion();
p_Var1 = local_68;
if (local_70 != 0) {
if (local_40 == 0) {
*in_RDI = local_70;
in_RDI[1] = 0;
local_68 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
in_RDI[1] = (long)p_Var1;
local_70 = 0;
}
else {
iVar3 = std::__cxx11::string::compare((char *)&local_48);
local_5c = (uint)(iVar3 != 0);
local_28 = *in_RSI;
local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001ddf98 == '\0') {
LOCK();
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
}
}
local_18 = in_RSI[4] - in_RSI[2];
local_58 = 0;
/* try { // try from 001409b7 to 001409cf has its CatchHandler @ 00140ad8 */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_50,&local_58,&local_71,
&local_28,&local_70,&local_5c);
lVar2 = lStack_50;
in_RDI[1] = 0;
lStack_50 = 0;
*in_RDI = local_58;
in_RDI[1] = lVar2;
local_58 = 0;
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20);
}
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00140a90 to 00140a9e has its CatchHandler @ 00140acb */
std::runtime_error::runtime_error
(this,"Expected expr of \'unary plus/minus/expansion\' expression");
/* try { // try from 00140a9f to 00140ab4 has its CatchHandler @ 00140ac6 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ddff0,PTR__runtime_error_001ddf70);
}
|
|
57,854
|
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 0x2a990
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 0x0012a990
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;
}
|
|
57,855
|
inline_mysql_file_close
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_close(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_close(file, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
return result;
}
#endif
result= my_close(file, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_close:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq 0x1cbac8(%rip), %rax # 0x24a5f8
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x78(%rbp), %rdi
movl $0x4, %edx
callq *%rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%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 0x7ebbb
leaq 0x1cba85(%rip), %rax # 0x24a5f8
movq (%rax), %rax
movq 0x220(%rax), %rax
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x8bad0
movl %eax, -0x24(%rbp)
leaq 0x1cba58(%rip), %rax # 0x24a5f8
movq (%rax), %rax
movq 0x228(%rax), %rax
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %esi
callq *%rax
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x7ebd0
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x8bad0
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
|
inline_mysql_file_close:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_78]
mov edx, 4
call rax
mov [rbp+var_30], rax
cmp [rbp+var_30], 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_7EBBB
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+220h]
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_close
mov [rbp+var_24], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+228h]
mov rdi, [rbp+var_30]
mov esi, [rbp+var_24]
call rax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_7EBD0
loc_7EBBB:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_close
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
loc_7EBD0:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_close(long long a1, unsigned int a2, unsigned int a3, long long a4)
{
_BYTE v5[72]; // [rsp+8h] [rbp-78h] BYREF
long long v6; // [rsp+50h] [rbp-30h]
unsigned int v7; // [rsp+5Ch] [rbp-24h]
long long v8; // [rsp+60h] [rbp-20h]
unsigned int v9; // [rsp+68h] [rbp-18h]
unsigned int v10; // [rsp+6Ch] [rbp-14h]
long long v11; // [rsp+70h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v6 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v5, a3, 4LL);
if ( v6 )
{
(*((void ( **)(long long, long long, _QWORD))PSI_server + 68))(v6, v11, v10);
v7 = my_close(v9, v8);
(*((void ( **)(long long, _QWORD))PSI_server + 69))(v6, v7);
}
else
{
return (unsigned int)my_close(v9, v8);
}
return v7;
}
|
inline_mysql_file_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[0x34a5f8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x78]
MOV EDX,0x4
CALL RAX
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],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 0x0017ebbb
LEA RAX,[0x34a5f8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x220]
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0018bad0
MOV dword ptr [RBP + -0x24],EAX
LEA RAX,[0x34a5f8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x228]
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x24]
CALL RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0017ebd0
LAB_0017ebbb:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0018bad0
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
LAB_0017ebd0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_close(int8 param_1,int4 param_2,int4 param_3,int8 param_4)
{
int1 local_80 [72];
long local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int4 local_c;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_38 = (**(code **)(PSI_server + 0x158))(local_80,param_3,4);
if (local_38 == 0) {
local_c = my_close(local_20,local_28);
}
else {
(**(code **)(PSI_server + 0x220))(local_38,local_18,local_1c);
local_2c = my_close(local_20,local_28);
(**(code **)(PSI_server + 0x228))(local_38,local_2c);
local_c = local_2c;
}
return local_c;
}
|
|
57,856
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object()
|
monkey531[P]llama/common/json.hpp
|
bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object():
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
addq $0x8, %rdi
callq 0xb56f0
cmpq $0x0, (%rax)
je 0xb43a8
movq 0x18(%rsp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, 0x8(%rsp)
addq $0x8, %rdi
callq 0xb5100
movq 0x18(%rsp), %rdi
subl $0x1, %eax
movl %eax, 0x14(%rsp)
addq $0x8, %rdi
callq 0xb56f0
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movq (%rax), %rcx
movl $0x1, %edx
callq 0xb50a0
testb $0x1, %al
jne 0xb4390
movq 0x18(%rsp), %rsi
addq $0xa8, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xb72a0
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xafb20
leaq 0xa0(%rsp), %rdi
callq 0xa6940
jmp 0xb43a6
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb5e40
jmp 0xb43a8
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb5b40
testb $0x1, %al
jne 0xb43bc
jmp 0xb43dd
leaq 0x15f0cd(%rip), %rdi # 0x213490
movl $0x1bbd, %esi # imm = 0x1BBD
leaq 0x158d95(%rip), %rdx # 0x20d164
leaq 0x1600c0(%rip), %rcx # 0x214496
movb $0x0, %al
callq 0x5aee0
movq 0x18(%rsp), %rdi
addq $0x20, %rdi
callq 0xb4f80
testb $0x1, %al
jne 0xb43f1
jmp 0xb4412
leaq 0x15f098(%rip), %rdi # 0x213490
movl $0x1bbe, %esi # imm = 0x1BBE
leaq 0x158d60(%rip), %rdx # 0x20d164
leaq 0x160005(%rip), %rcx # 0x214410
movb $0x0, %al
callq 0x5aee0
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb7490
movq 0x18(%rsp), %rdi
addq $0x20, %rdi
callq 0xb5080
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb5b40
testb $0x1, %al
jne 0xb4539
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
cmpq $0x0, (%rax)
je 0xb4539
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rdi
callq 0xb74b0
testb $0x1, %al
jne 0xb447b
jmp 0xb4539
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rsi
leaq 0x80(%rsp), %rdi
callq 0xb74f0
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rsi
leaq 0x60(%rsp), %rdi
callq 0xb7560
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xb7530
testb $0x1, %al
jne 0xb44cc
jmp 0xb4537
leaq 0x80(%rsp), %rdi
callq 0xb75a0
movq %rax, %rdi
callq 0xafba0
testb $0x1, %al
jne 0xb44e7
jmp 0xb4523
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xb56f0
movq (%rax), %rax
movq %rax, (%rsp)
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xb7d60
movq (%rsp), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xb7810
jmp 0xb4537
jmp 0xb4525
leaq 0x80(%rsp), %rdi
callq 0xb7da0
jmp 0xb4499
jmp 0xb4539
movb $0x1, %al
andb $0x1, %al
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
sub rsp, 0B8h
mov qword ptr [rsp+0B8h+var_8], rdi; int
mov rdi, qword ptr [rsp+0B8h+var_8]
mov qword ptr [rsp+0B8h+var_A0], rdi; int
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jz loc_B43A8
mov rdi, qword ptr [rsp+0B8h+var_A0]
mov rax, rdi
add rax, 80h
mov [rsp+0B8h+var_B0], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, qword ptr [rsp+0B8h+var_A0]
sub eax, 1
mov [rsp+0B8h+var_A4], eax
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rsp+0B8h+var_B0]
mov esi, [rsp+0B8h+var_A4]
mov rcx, [rax]
mov edx, 1
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
test al, 1
jnz short loc_B4390
mov rsi, qword ptr [rsp+0B8h+var_A0]
add rsi, 0A8h
lea rdi, [rsp+0B8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
lea rsi, [rsp+0B8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rsp+0B8h+var_18]
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_B43A6
loc_B4390:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_parents(void)
loc_B43A6:
jmp short $+2
loc_B43A8:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_B43BC
jmp short loc_B43DD
loc_B43BC:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1BBDh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov al, 0
call _ggml_abort
loc_B43DD:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_B43F1
jmp short loc_B4412
loc_B43F1:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1BBEh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_B4412:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::pop_back(void)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz loc_B4539
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jz loc_B4539
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE13is_structuredEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_structured(void)
test al, 1
jnz short loc_B447B
jmp loc_B4539
loc_B447B:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rsi, [rax]
lea rdi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::begin(void)
loc_B4499:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rsi, [rax]
lea rdi, [rsp+0B8h+var_58]
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)
lea rdi, [rsp+0B8h+var_38]; int
lea rsi, [rsp+0B8h+var_58]; void *
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, 1
jnz short loc_B44CC
jmp short loc_B4537
loc_B44CC:
lea rdi, [rsp+0B8h+var_38]; int
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; 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>>::operator->(void)
mov rdi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12is_discardedEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_discarded(void)
test al, 1
jnz short loc_B44E7
jmp short loc_B4523
loc_B44E7:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov [rsp+0B8h+var_B8], rax; void *
lea rdi, [rsp+0B8h+var_78]
lea rsi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERKSG_; 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>>::iter_impl(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
mov rsi, [rsp+0B8h+var_B8]
lea rdi, [rsp+0B8h+var_98]; int
lea rdx, [rsp+0B8h+var_78]
call _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_
jmp short loc_B4537
loc_B4523:
jmp short $+2
loc_B4525:
lea rdi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
jmp loc_B4499
loc_B4537:
jmp short $+2
loc_B4539:
mov al, 1
and al, 1
add rsp, 0B8h
retn
|
end_object:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV RDI,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x18],RDI
ADD RDI,0x8
CALL 0x001b56f0
CMP qword ptr [RAX],0x0
JZ 0x001b43a8
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,RDI
ADD RAX,0x80
MOV qword ptr [RSP + 0x8],RAX
ADD RDI,0x8
CALL 0x001b5100
MOV RDI,qword ptr [RSP + 0x18]
SUB EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RAX]
MOV EDX,0x1
CALL 0x001b50a0
TEST AL,0x1
JNZ 0x001b4390
MOV RSI,qword ptr [RSP + 0x18]
ADD RSI,0xa8
LEA RDI,[RSP + 0xa0]
CALL 0x001b72a0
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0xa0]
CALL 0x001afb20
LEA RDI,[RSP + 0xa0]
CALL 0x001a6940
JMP 0x001b43a6
LAB_001b4390:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b5e40
LAB_001b43a6:
JMP 0x001b43a8
LAB_001b43a8:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b5b40
TEST AL,0x1
JNZ 0x001b43bc
JMP 0x001b43dd
LAB_001b43bc:
LEA RDI,[0x313490]
MOV ESI,0x1bbd
LEA RDX,[0x30d164]
LEA RCX,[0x314496]
MOV AL,0x0
CALL 0x0015aee0
LAB_001b43dd:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x20
CALL 0x001b4f80
TEST AL,0x1
JNZ 0x001b43f1
JMP 0x001b4412
LAB_001b43f1:
LEA RDI,[0x313490]
MOV ESI,0x1bbe
LEA RDX,[0x30d164]
LEA RCX,[0x314410]
MOV AL,0x0
CALL 0x0015aee0
LAB_001b4412:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b7490
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x20
CALL 0x001b5080
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b5b40
TEST AL,0x1
JNZ 0x001b4539
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
CMP qword ptr [RAX],0x0
JZ 0x001b4539
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RDI,qword ptr [RAX]
CALL 0x001b74b0
TEST AL,0x1
JNZ 0x001b447b
JMP 0x001b4539
LAB_001b447b:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x80]
CALL 0x001b74f0
LAB_001b4499:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x60]
CALL 0x001b7560
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x60]
CALL 0x001b7530
TEST AL,0x1
JNZ 0x001b44cc
JMP 0x001b4537
LAB_001b44cc:
LEA RDI,[RSP + 0x80]
CALL 0x001b75a0
MOV RDI,RAX
CALL 0x001afba0
TEST AL,0x1
JNZ 0x001b44e7
JMP 0x001b4523
LAB_001b44e7:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b56f0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x80]
CALL 0x001b7d60
MOV RSI,qword ptr [RSP]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x40]
CALL 0x001b7810
JMP 0x001b4537
LAB_001b4523:
JMP 0x001b4525
LAB_001b4525:
LEA RDI,[RSP + 0x80]
CALL 0x001b7da0
JMP 0x001b4499
LAB_001b4537:
JMP 0x001b4539
LAB_001b4539:
MOV AL,0x1
AND AL,0x1
ADD RSP,0xb8
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int8 uVar1;
int iVar2;
long *plVar3;
int8 *puVar4;
ulong uVar5;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this_00;
int1 local_98 [32];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
local_78 [32];
int1 local_58 [32];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
local_38 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_18 [16];
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
local_8 = this;
plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar3 != 0) {
iVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar5 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),iVar2 + -1,1,*puVar4);
if ((uVar5 & 1) == 0) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_18,this + 0xa8);
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar4,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>
::~basic_json(local_18);
}
else {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::set_parents();
}
}
uVar5 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar5 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bbd,
"GGML_ASSERT(%s) failed","!ref_stack.empty()");
}
uVar5 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar5 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bbe,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
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>*>>
::pop_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
uVar5 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (((uVar5 & 1) == 0) &&
(plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8)), *plVar3 != 0)) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_structured((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar4);
if ((uVar5 & 1) != 0) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::begin();
while( true ) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
uVar5 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(local_38,local_58);
if ((uVar5 & 1) == 0) break;
this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator->(local_38);
uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_discarded(this_00);
if ((uVar5 & 1) != 0) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar1 = *puVar4;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::iter_impl(local_78,(iter_impl *)local_38);
_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_
(local_98,uVar1,local_78);
return 1;
}
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator++(local_38);
}
}
}
return 1;
}
|
||
57,857
|
CheckFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
|
ng-log[P]ng-log/src/logging_unittest.cc
|
static void CheckFile(const string& name, const string& expected_string,
const bool checkInFileOrNot = true) {
vector<string> files;
GetFiles(name + "*", &files);
CHECK_EQ(files.size(), 1UL);
std::unique_ptr<std::FILE> file{fopen(files[0].c_str(), "r")};
CHECK(file != nullptr) << ": could not open " << files[0];
char buf[1000];
while (fgets(buf, sizeof(buf), file.get()) != nullptr) {
char* first = strstr(buf, expected_string.c_str());
// if first == nullptr, not found.
// Terser than if (checkInFileOrNot && first != nullptr || !check...
if (checkInFileOrNot != (first == nullptr)) {
return;
}
}
LOG(FATAL) << "Did " << (checkInFileOrNot ? "not " : "") << "find "
<< expected_string << " in " << files[0];
}
|
O3
|
cpp
|
CheckFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x480, %rsp # imm = 0x480
movl %ecx, %ebp
movq %rdx, %rbx
movq %rdi, %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0xa0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq (%rsi,%rdi), %rdx
leaq 0x90(%rsp), %rdi
movq %rax, %rsi
callq 0x16292
leaq 0x1cbc7(%rip), %rsi # 0x31c4d
leaq 0x90(%rsp), %rdi
callq 0x8c50
leaq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x14ef8
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x150b7
callq 0x8790
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x5, %rdx
movq %rdx, 0x90(%rsp)
movq $0x1, 0x8(%rsp)
cmpq $0x20, %rcx
jne 0x15156
movq (%rax), %rdi
leaq 0x1c834(%rip), %rsi # 0x31920
callq 0x8770
testq %rax, %rax
je 0x1518c
movq %rax, %r15
leaq 0x90(%rsp), %r14
movq %r14, %rdi
movl $0x3e8, %esi # imm = 0x3E8
movq %r15, %rdx
callq 0x8aa0
testq %rax, %rax
je 0x15201
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x8110
testq %rax, %rax
setne %al
xorb %bpl, %al
jne 0x15105
movq %r15, %rdi
callq 0x8620
leaq 0x10(%rsp), %rdi
callq 0x1602e
addq $0x480, %rsp # imm = 0x480
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1dbf8(%rip), %rcx # 0x32d55
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x16eda
movq 0x30(%rsp), %rax
testq %rax, %rax
jne 0x152b7
movq 0x10(%rsp), %rax
jmp 0x150e2
leaq 0x1bf64(%rip), %rsi # 0x310f7
leaq 0x90(%rsp), %rdi
movl $0x31d, %edx # imm = 0x31D
callq 0x1d6f2
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x19e6a
movq %rax, %rbx
leaq 0x1dbaa(%rip), %rsi # 0x32d69
movl $0x1e, %edx
movq %rax, %rdi
callq 0x8720
leaq 0x1dbb5(%rip), %rsi # 0x32d88
movl $0x11, %edx
movq %rbx, %rdi
callq 0x8720
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x8720
leaq 0x90(%rsp), %rdi
callq 0x1d736
leaq 0x1beef(%rip), %rsi # 0x310f7
leaq 0x30(%rsp), %rdi
movl $0x327, %edx # imm = 0x327
callq 0x1d6f2
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x19e6a
movq %rax, %r12
leaq 0x1db6c(%rip), %rsi # 0x32d9a
movl $0x4, %edx
movq %rax, %rdi
callq 0x8720
leaq 0x1db5d(%rip), %rax # 0x32d9f
leaq 0x1ed50(%rip), %rsi # 0x33f99
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %edx
shll $0x2, %edx
movq %r12, %rdi
callq 0x8720
leaq 0x1db3e(%rip), %rsi # 0x32da4
movl $0x5, %edx
movq %r12, %rdi
callq 0x8720
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r12, %rdi
callq 0x8720
movq %rax, %rbx
leaq 0x1db1e(%rip), %rsi # 0x32daa
movl $0x4, %edx
movq %rax, %rdi
callq 0x8720
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x8720
leaq 0x30(%rsp), %rdi
callq 0x1d736
movq $0x0, 0x30(%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x1be28(%rip), %rsi # 0x310f7
leaq 0x90(%rsp), %rdi
movl $0x31a, %edx # imm = 0x31A
callq 0x1d730
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x19e6a
leaq 0x90(%rsp), %rdi
callq 0x1d736
jmp 0x1534f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x15c90
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x15362
leaq 0x30(%rsp), %rdi
callq 0x18cba
jmp 0x15362
jmp 0x1535f
jmp 0x15327
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x15362
callq 0x8790
jmp 0x15362
jmp 0x1535f
jmp 0x1534f
movq %rax, %rbx
movq %r15, %rdi
callq 0x8620
jmp 0x15362
movq %r14, %rdi
callq 0x1d736
movq %rax, %rdi
callq 0x15c57
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1602e
movq %rbx, %rdi
callq 0x8bb0
|
_ZL9CheckFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_b:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 480h
mov ebp, ecx
mov rbx, rdx
mov rax, rdi
xorps xmm0, xmm0
movaps [rsp+4A8h+var_498], xmm0
mov [rsp+4A8h+var_488], 0
lea r14, [rsp+4A8h+var_408]
mov [r14-10h], r14
lea rdx, [rsi+rdi]
lea rdi, [rsp+4A8h+var_418]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aBa+4; "*"
lea rdi, [rsp+4A8h+var_418]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+4A8h+var_418]
lea rsi, [rsp+4A8h+var_498]
call _ZL8GetFilesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSt6vectorIS4_SaIS4_EE; GetFiles(std::string const&,std::vector<std::string> *)
mov rdi, [rsp+4A8h+var_418]
cmp rdi, r14
jz short loc_150B7
call _free
loc_150B7:
mov rax, qword ptr [rsp+4A8h+var_498]
mov rcx, qword ptr [rsp+4A8h+var_498+8]
sub rcx, rax
mov rdx, rcx
sar rdx, 5
mov [rsp+4A8h+var_418], rdx
mov [rsp+4A8h+var_4A0], 1
cmp rcx, 20h ; ' '
jnz short loc_15156
loc_150E2:
mov rdi, [rax]
lea rsi, aBar_1+2; "r"
call _fopen
test rax, rax
jz loc_1518C
mov r15, rax
lea r14, [rsp+4A8h+var_418]
loc_15105:
mov rdi, r14
mov esi, 3E8h
mov rdx, r15
call _fgets
test rax, rax
jz loc_15201
mov rsi, [rbx]
mov rdi, r14
call _strstr
test rax, rax
setnz al
xor al, bpl
jnz short loc_15105
mov rdi, r15
call _fclose
lea rdi, [rsp+4A8h+var_498]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 480h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_15156:
lea rcx, aFilesSize1ul; "files.size() == 1UL"
lea rdi, [rsp+4A8h+var_478]
lea rsi, [rsp+4A8h+var_418]
lea rdx, [rsp+4A8h+var_4A0]
call _ZN5nglog8internal17MakeCheckOpStringImmEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS8_EERKT_RKT0_PKc; nglog::internal::MakeCheckOpString<ulong,ulong>(ulong const&,ulong const&,char const*)
mov rax, [rsp+4A8h+var_478]
test rax, rax
jnz loc_152B7
mov rax, qword ptr [rsp+4A8h+var_498]
jmp loc_150E2
loc_1518C:
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+4A8h+var_418]; this
mov edx, 31Dh; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
lea r14, [rsp+4A8h+var_418]
mov rdi, r14; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov rbx, rax
lea rsi, aCheckFailedFil; "Check failed: file != nullptr "
mov edx, 1Eh
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aCouldNotOpen; ": could not open "
mov edx, 11h
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, qword ptr [rsp+4A8h+var_498]
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+4A8h+var_418]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_15201:
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+4A8h+var_478]; this
mov edx, 327h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
lea r14, [rsp+4A8h+var_478]
mov rdi, r14; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov r12, rax
lea rsi, aDid; "Did "
mov edx, 4
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, aNot; "not "
lea rsi, asc_33F97+2; ""
test bpl, bpl
cmovnz rsi, rax
movzx edx, bpl
shl edx, 2
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)
lea rsi, aFind; "find "
mov edx, 5
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 rsi, [rbx]
mov rdx, [rbx+8]
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 rbx, rax
lea rsi, aIn; " in "
mov edx, 4
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, qword ptr [rsp+4A8h+var_498]
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+4A8h+var_478]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_152B7:
mov [rsp+4A8h+var_478], 0
lea rcx, [rsp+4A8h+var_4A0]; nglog::internal::CheckOpString *
mov [rcx], rax
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+4A8h+var_418]; this
mov edx, 31Ah; int
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea r14, [rsp+4A8h+var_418]
mov rdi, r14; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+4A8h+var_418]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_1534F
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
mov rsi, [rsp+arg_28]
test rsi, rsi
jz short loc_15362
lea rdi, [rsp+arg_28]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
jmp short loc_15362
jmp short loc_1535F
jmp short $+2
loc_15327:
mov rbx, rax
mov rdi, [rsp+arg_88]
cmp rdi, r14
jz short loc_15362
call _free
jmp short loc_15362
jmp short loc_1535F
jmp short loc_1534F
mov rbx, rax
mov rdi, r15
call _fclose
jmp short loc_15362
loc_1534F:
mov rdi, r14; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rax
call __clang_call_terminate
loc_1535F:
mov rbx, rax
loc_15362:
lea rdi, [rsp+arg_8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, rbx
call __Unwind_Resume
|
void CheckFile(long long a1, long long a2, _QWORD *a3, unsigned __int8 a4)
{
_QWORD *v6; // rax
long long v7; // rax
long long v8; // r15
long long v9; // rax
long long v10; // rbx
long long v11; // r12
char *v12; // rsi
long long v13; // rbx
long long v14; // [rsp+8h] [rbp-4A0h] BYREF
__int128 v15; // [rsp+10h] [rbp-498h] BYREF
long long v16; // [rsp+20h] [rbp-488h]
_QWORD v17[12]; // [rsp+30h] [rbp-478h] BYREF
void *v18[2]; // [rsp+90h] [rbp-418h] BYREF
_BYTE v19[1032]; // [rsp+A0h] [rbp-408h] BYREF
v15 = 0LL;
v16 = 0LL;
v18[0] = v19;
std::string::_M_construct<char *>(v18, a1, a2 + a1);
std::string::append(v18, "*");
GetFiles(v18, (long long)&v15);
if ( v18[0] != v19 )
free(v18[0]);
v6 = (_QWORD *)v15;
v18[0] = (void *)((long long)(*((_QWORD *)&v15 + 1) - v15) >> 5);
v14 = 1LL;
if ( *((_QWORD *)&v15 + 1) - (_QWORD)v15 != 32LL )
{
nglog::internal::MakeCheckOpString<unsigned long,unsigned long>(v17, v18, &v14, "files.size() == 1UL");
v9 = v17[0];
if ( v17[0] )
{
v17[0] = 0LL;
v14 = v9;
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v18,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
794,
(const nglog::internal::CheckOpString *)&v14);
nglog::LogMessage::stream((nglog::LogMessage *)v18);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v18);
}
v6 = (_QWORD *)v15;
}
v7 = fopen(*v6, "r");
if ( !v7 )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v18,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
797);
v10 = nglog::LogMessage::stream((nglog::LogMessage *)v18);
std::__ostream_insert<char,std::char_traits<char>>(v10, "Check failed: file != nullptr ", 30LL);
std::__ostream_insert<char,std::char_traits<char>>(v10, ": could not open ", 17LL);
std::__ostream_insert<char,std::char_traits<char>>(v10, *(_QWORD *)v15, *(_QWORD *)(v15 + 8));
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v18);
}
v8 = v7;
do
{
if ( !fgets(v18, 1000LL, v8) )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v17,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
807);
v11 = nglog::LogMessage::stream((nglog::LogMessage *)v17);
std::__ostream_insert<char,std::char_traits<char>>(v11, "Did ", 4LL);
v12 = "";
if ( a4 )
v12 = "not ";
std::__ostream_insert<char,std::char_traits<char>>(v11, v12, 4 * (unsigned int)a4);
std::__ostream_insert<char,std::char_traits<char>>(v11, "find ", 5LL);
v13 = std::__ostream_insert<char,std::char_traits<char>>(v11, *a3, a3[1]);
std::__ostream_insert<char,std::char_traits<char>>(v13, " in ", 4LL);
std::__ostream_insert<char,std::char_traits<char>>(v13, *(_QWORD *)v15, *(_QWORD *)(v15 + 8));
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v17);
}
}
while ( a4 != (strstr(v18, *a3) != 0) );
fclose(v8);
std::vector<std::string>::~vector(&v15);
}
|
CheckFile:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x480
MOV EBP,ECX
MOV RBX,RDX
MOV RAX,RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x0
LEA R14,[RSP + 0xa0]
MOV qword ptr [R14 + -0x10],R14
LEA RDX,[RSI + RDI*0x1]
LAB_0011506f:
LEA RDI,[RSP + 0x90]
MOV RSI,RAX
CALL 0x00116292
LAB_0011507f:
LEA RSI,[0x131c4d]
LEA RDI,[RSP + 0x90]
CALL 0x00108c50
LAB_00115093:
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x10]
CALL 0x00114ef8
MOV RDI,qword ptr [RSP + 0x90]
CMP RDI,R14
JZ 0x001150b7
CALL 0x00108790
LAB_001150b7:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
SUB RCX,RAX
MOV RDX,RCX
SAR RDX,0x5
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x8],0x1
CMP RCX,0x20
JNZ 0x00115156
LAB_001150e2:
MOV RDI,qword ptr [RAX]
LEA RSI,[0x131920]
CALL 0x00108770
TEST RAX,RAX
JZ 0x0011518c
MOV R15,RAX
LEA R14,[RSP + 0x90]
LAB_00115105:
MOV RDI,R14
MOV ESI,0x3e8
MOV RDX,R15
CALL 0x00108aa0
TEST RAX,RAX
JZ 0x00115201
MOV RSI,qword ptr [RBX]
MOV RDI,R14
CALL 0x00108110
TEST RAX,RAX
SETNZ AL
XOR AL,BPL
JNZ 0x00115105
MOV RDI,R15
CALL 0x00108620
LEA RDI,[RSP + 0x10]
CALL 0x0011602e
ADD RSP,0x480
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00115156:
LEA RCX,[0x132d55]
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x90]
LEA RDX,[RSP + 0x8]
CALL 0x00116eda
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JNZ 0x001152b7
MOV RAX,qword ptr [RSP + 0x10]
JMP 0x001150e2
LAB_0011518c:
LEA RSI,[0x1310f7]
LEA RDI,[RSP + 0x90]
MOV EDX,0x31d
CALL 0x0011d6f2
LAB_001151a5:
LEA R14,[RSP + 0x90]
MOV RDI,R14
CALL 0x00119e6a
MOV RBX,RAX
LEA RSI,[0x132d69]
MOV EDX,0x1e
MOV RDI,RAX
CALL 0x00108720
LEA RSI,[0x132d88]
MOV EDX,0x11
MOV RDI,RBX
CALL 0x00108720
MOV RAX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x00108720
LAB_001151f4:
LEA RDI,[RSP + 0x90]
CALL 0x0011d736
LAB_00115201:
LEA RSI,[0x1310f7]
LEA RDI,[RSP + 0x30]
MOV EDX,0x327
CALL 0x0011d6f2
LAB_00115217:
LEA R14,[RSP + 0x30]
MOV RDI,R14
CALL 0x00119e6a
MOV R12,RAX
LEA RSI,[0x132d9a]
MOV EDX,0x4
MOV RDI,RAX
CALL 0x00108720
LEA RAX,[0x132d9f]
LEA RSI,[0x133f99]
TEST BPL,BPL
CMOVNZ RSI,RAX
MOVZX EDX,BPL
SHL EDX,0x2
MOV RDI,R12
CALL 0x00108720
LEA RSI,[0x132da4]
MOV EDX,0x5
MOV RDI,R12
CALL 0x00108720
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,R12
CALL 0x00108720
MOV RBX,RAX
LEA RSI,[0x132daa]
MOV EDX,0x4
MOV RDI,RAX
CALL 0x00108720
MOV RAX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x00108720
LAB_001152ad:
LEA RDI,[RSP + 0x30]
CALL 0x0011d736
LAB_001152b7:
MOV qword ptr [RSP + 0x30],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
LAB_001152c8:
LEA RSI,[0x1310f7]
LEA RDI,[RSP + 0x90]
MOV EDX,0x31a
CALL 0x0011d730
LAB_001152e1:
LEA R14,[RSP + 0x90]
MOV RDI,R14
CALL 0x00119e6a
LAB_001152f1:
LEA RDI,[RSP + 0x90]
CALL 0x0011d736
LAB_001152fe:
JMP 0x0011534f
LAB_0011534f:
MOV RDI,R14
CALL 0x0011d736
LAB_00115357:
MOV RDI,RAX
CALL 0x00115c57
|
/* CheckFile(std::__cxx11::string const&, std::__cxx11::string const&, bool) */
void CheckFile(string *param_1,string *param_2,bool param_3)
{
FILE *__stream;
char *pcVar1;
ostream *poVar2;
ostream *poVar3;
ulong uVar4;
int8 uVar5;
byte in_CL;
int7 in_register_00000011;
ulong local_4a0;
int8 *local_498;
long lStack_490;
int8 local_488;
ulong local_478 [12];
int1 *local_418 [2];
int1 local_408 [992];
poVar3 = (ostream *)CONCAT71(in_register_00000011,param_3);
local_498 = (int8 *)0x0;
lStack_490 = 0;
local_488 = 0;
/* try { // try from 0011506f to 0011507e has its CatchHandler @ 0011533e */
local_418[0] = local_408;
std::__cxx11::string::_M_construct<char*>(local_418,param_1,param_2 + (long)param_1);
/* try { // try from 0011507f to 00115092 has its CatchHandler @ 00115327 */
std::__cxx11::string::append((char *)local_418);
/* try { // try from 00115093 to 001150a4 has its CatchHandler @ 00115325 */
GetFiles((string *)local_418,(vector *)&local_498);
if (local_418[0] != local_408) {
free(local_418[0]);
}
local_418[0] = (int1 *)(lStack_490 - (long)local_498 >> 5);
local_4a0 = 1;
/* try { // try from 00115156 to 00115173 has its CatchHandler @ 00115323 */
if ((lStack_490 - (long)local_498 == 0x20) ||
(nglog::internal::MakeCheckOpString<unsigned_long,unsigned_long>
((internal *)local_478,(ulong *)local_418,&local_4a0,"files.size() == 1UL"),
uVar4 = local_478[0], local_478[0] == 0)) {
__stream = fopen((char *)*local_498,"r");
if (__stream == (FILE *)0x0) {
/* try { // try from 0011518c to 001151a4 has its CatchHandler @ 0011535f */
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_418,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x31d);
/* try { // try from 001151a5 to 001151f3 has its CatchHandler @ 0011534f */
poVar3 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_418);
std::__ostream_insert<char,std::char_traits<char>>
(poVar3,"Check failed: file != nullptr ",0x1e);
std::__ostream_insert<char,std::char_traits<char>>(poVar3,": could not open ",0x11);
std::__ostream_insert<char,std::char_traits<char>>(poVar3,(char *)*local_498,local_498[1]);
/* try { // try from 001151f4 to 00115200 has its CatchHandler @ 0011535f */
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_418);
}
else {
while (pcVar1 = fgets((char *)local_418,1000,__stream), pcVar1 != (char *)0x0) {
pcVar1 = strstr((char *)local_418,*(char **)poVar3);
if ((pcVar1 != (char *)0x0) == (bool)in_CL) {
fclose(__stream);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_498
);
return;
}
}
}
/* try { // try from 00115201 to 00115216 has its CatchHandler @ 00115342 */
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_478,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x327);
/* try { // try from 00115217 to 001152ac has its CatchHandler @ 00115340 */
poVar2 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_478);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"Did ",4);
pcVar1 = "";
if (in_CL != 0) {
pcVar1 = "not ";
}
std::__ostream_insert<char,std::char_traits<char>>(poVar2,pcVar1,(ulong)in_CL << 2);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"find ",5);
poVar3 = std::__ostream_insert<char,std::char_traits<char>>
(poVar2,*(char **)poVar3,*(long *)(poVar3 + 8));
std::__ostream_insert<char,std::char_traits<char>>(poVar3," in ",4);
std::__ostream_insert<char,std::char_traits<char>>(poVar3,(char *)*local_498,local_498[1]);
/* try { // try from 001152ad to 001152b6 has its CatchHandler @ 00115342 */
uVar4 = nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_478);
}
local_478[0] = 0;
/* try { // try from 001152c8 to 001152e0 has its CatchHandler @ 00115300 */
local_4a0 = uVar4;
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_418,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x31a
,(CheckOpString *)&local_4a0);
/* try { // try from 001152e1 to 001152f0 has its CatchHandler @ 001152fe */
nglog::LogMessage::stream((LogMessage *)local_418);
/* try { // try from 001152f1 to 001152fd has its CatchHandler @ 00115300 */
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_418);
/* catch(type#1 @ 00000000) { ... } // from try @ 001152e1 with catch @ 001152fe
*/
/* catch(type#1 @ 00000000) { ... } // from try @ 001151a5 with catch @ 0011534f
try { // try from 0011534f to 00115356 has its CatchHandler @ 00115357 */
uVar5 = nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_418);
/* catch(type#1 @ 00000000) { ... } // from try @ 0011534f with catch @ 00115357
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar5);
}
|
|
57,858
|
add_blocks
|
corpus-core[P]colibri-stateless/src/chains/eth/proofer/proof_logs.c
|
static inline void add_blocks(proof_logs_block_t** blocks, json_t logs) {
json_for_each_value(logs, log) {
uint64_t block_number = json_get_uint64(log, "blockNumber");
uint32_t tx_index = json_get_uint32(log, "transactionIndex");
proof_logs_block_t* block = find_block(*blocks, block_number);
if (!block) {
block = safe_calloc(1, sizeof(proof_logs_block_t));
block->block_number = block_number;
block->next = *blocks;
*blocks = block;
}
proof_logs_tx_t* tx = find_tx(block, tx_index);
if (!tx) {
tx = safe_calloc(1, sizeof(proof_logs_tx_t));
tx->tx_index = tx_index;
tx->next = block->txs;
block->txs = tx;
block->tx_count++;
}
}
}
|
O0
|
c
|
add_blocks:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
leaq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
leaq -0x20(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
xorl %edx, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20290
xorl %eax, %eax
cmpl $-0x1, -0x10(%rbp)
movb %al, -0x89(%rbp)
je 0x8476
cmpl $0x0, -0x10(%rbp)
setne %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0x8485
jmp 0x862e
leaq -0x40(%rbp), %rdi
leaq -0x20(%rbp), %rax
leaq 0x4a1d1(%rip), %rsi # 0x52665
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20500
leaq -0x40(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20920
movq %rax, -0x28(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x20(%rbp), %rax
leaq 0x4a1c5(%rip), %rsi # 0x526ac
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20500
leaq -0x60(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20920
movl %eax, -0x44(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x9140
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x857d
movl $0x1, %edi
movl $0xe0, %esi
callq 0x18620
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x68(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x68(%rbp), %rdi
movl -0x44(%rbp), %esi
callq 0x9190
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
jne 0x85da
movl $0x1, %edi
movl $0x60, %esi
callq 0x18620
movq %rax, -0x70(%rbp)
movl -0x44(%rbp), %ecx
movq -0x70(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x68(%rbp), %rax
movq 0x48(%rax), %rcx
movq -0x70(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x68(%rbp), %rax
movl 0x50(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x50(%rax)
jmp 0x85dc
leaq -0x88(%rbp), %rdi
leaq -0x20(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %esi
movl $0x2, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20290
movq -0x88(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x845b
addq $0xb0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
add_blocks:
push rbp
mov rbp, rsp
sub rsp, 0B0h
lea rax, [rbp+arg_0]
mov [rbp+var_8], rdi
lea rdi, [rbp+var_20]
xor ecx, ecx
mov esi, ecx
xor edx, edx
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_next_value
loc_845B:
xor eax, eax
cmp dword ptr [rbp+var_10], 0FFFFFFFFh
mov [rbp+var_89], al
jz short loc_8476
cmp dword ptr [rbp+var_10], 0
setnz al
mov [rbp+var_89], al
loc_8476:
mov al, [rbp+var_89]
test al, 1
jnz short loc_8485
jmp loc_862E
loc_8485:
lea rdi, [rbp+var_40]
lea rax, [rbp+var_20]
lea rsi, aBlocknumber; "blockNumber"
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_get
lea rax, [rbp+var_40]
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_as_uint64
mov [rbp+var_28], rax
lea rdi, [rbp+var_60]
lea rax, [rbp+var_20]
lea rsi, aTransactionind; "transactionIndex"
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_get
lea rax, [rbp+var_60]
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_as_uint64
mov [rbp+var_44], eax
mov rax, [rbp+var_8]
mov rdi, [rax]
mov rsi, [rbp+var_28]
call find_block
mov [rbp+var_68], rax
cmp [rbp+var_68], 0
jnz short loc_857D
mov edi, 1
mov esi, 0E0h
call safe_calloc
mov [rbp+var_68], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_68]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax]
mov rax, [rbp+var_68]
mov [rax+28h], rcx
mov rcx, [rbp+var_68]
mov rax, [rbp+var_8]
mov [rax], rcx
loc_857D:
mov rdi, [rbp+var_68]
mov esi, [rbp+var_44]
call find_tx
mov [rbp+var_70], rax
cmp [rbp+var_70], 0
jnz short loc_85DA
mov edi, 1
mov esi, 60h ; '`'
call safe_calloc
mov [rbp+var_70], rax
mov ecx, [rbp+var_44]
mov rax, [rbp+var_70]
mov [rax+28h], ecx
mov rax, [rbp+var_68]
mov rcx, [rax+48h]
mov rax, [rbp+var_70]
mov [rax+58h], rcx
mov rcx, [rbp+var_70]
mov rax, [rbp+var_68]
mov [rax+48h], rcx
mov rax, [rbp+var_68]
mov ecx, [rax+50h]
add ecx, 1
mov [rax+50h], ecx
loc_85DA:
jmp short $+2
loc_85DC:
lea rdi, [rbp+var_88]
lea rax, [rbp+var_20]
xor ecx, ecx
mov esi, ecx
mov edx, 2
mov rcx, [rax]
mov [rsp+0B0h+var_B0], rcx
mov rcx, [rax+8]
mov [rsp+0B0h+var_A8], rcx
mov rax, [rax+10h]
mov [rsp+0B0h+var_A0], rax
call json_next_value
mov rax, [rbp+var_88]
mov [rbp+var_20], rax
mov rax, [rbp+var_80]
mov [rbp+var_18], rax
mov rax, [rbp+var_78]
mov [rbp+var_10], rax
jmp loc_845B
loc_862E:
add rsp, 0B0h
pop rbp
retn
|
bool add_blocks(
long long *a1,
_DWORD a2,
_DWORD a3,
_DWORD a4,
int a5,
int a6,
long long a7,
long long a8,
long long a9)
{
int v9; // edx
int v10; // r8d
int v11; // r9d
bool result; // al
int v13; // edx
int v14; // r8d
int v15; // r9d
int v16; // edx
int v17; // r8d
int v18; // r9d
int v19; // edx
int v20; // r8d
int v21; // r9d
int v22; // r8d
int v23; // r9d
bool v24; // [rsp+27h] [rbp-89h]
_QWORD v25[3]; // [rsp+28h] [rbp-88h] BYREF
long long tx; // [rsp+40h] [rbp-70h]
long long block; // [rsp+48h] [rbp-68h]
long long v28; // [rsp+50h] [rbp-60h] BYREF
long long v29; // [rsp+58h] [rbp-58h]
long long v30; // [rsp+60h] [rbp-50h]
unsigned int v31; // [rsp+6Ch] [rbp-44h]
long long v32; // [rsp+70h] [rbp-40h] BYREF
long long v33; // [rsp+78h] [rbp-38h]
long long v34; // [rsp+80h] [rbp-30h]
long long v35; // [rsp+88h] [rbp-28h]
long long v36; // [rsp+90h] [rbp-20h] BYREF
long long v37; // [rsp+98h] [rbp-18h]
long long v38; // [rsp+A0h] [rbp-10h]
long long *v39; // [rsp+A8h] [rbp-8h]
v39 = a1;
json_next_value((unsigned int)&v36, 0, 0, a8, a5, a6, a7, a8, a9);
while ( 1 )
{
v24 = 0;
if ( (_DWORD)v38 != -1 )
v24 = (_DWORD)v38 != 0;
result = v24;
if ( !v24 )
break;
json_get((unsigned int)&v32, (unsigned int)"blockNumber", v9, v37, v10, v11, v36, v37, v38);
v35 = json_as_uint64((unsigned int)&v32, (unsigned int)"blockNumber", v13, v33, v14, v15, v32, v33, v34);
json_get((unsigned int)&v28, (unsigned int)"transactionIndex", v16, v37, v17, v18, v36, v37, v38);
v31 = json_as_uint64((unsigned int)&v28, (unsigned int)"transactionIndex", v19, v29, v20, v21, v28, v29, v30);
block = find_block(*v39, v35);
if ( !block )
{
block = safe_calloc(1LL, 224LL);
*(_QWORD *)block = v35;
*(_QWORD *)(block + 40) = *v39;
*v39 = block;
}
tx = find_tx(block, v31);
if ( !tx )
{
tx = safe_calloc(1LL, 96LL);
*(_DWORD *)(tx + 40) = v31;
*(_QWORD *)(tx + 88) = *(_QWORD *)(block + 72);
*(_QWORD *)(block + 72) = tx;
++*(_DWORD *)(block + 80);
}
json_next_value((unsigned int)v25, 0, 2, v37, v22, v23, v36, v37, v38);
v36 = v25[0];
v37 = v25[1];
v38 = v25[2];
}
return result;
}
|
add_blocks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
LEA RDI,[RBP + -0x20]
XOR ECX,ECX
MOV ESI,ECX
XOR EDX,EDX
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 0x00120290
LAB_0010845b:
XOR EAX,EAX
CMP dword ptr [RBP + -0x10],-0x1
MOV byte ptr [RBP + -0x89],AL
JZ 0x00108476
CMP dword ptr [RBP + -0x10],0x0
SETNZ AL
MOV byte ptr [RBP + -0x89],AL
LAB_00108476:
MOV AL,byte ptr [RBP + -0x89]
TEST AL,0x1
JNZ 0x00108485
JMP 0x0010862e
LAB_00108485:
LEA RDI,[RBP + -0x40]
LEA RAX,[RBP + -0x20]
LEA RSI,[0x152665]
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 0x00120500
LEA RAX,[RBP + -0x40]
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 0x00120920
MOV qword ptr [RBP + -0x28],RAX
LEA RDI,[RBP + -0x60]
LEA RAX,[RBP + -0x20]
LEA RSI,[0x1526ac]
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 0x00120500
LEA RAX,[RBP + -0x60]
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 0x00120920
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00109140
MOV qword ptr [RBP + -0x68],RAX
CMP qword ptr [RBP + -0x68],0x0
JNZ 0x0010857d
MOV EDI,0x1
MOV ESI,0xe0
CALL 0x00118620
MOV qword ptr [RBP + -0x68],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX + 0x28],RCX
MOV RCX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
LAB_0010857d:
MOV RDI,qword ptr [RBP + -0x68]
MOV ESI,dword ptr [RBP + -0x44]
CALL 0x00109190
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x70],0x0
JNZ 0x001085da
MOV EDI,0x1
MOV ESI,0x60
CALL 0x00118620
MOV qword ptr [RBP + -0x70],RAX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x70]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RAX + 0x58],RCX
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RAX + 0x50]
ADD ECX,0x1
MOV dword ptr [RAX + 0x50],ECX
LAB_001085da:
JMP 0x001085dc
LAB_001085dc:
LEA RDI,[RBP + -0x88]
LEA RAX,[RBP + -0x20]
XOR ECX,ECX
MOV ESI,ECX
MOV EDX,0x2
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 0x00120290
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0010845b
LAB_0010862e:
ADD RSP,0xb0
POP RBP
RET
|
void add_blocks(long *param_1)
{
int1 local_90 [16];
int8 local_80;
long local_78;
int8 *local_70;
int1 local_68 [28];
int4 local_4c;
int1 local_48 [24];
int8 local_30;
int1 local_28 [16];
int8 local_18;
long *local_10;
local_10 = param_1;
json_next_value(local_28,0,0);
while ((int)local_18 != -1 && (int)local_18 != 0) {
json_get(local_48,"blockNumber");
local_30 = json_as_uint64();
json_get(local_68,"transactionIndex");
local_4c = json_as_uint64();
local_70 = (int8 *)find_block(*local_10,local_30);
if (local_70 == (int8 *)0x0) {
local_70 = (int8 *)safe_calloc(1,0xe0);
*local_70 = local_30;
local_70[5] = *local_10;
*local_10 = (long)local_70;
}
local_78 = find_tx(local_70,local_4c);
if (local_78 == 0) {
local_78 = safe_calloc(1,0x60);
*(int4 *)(local_78 + 0x28) = local_4c;
*(int8 *)(local_78 + 0x58) = local_70[9];
local_70[9] = local_78;
*(int *)(local_70 + 10) = *(int *)(local_70 + 10) + 1;
}
json_next_value(local_90,0,2);
local_18 = local_80;
}
return;
}
|
|
57,859
|
ma_bitmap_delete_all
|
eloqsql/storage/maria/ma_bitmap.c
|
void _ma_bitmap_delete_all(MARIA_SHARE *share)
{
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
DBUG_ENTER("_ma_bitmap_delete_all");
if (bitmap->map) /* Not in create */
{
bzero(bitmap->map, bitmap->block_size);
bitmap->changed= 1;
bitmap->page= 0;
bitmap->used_size= bitmap->full_tail_size= bitmap->full_head_size= 0;
bitmap->total_size= bitmap->max_total_size;
}
DBUG_VOID_RETURN;
}
|
O3
|
c
|
ma_bitmap_delete_all:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xa18(%rdi), %rdi
testq %rdi, %rdi
je 0x4027d
movl 0xb44(%rbx), %edx
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x292c0
movb $0x1, 0xa30(%rbx)
movq %r14, 0xa20(%rbx)
movl $0x0, 0xa3c(%rbx)
movq %r14, 0xa34(%rbx)
movl 0xb3c(%rbx), %eax
movl %eax, 0xb38(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
|
_ma_bitmap_delete_all:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rdi, [rdi+0A18h]
test rdi, rdi
jz short loc_4027D
mov edx, [rbx+0B44h]
xor r14d, r14d
xor esi, esi
call _memset
mov byte ptr [rbx+0A30h], 1
mov [rbx+0A20h], r14
mov dword ptr [rbx+0A3Ch], 0
mov [rbx+0A34h], r14
mov eax, [rbx+0B3Ch]
mov [rbx+0B38h], eax
loc_4027D:
pop rbx
pop r14
pop rbp
retn
|
long long ma_bitmap_delete_all(long long a1)
{
long long v2; // rdi
long long result; // rax
v2 = *(_QWORD *)(a1 + 2584);
if ( v2 )
{
memset(v2, 0LL, *(unsigned int *)(a1 + 2884));
*(_BYTE *)(a1 + 2608) = 1;
*(_QWORD *)(a1 + 2592) = 0LL;
*(_DWORD *)(a1 + 2620) = 0;
*(_QWORD *)(a1 + 2612) = 0LL;
result = *(unsigned int *)(a1 + 2876);
*(_DWORD *)(a1 + 2872) = result;
}
return result;
}
|
_ma_bitmap_delete_all:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xa18]
TEST RDI,RDI
JZ 0x0014027d
MOV EDX,dword ptr [RBX + 0xb44]
XOR R14D,R14D
XOR ESI,ESI
CALL 0x001292c0
MOV byte ptr [RBX + 0xa30],0x1
MOV qword ptr [RBX + 0xa20],R14
MOV dword ptr [RBX + 0xa3c],0x0
MOV qword ptr [RBX + 0xa34],R14
MOV EAX,dword ptr [RBX + 0xb3c]
MOV dword ptr [RBX + 0xb38],EAX
LAB_0014027d:
POP RBX
POP R14
POP RBP
RET
|
void _ma_bitmap_delete_all(long param_1)
{
if (*(void **)(param_1 + 0xa18) != (void *)0x0) {
memset(*(void **)(param_1 + 0xa18),0,(ulong)*(uint *)(param_1 + 0xb44));
*(int1 *)(param_1 + 0xa30) = 1;
*(int8 *)(param_1 + 0xa20) = 0;
*(int4 *)(param_1 + 0xa3c) = 0;
*(int8 *)(param_1 + 0xa34) = 0;
*(int4 *)(param_1 + 0xb38) = *(int4 *)(param_1 + 0xb3c);
}
return;
}
|
|
57,860
|
mp_sub_ui_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub_ui_dec(limb_t *tab, limb_t b, mp_size_t n)
{
limb_t base = BF_DEC_BASE;
mp_size_t i;
limb_t k, v, a;
k=b;
for(i=0;i<n;i++) {
v = tab[i];
a = v - k;
k = a > v;
if (k)
a += base;
tab[i]=a;
if (k == 0)
break;
}
return k;
}
|
O0
|
c
|
mp_sub_ui_dec:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movabsq $-0x7538dcfb76180000, %rax # imm = 0x8AC7230489E80000
movq %rax, -0x20(%rsp)
movq -0x10(%rsp), %rax
movq %rax, -0x30(%rsp)
movq $0x0, -0x28(%rsp)
movq -0x28(%rsp), %rax
cmpq -0x18(%rsp), %rax
jge 0xf1755
movq -0x8(%rsp), %rax
movq -0x28(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rsp)
movq -0x38(%rsp), %rax
subq -0x30(%rsp), %rax
movq %rax, -0x40(%rsp)
movq -0x40(%rsp), %rax
cmpq -0x38(%rsp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x30(%rsp)
cmpq $0x0, -0x30(%rsp)
je 0xf1723
movq -0x20(%rsp), %rax
addq -0x40(%rsp), %rax
movq %rax, -0x40(%rsp)
movq -0x40(%rsp), %rdx
movq -0x8(%rsp), %rax
movq -0x28(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
cmpq $0x0, -0x30(%rsp)
jne 0xf1740
jmp 0xf1755
jmp 0xf1742
movq -0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rsp)
jmp 0xf16c1
movq -0x30(%rsp), %rax
retq
nopl (%rax,%rax)
|
mp_sub_ui_dec:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov rax, 8AC7230489E80000h
mov [rsp+var_20], rax
mov rax, [rsp+var_10]
mov [rsp+var_30], rax
mov [rsp+var_28], 0
loc_F16C1:
mov rax, [rsp+var_28]
cmp rax, [rsp+var_18]
jge loc_F1755
mov rax, [rsp+var_8]
mov rcx, [rsp+var_28]
mov rax, [rax+rcx*8]
mov [rsp+var_38], rax
mov rax, [rsp+var_38]
sub rax, [rsp+var_30]
mov [rsp+var_40], rax
mov rax, [rsp+var_40]
cmp rax, [rsp+var_38]
setnbe al
and al, 1
movzx eax, al
cdqe
mov [rsp+var_30], rax
cmp [rsp+var_30], 0
jz short loc_F1723
mov rax, [rsp+var_20]
add rax, [rsp+var_40]
mov [rsp+var_40], rax
loc_F1723:
mov rdx, [rsp+var_40]
mov rax, [rsp+var_8]
mov rcx, [rsp+var_28]
mov [rax+rcx*8], rdx
cmp [rsp+var_30], 0
jnz short loc_F1740
jmp short loc_F1755
loc_F1740:
jmp short $+2
loc_F1742:
mov rax, [rsp+var_28]
add rax, 1
mov [rsp+var_28], rax
jmp loc_F16C1
loc_F1755:
mov rax, [rsp+var_30]
retn
|
_BOOL8 mp_sub_ui_dec(long long a1, _BOOL8 a2, long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-40h]
unsigned long long v5; // [rsp+8h] [rbp-38h]
long long i; // [rsp+18h] [rbp-28h]
for ( i = 0LL; i < a3; ++i )
{
v5 = *(_QWORD *)(a1 + 8 * i);
v4 = v5 - a2;
a2 = v5 - a2 > v5;
if ( a2 )
v4 -= 0x7538DCFB76180000LL;
*(_QWORD *)(a1 + 8 * i) = v4;
if ( !a2 )
break;
}
return a2;
}
|
mp_sub_ui_dec:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV RAX,-0x7538dcfb76180000
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x30],RAX
MOV qword ptr [RSP + -0x28],0x0
LAB_001f16c1:
MOV RAX,qword ptr [RSP + -0x28]
CMP RAX,qword ptr [RSP + -0x18]
JGE 0x001f1755
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x28]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + -0x38],RAX
MOV RAX,qword ptr [RSP + -0x38]
SUB RAX,qword ptr [RSP + -0x30]
MOV qword ptr [RSP + -0x40],RAX
MOV RAX,qword ptr [RSP + -0x40]
CMP RAX,qword ptr [RSP + -0x38]
SETA AL
AND AL,0x1
MOVZX EAX,AL
CDQE
MOV qword ptr [RSP + -0x30],RAX
CMP qword ptr [RSP + -0x30],0x0
JZ 0x001f1723
MOV RAX,qword ptr [RSP + -0x20]
ADD RAX,qword ptr [RSP + -0x40]
MOV qword ptr [RSP + -0x40],RAX
LAB_001f1723:
MOV RDX,qword ptr [RSP + -0x40]
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x28]
MOV qword ptr [RAX + RCX*0x8],RDX
CMP qword ptr [RSP + -0x30],0x0
JNZ 0x001f1740
JMP 0x001f1755
LAB_001f1740:
JMP 0x001f1742
LAB_001f1742:
MOV RAX,qword ptr [RSP + -0x28]
ADD RAX,0x1
MOV qword ptr [RSP + -0x28],RAX
JMP 0x001f16c1
LAB_001f1755:
MOV RAX,qword ptr [RSP + -0x30]
RET
|
long mp_sub_ui_dec(long param_1,long param_2,long param_3)
{
ulong uVar1;
ulong local_40;
long local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while( true ) {
if (param_3 <= local_28) {
return local_30;
}
uVar1 = *(ulong *)(param_1 + local_28 * 8);
local_40 = uVar1 - local_30;
local_30 = (long)(int)(uint)(uVar1 < local_40);
if (local_30 != 0) {
local_40 = local_40 + 10000000000000000000;
}
*(ulong *)(param_1 + local_28 * 8) = local_40;
if (local_30 == 0) break;
local_28 = local_28 + 1;
}
return 0;
}
|
|
57,861
|
mp_sub_ui_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub_ui_dec(limb_t *tab, limb_t b, mp_size_t n)
{
limb_t base = BF_DEC_BASE;
mp_size_t i;
limb_t k, v, a;
k=b;
for(i=0;i<n;i++) {
v = tab[i];
a = v - k;
k = a > v;
if (k)
a += base;
tab[i]=a;
if (k == 0)
break;
}
return k;
}
|
O1
|
c
|
mp_sub_ui_dec:
movq %rsi, %rax
testq %rdx, %rdx
jle 0x8d971
movabsq $-0x7538dcfb76180000, %rcx # imm = 0x8AC7230489E80000
xorl %esi, %esi
movq (%rdi,%rsi,8), %r8
subq %rax, %r8
leaq (%r8,%rcx), %rax
cmovaeq %r8, %rax
movq %rax, (%rdi,%rsi,8)
jae 0x8d972
incq %rsi
movl $0x1, %eax
cmpq %rsi, %rdx
jne 0x8d94f
retq
xorl %eax, %eax
retq
|
mp_sub_ui_dec:
mov rax, rsi
test rdx, rdx
jle short locret_8D971
mov rcx, 8AC7230489E80000h
xor esi, esi
loc_8D94F:
mov r8, [rdi+rsi*8]
sub r8, rax
lea rax, [r8+rcx]
cmovnb rax, r8
mov [rdi+rsi*8], rax
jnb short loc_8D972
inc rsi
mov eax, 1
cmp rdx, rsi
jnz short loc_8D94F
locret_8D971:
retn
loc_8D972:
xor eax, eax
retn
|
unsigned long long mp_sub_ui_dec(long long a1, unsigned long long a2, long long a3)
{
unsigned long long result; // rax
long long v4; // rsi
unsigned long long v5; // r8
bool v6; // cf
unsigned long long v7; // r8
unsigned long long v8; // rax
result = a2;
if ( a3 > 0 )
{
v4 = 0LL;
while ( 1 )
{
v5 = *(_QWORD *)(a1 + 8 * v4);
v6 = v5 < result;
v7 = v5 - result;
v8 = v7 - 0x7538DCFB76180000LL;
if ( !v6 )
v8 = v7;
*(_QWORD *)(a1 + 8 * v4) = v8;
if ( !v6 )
break;
++v4;
result = 1LL;
if ( a3 == v4 )
return result;
}
return 0LL;
}
return result;
}
|
mp_sub_ui_dec:
MOV RAX,RSI
TEST RDX,RDX
JLE 0x0018d971
MOV RCX,-0x7538dcfb76180000
XOR ESI,ESI
LAB_0018d94f:
MOV R8,qword ptr [RDI + RSI*0x8]
SUB R8,RAX
LEA RAX,[R8 + RCX*0x1]
CMOVNC RAX,R8
MOV qword ptr [RDI + RSI*0x8],RAX
JNC 0x0018d972
INC RSI
MOV EAX,0x1
CMP RDX,RSI
JNZ 0x0018d94f
LAB_0018d971:
RET
LAB_0018d972:
XOR EAX,EAX
RET
|
ulong mp_sub_ui_dec(long param_1,ulong param_2,long param_3)
{
ulong uVar1;
long lVar2;
long lVar3;
if (0 < param_3) {
lVar3 = 0;
do {
uVar1 = *(ulong *)(param_1 + lVar3 * 8);
lVar2 = (uVar1 - param_2) + -0x7538dcfb76180000;
if (param_2 <= uVar1) {
lVar2 = uVar1 - param_2;
}
*(long *)(param_1 + lVar3 * 8) = lVar2;
if (param_2 <= uVar1) {
return 0;
}
lVar3 = lVar3 + 1;
param_2 = 1;
} while (param_3 != lVar3);
}
return param_2;
}
|
|
57,862
|
mp_sub_ui_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub_ui_dec(limb_t *tab, limb_t b, mp_size_t n)
{
limb_t base = BF_DEC_BASE;
mp_size_t i;
limb_t k, v, a;
k=b;
for(i=0;i<n;i++) {
v = tab[i];
a = v - k;
k = a > v;
if (k)
a += base;
tab[i]=a;
if (k == 0)
break;
}
return k;
}
|
O2
|
c
|
mp_sub_ui_dec:
movq %rsi, %rax
xorl %ecx, %ecx
testq %rdx, %rdx
cmovleq %rcx, %rdx
movabsq $-0x7538dcfb76180000, %rsi # imm = 0x8AC7230489E80000
pushq $0x1
popq %r8
cmpq %rcx, %rdx
je 0x763f5
movq (%rdi,%rcx,8), %r9
subq %rax, %r9
leaq (%r9,%rsi), %rax
cmovaeq %r9, %rax
movq %rax, (%rdi,%rcx,8)
leaq 0x1(%rcx), %rcx
movq %r8, %rax
jb 0x763d2
xorl %eax, %eax
retq
|
mp_sub_ui_dec:
mov rax, rsi
xor ecx, ecx
test rdx, rdx
cmovle rdx, rcx
mov rsi, 8AC7230489E80000h
push 1
pop r8
loc_763D2:
cmp rdx, rcx
jz short locret_763F5
mov r9, [rdi+rcx*8]
sub r9, rax
lea rax, [r9+rsi]
cmovnb rax, r9
mov [rdi+rcx*8], rax
lea rcx, [rcx+1]
mov rax, r8
jb short loc_763D2
xor eax, eax
locret_763F5:
retn
|
unsigned long long mp_sub_ui_dec(long long a1, unsigned long long a2, long long a3)
{
unsigned long long result; // rax
long long v4; // rcx
unsigned long long v5; // r9
bool v6; // cf
unsigned long long v7; // r9
unsigned long long v8; // rax
result = a2;
v4 = 0LL;
if ( a3 <= 0 )
a3 = 0LL;
while ( a3 != v4 )
{
v5 = *(_QWORD *)(a1 + 8 * v4);
v6 = v5 < result;
v7 = v5 - result;
v8 = v7 - 0x7538DCFB76180000LL;
if ( !v6 )
v8 = v7;
*(_QWORD *)(a1 + 8 * v4++) = v8;
result = 1LL;
if ( !v6 )
return 0LL;
}
return result;
}
|
mp_sub_ui_dec:
MOV RAX,RSI
XOR ECX,ECX
TEST RDX,RDX
CMOVLE RDX,RCX
MOV RSI,-0x7538dcfb76180000
PUSH 0x1
POP R8
LAB_001763d2:
CMP RDX,RCX
JZ 0x001763f5
MOV R9,qword ptr [RDI + RCX*0x8]
SUB R9,RAX
LEA RAX,[R9 + RSI*0x1]
CMOVNC RAX,R9
MOV qword ptr [RDI + RCX*0x8],RAX
LEA RCX,[RCX + 0x1]
MOV RAX,R8
JC 0x001763d2
XOR EAX,EAX
LAB_001763f5:
RET
|
ulong mp_sub_ui_dec(long param_1,ulong param_2,long param_3)
{
ulong uVar1;
long lVar2;
long lVar3;
bool bVar4;
lVar3 = 0;
if (param_3 < 1) {
param_3 = lVar3;
}
do {
if (param_3 == lVar3) {
return param_2;
}
uVar1 = *(ulong *)(param_1 + lVar3 * 8);
bVar4 = uVar1 < param_2;
lVar2 = (uVar1 - param_2) + -0x7538dcfb76180000;
if (!bVar4) {
lVar2 = uVar1 - param_2;
}
*(long *)(param_1 + lVar3 * 8) = lVar2;
lVar3 = lVar3 + 1;
param_2 = 1;
} while (bVar4);
return 0;
}
|
|
57,863
|
include_exclude_or_skip
|
bluesky950520[P]quickjs/run-test262.c
|
int include_exclude_or_skip(int i) // naming is hard...
{
if (namelist_find(&exclude_list, test_list.array[i]) >= 0)
return EXCLUDE;
if (i < start_index)
return SKIP;
if (stop_index >= 0 && i > stop_index)
return SKIP;
return INCLUDE;
}
|
O0
|
c
|
include_exclude_or_skip:
pushq %rax
movl %edi, (%rsp)
movq 0x129f9d(%rip), %rax # 0x13d618
movslq (%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x129f9e(%rip), %rdi # 0x13d628
callq 0xf4b0
cmpl $0x0, %eax
jl 0x1369e
movl $0x1, 0x4(%rsp)
jmp 0x136d9
movl (%rsp), %eax
cmpl 0x12a3d9(%rip), %eax # 0x13da80
jge 0x136b3
movl $0x2, 0x4(%rsp)
jmp 0x136d9
cmpl $0x0, 0x12a3ca(%rip) # 0x13da84
jl 0x136d1
movl (%rsp), %eax
cmpl 0x12a3bf(%rip), %eax # 0x13da84
jle 0x136d1
movl $0x2, 0x4(%rsp)
jmp 0x136d9
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
popq %rcx
retq
nop
|
include_exclude_or_skip:
push rax
mov [rsp+8+var_8], edi
mov rax, cs:test_list
movsxd rcx, [rsp+8+var_8]
mov rsi, [rax+rcx*8]
lea rdi, exclude_list
call namelist_find
cmp eax, 0
jl short loc_1369E
mov [rsp+8+var_4], 1
jmp short loc_136D9
loc_1369E:
mov eax, [rsp+8+var_8]
cmp eax, cs:start_index
jge short loc_136B3
mov [rsp+8+var_4], 2
jmp short loc_136D9
loc_136B3:
cmp cs:stop_index, 0
jl short loc_136D1
mov eax, [rsp+8+var_8]
cmp eax, cs:stop_index
jle short loc_136D1
mov [rsp+8+var_4], 2
jmp short loc_136D9
loc_136D1:
mov [rsp+8+var_4], 0
loc_136D9:
mov eax, [rsp+8+var_4]
pop rcx
retn
|
long long include_exclude_or_skip(int a1)
{
if ( (int)namelist_find((long long)&exclude_list, *(unsigned __int8 **)(test_list + 8LL * a1)) < 0 )
{
if ( a1 >= start_index )
{
if ( stop_index < 0 || a1 <= stop_index )
return 0;
else
return 2;
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
include_exclude_or_skip:
PUSH RAX
MOV dword ptr [RSP],EDI
MOV RAX,qword ptr [0x0023d618]
MOVSXD RCX,dword ptr [RSP]
MOV RSI,qword ptr [RAX + RCX*0x8]
LEA RDI,[0x23d628]
CALL 0x0010f4b0
CMP EAX,0x0
JL 0x0011369e
MOV dword ptr [RSP + 0x4],0x1
JMP 0x001136d9
LAB_0011369e:
MOV EAX,dword ptr [RSP]
CMP EAX,dword ptr [0x0023da80]
JGE 0x001136b3
MOV dword ptr [RSP + 0x4],0x2
JMP 0x001136d9
LAB_001136b3:
CMP dword ptr [0x0023da84],0x0
JL 0x001136d1
MOV EAX,dword ptr [RSP]
CMP EAX,dword ptr [0x0023da84]
JLE 0x001136d1
MOV dword ptr [RSP + 0x4],0x2
JMP 0x001136d9
LAB_001136d1:
MOV dword ptr [RSP + 0x4],0x0
LAB_001136d9:
MOV EAX,dword ptr [RSP + 0x4]
POP RCX
RET
|
int4 include_exclude_or_skip(int param_1)
{
int iVar1;
int4 local_4;
iVar1 = namelist_find(&exclude_list,*(int8 *)(test_list + (long)param_1 * 8));
if (iVar1 < 0) {
if (param_1 < start_index) {
local_4 = 2;
}
else if ((stop_index < 0) || (param_1 <= stop_index)) {
local_4 = 0;
}
else {
local_4 = 2;
}
}
else {
local_4 = 1;
}
return local_4;
}
|
|
57,864
|
include_exclude_or_skip
|
bluesky950520[P]quickjs/run-test262.c
|
int include_exclude_or_skip(int i) // naming is hard...
{
if (namelist_find(&exclude_list, test_list.array[i]) >= 0)
return EXCLUDE;
if (i < start_index)
return SKIP;
if (stop_index >= 0 && i > stop_index)
return SKIP;
return INCLUDE;
}
|
O1
|
c
|
include_exclude_or_skip:
pushq %rbx
movl %edi, %ebx
movq 0xbb6b0(%rip), %rax # 0xd25c8
movslq %edi, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xbb6b2(%rip), %rdi # 0xd25d8
callq 0x142a4
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jns 0x16f5a
movl $0x2, %eax
cmpl %ebx, 0xbbaef(%rip) # 0xd2a30
jg 0x16f5a
movl 0xbbaeb(%rip), %eax # 0xd2a34
testl %eax, %eax
setns %cl
cmpl %ebx, %eax
setl %al
andb %cl, %al
movzbl %al, %eax
addl %eax, %eax
popq %rbx
retq
|
include_exclude_or_skip:
push rbx
mov ebx, edi
mov rax, cs:test_list
movsxd rcx, edi
mov rsi, [rax+rcx*8]
lea rdi, exclude_list
call namelist_find
mov ecx, eax
mov eax, 1
test ecx, ecx
jns short loc_16F5A
mov eax, 2
cmp cs:start_index, ebx
jg short loc_16F5A
mov eax, cs:stop_index
test eax, eax
setns cl
cmp eax, ebx
setl al
and al, cl
movzx eax, al
add eax, eax
loc_16F5A:
pop rbx
retn
|
long long include_exclude_or_skip(int a1)
{
int v1; // ecx
long long result; // rax
v1 = namelist_find(&exclude_list, *(unsigned __int8 **)(test_list + 8LL * a1));
result = 1LL;
if ( v1 < 0 )
{
result = 2LL;
if ( start_index <= a1 )
return 2 * (unsigned int)(stop_index >= 0 && stop_index < a1);
}
return result;
}
|
include_exclude_or_skip:
PUSH RBX
MOV EBX,EDI
MOV RAX,qword ptr [0x001d25c8]
MOVSXD RCX,EDI
MOV RSI,qword ptr [RAX + RCX*0x8]
LEA RDI,[0x1d25d8]
CALL 0x001142a4
MOV ECX,EAX
MOV EAX,0x1
TEST ECX,ECX
JNS 0x00116f5a
MOV EAX,0x2
CMP dword ptr [0x001d2a30],EBX
JG 0x00116f5a
MOV EAX,dword ptr [0x001d2a34]
TEST EAX,EAX
SETNS CL
CMP EAX,EBX
SETL AL
AND AL,CL
MOVZX EAX,AL
ADD EAX,EAX
LAB_00116f5a:
POP RBX
RET
|
char include_exclude_or_skip(int param_1)
{
char cVar1;
int iVar2;
iVar2 = namelist_find(&exclude_list,*(int8 *)(test_list + (long)param_1 * 8));
cVar1 = '\x01';
if ((iVar2 < 0) && (cVar1 = '\x02', start_index <= param_1)) {
cVar1 = (stop_index < param_1 && -1 < stop_index) * '\x02';
}
return cVar1;
}
|
|
57,865
|
include_exclude_or_skip
|
bluesky950520[P]quickjs/run-test262.c
|
int include_exclude_or_skip(int i) // naming is hard...
{
if (namelist_find(&exclude_list, test_list.array[i]) >= 0)
return EXCLUDE;
if (i < start_index)
return SKIP;
if (stop_index >= 0 && i > stop_index)
return SKIP;
return INCLUDE;
}
|
O2
|
c
|
include_exclude_or_skip:
pushq %rbx
movl %edi, %ebx
movq 0xadb3f(%rip), %rax # 0xbf5d8
movslq %edi, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xadb41(%rip), %rdi # 0xbf5e8
callq 0xf123
testl %eax, %eax
js 0x11ab4
pushq $0x1
jmp 0x11abe
cmpl %ebx, 0xadf86(%rip) # 0xbfa40
jle 0x11ac1
pushq $0x2
popq %rax
popq %rbx
retq
movl 0xadf7d(%rip), %eax # 0xbfa44
testl %eax, %eax
setns %cl
cmpl %ebx, %eax
setl %al
andb %cl, %al
movzbl %al, %eax
addl %eax, %eax
jmp 0x11abf
|
include_exclude_or_skip:
push rbx
mov ebx, edi
mov rax, cs:test_list
movsxd rcx, edi
mov rsi, [rax+rcx*8]
lea rdi, exclude_list
call namelist_find
test eax, eax
js short loc_11AB4
push 1
jmp short loc_11ABE
loc_11AB4:
cmp cs:start_index, ebx
jle short loc_11AC1
push 2
loc_11ABE:
pop rax
loc_11ABF:
pop rbx
retn
loc_11AC1:
mov eax, cs:stop_index
test eax, eax
setns cl
cmp eax, ebx
setl al
and al, cl
movzx eax, al
add eax, eax
jmp short loc_11ABF
|
long long include_exclude_or_skip(int a1)
{
if ( (int)namelist_find((long long)&exclude_list, *(unsigned __int8 **)(test_list + 8LL * a1)) >= 0 )
return 1LL;
if ( start_index > a1 )
return 2LL;
return 2 * (unsigned int)(stop_index >= 0 && stop_index < a1);
}
|
include_exclude_or_skip:
PUSH RBX
MOV EBX,EDI
MOV RAX,qword ptr [0x001bf5d8]
MOVSXD RCX,EDI
MOV RSI,qword ptr [RAX + RCX*0x8]
LEA RDI,[0x1bf5e8]
CALL 0x0010f123
TEST EAX,EAX
JS 0x00111ab4
PUSH 0x1
JMP 0x00111abe
LAB_00111ab4:
CMP dword ptr [0x001bfa40],EBX
JLE 0x00111ac1
PUSH 0x2
LAB_00111abe:
POP RAX
LAB_00111abf:
POP RBX
RET
LAB_00111ac1:
MOV EAX,dword ptr [0x001bfa44]
TEST EAX,EAX
SETNS CL
CMP EAX,EBX
SETL AL
AND AL,CL
MOVZX EAX,AL
ADD EAX,EAX
JMP 0x00111abf
|
char include_exclude_or_skip(int param_1)
{
char cVar1;
int iVar2;
iVar2 = namelist_find(&exclude_list,*(int8 *)(test_list + (long)param_1 * 8));
if (iVar2 < 0) {
if (param_1 < start_index) {
cVar1 = '\x02';
}
else {
cVar1 = (stop_index < param_1 && -1 < stop_index) * '\x02';
}
}
else {
cVar1 = '\x01';
}
return cVar1;
}
|
|
57,866
|
include_exclude_or_skip
|
bluesky950520[P]quickjs/run-test262.c
|
int include_exclude_or_skip(int i) // naming is hard...
{
if (namelist_find(&exclude_list, test_list.array[i]) >= 0)
return EXCLUDE;
if (i < start_index)
return SKIP;
if (stop_index >= 0 && i > stop_index)
return SKIP;
return INCLUDE;
}
|
O3
|
c
|
include_exclude_or_skip:
pushq %rbx
movl %edi, %ebx
movq 0xbdc39(%rip), %rax # 0xd55c8
movslq %edi, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xbdc3b(%rip), %rdi # 0xd55d8
callq 0x14cd1
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jns 0x179d1
movl $0x2, %eax
cmpl %ebx, 0xbe078(%rip) # 0xd5a30
jg 0x179d1
movl 0xbe074(%rip), %eax # 0xd5a34
testl %eax, %eax
setns %cl
cmpl %ebx, %eax
setl %al
andb %cl, %al
movzbl %al, %eax
addl %eax, %eax
popq %rbx
retq
|
include_exclude_or_skip:
push rbx
mov ebx, edi
mov rax, cs:test_list
movsxd rcx, edi
mov rsi, [rax+rcx*8]
lea rdi, exclude_list
call namelist_find
mov ecx, eax
mov eax, 1
test ecx, ecx
jns short loc_179D1
mov eax, 2
cmp cs:start_index, ebx
jg short loc_179D1
mov eax, cs:stop_index
test eax, eax
setns cl
cmp eax, ebx
setl al
and al, cl
movzx eax, al
add eax, eax
loc_179D1:
pop rbx
retn
|
long long include_exclude_or_skip(int a1)
{
int v1; // ecx
long long result; // rax
v1 = namelist_find(&exclude_list, *(unsigned __int8 **)(test_list + 8LL * a1));
result = 1LL;
if ( v1 < 0 )
{
result = 2LL;
if ( start_index <= a1 )
return 2 * (unsigned int)(stop_index >= 0 && stop_index < a1);
}
return result;
}
|
include_exclude_or_skip:
PUSH RBX
MOV EBX,EDI
MOV RAX,qword ptr [0x001d55c8]
MOVSXD RCX,EDI
MOV RSI,qword ptr [RAX + RCX*0x8]
LEA RDI,[0x1d55d8]
CALL 0x00114cd1
MOV ECX,EAX
MOV EAX,0x1
TEST ECX,ECX
JNS 0x001179d1
MOV EAX,0x2
CMP dword ptr [0x001d5a30],EBX
JG 0x001179d1
MOV EAX,dword ptr [0x001d5a34]
TEST EAX,EAX
SETNS CL
CMP EAX,EBX
SETL AL
AND AL,CL
MOVZX EAX,AL
ADD EAX,EAX
LAB_001179d1:
POP RBX
RET
|
char include_exclude_or_skip(int param_1)
{
char cVar1;
int iVar2;
iVar2 = namelist_find(&exclude_list,*(int8 *)(test_list + (long)param_1 * 8));
cVar1 = '\x01';
if ((iVar2 < 0) && (cVar1 = '\x02', start_index <= param_1)) {
cVar1 = (stop_index < param_1 && -1 < stop_index) * '\x02';
}
return cVar1;
}
|
|
57,867
|
PFS_table_share::aggregate_lock()
|
eloqsql/storage/perfschema/pfs_instr_class.cc
|
void PFS_table_share::aggregate_lock(void)
{
PFS_table_share_lock *lock_stat;
lock_stat= find_lock_stat();
if (lock_stat != NULL)
{
global_table_lock_stat.aggregate(& lock_stat->m_stat);
/* Reset lock stat. */
lock_stat->m_stat.reset();
}
}
|
O0
|
cpp
|
PFS_table_share::aggregate_lock():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x397a0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3c1b1
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x3ce061(%rip), %rdi # 0x40a200
callq 0x353c0
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
callq 0x3cdd0
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ZN15PFS_table_share14aggregate_lockEv:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
call _ZNK15PFS_table_share14find_lock_statEv; PFS_table_share::find_lock_stat(void)
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jz short loc_3C1B1
mov rsi, [rbp+var_10]
add rsi, 8; PFS_table_lock_stat *
lea rdi, global_table_lock_stat; this
call _ZN19PFS_table_lock_stat9aggregateEPKS_; PFS_table_lock_stat::aggregate(PFS_table_lock_stat const*)
mov rdi, [rbp+var_10]
add rdi, 8; this
call _ZN19PFS_table_lock_stat5resetEv; PFS_table_lock_stat::reset(void)
loc_3C1B1:
add rsp, 10h
pop rbp
retn
|
long long PFS_table_share::aggregate_lock(PFS_table_share *this)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
result = PFS_table_share::find_lock_stat(this);
v2 = result;
if ( result )
{
PFS_table_lock_stat::aggregate(
(PFS_table_lock_stat *)&global_table_lock_stat,
(const PFS_table_lock_stat *)(result + 8));
return PFS_table_lock_stat::reset((PFS_table_lock_stat *)(v2 + 8));
}
return result;
}
|
aggregate_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001397a0
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013c1b1
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x8
LEA RDI,[0x50a200]
CALL 0x001353c0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8
CALL 0x0013cdd0
LAB_0013c1b1:
ADD RSP,0x10
POP RBP
RET
|
/* PFS_table_share::aggregate_lock() */
void __thiscall PFS_table_share::aggregate_lock(PFS_table_share *this)
{
long lVar1;
lVar1 = find_lock_stat(this);
if (lVar1 != 0) {
PFS_table_lock_stat::aggregate
((PFS_table_lock_stat *)global_table_lock_stat,(PFS_table_lock_stat *)(lVar1 + 8));
PFS_table_lock_stat::reset((PFS_table_lock_stat *)(lVar1 + 8));
}
return;
}
|
|
57,868
|
minja::Parser::parseNumber(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
|
monkey531[P]llama/common/minja.hpp
|
json parseNumber(CharIterator& it, const CharIterator& end) {
auto before = it;
consumeSpaces();
auto start = it;
bool hasDecimal = false;
bool hasExponent = false;
if (it != end && (*it == '-' || *it == '+')) ++it;
while (it != end) {
if (std::isdigit(*it)) {
++it;
} else if (*it == '.') {
if (hasDecimal) throw std::runtime_error("Multiple decimal points");
hasDecimal = true;
++it;
} else if (it != start && (*it == 'e' || *it == 'E')) {
if (hasExponent) throw std::runtime_error("Multiple exponents");
hasExponent = true;
++it;
} else {
break;
}
}
if (start == it) {
it = before;
return json(); // No valid characters found
}
std::string str(start, it);
try {
return json::parse(str);
} catch (json::parse_error& e) {
throw std::runtime_error("Failed to parse number: '" + str + "' (" + std::string(e.what()) + ")");
return json();
}
}
|
O2
|
cpp
|
minja::Parser::parseNumber(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %rbx
movq (%rdx), %r12
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x613ca
movq (%r14), %rsi
cmpq %rsi, (%r15)
je 0x66b04
movzbl (%rsi), %edi
xorl %eax, %eax
movq %rsi, %rdx
cmpl $0x2d, %edi
je 0x66b0d
movl $0x0, %ecx
cmpl $0x2b, %edi
je 0x66b0f
jmp 0x66b15
xorl %eax, %eax
movq %rsi, %rdx
xorl %ecx, %ecx
jmp 0x66b15
xorl %ecx, %ecx
incq %rdx
movq %rdx, (%r14)
cmpq (%r15), %rdx
je 0x66b96
movsbl (%rdx), %edi
leal -0x30(%rdi), %r8d
cmpl $0xa, %r8d
jb 0x66b0f
movzbl %dil, %edi
cmpl $0x2e, %edi
jne 0x66b53
testb $0x1, %cl
movb $0x1, %cl
je 0x66b0f
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x4c5d1(%rip), %rsi # 0xb311a
movq %rax, %rdi
callq 0x23310
jmp 0x66b80
cmpq %rsi, %rdx
je 0x66b96
orl $0x20, %edi
cmpl $0x65, %edi
jne 0x66b96
testb $0x1, %al
movb $0x1, %al
je 0x66b0f
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x4c5ba(%rip), %rsi # 0xb3132
movq %rax, %rdi
callq 0x23310
movq 0x95469(%rip), %rsi # 0xfbff0
movq 0x953ca(%rip), %rdx # 0xfbf58
movq %rbx, %rdi
callq 0x23ef0
cmpq %rsi, %rdx
je 0x66be6
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10(%rsp), %rdi
callq 0x521e4
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x67296
leaq 0x30(%rsp), %rdi
callq 0x47a12
leaq 0x10(%rsp), %rdi
callq 0x241b8
jmp 0x66bf3
movq %r12, (%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3cfe0
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbx
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x47a12
cmpl $0x1, %ebx
jne 0x66d55
movq %r14, %rdi
callq 0x23370
movq %rax, %r14
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x4c509(%rip), %rsi # 0xb3145
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x39318
leaq 0x4c50d(%rip), %rdx # 0xb315f
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x380bc
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0x2746a
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x3914b
leaq 0x50aa3(%rip), %rdx # 0xb7743
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x380bc
movb $0x1, %bpl
leaq 0xd0(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e20
xorl %ebp, %ebp
movq 0x9531f(%rip), %rsi # 0xfbff0
movq 0x95280(%rip), %rdx # 0xfbf58
movq %rbx, %rdi
callq 0x23ef0
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
callq 0x241b8
jmp 0x66cf8
movq %rax, %r14
movb $0x1, %bpl
leaq 0xb0(%rsp), %rdi
callq 0x241b8
jmp 0x66d0d
movq %rax, %r14
movb $0x1, %bpl
leaq 0x50(%rsp), %rdi
callq 0x241b8
jmp 0x66d1f
movq %rax, %r14
movb $0x1, %bpl
leaq 0x90(%rsp), %rdi
callq 0x241b8
jmp 0x66d34
movq %rax, %r14
movb $0x1, %bpl
leaq 0x70(%rsp), %rdi
callq 0x241b8
testb %bpl, %bpl
jne 0x66d48
jmp 0x66d50
movq %rax, %r14
movq %rbx, %rdi
callq 0x23680
callq 0x23e40
leaq 0x10(%rsp), %rdi
callq 0x241b8
jmp 0x66d7b
movq %rax, %rdi
callq 0x276e7
movq %rax, %r14
jmp 0x66d7b
jmp 0x66d70
movq %rax, %r14
movq %rbx, %rdi
callq 0x23680
movq %r14, %rdi
callq 0x23f80
|
_ZN5minja6Parser11parseNumberERN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKSB_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0F0h
mov r15, rcx
mov r14, rdx
mov rax, rsi
mov rbx, rdi
mov r12, [rdx]
push 1
pop rsi
mov rdi, rax
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
mov rsi, [r14]
cmp [r15], rsi
jz short loc_66B04
movzx edi, byte ptr [rsi]
xor eax, eax
mov rdx, rsi
cmp edi, 2Dh ; '-'
jz short loc_66B0D
mov ecx, 0
cmp edi, 2Bh ; '+'
jz short loc_66B0F
jmp short loc_66B15
loc_66B04:
xor eax, eax
mov rdx, rsi
xor ecx, ecx
jmp short loc_66B15
loc_66B0D:
xor ecx, ecx
loc_66B0F:
inc rdx
mov [r14], rdx
loc_66B15:
cmp rdx, [r15]
jz short loc_66B96
movsx edi, byte ptr [rdx]
lea r8d, [rdi-30h]
cmp r8d, 0Ah
jb short loc_66B0F
movzx edi, dil
cmp edi, 2Eh ; '.'
jnz short loc_66B53
test cl, 1
mov cl, 1
jz short loc_66B0F
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aMultipleDecima; "Multiple decimal points"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_66B80
loc_66B53:
cmp rdx, rsi
jz short loc_66B96
or edi, 20h
cmp edi, 65h ; 'e'
jnz short loc_66B96
test al, 1
mov al, 1
jz short loc_66B0F
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aMultipleExpone; "Multiple exponents"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_66B80:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_66B96:
cmp rdx, rsi
jz short loc_66BE6
lea rax, [rsp+118h+var_F8]
mov [rax-10h], rax
lea rdi, [rsp+118h+var_108]
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)
xorps xmm0, xmm0
lea rdx, [rsp+118h+var_E8]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea rsi, [rsp+118h+var_108]
push 1
pop rcx
mov rdi, rbx
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string&>(std::string&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_E8]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+118h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66BF3
loc_66BE6:
mov [r14], r12
mov rdi, rbx
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
loc_66BF3:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rdx
mov r14, rax
lea rdi, [rsp+118h+var_E8]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
cmp ebx, 1
jnz loc_66D55
mov rdi, r14; void *
call ___cxa_begin_catch
mov r14, rax
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aFailedToParseN; "Failed to parse number: '"
lea rdi, [rsp+118h+var_A8]
lea rdx, [rsp+118h+var_108]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
lea rdx, asc_B315F; "' ("
lea rdi, [rsp+118h+var_88]
lea rsi, [rsp+118h+var_A8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+10h]
lea rdi, [rsp+118h+var_C8]
lea rdx, [rsp+118h+var_109]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+118h+var_68]
lea rsi, [rsp+118h+var_88]
lea rdx, [rsp+118h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdx, a09401910201912+51h; ")"
lea rdi, [rsp+118h+var_48]
lea rsi, [rsp+118h+var_68]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
mov bpl, 1
lea rsi, [rsp+118h+var_48]
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+118h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66CF8
mov r14, rax
mov bpl, 1
loc_66CF8:
lea rdi, [rsp+118h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66D0D
mov r14, rax
mov bpl, 1
loc_66D0D:
lea rdi, [rsp+118h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66D1F
mov r14, rax
mov bpl, 1
loc_66D1F:
lea rdi, [rsp+118h+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66D34
mov r14, rax
mov bpl, 1
loc_66D34:
lea rdi, [rsp+118h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_66D48
jmp short loc_66D50
mov r14, rax
loc_66D48:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_66D50:
call ___cxa_end_catch
loc_66D55:
lea rdi, [rsp+118h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_66D7B
mov rdi, rax
call __clang_call_terminate
mov r14, rax
jmp short loc_66D7B
jmp short $+2
loc_66D70:
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
loc_66D7B:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Parser::parseNumber(long long a1, long long a2, char **a3, char **a4)
{
char *v7; // r12
char *v8; // rsi
int v9; // edi
char v10; // al
char *v11; // rdx
char v12; // cl
int v13; // edi
bool v14; // zf
std::runtime_error *exception; // rbx
int v16; // r9d
_QWORD v18[2]; // [rsp+10h] [rbp-108h] BYREF
char v19; // [rsp+20h] [rbp-F8h] BYREF
_BYTE v20[32]; // [rsp+30h] [rbp-E8h] BYREF
v7 = *a3;
minja::Parser::consumeSpaces(a2, 1);
v8 = *a3;
if ( *a4 == *a3 )
{
v10 = 0;
v11 = *a3;
v12 = 0;
}
else
{
v9 = (unsigned __int8)*v8;
v10 = 0;
v11 = *a3;
if ( v9 == 45 )
{
v12 = 0;
goto LABEL_7;
}
v12 = 0;
if ( v9 == 43 )
goto LABEL_7;
}
while ( v11 != *a4 )
{
v13 = *v11;
if ( (unsigned int)(v13 - 48) >= 0xA )
{
if ( (unsigned __int8)v13 == 46 )
{
v14 = (v12 & 1) == 0;
v12 = 1;
if ( !v14 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Multiple decimal points");
goto LABEL_17;
}
}
else
{
if ( v11 == v8 || ((unsigned __int8)v13 | 0x20) != 0x65 )
break;
v14 = (v10 & 1) == 0;
v10 = 1;
if ( !v14 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Multiple exponents");
LABEL_17:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
}
LABEL_7:
*a3 = ++v11;
}
if ( v11 == v8 )
{
*a3 = v7;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(a1);
}
else
{
v18[0] = &v19;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)v18, v8, (long long)v11);
memset(v20, 0, sizeof(v20));
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string&>(
a1,
(unsigned int)v18,
(unsigned int)v20,
1,
0,
v16);
std::_Function_base::~_Function_base((std::_Function_base *)v20);
std::string::~string(v18);
}
return a1;
}
|
parseNumber:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV R15,RCX
MOV R14,RDX
MOV RAX,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDX]
PUSH 0x1
POP RSI
MOV RDI,RAX
CALL 0x001613ca
MOV RSI,qword ptr [R14]
CMP qword ptr [R15],RSI
JZ 0x00166b04
MOVZX EDI,byte ptr [RSI]
XOR EAX,EAX
MOV RDX,RSI
CMP EDI,0x2d
JZ 0x00166b0d
MOV ECX,0x0
CMP EDI,0x2b
JZ 0x00166b0f
JMP 0x00166b15
LAB_00166b04:
XOR EAX,EAX
MOV RDX,RSI
XOR ECX,ECX
JMP 0x00166b15
LAB_00166b0d:
XOR ECX,ECX
LAB_00166b0f:
INC RDX
MOV qword ptr [R14],RDX
LAB_00166b15:
CMP RDX,qword ptr [R15]
JZ 0x00166b96
MOVSX EDI,byte ptr [RDX]
LEA R8D,[RDI + -0x30]
CMP R8D,0xa
JC 0x00166b0f
MOVZX EDI,DIL
CMP EDI,0x2e
JNZ 0x00166b53
TEST CL,0x1
MOV CL,0x1
JZ 0x00166b0f
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_00166b42:
LEA RSI,[0x1b311a]
MOV RDI,RAX
CALL 0x00123310
LAB_00166b51:
JMP 0x00166b80
LAB_00166b53:
CMP RDX,RSI
JZ 0x00166b96
OR EDI,0x20
CMP EDI,0x65
JNZ 0x00166b96
TEST AL,0x1
MOV AL,0x1
JZ 0x00166b0f
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_00166b71:
LEA RSI,[0x1b3132]
MOV RDI,RAX
CALL 0x00123310
LAB_00166b80:
MOV RSI,qword ptr [0x001fbff0]
MOV RDX,qword ptr [0x001fbf58]
MOV RDI,RBX
CALL 0x00123ef0
LAB_00166b96:
CMP RDX,RSI
JZ 0x00166be6
LEA RAX,[RSP + 0x20]
MOV qword ptr [RAX + -0x10],RAX
LAB_00166ba4:
LEA RDI,[RSP + 0x10]
CALL 0x001521e4
XORPS XMM0,XMM0
LEA RDX,[RSP + 0x30]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_00166bbd:
LEA RSI,[RSP + 0x10]
PUSH 0x1
POP RCX
MOV RDI,RBX
XOR R8D,R8D
CALL 0x00167296
LAB_00166bd0:
LEA RDI,[RSP + 0x30]
CALL 0x00147a12
LEA RDI,[RSP + 0x10]
CALL 0x001241b8
JMP 0x00166bf3
LAB_00166be6:
MOV qword ptr [R14],R12
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0013cfe0
LAB_00166bf3:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* minja::Parser::parseNumber(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string >&,
__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > const&) */
__normal_iterator *
minja::Parser::parseNumber(__normal_iterator *param_1,__normal_iterator *param_2)
{
byte bVar1;
int8 uVar2;
byte *pbVar3;
bool bVar4;
bool bVar5;
bool bVar6;
runtime_error *this;
bool bVar7;
int8 *in_RCX;
int8 *in_RDX;
byte *pbVar8;
int1 *local_108 [2];
int1 local_f8 [16];
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
int8 uStack_d0;
uVar2 = *in_RDX;
consumeSpaces((Parser *)param_2,1);
pbVar3 = (byte *)*in_RDX;
pbVar8 = pbVar3;
if ((byte *)*in_RCX == pbVar3) {
bVar6 = false;
bVar7 = false;
}
else {
bVar6 = false;
bVar5 = bVar6;
if (*pbVar3 == 0x2d) {
bVar4 = false;
goto LAB_00166b0f;
}
bVar7 = false;
bVar4 = bVar7;
if (*pbVar3 == 0x2b) goto LAB_00166b0f;
}
while (pbVar8 != (byte *)*in_RCX) {
bVar1 = *pbVar8;
bVar4 = bVar7;
bVar5 = bVar6;
if (9 < (int)(char)bVar1 - 0x30U) {
if (bVar1 == 0x2e) {
bVar4 = true;
if (bVar7) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00166b42 to 00166b50 has its CatchHandler @ 00166d70 */
std::runtime_error::runtime_error(this,"Multiple decimal points");
LAB_00166b80:
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58);
}
}
else {
if ((pbVar8 == pbVar3) || ((bVar1 | 0x20) != 0x65)) break;
bVar5 = true;
if (bVar6) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00166b71 to 00166b7f has its CatchHandler @ 00166d6e */
std::runtime_error::runtime_error(this,"Multiple exponents");
goto LAB_00166b80;
}
}
}
LAB_00166b0f:
bVar6 = bVar5;
bVar7 = bVar4;
*in_RDX = pbVar8 + 1;
pbVar8 = pbVar8 + 1;
}
if (pbVar8 == pbVar3) {
*in_RDX = uVar2;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)param_1);
}
else {
local_108[0] = local_f8;
/* try { // try from 00166ba4 to 00166bad has its CatchHandler @ 00166d69 */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>(local_108);
local_d8 = 0;
uStack_d0 = 0;
local_e8 = 0;
uStack_e0 = 0;
/* try { // try from 00166bbd to 00166bcf has its CatchHandler @ 00166c06 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string&>
((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1,local_108,&local_e8,1,0);
std::_Function_base::~_Function_base((_Function_base *)&local_e8);
std::__cxx11::string::~string((string *)local_108);
}
return param_1;
}
|
|
57,869
|
my_close
|
eloqsql/mysys/my_open.c
|
int my_close(File fd, myf MyFlags)
{
int err;
char *name= NULL;
DBUG_ENTER("my_close");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE)))
MyFlags|= my_global_flags;
if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
{
name= my_file_info[fd].name;
my_file_info[fd].name= NULL;
my_file_info[fd].type= UNOPEN;
}
#ifndef _WIN32
err= close(fd);
#else
err= my_win_close(fd);
#endif
if (err)
{
DBUG_PRINT("error",("Got error %d on close",err));
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
name,errno);
}
if (name)
{
my_free(name);
}
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
DBUG_RETURN(err);
}
|
O3
|
c
|
my_close:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
xorl %ebx, %ebx
movl $0x0, %r14d
testb $0x18, %r12b
jne 0xbfb1e
leaq 0xb70fdd(%rip), %rax # 0xc30af8
movq (%rax), %r14
leaq 0x2ee9ab(%rip), %rax # 0x3ae4d0
cmpl %edi, (%rax)
jbe 0xbfb5d
leaq 0x2ee9a8(%rip), %rax # 0x3ae4d8
movq (%rax), %rdx
movslq %edi, %rcx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rdx,%rcx)
je 0xbfb5b
addq %rcx, %rdx
movq (%rdx), %rbx
movq $0x0, (%rdx)
movq (%rax), %rax
movl $0x0, 0x8(%rax,%rcx)
jmp 0xbfb5d
xorl %ebx, %ebx
callq 0x2a1c0
movl %eax, %r15d
testl %eax, %eax
je 0xbfba6
orq %r12, %r14
callq 0x2a870
movq %rax, %r12
movl (%rax), %r13d
callq 0xc14ee
movl %r13d, (%rax)
testb $0x18, %r14b
je 0xbfba6
andl $0x440, %r14d # imm = 0x440
orq $0x4, %r14
movl (%r12), %ecx
movl $0x4, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xbad7b
testq %rbx, %rbx
je 0xbfbb3
movq %rbx, %rdi
callq 0xbf54e
leaq 0xb70f4a(%rip), %rax # 0xc30b04
lock
decl (%rax)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
my_close:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
xor ebx, ebx
mov r14d, 0
test r12b, 18h
jnz short loc_BFB1E
lea rax, my_global_flags
mov r14, [rax]
loc_BFB1E:
lea rax, my_file_limit
cmp [rax], edi
jbe short loc_BFB5D
lea rax, my_file_info
mov rdx, [rax]
movsxd rcx, edi
shl rcx, 4
cmp dword ptr [rdx+rcx+8], 0
jz short loc_BFB5B
add rdx, rcx
mov rbx, [rdx]
mov qword ptr [rdx], 0
mov rax, [rax]
mov dword ptr [rax+rcx+8], 0
jmp short loc_BFB5D
loc_BFB5B:
xor ebx, ebx
loc_BFB5D:
call _close
mov r15d, eax
test eax, eax
jz short loc_BFBA6
or r14, r12
call ___errno_location
mov r12, rax
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
test r14b, 18h
jz short loc_BFBA6
and r14d, 440h
or r14, 4
mov ecx, [r12]
mov edi, 4
mov rsi, r14
mov rdx, rbx
xor eax, eax
call my_error
loc_BFBA6:
test rbx, rbx
jz short loc_BFBB3
mov rdi, rbx
call my_free
loc_BFBB3:
lea rax, my_file_opened
lock dec dword ptr [rax]
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_close(long long a1, __int16 a2)
{
long long v2; // rbx
__int16 v3; // r14
long long v4; // rcx
unsigned int v5; // r15d
__int16 v6; // r14
unsigned int *v7; // r12
unsigned int v8; // r13d
v2 = 0LL;
v3 = 0;
if ( (a2 & 0x18) == 0 )
v3 = my_global_flags;
if ( my_file_limit > (unsigned int)a1 )
{
v4 = 16LL * (int)a1;
if ( *(_DWORD *)((char *)my_file_info + v4 + 8) )
{
v2 = *(_QWORD *)((char *)my_file_info + v4);
*(_QWORD *)((char *)my_file_info + v4) = 0LL;
*(_DWORD *)((char *)my_file_info + v4 + 8) = 0;
}
else
{
v2 = 0LL;
}
}
v5 = close(a1);
if ( v5 )
{
v6 = a2 | v3;
v7 = (unsigned int *)__errno_location(a1);
v8 = *v7;
*(_DWORD *)my_thread_var(a1) = v8;
if ( (v6 & 0x18) != 0 )
my_error(4u, v6 & 0x440 | 4LL, v2, *v7);
}
if ( v2 )
my_free(v2);
_InterlockedDecrement(my_file_opened);
return v5;
}
|
my_close:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RSI
XOR EBX,EBX
MOV R14D,0x0
TEST R12B,0x18
JNZ 0x001bfb1e
LEA RAX,[0xd30af8]
MOV R14,qword ptr [RAX]
LAB_001bfb1e:
LEA RAX,[0x4ae4d0]
CMP dword ptr [RAX],EDI
JBE 0x001bfb5d
LEA RAX,[0x4ae4d8]
MOV RDX,qword ptr [RAX]
MOVSXD RCX,EDI
SHL RCX,0x4
CMP dword ptr [RDX + RCX*0x1 + 0x8],0x0
JZ 0x001bfb5b
ADD RDX,RCX
MOV RBX,qword ptr [RDX]
MOV qword ptr [RDX],0x0
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + RCX*0x1 + 0x8],0x0
JMP 0x001bfb5d
LAB_001bfb5b:
XOR EBX,EBX
LAB_001bfb5d:
CALL 0x0012a1c0
MOV R15D,EAX
TEST EAX,EAX
JZ 0x001bfba6
OR R14,R12
CALL 0x0012a870
MOV R12,RAX
MOV R13D,dword ptr [RAX]
CALL 0x001c14ee
MOV dword ptr [RAX],R13D
TEST R14B,0x18
JZ 0x001bfba6
AND R14D,0x440
OR R14,0x4
MOV ECX,dword ptr [R12]
MOV EDI,0x4
MOV RSI,R14
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001bad7b
LAB_001bfba6:
TEST RBX,RBX
JZ 0x001bfbb3
MOV RDI,RBX
CALL 0x001bf54e
LAB_001bfbb3:
LEA RAX,[0xd30b04]
DEC.LOCK dword ptr [RAX]
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_close(uint param_1,ulong param_2)
{
int iVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
long lVar6;
ulong uVar7;
lVar6 = 0;
uVar7 = 0;
if ((param_2 & 0x18) == 0) {
uVar7 = my_global_flags;
}
if (param_1 < my_file_limit) {
lVar5 = (long)(int)param_1 * 0x10;
if (*(int *)(my_file_info + lVar5 + 8) == 0) {
lVar6 = 0;
}
else {
lVar6 = *(long *)(my_file_info + lVar5);
*(long *)(my_file_info + lVar5) = 0;
*(int4 *)(my_file_info + lVar5 + 8) = 0;
}
}
iVar2 = close(param_1);
if (iVar2 != 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
if (((uVar7 | param_2) & 0x18) != 0) {
my_error(4,(uint)(uVar7 | param_2) & 0x440 | 4,lVar6,*piVar3);
}
}
if (lVar6 != 0) {
my_free(lVar6);
}
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
return iVar2;
}
|
|
57,870
|
my_strntoull10rnd_8bit
|
eloqsql/strings/ctype-simple.c
|
ulonglong
my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *str, size_t length, int unsigned_flag,
char **endptr, int *error)
{
const char *dot, *end9, *beg, *end= str + length;
ulonglong ull;
ulong ul;
uchar ch;
int shift= 0, digits= 0, negative, addon;
/* Skip leading spaces and tabs */
for ( ; str < end && my_isspace(&my_charset_latin1, *str) ; )
str++;
if (str >= end)
goto ret_edom;
if ((negative= (*str == '-')) || *str=='+') /* optional sign */
{
if (++str == end)
goto ret_edom;
}
beg= str;
end9= (str + 9) > end ? end : (str + 9);
/* Accumulate small number into ulong, for performance purposes */
for (ul= 0 ; str < end9 && (ch= (uchar) (*str - '0')) < 10; str++)
{
ul= ul * 10 + ch;
}
if (str >= end) /* Small number without dots and expanents */
{
*endptr= (char*) str;
if (negative)
{
if (unsigned_flag)
{
*error= ul ? MY_ERRNO_ERANGE : 0;
return 0;
}
else
{
*error= 0;
return (ulonglong) (longlong) -(long) ul;
}
}
else
{
*error=0;
return (ulonglong) ul;
}
}
digits= (int) (str - beg);
/* Continue to accumulate into ulonglong */
for (dot= NULL, ull= ul; str < end; str++)
{
if ((ch= (uchar) (*str - '0')) < 10)
{
if (ull < CUTOFF || (ull == CUTOFF && ch <= CUTLIM))
{
ull= ull * 10 + ch;
digits++;
continue;
}
/*
Adding the next digit would overflow.
Remember the next digit in "addon", for rounding.
Scan all digits with an optional single dot.
*/
if (ull == CUTOFF)
{
ull= ULONGLONG_MAX;
addon= 1;
str++;
}
else
addon= (*str >= '5');
if (!dot)
{
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; shift++, str++);
if (str < end && *str == '.')
{
str++;
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; str++);
}
}
else
{
shift= (int) (dot - str);
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; str++);
}
goto exp;
}
if (*str == '.')
{
if (dot)
{
/* The second dot character */
addon= 0;
goto exp;
}
else
{
dot= str + 1;
}
continue;
}
/* Unknown character, exit the loop */
break;
}
shift= dot ? (int)(dot - str) : 0; /* Right shift */
addon= 0;
exp: /* [ E [ <sign> ] <unsigned integer> ] */
if (!digits)
{
str= beg;
goto ret_edom;
}
if (str < end && (*str == 'e' || *str == 'E'))
{
str++;
if (str < end)
{
int negative_exp, exponent;
if ((negative_exp= (*str == '-')) || *str=='+')
{
if (++str == end)
{
str-= 2; /* 'e-' or 'e+' not followed by digits */
goto ret_sign;
}
}
if (shift > 0 && !negative_exp)
goto ret_too_big;
for (exponent= 0 ; str < end && (ch= (uchar) (*str - '0')) < 10; str++)
{
if (negative_exp)
{
if (exponent - shift > DIGITS_IN_ULONGLONG)
goto ret_zero;
}
else
{
if (exponent + shift > DIGITS_IN_ULONGLONG)
goto ret_too_big;
}
exponent= exponent * 10 + ch;
}
shift+= negative_exp ? -exponent : exponent;
}
else
str--; /* 'e' not followed by digits */
}
if (shift == 0) /* No shift, check addon digit */
{
if (addon)
{
if (ull == ULONGLONG_MAX)
goto ret_too_big;
ull++;
}
goto ret_sign;
}
if (shift < 0) /* Right shift */
{
ulonglong d, r;
if (-shift >= DIGITS_IN_ULONGLONG)
goto ret_zero; /* Exponent is a big negative number, return 0 */
d= d10[-shift];
r= (ull % d) * 2;
ull /= d;
if (r >= d)
ull++;
goto ret_sign;
}
if (shift > DIGITS_IN_ULONGLONG) /* Huge left shift */
{
if (!ull)
goto ret_sign;
goto ret_too_big;
}
for ( ; shift > 0; shift--, ull*= 10) /* Left shift */
{
if (ull > CUTOFF)
goto ret_too_big; /* Overflow, number too big */
}
ret_sign:
*endptr= (char*) str;
if (!unsigned_flag)
{
if (negative)
{
if (ull >= (ulonglong) LONGLONG_MIN)
{
if (ull != (ulonglong) LONGLONG_MIN)
*error= MY_ERRNO_ERANGE;
return (ulonglong) LONGLONG_MIN;
}
*error= 0;
return (ulonglong) -(longlong) ull;
}
else
{
if (ull > (ulonglong) LONGLONG_MAX)
{
*error= MY_ERRNO_ERANGE;
return (ulonglong) LONGLONG_MAX;
}
*error= 0;
return ull;
}
}
/* Unsigned number */
if (negative && ull)
{
*error= MY_ERRNO_ERANGE;
return 0;
}
*error= 0;
return ull;
ret_zero:
*endptr= (char*) str;
*error= 0;
return 0;
ret_edom:
*endptr= (char*) str;
*error= MY_ERRNO_EDOM;
return 0;
ret_too_big:
*endptr= (char*) str;
*error= MY_ERRNO_ERANGE;
return unsigned_flag ?
ULONGLONG_MAX :
negative ? (ulonglong) LONGLONG_MIN : (ulonglong) LONGLONG_MAX;
}
|
O3
|
c
|
my_strntoull10rnd_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdx, %rdx
jle 0x7168f
leaq (%rsi,%rdx), %r11
leaq 0x2e899b(%rip), %rax # 0x359d70
movq 0x40(%rax), %rax
decq %rdx
movzbl (%rsi), %r10d
testb $0x8, 0x1(%rax,%r10)
je 0x713f8
incq %rsi
decq %rdx
cmpq %r11, %rsi
jb 0x713dc
jmp 0x7168f
cmpl $0x2b, %r10d
je 0x71404
cmpl $0x2d, %r10d
jne 0x71410
testq %rdx, %rdx
je 0x714e7
incq %rsi
leaq 0x9(%rsi), %rax
cmpq %r11, %rax
cmovaq %r11, %rax
xorl %edi, %edi
movq %rsi, %r14
cmpq %rax, %rsi
jae 0x71443
movb (%r14), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x71443
leaq (%rdi,%rdi,4), %rdi
movzbl %dl, %edx
leaq (%rdx,%rdi,2), %rdi
incq %r14
cmpq %rax, %r14
jb 0x71425
cmpq %r11, %r14
jae 0x714bd
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movl %r14d, %r12d
subl %esi, %r12d
xorl %ebx, %ebx
movl %r14d, %r13d
movb (%r14), %al
leal -0x30(%rax), %edx
cmpb $0x9, %dl
ja 0x7148c
cmpq %r15, %rdi
jb 0x7147c
jne 0x714fc
cmpb $0x5, %dl
ja 0x714fc
leaq (%rdi,%rdi,4), %rax
movzbl %dl, %edx
leaq (%rdx,%rax,2), %rdi
incl %r12d
jmp 0x71499
cmpb $0x2e, %al
jne 0x714a4
testq %rbx, %rbx
jne 0x714ef
leaq 0x1(%r14), %rbx
incq %r14
incl %r13d
cmpq %r11, %r14
jb 0x7145d
movl %ebx, %eax
subl %r14d, %eax
xorl %r13d, %r13d
testq %rbx, %rbx
cmovel %r13d, %eax
movl %eax, %ebx
movq %rdi, %rax
jmp 0x715ba
movq %r14, (%r8)
cmpl $0x2d, %r10d
jne 0x71772
testl %ecx, %ecx
je 0x7175e
xorl %eax, %eax
testq %rdi, %rdi
movl $0x22, %ecx
cmovel %eax, %ecx
movl %ecx, (%r9)
jmp 0x71699
movq %r11, %rsi
jmp 0x7168f
xorl %ebx, %ebx
movq %rdi, %rax
xorl %r13d, %r13d
jmp 0x715ba
movl %ecx, -0x30(%rbp)
cmpb $0x35, %al
setae %al
movl %eax, -0x2c(%rbp)
xorl %ecx, %ecx
cmpq %r15, %rdi
movq $-0x1, %rax
cmovneq %rdi, %rax
sete %cl
movl -0x2c(%rbp), %edx
orb %cl, %dl
movl %edx, -0x2c(%rbp)
movq %rcx, %rdx
movq %r15, %rcx
leaq (%r14,%rdx), %r15
testq %rbx, %rbx
je 0x7156c
xorl %edx, %edx
cmpq %rcx, %rdi
sete %dl
subl %edx, %ebx
subl %r13d, %ebx
cmpq %r11, %r15
movl -0x30(%rbp), %ecx
jae 0x715a9
movl -0x2c(%rbp), %r13d
movb (%r15), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x7155d
incq %r15
cmpq %r11, %r15
jb 0x7154a
movq %r15, %r14
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
jmp 0x715ba
xorl %ebx, %ebx
cmpq %r11, %r15
movl -0x30(%rbp), %ecx
jae 0x715a9
leaq (%r14,%rdx), %rdi
xorl %ebx, %ebx
leaq (%rdx,%rbx), %r15
movb (%r14,%r15), %r15b
leal -0x30(%r15), %r13d
cmpb $0x9, %r13b
ja 0x717b5
leaq (%rbx,%rdi), %r15
incq %r15
incq %rbx
cmpq %r11, %r15
jb 0x7157c
addq %rbx, %rdi
movq %rdi, %r14
jmp 0x715ac
movq %r15, %r14
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movl -0x2c(%rbp), %r13d
testl %r12d, %r12d
je 0x7168f
cmpq %r11, %r14
jae 0x71678
movzbl (%r14), %edx
orl $0x20, %edx
cmpl $0x65, %edx
jne 0x71678
leaq 0x1(%r14), %rsi
cmpq %r11, %rsi
jae 0x71678
movzbl (%rsi), %edi
cmpl $0x2d, %edi
je 0x715f6
cmpl $0x2b, %edi
jne 0x71603
leaq 0x2(%r14), %rsi
cmpq %r11, %rsi
je 0x716e2
testl %ebx, %ebx
jle 0x71611
cmpb $0x2d, %dil
jne 0x716ea
xorl %r14d, %r14d
cmpq %r11, %rsi
jae 0x71664
xorl %r14d, %r14d
movb (%rsi), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x71664
movq %r15, %r12
cmpb $0x2d, %dil
jne 0x71640
movl %r14d, %r15d
subl %ebx, %r15d
cmpl $0x14, %r15d
jle 0x7164e
jmp 0x716c1
leal (%r14,%rbx), %r15d
cmpl $0x14, %r15d
jg 0x716ea
movzbl %dl, %edx
leal (%r14,%r14,4), %r14d
leal (%rdx,%r14,2), %r14d
incq %rsi
cmpq %r11, %rsi
movq %r12, %r15
jb 0x7161c
movl %r14d, %edx
negl %edx
cmpb $0x2d, %dil
cmovnel %r14d, %edx
addl %ebx, %edx
movl %edx, %ebx
movq %rsi, %r14
testl %ebx, %ebx
je 0x716a9
js 0x716b9
cmpl $0x14, %ebx
jbe 0x716cd
testq %rax, %rax
jne 0x716e7
xorl %edi, %edi
jmp 0x71735
movq %rsi, (%r8)
movl $0x21, (%r9)
xorl %edi, %edi
movq %rdi, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %r13b, %r13b
je 0x716e2
cmpq $-0x1, %rax
je 0x716e7
incq %rax
jmp 0x716e2
cmpl $-0x13, %ebx
jae 0x71716
movq %r14, %rsi
movq %rsi, (%r8)
movl $0x0, (%r9)
jmp 0x71699
incl %ebx
cmpq %r15, %rax
ja 0x716e7
addq %rax, %rax
leaq (%rax,%rax,4), %rax
decl %ebx
cmpl $0x1, %ebx
jg 0x716cf
movq %rax, %rdi
jmp 0x71735
movq %r14, %rsi
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
leaq -0x1(%rax), %rdx
cmpl $0x2d, %r10d
movq %rsi, (%r8)
movl $0x22, (%r9)
cmoveq %rax, %rdx
xorl %edi, %edi
negl %ecx
sbbq %rdi, %rdi
orq %rdx, %rdi
jmp 0x7169b
negl %ebx
leaq 0x16de11(%rip), %rdx # 0x1df530
movq (%rdx,%rbx,8), %rsi
xorl %edx, %edx
divq %rsi
movq %rax, %rdi
addq %rdx, %rdx
cmpq %rsi, %rdx
sbbq $-0x1, %rdi
movq %r14, (%r8)
testl %ecx, %ecx
je 0x71753
cmpl $0x2d, %r10d
jne 0x71772
testq %rdi, %rdi
je 0x71772
movl $0x22, (%r9)
jmp 0x71699
cmpl $0x2d, %r10d
jne 0x7176d
testq %rdi, %rdi
js 0x7177e
movl $0x0, (%r9)
negq %rdi
jmp 0x7169b
testq %rdi, %rdi
js 0x7179c
movl $0x0, (%r9)
jmp 0x7169b
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
negq %rdi
jo 0x71794
movl $0x22, (%r9)
movq %rax, %rdi
jmp 0x7169b
movl $0x22, (%r9)
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
decq %rdi
jmp 0x7169b
cmpb $0x2e, %r15b
movl -0x2c(%rbp), %r13d
jne 0x717f2
leaq (%rbx,%rdi), %rdx
incq %rdx
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movq %rdx, %r14
cmpq %r11, %rdx
jae 0x715ba
movb (%r14), %dil
addb $-0x30, %dil
leaq 0x1(%r14), %rdx
cmpb $0xa, %dil
jb 0x717d0
jmp 0x715ba
addq %rbx, %rdi
movq %rdi, %r14
jmp 0x71560
|
my_strntoull10rnd_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rdx, rdx
jle loc_7168F
lea r11, [rsi+rdx]
lea rax, my_charset_latin1
mov rax, [rax+40h]
dec rdx
loc_713DC:
movzx r10d, byte ptr [rsi]
test byte ptr [rax+r10+1], 8
jz short loc_713F8
inc rsi
dec rdx
cmp rsi, r11
jb short loc_713DC
jmp loc_7168F
loc_713F8:
cmp r10d, 2Bh ; '+'
jz short loc_71404
cmp r10d, 2Dh ; '-'
jnz short loc_71410
loc_71404:
test rdx, rdx
jz loc_714E7
inc rsi
loc_71410:
lea rax, [rsi+9]
cmp rax, r11
cmova rax, r11
xor edi, edi
mov r14, rsi
cmp rsi, rax
jnb short loc_71443
loc_71425:
mov dl, [r14]
add dl, 0D0h
cmp dl, 9
ja short loc_71443
lea rdi, [rdi+rdi*4]
movzx edx, dl
lea rdi, [rdx+rdi*2]
inc r14
cmp r14, rax
jb short loc_71425
loc_71443:
cmp r14, r11
jnb short loc_714BD
mov r15, 1999999999999999h
mov r12d, r14d
sub r12d, esi
xor ebx, ebx
mov r13d, r14d
loc_7145D:
mov al, [r14]
lea edx, [rax-30h]
cmp dl, 9
ja short loc_7148C
cmp rdi, r15
jb short loc_7147C
jnz loc_714FC
cmp dl, 5
ja loc_714FC
loc_7147C:
lea rax, [rdi+rdi*4]
movzx edx, dl
lea rdi, [rdx+rax*2]
inc r12d
jmp short loc_71499
loc_7148C:
cmp al, 2Eh ; '.'
jnz short loc_714A4
test rbx, rbx
jnz short loc_714EF
lea rbx, [r14+1]
loc_71499:
inc r14
inc r13d
cmp r14, r11
jb short loc_7145D
loc_714A4:
mov eax, ebx
sub eax, r14d
xor r13d, r13d
test rbx, rbx
cmovz eax, r13d
mov ebx, eax
mov rax, rdi
jmp loc_715BA
loc_714BD:
mov [r8], r14
cmp r10d, 2Dh ; '-'
jnz loc_71772
test ecx, ecx
jz loc_7175E
xor eax, eax
test rdi, rdi
mov ecx, 22h ; '"'
cmovz ecx, eax
mov [r9], ecx
jmp loc_71699
loc_714E7:
mov rsi, r11
jmp loc_7168F
loc_714EF:
xor ebx, ebx
mov rax, rdi
xor r13d, r13d
jmp loc_715BA
loc_714FC:
mov [rbp+var_30], ecx
cmp al, 35h ; '5'
setnb al
mov [rbp+var_2C], eax
xor ecx, ecx
cmp rdi, r15
mov rax, 0FFFFFFFFFFFFFFFFh
cmovnz rax, rdi
setz cl
mov edx, [rbp+var_2C]
or dl, cl
mov [rbp+var_2C], edx
mov rdx, rcx
mov rcx, r15
lea r15, [r14+rdx]
test rbx, rbx
jz short loc_7156C
xor edx, edx
cmp rdi, rcx
setz dl
sub ebx, edx
sub ebx, r13d
cmp r15, r11
mov ecx, [rbp+var_30]
jnb short loc_715A9
mov r13d, [rbp+var_2C]
loc_7154A:
mov dl, [r15]
add dl, 0D0h
cmp dl, 9
ja short loc_7155D
inc r15
cmp r15, r11
jb short loc_7154A
loc_7155D:
mov r14, r15
loc_71560:
mov r15, 1999999999999999h
jmp short loc_715BA
loc_7156C:
xor ebx, ebx
cmp r15, r11
mov ecx, [rbp+var_30]
jnb short loc_715A9
lea rdi, [r14+rdx]
xor ebx, ebx
loc_7157C:
lea r15, [rdx+rbx]
mov r15b, [r14+r15]
lea r13d, [r15-30h]
cmp r13b, 9
ja loc_717B5
lea r15, [rbx+rdi]
inc r15
inc rbx
cmp r15, r11
jb short loc_7157C
add rdi, rbx
mov r14, rdi
jmp short loc_715AC
loc_715A9:
mov r14, r15
loc_715AC:
mov r15, 1999999999999999h
mov r13d, [rbp+var_2C]
loc_715BA:
test r12d, r12d
jz loc_7168F
cmp r14, r11
jnb loc_71678
movzx edx, byte ptr [r14]
or edx, 20h
cmp edx, 65h ; 'e'
jnz loc_71678
lea rsi, [r14+1]
cmp rsi, r11
jnb loc_71678
movzx edi, byte ptr [rsi]
cmp edi, 2Dh ; '-'
jz short loc_715F6
cmp edi, 2Bh ; '+'
jnz short loc_71603
loc_715F6:
lea rsi, [r14+2]
cmp rsi, r11
jz loc_716E2
loc_71603:
test ebx, ebx
jle short loc_71611
cmp dil, 2Dh ; '-'
jnz loc_716EA
loc_71611:
xor r14d, r14d
cmp rsi, r11
jnb short loc_71664
xor r14d, r14d
loc_7161C:
mov dl, [rsi]
add dl, 0D0h
cmp dl, 9
ja short loc_71664
mov r12, r15
cmp dil, 2Dh ; '-'
jnz short loc_71640
mov r15d, r14d
sub r15d, ebx
cmp r15d, 14h
jle short loc_7164E
jmp loc_716C1
loc_71640:
lea r15d, [r14+rbx]
cmp r15d, 14h
jg loc_716EA
loc_7164E:
movzx edx, dl
lea r14d, [r14+r14*4]
lea r14d, [rdx+r14*2]
inc rsi
cmp rsi, r11
mov r15, r12
jb short loc_7161C
loc_71664:
mov edx, r14d
neg edx
cmp dil, 2Dh ; '-'
cmovnz edx, r14d
add edx, ebx
mov ebx, edx
mov r14, rsi
loc_71678:
test ebx, ebx
jz short loc_716A9
js short loc_716B9
cmp ebx, 14h
jbe short loc_716CD
test rax, rax
jnz short loc_716E7
xor edi, edi
jmp loc_71735
loc_7168F:
mov [r8], rsi
mov dword ptr [r9], 21h ; '!'
loc_71699:
xor edi, edi
loc_7169B:
mov rax, rdi
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_716A9:
test r13b, r13b
jz short loc_716E2
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_716E7
inc rax
jmp short loc_716E2
loc_716B9:
cmp ebx, 0FFFFFFEDh
jnb short loc_71716
mov rsi, r14
loc_716C1:
mov [r8], rsi
mov dword ptr [r9], 0
jmp short loc_71699
loc_716CD:
inc ebx
loc_716CF:
cmp rax, r15
ja short loc_716E7
add rax, rax
lea rax, [rax+rax*4]
dec ebx
cmp ebx, 1
jg short loc_716CF
loc_716E2:
mov rdi, rax
jmp short loc_71735
loc_716E7:
mov rsi, r14
loc_716EA:
mov rax, 8000000000000000h
lea rdx, [rax-1]
cmp r10d, 2Dh ; '-'
mov [r8], rsi
mov dword ptr [r9], 22h ; '"'
cmovz rdx, rax
xor edi, edi
neg ecx
sbb rdi, rdi
or rdi, rdx
jmp short loc_7169B
loc_71716:
neg ebx
lea rdx, d10
mov rsi, [rdx+rbx*8]
xor edx, edx
div rsi
mov rdi, rax
add rdx, rdx
cmp rdx, rsi
sbb rdi, 0FFFFFFFFFFFFFFFFh
loc_71735:
mov [r8], r14
test ecx, ecx
jz short loc_71753
cmp r10d, 2Dh ; '-'
jnz short loc_71772
test rdi, rdi
jz short loc_71772
mov dword ptr [r9], 22h ; '"'
jmp loc_71699
loc_71753:
cmp r10d, 2Dh ; '-'
jnz short loc_7176D
test rdi, rdi
js short loc_7177E
loc_7175E:
mov dword ptr [r9], 0
neg rdi
jmp loc_7169B
loc_7176D:
test rdi, rdi
js short loc_7179C
loc_71772:
mov dword ptr [r9], 0
jmp loc_7169B
loc_7177E:
mov rax, 8000000000000000h
neg rdi
jo short loc_71794
mov dword ptr [r9], 22h ; '"'
loc_71794:
mov rdi, rax
jmp loc_7169B
loc_7179C:
mov dword ptr [r9], 22h ; '"'
mov rdi, 8000000000000000h
dec rdi
jmp loc_7169B
loc_717B5:
cmp r15b, 2Eh ; '.'
mov r13d, [rbp+var_2C]
jnz short loc_717F2
lea rdx, [rbx+rdi]
inc rdx
mov r15, 1999999999999999h
loc_717D0:
mov r14, rdx
cmp rdx, r11
jnb loc_715BA
mov dil, [r14]
add dil, 0D0h
lea rdx, [r14+1]
cmp dil, 0Ah
jb short loc_717D0
jmp loc_715BA
loc_717F2:
add rdi, rbx
mov r14, rdi
jmp loc_71560
|
long long my_strntoull10rnd_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
int a4,
unsigned __int8 **a5,
int *a6)
{
unsigned long long v6; // r11
long long v7; // rdx
long long v8; // r10
unsigned __int8 *v9; // rax
long long v10; // rdi
unsigned __int8 *i; // r14
unsigned __int8 v12; // dl
int v13; // r12d
_BYTE *v14; // rbx
int v15; // r13d
unsigned __int8 v16; // al
unsigned __int8 v17; // dl
int v18; // eax
bool v19; // r13
unsigned long long v20; // rax
int v21; // ecx
long long v22; // rcx
long long v23; // rdx
unsigned __int8 *v24; // r15
unsigned __int8 *v25; // rdi
char v26; // r15
unsigned long long v27; // r15
unsigned __int8 *v28; // rsi
int v29; // edi
int v30; // r14d
unsigned __int8 v31; // dl
int v32; // edx
int v34; // ebx
unsigned long long v35; // rdx
unsigned long long v36; // rsi
unsigned __int8 *v37; // rdx
unsigned __int8 v38; // di
int v39; // [rsp+0h] [rbp-30h]
bool v40; // [rsp+4h] [rbp-2Ch]
bool v41; // [rsp+4h] [rbp-2Ch]
if ( a3 <= 0 )
goto LABEL_76;
v6 = (unsigned long long)&a2[a3];
v7 = a3 - 1;
while ( 1 )
{
v8 = *a2;
if ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v8 + 1) & 8) == 0 )
break;
++a2;
--v7;
if ( (unsigned long long)a2 >= v6 )
goto LABEL_76;
}
if ( (_DWORD)v8 == 43 || (_DWORD)v8 == 45 )
{
if ( !v7 )
{
a2 = (unsigned __int8 *)v6;
goto LABEL_76;
}
++a2;
}
v9 = a2 + 9;
if ( (unsigned long long)(a2 + 9) > v6 )
v9 = (unsigned __int8 *)v6;
v10 = 0LL;
for ( i = a2; i < v9; ++i )
{
v12 = *i - 48;
if ( v12 > 9u )
break;
v10 = v12 + 10 * v10;
}
if ( (unsigned long long)i >= v6 )
{
*a5 = i;
if ( (_DWORD)v8 != 45 )
goto LABEL_102;
if ( a4 )
{
v21 = 34;
if ( !v10 )
v21 = 0;
*a6 = v21;
return 0LL;
}
goto LABEL_100;
}
v13 = (_DWORD)i - (_DWORD)a2;
v14 = 0LL;
v15 = (int)i;
while ( 1 )
{
v16 = *i;
v17 = *i - 48;
if ( v17 <= 9u )
break;
if ( v16 != 46 )
goto LABEL_26;
if ( v14 )
{
LODWORD(v14) = 0;
v20 = v10;
v19 = 0;
goto LABEL_51;
}
v14 = i + 1;
LABEL_25:
++i;
++v15;
if ( (unsigned long long)i >= v6 )
{
LABEL_26:
v18 = (_DWORD)v14 - (_DWORD)i;
v19 = 0;
if ( !v14 )
v18 = 0;
LODWORD(v14) = v18;
v20 = v10;
goto LABEL_51;
}
}
if ( (unsigned long long)v10 < 0x1999999999999999LL || v10 == 0x1999999999999999LL && v17 <= 5u )
{
v10 = v17 + 10 * v10;
++v13;
goto LABEL_25;
}
v39 = a4;
v40 = v16 >= 0x35u;
v22 = 0LL;
v20 = -1LL;
if ( v10 != 0x1999999999999999LL )
v20 = v10;
LOBYTE(v22) = v10 == 0x1999999999999999LL;
v41 = v10 == 0x1999999999999999LL || v40;
v23 = v22;
v24 = &i[v22];
if ( v14 )
{
LODWORD(v14) = (_DWORD)v14 - (v10 == 0x1999999999999999LL) - v15;
a4 = v39;
if ( (unsigned long long)v24 < v6 )
{
v19 = v41;
do
{
if ( (unsigned __int8)(*v24 - 48) > 9u )
break;
++v24;
}
while ( (unsigned long long)v24 < v6 );
i = v24;
goto LABEL_51;
}
LABEL_49:
i = v24;
LABEL_50:
v19 = v41;
}
else
{
LODWORD(v14) = 0;
a4 = v39;
if ( (unsigned long long)v24 >= v6 )
goto LABEL_49;
v25 = &i[v23];
v14 = 0LL;
while ( 1 )
{
v26 = v14[v23 + (_QWORD)i];
if ( (unsigned __int8)(v26 - 48) > 9u )
break;
v27 = (unsigned long long)&v25[(_QWORD)v14++ + 1];
if ( v27 >= v6 )
{
i = &v25[(_QWORD)v14];
goto LABEL_50;
}
}
v19 = v41;
if ( v26 == 46 )
{
v37 = &v25[(_QWORD)v14 + 1];
do
{
i = v37;
if ( (unsigned long long)v37 >= v6 )
break;
v38 = *v37++ - 48;
}
while ( v38 < 0xAu );
}
else
{
i = &v25[(_QWORD)v14];
}
}
LABEL_51:
if ( !v13 )
{
LABEL_76:
*a5 = a2;
*a6 = 33;
return 0LL;
}
if ( (unsigned long long)i >= v6 )
goto LABEL_71;
if ( (*i | 0x20) != 0x65 )
goto LABEL_71;
v28 = i + 1;
if ( (unsigned long long)(i + 1) >= v6 )
goto LABEL_71;
v29 = *v28;
if ( v29 == 45 || v29 == 43 )
{
v28 = i + 2;
if ( i + 2 == (unsigned __int8 *)v6 )
{
LABEL_88:
v10 = v20;
LABEL_94:
*a5 = i;
if ( a4 )
{
if ( (_DWORD)v8 == 45 && v10 )
{
*a6 = 34;
return 0LL;
}
LABEL_102:
*a6 = 0;
return v10;
}
if ( (_DWORD)v8 != 45 )
{
if ( v10 < 0 )
{
*a6 = 34;
return 0x7FFFFFFFFFFFFFFFLL;
}
goto LABEL_102;
}
if ( v10 < 0 )
{
if ( !__OFSUB__(-v10, 1LL) )
*a6 = 34;
return 0x8000000000000000LL;
}
LABEL_100:
*a6 = 0;
return -v10;
}
}
if ( (int)v14 > 0 && (_BYTE)v29 != 45 )
goto LABEL_90;
v30 = 0;
if ( (unsigned long long)v28 < v6 )
{
v30 = 0;
do
{
v31 = *v28 - 48;
if ( v31 > 9u )
break;
if ( (_BYTE)v29 == 45 )
{
if ( v30 - (int)v14 > 20 )
goto LABEL_84;
}
else if ( v30 + (int)v14 > 20 )
{
goto LABEL_90;
}
v30 = v31 + 10 * v30;
++v28;
}
while ( (unsigned long long)v28 < v6 );
}
v32 = -v30;
if ( (_BYTE)v29 != 45 )
v32 = v30;
LODWORD(v14) = (_DWORD)v14 + v32;
i = v28;
LABEL_71:
if ( !(_DWORD)v14 )
{
if ( v19 )
{
if ( v20 == -1LL )
goto LABEL_89;
++v20;
}
goto LABEL_88;
}
if ( (int)v14 < 0 )
{
if ( (unsigned int)v14 < 0xFFFFFFED )
{
v28 = i;
LABEL_84:
*a5 = v28;
*a6 = 0;
return 0LL;
}
v36 = d10[-(int)v14];
v10 = v20 / v36 - ((2 * (v20 % v36) < v36) - 1LL);
goto LABEL_94;
}
if ( (unsigned int)v14 <= 0x14 )
{
v34 = (_DWORD)v14 + 1;
while ( v20 <= 0x1999999999999999LL )
{
v20 *= 10LL;
if ( --v34 <= 1 )
goto LABEL_88;
}
}
else if ( !v20 )
{
v10 = 0LL;
goto LABEL_94;
}
LABEL_89:
v28 = i;
LABEL_90:
v35 = 0x7FFFFFFFFFFFFFFFLL;
*a5 = v28;
*a6 = 34;
if ( (_DWORD)v8 == 45 )
v35 = 0x8000000000000000LL;
return v35 | -(long long)(a4 != 0);
}
|
my_strntoull10rnd_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RDX,RDX
JLE 0x0017168f
LEA R11,[RSI + RDX*0x1]
LEA RAX,[0x459d70]
MOV RAX,qword ptr [RAX + 0x40]
DEC RDX
LAB_001713dc:
MOVZX R10D,byte ptr [RSI]
TEST byte ptr [RAX + R10*0x1 + 0x1],0x8
JZ 0x001713f8
INC RSI
DEC RDX
CMP RSI,R11
JC 0x001713dc
JMP 0x0017168f
LAB_001713f8:
CMP R10D,0x2b
JZ 0x00171404
CMP R10D,0x2d
JNZ 0x00171410
LAB_00171404:
TEST RDX,RDX
JZ 0x001714e7
INC RSI
LAB_00171410:
LEA RAX,[RSI + 0x9]
CMP RAX,R11
CMOVA RAX,R11
XOR EDI,EDI
MOV R14,RSI
CMP RSI,RAX
JNC 0x00171443
LAB_00171425:
MOV DL,byte ptr [R14]
ADD DL,0xd0
CMP DL,0x9
JA 0x00171443
LEA RDI,[RDI + RDI*0x4]
MOVZX EDX,DL
LEA RDI,[RDX + RDI*0x2]
INC R14
CMP R14,RAX
JC 0x00171425
LAB_00171443:
CMP R14,R11
JNC 0x001714bd
MOV R15,0x1999999999999999
MOV R12D,R14D
SUB R12D,ESI
XOR EBX,EBX
MOV R13D,R14D
LAB_0017145d:
MOV AL,byte ptr [R14]
LEA EDX,[RAX + -0x30]
CMP DL,0x9
JA 0x0017148c
CMP RDI,R15
JC 0x0017147c
JNZ 0x001714fc
CMP DL,0x5
JA 0x001714fc
LAB_0017147c:
LEA RAX,[RDI + RDI*0x4]
MOVZX EDX,DL
LEA RDI,[RDX + RAX*0x2]
INC R12D
JMP 0x00171499
LAB_0017148c:
CMP AL,0x2e
JNZ 0x001714a4
TEST RBX,RBX
JNZ 0x001714ef
LEA RBX,[R14 + 0x1]
LAB_00171499:
INC R14
INC R13D
CMP R14,R11
JC 0x0017145d
LAB_001714a4:
MOV EAX,EBX
SUB EAX,R14D
XOR R13D,R13D
TEST RBX,RBX
CMOVZ EAX,R13D
MOV EBX,EAX
MOV RAX,RDI
JMP 0x001715ba
LAB_001714bd:
MOV qword ptr [R8],R14
CMP R10D,0x2d
JNZ 0x00171772
TEST ECX,ECX
JZ 0x0017175e
XOR EAX,EAX
TEST RDI,RDI
MOV ECX,0x22
CMOVZ ECX,EAX
MOV dword ptr [R9],ECX
JMP 0x00171699
LAB_001714e7:
MOV RSI,R11
JMP 0x0017168f
LAB_001714ef:
XOR EBX,EBX
MOV RAX,RDI
XOR R13D,R13D
JMP 0x001715ba
LAB_001714fc:
MOV dword ptr [RBP + -0x30],ECX
CMP AL,0x35
SETNC AL
MOV dword ptr [RBP + -0x2c],EAX
XOR ECX,ECX
CMP RDI,R15
MOV RAX,-0x1
CMOVNZ RAX,RDI
SETZ CL
MOV EDX,dword ptr [RBP + -0x2c]
OR DL,CL
MOV dword ptr [RBP + -0x2c],EDX
MOV RDX,RCX
MOV RCX,R15
LEA R15,[R14 + RDX*0x1]
TEST RBX,RBX
JZ 0x0017156c
XOR EDX,EDX
CMP RDI,RCX
SETZ DL
SUB EBX,EDX
SUB EBX,R13D
CMP R15,R11
MOV ECX,dword ptr [RBP + -0x30]
JNC 0x001715a9
MOV R13D,dword ptr [RBP + -0x2c]
LAB_0017154a:
MOV DL,byte ptr [R15]
ADD DL,0xd0
CMP DL,0x9
JA 0x0017155d
INC R15
CMP R15,R11
JC 0x0017154a
LAB_0017155d:
MOV R14,R15
LAB_00171560:
MOV R15,0x1999999999999999
JMP 0x001715ba
LAB_0017156c:
XOR EBX,EBX
CMP R15,R11
MOV ECX,dword ptr [RBP + -0x30]
JNC 0x001715a9
LEA RDI,[R14 + RDX*0x1]
XOR EBX,EBX
LAB_0017157c:
LEA R15,[RDX + RBX*0x1]
MOV R15B,byte ptr [R14 + R15*0x1]
LEA R13D,[R15 + -0x30]
CMP R13B,0x9
JA 0x001717b5
LEA R15,[RBX + RDI*0x1]
INC R15
INC RBX
CMP R15,R11
JC 0x0017157c
ADD RDI,RBX
MOV R14,RDI
JMP 0x001715ac
LAB_001715a9:
MOV R14,R15
LAB_001715ac:
MOV R15,0x1999999999999999
MOV R13D,dword ptr [RBP + -0x2c]
LAB_001715ba:
TEST R12D,R12D
JZ 0x0017168f
CMP R14,R11
JNC 0x00171678
MOVZX EDX,byte ptr [R14]
OR EDX,0x20
CMP EDX,0x65
JNZ 0x00171678
LEA RSI,[R14 + 0x1]
CMP RSI,R11
JNC 0x00171678
MOVZX EDI,byte ptr [RSI]
CMP EDI,0x2d
JZ 0x001715f6
CMP EDI,0x2b
JNZ 0x00171603
LAB_001715f6:
LEA RSI,[R14 + 0x2]
CMP RSI,R11
JZ 0x001716e2
LAB_00171603:
TEST EBX,EBX
JLE 0x00171611
CMP DIL,0x2d
JNZ 0x001716ea
LAB_00171611:
XOR R14D,R14D
CMP RSI,R11
JNC 0x00171664
XOR R14D,R14D
LAB_0017161c:
MOV DL,byte ptr [RSI]
ADD DL,0xd0
CMP DL,0x9
JA 0x00171664
MOV R12,R15
CMP DIL,0x2d
JNZ 0x00171640
MOV R15D,R14D
SUB R15D,EBX
CMP R15D,0x14
JLE 0x0017164e
JMP 0x001716c1
LAB_00171640:
LEA R15D,[R14 + RBX*0x1]
CMP R15D,0x14
JG 0x001716ea
LAB_0017164e:
MOVZX EDX,DL
LEA R14D,[R14 + R14*0x4]
LEA R14D,[RDX + R14*0x2]
INC RSI
CMP RSI,R11
MOV R15,R12
JC 0x0017161c
LAB_00171664:
MOV EDX,R14D
NEG EDX
CMP DIL,0x2d
CMOVNZ EDX,R14D
ADD EDX,EBX
MOV EBX,EDX
MOV R14,RSI
LAB_00171678:
TEST EBX,EBX
JZ 0x001716a9
JS 0x001716b9
CMP EBX,0x14
JBE 0x001716cd
TEST RAX,RAX
JNZ 0x001716e7
XOR EDI,EDI
JMP 0x00171735
LAB_0017168f:
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x21
LAB_00171699:
XOR EDI,EDI
LAB_0017169b:
MOV RAX,RDI
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001716a9:
TEST R13B,R13B
JZ 0x001716e2
CMP RAX,-0x1
JZ 0x001716e7
INC RAX
JMP 0x001716e2
LAB_001716b9:
CMP EBX,-0x13
JNC 0x00171716
MOV RSI,R14
LAB_001716c1:
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x0
JMP 0x00171699
LAB_001716cd:
INC EBX
LAB_001716cf:
CMP RAX,R15
JA 0x001716e7
ADD RAX,RAX
LEA RAX,[RAX + RAX*0x4]
DEC EBX
CMP EBX,0x1
JG 0x001716cf
LAB_001716e2:
MOV RDI,RAX
JMP 0x00171735
LAB_001716e7:
MOV RSI,R14
LAB_001716ea:
MOV RAX,-0x8000000000000000
LEA RDX,[RAX + -0x1]
CMP R10D,0x2d
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x22
CMOVZ RDX,RAX
XOR EDI,EDI
NEG ECX
SBB RDI,RDI
OR RDI,RDX
JMP 0x0017169b
LAB_00171716:
NEG EBX
LEA RDX,[0x2df530]
MOV RSI,qword ptr [RDX + RBX*0x8]
XOR EDX,EDX
DIV RSI
MOV RDI,RAX
ADD RDX,RDX
CMP RDX,RSI
SBB RDI,-0x1
LAB_00171735:
MOV qword ptr [R8],R14
TEST ECX,ECX
JZ 0x00171753
CMP R10D,0x2d
JNZ 0x00171772
TEST RDI,RDI
JZ 0x00171772
MOV dword ptr [R9],0x22
JMP 0x00171699
LAB_00171753:
CMP R10D,0x2d
JNZ 0x0017176d
TEST RDI,RDI
JS 0x0017177e
LAB_0017175e:
MOV dword ptr [R9],0x0
NEG RDI
JMP 0x0017169b
LAB_0017176d:
TEST RDI,RDI
JS 0x0017179c
LAB_00171772:
MOV dword ptr [R9],0x0
JMP 0x0017169b
LAB_0017177e:
MOV RAX,-0x8000000000000000
NEG RDI
JO 0x00171794
MOV dword ptr [R9],0x22
LAB_00171794:
MOV RDI,RAX
JMP 0x0017169b
LAB_0017179c:
MOV dword ptr [R9],0x22
MOV RDI,-0x8000000000000000
DEC RDI
JMP 0x0017169b
LAB_001717b5:
CMP R15B,0x2e
MOV R13D,dword ptr [RBP + -0x2c]
JNZ 0x001717f2
LEA RDX,[RBX + RDI*0x1]
INC RDX
MOV R15,0x1999999999999999
LAB_001717d0:
MOV R14,RDX
CMP RDX,R11
JNC 0x001715ba
MOV DIL,byte ptr [R14]
ADD DIL,0xd0
LEA RDX,[R14 + 0x1]
CMP DIL,0xa
JC 0x001717d0
JMP 0x001715ba
LAB_001717f2:
ADD RDI,RBX
MOV R14,RDI
JMP 0x00171560
|
ulong my_strntoull10rnd_8bit
(int8 param_1,byte *param_2,long param_3,int param_4,ulong *param_5,
int4 *param_6)
{
byte *pbVar1;
byte bVar2;
byte bVar3;
long lVar4;
uint uVar5;
byte *pbVar6;
int4 uVar7;
ulong uVar8;
byte bVar9;
int iVar10;
ulong uVar11;
ulong uVar12;
byte *pbVar13;
ulong uVar14;
int iVar15;
byte *pbVar16;
byte *pbVar17;
bool bVar18;
if (param_3 < 1) {
LAB_0017168f:
*param_5 = (ulong)param_2;
*param_6 = 0x21;
return 0;
}
pbVar1 = param_2 + param_3;
param_3 = param_3 + -1;
pbVar13 = param_2;
while (bVar3 = *pbVar13, (PTR_ctype_latin1_00459db0[(ulong)bVar3 + 1] & 8) != 0) {
param_2 = pbVar13 + 1;
param_3 = param_3 + -1;
pbVar13 = param_2;
if (pbVar1 <= param_2) goto LAB_0017168f;
}
if ((bVar3 == 0x2b) || (bVar3 == 0x2d)) {
param_2 = pbVar1;
if (param_3 == 0) goto LAB_0017168f;
pbVar13 = pbVar13 + 1;
}
pbVar6 = pbVar13 + 9;
if (pbVar1 < pbVar13 + 9) {
pbVar6 = pbVar1;
}
uVar11 = 0;
for (pbVar16 = pbVar13; (pbVar16 < pbVar6 && ((byte)(*pbVar16 - 0x30) < 10));
pbVar16 = pbVar16 + 1) {
uVar11 = (ulong)(byte)(*pbVar16 - 0x30) + uVar11 * 10;
}
if (pbVar1 <= pbVar16) {
*param_5 = (ulong)pbVar16;
if (bVar3 == 0x2d) {
if (param_4 != 0) {
uVar7 = 0x22;
if (uVar11 == 0) {
uVar7 = 0;
}
*param_6 = uVar7;
return 0;
}
goto LAB_0017175e;
}
goto LAB_00171772;
}
iVar15 = (int)pbVar16 - (int)pbVar13;
pbVar6 = (byte *)0x0;
uVar12 = (ulong)pbVar16 & 0xffffffff;
uVar14 = uVar11;
LAB_0017145d:
bVar2 = *pbVar16;
bVar9 = bVar2 - 0x30;
if (9 < bVar9) {
if (bVar2 != 0x2e) goto LAB_001714a4;
if (pbVar6 == (byte *)0x0) {
pbVar6 = pbVar16 + 1;
goto LAB_00171499;
}
uVar12 = 0;
bVar18 = false;
uVar11 = uVar14;
pbVar17 = pbVar16;
goto LAB_001715ba;
}
if ((uVar14 < 0x1999999999999999) || ((uVar14 == 0x1999999999999999 && (bVar9 < 6))))
goto LAB_0017147c;
bVar18 = uVar14 == 0x1999999999999999;
uVar11 = 0xffffffffffffffff;
if (!bVar18) {
uVar11 = uVar14;
}
uVar8 = (ulong)bVar18;
bVar18 = 0x34 < bVar2 || bVar18;
pbVar17 = pbVar16 + uVar8;
if (pbVar6 != (byte *)0x0) {
uVar12 = (ulong)(((int)pbVar6 - (uint)(uVar14 == 0x1999999999999999)) - (int)uVar12);
for (; (pbVar17 < pbVar1 && ((byte)(*pbVar17 - 0x30) < 10)); pbVar17 = pbVar17 + 1) {
}
goto LAB_001715ba;
}
uVar12 = 0;
if (pbVar1 <= pbVar17) goto LAB_001715ba;
uVar12 = 0;
goto LAB_0017157c;
while (lVar4 = uVar12 + uVar8, uVar12 = uVar12 + 1, pbVar16 + lVar4 + 1 < pbVar1) {
LAB_0017157c:
if (9 < (byte)(pbVar16[uVar8 + uVar12] - 0x30)) {
if (pbVar16[uVar8 + uVar12] != 0x2e) {
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_001715ba;
}
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_001717d0;
}
}
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_001715ba;
LAB_0017147c:
uVar14 = (ulong)bVar9 + uVar14 * 10;
iVar15 = iVar15 + 1;
LAB_00171499:
pbVar16 = pbVar16 + 1;
uVar12 = (ulong)((int)uVar12 + 1);
if (pbVar1 <= pbVar16) goto LAB_001714a4;
goto LAB_0017145d;
LAB_001714a4:
uVar5 = (int)pbVar6 - (int)pbVar16;
bVar18 = false;
if (pbVar6 == (byte *)0x0) {
uVar5 = 0;
}
uVar12 = (ulong)uVar5;
uVar11 = uVar14;
pbVar17 = pbVar16;
goto LAB_001715ba;
while ((byte)(*pbVar17 - 0x30) < 10) {
LAB_001717d0:
pbVar17 = pbVar17 + 1;
if (pbVar1 <= pbVar17) break;
}
LAB_001715ba:
uVar5 = (uint)uVar12;
param_2 = pbVar13;
if (iVar15 == 0) goto LAB_0017168f;
if (((pbVar17 < pbVar1) && ((*pbVar17 | 0x20) == 0x65)) &&
(pbVar13 = pbVar17 + 1, pbVar13 < pbVar1)) {
bVar2 = *pbVar13;
if (((bVar2 != 0x2d) && (bVar2 != 0x2b)) || (pbVar13 = pbVar17 + 2, pbVar13 != pbVar1)) {
if ((0 < (int)uVar5) && (bVar2 != 0x2d)) goto LAB_001716ea;
iVar15 = 0;
if (pbVar13 < pbVar1) {
iVar15 = 0;
do {
if (9 < (byte)(*pbVar13 - 0x30)) break;
if (bVar2 == 0x2d) {
if (0x14 < (int)(iVar15 - uVar5)) goto LAB_001716c1;
}
else if (0x14 < (int)(iVar15 + uVar5)) goto LAB_001716ea;
iVar15 = (uint)(byte)(*pbVar13 - 0x30) + iVar15 * 10;
pbVar13 = pbVar13 + 1;
} while (pbVar13 < pbVar1);
}
iVar10 = -iVar15;
if (bVar2 != 0x2d) {
iVar10 = iVar15;
}
uVar5 = iVar10 + uVar5;
pbVar17 = pbVar13;
goto LAB_00171678;
}
}
else {
LAB_00171678:
pbVar13 = pbVar17;
pbVar17 = pbVar13;
if (uVar5 == 0) {
if (bVar18) {
if (uVar11 == 0xffffffffffffffff) goto LAB_001716ea;
uVar11 = uVar11 + 1;
}
}
else if ((int)uVar5 < 0) {
if (uVar5 < 0xffffffed) {
LAB_001716c1:
*param_5 = (ulong)pbVar13;
*param_6 = 0;
return 0;
}
uVar14 = *(ulong *)(d10 + (ulong)-uVar5 * 8);
uVar11 = (uVar11 / uVar14 + 1) - (ulong)((uVar11 % uVar14) * 2 < uVar14);
}
else if (uVar5 < 0x15) {
iVar15 = uVar5 + 1;
do {
if (0x1999999999999999 < uVar11) goto LAB_001716ea;
uVar11 = uVar11 * 10;
iVar15 = iVar15 + -1;
} while (1 < iVar15);
}
else {
if (uVar11 != 0) {
LAB_001716ea:
uVar11 = 0x7fffffffffffffff;
*param_5 = (ulong)pbVar13;
*param_6 = 0x22;
if (bVar3 == 0x2d) {
uVar11 = 0x8000000000000000;
}
return -(ulong)(param_4 != 0) | uVar11;
}
uVar11 = 0;
}
}
*param_5 = (ulong)pbVar17;
if (param_4 == 0) {
if (bVar3 == 0x2d) {
if ((long)uVar11 < 0) {
*param_6 = 0x22;
return 0x8000000000000000;
}
LAB_0017175e:
*param_6 = 0;
return -uVar11;
}
if ((long)uVar11 < 0) {
*param_6 = 0x22;
return 0x7fffffffffffffff;
}
}
else if ((bVar3 == 0x2d) && (uVar11 != 0)) {
*param_6 = 0x22;
return 0;
}
LAB_00171772:
*param_6 = 0;
return uVar11;
}
|
|
57,871
|
save_pack_length
|
eloqsql/storage/myisam/mi_packrec.c
|
uint save_pack_length(uint version, uchar *block_buff, ulong length)
{
if (length < 254)
{
*(uchar*) block_buff= (uchar) length;
return 1;
}
if (length <= 65535)
{
*(uchar*) block_buff=254;
int2store(block_buff+1,(uint) length);
return 3;
}
*(uchar*) block_buff=255;
if (version == 1) /* old format */
{
DBUG_ASSERT(length <= 0xFFFFFF);
int3store(block_buff + 1, (ulong) length);
return 4;
}
else
{
int4store(block_buff + 1, (ulong) length);
return 5;
}
}
|
O0
|
c
|
save_pack_length:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0xfe, -0x18(%rbp)
jae 0xbbfb1
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0xbc050
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
ja 0xbbfe5
movq -0x10(%rbp), %rax
movb $-0x2, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0xbc050
movq -0x10(%rbp), %rax
movb $-0x1, (%rax)
cmpl $0x1, -0x8(%rbp)
jne 0xbc02f
jmp 0xbbff4
jmp 0xbbff6
jmp 0xbbff8
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x18(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movl $0x4, -0x4(%rbp)
jmp 0xbc050
jmp 0xbc031
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl $0x5, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
save_pack_length:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
cmp [rbp+var_18], 0FEh
jnb short loc_BBFB1
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov [rbp+var_4], 1
jmp loc_BC050
loc_BBFB1:
cmp [rbp+var_18], 0FFFFh
ja short loc_BBFE5
mov rax, [rbp+var_10]
mov byte ptr [rax], 0FEh
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov cx, ax
mov rax, [rbp+var_20]
mov [rax], cx
mov [rbp+var_4], 3
jmp short loc_BC050
loc_BBFE5:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0FFh
cmp [rbp+var_8], 1
jnz short loc_BC02F
jmp short $+2
loc_BBFF4:
jmp short $+2
loc_BBFF6:
jmp short $+2
loc_BBFF8:
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_18]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_18]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov [rbp+var_4], 4
jmp short loc_BC050
loc_BC02F:
jmp short $+2
loc_BC031:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov ecx, eax
mov rax, [rbp+var_28]
mov [rax], ecx
mov [rbp+var_4], 5
loc_BC050:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long save_pack_length(int a1, long long a2, unsigned long long a3)
{
if ( a3 >= 0xFE )
{
if ( a3 > 0xFFFF )
{
*(_BYTE *)a2 = -1;
if ( a1 == 1 )
{
*(_WORD *)(a2 + 1) = a3;
*(_BYTE *)(a2 + 3) = BYTE2(a3);
return 4;
}
else
{
*(_DWORD *)(a2 + 1) = a3;
return 5;
}
}
else
{
*(_BYTE *)a2 = -2;
*(_WORD *)(a2 + 1) = a3;
return 3;
}
}
else
{
*(_BYTE *)a2 = a3;
return 1;
}
}
|
save_pack_length:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
CMP qword ptr [RBP + -0x18],0xfe
JNC 0x001bbfb1
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001bc050
LAB_001bbfb1:
CMP qword ptr [RBP + -0x18],0xffff
JA 0x001bbfe5
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0xfe
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x20]
MOV word ptr [RAX],CX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x001bc050
LAB_001bbfe5:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0xff
CMP dword ptr [RBP + -0x8],0x1
JNZ 0x001bc02f
JMP 0x001bbff4
LAB_001bbff4:
JMP 0x001bbff6
LAB_001bbff6:
JMP 0x001bbff8
LAB_001bbff8:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV dword ptr [RBP + -0x4],0x4
JMP 0x001bc050
LAB_001bc02f:
JMP 0x001bc031
LAB_001bc031:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0x5
LAB_001bc050:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 save_pack_length(int param_1,int1 *param_2,ulong param_3)
{
int4 local_c;
if (param_3 < 0xfe) {
*param_2 = (char)param_3;
local_c = 1;
}
else if (param_3 < 0x10000) {
*param_2 = 0xfe;
*(short *)(param_2 + 1) = (short)param_3;
local_c = 3;
}
else {
*param_2 = 0xff;
if (param_1 == 1) {
param_2[1] = (char)param_3;
param_2[2] = (char)(param_3 >> 8);
param_2[3] = (char)(param_3 >> 0x10);
local_c = 4;
}
else {
*(int *)(param_2 + 1) = (int)param_3;
local_c = 5;
}
}
return local_c;
}
|
|
57,872
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type)
|
monkey531[P]llama/common/sampling.cpp
|
std::string common_sampler_type_to_str(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return "dry";
case COMMON_SAMPLER_TYPE_TOP_K: return "top_k";
case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p";
case COMMON_SAMPLER_TYPE_TOP_P: return "top_p";
case COMMON_SAMPLER_TYPE_MIN_P: return "min_p";
case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature";
case COMMON_SAMPLER_TYPE_XTC: return "xtc";
case COMMON_SAMPLER_TYPE_INFILL: return "infill";
case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties";
default : return "";
}
}
|
O2
|
cpp
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
decl %esi
cmpl $0x9, %esi
ja 0xa3d01
leaq 0x2153a(%rip), %rax # 0xc51b4
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x21901(%rip), %rsi # 0xc558b
leaq 0xf(%rsp), %rdx
jmp 0xa3d0d
leaq 0x21903(%rip), %rsi # 0xc559b
leaq 0xc(%rsp), %rdx
jmp 0xa3d0d
leaq 0x21901(%rip), %rsi # 0xc55a7
leaq 0xa(%rsp), %rdx
jmp 0xa3d0d
leaq 0x218db(%rip), %rsi # 0xc558f
leaq 0xe(%rsp), %rdx
jmp 0xa3d0d
leaq 0x218f1(%rip), %rsi # 0xc55b3
leaq 0x9(%rsp), %rdx
jmp 0xa3d0d
leaq 0x13f59(%rip), %rsi # 0xb7c29
leaq 0x8(%rsp), %rdx
jmp 0xa3d0d
leaq 0x218c3(%rip), %rsi # 0xc55a1
leaq 0xb(%rsp), %rdx
jmp 0xa3d0d
leaq 0x218a9(%rip), %rsi # 0xc5595
leaq 0xd(%rsp), %rdx
jmp 0xa3d0d
leaq 0x218bd(%rip), %rsi # 0xc55b7
leaq 0x7(%rsp), %rdx
jmp 0xa3d0d
leaq 0x17f47(%rip), %rsi # 0xbbc4f
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x30aea
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
|
_Z26common_sampler_type_to_strB5cxx1119common_sampler_type:
push rbx
sub rsp, 10h
mov rbx, rdi
dec esi; switch 10 cases
cmp esi, 9
ja def_A3C81; jumptable 00000000000A3C81 default case, case 5
lea rax, jpt_A3C81
movsxd rcx, ds:(jpt_A3C81 - 0C51B4h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_A3C83:
lea rsi, aDry; jumptable 00000000000A3C81 case 1
lea rdx, [rsp+18h+var_9]
jmp short loc_A3D0D
loc_A3C91:
lea rsi, aTopP_0; jumptable 00000000000A3C81 case 3
lea rdx, [rsp+18h+var_C]
jmp short loc_A3D0D
loc_A3C9F:
lea rsi, aTemperature; jumptable 00000000000A3C81 case 7
lea rdx, [rsp+18h+var_E]
jmp short loc_A3D0D
loc_A3CAD:
lea rsi, aTopK_0; jumptable 00000000000A3C81 case 2
lea rdx, [rsp+18h+var_A]
jmp short loc_A3D0D
loc_A3CBB:
lea rsi, aXtc; jumptable 00000000000A3C81 case 8
lea rdx, [rsp+18h+var_F]
jmp short loc_A3D0D
loc_A3CC9:
lea rsi, aSpmInfill+6; jumptable 00000000000A3C81 case 9
lea rdx, [rsp+18h+var_10]
jmp short loc_A3D0D
loc_A3CD7:
lea rsi, aMinP_0; jumptable 00000000000A3C81 case 4
lea rdx, [rsp+18h+var_D]
jmp short loc_A3D0D
loc_A3CE5:
lea rsi, aTypP; jumptable 00000000000A3C81 case 6
lea rdx, [rsp+18h+var_B]
jmp short loc_A3D0D
loc_A3CF3:
lea rsi, aPenalties; jumptable 00000000000A3C81 case 10
lea rdx, [rsp+18h+var_11]
jmp short loc_A3D0D
def_A3C81:
lea rsi, aErrorWhileHand_0+34h; jumptable 00000000000A3C81 default case, case 5
lea rdx, [rsp+18h+var_12]
loc_A3D0D:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rax, rbx
add rsp, 10h
pop rbx
retn
|
_QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
switch ( a2 )
{
case 1:
v2 = "dry";
break;
case 2:
v2 = "top_k";
break;
case 3:
v2 = "top_p";
break;
case 4:
v2 = "min_p";
break;
case 6:
v2 = "typ_p";
break;
case 7:
v2 = "temperature";
break;
case 8:
v2 = "xtc";
break;
case 9:
v2 = "infill";
break;
case 10:
v2 = "penalties";
break;
default:
v2 = "";
break;
}
std::string::basic_string<std::allocator<char>>(a1, (long long)v2);
return a1;
}
|
common_sampler_type_to_str[abi:cxx11]:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
DEC ESI
CMP ESI,0x9
JA 0x001a3d01
LEA RAX,[0x1c51b4]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
LEA RSI,[0x1c558b]
LEA RDX,[RSP + 0xf]
JMP 0x001a3d0d
caseD_3:
LEA RSI,[0x1c559b]
LEA RDX,[RSP + 0xc]
JMP 0x001a3d0d
caseD_7:
LEA RSI,[0x1c55a7]
LEA RDX,[RSP + 0xa]
JMP 0x001a3d0d
caseD_2:
LEA RSI,[0x1c558f]
LEA RDX,[RSP + 0xe]
JMP 0x001a3d0d
caseD_8:
LEA RSI,[0x1c55b3]
LEA RDX,[RSP + 0x9]
JMP 0x001a3d0d
caseD_9:
LEA RSI,[0x1b7c29]
LEA RDX,[RSP + 0x8]
JMP 0x001a3d0d
caseD_4:
LEA RSI,[0x1c55a1]
LEA RDX,[RSP + 0xb]
JMP 0x001a3d0d
caseD_6:
LEA RSI,[0x1c5595]
LEA RDX,[RSP + 0xd]
JMP 0x001a3d0d
caseD_a:
LEA RSI,[0x1c55b7]
LEA RDX,[RSP + 0x7]
JMP 0x001a3d0d
caseD_5:
LEA RSI,[0x1bbc4f]
LEA RDX,[RSP + 0x6]
LAB_001a3d0d:
MOV RDI,RBX
CALL 0x00130aea
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */
string * common_sampler_type_to_str_abi_cxx11_(string *param_1,int4 param_2)
{
allocator *paVar1;
char *pcVar2;
allocator local_12;
allocator local_11;
allocator local_10;
allocator local_f;
allocator local_e;
allocator local_d;
allocator local_c;
allocator local_b;
allocator local_a;
allocator local_9;
switch(param_2) {
case 1:
pcVar2 = "dry";
paVar1 = &local_9;
break;
case 2:
pcVar2 = "top_k";
paVar1 = &local_a;
break;
case 3:
pcVar2 = "top_p";
paVar1 = &local_c;
break;
case 4:
pcVar2 = "min_p";
paVar1 = &local_d;
break;
default:
pcVar2 = "";
paVar1 = &local_12;
break;
case 6:
pcVar2 = "typ_p";
paVar1 = &local_b;
break;
case 7:
pcVar2 = "temperature";
paVar1 = &local_e;
break;
case 8:
pcVar2 = "xtc";
paVar1 = &local_f;
break;
case 9:
pcVar2 = "infill";
paVar1 = &local_10;
break;
case 10:
pcVar2 = "penalties";
paVar1 = &local_11;
}
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar2,paVar1);
return param_1;
}
|
|
57,873
|
FTB_WORD_cmp_list
|
eloqsql/storage/myisam/ft_boolean_search.c
|
static int FTB_WORD_cmp_list(CHARSET_INFO *cs, FTB_WORD **a, FTB_WORD **b)
{
/* ORDER BY word, ndepth */
int i= ha_compare_text(cs, (uchar*) (*a)->word + 1, (*a)->len - 1,
(uchar*) (*b)->word + 1, (*b)->len - 1, 0);
if (!i)
i= CMP_NUM((*a)->ndepth, (*b)->ndepth);
return i;
}
|
O0
|
c
|
FTB_WORD_cmp_list:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
addq $0x4d, %rsi
addq $0x1, %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x4d, %rcx
addq $0x1, %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0xf0600
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x9e833
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x44(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0x44(%rcx), %eax
jae 0x9e80a
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x20(%rbp)
jmp 0x9e82d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x44(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x44(%rax), %esi
movl $0x1, %eax
xorl %ecx, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
FTB_WORD_cmp_list:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
mov rsi, [rax]
add rsi, 4Dh ; 'M'
add rsi, 1
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov edx, eax
mov rax, [rbp+var_18]
mov rcx, [rax]
add rcx, 4Dh ; 'M'
add rcx, 1
mov rax, [rbp+var_18]
mov rax, [rax]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov r8d, eax
xor r9d, r9d
call ha_compare_text
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jnz short loc_9E833
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+44h]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
cmp eax, [rcx+44h]
jnb short loc_9E80A
mov eax, 0FFFFFFFFh
mov [rbp+var_20], eax
jmp short loc_9E82D
loc_9E80A:
mov rax, [rbp+var_10]
mov rax, [rax]
mov edx, [rax+44h]
mov rax, [rbp+var_18]
mov rax, [rax]
mov esi, [rax+44h]
mov eax, 1
xor ecx, ecx
cmp edx, esi
cmovz eax, ecx
mov [rbp+var_20], eax
loc_9E82D:
mov eax, [rbp+var_20]
mov [rbp+var_1C], eax
loc_9E833:
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long FTB_WORD_cmp_list(long long a1, long long a2, long long a3)
{
unsigned int v5; // [rsp+4h] [rbp-1Ch]
v5 = ha_compare_text(
a1,
*(_QWORD *)a2 + 78LL,
(unsigned int)(*(_DWORD *)(*(_QWORD *)a2 + 72LL) - 1),
*(_QWORD *)a3 + 78LL,
(unsigned int)(*(_DWORD *)(*(_QWORD *)a3 + 72LL) - 1),
0LL);
if ( !v5 )
{
if ( *(_DWORD *)(*(_QWORD *)a2 + 68LL) >= *(_DWORD *)(*(_QWORD *)a3 + 68LL) )
return *(_DWORD *)(*(_QWORD *)a2 + 68LL) != *(_DWORD *)(*(_QWORD *)a3 + 68LL);
else
return (unsigned int)-1;
}
return v5;
}
|
FTB_WORD_cmp_list:
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 RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
ADD RSI,0x4d
ADD RSI,0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4d
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV R8D,EAX
XOR R9D,R9D
CALL 0x001f0600
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x0019e833
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x44]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x44]
JNC 0x0019e80a
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0019e82d
LAB_0019e80a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EDX,dword ptr [RAX + 0x44]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV ESI,dword ptr [RAX + 0x44]
MOV EAX,0x1
XOR ECX,ECX
CMP EDX,ESI
CMOVZ EAX,ECX
MOV dword ptr [RBP + -0x20],EAX
LAB_0019e82d:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x1c],EAX
LAB_0019e833:
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
uint FTB_WORD_cmp_list(int8 param_1,long *param_2,long *param_3)
{
uint local_28;
uint local_24;
local_24 = ha_compare_text(param_1,*param_2 + 0x4e,*(int *)(*param_2 + 0x48) + -1,*param_3 + 0x4e,
*(int *)(*param_3 + 0x48) + -1,0);
if (local_24 == 0) {
if (*(uint *)(*param_2 + 0x44) < *(uint *)(*param_3 + 0x44)) {
local_28 = 0xffffffff;
}
else {
local_28 = (uint)(*(int *)(*param_2 + 0x44) != *(int *)(*param_3 + 0x44));
}
local_24 = local_28;
}
return local_24;
}
|
|
57,874
|
bf_mul_2exp
|
bluesky950520[P]quickjs/libbf.c
|
int bf_mul_2exp(bf_t *r, slimb_t e, limb_t prec, bf_flags_t flags)
{
slimb_t e_max;
if (r->len == 0)
return 0;
e_max = ((limb_t)1 << BF_EXT_EXP_BITS_MAX) - 1;
e = bf_max(e, -e_max);
e = bf_min(e, e_max);
r->expn += e;
return __bf_round(r, prec, flags, r->len, 0);
}
|
O1
|
c
|
bf_mul_2exp:
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x85e7a
movabsq $-0x3fffffffffffffff, %r8 # imm = 0xC000000000000001
cmpq %r8, %rsi
cmovgq %rsi, %r8
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %r8
cmovgeq %rsi, %r8
addq %r8, 0x10(%rdi)
movq %rdx, %rsi
movl %ecx, %edx
movq %rax, %rcx
xorl %r8d, %r8d
jmp 0x84212
xorl %eax, %eax
retq
|
bf_mul_2exp:
mov rax, [rdi+18h]
test rax, rax
jz short loc_85E7A
mov r8, 0C000000000000001h
cmp rsi, r8
cmovg r8, rsi
mov rsi, 3FFFFFFFFFFFFFFFh
cmp r8, rsi
cmovge r8, rsi
add [rdi+10h], r8
mov rsi, rdx
mov edx, ecx
mov rcx, rax
xor r8d, r8d
jmp __bf_round
loc_85E7A:
xor eax, eax
retn
|
long long bf_mul_2exp(long long a1, signed long long a2, long long a3, unsigned int a4)
{
unsigned long long v4; // rax
long long v5; // r8
v4 = *(_QWORD *)(a1 + 24);
if ( !v4 )
return 0LL;
v5 = 0xC000000000000001LL;
if ( a2 > (long long)0xC000000000000001LL )
v5 = a2;
if ( v5 >= 0x3FFFFFFFFFFFFFFFLL )
v5 = 0x3FFFFFFFFFFFFFFFLL;
*(_QWORD *)(a1 + 16) += v5;
return _bf_round(a1, a3, a4, v4, 0);
}
|
bf_mul_2exp:
MOV RAX,qword ptr [RDI + 0x18]
TEST RAX,RAX
JZ 0x00185e7a
MOV R8,-0x3fffffffffffffff
CMP RSI,R8
CMOVG R8,RSI
MOV RSI,0x3fffffffffffffff
CMP R8,RSI
CMOVGE R8,RSI
ADD qword ptr [RDI + 0x10],R8
MOV RSI,RDX
MOV EDX,ECX
MOV RCX,RAX
XOR R8D,R8D
JMP 0x00184212
LAB_00185e7a:
XOR EAX,EAX
RET
|
int8 bf_mul_2exp(long param_1,long param_2,int8 param_3,int4 param_4)
{
int8 uVar1;
long lVar2;
if (*(long *)(param_1 + 0x18) != 0) {
lVar2 = -0x3fffffffffffffff;
if (-0x3fffffffffffffff < param_2) {
lVar2 = param_2;
}
if (0x3ffffffffffffffe < lVar2) {
lVar2 = 0x3fffffffffffffff;
}
*(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + lVar2;
uVar1 = __bf_round(param_1,param_3,param_4,*(long *)(param_1 + 0x18),0);
return uVar1;
}
return 0;
}
|
|
57,875
|
translog_read_record_header_scan
|
eloqsql/storage/maria/ma_loghandler.c
|
int translog_read_record_header_scan(TRANSLOG_SCANNER_DATA *scanner,
TRANSLOG_HEADER_BUFFER *buff,
my_bool move_scanner)
{
translog_size_t res;
DBUG_ENTER("translog_read_record_header_scan");
DBUG_PRINT("enter", ("Scanner: Cur: " LSN_FMT " Hrz: " LSN_FMT " "
"Lst: " LSN_FMT " Offset: %u(%x) fixed %d",
LSN_IN_PARTS(scanner->page_addr),
LSN_IN_PARTS(scanner->horizon),
LSN_IN_PARTS(scanner->last_file_page),
(uint) scanner->page_offset,
(uint) scanner->page_offset, scanner->fixed_horizon));
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
buff->groups_no= 0;
buff->lsn= scanner->page_addr;
buff->lsn+= scanner->page_offset; /* offset increasing */
res= translog_read_record_header_from_buffer(scanner->page,
scanner->page_offset,
buff,
(move_scanner ?
scanner : 0));
DBUG_RETURN(res);
}
|
O3
|
c
|
translog_read_record_header_scan:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
movl $0x0, 0x418(%rsi)
movq 0x2000(%rdi), %rcx
movq %rcx, (%rsi)
movl 0x2028(%rdi), %esi
addq %rcx, %rsi
movq %rsi, (%rax)
movq 0x2018(%rdi), %r8
movzwl 0x2028(%rdi), %esi
xorl %ecx, %ecx
testb %dl, %dl
cmovneq %rdi, %rcx
movq %r8, %rdi
movq %rax, %rdx
popq %rbp
jmp 0x3569c
|
translog_read_record_header_scan:
push rbp
mov rbp, rsp
mov rax, rsi
mov dword ptr [rsi+418h], 0
mov rcx, [rdi+2000h]
mov [rsi], rcx
mov esi, [rdi+2028h]
add rsi, rcx
mov [rax], rsi
mov r8, [rdi+2018h]
movzx esi, word ptr [rdi+2028h]
xor ecx, ecx
test dl, dl
cmovnz rcx, rdi
mov rdi, r8
mov rdx, rax
pop rbp
jmp translog_read_record_header_from_buffer
|
long long translog_read_record_header_scan(long long a1, long long a2, char a3)
{
long long v3; // rcx
_BYTE *v4; // rcx
*(_DWORD *)(a2 + 1048) = 0;
v3 = *(_QWORD *)(a1 + 0x2000);
*(_QWORD *)a2 = v3;
*(_QWORD *)a2 = v3 + *(unsigned int *)(a1 + 8232);
v4 = 0LL;
if ( a3 )
v4 = (_BYTE *)a1;
return translog_read_record_header_from_buffer(*(_QWORD *)(a1 + 8216), *(unsigned __int16 *)(a1 + 8232), a2, v4);
}
|
translog_read_record_header_scan:
PUSH RBP
MOV RBP,RSP
MOV RAX,RSI
MOV dword ptr [RSI + 0x418],0x0
MOV RCX,qword ptr [RDI + 0x2000]
MOV qword ptr [RSI],RCX
MOV ESI,dword ptr [RDI + 0x2028]
ADD RSI,RCX
MOV qword ptr [RAX],RSI
MOV R8,qword ptr [RDI + 0x2018]
MOVZX ESI,word ptr [RDI + 0x2028]
XOR ECX,ECX
TEST DL,DL
CMOVNZ RCX,RDI
MOV RDI,R8
MOV RDX,RAX
POP RBP
JMP 0x0013569c
|
void translog_read_record_header_scan(long param_1,long *param_2,char param_3)
{
long lVar1;
*(int4 *)(param_2 + 0x83) = 0;
lVar1 = *(long *)(param_1 + 0x2000);
*param_2 = lVar1;
*param_2 = (ulong)*(uint *)(param_1 + 0x2028) + lVar1;
lVar1 = 0;
if (param_3 != '\0') {
lVar1 = param_1;
}
translog_read_record_header_from_buffer
(*(int8 *)(param_1 + 0x2018),*(int2 *)(param_1 + 0x2028),param_2,lVar1);
return;
}
|
|
57,876
|
protocol::utils::make_chunk_voxels(Dimension*, entt::entity, unsigned int)
|
untodesu[P]voxelius/game/shared/protocol.cc
|
ENetPacket *protocol::utils::make_chunk_voxels(Dimension *dimension, entt::entity entity, enet_uint32 flags)
{
if(auto component = dimension->chunks.try_get<ChunkComponent>(entity)) {
protocol::ChunkVoxels packet;
packet.chunk = component->cpos;
packet.voxels = component->chunk->get_voxels();
return protocol::encode(packet, flags);
}
return nullptr;
}
|
O3
|
cpp
|
protocol::utils::make_chunk_voxels(Dimension*, entt::entity, unsigned int):
pushq %r14
pushq %rbx
subq $0x2028, %rsp # imm = 0x2028
movl %edx, %ebx
addq $0x8, %rdi
callq 0x44094
testq %rax, %rax
je 0x43d0f
leaq 0x24(%rsp), %r14
movq $0x0, -0x14(%r14)
leaq 0xbe8d2(%rip), %rcx # 0x1025a8
movq %rcx, -0x1c(%r14)
movq (%rax), %rcx
movq %rcx, -0xc(%r14)
movl 0x8(%rax), %ecx
movl %ecx, -0x4(%r14)
movq 0x10(%rax), %rdi
callq 0x37174
movl $0x2000, %edx # imm = 0x2000
movq %r14, %rdi
movq %rax, %rsi
callq 0x16560
leaq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x424ec
jmp 0x43d11
xorl %eax, %eax
addq $0x2028, %rsp # imm = 0x2028
popq %rbx
popq %r14
retq
|
_ZN8protocol5utils17make_chunk_voxelsEP9DimensionN4entt6entityEj:
push r14
push rbx
sub rsp, 2028h
mov ebx, edx
add rdi, 8
call _ZNK4entt14basic_registryINS_6entityESaIS1_EE7try_getIJ14ChunkComponentEEEDaS1_
test rax, rax
jz short loc_43D0F
lea r14, [rsp+2038h+var_2014]
mov qword ptr [r14-14h], 0
lea rcx, off_1025A8
mov [r14-1Ch], rcx
mov rcx, [rax]
mov [r14-0Ch], rcx
mov ecx, [rax+8]
mov [r14-4], ecx
mov rdi, [rax+10h]; this
call _ZNK5Chunk10get_voxelsEv; Chunk::get_voxels(void)
mov edx, 2000h
mov rdi, r14
mov rsi, rax
call _memcpy
lea rdi, [rsp+2038h+var_2030]; this
mov esi, ebx; protocol::ChunkVoxels *
call _ZN8protocol6encodeERKNS_11ChunkVoxelsEj; protocol::encode(protocol::ChunkVoxels const&,uint)
jmp short loc_43D11
loc_43D0F:
xor eax, eax
loc_43D11:
add rsp, 2028h
pop rbx
pop r14
retn
|
long long protocol::utils::make_chunk_voxels(long long a1, long long a2, unsigned int a3)
{
long long v4; // rax
long long voxels; // rax
_QWORD v7[3]; // [rsp+8h] [rbp-2030h] BYREF
int v8; // [rsp+20h] [rbp-2018h]
_BYTE v9[8212]; // [rsp+24h] [rbp-2014h] BYREF
v4 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::try_get<ChunkComponent>(a1 + 8);
if ( !v4 )
return 0LL;
v7[1] = 0LL;
v7[0] = &off_1025A8;
v7[2] = *(_QWORD *)v4;
v8 = *(_DWORD *)(v4 + 8);
voxels = Chunk::get_voxels(*(Chunk **)(v4 + 16));
memcpy(v9, voxels, 0x2000LL);
return protocol::encode((protocol *)v7, (const protocol::ChunkVoxels *)a3);
}
|
make_chunk_voxels:
PUSH R14
PUSH RBX
SUB RSP,0x2028
MOV EBX,EDX
ADD RDI,0x8
CALL 0x00144094
TEST RAX,RAX
JZ 0x00143d0f
LEA R14,[RSP + 0x24]
MOV qword ptr [R14 + -0x14],0x0
LEA RCX,[0x2025a8]
MOV qword ptr [R14 + -0x1c],RCX
MOV RCX,qword ptr [RAX]
MOV qword ptr [R14 + -0xc],RCX
MOV ECX,dword ptr [RAX + 0x8]
MOV dword ptr [R14 + -0x4],ECX
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00137174
MOV EDX,0x2000
MOV RDI,R14
MOV RSI,RAX
CALL 0x00116560
LEA RDI,[RSP + 0x8]
MOV ESI,EBX
CALL 0x001424ec
JMP 0x00143d11
LAB_00143d0f:
XOR EAX,EAX
LAB_00143d11:
ADD RSP,0x2028
POP RBX
POP R14
RET
|
/* protocol::utils::make_chunk_voxels(Dimension*, entt::entity, unsigned int) */
int8 protocol::utils::make_chunk_voxels(long param_1,int8 param_2,uint param_3)
{
int8 *puVar1;
void *__src;
int8 uVar2;
int **local_2030;
int8 local_2028;
int8 local_2020;
int4 local_2018;
int1 local_2014 [8196];
puVar1 = (int8 *)
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::try_get<ChunkComponent>
((basic_registry<entt::entity,std::allocator<entt::entity>> *)(param_1 + 8));
if (puVar1 == (int8 *)0x0) {
uVar2 = 0;
}
else {
local_2028 = 0;
local_2030 = &PTR__Base_002025a8;
local_2020 = *puVar1;
local_2018 = *(int4 *)(puVar1 + 1);
__src = (void *)Chunk::get_voxels((Chunk *)puVar1[2]);
memcpy(local_2014,__src,0x2000);
uVar2 = protocol::encode((ChunkVoxels *)&local_2030,param_3);
}
return uVar2;
}
|
|
57,877
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++()
|
llama.cpp/common/json.hpp
|
iter_impl& operator++()
{
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
{
std::advance(m_it.object_iterator, 1);
break;
}
case value_t::array:
{
std::advance(m_it.array_iterator, 1);
break;
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
++m_it.primitive_iterator;
break;
}
}
return *this;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator++():
movq (%rdi), %rax
testq %rax, %rax
je 0xb37df
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0xb37d0
cmpl $0x1, %eax
jne 0xb37d7
addq $0x30, 0x8(%rdi)
jmp 0xb37db
addq $0x10, 0x10(%rdi)
jmp 0xb37db
incq 0x18(%rdi)
movq %rdi, %rax
retq
pushq %rax
leaq 0x69431(%rip), %rdi # 0x11cc18
leaq 0x61bf9(%rip), %rdx # 0x1153e7
leaq 0x6f683(%rip), %rcx # 0x122e78
movl $0x33c0, %esi # imm = 0x33C0
xorl %eax, %eax
callq 0x21fe0
|
_ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv:
mov rax, [rdi]
test rax, rax
jz short loc_B37DF
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_B37D0
cmp eax, 1
jnz short loc_B37D7
add qword ptr [rdi+8], 30h ; '0'
jmp short loc_B37DB
loc_B37D0:
add qword ptr [rdi+10h], 10h
jmp short loc_B37DB
loc_B37D7:
inc qword ptr [rdi+18h]
loc_B37DB:
mov rax, rdi
retn
loc_B37DF:
push rax
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 33C0h
xor eax, eax
call _ggml_abort
|
long long nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(
unsigned __int8 **a1)
{
int v1; // eax
long long v3; // rdx
if ( *a1 )
{
v1 = **a1;
if ( v1 == 2 )
{
a1[2] += 16;
}
else if ( v1 == 1 )
{
a1[1] += 48;
}
else
{
++a1[3];
}
return (long long)a1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
13248LL,
"GGML_ASSERT(%s) failed",
"m_object != nullptr");
return std::operator+<char>("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 13248LL, v3);
}
}
|
operator++:
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x001b37df
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x001b37d0
CMP EAX,0x1
JNZ 0x001b37d7
ADD qword ptr [RDI + 0x8],0x30
JMP 0x001b37db
LAB_001b37d0:
ADD qword ptr [RDI + 0x10],0x10
JMP 0x001b37db
LAB_001b37d7:
INC qword ptr [RDI + 0x18]
LAB_001b37db:
MOV RAX,RDI
RET
LAB_001b37df:
PUSH RAX
LEA RDI,[0x21cc18]
LEA RDX,[0x2153e7]
LEA RCX,[0x222e78]
MOV ESI,0x33c0
XOR EAX,EAX
CALL 0x00121fe0
|
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const>::TEMPNAMEPLACEHOLDERVALUE() */
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*this)
{
char cVar1;
int8 in_R8;
int8 in_R9;
if (*(char **)this != (char *)0x0) {
cVar1 = **(char **)this;
if (cVar1 == '\x02') {
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10;
}
else if (cVar1 == '\x01') {
*(long *)(this + 8) = *(long *)(this + 8) + 0x30;
}
else {
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 1;
}
return this;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x33c0,
"GGML_ASSERT(%s) failed","m_object != nullptr",in_R8,in_R9,0);
}
|
|
57,878
|
ma_hashtbl_update
|
eloqsql/libmariadb/libmariadb/ma_hashtbl.c
|
my_bool ma_hashtbl_update(MA_HASHTBL *hash,uchar *record,uchar *old_key,uint old_key_length)
{
uint idx,new_index,new_pos_index,blength,records,empty;
MA_HASHTBL_LINK org_link,*data,*previous,*pos;
data=dynamic_element(&hash->array,0,MA_HASHTBL_LINK*);
blength=hash->blength; records=hash->records;
/* Search after record with key */
idx=hash_mask((*hash->calc_hashnr)(old_key,(old_key_length ?
old_key_length :
hash->key_length)),
blength,records);
new_index=hash_mask(rec_hashnr(hash,record),blength,records);
if (idx == new_index)
return(0); /* Nothing to do (No record check) */
previous=0;
for (;;)
{
if ((pos= data+idx)->data == record)
break;
previous=pos;
if ((idx=pos->next) == NO_RECORD)
return(1); /* Not found in links */
}
hash->current_record= NO_RECORD;
org_link= *pos;
empty=idx;
/* Relink record from current chain */
if (!previous)
{
if (pos->next != NO_RECORD)
{
empty=pos->next;
*pos= data[pos->next];
}
}
else
previous->next=pos->next; /* unlink pos */
/* Move data to correct position */
pos=data+new_index;
new_pos_index=hash_rec_mask(hash,pos,blength,records);
if (new_index != new_pos_index)
{ /* Other record in wrong position */
data[empty] = *pos;
movelink(data,new_index,new_pos_index,empty);
org_link.next=NO_RECORD;
data[new_index]= org_link;
}
else
{ /* Link in chain at right position */
org_link.next=data[new_index].next;
data[empty]=org_link;
data[new_index].next=empty;
}
return(0);
}
|
O0
|
c
|
ma_hashtbl_update:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x4574c
movl -0x24(%rbp), %eax
movl %eax, -0x7c(%rbp)
jmp 0x45756
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x7c(%rbp)
movq -0x78(%rbp), %rax
movq -0x70(%rbp), %rdi
movl -0x7c(%rbp), %esi
callq *%rax
movl %eax, %edi
movl -0x34(%rbp), %esi
movl -0x38(%rbp), %edx
callq 0x44ce0
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x452c0
movl %eax, %edi
movl -0x34(%rbp), %esi
movl -0x38(%rbp), %edx
callq 0x44ce0
movl %eax, -0x2c(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jne 0x457a1
movb $0x0, -0x1(%rbp)
jmp 0x45925
movq $0x0, -0x60(%rbp)
movq -0x58(%rbp), %rax
movl -0x28(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq 0x8(%rax), %rax
cmpq -0x18(%rbp), %rax
jne 0x457c7
jmp 0x457e8
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x28(%rbp)
cmpl $-0x1, %eax
jne 0x457e6
movb $0x1, -0x1(%rbp)
jmp 0x45925
jmp 0x457a9
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x68(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x50(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x4584a
movq -0x68(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x45848
movq -0x68(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x68(%rbp), %rax
movq -0x58(%rbp), %rcx
movq -0x68(%rbp), %rdx
movl (%rdx), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x45856
movq -0x68(%rbp), %rax
movl (%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x58(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl -0x34(%rbp), %edx
movl -0x38(%rbp), %ecx
callq 0x44db0
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
je 0x458de
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x68(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl -0x30(%rbp), %edx
movl -0x3c(%rbp), %ecx
callq 0x45300
movl $0xffffffff, -0x50(%rbp) # imm = 0xFFFFFFFF
movq -0x58(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x45921
movq -0x58(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x3c(%rbp), %ecx
movq -0x58(%rbp), %rax
movl -0x2c(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_hashtbl_update:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_58], rax
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov [rbp+var_34], eax
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov [rbp+var_38], eax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov [rbp+var_78], rax
mov rax, [rbp+var_20]
mov [rbp+var_70], rax
cmp [rbp+var_24], 0
jz short loc_4574C
mov eax, [rbp+var_24]
mov [rbp+var_7C], eax
jmp short loc_45756
loc_4574C:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov [rbp+var_7C], eax
loc_45756:
mov rax, [rbp+var_78]
mov rdi, [rbp+var_70]
mov esi, [rbp+var_7C]
call rax
mov edi, eax
mov esi, [rbp+var_34]
mov edx, [rbp+var_38]
call hash_mask
mov [rbp+var_28], eax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call rec_hashnr
mov edi, eax
mov esi, [rbp+var_34]
mov edx, [rbp+var_38]
call hash_mask
mov [rbp+var_2C], eax
mov eax, [rbp+var_28]
cmp eax, [rbp+var_2C]
jnz short loc_457A1
mov [rbp+var_1], 0
jmp loc_45925
loc_457A1:
mov [rbp+var_60], 0
loc_457A9:
mov rax, [rbp+var_58]
mov ecx, [rbp+var_28]
shl rcx, 4
add rax, rcx
mov [rbp+var_68], rax
mov rax, [rax+8]
cmp rax, [rbp+var_18]
jnz short loc_457C7
jmp short loc_457E8
loc_457C7:
mov rax, [rbp+var_68]
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
mov eax, [rax]
mov [rbp+var_28], eax
cmp eax, 0FFFFFFFFh
jnz short loc_457E6
mov [rbp+var_1], 1
jmp loc_45925
loc_457E6:
jmp short loc_457A9
loc_457E8:
mov rax, [rbp+var_10]
mov dword ptr [rax+10h], 0FFFFFFFFh
mov rax, [rbp+var_68]
mov rcx, [rax]
mov [rbp+var_50], rcx
mov rax, [rax+8]
mov [rbp+var_48], rax
mov eax, [rbp+var_28]
mov [rbp+var_3C], eax
cmp [rbp+var_60], 0
jnz short loc_4584A
mov rax, [rbp+var_68]
cmp dword ptr [rax], 0FFFFFFFFh
jz short loc_45848
mov rax, [rbp+var_68]
mov eax, [rax]
mov [rbp+var_3C], eax
mov rax, [rbp+var_68]
mov rcx, [rbp+var_58]
mov rdx, [rbp+var_68]
mov edx, [rdx]
shl rdx, 4
add rcx, rdx
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
loc_45848:
jmp short loc_45856
loc_4584A:
mov rax, [rbp+var_68]
mov ecx, [rax]
mov rax, [rbp+var_60]
mov [rax], ecx
loc_45856:
mov rax, [rbp+var_58]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov [rbp+var_68], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_68]
mov edx, [rbp+var_34]
mov ecx, [rbp+var_38]
call hash_rec_mask
mov [rbp+var_30], eax
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_30]
jz short loc_458DE
mov rax, [rbp+var_58]
mov ecx, [rbp+var_3C]
shl rcx, 4
add rax, rcx
mov rcx, [rbp+var_68]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rdi, [rbp+var_58]
mov esi, [rbp+var_2C]
mov edx, [rbp+var_30]
mov ecx, [rbp+var_3C]
call movelink
mov dword ptr [rbp+var_50], 0FFFFFFFFh
mov rax, [rbp+var_58]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov rcx, [rbp+var_50]
mov [rax], rcx
mov rcx, [rbp+var_48]
mov [rax+8], rcx
jmp short loc_45921
loc_458DE:
mov rax, [rbp+var_58]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov eax, [rax]
mov dword ptr [rbp+var_50], eax
mov rax, [rbp+var_58]
mov ecx, [rbp+var_3C]
shl rcx, 4
add rax, rcx
mov rcx, [rbp+var_50]
mov [rax], rcx
mov rcx, [rbp+var_48]
mov [rax+8], rcx
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_58]
mov edx, [rbp+var_2C]
shl rdx, 4
add rax, rdx
mov [rax], ecx
loc_45921:
mov [rbp+var_1], 0
loc_45925:
mov al, [rbp+var_1]
add rsp, 80h
pop rbp
retn
|
char ma_hashtbl_update(long long a1, long long a2, long long a3, unsigned int a4)
{
unsigned int v4; // eax
unsigned int v5; // eax
long long v6; // rdx
_QWORD *v7; // rax
_QWORD *v8; // rax
_QWORD *v9; // rax
unsigned int v11; // [rsp+4h] [rbp-7Ch]
unsigned int *v12; // [rsp+18h] [rbp-68h]
_QWORD *v13; // [rsp+18h] [rbp-68h]
_DWORD *v14; // [rsp+20h] [rbp-60h]
long long v15; // [rsp+28h] [rbp-58h]
long long v16; // [rsp+30h] [rbp-50h]
long long v17; // [rsp+38h] [rbp-48h]
unsigned int v18; // [rsp+44h] [rbp-3Ch]
unsigned int v19; // [rsp+48h] [rbp-38h]
unsigned int v20; // [rsp+4Ch] [rbp-34h]
unsigned int v21; // [rsp+50h] [rbp-30h]
unsigned int v22; // [rsp+54h] [rbp-2Ch]
unsigned int v23; // [rsp+58h] [rbp-28h]
v15 = *(_QWORD *)(a1 + 24);
v20 = *(_DWORD *)(a1 + 12);
v19 = *(_DWORD *)(a1 + 8);
if ( a4 )
v11 = a4;
else
v11 = *(_DWORD *)(a1 + 4);
v4 = (*(long long ( **)(long long, _QWORD))(a1 + 64))(a3, v11);
v23 = hash_mask(v4, v20, v19);
v5 = rec_hashnr(a1, a2);
v22 = hash_mask(v5, v20, v19);
if ( v23 == v22 )
return 0;
v14 = 0LL;
while ( 1 )
{
v12 = (unsigned int *)(16LL * v23 + v15);
if ( *((_QWORD *)v12 + 1) == a2 )
break;
v14 = (_DWORD *)(16LL * v23 + v15);
v23 = *v12;
if ( *v12 == -1 )
return 1;
}
*(_DWORD *)(a1 + 16) = -1;
v16 = *(_QWORD *)v12;
v17 = *((_QWORD *)v12 + 1);
v18 = v23;
if ( v14 )
{
*v14 = *v12;
}
else if ( *v12 != -1 )
{
v18 = *v12;
v6 = 16LL * *v12;
*(_QWORD *)v12 = *(_QWORD *)(v6 + v15);
*((_QWORD *)v12 + 1) = *(_QWORD *)(v6 + v15 + 8);
}
v13 = (_QWORD *)(16LL * v22 + v15);
v21 = hash_rec_mask(a1, (long long)v13, v20, v19);
if ( v22 == v21 )
{
LODWORD(v16) = *(_DWORD *)(16LL * v22 + v15);
v9 = (_QWORD *)(16LL * v18 + v15);
*v9 = v16;
v9[1] = v17;
*(_DWORD *)(16LL * v22 + v15) = v18;
}
else
{
v7 = (_QWORD *)(16LL * v18 + v15);
*v7 = *v13;
v7[1] = v13[1];
movelink(v15, v22, v21, v18);
LODWORD(v16) = -1;
v8 = (_QWORD *)(16LL * v22 + v15);
*v8 = v16;
v8[1] = v17;
}
return 0;
}
|
ma_hashtbl_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x38],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x70],RAX
CMP dword ptr [RBP + -0x24],0x0
JZ 0x0014574c
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x7c],EAX
JMP 0x00145756
LAB_0014574c:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x7c],EAX
LAB_00145756:
MOV RAX,qword ptr [RBP + -0x78]
MOV RDI,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RBP + -0x7c]
CALL RAX
MOV EDI,EAX
MOV ESI,dword ptr [RBP + -0x34]
MOV EDX,dword ptr [RBP + -0x38]
CALL 0x00144ce0
MOV dword ptr [RBP + -0x28],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001452c0
MOV EDI,EAX
MOV ESI,dword ptr [RBP + -0x34]
MOV EDX,dword ptr [RBP + -0x38]
CALL 0x00144ce0
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x2c]
JNZ 0x001457a1
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00145925
LAB_001457a1:
MOV qword ptr [RBP + -0x60],0x0
LAB_001457a9:
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x28]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x001457c7
JMP 0x001457e8
LAB_001457c7:
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x28],EAX
CMP EAX,-0x1
JNZ 0x001457e6
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145925
LAB_001457e6:
JMP 0x001457a9
LAB_001457e8:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x10],0xffffffff
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x3c],EAX
CMP qword ptr [RBP + -0x60],0x0
JNZ 0x0014584a
MOV RAX,qword ptr [RBP + -0x68]
CMP dword ptr [RAX],-0x1
JZ 0x00145848
MOV RAX,qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x68]
MOV EDX,dword ptr [RDX]
SHL RDX,0x4
ADD RCX,RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_00145848:
JMP 0x00145856
LAB_0014584a:
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
LAB_00145856:
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,dword ptr [RBP + -0x34]
MOV ECX,dword ptr [RBP + -0x38]
CALL 0x00144db0
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x30]
JZ 0x001458de
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x3c]
SHL RCX,0x4
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x58]
MOV ESI,dword ptr [RBP + -0x2c]
MOV EDX,dword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
CALL 0x00145300
MOV dword ptr [RBP + -0x50],0xffffffff
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x00145921
LAB_001458de:
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x50],EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x3c]
SHL RCX,0x4
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x58]
MOV EDX,dword ptr [RBP + -0x2c]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX],ECX
LAB_00145921:
MOV byte ptr [RBP + -0x1],0x0
LAB_00145925:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x80
POP RBP
RET
|
int8 ma_hashtbl_update(long param_1,long param_2,int8 param_3,int param_4)
{
int4 uVar1;
int4 uVar2;
long lVar3;
int8 uVar4;
int8 uVar5;
int4 uVar6;
uint uVar7;
uint uVar8;
uint *puVar9;
int8 *puVar10;
uint *puVar11;
int8 *puVar12;
int local_84;
uint *local_68;
int8 local_58;
uint local_44;
uint local_30;
int1 local_9;
lVar3 = *(long *)(param_1 + 0x18);
uVar1 = *(int4 *)(param_1 + 0xc);
uVar2 = *(int4 *)(param_1 + 8);
local_84 = param_4;
if (param_4 == 0) {
local_84 = *(int *)(param_1 + 4);
}
uVar6 = (**(code **)(param_1 + 0x40))(param_3,local_84);
local_30 = hash_mask(uVar6,uVar1,uVar2);
uVar6 = rec_hashnr(param_1,param_2);
uVar7 = hash_mask(uVar6,uVar1,uVar2);
puVar11 = (uint *)(ulong)local_30;
if (local_30 == uVar7) {
local_9 = 0;
}
else {
local_68 = (uint *)0x0;
do {
puVar9 = (uint *)(lVar3 + (ulong)local_30 * 0x10);
if (*(long *)(puVar9 + 2) == param_2) {
*(int4 *)(param_1 + 0x10) = 0xffffffff;
uVar4 = *(int8 *)puVar9;
uVar5 = *(int8 *)(puVar9 + 2);
local_44 = local_30;
if (local_68 == (uint *)0x0) {
if (*puVar9 != 0xffffffff) {
local_44 = *puVar9;
puVar12 = (int8 *)(lVar3 + (ulong)*puVar9 * 0x10);
*(int8 *)puVar9 = *puVar12;
*(int8 *)(puVar9 + 2) = puVar12[1];
}
}
else {
*local_68 = *puVar9;
}
puVar12 = (int8 *)(lVar3 + (ulong)uVar7 * 0x10);
uVar8 = hash_rec_mask(param_1,puVar12,uVar1,uVar2);
local_58._4_4_ = (int4)((ulong)uVar4 >> 0x20);
if (uVar7 == uVar8) {
local_58 = CONCAT44(local_58._4_4_,*(int4 *)(lVar3 + (ulong)uVar7 * 0x10));
puVar12 = (int8 *)(lVar3 + (ulong)local_44 * 0x10);
*puVar12 = local_58;
puVar12[1] = uVar5;
puVar11 = (uint *)(lVar3 + (ulong)uVar7 * 0x10);
*puVar11 = local_44;
}
else {
puVar10 = (int8 *)(lVar3 + (ulong)local_44 * 0x10);
*puVar10 = *puVar12;
puVar10[1] = puVar12[1];
movelink(lVar3,uVar7,uVar8,local_44);
local_58 = CONCAT44(local_58._4_4_,0xffffffff);
puVar11 = (uint *)(lVar3 + (ulong)uVar7 * 0x10);
*(int8 *)puVar11 = local_58;
*(int8 *)(puVar11 + 2) = uVar5;
}
local_9 = 0;
goto LAB_00145925;
}
local_30 = *puVar9;
puVar11 = (uint *)(ulong)local_30;
local_68 = puVar9;
} while (local_30 != 0xffffffff);
local_9 = 1;
}
LAB_00145925:
return CONCAT71((int7)((ulong)puVar11 >> 8),local_9);
}
|
|
57,879
|
mysql_stmt_fetch
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
int STDCALL mysql_stmt_fetch(MYSQL_STMT *stmt)
{
unsigned char *row;
int rc;
if (stmt->state <= MYSQL_STMT_EXECUTED)
{
SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (stmt->state < MYSQL_STMT_WAITING_USE_OR_STORE || !stmt->field_count)
{
SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
return(1);
} else if (stmt->state== MYSQL_STMT_WAITING_USE_OR_STORE)
{
stmt->default_rset_handler(stmt);
}
if (stmt->state == MYSQL_STMT_FETCH_DONE)
return(MYSQL_NO_DATA);
if ((rc= stmt->mysql->methods->db_stmt_fetch(stmt, &row)))
{
stmt->state= MYSQL_STMT_FETCH_DONE;
stmt->mysql->status= MYSQL_STATUS_READY;
/* to fetch data again, stmt must be executed again */
return(rc);
}
rc= stmt->mysql->methods->db_stmt_fetch_to_bind(stmt, row);
stmt->state= MYSQL_STMT_USER_FETCHING;
CLEAR_CLIENT_ERROR(stmt->mysql);
CLEAR_CLIENT_STMT_ERROR(stmt);
return(rc);
}
|
O3
|
c
|
mysql_stmt_fetch:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x50(%rdi), %ecx
cmpl $0x2, %ecx
jbe 0x2747e
cmpl $0x0, 0x60(%rbx)
je 0x2747e
cmpl $0x3, %ecx
jne 0x27440
movq %rbx, %rdi
callq *0x358(%rbx)
movl 0x50(%rbx), %ecx
movl $0x64, %eax
cmpl $0x6, %ecx
je 0x274d5
movq 0x38(%rbx), %rax
movq 0x4d0(%rax), %rax
leaq -0x18(%rbp), %rsi
movq %rbx, %rdi
callq *0x68(%rax)
testl %eax, %eax
je 0x274de
movl $0x6, 0x50(%rbx)
movq 0x38(%rbx), %rcx
movl $0x0, 0x488(%rcx)
jmp 0x274d5
movl $0x7de, 0x108(%rbx) # imm = 0x7DE
leaq 0x30d(%rbx), %rdi
leaq 0x2ad7a(%rip), %rax # 0x52210
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x2ad65(%rip), %rax # 0x52220
movq 0x70(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r14b, 0x30b(%rbx)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x38(%rbx), %rax
movq 0x4d0(%rax), %rax
movq -0x18(%rbp), %rsi
movq %rbx, %rdi
callq *0x70(%rax)
movl $0x5, 0x50(%rbx)
movq 0x38(%rbx), %rcx
movl $0x0, 0x90(%rcx)
movq 0x38(%rbx), %rcx
movl $0x30303030, 0x297(%rcx) # imm = 0x30303030
movw $0x30, 0x29b(%rcx)
movq 0x38(%rbx), %rcx
movb $0x0, 0x97(%rcx)
movq 0x38(%rbx), %rcx
movq 0x2a0(%rcx), %rcx
testq %rcx, %rcx
je 0x27541
movl $0x0, 0x4(%rcx)
movl $0x0, 0x108(%rbx)
movl $0x30303030, 0x30d(%rbx) # imm = 0x30303030
movw $0x30, 0x311(%rbx)
movb $0x0, 0x10c(%rbx)
jmp 0x274d5
|
mysql_stmt_fetch:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
mov ecx, [rdi+50h]
cmp ecx, 2
jbe short loc_2747E
cmp dword ptr [rbx+60h], 0
jz short loc_2747E
cmp ecx, 3
jnz short loc_27440
mov rdi, rbx
call qword ptr [rbx+358h]
mov ecx, [rbx+50h]
loc_27440:
mov eax, 64h ; 'd'
cmp ecx, 6
jz loc_274D5
mov rax, [rbx+38h]
mov rax, [rax+4D0h]
lea rsi, [rbp+var_18]
mov rdi, rbx
call qword ptr [rax+68h]
test eax, eax
jz short loc_274DE
mov dword ptr [rbx+50h], 6
mov rcx, [rbx+38h]
mov dword ptr [rcx+488h], 0
jmp short loc_274D5
loc_2747E:
mov dword ptr [rbx+108h], 7DEh
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r14b
mov eax, 1
loc_274D5:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_274DE:
mov rax, [rbx+38h]
mov rax, [rax+4D0h]
mov rsi, [rbp+var_18]
mov rdi, rbx
call qword ptr [rax+70h]
mov dword ptr [rbx+50h], 5
mov rcx, [rbx+38h]
mov dword ptr [rcx+90h], 0
mov rcx, [rbx+38h]
mov dword ptr [rcx+297h], 30303030h
mov word ptr [rcx+29Bh], 30h ; '0'
mov rcx, [rbx+38h]
mov byte ptr [rcx+97h], 0
mov rcx, [rbx+38h]
mov rcx, [rcx+2A0h]
test rcx, rcx
jz short loc_27541
mov dword ptr [rcx+4], 0
loc_27541:
mov dword ptr [rbx+108h], 0
mov dword ptr [rbx+30Dh], 30303030h
mov word ptr [rbx+311h], 30h ; '0'
mov byte ptr [rbx+10Ch], 0
jmp loc_274D5
|
long long mysql_stmt_fetch(long long a1)
{
unsigned int v1; // ecx
long long result; // rax
long long v3; // rcx
_QWORD v4[3]; // [rsp+8h] [rbp-18h] BYREF
v1 = *(_DWORD *)(a1 + 80);
if ( v1 > 2 && *(_DWORD *)(a1 + 96) )
{
if ( v1 == 3 )
{
(*(void ( **)(long long))(a1 + 856))(a1);
v1 = *(_DWORD *)(a1 + 80);
}
result = 100LL;
if ( v1 != 6 )
{
result = (*(long long ( **)(long long, _QWORD *))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 104LL))(
a1,
v4);
if ( (_DWORD)result )
{
*(_DWORD *)(a1 + 80) = 6;
*(_DWORD *)(*(_QWORD *)(a1 + 56) + 1160LL) = 0;
}
else
{
result = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 112LL))(
a1,
v4[0]);
*(_DWORD *)(a1 + 80) = 5;
*(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL) = 0;
strcpy((char *)(*(_QWORD *)(a1 + 56) + 663LL), "00000");
*(_BYTE *)(*(_QWORD *)(a1 + 56) + 151LL) = 0;
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 672LL);
if ( v3 )
*(_DWORD *)(v3 + 4) = 0;
*(_DWORD *)(a1 + 264) = 0;
strcpy((char *)(a1 + 781), "00000");
*(_BYTE *)(a1 + 268) = 0;
}
}
}
else
{
*(_DWORD *)(a1 + 264) = 2014;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
strncpy(a1 + 268, client_errors[14], 512LL);
*(_BYTE *)(a1 + 779) = 0;
return 1LL;
}
return result;
}
|
mysql_stmt_fetch:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOV ECX,dword ptr [RDI + 0x50]
CMP ECX,0x2
JBE 0x0012747e
CMP dword ptr [RBX + 0x60],0x0
JZ 0x0012747e
CMP ECX,0x3
JNZ 0x00127440
MOV RDI,RBX
CALL qword ptr [RBX + 0x358]
MOV ECX,dword ptr [RBX + 0x50]
LAB_00127440:
MOV EAX,0x64
CMP ECX,0x6
JZ 0x001274d5
MOV RAX,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RAX + 0x4d0]
LEA RSI,[RBP + -0x18]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
TEST EAX,EAX
JZ 0x001274de
MOV dword ptr [RBX + 0x50],0x6
MOV RCX,qword ptr [RBX + 0x38]
MOV dword ptr [RCX + 0x488],0x0
JMP 0x001274d5
LAB_0012747e:
MOV dword ptr [RBX + 0x108],0x7de
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x152210]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x152220]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R14B
MOV EAX,0x1
LAB_001274d5:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_001274de:
MOV RAX,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDI,RBX
CALL qword ptr [RAX + 0x70]
MOV dword ptr [RBX + 0x50],0x5
MOV RCX,qword ptr [RBX + 0x38]
MOV dword ptr [RCX + 0x90],0x0
MOV RCX,qword ptr [RBX + 0x38]
MOV dword ptr [RCX + 0x297],0x30303030
MOV word ptr [RCX + 0x29b],0x30
MOV RCX,qword ptr [RBX + 0x38]
MOV byte ptr [RCX + 0x97],0x0
MOV RCX,qword ptr [RBX + 0x38]
MOV RCX,qword ptr [RCX + 0x2a0]
TEST RCX,RCX
JZ 0x00127541
MOV dword ptr [RCX + 0x4],0x0
LAB_00127541:
MOV dword ptr [RBX + 0x108],0x0
MOV dword ptr [RBX + 0x30d],0x30303030
MOV word ptr [RBX + 0x311],0x30
MOV byte ptr [RBX + 0x10c],0x0
JMP 0x001274d5
|
int8 mysql_stmt_fetch(long param_1)
{
long lVar1;
int8 uVar2;
uint uVar3;
int8 local_20;
uVar3 = *(uint *)(param_1 + 0x50);
if ((uVar3 < 3) || (*(int *)(param_1 + 0x60) == 0)) {
*(int4 *)(param_1 + 0x108) = 0x7de;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
strncpy((char *)(param_1 + 0x10c),PTR_s_Commands_out_of_sync__you_can_t_r_00152290,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
uVar2 = 1;
}
else {
if (uVar3 == 3) {
(**(code **)(param_1 + 0x358))(param_1);
uVar3 = *(uint *)(param_1 + 0x50);
}
uVar2 = 100;
if (uVar3 != 6) {
uVar2 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x68))(param_1,&local_20);
if ((int)uVar2 == 0) {
uVar2 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x70))(param_1,local_20)
;
*(int4 *)(param_1 + 0x50) = 5;
*(int4 *)(*(long *)(param_1 + 0x38) + 0x90) = 0;
lVar1 = *(long *)(param_1 + 0x38);
*(int4 *)(lVar1 + 0x297) = 0x30303030;
*(int2 *)(lVar1 + 0x29b) = 0x30;
*(int1 *)(*(long *)(param_1 + 0x38) + 0x97) = 0;
lVar1 = *(long *)(*(long *)(param_1 + 0x38) + 0x2a0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 4) = 0;
}
*(int4 *)(param_1 + 0x108) = 0;
*(int4 *)(param_1 + 0x30d) = 0x30303030;
*(int2 *)(param_1 + 0x311) = 0x30;
*(int1 *)(param_1 + 0x10c) = 0;
}
else {
*(int4 *)(param_1 + 0x50) = 6;
*(int4 *)(*(long *)(param_1 + 0x38) + 0x488) = 0;
}
}
}
return uVar2;
}
|
|
57,880
|
reset_partitioned_key_cache_counters
|
eloqsql/mysys/mf_keycache.c
|
static int
reset_partitioned_key_cache_counters(const char *name __attribute__((unused)),
PARTITIONED_KEY_CACHE_CB *keycache)
{
uint i;
uint partitions= keycache->partitions;
DBUG_ENTER("partitioned_reset_key_cache_counters");
for (i = 0; i < partitions; i++)
{
reset_simple_key_cache_counters(name, keycache->partition_array[i]);
}
DBUG_RETURN(0);
}
|
O3
|
c
|
reset_partitioned_key_cache_counters:
movl 0x1c(%rsi), %eax
testq %rax, %rax
je 0x68b20
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
xorps %xmm0, %xmm0
movq 0x8(%rsi), %rdx
movq (%rdx,%rcx,8), %rdx
cmpb $0x0, (%rdx)
je 0x68b17
movups %xmm0, 0x148(%rdx)
movups %xmm0, 0x138(%rdx)
movq $0x0, 0x158(%rdx)
incq %rcx
cmpq %rcx, %rax
jne 0x68af1
popq %rbp
xorl %eax, %eax
retq
|
reset_partitioned_key_cache_counters:
mov eax, [rsi+1Ch]
test rax, rax
jz short loc_68B20
push rbp
mov rbp, rsp
xor ecx, ecx
xorps xmm0, xmm0
loc_68AF1:
mov rdx, [rsi+8]
mov rdx, [rdx+rcx*8]
cmp byte ptr [rdx], 0
jz short loc_68B17
movups xmmword ptr [rdx+148h], xmm0
movups xmmword ptr [rdx+138h], xmm0
mov qword ptr [rdx+158h], 0
loc_68B17:
inc rcx
cmp rax, rcx
jnz short loc_68AF1
pop rbp
loc_68B20:
xor eax, eax
retn
|
long long reset_partitioned_key_cache_counters(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rcx
long long v4; // rdx
v2 = *(unsigned int *)(a2 + 28);
if ( *(_DWORD *)(a2 + 28) )
{
v3 = 0LL;
do
{
v4 = *(_QWORD *)(*(_QWORD *)(a2 + 8) + 8 * v3);
if ( *(_BYTE *)v4 )
{
*(_OWORD *)(v4 + 328) = 0LL;
*(_OWORD *)(v4 + 312) = 0LL;
*(_QWORD *)(v4 + 344) = 0LL;
}
++v3;
}
while ( v2 != v3 );
}
return 0LL;
}
|
reset_partitioned_key_cache_counters:
MOV EAX,dword ptr [RSI + 0x1c]
TEST RAX,RAX
JZ 0x00168b20
PUSH RBP
MOV RBP,RSP
XOR ECX,ECX
XORPS XMM0,XMM0
LAB_00168af1:
MOV RDX,qword ptr [RSI + 0x8]
MOV RDX,qword ptr [RDX + RCX*0x8]
CMP byte ptr [RDX],0x0
JZ 0x00168b17
MOVUPS xmmword ptr [RDX + 0x148],XMM0
MOVUPS xmmword ptr [RDX + 0x138],XMM0
MOV qword ptr [RDX + 0x158],0x0
LAB_00168b17:
INC RCX
CMP RAX,RCX
JNZ 0x00168af1
POP RBP
LAB_00168b20:
XOR EAX,EAX
RET
|
int8 reset_partitioned_key_cache_counters(int8 param_1,long param_2)
{
uint uVar1;
char *pcVar2;
ulong uVar3;
uVar1 = *(uint *)(param_2 + 0x1c);
if ((ulong)uVar1 != 0) {
uVar3 = 0;
do {
pcVar2 = *(char **)(*(long *)(param_2 + 8) + uVar3 * 8);
if (*pcVar2 != '\0') {
pcVar2[0x148] = '\0';
pcVar2[0x149] = '\0';
pcVar2[0x14a] = '\0';
pcVar2[0x14b] = '\0';
pcVar2[0x14c] = '\0';
pcVar2[0x14d] = '\0';
pcVar2[0x14e] = '\0';
pcVar2[0x14f] = '\0';
pcVar2[0x150] = '\0';
pcVar2[0x151] = '\0';
pcVar2[0x152] = '\0';
pcVar2[0x153] = '\0';
pcVar2[0x154] = '\0';
pcVar2[0x155] = '\0';
pcVar2[0x156] = '\0';
pcVar2[0x157] = '\0';
pcVar2[0x138] = '\0';
pcVar2[0x139] = '\0';
pcVar2[0x13a] = '\0';
pcVar2[0x13b] = '\0';
pcVar2[0x13c] = '\0';
pcVar2[0x13d] = '\0';
pcVar2[0x13e] = '\0';
pcVar2[0x13f] = '\0';
pcVar2[0x140] = '\0';
pcVar2[0x141] = '\0';
pcVar2[0x142] = '\0';
pcVar2[0x143] = '\0';
pcVar2[0x144] = '\0';
pcVar2[0x145] = '\0';
pcVar2[0x146] = '\0';
pcVar2[0x147] = '\0';
pcVar2[0x158] = '\0';
pcVar2[0x159] = '\0';
pcVar2[0x15a] = '\0';
pcVar2[0x15b] = '\0';
pcVar2[0x15c] = '\0';
pcVar2[0x15d] = '\0';
pcVar2[0x15e] = '\0';
pcVar2[0x15f] = '\0';
}
uVar3 = uVar3 + 1;
} while (uVar1 != uVar3);
}
return 0;
}
|
|
57,881
|
my_utf16_uni
|
eloqsql/strings/ctype-ucs2.c
|
int
my_utf16_uni(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
return my_mb_wc_utf16_quick(pwc, s, e);
}
|
O3
|
c
|
my_utf16_uni:
pushq %rbp
movq %rsp, %rbp
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0x66f8c
movzbl (%rdx), %edi
movl %edi, %r9d
andl $-0x4, %r9d
xorl %eax, %eax
cmpl $0xdc, %r9d
je 0x66f8c
cmpl $0xd8, %r9d
jne 0x66f79
leaq 0x4(%rdx), %r9
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rcx, %r9
ja 0x66f8c
movzbl (%r8), %ecx
movl %ecx, %r8d
andl $-0x4, %r8d
movl $0x0, %eax
cmpl $0xdc, %r8d
jne 0x66f8c
shll $0x12, %edi
shll $0x8, %ecx
orl %edi, %ecx
movzbl 0x1(%rdx), %eax
shll $0xa, %eax
movzbl 0x3(%rdx), %edx
andl $0xc0300, %ecx # imm = 0xC0300
orl %edx, %ecx
addl %eax, %ecx
addl $0x10000, %ecx # imm = 0x10000
movl $0x4, %eax
jmp 0x66f87
shll $0x8, %edi
movzbl 0x1(%rdx), %ecx
orl %edi, %ecx
movl $0x2, %eax
movl %ecx, %ecx
movq %rcx, (%rsi)
popq %rbp
retq
|
my_utf16_uni:
push rbp
mov rbp, rsp
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja loc_66F8C
movzx edi, byte ptr [rdx]
mov r9d, edi
and r9d, 0FFFFFFFCh
xor eax, eax
cmp r9d, 0DCh
jz short loc_66F8C
cmp r9d, 0D8h
jnz short loc_66F79
lea r9, [rdx+4]
mov eax, 0FFFFFF98h
cmp r9, rcx
ja short loc_66F8C
movzx ecx, byte ptr [r8]
mov r8d, ecx
and r8d, 0FFFFFFFCh
mov eax, 0
cmp r8d, 0DCh
jnz short loc_66F8C
shl edi, 12h
shl ecx, 8
or ecx, edi
movzx eax, byte ptr [rdx+1]
shl eax, 0Ah
movzx edx, byte ptr [rdx+3]
and ecx, 0C0300h
or ecx, edx
add ecx, eax
add ecx, 10000h
mov eax, 4
jmp short loc_66F87
loc_66F79:
shl edi, 8
movzx ecx, byte ptr [rdx+1]
or ecx, edi
mov eax, 2
loc_66F87:
mov ecx, ecx
mov [rsi], rcx
loc_66F8C:
pop rbp
retn
|
long long my_utf16_uni(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
_BYTE *v4; // r8
long long result; // rax
int v6; // edi
int v7; // r9d
unsigned int v8; // ecx
v4 = a3 + 2;
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = *a3;
v7 = v6 & 0xFC;
result = 0LL;
if ( v7 != 220 )
{
if ( v7 != 216 )
{
v8 = (v6 << 8) | a3[1];
result = 2LL;
goto LABEL_8;
}
result = 4294967192LL;
if ( (unsigned long long)(a3 + 4) <= a4 )
{
result = 0LL;
if ( (*v4 & 0xFC) == 0xDC )
{
v8 = (a3[1] << 10) + (a3[3] | ((v6 << 18) | ((unsigned __int8)*v4 << 8)) & 0xC0300) + 0x10000;
result = 4LL;
LABEL_8:
*a2 = v8;
}
}
}
}
return result;
}
|
my_utf16_uni:
PUSH RBP
MOV RBP,RSP
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x00166f8c
MOVZX EDI,byte ptr [RDX]
MOV R9D,EDI
AND R9D,0xfffffffc
XOR EAX,EAX
CMP R9D,0xdc
JZ 0x00166f8c
CMP R9D,0xd8
JNZ 0x00166f79
LEA R9,[RDX + 0x4]
MOV EAX,0xffffff98
CMP R9,RCX
JA 0x00166f8c
MOVZX ECX,byte ptr [R8]
MOV R8D,ECX
AND R8D,0xfffffffc
MOV EAX,0x0
CMP R8D,0xdc
JNZ 0x00166f8c
SHL EDI,0x12
SHL ECX,0x8
OR ECX,EDI
MOVZX EAX,byte ptr [RDX + 0x1]
SHL EAX,0xa
MOVZX EDX,byte ptr [RDX + 0x3]
AND ECX,0xc0300
OR ECX,EDX
ADD ECX,EAX
ADD ECX,0x10000
MOV EAX,0x4
JMP 0x00166f87
LAB_00166f79:
SHL EDI,0x8
MOVZX ECX,byte ptr [RDX + 0x1]
OR ECX,EDI
MOV EAX,0x2
LAB_00166f87:
MOV ECX,ECX
MOV qword ptr [RSI],RCX
LAB_00166f8c:
POP RBP
RET
|
int8 my_utf16_uni(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
uVar3 = 0xffffff9a;
if (param_3 + 2 <= param_4) {
bVar1 = *param_3;
uVar3 = 0;
if ((bVar1 & 0xfc) != 0xdc) {
if ((bVar1 & 0xfc) == 0xd8) {
if (param_4 < param_3 + 4) {
return 0xffffff98;
}
bVar2 = param_3[2];
if ((bVar2 & 0xfc) != 0xdc) {
return 0;
}
uVar4 = (((uint)bVar2 << 8 | (uint)bVar1 << 0x12) & 0xc0300 | (uint)param_3[3]) +
(uint)param_3[1] * 0x400 + 0x10000;
uVar3 = 4;
}
else {
uVar4 = (uint)CONCAT11(bVar1,param_3[1]);
uVar3 = 2;
}
*param_2 = (ulong)uVar4;
}
}
return uVar3;
}
|
|
57,882
|
enough_free_entries
|
eloqsql/storage/maria/ma_blockrec.c
|
static my_bool enough_free_entries(uchar *buff, uint block_size,
uint wanted_entries)
{
uint entries= (uint) buff[DIR_COUNT_OFFSET];
uint needed_free_entries, free_entry;
if (entries + wanted_entries <= MAX_ROWS_PER_PAGE)
return 1;
/* Check if enough free entries in free list */
needed_free_entries= entries + wanted_entries - MAX_ROWS_PER_PAGE;
free_entry= (uint) buff[DIR_FREE_OFFSET];
while (free_entry != END_OF_DIR_FREE_LIST)
{
uchar *dir;
if (!--needed_free_entries)
return 1;
dir= dir_entry_pos(buff, block_size, free_entry);
free_entry= dir[3];
}
return 0; /* Not enough entries */
}
|
O0
|
c
|
enough_free_entries:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addl -0x18(%rbp), %eax
cmpl $0xff, %eax
ja 0x53230
movb $0x1, -0x1(%rbp)
jmp 0x5328a
movl -0x1c(%rbp), %eax
addl -0x18(%rbp), %eax
subl $0xff, %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x9(%rax), %eax
movl %eax, -0x24(%rbp)
cmpl $0xff, -0x24(%rbp)
je 0x53286
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, %eax
jne 0x53266
movb $0x1, -0x1(%rbp)
jmp 0x5328a
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x24(%rbp), %edx
callq 0x53b00
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x3(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x53249
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
enough_free_entries:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+8]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add eax, [rbp+var_18]
cmp eax, 0FFh
ja short loc_53230
mov [rbp+var_1], 1
jmp short loc_5328A
loc_53230:
mov eax, [rbp+var_1C]
add eax, [rbp+var_18]
sub eax, 0FFh
mov [rbp+var_20], eax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+9]
mov [rbp+var_24], eax
loc_53249:
cmp [rbp+var_24], 0FFh
jz short loc_53286
mov eax, [rbp+var_20]
add eax, 0FFFFFFFFh
mov [rbp+var_20], eax
cmp eax, 0
jnz short loc_53266
mov [rbp+var_1], 1
jmp short loc_5328A
loc_53266:
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov edx, [rbp+var_24]
call dir_entry_pos
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+3]
mov [rbp+var_24], eax
jmp short loc_53249
loc_53286:
mov [rbp+var_1], 0
loc_5328A:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char enough_free_entries(long long a1, unsigned int a2, int a3)
{
unsigned int i; // [rsp+Ch] [rbp-24h]
int v5; // [rsp+10h] [rbp-20h]
int v6; // [rsp+14h] [rbp-1Ch]
v6 = *(unsigned __int8 *)(a1 + 8);
if ( (unsigned int)(a3 + v6) <= 0xFF )
return 1;
v5 = a3 + v6 - 255;
for ( i = *(unsigned __int8 *)(a1 + 9); i != 255; i = *(unsigned __int8 *)(dir_entry_pos(a1, a2, i) + 3) )
{
if ( !--v5 )
return 1;
}
return 0;
}
|
enough_free_entries:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,dword ptr [RBP + -0x18]
CMP EAX,0xff
JA 0x00153230
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015328a
LAB_00153230:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,dword ptr [RBP + -0x18]
SUB EAX,0xff
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x9]
MOV dword ptr [RBP + -0x24],EAX
LAB_00153249:
CMP dword ptr [RBP + -0x24],0xff
JZ 0x00153286
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x20],EAX
CMP EAX,0x0
JNZ 0x00153266
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015328a
LAB_00153266:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x00153b00
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x3]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00153249
LAB_00153286:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015328a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int8 enough_free_entries(long param_1,int4 param_2,int param_3)
{
char cVar1;
uint uVar2;
long lVar4;
int4 local_28;
int1 local_9;
ulong uVar3;
uVar2 = (uint)*(byte *)(param_1 + 8) + param_3;
uVar3 = (ulong)uVar2;
if (uVar2 < 0x100) {
local_9 = 1;
}
else {
local_28 = ((uint)*(byte *)(param_1 + 8) + param_3) - 0xff;
cVar1 = *(char *)(param_1 + 9);
while (uVar3 = 0, cVar1 != -1) {
local_28 = local_28 - 1;
uVar3 = (ulong)local_28;
if (local_28 == 0) {
local_9 = 1;
goto LAB_0015328a;
}
lVar4 = dir_entry_pos(param_1,param_2,cVar1);
cVar1 = *(char *)(lVar4 + 3);
}
local_9 = 0;
}
LAB_0015328a:
return CONCAT71((int7)(uVar3 >> 8),local_9);
}
|
|
57,883
|
mariadb_time_to_string
|
eloqsql/libmariadb/libmariadb/ma_time.c
|
size_t mariadb_time_to_string(const MYSQL_TIME *tm, char *time_str, size_t len,
unsigned int digits)
{
size_t length;
if (!time_str || !len)
return 0;
if (digits == AUTO_SEC_PART_DIGITS)
digits= (tm->second_part) ? SEC_PART_DIGITS : 0;
switch(tm->time_type) {
case MYSQL_TIMESTAMP_DATE:
length= snprintf(time_str, len, "%04u-%02u-%02u", tm->year, tm->month, tm->day);
digits= 0;
break;
case MYSQL_TIMESTAMP_DATETIME:
length= snprintf(time_str, len, "%04u-%02u-%02u %02u:%02u:%02u",
tm->year, tm->month, tm->day, tm->hour, tm->minute, tm->second);
break;
case MYSQL_TIMESTAMP_TIME:
length= snprintf(time_str, len, "%s%02u:%02u:%02u",
(tm->neg ? "-" : ""), tm->hour, tm->minute, tm->second);
break;
default:
time_str[0]= '\0';
return 0;
break;
}
if (digits && (len < length))
{
char helper[16];
snprintf(helper, 16, ".%%0%du", digits);
length+= snprintf(time_str + length, len - length, helper, digits);
}
return length;
}
|
O0
|
c
|
mariadb_time_to_string:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movl %ecx, -0x44(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x1f5f5
cmpq $0x0, -0x40(%rbp)
jne 0x1f602
movq $0x0, -0x28(%rbp)
jmp 0x1f7a2
cmpl $0x27, -0x44(%rbp)
jne 0x1f621
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdx
xorl %eax, %eax
movl $0x6, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x54(%rbp)
testl %eax, %eax
je 0x1f64c
jmp 0x1f631
movl -0x54(%rbp), %eax
subl $0x1, %eax
je 0x1f68a
jmp 0x1f63b
movl -0x54(%rbp), %eax
subl $0x2, %eax
je 0x1f6e2
jmp 0x1f737
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rax
movl (%rax), %ecx
movq -0x30(%rbp), %rax
movl 0x4(%rax), %r8d
movq -0x30(%rbp), %rax
movl 0x8(%rax), %r9d
leaq 0x32bab(%rip), %rdx # 0x5221c
movb $0x0, %al
callq 0x17950
cltq
movq %rax, -0x50(%rbp)
movl $0x0, -0x44(%rbp)
jmp 0x1f748
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rax
movl (%rax), %ecx
movq -0x30(%rbp), %rax
movl 0x4(%rax), %r8d
movq -0x30(%rbp), %rax
movl 0x8(%rax), %r9d
movq -0x30(%rbp), %rax
movl 0xc(%rax), %r11d
movq -0x30(%rbp), %rax
movl 0x10(%rax), %r10d
movq -0x30(%rbp), %rax
movl 0x14(%rax), %eax
leaq 0x32b65(%rip), %rdx # 0x5222b
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x17950
cltq
movq %rax, -0x50(%rbp)
jmp 0x1f748
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rax
movsbl 0x20(%rax), %edx
leaq 0x33bf9(%rip), %rcx # 0x532f2
leaq 0x33807(%rip), %rax # 0x52f07
cmpl $0x0, %edx
cmovneq %rax, %rcx
movq -0x30(%rbp), %rax
movl 0xc(%rax), %r8d
movq -0x30(%rbp), %rax
movl 0x10(%rax), %r9d
movq -0x30(%rbp), %rax
movl 0x14(%rax), %eax
leaq 0x32b24(%rip), %rdx # 0x52249
movl %eax, (%rsp)
movb $0x0, %al
callq 0x17950
cltq
movq %rax, -0x50(%rbp)
jmp 0x1f748
movq -0x38(%rbp), %rax
movb $0x0, (%rax)
movq $0x0, -0x28(%rbp)
jmp 0x1f7a2
cmpl $0x0, -0x44(%rbp)
je 0x1f79a
movq -0x40(%rbp), %rax
cmpq -0x50(%rbp), %rax
jae 0x1f79a
leaq -0x20(%rbp), %rdi
movl -0x44(%rbp), %ecx
movl $0x10, %esi
leaq 0x32aef(%rip), %rdx # 0x5225a
movb $0x0, %al
callq 0x17950
movq -0x38(%rbp), %rdi
addq -0x50(%rbp), %rdi
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
leaq -0x20(%rbp), %rdx
movl -0x44(%rbp), %ecx
movb $0x0, %al
callq 0x17950
cltq
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x1f7c9
movq -0x60(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
callq 0x17690
nop
|
mariadb_time_to_string:
push rbp
mov rbp, rsp
sub rsp, 80h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_30], rdi
mov [rbp+var_38], rsi
mov [rbp+var_40], rdx
mov [rbp+var_44], ecx
cmp [rbp+var_38], 0
jz short loc_1F5F5
cmp [rbp+var_40], 0
jnz short loc_1F602
loc_1F5F5:
mov [rbp+var_28], 0
jmp loc_1F7A2
loc_1F602:
cmp [rbp+var_44], 27h ; '''
jnz short loc_1F621
mov rax, [rbp+var_30]
mov rdx, [rax+18h]
xor eax, eax
mov ecx, 6
cmp rdx, 0
cmovnz eax, ecx
mov [rbp+var_44], eax
loc_1F621:
mov rax, [rbp+var_30]
mov eax, [rax+24h]
mov [rbp+var_54], eax
test eax, eax
jz short loc_1F64C
jmp short $+2
loc_1F631:
mov eax, [rbp+var_54]
sub eax, 1
jz short loc_1F68A
jmp short $+2
loc_1F63B:
mov eax, [rbp+var_54]
sub eax, 2
jz loc_1F6E2
jmp loc_1F737
loc_1F64C:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_30]
mov ecx, [rax]
mov rax, [rbp+var_30]
mov r8d, [rax+4]
mov rax, [rbp+var_30]
mov r9d, [rax+8]
lea rdx, a04u02u02u; "%04u-%02u-%02u"
mov al, 0
call _snprintf
cdqe
mov [rbp+var_50], rax
mov [rbp+var_44], 0
jmp loc_1F748
loc_1F68A:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_30]
mov ecx, [rax]
mov rax, [rbp+var_30]
mov r8d, [rax+4]
mov rax, [rbp+var_30]
mov r9d, [rax+8]
mov rax, [rbp+var_30]
mov r11d, [rax+0Ch]
mov rax, [rbp+var_30]
mov r10d, [rax+10h]
mov rax, [rbp+var_30]
mov eax, [rax+14h]
lea rdx, a04u02u02u02u02; "%04u-%02u-%02u %02u:%02u:%02u"
mov [rsp+80h+var_80], r11d
mov [rsp+80h+var_78], r10d
mov [rsp+80h+var_70], eax
mov al, 0
call _snprintf
cdqe
mov [rbp+var_50], rax
jmp short loc_1F748
loc_1F6E2:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_30]
movsx edx, byte ptr [rax+20h]
lea rcx, asc_532F0+2; ""
lea rax, a555+5; "-"
cmp edx, 0
cmovnz rcx, rax
mov rax, [rbp+var_30]
mov r8d, [rax+0Ch]
mov rax, [rbp+var_30]
mov r9d, [rax+10h]
mov rax, [rbp+var_30]
mov eax, [rax+14h]
lea rdx, aS02u02u02u; "%s%02u:%02u:%02u"
mov [rsp+80h+var_80], eax
mov al, 0
call _snprintf
cdqe
mov [rbp+var_50], rax
jmp short loc_1F748
loc_1F737:
mov rax, [rbp+var_38]
mov byte ptr [rax], 0
mov [rbp+var_28], 0
jmp short loc_1F7A2
loc_1F748:
cmp [rbp+var_44], 0
jz short loc_1F79A
mov rax, [rbp+var_40]
cmp rax, [rbp+var_50]
jnb short loc_1F79A
lea rdi, [rbp+var_20]
mov ecx, [rbp+var_44]
mov esi, 10h
lea rdx, a0Du; ".%%0%du"
mov al, 0
call _snprintf
mov rdi, [rbp+var_38]
add rdi, [rbp+var_50]
mov rsi, [rbp+var_40]
sub rsi, [rbp+var_50]
lea rdx, [rbp+var_20]
mov ecx, [rbp+var_44]
mov al, 0
call _snprintf
cdqe
add rax, [rbp+var_50]
mov [rbp+var_50], rax
loc_1F79A:
mov rax, [rbp+var_50]
mov [rbp+var_28], rax
loc_1F7A2:
mov rax, [rbp+var_28]
mov [rbp+var_60], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_1F7C9
mov rax, [rbp+var_60]
add rsp, 80h
pop rbp
retn
loc_1F7C9:
call ___stack_chk_fail
|
unsigned long long mariadb_time_to_string(_DWORD *a1, _BYTE *a2, unsigned long long a3, unsigned int a4)
{
int v4; // eax
const char *v5; // rcx
int v7; // [rsp+2Ch] [rbp-54h]
unsigned long long v8; // [rsp+30h] [rbp-50h]
unsigned int v9; // [rsp+3Ch] [rbp-44h]
char v12[24]; // [rsp+60h] [rbp-20h] BYREF
unsigned long long v13; // [rsp+78h] [rbp-8h]
v13 = __readfsqword(0x28u);
v9 = a4;
if ( !a2 || !a3 )
return 0LL;
if ( a4 == 39 )
{
v4 = 0;
if ( *((_QWORD *)a1 + 3) )
v4 = 6;
v9 = v4;
}
v7 = a1[9];
if ( v7 )
{
if ( v7 == 1 )
{
v8 = (int)snprintf(a2, a3, "%04u-%02u-%02u %02u:%02u:%02u", *a1, a1[1], a1[2], a1[3], a1[4], a1[5]);
}
else
{
if ( v7 != 2 )
{
*a2 = 0;
return 0LL;
}
v5 = "";
if ( *((_BYTE *)a1 + 32) )
v5 = "-";
v8 = (int)snprintf(a2, a3, "%s%02u:%02u:%02u", v5, a1[3], a1[4], a1[5]);
}
}
else
{
v8 = (int)snprintf(a2, a3, "%04u-%02u-%02u", *a1, a1[1], a1[2]);
v9 = 0;
}
if ( v9 && a3 < v8 )
{
snprintf(v12, 16LL, ".%%0%du", v9);
v8 += (int)snprintf(&a2[v8], a3 - v8, v12, v9);
}
return v8;
}
|
mariadb_time_to_string:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x38],RSI
MOV qword ptr [RBP + -0x40],RDX
MOV dword ptr [RBP + -0x44],ECX
CMP qword ptr [RBP + -0x38],0x0
JZ 0x0011f5f5
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x0011f602
LAB_0011f5f5:
MOV qword ptr [RBP + -0x28],0x0
JMP 0x0011f7a2
LAB_0011f602:
CMP dword ptr [RBP + -0x44],0x27
JNZ 0x0011f621
MOV RAX,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RAX + 0x18]
XOR EAX,EAX
MOV ECX,0x6
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x44],EAX
LAB_0011f621:
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x24]
MOV dword ptr [RBP + -0x54],EAX
TEST EAX,EAX
JZ 0x0011f64c
JMP 0x0011f631
LAB_0011f631:
MOV EAX,dword ptr [RBP + -0x54]
SUB EAX,0x1
JZ 0x0011f68a
JMP 0x0011f63b
LAB_0011f63b:
MOV EAX,dword ptr [RBP + -0x54]
SUB EAX,0x2
JZ 0x0011f6e2
JMP 0x0011f737
LAB_0011f64c:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x30]
MOV R8D,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RAX + 0x8]
LEA RDX,[0x15221c]
MOV AL,0x0
CALL 0x00117950
CDQE
MOV qword ptr [RBP + -0x50],RAX
MOV dword ptr [RBP + -0x44],0x0
JMP 0x0011f748
LAB_0011f68a:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x30]
MOV R8D,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x30]
MOV R11D,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x30]
MOV R10D,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x14]
LEA RDX,[0x15222b]
MOV dword ptr [RSP],R11D
MOV dword ptr [RSP + 0x8],R10D
MOV dword ptr [RSP + 0x10],EAX
MOV AL,0x0
CALL 0x00117950
CDQE
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0011f748
LAB_0011f6e2:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EDX,byte ptr [RAX + 0x20]
LEA RCX,[0x1532f2]
LEA RAX,[0x152f07]
CMP EDX,0x0
CMOVNZ RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV R8D,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x14]
LEA RDX,[0x152249]
MOV dword ptr [RSP],EAX
MOV AL,0x0
CALL 0x00117950
CDQE
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0011f748
LAB_0011f737:
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],0x0
MOV qword ptr [RBP + -0x28],0x0
JMP 0x0011f7a2
LAB_0011f748:
CMP dword ptr [RBP + -0x44],0x0
JZ 0x0011f79a
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x50]
JNC 0x0011f79a
LEA RDI,[RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x44]
MOV ESI,0x10
LEA RDX,[0x15225a]
MOV AL,0x0
CALL 0x00117950
MOV RDI,qword ptr [RBP + -0x38]
ADD RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x40]
SUB RSI,qword ptr [RBP + -0x50]
LEA RDX,[RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x44]
MOV AL,0x0
CALL 0x00117950
CDQE
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
LAB_0011f79a:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x28],RAX
LAB_0011f7a2:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0011f7c9
MOV RAX,qword ptr [RBP + -0x60]
ADD RSP,0x80
POP RBP
RET
LAB_0011f7c9:
CALL 0x00117690
|
ulong mariadb_time_to_string(uint *param_1,char *param_2,size_t param_3,uint param_4)
{
uint uVar1;
int iVar2;
int *puVar3;
long in_FS_OFFSET;
ulong local_58;
uint local_4c;
ulong local_30;
char local_28 [24];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if ((param_2 == (char *)0x0) || (param_3 == 0)) {
local_30 = 0;
}
else {
local_4c = param_4;
if ((param_4 == 0x27) && (local_4c = 0, *(long *)(param_1 + 6) != 0)) {
local_4c = 6;
}
uVar1 = param_1[9];
if (uVar1 == 0) {
iVar2 = snprintf(param_2,param_3,"%04u-%02u-%02u",(ulong)*param_1,(ulong)param_1[1],
(ulong)param_1[2]);
local_58 = (ulong)iVar2;
local_4c = 0;
}
else if (uVar1 == 1) {
iVar2 = snprintf(param_2,param_3,"%04u-%02u-%02u %02u:%02u:%02u",(ulong)*param_1,
(ulong)param_1[1],(ulong)param_1[2],param_1[3],param_1[4],param_1[5]);
local_58 = (ulong)iVar2;
}
else {
if (uVar1 != 2) {
*param_2 = '\0';
local_30 = 0;
goto LAB_0011f7a2;
}
puVar3 = &DAT_001532f2;
if ((char)param_1[8] != '\0') {
puVar3 = &DAT_00152f07;
}
iVar2 = snprintf(param_2,param_3,"%s%02u:%02u:%02u",puVar3,(ulong)param_1[3],(ulong)param_1[4]
,param_1[5]);
local_58 = (ulong)iVar2;
}
if ((local_4c != 0) && (param_3 < local_58)) {
snprintf(local_28,0x10,".%%0%du",(ulong)local_4c);
iVar2 = snprintf(param_2 + local_58,param_3 - local_58,local_28,(ulong)local_4c);
local_58 = (long)iVar2 + local_58;
}
local_30 = local_58;
}
LAB_0011f7a2:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_30;
}
|
|
57,884
|
mariadb_time_to_string
|
eloqsql/libmariadb/libmariadb/ma_time.c
|
size_t mariadb_time_to_string(const MYSQL_TIME *tm, char *time_str, size_t len,
unsigned int digits)
{
size_t length;
if (!time_str || !len)
return 0;
if (digits == AUTO_SEC_PART_DIGITS)
digits= (tm->second_part) ? SEC_PART_DIGITS : 0;
switch(tm->time_type) {
case MYSQL_TIMESTAMP_DATE:
length= snprintf(time_str, len, "%04u-%02u-%02u", tm->year, tm->month, tm->day);
digits= 0;
break;
case MYSQL_TIMESTAMP_DATETIME:
length= snprintf(time_str, len, "%04u-%02u-%02u %02u:%02u:%02u",
tm->year, tm->month, tm->day, tm->hour, tm->minute, tm->second);
break;
case MYSQL_TIMESTAMP_TIME:
length= snprintf(time_str, len, "%s%02u:%02u:%02u",
(tm->neg ? "-" : ""), tm->hour, tm->minute, tm->second);
break;
default:
time_str[0]= '\0';
return 0;
break;
}
if (digits && (len < length))
{
char helper[16];
snprintf(helper, 16, ".%%0%du", digits);
length+= snprintf(time_str + length, len - length, helper, digits);
}
return length;
}
|
O3
|
c
|
mariadb_time_to_string:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r15d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x1bfca
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x27, %r15d
jne 0x1be76
xorl %eax, %eax
cmpq $0x0, 0x18(%rdi)
movl $0x6, %r15d
cmovel %eax, %r15d
movl 0x24(%rdi), %eax
cmpl $0x2, %eax
je 0x1bf19
cmpl $0x1, %eax
je 0x1beca
testl %eax, %eax
jne 0x1bfc6
movl (%rdi), %r9d
movl 0x4(%rdi), %r10d
movl 0x8(%rdi), %r11d
leaq 0x1e37b(%rip), %r8 # 0x3a21c
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
movq $-0x1, %rcx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x17380
addq $0x10, %rsp
movslq %eax, %r12
jmp 0x1bfcd
movl (%rdi), %r9d
movl 0x4(%rdi), %eax
movq %rax, -0x48(%rbp)
movl 0x8(%rdi), %r11d
movl 0xc(%rdi), %r12d
movl 0x10(%rdi), %r13d
movl 0x14(%rdi), %r10d
subq $0x8, %rsp
leaq 0x1e33c(%rip), %r8 # 0x3a22b
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
movq $-0x1, %rcx
xorl %eax, %eax
pushq %r10
pushq %r13
pushq %r12
pushq %r11
pushq -0x48(%rbp)
callq 0x17380
addq $0x30, %rsp
jmp 0x1bf69
cmpb $0x0, 0x20(%rdi)
leaq 0x1f3b2(%rip), %rax # 0x3b2d6
leaq 0x1efd6(%rip), %r9 # 0x3af01
cmoveq %rax, %r9
movl 0xc(%rdi), %r10d
movl 0x10(%rdi), %r11d
movl 0x14(%rdi), %r12d
subq $0x8, %rsp
leaq 0x1e303(%rip), %r8 # 0x3a249
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
movq $-0x1, %rcx
xorl %eax, %eax
pushq %r12
pushq %r11
pushq %r10
callq 0x17380
addq $0x20, %rsp
movslq %eax, %r12
testl %r15d, %r15d
je 0x1bfcd
subq %r12, %rbx
jae 0x1bfcd
leaq 0x1e2dd(%rip), %r8 # 0x3a25a
leaq -0x40(%rbp), %r13
movl $0x10, %esi
movl $0x10, %ecx
movq %r13, %rdi
movl $0x1, %edx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x17380
addq %r12, %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
movq $-0x1, %rcx
movq %r13, %r8
movl %r15d, %r9d
xorl %eax, %eax
callq 0x17380
cltq
addq %rax, %r12
jmp 0x1bfcd
movb $0x0, (%r14)
xorl %r12d, %r12d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x1bfee
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x17690
nop
|
mariadb_time_to_string:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15d, ecx
mov rax, fs:28h
mov [rbp+var_30], rax
test rsi, rsi
setz al
test rdx, rdx
setz cl
or cl, al
jnz loc_1BFCA
mov rbx, rdx
mov r14, rsi
cmp r15d, 27h ; '''
jnz short loc_1BE76
xor eax, eax
cmp qword ptr [rdi+18h], 0
mov r15d, 6
cmovz r15d, eax
loc_1BE76:
mov eax, [rdi+24h]
cmp eax, 2
jz loc_1BF19
cmp eax, 1
jz short loc_1BECA
test eax, eax
jnz loc_1BFC6
mov r9d, [rdi]
mov r10d, [rdi+4]
mov r11d, [rdi+8]
lea r8, a04u02u02u; "%04u-%02u-%02u"
mov rdi, r14
mov rsi, rbx
mov edx, 1
mov rcx, 0FFFFFFFFFFFFFFFFh
xor eax, eax
push r11
push r10
call ___snprintf_chk
add rsp, 10h
movsxd r12, eax
jmp loc_1BFCD
loc_1BECA:
mov r9d, [rdi]
mov eax, [rdi+4]
mov [rbp+var_48], rax
mov r11d, [rdi+8]
mov r12d, [rdi+0Ch]
mov r13d, [rdi+10h]
mov r10d, [rdi+14h]
sub rsp, 8
lea r8, a04u02u02u02u02; "%04u-%02u-%02u %02u:%02u:%02u"
mov rdi, r14
mov rsi, rbx
mov edx, 1
mov rcx, 0FFFFFFFFFFFFFFFFh
xor eax, eax
push r10
push r13
push r12
push r11
push [rbp+var_48]
call ___snprintf_chk
add rsp, 30h
jmp short loc_1BF69
loc_1BF19:
cmp byte ptr [rdi+20h], 0
lea rax, asc_3B2D4+2; ""
lea r9, a555+5; "-"
cmovz r9, rax
mov r10d, [rdi+0Ch]
mov r11d, [rdi+10h]
mov r12d, [rdi+14h]
sub rsp, 8
lea r8, aS02u02u02u; "%s%02u:%02u:%02u"
mov rdi, r14
mov rsi, rbx
mov edx, 1
mov rcx, 0FFFFFFFFFFFFFFFFh
xor eax, eax
push r12
push r11
push r10
call ___snprintf_chk
add rsp, 20h
loc_1BF69:
movsxd r12, eax
test r15d, r15d
jz short loc_1BFCD
sub rbx, r12
jnb short loc_1BFCD
lea r8, a0Du; ".%%0%du"
lea r13, [rbp+var_40]
mov esi, 10h
mov ecx, 10h
mov rdi, r13
mov edx, 1
mov r9d, r15d
xor eax, eax
call ___snprintf_chk
add r14, r12
mov rdi, r14
mov rsi, rbx
mov edx, 1
mov rcx, 0FFFFFFFFFFFFFFFFh
mov r8, r13
mov r9d, r15d
xor eax, eax
call ___snprintf_chk
cdqe
add r12, rax
jmp short loc_1BFCD
loc_1BFC6:
mov byte ptr [r14], 0
loc_1BFCA:
xor r12d, r12d
loc_1BFCD:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_1BFEE
mov rax, r12
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1BFEE:
call ___stack_chk_fail
|
long long mariadb_time_to_string(_DWORD *a1, _BYTE *a2, unsigned long long a3, unsigned int a4)
{
unsigned int v4; // r15d
int v6; // eax
long long v7; // r12
int v8; // eax
const char *v9; // r9
bool v10; // cf
unsigned long long v11; // rbx
char v13[16]; // [rsp+10h] [rbp-40h] BYREF
unsigned long long v14; // [rsp+20h] [rbp-30h]
v4 = a4;
v14 = __readfsqword(0x28u);
if ( a2 == 0LL || a3 == 0 )
return 0LL;
if ( a4 == 39 )
{
v4 = 6;
if ( !*((_QWORD *)a1 + 3) )
v4 = 0;
}
v6 = a1[9];
switch ( v6 )
{
case 2:
v9 = "-";
if ( !*((_BYTE *)a1 + 32) )
v9 = "";
v8 = __snprintf_chk(a2, a3, 1LL, -1LL, "%s%02u:%02u:%02u", v9, a1[3], a1[4], a1[5]);
break;
case 1:
v8 = __snprintf_chk(a2, a3, 1LL, -1LL, "%04u-%02u-%02u %02u:%02u:%02u", *a1, a1[1], a1[2], a1[3], a1[4], a1[5]);
break;
case 0:
return (int)__snprintf_chk(a2, a3, 1LL, -1LL, "%04u-%02u-%02u", *a1, a1[1], a1[2]);
default:
*a2 = 0;
return 0LL;
}
v7 = v8;
if ( v4 )
{
v10 = a3 < v8;
v11 = a3 - v8;
if ( v10 )
{
__snprintf_chk(v13, 16LL, 1LL, 16LL, ".%%0%du", v4);
v7 += (int)__snprintf_chk(&a2[v7], v11, 1LL, -1LL, v13, v4);
}
}
return v7;
}
|
mariadb_time_to_string:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15D,ECX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
TEST RSI,RSI
SETZ AL
TEST RDX,RDX
SETZ CL
OR CL,AL
JNZ 0x0011bfca
MOV RBX,RDX
MOV R14,RSI
CMP R15D,0x27
JNZ 0x0011be76
XOR EAX,EAX
CMP qword ptr [RDI + 0x18],0x0
MOV R15D,0x6
CMOVZ R15D,EAX
LAB_0011be76:
MOV EAX,dword ptr [RDI + 0x24]
CMP EAX,0x2
JZ 0x0011bf19
CMP EAX,0x1
JZ 0x0011beca
TEST EAX,EAX
JNZ 0x0011bfc6
MOV R9D,dword ptr [RDI]
MOV R10D,dword ptr [RDI + 0x4]
MOV R11D,dword ptr [RDI + 0x8]
LEA R8,[0x13a21c]
MOV RDI,R14
MOV RSI,RBX
MOV EDX,0x1
MOV RCX,-0x1
XOR EAX,EAX
PUSH R11
PUSH R10
CALL 0x00117380
ADD RSP,0x10
MOVSXD R12,EAX
JMP 0x0011bfcd
LAB_0011beca:
MOV R9D,dword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x4]
MOV qword ptr [RBP + -0x48],RAX
MOV R11D,dword ptr [RDI + 0x8]
MOV R12D,dword ptr [RDI + 0xc]
MOV R13D,dword ptr [RDI + 0x10]
MOV R10D,dword ptr [RDI + 0x14]
SUB RSP,0x8
LEA R8,[0x13a22b]
MOV RDI,R14
MOV RSI,RBX
MOV EDX,0x1
MOV RCX,-0x1
XOR EAX,EAX
PUSH R10
PUSH R13
PUSH R12
PUSH R11
PUSH qword ptr [RBP + -0x48]
CALL 0x00117380
ADD RSP,0x30
JMP 0x0011bf69
LAB_0011bf19:
CMP byte ptr [RDI + 0x20],0x0
LEA RAX,[0x13b2d6]
LEA R9,[0x13af01]
CMOVZ R9,RAX
MOV R10D,dword ptr [RDI + 0xc]
MOV R11D,dword ptr [RDI + 0x10]
MOV R12D,dword ptr [RDI + 0x14]
SUB RSP,0x8
LEA R8,[0x13a249]
MOV RDI,R14
MOV RSI,RBX
MOV EDX,0x1
MOV RCX,-0x1
XOR EAX,EAX
PUSH R12
PUSH R11
PUSH R10
CALL 0x00117380
ADD RSP,0x20
LAB_0011bf69:
MOVSXD R12,EAX
TEST R15D,R15D
JZ 0x0011bfcd
SUB RBX,R12
JNC 0x0011bfcd
LEA R8,[0x13a25a]
LEA R13,[RBP + -0x40]
MOV ESI,0x10
MOV ECX,0x10
MOV RDI,R13
MOV EDX,0x1
MOV R9D,R15D
XOR EAX,EAX
CALL 0x00117380
ADD R14,R12
MOV RDI,R14
MOV RSI,RBX
MOV EDX,0x1
MOV RCX,-0x1
MOV R8,R13
MOV R9D,R15D
XOR EAX,EAX
CALL 0x00117380
CDQE
ADD R12,RAX
JMP 0x0011bfcd
LAB_0011bfc6:
MOV byte ptr [R14],0x0
LAB_0011bfca:
XOR R12D,R12D
LAB_0011bfcd:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0011bfee
MOV RAX,R12
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011bfee:
CALL 0x00117690
|
ulong mariadb_time_to_string(int4 *param_1,int1 *param_2,ulong param_3,int param_4)
{
int iVar1;
int *puVar2;
ulong uVar3;
long in_FS_OFFSET;
int1 local_48 [16];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_3 == 0 || param_2 == (int1 *)0x0) {
LAB_0011bfca:
uVar3 = 0;
}
else {
if ((param_4 == 0x27) && (param_4 = 6, *(long *)(param_1 + 6) == 0)) {
param_4 = 0;
}
iVar1 = param_1[9];
if (iVar1 == 2) {
puVar2 = &DAT_0013af01;
if (*(char *)(param_1 + 8) == '\0') {
puVar2 = &DAT_0013b2d6;
}
iVar1 = __snprintf_chk(param_2,param_3,1,0xffffffffffffffff,"%s%02u:%02u:%02u",puVar2,
param_1[3],param_1[4],param_1[5]);
}
else {
if (iVar1 != 1) {
if (iVar1 == 0) {
iVar1 = __snprintf_chk(param_2,param_3,1,0xffffffffffffffff,"%04u-%02u-%02u",*param_1,
param_1[1],param_1[2]);
uVar3 = (ulong)iVar1;
goto LAB_0011bfcd;
}
*param_2 = 0;
goto LAB_0011bfca;
}
iVar1 = __snprintf_chk(param_2,param_3,1,0xffffffffffffffff,"%04u-%02u-%02u %02u:%02u:%02u",
*param_1,param_1[1],param_1[2],param_1[3],param_1[4],param_1[5]);
}
uVar3 = (ulong)iVar1;
if ((param_4 != 0) && (param_3 < uVar3)) {
__snprintf_chk(local_48,0x10,1,0x10,".%%0%du",param_4);
iVar1 = __snprintf_chk(param_2 + uVar3,param_3 - uVar3,1,0xffffffffffffffff,local_48,param_4);
uVar3 = uVar3 + (long)iVar1;
}
}
LAB_0011bfcd:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,885
|
mi_open_keyfile
|
eloqsql/storage/myisam/mi_open.c
|
int mi_open_keyfile(MYISAM_SHARE *share)
{
if ((share->kfile= mysql_file_open(mi_key_file_kfile,
share->unique_file_name,
share->mode | O_SHARE | O_NOFOLLOW | O_CLOEXEC,
MYF(MY_NOSYMLINKS | MY_WME))) < 0)
return 1;
return 0;
}
|
O0
|
c
|
mi_open_keyfile:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
leaq 0xbc0719(%rip), %rax # 0xc7a29c
movl (%rax), %edi
movq -0x10(%rbp), %rax
movq 0x258(%rax), %rcx
movq -0x10(%rbp), %rax
movl 0x358(%rax), %r8d
orl $0x0, %r8d
orl $0x20000, %r8d # imm = 0x20000
orl $0x80000, %r8d # imm = 0x80000
leaq 0x99dbd(%rip), %rsi # 0x153971
movl $0x504, %edx # imm = 0x504
movl $0x210, %r9d # imm = 0x210
callq 0xb4900
movq -0x10(%rbp), %rcx
movl %eax, 0x350(%rcx)
cmpl $0x0, %eax
jge 0xb9bdc
movl $0x1, -0x4(%rbp)
jmp 0xb9be3
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
mi_open_keyfile:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
lea rax, mi_key_file_kfile
mov edi, [rax]
mov rax, [rbp+var_10]
mov rcx, [rax+258h]
mov rax, [rbp+var_10]
mov r8d, [rax+358h]
or r8d, 0
or r8d, 20000h
or r8d, 80000h
lea rsi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 504h
mov r9d, 210h
call inline_mysql_file_open_2
mov rcx, [rbp+var_10]
mov [rcx+350h], eax
cmp eax, 0
jge short loc_B9BDC
mov [rbp+var_4], 1
jmp short loc_B9BE3
loc_B9BDC:
mov [rbp+var_4], 0
loc_B9BE3:
mov eax, [rbp+var_4]
add rsp, 10h
pop rbp
retn
|
_BOOL8 mi_open_keyfile(long long a1)
{
int v1; // eax
v1 = inline_mysql_file_open_2(
mi_key_file_kfile,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x504u,
*(_QWORD *)(a1 + 600),
*(_DWORD *)(a1 + 856) | 0xA0000u,
528LL);
*(_DWORD *)(a1 + 848) = v1;
return v1 < 0;
}
|
mi_open_keyfile:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0xd7a29c]
MOV EDI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x258]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RAX + 0x358]
OR R8D,0x0
OR R8D,0x20000
OR R8D,0x80000
LEA RSI,[0x253971]
MOV EDX,0x504
MOV R9D,0x210
CALL 0x001b4900
MOV RCX,qword ptr [RBP + -0x10]
MOV dword ptr [RCX + 0x350],EAX
CMP EAX,0x0
JGE 0x001b9bdc
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001b9be3
LAB_001b9bdc:
MOV dword ptr [RBP + -0x4],0x0
LAB_001b9be3:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
bool mi_open_keyfile(long param_1)
{
int iVar1;
iVar1 = inline_mysql_file_open
(mi_key_file_kfile,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x504,
*(int8 *)(param_1 + 600),*(uint *)(param_1 + 0x358) | 0xa0000,0x210);
*(int *)(param_1 + 0x350) = iVar1;
return iVar1 < 0;
}
|
|
57,886
|
ma_gets
|
eloqsql/libmariadb/libmariadb/ma_io.c
|
char *ma_gets(char *ptr, size_t size, MA_FILE *file)
{
if (!file)
return NULL;
switch (file->type) {
case MA_FILE_LOCAL:
return fgets(ptr, (int)size, (FILE *)file->ptr);
break;
#ifdef HAVE_REMOTEIO
case MA_FILE_REMOTE:
return rio_plugin->methods->mgets(ptr, size, file);
break;
#endif
default:
return NULL;
}
}
|
O0
|
c
|
ma_gets:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x37b65
movq $0x0, -0x8(%rbp)
jmp 0x37bca
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x24(%rbp)
subl $0x1, %eax
je 0x37b7f
jmp 0x37b75
movl -0x24(%rbp), %eax
subl $0x2, %eax
je 0x37b9c
jmp 0x37bc2
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl %eax, %esi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x136c0
movq %rax, -0x8(%rbp)
jmp 0x37bca
leaq 0x2b2ed(%rip), %rax # 0x62e90
movq (%rax), %rax
movq 0x58(%rax), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq *%rax
movq %rax, -0x8(%rbp)
jmp 0x37bca
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
ma_gets:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_20], 0
jnz short loc_37B65
mov [rbp+var_8], 0
jmp short loc_37BCA
loc_37B65:
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_24], eax
sub eax, 1
jz short loc_37B7F
jmp short $+2
loc_37B75:
mov eax, [rbp+var_24]
sub eax, 2
jz short loc_37B9C
jmp short loc_37BC2
loc_37B7F:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_18]
mov esi, eax
mov rax, [rbp+var_20]
mov rdx, [rax+8]
call _fgets
mov [rbp+var_8], rax
jmp short loc_37BCA
loc_37B9C:
lea rax, rio_plugin
mov rax, [rax]
mov rax, [rax+58h]
mov rax, [rax+20h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call rax
mov [rbp+var_8], rax
jmp short loc_37BCA
loc_37BC2:
mov [rbp+var_8], 0
loc_37BCA:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long ma_gets(long long a1, long long a2, long long a3)
{
if ( !a3 )
return 0LL;
if ( *(_DWORD *)a3 == 1 )
return fgets(a1, (unsigned int)a2, *(_QWORD *)(a3 + 8));
if ( *(_DWORD *)a3 == 2 )
return (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(rio_plugin + 88LL) + 32LL))(a1, a2, a3);
return 0LL;
}
|
ma_gets:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x00137b65
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00137bca
LAB_00137b65:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
SUB EAX,0x1
JZ 0x00137b7f
JMP 0x00137b75
LAB_00137b75:
MOV EAX,dword ptr [RBP + -0x24]
SUB EAX,0x2
JZ 0x00137b9c
JMP 0x00137bc2
LAB_00137b7f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x001136c0
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00137bca
LAB_00137b9c:
LEA RAX,[0x162e90]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RAX,qword ptr [RAX + 0x20]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL RAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00137bca
LAB_00137bc2:
MOV qword ptr [RBP + -0x8],0x0
LAB_00137bca:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
char * ma_gets(char *param_1,int8 param_2,int *param_3)
{
char *local_10;
if (param_3 == (int *)0x0) {
local_10 = (char *)0x0;
}
else if (*param_3 == 1) {
local_10 = fgets(param_1,(int)param_2,*(FILE **)(param_3 + 2));
}
else if (*param_3 == 2) {
local_10 = (char *)(**(code **)(*(long *)(rio_plugin + 0x58) + 0x20))(param_1,param_2,param_3);
}
else {
local_10 = (char *)0x0;
}
return local_10;
}
|
|
57,887
|
extend_area_on_page
|
eloqsql/storage/maria/ma_blockrec.c
|
static my_bool extend_area_on_page(MARIA_HA *info,
uchar *buff, uchar *dir,
uint rownr,
uint request_length,
uint *empty_space, uint *ret_offset,
uint *ret_length,
my_bool head_page)
{
uint rec_offset, length, org_rec_length;
uint max_entry= (uint) buff[DIR_COUNT_OFFSET];
MARIA_SHARE *share= info->s;
uint block_size= share->block_size;
DBUG_ENTER("extend_area_on_page");
/*
We can't check for min length here as we may have called
extend_directory() to create a new (empty) entry just before
*/
check_directory(share, buff, block_size, 0, *empty_space);
rec_offset= uint2korr(dir);
if (rec_offset)
{
/* Extending old row; Mark current space as 'free' */
length= org_rec_length= uint2korr(dir + 2);
DBUG_PRINT("info", ("rec_offset: %u length: %u request_length: %u "
"empty_space: %u",
rec_offset, org_rec_length, request_length,
*empty_space));
*empty_space+= org_rec_length;
}
else
{
/* Reusing free directory entry; Free it from the directory list */
if (dir[2] == END_OF_DIR_FREE_LIST)
buff[DIR_FREE_OFFSET]= dir[3];
else
{
uchar *prev_dir= dir_entry_pos(buff, block_size, (uint) dir[2]);
DBUG_ASSERT(uint2korr(prev_dir) == 0 && prev_dir[3] == (uchar) rownr);
prev_dir[3]= dir[3];
}
if (dir[3] != END_OF_DIR_FREE_LIST)
{
uchar *next_dir= dir_entry_pos(buff, block_size, (uint) dir[3]);
DBUG_ASSERT(uint2korr(next_dir) == 0 && next_dir[2] == (uchar) rownr);
next_dir[2]= dir[2];
}
rec_offset= start_of_next_entry(dir);
length= 0;
}
if (length < request_length)
{
uint old_rec_offset;
/*
New data did not fit in old position.
Find first possible position where to put new data.
*/
old_rec_offset= rec_offset;
rec_offset= end_of_previous_entry(share,
dir, buff + block_size -
PAGE_SUFFIX_SIZE);
length+= (uint) (old_rec_offset - rec_offset);
DBUG_ASSERT(old_rec_offset);
/*
'length' is 0 if we are doing an insert into a not allocated block.
This can only happen during "REDO of INSERT" or "UNDO of DELETE."
*/
if (length < request_length)
{
/*
Did not fit in current block + empty space. Extend with
empty space after block.
*/
if (rownr == max_entry - 1)
{
/* Last entry; Everything is free between this and directory */
length= ((block_size - PAGE_SUFFIX_SIZE - DIR_ENTRY_SIZE * max_entry) -
rec_offset);
}
else
length= start_of_next_entry(dir) - rec_offset;
DBUG_ASSERT((int) length >= 0);
if (length < request_length)
{
/* Not enough continuous space, compact page to get more */
int2store(dir, rec_offset);
/* Reset length, as this may be a deleted block */
int2store(dir+2, 0);
_ma_compact_block_page(share,
buff, rownr, 1,
head_page ? info->trn->min_read_from: 0,
head_page ? share->base.min_block_length : 0);
rec_offset= uint2korr(dir);
length= uint2korr(dir+2);
if (length < request_length)
{
DBUG_PRINT("error", ("Not enough space: "
"length: %u request_length: %u",
length, request_length));
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(1); /* Error in block */
}
*empty_space= length; /* All space is here */
}
}
}
int2store(dir, rec_offset);
int2store(dir + 2, length);
*ret_offset= rec_offset;
*ret_length= length;
check_directory(share,
buff, block_size,
head_page ? share->base.min_block_length : 0,
*empty_space - length);
DBUG_RETURN(0);
}
|
O3
|
c
|
extend_area_on_page:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movl %r8d, %r12d
movq %rdx, %rbx
movq %rdi, %r15
movzbl 0x8(%rsi), %edx
movq (%rdi), %rdi
movl 0x7bc(%rdi), %eax
movzwl (%rbx), %r9d
testw %r9w, %r9w
je 0x50b0d
movzwl 0x2(%rbx), %r8d
addl %r8d, (%r14)
jmp 0x50b75
movzbl 0x2(%rbx), %r8d
cmpq $0xff, %r8
je 0x50b30
leaq (%rsi,%rax), %r9
shll $0x2, %r8d
subq %r8, %r9
movb 0x3(%rbx), %r8b
movb %r8b, -0x5(%r9)
jmp 0x50b38
movb 0x3(%rbx), %r8b
movb %r8b, 0x9(%rsi)
cmpb $-0x1, %r8b
je 0x50b55
leaq (%rsi,%rax), %r9
movzbl %r8b, %r8d
shll $0x2, %r8d
subq %r8, %r9
movb 0x2(%rbx), %r8b
movb %r8b, -0x6(%r9)
leaq -0x3(%rbx), %r9
movq %r9, %r8
cmpb $0x0, -0x1(%r9)
jne 0x50b6d
leaq -0x4(%r8), %r9
cmpb $0x0, (%r8)
je 0x50b59
movzwl -0x1(%r8), %r9d
xorl %r8d, %r8d
movzwl %r9w, %r11d
cmpl %r12d, %r8d
jae 0x50c21
leaq (%rsi,%rax), %r13
addq $-0x4, %r13
leaq 0x4(%rbx), %r10
cmpq %r13, %r10
jae 0x50baa
movzwl (%r10), %r9d
addq $0x4, %r10
testl %r9d, %r9d
je 0x50b8e
movzwl -0x2(%r10), %r10d
addl %r9d, %r10d
jmp 0x50bb5
movl 0xc18(%rdi), %r10d
addl $0xc, %r10d
subl %r10d, %r11d
addl %r11d, %r8d
cmpl %r12d, %r8d
jae 0x50c1e
leal -0x1(%rdx), %r8d
cmpl %ecx, %r8d
jne 0x50bd7
leal (%r10,%rdx,4), %edx
subl %edx, %eax
addl $-0x4, %eax
movl %eax, %r8d
jmp 0x50bf5
leaq -0x3(%rbx), %rdx
movq %rdx, %rax
cmpb $0x0, -0x1(%rdx)
jne 0x50bed
leaq -0x4(%rax), %rdx
cmpb $0x0, (%rax)
je 0x50bdb
movzwl -0x1(%rax), %r8d
subl %r10d, %r8d
cmpl %r12d, %r8d
jae 0x50c1e
movw %r10w, (%rbx)
movw $0x0, 0x2(%rbx)
cmpb $0x0, 0x20(%rbp)
je 0x50c49
movq 0x8(%r15), %rax
movq 0x80(%rax), %r8
movl 0x3b8(%rdi), %r9d
jmp 0x50c4f
movl %r10d, %r11d
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rcx
movw %r11w, (%rbx)
movw %r8w, 0x2(%rbx)
movl %r11d, (%rcx)
movl %r8d, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r8d, %r8d
xorl %r9d, %r9d
movl %ecx, %edx
movl $0x1, %ecx
callq 0x4d564
movzwl 0x2(%rbx), %r8d
cmpl %r12d, %r8d
jae 0x50c76
movq %r15, %rdi
movl $0x7f, %esi
callq 0x42b9c
movb $0x1, %al
jmp 0x50c3a
movzwl (%rbx), %r11d
movl %r8d, (%r14)
jmp 0x50c21
|
extend_area_on_page:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r12d, r8d
mov rbx, rdx
mov r15, rdi
movzx edx, byte ptr [rsi+8]
mov rdi, [rdi]
mov eax, [rdi+7BCh]
movzx r9d, word ptr [rbx]
test r9w, r9w
jz short loc_50B0D
movzx r8d, word ptr [rbx+2]
add [r14], r8d
jmp short loc_50B75
loc_50B0D:
movzx r8d, byte ptr [rbx+2]
cmp r8, 0FFh
jz short loc_50B30
lea r9, [rsi+rax]
shl r8d, 2
sub r9, r8
mov r8b, [rbx+3]
mov [r9-5], r8b
jmp short loc_50B38
loc_50B30:
mov r8b, [rbx+3]
mov [rsi+9], r8b
loc_50B38:
cmp r8b, 0FFh
jz short loc_50B55
lea r9, [rsi+rax]
movzx r8d, r8b
shl r8d, 2
sub r9, r8
mov r8b, [rbx+2]
mov [r9-6], r8b
loc_50B55:
lea r9, [rbx-3]
loc_50B59:
mov r8, r9
cmp byte ptr [r9-1], 0
jnz short loc_50B6D
lea r9, [r8-4]
cmp byte ptr [r8], 0
jz short loc_50B59
loc_50B6D:
movzx r9d, word ptr [r8-1]
xor r8d, r8d
loc_50B75:
movzx r11d, r9w
cmp r8d, r12d
jnb loc_50C21
lea r13, [rsi+rax]
add r13, 0FFFFFFFFFFFFFFFCh
lea r10, [rbx+4]
loc_50B8E:
cmp r10, r13
jnb short loc_50BAA
movzx r9d, word ptr [r10]
add r10, 4
test r9d, r9d
jz short loc_50B8E
movzx r10d, word ptr [r10-2]
add r10d, r9d
jmp short loc_50BB5
loc_50BAA:
mov r10d, [rdi+0C18h]
add r10d, 0Ch
loc_50BB5:
sub r11d, r10d
add r8d, r11d
cmp r8d, r12d
jnb short loc_50C1E
lea r8d, [rdx-1]
cmp r8d, ecx
jnz short loc_50BD7
lea edx, [r10+rdx*4]
sub eax, edx
add eax, 0FFFFFFFCh
mov r8d, eax
jmp short loc_50BF5
loc_50BD7:
lea rdx, [rbx-3]
loc_50BDB:
mov rax, rdx
cmp byte ptr [rdx-1], 0
jnz short loc_50BED
lea rdx, [rax-4]
cmp byte ptr [rax], 0
jz short loc_50BDB
loc_50BED:
movzx r8d, word ptr [rax-1]
sub r8d, r10d
loc_50BF5:
cmp r8d, r12d
jnb short loc_50C1E
mov [rbx], r10w
mov word ptr [rbx+2], 0
cmp [rbp+arg_10], 0
jz short loc_50C49
mov rax, [r15+8]
mov r8, [rax+80h]
mov r9d, [rdi+3B8h]
jmp short loc_50C4F
loc_50C1E:
mov r11d, r10d
loc_50C21:
mov rax, [rbp+arg_8]
mov rcx, [rbp+arg_0]
mov [rbx], r11w
mov [rbx+2], r8w
mov [rcx], r11d
mov [rax], r8d
xor eax, eax
loc_50C3A:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_50C49:
xor r8d, r8d
xor r9d, r9d
loc_50C4F:
mov edx, ecx
mov ecx, 1
call _ma_compact_block_page
movzx r8d, word ptr [rbx+2]
cmp r8d, r12d
jnb short loc_50C76
mov rdi, r15
mov esi, 7Fh
call _ma_set_fatal_error
mov al, 1
jmp short loc_50C3A
loc_50C76:
movzx r11d, word ptr [rbx]
mov [r14], r8d
jmp short loc_50C21
|
char extend_area_on_page(
long long a1,
long long a2,
unsigned __int16 *a3,
int a4,
unsigned int a5,
_DWORD *a6,
_DWORD *a7,
_DWORD *a8,
char a9)
{
int v13; // edx
_DWORD *v14; // rdi
long long v15; // rax
unsigned __int16 v16; // r9
long long v17; // r8
long long v18; // r8
long long v19; // r9
unsigned __int8 v20; // r8
char *v21; // r9
int v22; // r11d
unsigned __int16 *v23; // r10
int v24; // r9d
int v25; // r10d
_BYTE *v26; // rdx
_BYTE *v27; // rax
unsigned long long v28; // r8
unsigned int v29; // r9d
long long v31; // rdx
long long v32; // rcx
int v33; // r9d
v13 = *(unsigned __int8 *)(a2 + 8);
v14 = *(_DWORD **)a1;
v15 = (unsigned int)v14[495];
v16 = *a3;
if ( *a3 )
{
LODWORD(v17) = a3[1];
*a6 += v17;
}
else
{
v18 = *((unsigned __int8 *)a3 + 2);
if ( v18 == 255 )
{
v20 = *((_BYTE *)a3 + 3);
*(_BYTE *)(a2 + 9) = v20;
}
else
{
v19 = a2 + v15 - (unsigned int)(4 * v18);
v20 = *((_BYTE *)a3 + 3);
*(_BYTE *)(v19 - 5) = v20;
}
if ( v20 != 0xFF )
*(_BYTE *)(a2 + v15 - 4 * (unsigned int)v20 - 6) = *((_BYTE *)a3 + 2);
v21 = (char *)a3 - 3;
do
{
v17 = (long long)v21;
if ( *(v21 - 1) )
break;
v21 -= 4;
}
while ( !*(_BYTE *)v17 );
v16 = *(_WORD *)(v17 - 1);
LODWORD(v17) = 0;
}
v22 = v16;
if ( (unsigned int)v17 < a5 )
{
v23 = a3 + 2;
while ( (unsigned long long)v23 < a2 + v15 - 4 )
{
v24 = *v23;
v23 += 2;
if ( v24 )
{
v25 = v24 + *(v23 - 1);
goto LABEL_18;
}
}
v25 = v14[774] + 12;
LABEL_18:
LODWORD(v17) = v22 - v25 + v17;
if ( (unsigned int)v17 >= a5 )
goto LABEL_28;
if ( v13 - 1 == a4 )
{
LODWORD(v17) = v15 - (v25 + 4 * v13) - 4;
}
else
{
v26 = (char *)a3 - 3;
do
{
v27 = v26;
if ( *(v26 - 1) )
break;
v26 -= 4;
}
while ( !*v27 );
LODWORD(v17) = *(unsigned __int16 *)(v27 - 1) - v25;
}
if ( (unsigned int)v17 >= a5 )
{
LABEL_28:
v22 = v25;
}
else
{
*a3 = v25;
a3[1] = 0;
if ( a9 )
{
v28 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 128LL);
v29 = v14[238];
}
else
{
v28 = 0LL;
v29 = 0;
}
ma_compact_block_page((long long)v14, a2, a4, 1, v28, v29);
v17 = a3[1];
if ( (unsigned int)v17 < a5 )
{
ma_set_fatal_error((_DWORD *)a1, 127, v31, v32, v17, v33);
return 1;
}
v22 = *a3;
*a6 = v17;
}
}
*a3 = v22;
a3[1] = v17;
*a7 = v22;
*a8 = v17;
return 0;
}
|
extend_area_on_page:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R12D,R8D
MOV RBX,RDX
MOV R15,RDI
MOVZX EDX,byte ptr [RSI + 0x8]
MOV RDI,qword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x7bc]
MOVZX R9D,word ptr [RBX]
TEST R9W,R9W
JZ 0x00150b0d
MOVZX R8D,word ptr [RBX + 0x2]
ADD dword ptr [R14],R8D
JMP 0x00150b75
LAB_00150b0d:
MOVZX R8D,byte ptr [RBX + 0x2]
CMP R8,0xff
JZ 0x00150b30
LEA R9,[RSI + RAX*0x1]
SHL R8D,0x2
SUB R9,R8
MOV R8B,byte ptr [RBX + 0x3]
MOV byte ptr [R9 + -0x5],R8B
JMP 0x00150b38
LAB_00150b30:
MOV R8B,byte ptr [RBX + 0x3]
MOV byte ptr [RSI + 0x9],R8B
LAB_00150b38:
CMP R8B,0xff
JZ 0x00150b55
LEA R9,[RSI + RAX*0x1]
MOVZX R8D,R8B
SHL R8D,0x2
SUB R9,R8
MOV R8B,byte ptr [RBX + 0x2]
MOV byte ptr [R9 + -0x6],R8B
LAB_00150b55:
LEA R9,[RBX + -0x3]
LAB_00150b59:
MOV R8,R9
CMP byte ptr [R9 + -0x1],0x0
JNZ 0x00150b6d
LEA R9,[R8 + -0x4]
CMP byte ptr [R8],0x0
JZ 0x00150b59
LAB_00150b6d:
MOVZX R9D,word ptr [R8 + -0x1]
XOR R8D,R8D
LAB_00150b75:
MOVZX R11D,R9W
CMP R8D,R12D
JNC 0x00150c21
LEA R13,[RSI + RAX*0x1]
ADD R13,-0x4
LEA R10,[RBX + 0x4]
LAB_00150b8e:
CMP R10,R13
JNC 0x00150baa
MOVZX R9D,word ptr [R10]
ADD R10,0x4
TEST R9D,R9D
JZ 0x00150b8e
MOVZX R10D,word ptr [R10 + -0x2]
ADD R10D,R9D
JMP 0x00150bb5
LAB_00150baa:
MOV R10D,dword ptr [RDI + 0xc18]
ADD R10D,0xc
LAB_00150bb5:
SUB R11D,R10D
ADD R8D,R11D
CMP R8D,R12D
JNC 0x00150c1e
LEA R8D,[RDX + -0x1]
CMP R8D,ECX
JNZ 0x00150bd7
LEA EDX,[R10 + RDX*0x4]
SUB EAX,EDX
ADD EAX,-0x4
MOV R8D,EAX
JMP 0x00150bf5
LAB_00150bd7:
LEA RDX,[RBX + -0x3]
LAB_00150bdb:
MOV RAX,RDX
CMP byte ptr [RDX + -0x1],0x0
JNZ 0x00150bed
LEA RDX,[RAX + -0x4]
CMP byte ptr [RAX],0x0
JZ 0x00150bdb
LAB_00150bed:
MOVZX R8D,word ptr [RAX + -0x1]
SUB R8D,R10D
LAB_00150bf5:
CMP R8D,R12D
JNC 0x00150c1e
MOV word ptr [RBX],R10W
MOV word ptr [RBX + 0x2],0x0
CMP byte ptr [RBP + 0x20],0x0
JZ 0x00150c49
MOV RAX,qword ptr [R15 + 0x8]
MOV R8,qword ptr [RAX + 0x80]
MOV R9D,dword ptr [RDI + 0x3b8]
JMP 0x00150c4f
LAB_00150c1e:
MOV R11D,R10D
LAB_00150c21:
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,qword ptr [RBP + 0x10]
MOV word ptr [RBX],R11W
MOV word ptr [RBX + 0x2],R8W
MOV dword ptr [RCX],R11D
MOV dword ptr [RAX],R8D
XOR EAX,EAX
LAB_00150c3a:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00150c49:
XOR R8D,R8D
XOR R9D,R9D
LAB_00150c4f:
MOV EDX,ECX
MOV ECX,0x1
CALL 0x0014d564
MOVZX R8D,word ptr [RBX + 0x2]
CMP R8D,R12D
JNC 0x00150c76
MOV RDI,R15
MOV ESI,0x7f
CALL 0x00142b9c
MOV AL,0x1
JMP 0x00150c3a
LAB_00150c76:
MOVZX R11D,word ptr [RBX]
MOV dword ptr [R14],R8D
JMP 0x00150c21
|
int8
extend_area_on_page(long *param_1,long param_2,ushort *param_3,int param_4,uint param_5,
uint *param_6,uint *param_7,uint *param_8,char param_9)
{
byte bVar1;
ushort uVar2;
uint uVar3;
long lVar4;
char *pcVar5;
ushort *puVar6;
ulong uVar7;
char *pcVar8;
byte bVar9;
uint uVar10;
int8 uVar11;
int4 uVar12;
uint uVar13;
ushort *puVar14;
bVar1 = *(byte *)(param_2 + 8);
lVar4 = *param_1;
uVar3 = *(uint *)(lVar4 + 0x7bc);
uVar7 = (ulong)uVar3;
uVar2 = *param_3;
if (uVar2 == 0) {
if ((byte)param_3[1] == 0xff) {
bVar9 = *(byte *)((long)param_3 + 3);
*(byte *)(param_2 + 9) = bVar9;
}
else {
bVar9 = *(byte *)((long)param_3 + 3);
*(byte *)(param_2 + uVar7 + (ulong)(byte)param_3[1] * -4 + -5) = bVar9;
}
if (bVar9 != 0xff) {
*(char *)(param_2 + uVar7 + (ulong)bVar9 * -4 + -6) = (char)param_3[1];
}
pcVar5 = (char *)((long)param_3 + -3);
do {
pcVar8 = pcVar5;
if (pcVar8[-1] != '\0') break;
pcVar5 = pcVar8 + -4;
} while (*pcVar8 == '\0');
uVar2 = *(ushort *)(pcVar8 + -1);
uVar10 = 0;
}
else {
uVar10 = (uint)param_3[1];
*param_6 = *param_6 + (uint)param_3[1];
}
uVar13 = (uint)uVar2;
if (uVar10 < param_5) {
puVar6 = param_3 + 2;
do {
puVar14 = puVar6;
if ((ushort *)(param_2 + uVar7 + -4) <= puVar14) {
uVar13 = *(int *)(lVar4 + 0xc18) + 0xc;
goto LAB_00150bb5;
}
puVar6 = puVar14 + 2;
} while (*puVar14 == 0);
uVar13 = (uint)puVar14[1] + (uint)*puVar14;
LAB_00150bb5:
uVar10 = uVar10 + (uVar2 - uVar13);
if (uVar10 < param_5) {
if (bVar1 - 1 == param_4) {
uVar10 = (uVar3 - (uVar13 + (uint)bVar1 * 4)) - 4;
}
else {
pcVar5 = (char *)((long)param_3 + -3);
do {
pcVar8 = pcVar5;
if (pcVar8[-1] != '\0') break;
pcVar5 = pcVar8 + -4;
} while (*pcVar8 == '\0');
uVar10 = *(ushort *)(pcVar8 + -1) - uVar13;
}
if (uVar10 < param_5) {
*param_3 = (ushort)uVar13;
param_3[1] = 0;
if (param_9 == '\0') {
uVar11 = 0;
uVar12 = 0;
}
else {
uVar11 = *(int8 *)(param_1[1] + 0x80);
uVar12 = *(int4 *)(lVar4 + 0x3b8);
}
_ma_compact_block_page(lVar4,param_2,param_4,1,uVar11,uVar12);
uVar10 = (uint)param_3[1];
if (uVar10 < param_5) {
_ma_set_fatal_error(param_1,0x7f);
return 1;
}
uVar13 = (uint)*param_3;
*param_6 = uVar10;
}
}
}
*param_3 = (ushort)uVar13;
param_3[1] = (ushort)uVar10;
*param_7 = uVar13;
*param_8 = uVar10;
return 0;
}
|
|
57,888
|
delete_dynamic_record
|
eloqsql/storage/maria/ma_dynrec.c
|
static my_bool delete_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS filepos,
uint second_read)
{
uint length,b_type;
MARIA_BLOCK_INFO block_info,del_block;
int error;
my_bool remove_next_block;
DBUG_ENTER("delete_dynamic_record");
/* First add a link from the last block to the new one */
error= update_backward_delete_link(info, info->s->state.dellink, filepos);
block_info.second_read=second_read;
do
{
/* Remove block at 'filepos' */
if ((b_type= _ma_get_block_info(info, &block_info, info->dfile.file,
filepos))
& (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR |
BLOCK_FATAL_ERROR) ||
(length=(uint) (block_info.filepos-filepos) +block_info.block_len) <
MARIA_MIN_BLOCK_LENGTH)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(1);
}
/* Check if next block is a delete block */
del_block.second_read=0;
remove_next_block=0;
if (_ma_get_block_info(info, &del_block, info->dfile.file,
filepos + length) &
BLOCK_DELETED && del_block.block_len+length <
MARIA_DYN_MAX_BLOCK_LENGTH)
{
/* We can't remove this yet as this block may be the head block */
remove_next_block=1;
length+=del_block.block_len;
}
block_info.header[0]=0;
mi_int3store(block_info.header+1,length);
mi_sizestore(block_info.header+4,info->s->state.dellink);
if (b_type & BLOCK_LAST)
bfill(block_info.header+12,8,255);
else
mi_sizestore(block_info.header+12,block_info.next_filepos);
if (info->s->file_write(info, block_info.header, 20, filepos,
MYF(MY_NABP)))
DBUG_RETURN(1);
info->s->state.dellink = filepos;
info->state->del++;
info->state->empty+=length;
filepos=block_info.next_filepos;
/* Now it's safe to unlink the deleted block directly after this one */
if (remove_next_block && unlink_deleted_block(info,&del_block))
error=1;
} while (!(b_type & BLOCK_LAST));
DBUG_RETURN(error);
}
|
O0
|
c
|
delete_dynamic_record:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0xc8(%rbp)
movq %rsi, -0xd0(%rbp)
movl %edx, -0xd4(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rsi
movq -0xd0(%rbp), %rdx
callq 0x84f40
movsbl %al, %eax
movl %eax, -0xe0(%rbp)
movl -0xd4(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movl 0x480(%rax), %edx
movq -0xd0(%rbp), %rcx
leaq -0x60(%rbp), %rsi
callq 0x84140
movl %eax, -0xdc(%rbp)
andl $0x3c, %eax
cmpl $0x0, %eax
jne 0x82f10
movq -0x28(%rbp), %rax
subq -0xd0(%rbp), %rax
movl %eax, %eax
addq -0x38(%rbp), %rax
movl %eax, -0xd8(%rbp)
cmpl $0x14, %eax
jae 0x82f2d
movq -0xc8(%rbp), %rdi
movl $0x7f, %esi
callq 0x70210
movb $0x1, -0xb9(%rbp)
jmp 0x83252
movl $0x0, -0x68(%rbp)
movb $0x0, -0xe1(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movl 0x480(%rax), %edx
movq -0xd0(%rbp), %rcx
movl -0xd8(%rbp), %eax
addq %rax, %rcx
leaq -0xb8(%rbp), %rsi
callq 0x84140
andl $0x4, %eax
cmpl $0x0, %eax
je 0x82fa8
movq -0x90(%rbp), %rax
movl -0xd8(%rbp), %ecx
addq %rcx, %rax
cmpq $0xfffffc, %rax # imm = 0xFFFFFC
jae 0x82fa8
movb $0x1, -0xe1(%rbp)
movq -0x90(%rbp), %rcx
movl -0xd8(%rbp), %eax
addq %rcx, %rax
movl %eax, -0xd8(%rbp)
movb $0x0, -0x60(%rbp)
movl -0xd8(%rbp), %eax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movb %al, -0x5d(%rbp)
movq -0xf0(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x5e(%rbp)
movq -0xf0(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x5f(%rbp)
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rax
movq %rax, -0xf8(%rbp)
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rax
shrq $0x20, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movb %al, -0x59(%rbp)
movq -0x108(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x5a(%rbp)
movq -0x108(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x5b(%rbp)
movq -0x108(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x5c(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movb %al, -0x55(%rbp)
movq -0x110(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x56(%rbp)
movq -0x110(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x57(%rbp)
movq -0x110(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x58(%rbp)
movl -0xdc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x830c1
leaq -0x60(%rbp), %rdi
addq $0xc, %rdi
movl $0xff, %esi
movl $0x8, %edx
callq 0x2a2f0
jmp 0x8315f
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x20(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movb %al, -0x51(%rbp)
movq -0x128(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x52(%rbp)
movq -0x128(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x53(%rbp)
movq -0x128(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x54(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movb %al, -0x4d(%rbp)
movq -0x130(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x4e(%rbp)
movq -0x130(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x4f(%rbp)
movq -0x130(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x50(%rbp)
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0xc8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
movq -0xd0(%rbp), %rcx
movl $0x14, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x831a3
jmp 0x83197
movb $0x1, -0xb9(%rbp)
jmp 0x83252
movq -0xd0(%rbp), %rcx
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0xc8(%rax)
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movl -0xd8(%rbp), %eax
movl %eax, %ecx
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0xd0(%rbp)
movsbl -0xe1(%rbp), %eax
cmpl $0x0, %eax
je 0x83229
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x84b70
movsbl %al, %eax
cmpl $0x0, %eax
je 0x83229
movl $0x1, -0xe0(%rbp)
jmp 0x8322b
movl -0xdc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x82ec2
jmp 0x83246
movl -0xe0(%rbp), %eax
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
movb %al, -0x131(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x8327f
movb -0x131(%rbp), %al
addq $0x140, %rsp # imm = 0x140
popq %rbp
retq
callq 0x2a290
nopw %cs:(%rax,%rax)
|
delete_dynamic_record:
push rbp
mov rbp, rsp
sub rsp, 140h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_C8], rdi
mov [rbp+var_D0], rsi
mov [rbp+var_D4], edx
mov rdi, [rbp+var_C8]
mov rax, [rbp+var_C8]
mov rax, [rax]
mov rsi, [rax+0C8h]
mov rdx, [rbp+var_D0]
call update_backward_delete_link
movsx eax, al
mov [rbp+var_E0], eax
mov eax, [rbp+var_D4]
mov [rbp+var_10], eax
loc_82EC2:
mov rdi, [rbp+var_C8]
mov rax, [rbp+var_C8]
mov edx, [rax+480h]
mov rcx, [rbp+var_D0]
lea rsi, [rbp+var_60]
call _ma_get_block_info
mov [rbp+var_DC], eax
and eax, 3Ch
cmp eax, 0
jnz short loc_82F10
mov rax, [rbp+var_28]
sub rax, [rbp+var_D0]
mov eax, eax
add rax, [rbp+var_38]
mov [rbp+var_D8], eax
cmp eax, 14h
jnb short loc_82F2D
loc_82F10:
mov rdi, [rbp+var_C8]
mov esi, 7Fh
call _ma_set_fatal_error
mov [rbp+var_B9], 1
jmp loc_83252
loc_82F2D:
mov [rbp+var_68], 0
mov [rbp+var_E1], 0
mov rdi, [rbp+var_C8]
mov rax, [rbp+var_C8]
mov edx, [rax+480h]
mov rcx, [rbp+var_D0]
mov eax, [rbp+var_D8]
add rcx, rax
lea rsi, [rbp+var_B8]
call _ma_get_block_info
and eax, 4
cmp eax, 0
jz short loc_82FA8
mov rax, [rbp+var_90]
mov ecx, [rbp+var_D8]
add rax, rcx
cmp rax, 0FFFFFCh
jnb short loc_82FA8
mov [rbp+var_E1], 1
mov rcx, [rbp+var_90]
mov eax, [rbp+var_D8]
add rax, rcx
mov [rbp+var_D8], eax
loc_82FA8:
mov [rbp+var_60], 0
mov eax, [rbp+var_D8]
mov [rbp+var_F0], rax
mov rax, [rbp+var_F0]
mov [rbp+var_5D], al
mov rax, [rbp+var_F0]
shr rax, 8
mov [rbp+var_5E], al
mov rax, [rbp+var_F0]
shr rax, 10h
mov [rbp+var_5F], al
mov rax, [rbp+var_C8]
mov rax, [rax]
mov rax, [rax+0C8h]
mov [rbp+var_F8], rax
mov rax, [rbp+var_C8]
mov rax, [rax]
mov rax, [rax+0C8h]
shr rax, 20h
mov [rbp+var_100], rax
mov rax, [rbp+var_100]
mov [rbp+var_108], rax
mov rax, [rbp+var_108]
mov [rbp+var_59], al
mov rax, [rbp+var_108]
shr rax, 8
mov [rbp+var_5A], al
mov rax, [rbp+var_108]
shr rax, 10h
mov [rbp+var_5B], al
mov rax, [rbp+var_108]
shr rax, 18h
mov [rbp+var_5C], al
mov rax, [rbp+var_F8]
mov [rbp+var_110], rax
mov rax, [rbp+var_110]
mov [rbp+var_55], al
mov rax, [rbp+var_110]
shr rax, 8
mov [rbp+var_56], al
mov rax, [rbp+var_110]
shr rax, 10h
mov [rbp+var_57], al
mov rax, [rbp+var_110]
shr rax, 18h
mov [rbp+var_58], al
mov eax, [rbp+var_DC]
and eax, 2
cmp eax, 0
jz short loc_830C1
lea rdi, [rbp+var_60]
add rdi, 0Ch
mov esi, 0FFh
mov edx, 8
call _memset
jmp loc_8315F
loc_830C1:
mov rax, [rbp+var_20]
mov [rbp+var_118], rax
mov rax, [rbp+var_20]
shr rax, 20h
mov [rbp+var_120], rax
mov rax, [rbp+var_120]
mov [rbp+var_128], rax
mov rax, [rbp+var_128]
mov [rbp+var_51], al
mov rax, [rbp+var_128]
shr rax, 8
mov [rbp+var_52], al
mov rax, [rbp+var_128]
shr rax, 10h
mov [rbp+var_53], al
mov rax, [rbp+var_128]
shr rax, 18h
mov [rbp+var_54], al
mov rax, [rbp+var_118]
mov [rbp+var_130], rax
mov rax, [rbp+var_130]
mov [rbp+var_4D], al
mov rax, [rbp+var_130]
shr rax, 8
mov [rbp+var_4E], al
mov rax, [rbp+var_130]
shr rax, 10h
mov [rbp+var_4F], al
mov rax, [rbp+var_130]
shr rax, 18h
mov [rbp+var_50], al
loc_8315F:
mov rax, [rbp+var_C8]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_C8]
lea rsi, [rbp+var_60]
mov rcx, [rbp+var_D0]
mov edx, 14h
mov r8d, 4
call rax
cmp rax, 0
jz short loc_831A3
jmp short $+2
loc_83197:
mov [rbp+var_B9], 1
jmp loc_83252
loc_831A3:
mov rcx, [rbp+var_D0]
mov rax, [rbp+var_C8]
mov rax, [rax]
mov [rax+0C8h], rcx
mov rax, [rbp+var_C8]
mov rax, [rax+20h]
mov rcx, [rax+8]
add rcx, 1
mov [rax+8], rcx
mov eax, [rbp+var_D8]
mov ecx, eax
mov rax, [rbp+var_C8]
mov rax, [rax+20h]
add rcx, [rax+10h]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov [rbp+var_D0], rax
movsx eax, [rbp+var_E1]
cmp eax, 0
jz short loc_83229
mov rdi, [rbp+var_C8]
lea rsi, [rbp+var_B8]
call unlink_deleted_block
movsx eax, al
cmp eax, 0
jz short loc_83229
mov [rbp+var_E0], 1
loc_83229:
jmp short $+2
loc_8322B:
mov eax, [rbp+var_DC]
and eax, 2
cmp eax, 0
setnz al
xor al, 0FFh
test al, 1
jnz loc_82EC2
jmp short $+2
loc_83246:
mov eax, [rbp+var_E0]
mov [rbp+var_B9], al
loc_83252:
mov al, [rbp+var_B9]
mov [rbp+var_131], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_8327F
mov al, [rbp+var_131]
add rsp, 140h
pop rbp
retn
loc_8327F:
call ___stack_chk_fail
|
char delete_dynamic_record(unsigned int *a1, long long a2, int a3)
{
long long v3; // rdx
long long v4; // rcx
long long v5; // r8
int v6; // r9d
long long v8; // [rsp+48h] [rbp-F8h]
char v9; // [rsp+5Fh] [rbp-E1h]
char v10; // [rsp+60h] [rbp-E0h]
char block_info; // [rsp+64h] [rbp-DCh]
unsigned int v12; // [rsp+68h] [rbp-D8h]
long long v14; // [rsp+70h] [rbp-D0h]
_BYTE v16[40]; // [rsp+88h] [rbp-B8h] BYREF
long long v17; // [rsp+B0h] [rbp-90h]
int v18; // [rsp+D8h] [rbp-68h]
_BYTE v19[12]; // [rsp+E0h] [rbp-60h] BYREF
_BYTE v20[28]; // [rsp+ECh] [rbp-54h] BYREF
long long v21; // [rsp+108h] [rbp-38h]
long long v22; // [rsp+118h] [rbp-28h]
long long v23; // [rsp+120h] [rbp-20h]
int v24; // [rsp+130h] [rbp-10h]
unsigned long long v25; // [rsp+138h] [rbp-8h]
v25 = __readfsqword(0x28u);
v14 = a2;
v10 = update_backward_delete_link(a1, *(_QWORD *)(*(_QWORD *)a1 + 200LL), a2);
v24 = a3;
do
{
block_info = ma_get_block_info(a1, v19, a1[288], v14);
if ( (block_info & 0x3C) != 0 || (v12 = v21 + v22 - v14, v12 < 0x14) )
{
ma_set_fatal_error(a1, 0x7Fu, v3, v4, v5, v6);
return 1;
}
v18 = 0;
v9 = 0;
if ( (ma_get_block_info(a1, v16, a1[288], v12 + v14) & 4) != 0 && (unsigned long long)v12 + v17 < 0xFFFFFC )
{
v9 = 1;
v12 += v17;
}
v19[0] = 0;
v19[2] = BYTE1(v12);
v19[3] = v12;
v19[1] = BYTE2(v12);
v8 = *(_QWORD *)(*(_QWORD *)a1 + 200LL);
v19[6] = BYTE5(v8);
v19[7] = BYTE4(v8);
v19[4] = HIBYTE(v8);
v19[5] = BYTE6(v8);
v19[10] = BYTE1(v8);
v19[11] = v8;
v19[8] = BYTE3(v8);
v19[9] = BYTE2(v8);
if ( (block_info & 2) != 0 )
{
memset(v20, 255LL, 8LL);
}
else
{
v20[2] = BYTE5(v23);
v20[3] = BYTE4(v23);
v20[0] = HIBYTE(v23);
v20[1] = BYTE6(v23);
v20[6] = BYTE1(v23);
v20[7] = v23;
v20[4] = BYTE3(v23);
v20[5] = BYTE2(v23);
}
if ( (*(long long ( **)(unsigned int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
v19,
20LL,
v14,
4LL) )
{
return 1;
}
*(_QWORD *)(*(_QWORD *)a1 + 200LL) = v14;
++*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL);
*(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) += v12;
v14 = v23;
if ( v9 && (unsigned __int8)unlink_deleted_block(a1, v16) )
v10 = 1;
}
while ( (block_info & 2) == 0 );
return v10;
}
|
delete_dynamic_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x140
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0xc8],RDI
MOV qword ptr [RBP + -0xd0],RSI
MOV dword ptr [RBP + -0xd4],EDX
MOV RDI,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0xc8]
MOV RDX,qword ptr [RBP + -0xd0]
CALL 0x00184f40
MOVSX EAX,AL
MOV dword ptr [RBP + -0xe0],EAX
MOV EAX,dword ptr [RBP + -0xd4]
MOV dword ptr [RBP + -0x10],EAX
LAB_00182ec2:
MOV RDI,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0xc8]
MOV EDX,dword ptr [RAX + 0x480]
MOV RCX,qword ptr [RBP + -0xd0]
LEA RSI,[RBP + -0x60]
CALL 0x00184140
MOV dword ptr [RBP + -0xdc],EAX
AND EAX,0x3c
CMP EAX,0x0
JNZ 0x00182f10
MOV RAX,qword ptr [RBP + -0x28]
SUB RAX,qword ptr [RBP + -0xd0]
MOV EAX,EAX
ADD RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0xd8],EAX
CMP EAX,0x14
JNC 0x00182f2d
LAB_00182f10:
MOV RDI,qword ptr [RBP + -0xc8]
MOV ESI,0x7f
CALL 0x00170210
MOV byte ptr [RBP + -0xb9],0x1
JMP 0x00183252
LAB_00182f2d:
MOV dword ptr [RBP + -0x68],0x0
MOV byte ptr [RBP + -0xe1],0x0
MOV RDI,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0xc8]
MOV EDX,dword ptr [RAX + 0x480]
MOV RCX,qword ptr [RBP + -0xd0]
MOV EAX,dword ptr [RBP + -0xd8]
ADD RCX,RAX
LEA RSI,[RBP + -0xb8]
CALL 0x00184140
AND EAX,0x4
CMP EAX,0x0
JZ 0x00182fa8
MOV RAX,qword ptr [RBP + -0x90]
MOV ECX,dword ptr [RBP + -0xd8]
ADD RAX,RCX
CMP RAX,0xfffffc
JNC 0x00182fa8
MOV byte ptr [RBP + -0xe1],0x1
MOV RCX,qword ptr [RBP + -0x90]
MOV EAX,dword ptr [RBP + -0xd8]
ADD RAX,RCX
MOV dword ptr [RBP + -0xd8],EAX
LAB_00182fa8:
MOV byte ptr [RBP + -0x60],0x0
MOV EAX,dword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0xf0],RAX
MOV RAX,qword ptr [RBP + -0xf0]
MOV byte ptr [RBP + -0x5d],AL
MOV RAX,qword ptr [RBP + -0xf0]
SHR RAX,0x8
MOV byte ptr [RBP + -0x5e],AL
MOV RAX,qword ptr [RBP + -0xf0]
SHR RAX,0x10
MOV byte ptr [RBP + -0x5f],AL
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc8]
MOV qword ptr [RBP + -0xf8],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc8]
SHR RAX,0x20
MOV qword ptr [RBP + -0x100],RAX
MOV RAX,qword ptr [RBP + -0x100]
MOV qword ptr [RBP + -0x108],RAX
MOV RAX,qword ptr [RBP + -0x108]
MOV byte ptr [RBP + -0x59],AL
MOV RAX,qword ptr [RBP + -0x108]
SHR RAX,0x8
MOV byte ptr [RBP + -0x5a],AL
MOV RAX,qword ptr [RBP + -0x108]
SHR RAX,0x10
MOV byte ptr [RBP + -0x5b],AL
MOV RAX,qword ptr [RBP + -0x108]
SHR RAX,0x18
MOV byte ptr [RBP + -0x5c],AL
MOV RAX,qword ptr [RBP + -0xf8]
MOV qword ptr [RBP + -0x110],RAX
MOV RAX,qword ptr [RBP + -0x110]
MOV byte ptr [RBP + -0x55],AL
MOV RAX,qword ptr [RBP + -0x110]
SHR RAX,0x8
MOV byte ptr [RBP + -0x56],AL
MOV RAX,qword ptr [RBP + -0x110]
SHR RAX,0x10
MOV byte ptr [RBP + -0x57],AL
MOV RAX,qword ptr [RBP + -0x110]
SHR RAX,0x18
MOV byte ptr [RBP + -0x58],AL
MOV EAX,dword ptr [RBP + -0xdc]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001830c1
LEA RDI,[RBP + -0x60]
ADD RDI,0xc
MOV ESI,0xff
MOV EDX,0x8
CALL 0x0012a2f0
JMP 0x0018315f
LAB_001830c1:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x118],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x20
MOV qword ptr [RBP + -0x120],RAX
MOV RAX,qword ptr [RBP + -0x120]
MOV qword ptr [RBP + -0x128],RAX
MOV RAX,qword ptr [RBP + -0x128]
MOV byte ptr [RBP + -0x51],AL
MOV RAX,qword ptr [RBP + -0x128]
SHR RAX,0x8
MOV byte ptr [RBP + -0x52],AL
MOV RAX,qword ptr [RBP + -0x128]
SHR RAX,0x10
MOV byte ptr [RBP + -0x53],AL
MOV RAX,qword ptr [RBP + -0x128]
SHR RAX,0x18
MOV byte ptr [RBP + -0x54],AL
MOV RAX,qword ptr [RBP + -0x118]
MOV qword ptr [RBP + -0x130],RAX
MOV RAX,qword ptr [RBP + -0x130]
MOV byte ptr [RBP + -0x4d],AL
MOV RAX,qword ptr [RBP + -0x130]
SHR RAX,0x8
MOV byte ptr [RBP + -0x4e],AL
MOV RAX,qword ptr [RBP + -0x130]
SHR RAX,0x10
MOV byte ptr [RBP + -0x4f],AL
MOV RAX,qword ptr [RBP + -0x130]
SHR RAX,0x18
MOV byte ptr [RBP + -0x50],AL
LAB_0018315f:
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0xc8]
LEA RSI,[RBP + -0x60]
MOV RCX,qword ptr [RBP + -0xd0]
MOV EDX,0x14
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001831a3
JMP 0x00183197
LAB_00183197:
MOV byte ptr [RBP + -0xb9],0x1
JMP 0x00183252
LAB_001831a3:
MOV RCX,qword ptr [RBP + -0xd0]
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0xc8],RCX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,0x1
MOV qword ptr [RAX + 0x8],RCX
MOV EAX,dword ptr [RBP + -0xd8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX + 0x20]
ADD RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0xd0],RAX
MOVSX EAX,byte ptr [RBP + -0xe1]
CMP EAX,0x0
JZ 0x00183229
MOV RDI,qword ptr [RBP + -0xc8]
LEA RSI,[RBP + -0xb8]
CALL 0x00184b70
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00183229
MOV dword ptr [RBP + -0xe0],0x1
LAB_00183229:
JMP 0x0018322b
LAB_0018322b:
MOV EAX,dword ptr [RBP + -0xdc]
AND EAX,0x2
CMP EAX,0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x00182ec2
JMP 0x00183246
LAB_00183246:
MOV EAX,dword ptr [RBP + -0xe0]
MOV byte ptr [RBP + -0xb9],AL
LAB_00183252:
MOV AL,byte ptr [RBP + -0xb9]
MOV byte ptr [RBP + -0x131],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0018327f
MOV AL,byte ptr [RBP + -0x131]
ADD RSP,0x140
POP RBP
RET
LAB_0018327f:
CALL 0x0012a290
|
int8 delete_dynamic_record(long *param_1,long param_2,int4 param_3)
{
int8 uVar1;
int8 uVar2;
bool bVar3;
char cVar4;
uint uVar5;
uint uVar6;
long lVar7;
long in_FS_OFFSET;
uint local_e0;
long local_d8;
int1 local_c1;
int1 local_c0 [40];
long local_98;
int4 local_70;
int1 local_68;
int1 local_67;
int1 local_66;
int1 local_65;
int1 local_64;
int1 local_63;
int1 local_62;
int1 local_61;
int1 local_60;
int1 local_5f;
int1 local_5e;
int1 local_5d;
int1 local_5c;
int1 local_5b;
int1 local_5a;
int1 local_59;
int1 local_58;
int1 local_57;
int1 local_56;
int1 local_55;
int8 local_40;
int8 local_30;
long local_28;
int4 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_c1 = update_backward_delete_link(param_1,*(int8 *)(*param_1 + 200),param_2);
local_d8 = param_2;
local_18 = param_3;
do {
uVar5 = _ma_get_block_info(param_1,&local_68,(int)param_1[0x90],local_d8);
if (((uVar5 & 0x3c) != 0) ||
(local_e0 = ((int)local_30 - (int)local_d8) + (int)local_40, local_e0 < 0x14)) {
_ma_set_fatal_error(param_1,0x7f);
local_c1 = 1;
break;
}
local_70 = 0;
bVar3 = false;
uVar6 = _ma_get_block_info(param_1,local_c0,(int)param_1[0x90],local_d8 + (ulong)local_e0);
if (((uVar6 & 4) != 0) && (local_98 + (ulong)local_e0 < 0xfffffc)) {
bVar3 = true;
local_e0 = local_e0 + (int)local_98;
}
local_68 = 0;
local_65 = (int1)local_e0;
local_66 = (int1)(local_e0 >> 8);
local_67 = (int1)(local_e0 >> 0x10);
uVar1 = *(int8 *)(*param_1 + 200);
uVar2 = *(int8 *)(*param_1 + 200);
local_61 = (int1)((ulong)uVar2 >> 0x20);
local_62 = (int1)((ulong)uVar2 >> 0x28);
local_63 = (int1)((ulong)uVar2 >> 0x30);
local_64 = (int1)((ulong)uVar2 >> 0x38);
local_5d = (int1)uVar1;
local_5e = (int1)((ulong)uVar1 >> 8);
local_5f = (int1)((ulong)uVar1 >> 0x10);
local_60 = (int1)((ulong)uVar1 >> 0x18);
if ((uVar5 & 2) == 0) {
local_59 = (int1)((ulong)local_28 >> 0x20);
local_5a = (int1)((ulong)local_28 >> 0x28);
local_5b = (int1)((ulong)local_28 >> 0x30);
local_5c = (int1)((ulong)local_28 >> 0x38);
local_55 = (int1)local_28;
local_56 = (int1)((ulong)local_28 >> 8);
local_57 = (int1)((ulong)local_28 >> 0x10);
local_58 = (int1)((ulong)local_28 >> 0x18);
}
else {
memset(&local_5c,0xff,8);
}
lVar7 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_68,0x14,local_d8,4);
if (lVar7 != 0) {
local_c1 = 1;
break;
}
*(long *)(*param_1 + 200) = local_d8;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + 1;
*(ulong *)(param_1[4] + 0x10) = (ulong)local_e0 + *(long *)(param_1[4] + 0x10);
local_d8 = local_28;
if ((bVar3) && (cVar4 = unlink_deleted_block(param_1,local_c0), cVar4 != '\0')) {
local_c1 = 1;
}
} while ((uVar5 & 2) == 0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_c1);
}
|
|
57,889
|
delete_dynamic_record
|
eloqsql/storage/maria/ma_dynrec.c
|
static my_bool delete_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS filepos,
uint second_read)
{
uint length,b_type;
MARIA_BLOCK_INFO block_info,del_block;
int error;
my_bool remove_next_block;
DBUG_ENTER("delete_dynamic_record");
/* First add a link from the last block to the new one */
error= update_backward_delete_link(info, info->s->state.dellink, filepos);
block_info.second_read=second_read;
do
{
/* Remove block at 'filepos' */
if ((b_type= _ma_get_block_info(info, &block_info, info->dfile.file,
filepos))
& (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR |
BLOCK_FATAL_ERROR) ||
(length=(uint) (block_info.filepos-filepos) +block_info.block_len) <
MARIA_MIN_BLOCK_LENGTH)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(1);
}
/* Check if next block is a delete block */
del_block.second_read=0;
remove_next_block=0;
if (_ma_get_block_info(info, &del_block, info->dfile.file,
filepos + length) &
BLOCK_DELETED && del_block.block_len+length <
MARIA_DYN_MAX_BLOCK_LENGTH)
{
/* We can't remove this yet as this block may be the head block */
remove_next_block=1;
length+=del_block.block_len;
}
block_info.header[0]=0;
mi_int3store(block_info.header+1,length);
mi_sizestore(block_info.header+4,info->s->state.dellink);
if (b_type & BLOCK_LAST)
bfill(block_info.header+12,8,255);
else
mi_sizestore(block_info.header+12,block_info.next_filepos);
if (info->s->file_write(info, block_info.header, 20, filepos,
MYF(MY_NABP)))
DBUG_RETURN(1);
info->s->state.dellink = filepos;
info->state->del++;
info->state->empty+=length;
filepos=block_info.next_filepos;
/* Now it's safe to unlink the deleted block directly after this one */
if (remove_next_block && unlink_deleted_block(info,&del_block))
error=1;
} while (!(b_type & BLOCK_LAST));
DBUG_RETURN(error);
}
|
O3
|
c
|
delete_dynamic_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq 0xc8(%rax), %rsi
movq %r15, %rdx
callq 0x68e53
movl %eax, -0xe4(%rbp)
leaq -0x88(%rbp), %rax
movl %r13d, 0x50(%rax)
movl 0x480(%r12), %edx
movq %r12, %rdi
leaq -0x88(%rbp), %rsi
movq %r15, %rcx
callq 0x68904
cmpl $0x3, %eax
ja 0x681c1
movq -0x50(%rbp), %rbx
subq %r15, %rbx
addq -0x60(%rbp), %rbx
cmpl $0x13, %ebx
jbe 0x681c1
movl %eax, %r13d
movl $0x0, -0x90(%rbp)
movl 0x480(%r12), %edx
movq %r15, %rax
movl %ebx, %r15d
movq %rax, -0xf0(%rbp)
leaq (%r15,%rax), %rcx
movq %r12, %rdi
leaq -0xe0(%rbp), %rsi
callq 0x68904
testb $0x4, %al
sete %al
addq -0xb8(%rbp), %r15
cmpq $0xfffffc, %r15 # imm = 0xFFFFFC
setae %r14b
orb %al, %r14b
jne 0x680ed
movq %r15, %rbx
movb $0x0, -0x88(%rbp)
movb %bl, -0x85(%rbp)
movb %bh, -0x86(%rbp)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, -0x87(%rbp)
movq (%r12), %rax
movq 0xc8(%rax), %rcx
bswapq %rcx
movq %rcx, -0x84(%rbp)
cmpl $0x2, %r13d
jae 0x68133
movq -0x48(%rbp), %rcx
bswapq %rcx
movq %rcx, -0x7c(%rbp)
jmp 0x6813b
movq $-0x1, -0x7c(%rbp)
movq -0xf0(%rbp), %r15
movl $0x14, %edx
movl $0x4, %r8d
movq %r12, %rdi
leaq -0x88(%rbp), %rsi
movq %r15, %rcx
callq *0x6e8(%rax)
testq %rax, %rax
jne 0x681ce
movl %ebx, %eax
movq (%r12), %rcx
movq %r15, 0xc8(%rcx)
movq 0x20(%r12), %rcx
incq 0x8(%rcx)
movq 0x20(%r12), %rcx
addq %rax, 0x10(%rcx)
movq -0x48(%rbp), %r15
testb %r14b, %r14b
jne 0x681b5
movq %r12, %rdi
leaq -0xe0(%rbp), %rsi
callq 0x68d13
testb %al, %al
movl -0xe4(%rbp), %eax
movzbl %al, %eax
movl $0x1, %ecx
cmovnel %ecx, %eax
movl %eax, -0xe4(%rbp)
cmpl $0x2, %r13d
jb 0x68062
jmp 0x681d6
movq %r12, %rdi
movl $0x7f, %esi
callq 0x5cab0
movb $0x1, %al
movl %eax, -0xe4(%rbp)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x681fd
movl -0xe4(%rbp), %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a280
|
delete_dynamic_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov r13d, edx
mov r15, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov rsi, [rax+0C8h]
mov rdx, r15
call update_backward_delete_link
mov [rbp+var_E4], eax
lea rax, [rbp+var_88]
mov [rax+50h], r13d
loc_68062:
mov edx, [r12+480h]
mov rdi, r12
lea rsi, [rbp+var_88]
mov rcx, r15
call _ma_get_block_info
cmp eax, 3
ja loc_681C1
mov rbx, [rbp+var_50]
sub rbx, r15
add rbx, [rbp+var_60]
cmp ebx, 13h
jbe loc_681C1
mov r13d, eax
mov [rbp+var_90], 0
mov edx, [r12+480h]
mov rax, r15
mov r15d, ebx
mov [rbp+var_F0], rax
lea rcx, [r15+rax]
mov rdi, r12
lea rsi, [rbp+var_E0]
call _ma_get_block_info
test al, 4
setz al
add r15, [rbp+var_B8]
cmp r15, 0FFFFFCh
setnb r14b
or r14b, al
jnz short loc_680ED
mov rbx, r15
loc_680ED:
mov [rbp+var_88], 0
mov [rbp+var_85], bl
mov [rbp+var_86], bh
mov eax, ebx
shr eax, 10h
mov [rbp+var_87], al
mov rax, [r12]
mov rcx, [rax+0C8h]
bswap rcx
mov [rbp+var_84], rcx
cmp r13d, 2
jnb short loc_68133
mov rcx, [rbp+var_48]
bswap rcx
mov [rbp+var_7C], rcx
jmp short loc_6813B
loc_68133:
mov [rbp+var_7C], 0FFFFFFFFFFFFFFFFh
loc_6813B:
mov r15, [rbp+var_F0]
mov edx, 14h
mov r8d, 4
mov rdi, r12
lea rsi, [rbp+var_88]
mov rcx, r15
call qword ptr [rax+6E8h]
test rax, rax
jnz short loc_681CE
mov eax, ebx
mov rcx, [r12]
mov [rcx+0C8h], r15
mov rcx, [r12+20h]
inc qword ptr [rcx+8]
mov rcx, [r12+20h]
add [rcx+10h], rax
mov r15, [rbp+var_48]
test r14b, r14b
jnz short loc_681B5
mov rdi, r12
lea rsi, [rbp+var_E0]
call unlink_deleted_block
test al, al
mov eax, [rbp+var_E4]
movzx eax, al
mov ecx, 1
cmovnz eax, ecx
mov [rbp+var_E4], eax
loc_681B5:
cmp r13d, 2
jb loc_68062
jmp short loc_681D6
loc_681C1:
mov rdi, r12
mov esi, 7Fh
call _ma_set_fatal_error
loc_681CE:
mov al, 1
mov [rbp+var_E4], eax
loc_681D6:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_681FD
mov eax, [rbp+var_E4]
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_681FD:
call ___stack_chk_fail
|
long long delete_dynamic_record(unsigned int *a1, unsigned long long a2, int a3)
{
unsigned long long v4; // r15
unsigned int block_info; // eax
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
int v9; // r9d
unsigned int v10; // ebx
unsigned int v11; // r13d
char v12; // al
bool v13; // r14
long long v14; // rax
int *v15; // rax
bool v16; // zf
int v17; // eax
unsigned int v19; // [rsp+Ch] [rbp-E4h]
_BYTE v20[40]; // [rsp+10h] [rbp-E0h] BYREF
long long v21; // [rsp+38h] [rbp-B8h]
int v22; // [rsp+60h] [rbp-90h]
_BYTE v23[4]; // [rsp+68h] [rbp-88h] BYREF
unsigned long long v24; // [rsp+6Ch] [rbp-84h]
unsigned long long v25; // [rsp+74h] [rbp-7Ch]
long long v26; // [rsp+90h] [rbp-60h]
long long v27; // [rsp+A0h] [rbp-50h]
unsigned long long v28; // [rsp+A8h] [rbp-48h]
int v29; // [rsp+B8h] [rbp-38h]
unsigned long long v30; // [rsp+C0h] [rbp-30h]
v4 = a2;
v30 = __readfsqword(0x28u);
v19 = update_backward_delete_link(a1, *(_QWORD *)(*(_QWORD *)a1 + 200LL), a2);
v29 = a3;
while ( 1 )
{
block_info = ma_get_block_info(a1, v23, a1[288], v4);
if ( block_info > 3 )
break;
v10 = v26 + v27 - v4;
if ( v10 <= 0x13 )
break;
v11 = block_info;
v22 = 0;
v12 = ma_get_block_info(a1, v20, a1[288], v10 + v4);
v13 = (v12 & 4) == 0 || v21 + (unsigned long long)v10 >= 0xFFFFFC;
if ( !v13 )
v10 += v21;
v23[0] = 0;
v23[2] = BYTE1(v10);
v23[3] = v10;
v23[1] = BYTE2(v10);
v14 = *(_QWORD *)a1;
v24 = _byteswap_uint64(*(_QWORD *)(*(_QWORD *)a1 + 200LL));
if ( v11 >= 2 )
v25 = -1LL;
else
v25 = _byteswap_uint64(v28);
v15 = (int *)(*(long long ( **)(unsigned int *, _BYTE *, long long, unsigned long long, long long))(v14 + 1768))(
a1,
v23,
20LL,
v4,
4LL);
if ( v15 )
goto LABEL_17;
*(_QWORD *)(*(_QWORD *)a1 + 200LL) = v4;
++*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL);
*(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) += v10;
v4 = v28;
if ( !v13 )
{
v16 = (unsigned __int8)unlink_deleted_block(a1, v20) == 0;
v17 = (unsigned __int8)v19;
if ( !v16 )
v17 = 1;
v19 = v17;
}
if ( v11 >= 2 )
return v19;
}
v15 = ma_set_fatal_error(a1, 127, v6, v7, v8, v9);
LABEL_17:
LOBYTE(v15) = 1;
return (unsigned int)v15;
}
|
delete_dynamic_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV R13D,EDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RAX + 0xc8]
MOV RDX,R15
CALL 0x00168e53
MOV dword ptr [RBP + -0xe4],EAX
LEA RAX,[RBP + -0x88]
MOV dword ptr [RAX + 0x50],R13D
LAB_00168062:
MOV EDX,dword ptr [R12 + 0x480]
MOV RDI,R12
LEA RSI,[RBP + -0x88]
MOV RCX,R15
CALL 0x00168904
CMP EAX,0x3
JA 0x001681c1
MOV RBX,qword ptr [RBP + -0x50]
SUB RBX,R15
ADD RBX,qword ptr [RBP + -0x60]
CMP EBX,0x13
JBE 0x001681c1
MOV R13D,EAX
MOV dword ptr [RBP + -0x90],0x0
MOV EDX,dword ptr [R12 + 0x480]
MOV RAX,R15
MOV R15D,EBX
MOV qword ptr [RBP + -0xf0],RAX
LEA RCX,[R15 + RAX*0x1]
MOV RDI,R12
LEA RSI,[RBP + -0xe0]
CALL 0x00168904
TEST AL,0x4
SETZ AL
ADD R15,qword ptr [RBP + -0xb8]
CMP R15,0xfffffc
SETNC R14B
OR R14B,AL
JNZ 0x001680ed
MOV RBX,R15
LAB_001680ed:
MOV byte ptr [RBP + -0x88],0x0
MOV byte ptr [RBP + -0x85],BL
MOV byte ptr [RBP + -0x86],BH
MOV EAX,EBX
SHR EAX,0x10
MOV byte ptr [RBP + -0x87],AL
MOV RAX,qword ptr [R12]
MOV RCX,qword ptr [RAX + 0xc8]
BSWAP RCX
MOV qword ptr [RBP + -0x84],RCX
CMP R13D,0x2
JNC 0x00168133
MOV RCX,qword ptr [RBP + -0x48]
BSWAP RCX
MOV qword ptr [RBP + -0x7c],RCX
JMP 0x0016813b
LAB_00168133:
MOV qword ptr [RBP + -0x7c],-0x1
LAB_0016813b:
MOV R15,qword ptr [RBP + -0xf0]
MOV EDX,0x14
MOV R8D,0x4
MOV RDI,R12
LEA RSI,[RBP + -0x88]
MOV RCX,R15
CALL qword ptr [RAX + 0x6e8]
TEST RAX,RAX
JNZ 0x001681ce
MOV EAX,EBX
MOV RCX,qword ptr [R12]
MOV qword ptr [RCX + 0xc8],R15
MOV RCX,qword ptr [R12 + 0x20]
INC qword ptr [RCX + 0x8]
MOV RCX,qword ptr [R12 + 0x20]
ADD qword ptr [RCX + 0x10],RAX
MOV R15,qword ptr [RBP + -0x48]
TEST R14B,R14B
JNZ 0x001681b5
MOV RDI,R12
LEA RSI,[RBP + -0xe0]
CALL 0x00168d13
TEST AL,AL
MOV EAX,dword ptr [RBP + -0xe4]
MOVZX EAX,AL
MOV ECX,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0xe4],EAX
LAB_001681b5:
CMP R13D,0x2
JC 0x00168062
JMP 0x001681d6
LAB_001681c1:
MOV RDI,R12
MOV ESI,0x7f
CALL 0x0015cab0
LAB_001681ce:
MOV AL,0x1
MOV dword ptr [RBP + -0xe4],EAX
LAB_001681d6:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001681fd
MOV EAX,dword ptr [RBP + -0xe4]
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001681fd:
CALL 0x0012a280
|
uint delete_dynamic_record(long *param_1,ulong param_2,int4 param_3)
{
ulong uVar1;
char cVar2;
uint uVar3;
ulong uVar4;
long lVar5;
ulong uVar6;
long in_FS_OFFSET;
bool bVar7;
uint local_ec;
int1 local_e8 [40];
long local_c0;
int4 local_98;
int1 local_90;
int1 local_8f;
int1 local_8e;
int1 local_8d;
ulong local_8c;
ulong local_84;
long local_68;
long local_58;
ulong local_50;
int4 local_40;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_ec = update_backward_delete_link(param_1,*(int8 *)(*param_1 + 200),param_2);
local_40 = param_3;
do {
uVar3 = _ma_get_block_info(param_1,&local_90,(int)param_1[0x90],param_2);
if ((3 < uVar3) || (uVar6 = (local_58 - param_2) + local_68, (uint)uVar6 < 0x14)) {
lVar5 = _ma_set_fatal_error(param_1,0x7f);
LAB_001681ce:
local_ec = (uint)CONCAT71((int7)((ulong)lVar5 >> 8),1);
break;
}
local_98 = 0;
uVar4 = _ma_get_block_info(param_1,local_e8,(int)param_1[0x90],(uVar6 & 0xffffffff) + param_2);
bVar7 = (uVar4 & 4) != 0;
uVar4 = (uVar6 & 0xffffffff) + local_c0;
if (uVar4 < 0xfffffc && bVar7) {
uVar6 = uVar4;
}
local_90 = 0;
local_8d = (int1)uVar6;
local_8e = (int1)(uVar6 >> 8);
local_8f = (int1)(uVar6 >> 0x10);
uVar1 = *(ulong *)(*param_1 + 200);
local_8c = uVar1 >> 0x38 | (uVar1 & 0xff000000000000) >> 0x28 | (uVar1 & 0xff0000000000) >> 0x18
| (uVar1 & 0xff00000000) >> 8 | (uVar1 & 0xff000000) << 8 |
(uVar1 & 0xff0000) << 0x18 | (uVar1 & 0xff00) << 0x28 | uVar1 << 0x38;
if (uVar3 < 2) {
local_84 = local_50 >> 0x38 | (local_50 & 0xff000000000000) >> 0x28 |
(local_50 & 0xff0000000000) >> 0x18 | (local_50 & 0xff00000000) >> 8 |
(local_50 & 0xff000000) << 8 | (local_50 & 0xff0000) << 0x18 |
(local_50 & 0xff00) << 0x28 | local_50 << 0x38;
}
else {
local_84 = 0xffffffffffffffff;
}
lVar5 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_90,0x14,param_2,4);
uVar1 = local_50;
if (lVar5 != 0) goto LAB_001681ce;
*(ulong *)(*param_1 + 200) = param_2;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + 1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) + (uVar6 & 0xffffffff);
if (uVar4 < 0xfffffc && bVar7) {
cVar2 = unlink_deleted_block(param_1,local_e8);
local_ec = local_ec & 0xff;
if (cVar2 != '\0') {
local_ec = 1;
}
}
param_2 = uVar1;
} while (uVar3 < 2);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_ec;
}
|
|
57,890
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool)
|
zkingston[P]unknot/build_O1/_deps/json-src/include/nlohmann/detail/input/json_sax.hpp
|
json_sax_dom_callback_parser(BasicJsonType& r,
const parser_callback_t cb,
const bool allow_exceptions_ = true)
: root(r), callback(cb), allow_exceptions(allow_exceptions_)
{
keep_stack.push_back(true);
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdi, %rbx
movq %rsi, (%rdi)
leaq 0x20(%rdi), %r14
leaq 0x80(%rdi), %r12
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x8(%rdi)
vmovups %ymm0, 0x28(%rdi)
vmovups %ymm0, 0x48(%rdi)
vmovups %ymm0, 0x59(%rdi)
movq %r12, %rdi
movq %rdx, %rsi
vzeroupper
callq 0x311a0
movb %bpl, 0xa0(%rbx)
leaq 0xa8(%rbx), %r13
movb $0x9, 0xa8(%rbx)
movq $0x0, 0xb0(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x34352
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r13, %rdi
callq 0x2c524
movq 0x90(%rbx), %rax
testq %rax, %rax
je 0x32003
movq %r12, %rdi
movq %r12, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x32003
jmp 0x3202a
movq %rax, %r15
leaq 0x48(%rbx), %rdi
callq 0x34554
movq %r14, %rdi
callq 0x34554
leaq 0x8(%rbx), %rdi
movq %rbx, %rsi
callq 0x10d89
movq %r15, %rdi
callq 0x101c0
jmp 0x3202a
movq %rax, %rdi
callq 0x14fdb
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebp, ecx
mov rbx, rdi
mov [rdi], rsi
lea r14, [rdi+20h]
lea r12, [rdi+80h]
vxorps xmm0, xmm0, xmm0
vmovups ymmword ptr [rdi+8], ymm0
vmovups ymmword ptr [rdi+28h], ymm0
vmovups ymmword ptr [rdi+48h], ymm0
vmovups ymmword ptr [rdi+59h], ymm0
mov rdi, r12
mov rsi, rdx
vzeroupper
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
mov [rbx+0A0h], bpl
lea r13, [rbx+0A8h]
mov byte ptr [rbx+0A8h], 9
mov qword ptr [rbx+0B0h], 0
mov rdi, r14
mov esi, 1
call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool)
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rbx+90h]
test rax, rax
jz short loc_32003
mov rdi, r12
mov rsi, r12
mov edx, 3
call rax
jmp short loc_32003
jmp short loc_3202A
mov r15, rax
loc_32003:
lea rdi, [rbx+48h]
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
mov rdi, r14
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
lea rdi, [rbx+8]
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb_cold_1; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) [clone]
mov rdi, r15
call __Unwind_Resume
jmp short $+2
loc_3202A:
mov rdi, rax
call __clang_call_terminate
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser(
long long _RDI,
long long a2,
long long a3,
char a4,
__m128 _XMM0)
{
*(_QWORD *)_RDI = a2;
__asm
{
vxorps xmm0, xmm0, xmm0
vmovups ymmword ptr [rdi+8], ymm0
vmovups ymmword ptr [rdi+28h], ymm0
vmovups ymmword ptr [rdi+48h], ymm0
vmovups ymmword ptr [rdi+59h], ymm0
vzeroupper
}
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
_RDI + 128,
a3,
_XMM0);
*(_BYTE *)(_RDI + 160) = a4;
*(_BYTE *)(_RDI + 168) = 9;
*(_QWORD *)(_RDI + 176) = 0LL;
return std::vector<bool>::push_back(_RDI + 32, 1LL);
}
|
json_sax_dom_callback_parser:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV RBX,RDI
MOV qword ptr [RDI],RSI
LEA R14,[RDI + 0x20]
LEA R12,[RDI + 0x80]
VXORPS XMM0,XMM0,XMM0
VMOVUPS ymmword ptr [RDI + 0x8],YMM0
VMOVUPS ymmword ptr [RDI + 0x28],YMM0
VMOVUPS ymmword ptr [RDI + 0x48],YMM0
VMOVUPS ymmword ptr [RDI + 0x59],YMM0
LAB_00131f8e:
MOV RDI,R12
MOV RSI,RDX
VZEROUPPER
CALL 0x001311a0
MOV byte ptr [RBX + 0xa0],BPL
LEA R13,[RBX + 0xa8]
MOV byte ptr [RBX + 0xa8],0x9
MOV qword ptr [RBX + 0xb0],0x0
LAB_00131fbc:
MOV RDI,R14
MOV ESI,0x1
CALL 0x00134352
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::json_sax_dom_callback_parser
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,int8 param_1,function *param_3,
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
param_4)
{
int1 auVar1 [16];
*(int8 *)this = param_1;
auVar1 = ZEXT816(0) << 0x40;
*(int1 (*) [32])(this + 8) = ZEXT1632(auVar1);
*(int1 (*) [32])(this + 0x28) = ZEXT1632(auVar1);
*(int1 (*) [32])(this + 0x48) = ZEXT1632(auVar1);
*(int1 (*) [32])(this + 0x59) = ZEXT1632(auVar1);
/* try { // try from 00131f8e to 00131f9b has its CatchHandler @ 00132000 */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),param_3);
this[0xa0] = param_4;
this[0xa8] = (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
)0x9;
*(int8 *)(this + 0xb0) = 0;
/* try { // try from 00131fbc to 00131fc8 has its CatchHandler @ 00131fd8 */
std::vector<bool,std::allocator<bool>>::push_back
((vector<bool,std::allocator<bool>> *)(this + 0x20),true);
return;
}
|
|
57,891
|
ggml_backend_tensor_copy
|
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
|
void ggml_backend_tensor_copy(struct ggml_tensor * src, struct ggml_tensor * dst) {
//printf("src: %s ne: [%d %d %d %d] nb: [%d %d %d %d]\n", src->name, (int)src->ne[0], (int)src->ne[1], (int)src->ne[2], (int)src->ne[3], (int)src->nb[0], (int)src->nb[1], (int)src->nb[2], (int)src->nb[3]);
//printf("dst: %s ne: [%d %d %d %d] nb: [%d %d %d %d]\n", dst->name, (int)dst->ne[0], (int)dst->ne[1], (int)dst->ne[2], (int)dst->ne[3], (int)dst->nb[0], (int)dst->nb[1], (int)dst->nb[2], (int)dst->nb[3]);
GGML_ASSERT(ggml_are_same_layout(src, dst) && "cannot copy tensors with different layouts");
// fprintf(stderr, "cpy tensor %s from %s to %s (%lu bytes)\n", src->name, ggml_backend_name(src->backend), ggml_backend_name(dst->backend), ggml_nbytes(src));
if (src == dst) {
return;
}
// TODO: allow backends to support copy to/from same backend
if (dst->buffer->iface.cpy_tensor_from != NULL) {
dst->buffer->iface.cpy_tensor_from(dst->buffer, src, dst);
} else if (src->buffer->iface.cpy_tensor_to != NULL) {
src->buffer->iface.cpy_tensor_to(src->buffer, src, dst);
} else {
// shouldn't be hit when copying from/to CPU
#ifndef NDEBUG
fprintf(stderr, "ggml_backend_tensor_copy: neither cpy_tensor_from nor cpy_tensor_to "
"are implemented for %s and %s, falling back to get/set\n", src->name, dst->name);
#endif
size_t nbytes = ggml_nbytes(src);
void * data = malloc(nbytes);
ggml_backend_tensor_get(src, data, 0, nbytes);
ggml_backend_tensor_set(dst, data, 0, nbytes);
free(data);
}
}
|
O0
|
c
|
ggml_backend_tensor_copy:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x1673d0
testb $0x1, %al
jne 0x1672a3
jmp 0x1672ab
movb $0x1, %al
testb $0x1, %al
jne 0x1672ef
jmp 0x1672ab
movq 0x70c76(%rip), %rax # 0x1d7f28
movq (%rax), %rdi
callq 0xb8e0
movq 0x70ce7(%rip), %rax # 0x1d7fa8
movq (%rax), %rdi
leaq 0x1894f(%rip), %rsi # 0x17fc1a
leaq 0x25377(%rip), %rdx # 0x18c649
movl $0xe8, %ecx
leaq 0x255ad(%rip), %r8 # 0x18c88b
movb $0x0, %al
callq 0xbae0
callq 0x11a4f0
callq 0xb3a0
jmp 0x1672f1
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jne 0x167302
jmp 0x1673c7
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x167339
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq *%rax
jmp 0x1673c7
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x30(%rax)
je 0x16736d
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq *%rax
jmp 0x1673c5
movq 0x20(%rsp), %rdi
callq 0x11ae90
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0xba00
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x166fb0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x166e30
movq 0x8(%rsp), %rdi
callq 0xb900
jmp 0x1673c7
addq $0x28, %rsp
retq
nopl (%rax)
|
ggml_backend_tensor_copy:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call ggml_are_same_layout_0
test al, 1
jnz short loc_1672A3
jmp short loc_1672AB
loc_1672A3:
mov al, 1
test al, 1
jnz short loc_1672EF
jmp short $+2
loc_1672AB:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
mov ecx, 0E8h
lea r8, aGgmlAreSameLay; "ggml_are_same_layout(src, dst) && \"can"...
mov al, 0
call _fprintf
call ggml_print_backtrace
call _abort
loc_1672EF:
jmp short $+2
loc_1672F1:
mov rax, [rsp+28h+var_8]
cmp rax, [rsp+28h+var_10]
jnz short loc_167302
jmp loc_1673C7
loc_167302:
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
cmp qword ptr [rax+28h], 0
jz short loc_167339
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
mov rax, [rax+28h]
mov rcx, [rsp+28h+var_10]
mov rdi, [rcx+8]
mov rsi, [rsp+28h+var_8]
mov rdx, [rsp+28h+var_10]
call rax
jmp loc_1673C7
loc_167339:
mov rax, [rsp+28h+var_8]
mov rax, [rax+8]
cmp qword ptr [rax+30h], 0
jz short loc_16736D
mov rax, [rsp+28h+var_8]
mov rax, [rax+8]
mov rax, [rax+30h]
mov rcx, [rsp+28h+var_8]
mov rdi, [rcx+8]
mov rsi, [rsp+28h+var_8]
mov rdx, [rsp+28h+var_10]
call rax
jmp short loc_1673C5
loc_16736D:
mov rdi, [rsp+28h+var_8]
call ggml_nbytes
mov [rsp+28h+var_18], rax
mov rdi, [rsp+28h+var_18]
call _malloc
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_18]
xor eax, eax
mov edx, eax
call ggml_backend_tensor_get
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_18]
xor eax, eax
mov edx, eax
call ggml_backend_tensor_set
mov rdi, [rsp+28h+var_20]
call _free
loc_1673C5:
jmp short $+2
loc_1673C7:
add rsp, 28h
retn
|
long long ggml_backend_tensor_copy(long long a1, long long a2)
{
long long v2; // rdi
long long result; // rax
long long v4; // [rsp+8h] [rbp-20h]
long long v5; // [rsp+10h] [rbp-18h]
if ( (ggml_are_same_layout_0(a1, a2) & 1) == 0 )
{
fflush(stdout);
v2 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c",
232,
"ggml_are_same_layout(src, dst) && \"cannot copy tensors with different layouts\"");
ggml_print_backtrace();
abort(v2);
}
result = a1;
if ( a1 != a2 )
{
if ( *(_QWORD *)(*(_QWORD *)(a2 + 8) + 40LL) )
{
return (*(long long ( **)(_QWORD, long long, long long))(*(_QWORD *)(a2 + 8) + 40LL))(
*(_QWORD *)(a2 + 8),
a1,
a2);
}
else if ( *(_QWORD *)(*(_QWORD *)(a1 + 8) + 48LL) )
{
return (*(long long ( **)(_QWORD, long long, long long))(*(_QWORD *)(a1 + 8) + 48LL))(
*(_QWORD *)(a1 + 8),
a1,
a2);
}
else
{
v5 = ggml_nbytes((unsigned int *)a1);
v4 = malloc(v5);
ggml_backend_tensor_get(a1, v4, 0LL, v5);
ggml_backend_tensor_set(a2, v4, 0LL, v5);
return free(v4);
}
}
return result;
}
| |||
57,892
|
ggml_backend_tensor_copy
|
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
|
void ggml_backend_tensor_copy(struct ggml_tensor * src, struct ggml_tensor * dst) {
//printf("src: %s ne: [%d %d %d %d] nb: [%d %d %d %d]\n", src->name, (int)src->ne[0], (int)src->ne[1], (int)src->ne[2], (int)src->ne[3], (int)src->nb[0], (int)src->nb[1], (int)src->nb[2], (int)src->nb[3]);
//printf("dst: %s ne: [%d %d %d %d] nb: [%d %d %d %d]\n", dst->name, (int)dst->ne[0], (int)dst->ne[1], (int)dst->ne[2], (int)dst->ne[3], (int)dst->nb[0], (int)dst->nb[1], (int)dst->nb[2], (int)dst->nb[3]);
GGML_ASSERT(ggml_are_same_layout(src, dst) && "cannot copy tensors with different layouts");
// fprintf(stderr, "cpy tensor %s from %s to %s (%lu bytes)\n", src->name, ggml_backend_name(src->backend), ggml_backend_name(dst->backend), ggml_nbytes(src));
if (src == dst) {
return;
}
// TODO: allow backends to support copy to/from same backend
if (dst->buffer->iface.cpy_tensor_from != NULL) {
dst->buffer->iface.cpy_tensor_from(dst->buffer, src, dst);
} else if (src->buffer->iface.cpy_tensor_to != NULL) {
src->buffer->iface.cpy_tensor_to(src->buffer, src, dst);
} else {
// shouldn't be hit when copying from/to CPU
#ifndef NDEBUG
fprintf(stderr, "ggml_backend_tensor_copy: neither cpy_tensor_from nor cpy_tensor_to "
"are implemented for %s and %s, falling back to get/set\n", src->name, dst->name);
#endif
size_t nbytes = ggml_nbytes(src);
void * data = malloc(nbytes);
ggml_backend_tensor_get(src, data, 0, nbytes);
ggml_backend_tensor_set(dst, data, 0, nbytes);
free(data);
}
}
|
O2
|
c
|
ggml_backend_tensor_copy:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl (%rdi), %eax
cmpl (%rsi), %eax
jne 0x90169
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x6
popq %rax
cmpq $0xa, %rax
je 0x901ad
movq -0x20(%r14,%rax,8), %rcx
cmpq -0x20(%rbx,%rax,8), %rcx
jne 0x90169
movq (%r14,%rax,8), %rcx
leaq 0x1(%rax), %rdx
cmpq (%rbx,%rax,8), %rcx
movq %rdx, %rax
je 0x90146
movq 0x45dd8(%rip), %rax # 0xd5f48
movq (%rax), %rdi
callq 0xa6f0
movq 0x45e29(%rip), %rax # 0xd5fa8
movq (%rax), %rdi
leaq 0xa095(%rip), %rsi # 0x9a21e
leaq 0x145a0(%rip), %rdx # 0xa4730
leaq 0x1472d(%rip), %r8 # 0xa48c4
movl $0xe8, %ecx
xorl %eax, %eax
callq 0xa8b0
callq 0x67550
callq 0xa300
cmpq %rbx, %r14
je 0x901df
movq 0x8(%rbx), %rdi
movq 0x28(%rdi), %rax
testq %rax, %rax
jne 0x901cc
movq 0x8(%r14), %rdi
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x901eb
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x67afd
movq %rax, %r15
movq %rax, %rdi
callq 0xa7e0
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x8ffca
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x8fec1
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xa710
|
ggml_backend_tensor_copy:
push r15
push r14
push r12
push rbx
push rax
mov eax, [rdi]
cmp eax, [rsi]
jnz short loc_90169
mov rbx, rsi
mov r14, rdi
push 6
pop rax
loc_90146:
cmp rax, 0Ah
jz short loc_901AD
mov rcx, [r14+rax*8-20h]
cmp rcx, [rbx+rax*8-20h]
jnz short loc_90169
mov rcx, [r14+rax*8]
lea rdx, [rax+1]
cmp rcx, [rbx+rax*8]
mov rax, rdx
jz short loc_90146
loc_90169:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlAreSameLay; "ggml_are_same_layout(src, dst) && \"can"...
mov ecx, 0E8h
xor eax, eax
call _fprintf
call ggml_print_backtrace
call _abort
loc_901AD:
cmp r14, rbx
jz short loc_901DF
mov rdi, [rbx+8]
mov rax, [rdi+28h]
test rax, rax
jnz short loc_901CC
mov rdi, [r14+8]
mov rax, [rdi+30h]
test rax, rax
jz short loc_901EB
loc_901CC:
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rax
loc_901DF:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_901EB:
mov rdi, r14
call ggml_nbytes
mov r15, rax
mov rdi, rax
call _malloc
mov r12, rax
mov rdi, r14
mov rsi, rax
xor edx, edx
mov rcx, r15
call ggml_backend_tensor_get
mov rdi, rbx
mov rsi, r12
xor edx, edx
mov rcx, r15
call ggml_backend_tensor_set
mov rdi, r12
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp _free
|
long long ggml_backend_tensor_copy(long long a1, long long a2)
{
long long result; // rax
bool v4; // zf
long long v5; // rdi
long long v6; // rdi
long long ( *v7)(long long, long long, long long); // rax
unsigned long long v8; // r15
long long v9; // r12
if ( *(_DWORD *)a1 != *(_DWORD *)a2 )
{
LABEL_6:
fflush(stdout);
v5 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c",
232,
"ggml_are_same_layout(src, dst) && \"cannot copy tensors with different layouts\"");
ggml_print_backtrace();
abort(v5);
}
result = 6LL;
while ( result != 10 )
{
if ( *(_QWORD *)(a1 + 8 * result - 32) == *(_QWORD *)(a2 + 8 * result - 32) )
{
v4 = *(_QWORD *)(a1 + 8 * result) == *(_QWORD *)(a2 + 8 * result);
++result;
if ( v4 )
continue;
}
goto LABEL_6;
}
if ( a1 != a2 )
{
v6 = *(_QWORD *)(a2 + 8);
v7 = *(long long ( **)(long long, long long, long long))(v6 + 40);
if ( v7 )
return v7(v6, a1, a2);
v6 = *(_QWORD *)(a1 + 8);
v7 = *(long long ( **)(long long, long long, long long))(v6 + 48);
if ( v7 )
{
return v7(v6, a1, a2);
}
else
{
v8 = ggml_nbytes((unsigned int *)a1);
v9 = malloc(v8);
ggml_backend_tensor_get(a1, v9, 0LL, v8);
ggml_backend_tensor_set(a2, v9, 0LL, v8);
return free(v9);
}
}
return result;
}
|
ggml_backend_tensor_copy:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV EAX,dword ptr [RDI]
CMP EAX,dword ptr [RSI]
JNZ 0x00190169
MOV RBX,RSI
MOV R14,RDI
PUSH 0x6
POP RAX
LAB_00190146:
CMP RAX,0xa
JZ 0x001901ad
MOV RCX,qword ptr [R14 + RAX*0x8 + -0x20]
CMP RCX,qword ptr [RBX + RAX*0x8 + -0x20]
JNZ 0x00190169
MOV RCX,qword ptr [R14 + RAX*0x8]
LEA RDX,[RAX + 0x1]
CMP RCX,qword ptr [RBX + RAX*0x8]
MOV RAX,RDX
JZ 0x00190146
LAB_00190169:
MOV RAX,qword ptr [0x001d5f48]
MOV RDI,qword ptr [RAX]
CALL 0x0010a6f0
MOV RAX,qword ptr [0x001d5fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x19a21e]
LEA RDX,[0x1a4730]
LEA R8,[0x1a48c4]
MOV ECX,0xe8
XOR EAX,EAX
CALL 0x0010a8b0
CALL 0x00167550
CALL 0x0010a300
LAB_001901ad:
CMP R14,RBX
JZ 0x001901df
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RDI + 0x28]
TEST RAX,RAX
JNZ 0x001901cc
MOV RDI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
JZ 0x001901eb
LAB_001901cc:
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RAX
LAB_001901df:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001901eb:
MOV RDI,R14
CALL 0x00167afd
MOV R15,RAX
MOV RDI,RAX
CALL 0x0010a7e0
MOV R12,RAX
MOV RDI,R14
MOV RSI,RAX
XOR EDX,EDX
MOV RCX,R15
CALL 0x0018ffca
MOV RDI,RBX
MOV RSI,R12
XOR EDX,EDX
MOV RCX,R15
CALL 0x0018fec1
MOV RDI,R12
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x0010a710
|
void ggml_backend_tensor_copy(int *param_1,int *param_2)
{
long lVar1;
long lVar2;
long lVar3;
code *UNRECOVERED_JUMPTABLE;
size_t __size;
void *__ptr;
if (*param_1 == *param_2) {
lVar3 = 6;
do {
if (lVar3 == 10) {
if (param_1 == param_2) {
return;
}
lVar3 = *(long *)(param_2 + 2);
UNRECOVERED_JUMPTABLE = *(code **)(lVar3 + 0x28);
if (UNRECOVERED_JUMPTABLE == (code *)0x0) {
lVar3 = *(long *)(param_1 + 2);
UNRECOVERED_JUMPTABLE = *(code **)(lVar3 + 0x30);
if (UNRECOVERED_JUMPTABLE == (code *)0x0) {
__size = ggml_nbytes(param_1);
__ptr = malloc(__size);
ggml_backend_tensor_get(param_1,__ptr,0,__size);
ggml_backend_tensor_set(param_2,__ptr,0,__size);
free(__ptr);
return;
}
}
/* WARNING: Could not recover jumptable at 0x001901dd. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(lVar3,param_1,param_2);
return;
}
if (*(long *)(param_1 + lVar3 * 2 + -8) != *(long *)(param_2 + lVar3 * 2 + -8)) break;
lVar1 = lVar3 * 2;
lVar2 = lVar3 * 2;
lVar3 = lVar3 + 1;
} while (*(long *)(param_1 + lVar1) == *(long *)(param_2 + lVar2));
}
fflush(*(FILE **)PTR_stdout_001d5f48);
fprintf(*(FILE **)PTR_stderr_001d5fa8,"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c"
,0xe8,"ggml_are_same_layout(src, dst) && \"cannot copy tensors with different layouts\"");
ggml_print_backtrace();
/* WARNING: Subroutine does not return */
abort();
}
|
|
57,893
|
ggml_backend_tensor_alloc
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
|
void ggml_backend_tensor_alloc(ggml_backend_buffer_t buffer, struct ggml_tensor * tensor, void * addr) {
GGML_ASSERT(tensor->buffer == NULL);
GGML_ASSERT(tensor->data == NULL);
GGML_ASSERT(tensor->view_src == NULL);
GGML_ASSERT(addr >= ggml_backend_buffer_get_base(buffer));
GGML_ASSERT((char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <=
(char *)ggml_backend_buffer_get_base(buffer) + ggml_backend_buffer_get_size(buffer));
tensor->buffer = buffer;
tensor->data = addr;
ggml_backend_buffer_init_tensor(buffer, tensor);
}
|
O2
|
cpp
|
ggml_backend_tensor_alloc:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rsi)
jne 0x2dfe8
movq %rsi, %rbx
cmpq $0x0, 0xf8(%rsi)
jne 0x2e004
cmpq $0x0, 0xe8(%rbx)
jne 0x2e020
movq %rdx, %r15
movq %rdi, %r14
callq 0x1eeb0
cmpq %r15, %rax
ja 0x2e03c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1dab0
movq %rax, %r12
addq %r15, %r12
movq %r14, %rdi
callq 0x1eeb0
addq 0x58(%r14), %rax
cmpq %rax, %r12
ja 0x2e058
movq %r14, 0x8(%rbx)
movq %r15, 0xf8(%rbx)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x2dfdc
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x23795(%rip), %rdi # 0x51784
leaq 0x205df(%rip), %rdx # 0x4e5d5
leaq 0x23d20(%rip), %rcx # 0x51d1d
movl $0x678, %esi # imm = 0x678
jmp 0x2e072
leaq 0x23779(%rip), %rdi # 0x51784
leaq 0x205c3(%rip), %rdx # 0x4e5d5
leaq 0x23d74(%rip), %rcx # 0x51d8d
movl $0x679, %esi # imm = 0x679
jmp 0x2e072
leaq 0x2375d(%rip), %rdi # 0x51784
leaq 0x205a7(%rip), %rdx # 0x4e5d5
leaq 0x23d6d(%rip), %rcx # 0x51da2
movl $0x67a, %esi # imm = 0x67A
jmp 0x2e072
leaq 0x23741(%rip), %rdi # 0x51784
leaq 0x2058b(%rip), %rdx # 0x4e5d5
leaq 0x23d6a(%rip), %rcx # 0x51dbb
movl $0x67b, %esi # imm = 0x67B
jmp 0x2e072
leaq 0x23725(%rip), %rdi # 0x51784
leaq 0x2056f(%rip), %rdx # 0x4e5d5
leaq 0x23d7b(%rip), %rcx # 0x51de8
movl $0x67d, %esi # imm = 0x67D
xorl %eax, %eax
callq 0x1f9b0
|
ggml_backend_tensor_alloc:
push r15
push r14
push r12
push rbx
push rax
cmp qword ptr [rsi+8], 0
jnz loc_2DFE8
mov rbx, rsi
cmp qword ptr [rsi+0F8h], 0
jnz loc_2E004
cmp qword ptr [rbx+0E8h], 0
jnz loc_2E020
mov r15, rdx
mov r14, rdi
call _ggml_backend_buffer_get_base
cmp rax, r15
ja loc_2E03C
mov rdi, r14
mov rsi, rbx
call _ggml_backend_buffer_get_alloc_size
mov r12, rax
add r12, r15
mov rdi, r14
call _ggml_backend_buffer_get_base
add rax, [r14+58h]
cmp r12, rax
ja loc_2E058
mov [rbx+8], r14
mov [rbx+0F8h], r15
mov rax, [r14+10h]
test rax, rax
jz short loc_2DFDC
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rax
loc_2DFDC:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_2DFE8:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorBufferNu; "tensor->buffer == NULL"
mov esi, 678h
jmp short loc_2E072
loc_2E004:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorDataNull_0; "tensor->data == NULL"
mov esi, 679h
jmp short loc_2E072
loc_2E020:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorViewSrcN_0; "tensor->view_src == NULL"
mov esi, 67Ah
jmp short loc_2E072
loc_2E03C:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAddrGgmlBacken; "addr >= ggml_backend_buffer_get_base(bu"...
mov esi, 67Bh
jmp short loc_2E072
loc_2E058:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCharAddrGgmlBa; "(char *)addr + ggml_backend_buffer_get_"...
mov esi, 67Dh
loc_2E072:
xor eax, eax
call _ggml_abort
|
long long ( * ggml_backend_tensor_alloc(
long long a1,
_QWORD *a2,
unsigned long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14))(long long, _QWORD *)
{
char v14; // al
unsigned long long v16; // r12
long long ( *result)(long long, _QWORD *); // rax
const char *v18; // rcx
int v19; // esi
char v20; // [rsp-8h] [rbp-28h]
v20 = v14;
if ( a2[1] )
{
v18 = "tensor->buffer == NULL";
v19 = 1656;
goto LABEL_14;
}
if ( a2[31] )
{
v18 = "tensor->data == NULL";
v19 = 1657;
goto LABEL_14;
}
if ( a2[29] )
{
v18 = "tensor->view_src == NULL";
v19 = 1658;
goto LABEL_14;
}
if ( ggml_backend_buffer_get_base(a1) > a3 )
{
v18 = "addr >= ggml_backend_buffer_get_base(buffer)";
v19 = 1659;
goto LABEL_14;
}
v16 = a3 + ggml_backend_buffer_get_alloc_size(a1);
if ( v16 > *(_QWORD *)(a1 + 88) + ggml_backend_buffer_get_base(a1) )
{
v18 = "(char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <= (char *)ggml_backend_buffer_get_base(buff"
"er) + ggml_backend_buffer_get_size(buffer)";
v19 = 1661;
LABEL_14:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
v19,
(long long)"GGML_ASSERT(%s) failed",
(long long)v18,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v20);
}
a2[1] = a1;
a2[31] = a3;
result = *(long long ( **)(long long, _QWORD *))(a1 + 16);
if ( result )
return (long long ( *)(long long, _QWORD *))result(a1, a2);
return result;
}
|
ggml_backend_tensor_alloc:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP qword ptr [RSI + 0x8],0x0
JNZ 0x0012dfe8
MOV RBX,RSI
CMP qword ptr [RSI + 0xf8],0x0
JNZ 0x0012e004
CMP qword ptr [RBX + 0xe8],0x0
JNZ 0x0012e020
MOV R15,RDX
MOV R14,RDI
CALL 0x0011eeb0
CMP RAX,R15
JA 0x0012e03c
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011dab0
MOV R12,RAX
ADD R12,R15
MOV RDI,R14
CALL 0x0011eeb0
ADD RAX,qword ptr [R14 + 0x58]
CMP R12,RAX
JA 0x0012e058
MOV qword ptr [RBX + 0x8],R14
MOV qword ptr [RBX + 0xf8],R15
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x0012dfdc
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RAX
LAB_0012dfdc:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0012dfe8:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151d1d]
MOV ESI,0x678
JMP 0x0012e072
LAB_0012e004:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151d8d]
MOV ESI,0x679
JMP 0x0012e072
LAB_0012e020:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151da2]
MOV ESI,0x67a
JMP 0x0012e072
LAB_0012e03c:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151dbb]
MOV ESI,0x67b
JMP 0x0012e072
LAB_0012e058:
LEA RDI,[0x151784]
LEA RDX,[0x14e5d5]
LEA RCX,[0x151de8]
MOV ESI,0x67d
LAB_0012e072:
XOR EAX,EAX
CALL 0x0011f9b0
|
void ggml_backend_tensor_alloc(long param_1,long param_2,ulong param_3)
{
ulong uVar1;
long lVar2;
long lVar3;
char *pcVar4;
int8 uVar5;
if (*(long *)(param_2 + 8) == 0) {
if (*(long *)(param_2 + 0xf8) == 0) {
if (*(long *)(param_2 + 0xe8) == 0) {
uVar1 = ggml_backend_buffer_get_base();
if (param_3 < uVar1) {
pcVar4 = "addr >= ggml_backend_buffer_get_base(buffer)";
uVar5 = 0x67b;
}
else {
lVar2 = ggml_backend_buffer_get_alloc_size(param_1,param_2);
lVar3 = ggml_backend_buffer_get_base(param_1);
if (lVar2 + param_3 <= (ulong)(lVar3 + *(long *)(param_1 + 0x58))) {
*(long *)(param_2 + 8) = param_1;
*(ulong *)(param_2 + 0xf8) = param_3;
if (*(code **)(param_1 + 0x10) != (code *)0x0) {
/* WARNING: Could not recover jumptable at 0x0012dfda. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))(param_1,param_2);
return;
}
return;
}
pcVar4 =
"(char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <= (char *)ggml_backend_buffer_get_base(buffer) + ggml_backend_buffer_get_size(buffer)"
;
uVar5 = 0x67d;
}
}
else {
pcVar4 = "tensor->view_src == NULL";
uVar5 = 0x67a;
}
}
else {
pcVar4 = "tensor->data == NULL";
uVar5 = 0x679;
}
}
else {
pcVar4 = "tensor->buffer == NULL";
uVar5 = 0x678;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,uVar5,"GGML_ASSERT(%s) failed",pcVar4);
}
|
|
57,894
|
ggml_backend_tensor_alloc
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
|
void ggml_backend_tensor_alloc(ggml_backend_buffer_t buffer, struct ggml_tensor * tensor, void * addr) {
GGML_ASSERT(tensor->buffer == NULL);
GGML_ASSERT(tensor->data == NULL);
GGML_ASSERT(tensor->view_src == NULL);
GGML_ASSERT(addr >= ggml_backend_buffer_get_base(buffer));
GGML_ASSERT((char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <=
(char *)ggml_backend_buffer_get_base(buffer) + ggml_backend_buffer_get_size(buffer));
tensor->buffer = buffer;
tensor->data = addr;
ggml_backend_buffer_init_tensor(buffer, tensor);
}
|
O3
|
cpp
|
ggml_backend_tensor_alloc:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rsi)
jne 0x288cd
movq %rsi, %rbx
cmpq $0x0, 0xf8(%rsi)
jne 0x288e9
cmpq $0x0, 0xe8(%rbx)
jne 0x28905
movq %rdx, %r15
movq %rdi, %r14
callq 0x17540
cmpq %r15, %rax
ja 0x28921
movq 0x48(%r14), %rdi
movq %rbx, %rsi
callq 0x16680
movq %rax, %r12
addq %r15, %r12
movq %r14, %rdi
callq 0x17540
addq 0x58(%r14), %rax
cmpq %rax, %r12
ja 0x2893d
movq %r14, 0x8(%rbx)
movq %r15, 0xf8(%rbx)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x288c1
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x26f40(%rip), %rdi # 0x4f814
leaq 0x23d8a(%rip), %rdx # 0x4c665
leaq 0x274cb(%rip), %rcx # 0x4fdad
movl $0x678, %esi # imm = 0x678
jmp 0x28957
leaq 0x26f24(%rip), %rdi # 0x4f814
leaq 0x23d6e(%rip), %rdx # 0x4c665
leaq 0x2751f(%rip), %rcx # 0x4fe1d
movl $0x679, %esi # imm = 0x679
jmp 0x28957
leaq 0x26f08(%rip), %rdi # 0x4f814
leaq 0x23d52(%rip), %rdx # 0x4c665
leaq 0x27518(%rip), %rcx # 0x4fe32
movl $0x67a, %esi # imm = 0x67A
jmp 0x28957
leaq 0x26eec(%rip), %rdi # 0x4f814
leaq 0x23d36(%rip), %rdx # 0x4c665
leaq 0x27515(%rip), %rcx # 0x4fe4b
movl $0x67b, %esi # imm = 0x67B
jmp 0x28957
leaq 0x26ed0(%rip), %rdi # 0x4f814
leaq 0x23d1a(%rip), %rdx # 0x4c665
leaq 0x27526(%rip), %rcx # 0x4fe78
movl $0x67d, %esi # imm = 0x67D
xorl %eax, %eax
callq 0x17cd0
|
ggml_backend_tensor_alloc:
push r15
push r14
push r12
push rbx
push rax
cmp qword ptr [rsi+8], 0
jnz loc_288CD
mov rbx, rsi
cmp qword ptr [rsi+0F8h], 0
jnz loc_288E9
cmp qword ptr [rbx+0E8h], 0
jnz loc_28905
mov r15, rdx
mov r14, rdi
call _ggml_backend_buffer_get_base
cmp rax, r15
ja loc_28921
mov rdi, [r14+48h]
mov rsi, rbx
call _ggml_backend_buft_get_alloc_size
mov r12, rax
add r12, r15
mov rdi, r14
call _ggml_backend_buffer_get_base
add rax, [r14+58h]
cmp r12, rax
ja loc_2893D
mov [rbx+8], r14
mov [rbx+0F8h], r15
mov rax, [r14+10h]
test rax, rax
jz short loc_288C1
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rax
loc_288C1:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_288CD:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorBufferNu; "tensor->buffer == NULL"
mov esi, 678h
jmp short loc_28957
loc_288E9:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorDataNull_0; "tensor->data == NULL"
mov esi, 679h
jmp short loc_28957
loc_28905:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorViewSrcN_0; "tensor->view_src == NULL"
mov esi, 67Ah
jmp short loc_28957
loc_28921:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAddrGgmlBacken; "addr >= ggml_backend_buffer_get_base(bu"...
mov esi, 67Bh
jmp short loc_28957
loc_2893D:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCharAddrGgmlBa; "(char *)addr + ggml_backend_buffer_get_"...
mov esi, 67Dh
loc_28957:
xor eax, eax
call _ggml_abort
|
long long ( * ggml_backend_tensor_alloc(
_QWORD *a1,
_QWORD *a2,
unsigned long long a3,
long long a4,
int a5,
int a6))(_QWORD *, _QWORD *)
{
unsigned long long v7; // r12
long long ( *result)(_QWORD *, _QWORD *); // rax
const char *v9; // rcx
int v10; // esi
if ( a2[1] )
{
v9 = "tensor->buffer == NULL";
v10 = 1656;
goto LABEL_14;
}
if ( a2[31] )
{
v9 = "tensor->data == NULL";
v10 = 1657;
goto LABEL_14;
}
if ( a2[29] )
{
v9 = "tensor->view_src == NULL";
v10 = 1658;
goto LABEL_14;
}
if ( ggml_backend_buffer_get_base(a1) > a3 )
{
v9 = "addr >= ggml_backend_buffer_get_base(buffer)";
v10 = 1659;
goto LABEL_14;
}
v7 = a3 + ggml_backend_buft_get_alloc_size(a1[9], a2);
if ( v7 > a1[11] + ggml_backend_buffer_get_base(a1) )
{
v9 = "(char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <= (char *)ggml_backend_buffer_get_base(buffe"
"r) + ggml_backend_buffer_get_size(buffer)";
v10 = 1661;
LABEL_14:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp",
v10,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v9,
a5,
a6);
}
a2[1] = a1;
a2[31] = a3;
result = (long long ( *)(_QWORD *, _QWORD *))a1[2];
if ( result )
return (long long ( *)(_QWORD *, _QWORD *))result(a1, a2);
return result;
}
|
ggml_backend_tensor_alloc:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP qword ptr [RSI + 0x8],0x0
JNZ 0x001288cd
MOV RBX,RSI
CMP qword ptr [RSI + 0xf8],0x0
JNZ 0x001288e9
CMP qword ptr [RBX + 0xe8],0x0
JNZ 0x00128905
MOV R15,RDX
MOV R14,RDI
CALL 0x00117540
CMP RAX,R15
JA 0x00128921
MOV RDI,qword ptr [R14 + 0x48]
MOV RSI,RBX
CALL 0x00116680
MOV R12,RAX
ADD R12,R15
MOV RDI,R14
CALL 0x00117540
ADD RAX,qword ptr [R14 + 0x58]
CMP R12,RAX
JA 0x0012893d
MOV qword ptr [RBX + 0x8],R14
MOV qword ptr [RBX + 0xf8],R15
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x001288c1
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RAX
LAB_001288c1:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001288cd:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fdad]
MOV ESI,0x678
JMP 0x00128957
LAB_001288e9:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fe1d]
MOV ESI,0x679
JMP 0x00128957
LAB_00128905:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fe32]
MOV ESI,0x67a
JMP 0x00128957
LAB_00128921:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fe4b]
MOV ESI,0x67b
JMP 0x00128957
LAB_0012893d:
LEA RDI,[0x14f814]
LEA RDX,[0x14c665]
LEA RCX,[0x14fe78]
MOV ESI,0x67d
LAB_00128957:
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_backend_tensor_alloc(long param_1,long param_2,ulong param_3)
{
ulong uVar1;
long lVar2;
long lVar3;
char *pcVar4;
int8 uVar5;
if (*(long *)(param_2 + 8) == 0) {
if (*(long *)(param_2 + 0xf8) == 0) {
if (*(long *)(param_2 + 0xe8) == 0) {
uVar1 = ggml_backend_buffer_get_base();
if (param_3 < uVar1) {
pcVar4 = "addr >= ggml_backend_buffer_get_base(buffer)";
uVar5 = 0x67b;
}
else {
lVar2 = ggml_backend_buft_get_alloc_size(*(int8 *)(param_1 + 0x48),param_2);
lVar3 = ggml_backend_buffer_get_base(param_1);
if (lVar2 + param_3 <= (ulong)(lVar3 + *(long *)(param_1 + 0x58))) {
*(long *)(param_2 + 8) = param_1;
*(ulong *)(param_2 + 0xf8) = param_3;
if (*(code **)(param_1 + 0x10) != (code *)0x0) {
/* WARNING: Could not recover jumptable at 0x001288bf. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))(param_1,param_2);
return;
}
return;
}
pcVar4 =
"(char *)addr + ggml_backend_buffer_get_alloc_size(buffer, tensor) <= (char *)ggml_backend_buffer_get_base(buffer) + ggml_backend_buffer_get_size(buffer)"
;
uVar5 = 0x67d;
}
}
else {
pcVar4 = "tensor->view_src == NULL";
uVar5 = 0x67a;
}
}
else {
pcVar4 = "tensor->data == NULL";
uVar5 = 0x679;
}
}
else {
pcVar4 = "tensor->buffer == NULL";
uVar5 = 0x678;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp"
,uVar5,"GGML_ASSERT(%s) failed",pcVar4);
}
|
|
57,895
|
ok
|
eloqsql/libmariadb/unittest/mytap/tap.c
|
void
ok(int const pass, char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, fmt, ap);
va_end(ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
}
|
O3
|
c
|
ok:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
leaq -0xd0(%rbp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x17579
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %r10, -0x10(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x20(%rbp)
testl %edi, %edi
jne 0x175a6
cmpb $0x0, 0x36af2(%rip) # 0x4e090
jne 0x175a6
incl 0x36ae6(%rip) # 0x4e08c
leaq -0x20(%rbp), %rdx
callq 0x17609
cmpb $0x0, 0x36ada(%rip) # 0x4e090
je 0x175e3
movq 0x349f1(%rip), %rax # 0x4bfb0
movq (%rax), %rdi
leaq 0x21960(%rip), %rdx # 0x38f29
leaq 0x218f6(%rip), %rcx # 0x38ec6
leaq 0x36ab9(%rip), %r8 # 0x4e090
movl $0x1, %esi
xorl %eax, %eax
callq 0x13740
movq 0x349c6(%rip), %rax # 0x4bfb0
movq (%rax), %rdi
leaq 0x2007e(%rip), %rdx # 0x37672
movl $0x1, %esi
xorl %eax, %eax
callq 0x13740
addq $0xd0, %rsp
popq %rbp
retq
|
ok:
push rbp
mov rbp, rsp
sub rsp, 0D0h
lea r10, [rbp+var_D0]
mov [r10+10h], rdx
mov [r10+18h], rcx
mov [r10+20h], r8
mov [r10+28h], r9
test al, al
jz short loc_17579
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_17579:
mov [rbp+var_10], r10
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
mov rax, 3000000010h
mov [rbp+var_20], rax
test edi, edi
jnz short loc_175A6
cmp cs:byte_4E090, 0
jnz short loc_175A6
inc cs:dword_4E08C
loc_175A6:
lea rdx, [rbp+var_20]
call vemit_tap
cmp cs:byte_4E090, 0
jz short loc_175E3
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rdx, aSS_1; " # %s %s"
lea rcx, aTodo; "todo"
lea r8, byte_4E090
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_175E3:
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rdx, aExecuteTestWit+28h; "\n"
mov esi, 1
xor eax, eax
call ___fprintf_chk
add rsp, 0D0h
pop rbp
retn
|
long long ok(
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,
char a15)
{
char v16; // [rsp+0h] [rbp-D0h] BYREF
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v16;
v29[1] = &a15;
v29[0] = 0x3000000010LL;
if ( !(_DWORD)a1 && !byte_4E090 )
++dword_4E08C;
vemit_tap(a1, a2, v29);
if ( byte_4E090 )
__fprintf_chk(stdout, 1LL, " # %s %s", "todo", &byte_4E090);
return __fprintf_chk(stdout, 1LL, "\n");
}
|
ok:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
LEA R10,[RBP + -0xd0]
MOV qword ptr [R10 + 0x10],RDX
MOV qword ptr [R10 + 0x18],RCX
MOV qword ptr [R10 + 0x20],R8
MOV qword ptr [R10 + 0x28],R9
TEST AL,AL
JZ 0x00117579
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_00117579:
MOV qword ptr [RBP + -0x10],R10
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x20],RAX
TEST EDI,EDI
JNZ 0x001175a6
CMP byte ptr [0x0014e090],0x0
JNZ 0x001175a6
INC dword ptr [0x0014e08c]
LAB_001175a6:
LEA RDX,[RBP + -0x20]
CALL 0x00117609
CMP byte ptr [0x0014e090],0x0
JZ 0x001175e3
MOV RAX,qword ptr [0x0014bfb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x138f29]
LEA RCX,[0x138ec6]
LEA R8,[0x14e090]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113740
LAB_001175e3:
MOV RAX,qword ptr [0x0014bfb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x137672]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113740
ADD RSP,0xd0
POP RBP
RET
|
void ok(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int1 local_d8 [16];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
int1 *local_20;
int1 *local_18;
local_18 = local_d8;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_20 = &stack0x00000008;
local_28 = 0x3000000010;
if (((int)param_9 == 0) && (DAT_0014e090 == '\0')) {
DAT_0014e08c = DAT_0014e08c + 1;
}
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
vemit_tap(param_9,param_10,&local_28);
if (DAT_0014e090 != '\0') {
__fprintf_chk(*(int8 *)PTR_stdout_0014bfb0,1," # %s %s",&DAT_00138ec6,&DAT_0014e090);
}
__fprintf_chk(*(int8 *)PTR_stdout_0014bfb0,1,"\n");
return;
}
|
|
57,896
|
my_strnxfrm_win1250ch
|
eloqsql/strings/ctype-win1250ch.c
|
static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
}
|
O3
|
c
|
my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, -0x50(%rbp)
movl 0x10(%rbp), %eax
movl %eax, %edx
orl $0xf, %edx
testb $0xf, %al
cmovnel %eax, %edx
xorl %r10d, %r10d
testq %rbx, %rbx
je 0x53290
movslq %r9d, %rdi
movl $0x1, %eax
subq %r8, %rax
movq %rax, -0x60(%rbp)
leaq 0x28472d(%rip), %r14 # 0x2d7860
leaq 0x29a396(%rip), %r15 # 0x2ed4d0
xorl %eax, %eax
movq %r8, %r11
movq %rbx, -0x48(%rbp)
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %r11, %rsi
subq %r8, %rsi
cmpq %rdi, %rsi
jge 0x5316a
testl %r10d, %r10d
je 0x5322c
movl $0x9, %r12d
jmp 0x5318b
testl %r9d, %r9d
jle 0x53294
testl %r10d, %r10d
jne 0x53294
movl $0x1, %r10d
movl $0x9, %r12d
movq %r8, %r11
movq %r14, %rsi
movzbl (%r11), %ecx
movb (%rsi,%rcx), %sil
cmpb $-0x1, %sil
jne 0x5326c
movq %r12, -0x68(%rbp)
movq %r10, -0x58(%rbp)
movq %r11, %rdx
subq %r8, %rdx
movq -0x60(%rbp), %rcx
leaq (%rcx,%r11), %r13
xorl %r10d, %r10d
movq %r10, %rbx
shlq $0x4, %rbx
movq (%rbx,%r15), %rsi
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x531fc
cmpq %rdi, %rdx
jge 0x531fc
incq %rsi
movq %r13, %r14
movq %r11, %r12
cmpb (%r12), %r9b
jne 0x53204
incq %r12
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x531ff
leaq 0x1(%r14), %rcx
incq %rsi
cmpq %rdi, %r14
movq %rcx, %r14
jl 0x531da
jmp 0x531ff
movq %r11, %r12
testb %r9b, %r9b
je 0x53241
incq %r10
cmpq $0x50, %r10
jne 0x531b9
movb $-0x1, %sil
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x284636(%rip), %r14 # 0x2d7860
jmp 0x53271
xorl %r10d, %r10d
movl $0x8, %r12d
leaq 0x284524(%rip), %rsi # 0x2d7760
jmp 0x5318e
addq %r15, %rbx
movq -0x68(%rbp), %rcx
movb (%rbx,%rcx), %sil
decq %r12
movq %r12, %r11
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x2845f4(%rip), %r14 # 0x2d7860
testb %sil, %sil
je 0x53294
btl %r10d, %edx
jae 0x53282
movq -0x50(%rbp), %rcx
movb %sil, (%rcx,%rax)
incq %rax
incq %r11
cmpq %rbx, %rax
jb 0x5314e
jmp 0x532af
xorl %eax, %eax
jmp 0x532af
testb %dl, %dl
jns 0x532af
movq -0x50(%rbp), %rdi
addq %rax, %rdi
movq %rbx, %rdx
subq %rax, %rdx
xorl %esi, %esi
callq 0x24160
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov [rbp+var_50], rsi
mov eax, [rbp+arg_0]
mov edx, eax
or edx, 0Fh
test al, 0Fh
cmovnz edx, eax
xor r10d, r10d
test rbx, rbx
jz loc_53290
movsxd rdi, r9d
mov eax, 1
sub rax, r8
mov [rbp+var_60], rax
lea r14, _sort_order_win1250ch2
lea r15, doubles_0
xor eax, eax
mov r11, r8
mov [rbp+var_48], rbx
mov [rbp+var_40], r9
mov [rbp+var_38], r8
mov [rbp+var_2C], edx
loc_5314E:
mov rsi, r11
sub rsi, r8
cmp rsi, rdi
jge short loc_5316A
test r10d, r10d
jz loc_5322C
mov r12d, 9
jmp short loc_5318B
loc_5316A:
test r9d, r9d
jle loc_53294
test r10d, r10d
jnz loc_53294
mov r10d, 1
mov r12d, 9
mov r11, r8
loc_5318B:
mov rsi, r14
loc_5318E:
movzx ecx, byte ptr [r11]
mov sil, [rsi+rcx]
cmp sil, 0FFh
jnz loc_5326C
mov [rbp+var_68], r12
mov [rbp+var_58], r10
mov rdx, r11
sub rdx, r8
mov rcx, [rbp+var_60]
lea r13, [rcx+r11]
xor r10d, r10d
loc_531B9:
mov rbx, r10
shl rbx, 4
mov rsi, [rbx+r15]
mov r9b, [rsi]
test r9b, r9b
jz short loc_531FC
cmp rdx, rdi
jge short loc_531FC
inc rsi
mov r14, r13
mov r12, r11
loc_531DA:
cmp r9b, [r12]
jnz short loc_53204
inc r12
mov r9b, [rsi]
test r9b, r9b
jz short loc_531FF
lea rcx, [r14+1]
inc rsi
cmp r14, rdi
mov r14, rcx
jl short loc_531DA
jmp short loc_531FF
loc_531FC:
mov r12, r11
loc_531FF:
test r9b, r9b
jz short loc_53241
loc_53204:
inc r10
cmp r10, 50h ; 'P'
jnz short loc_531B9
mov sil, 0FFh
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
jmp short loc_53271
loc_5322C:
xor r10d, r10d
mov r12d, 8
lea rsi, _sort_order_win1250ch1
jmp loc_5318E
loc_53241:
add rbx, r15
mov rcx, [rbp+var_68]
mov sil, [rbx+rcx]
dec r12
mov r11, r12
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
loc_5326C:
test sil, sil
jz short loc_53294
loc_53271:
bt edx, r10d
jnb short loc_53282
mov rcx, [rbp+var_50]
mov [rcx+rax], sil
inc rax
loc_53282:
inc r11
cmp rax, rbx
jb loc_5314E
jmp short loc_532AF
loc_53290:
xor eax, eax
jmp short loc_532AF
loc_53294:
test dl, dl
jns short loc_532AF
mov rdi, [rbp+var_50]
add rdi, rax
mov rdx, rbx
sub rdx, rax
xor esi, esi
call _memset
mov rax, rbx
loc_532AF:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
int v8; // edx
long long v9; // r10
long long v10; // rdi
unsigned long long result; // rax
unsigned __int8 *v12; // r11
long long v13; // r12
_BYTE *v14; // rsi
char v15; // si
long long v16; // r10
char *v17; // rsi
char v18; // r9
char *v19; // rsi
unsigned __int8 *v20; // r14
_BYTE *v21; // r12
long long v23; // [rsp+8h] [rbp-68h]
long long v24; // [rsp+10h] [rbp-60h]
long long v25; // [rsp+18h] [rbp-58h]
unsigned long long v27; // [rsp+28h] [rbp-48h]
int v28; // [rsp+30h] [rbp-40h]
unsigned __int8 *v29; // [rsp+38h] [rbp-38h]
int v30; // [rsp+44h] [rbp-2Ch]
v8 = a7 | 0xF;
if ( (a7 & 0xF) != 0 )
v8 = a7;
v9 = 0LL;
if ( !a3 )
return 0LL;
v10 = a6;
v24 = 1LL - (_QWORD)a5;
result = 0LL;
v12 = a5;
v27 = a3;
v28 = a6;
v29 = a5;
v30 = v8;
while ( 2 )
{
if ( v12 - a5 >= v10 )
{
if ( a6 <= 0 || (_DWORD)v9 )
break;
v9 = 1LL;
v13 = 9LL;
v12 = a5;
}
else
{
if ( !(_DWORD)v9 )
{
v9 = 0LL;
v13 = 8LL;
v14 = &sort_order_win1250ch1;
goto LABEL_12;
}
v13 = 9LL;
}
v14 = &sort_order_win1250ch2;
LABEL_12:
v15 = v14[*v12];
if ( v15 != -1 )
goto LABEL_27;
v23 = v13;
v25 = v9;
v16 = 0LL;
while ( 1 )
{
v17 = (char *)*(&doubles_0 + 2 * v16);
v18 = *v17;
if ( !*v17 || v12 - a5 >= v10 )
break;
v19 = v17 + 1;
v20 = &v12[v24];
v21 = v12;
while ( v18 == *v21 )
{
++v21;
v18 = *v19;
if ( *v19 )
{
++v19;
if ( (long long)v20++ < v10 )
continue;
}
goto LABEL_22;
}
LABEL_23:
if ( ++v16 == 80 )
{
v15 = -1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
goto LABEL_28;
}
}
v21 = v12;
LABEL_22:
if ( v18 )
goto LABEL_23;
v15 = *((_BYTE *)&doubles_0 + 16 * v16 + v23);
v12 = v21 - 1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
LABEL_27:
if ( v15 )
{
LABEL_28:
if ( _bittest(&v8, v9) )
*(_BYTE *)(a2 + result++) = v15;
++v12;
if ( result >= a3 )
return result;
continue;
}
break;
}
if ( (v8 & 0x80u) != 0 )
{
memset(result + a2, 0LL, a3 - result);
return a3;
}
return result;
}
|
my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV qword ptr [RBP + -0x50],RSI
MOV EAX,dword ptr [RBP + 0x10]
MOV EDX,EAX
OR EDX,0xf
TEST AL,0xf
CMOVNZ EDX,EAX
XOR R10D,R10D
TEST RBX,RBX
JZ 0x00153290
MOVSXD RDI,R9D
MOV EAX,0x1
SUB RAX,R8
MOV qword ptr [RBP + -0x60],RAX
LEA R14,[0x3d7860]
LEA R15,[0x3ed4d0]
XOR EAX,EAX
MOV R11,R8
MOV qword ptr [RBP + -0x48],RBX
MOV qword ptr [RBP + -0x40],R9
MOV qword ptr [RBP + -0x38],R8
MOV dword ptr [RBP + -0x2c],EDX
LAB_0015314e:
MOV RSI,R11
SUB RSI,R8
CMP RSI,RDI
JGE 0x0015316a
TEST R10D,R10D
JZ 0x0015322c
MOV R12D,0x9
JMP 0x0015318b
LAB_0015316a:
TEST R9D,R9D
JLE 0x00153294
TEST R10D,R10D
JNZ 0x00153294
MOV R10D,0x1
MOV R12D,0x9
MOV R11,R8
LAB_0015318b:
MOV RSI,R14
LAB_0015318e:
MOVZX ECX,byte ptr [R11]
MOV SIL,byte ptr [RSI + RCX*0x1]
CMP SIL,0xff
JNZ 0x0015326c
MOV qword ptr [RBP + -0x68],R12
MOV qword ptr [RBP + -0x58],R10
MOV RDX,R11
SUB RDX,R8
MOV RCX,qword ptr [RBP + -0x60]
LEA R13,[RCX + R11*0x1]
XOR R10D,R10D
LAB_001531b9:
MOV RBX,R10
SHL RBX,0x4
MOV RSI,qword ptr [RBX + R15*0x1]
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001531fc
CMP RDX,RDI
JGE 0x001531fc
INC RSI
MOV R14,R13
MOV R12,R11
LAB_001531da:
CMP R9B,byte ptr [R12]
JNZ 0x00153204
INC R12
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001531ff
LEA RCX,[R14 + 0x1]
INC RSI
CMP R14,RDI
MOV R14,RCX
JL 0x001531da
JMP 0x001531ff
LAB_001531fc:
MOV R12,R11
LAB_001531ff:
TEST R9B,R9B
JZ 0x00153241
LAB_00153204:
INC R10
CMP R10,0x50
JNZ 0x001531b9
MOV SIL,0xff
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x3d7860]
JMP 0x00153271
LAB_0015322c:
XOR R10D,R10D
MOV R12D,0x8
LEA RSI,[0x3d7760]
JMP 0x0015318e
LAB_00153241:
ADD RBX,R15
MOV RCX,qword ptr [RBP + -0x68]
MOV SIL,byte ptr [RBX + RCX*0x1]
DEC R12
MOV R11,R12
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x3d7860]
LAB_0015326c:
TEST SIL,SIL
JZ 0x00153294
LAB_00153271:
BT EDX,R10D
JNC 0x00153282
MOV RCX,qword ptr [RBP + -0x50]
MOV byte ptr [RCX + RAX*0x1],SIL
INC RAX
LAB_00153282:
INC R11
CMP RAX,RBX
JC 0x0015314e
JMP 0x001532af
LAB_00153290:
XOR EAX,EAX
JMP 0x001532af
LAB_00153294:
TEST DL,DL
JNS 0x001532af
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,RAX
MOV RDX,RBX
SUB RDX,RAX
XOR ESI,ESI
CALL 0x00124160
MOV RAX,RBX
LAB_001532af:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
uint uVar1;
byte *pbVar2;
byte *pbVar3;
byte *pbVar4;
ulong uVar5;
char cVar6;
int1 *puVar7;
byte *pbVar8;
byte bVar9;
int iVar10;
long lVar11;
byte *pbVar12;
byte *pbVar13;
long lVar14;
uVar1 = param_7 | 0xf;
if ((param_7 & 0xf) != 0) {
uVar1 = param_7;
}
iVar10 = 0;
if (param_3 == 0) {
uVar5 = 0;
}
else {
uVar5 = 0;
pbVar12 = param_5;
do {
if ((long)pbVar12 - (long)param_5 < (long)param_6) {
if (iVar10 != 0) goto LAB_0015318b;
iVar10 = 0;
lVar14 = 8;
puVar7 = _sort_order_win1250ch1;
}
else {
if ((param_6 < 1) || (iVar10 != 0)) goto LAB_00153294;
iVar10 = 1;
pbVar12 = param_5;
LAB_0015318b:
lVar14 = 9;
puVar7 = _sort_order_win1250ch2;
}
cVar6 = puVar7[*pbVar12];
if (cVar6 == -1) {
lVar11 = 0;
do {
pbVar8 = (&doubles)[lVar11 * 2];
bVar9 = *pbVar8;
pbVar13 = pbVar12;
pbVar4 = pbVar12 + (1 - (long)param_5);
pbVar3 = pbVar12 + -(long)param_5;
if (bVar9 != 0) {
while (pbVar2 = pbVar4, (long)pbVar3 < (long)param_6) {
pbVar8 = pbVar8 + 1;
if (bVar9 != *pbVar13) goto LAB_00153204;
pbVar13 = pbVar13 + 1;
bVar9 = *pbVar8;
if (bVar9 == 0) break;
pbVar4 = pbVar2 + 1;
pbVar3 = pbVar2;
}
}
if (bVar9 == 0) {
cVar6 = *(char *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar12 = pbVar13 + -1;
goto LAB_0015326c;
}
LAB_00153204:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
cVar6 = -1;
}
else {
LAB_0015326c:
if (cVar6 == '\0') {
LAB_00153294:
if (-1 < (char)uVar1) {
return uVar5;
}
memset((void *)(param_2 + uVar5),0,param_3 - uVar5);
return param_3;
}
}
if ((uVar1 >> iVar10 & 1) != 0) {
*(char *)(param_2 + uVar5) = cVar6;
uVar5 = uVar5 + 1;
}
pbVar12 = pbVar12 + 1;
} while (uVar5 < param_3);
}
return uVar5;
}
|
|
57,897
|
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> const>::operator++()
|
monkey531[P]llama/common/json.hpp
|
iter_impl& operator++()
{
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
{
std::advance(m_it.object_iterator, 1);
break;
}
case value_t::array:
{
std::advance(m_it.array_iterator, 1);
break;
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
++m_it.primitive_iterator;
break;
}
}
return *this;
}
|
O2
|
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> const>::operator++():
movq (%rdi), %rax
testq %rax, %rax
je 0x49863
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x49854
cmpl $0x1, %eax
jne 0x4985b
addq $0x30, 0x8(%rdi)
jmp 0x4985f
addq $0x10, 0x10(%rdi)
jmp 0x4985f
incq 0x18(%rdi)
movq %rdi, %rax
retq
pushq %rax
leaq 0x44d9c(%rip), %rdi # 0x8e607
leaq 0x4354f(%rip), %rdx # 0x8cdc1
leaq 0x4751b(%rip), %rcx # 0x90d94
movl $0x33c0, %esi # imm = 0x33C0
xorl %eax, %eax
callq 0x20af0
|
_ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv:
mov rax, [rdi]
test rax, rax
jz short loc_49863
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_49854
cmp eax, 1
jnz short loc_4985B
add qword ptr [rdi+8], 30h ; '0'
jmp short loc_4985F
loc_49854:
add qword ptr [rdi+10h], 10h
jmp short loc_4985F
loc_4985B:
inc qword ptr [rdi+18h]
loc_4985F:
mov rax, rdi
retn
loc_49863:
push rax
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 33C0h
xor eax, eax
call _ggml_abort
|
long long nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(
unsigned __int8 **a1)
{
int v1; // eax
if ( *a1 )
{
v1 = **a1;
if ( v1 == 2 )
{
a1[2] += 16;
}
else if ( v1 == 1 )
{
a1[1] += 48;
}
else
{
++a1[3];
}
return (long long)a1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
13248LL,
"GGML_ASSERT(%s) failed",
"m_object != nullptr");
return std::make_shared<std::vector<minja::Value>>(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
13248LL);
}
}
|
operator++:
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00149863
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x00149854
CMP EAX,0x1
JNZ 0x0014985b
ADD qword ptr [RDI + 0x8],0x30
JMP 0x0014985f
LAB_00149854:
ADD qword ptr [RDI + 0x10],0x10
JMP 0x0014985f
LAB_0014985b:
INC qword ptr [RDI + 0x18]
LAB_0014985f:
MOV RAX,RDI
RET
LAB_00149863:
PUSH RAX
LEA RDI,[0x18e607]
LEA RDX,[0x18cdc1]
LEA RCX,[0x190d94]
MOV ESI,0x33c0
XOR EAX,EAX
CALL 0x00120af0
|
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const>::TEMPNAMEPLACEHOLDERVALUE() */
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*this)
{
char cVar1;
int8 in_R8;
int8 in_R9;
if (*(char **)this != (char *)0x0) {
cVar1 = **(char **)this;
if (cVar1 == '\x02') {
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10;
}
else if (cVar1 == '\x01') {
*(long *)(this + 8) = *(long *)(this + 8) + 0x30;
}
else {
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 1;
}
return this;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x33c0,
"GGML_ASSERT(%s) failed","m_object != nullptr",in_R8,in_R9,0);
}
|
|
57,898
|
translog_cursor_init
|
eloqsql/storage/maria/ma_loghandler.c
|
static void translog_cursor_init(struct st_buffer_cursor *cursor,
struct st_translog_buffer *buffer,
uint8 buffer_no)
{
DBUG_ENTER("translog_cursor_init");
cursor->ptr= buffer->buffer;
cursor->buffer= buffer;
cursor->buffer_no= buffer_no;
cursor->current_page_fill= 0;
cursor->chaser= (cursor != &log_descriptor.bc);
cursor->write_counter= 0;
cursor->previous_offset= 0;
cursor->protected= 0;
DBUG_VOID_RETURN;
}
|
O0
|
c
|
translog_cursor_init:
pushq %rbp
movq %rsp, %rbp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x28(%rax)
movb -0x11(%rbp), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x36(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x30(%rax)
leaq 0x3f42ec(%rip), %rax # 0x487750
addq $0x800c50, %rax # imm = 0x800C50
cmpq %rax, -0x8(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x37(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x32(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x34(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x38(%rax)
jmp 0x9349d
popq %rbp
retq
nop
|
translog_cursor_init:
push rbp
mov rbp, rsp
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+20h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+28h], rcx
mov cl, [rbp+var_11]
mov rax, [rbp+var_8]
mov [rax+36h], cl
mov rax, [rbp+var_8]
mov word ptr [rax+30h], 0
lea rax, log_descriptor
add rax, 800C50h
cmp [rbp+var_8], rax
setnz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_8]
mov [rax+37h], cl
mov rax, [rbp+var_8]
mov word ptr [rax+32h], 0
mov rax, [rbp+var_8]
mov word ptr [rax+34h], 0
mov rax, [rbp+var_8]
mov byte ptr [rax+38h], 0
jmp short $+2
loc_9349D:
pop rbp
retn
|
long long * translog_cursor_init(long long *a1, long long a2, char a3)
{
long long *result; // rax
a1[4] = a2;
a1[5] = a2;
*((_BYTE *)a1 + 54) = a3;
*((_WORD *)a1 + 24) = 0;
*((_BYTE *)a1 + 55) = a1 != &log_descriptor[1048970];
*((_WORD *)a1 + 25) = 0;
*((_WORD *)a1 + 26) = 0;
result = a1;
*((_BYTE *)a1 + 56) = 0;
return result;
}
|
translog_cursor_init:
PUSH RBP
MOV RBP,RSP
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x28],RCX
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x36],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x30],0x0
LEA RAX,[0x587750]
ADD RAX,0x800c50
CMP qword ptr [RBP + -0x8],RAX
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x37],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x32],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x34],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x38],0x0
JMP 0x0019349d
LAB_0019349d:
POP RBP
RET
|
void translog_cursor_init(int *param_1,int8 param_2,int1 param_3)
{
*(int8 *)(param_1 + 0x20) = param_2;
*(int8 *)(param_1 + 0x28) = param_2;
param_1[0x36] = param_3;
*(int2 *)(param_1 + 0x30) = 0;
param_1[0x37] = param_1 != &DAT_00d883a0;
*(int2 *)(param_1 + 0x32) = 0;
*(int2 *)(param_1 + 0x34) = 0;
param_1[0x38] = 0;
return;
}
|
|
57,899
|
ImageDrawCircleLines
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c
|
void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color)
{
int x = 0;
int y = radius;
int decesionParameter = 3 - 2*radius;
while (y >= x)
{
ImageDrawPixel(dst, centerX + x, centerY + y, color);
ImageDrawPixel(dst, centerX - x, centerY + y, color);
ImageDrawPixel(dst, centerX + x, centerY - y, color);
ImageDrawPixel(dst, centerX - x, centerY - y, color);
ImageDrawPixel(dst, centerX + y, centerY + x, color);
ImageDrawPixel(dst, centerX - y, centerY + x, color);
ImageDrawPixel(dst, centerX + y, centerY - x, color);
ImageDrawPixel(dst, centerX - y, centerY - x, color);
x++;
if (decesionParameter > 0)
{
y--;
decesionParameter = decesionParameter + 4*(x - y) + 10;
}
else decesionParameter = decesionParameter + 4*x + 6;
}
}
|
O2
|
c
|
ImageDrawCircleLines:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r8d, 0x18(%rsp)
movq %rdx, 0x38(%rsp)
movl %esi, %r14d
movq %rdi, 0x50(%rsp)
pushq $0x3
popq %rdx
subl %ecx, %edx
subl %ecx, %edx
leal -0x8(,%rcx,4), %eax
movl %eax, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq %r14, 0x28(%rsp)
movq 0x50(%rsp), %r12
movl 0x18(%rsp), %r13d
movq %rdx, 0x48(%rsp)
movq 0x38(%rsp), %rdx
leal (%rcx,%rdx), %eax
movl %eax, 0x24(%rsp)
movl %edx, %eax
subl %ecx, %eax
movl %eax, 0x20(%rsp)
leal (%rcx,%r14), %eax
movl %eax, 0x1c(%rsp)
movl %r14d, %eax
subl %ecx, %eax
movl %eax, 0x14(%rsp)
movq 0x8(%rsp), %rdx
leal 0x1(%rdx), %eax
movl %edx, %r15d
negl %r15d
shll $0x2, %edx
movl %edx, %edi
movq %rax, 0x8(%rsp)
movq %rcx, 0x30(%rsp)
movq 0x8(%rsp), %rax
decl %eax
cmpl %eax, %ecx
jl 0x859a9
movq %rdi, 0x40(%rsp)
movq 0x8(%rsp), %rax
leal (%r14,%rax), %ebp
decl %ebp
movq %r12, %rdi
movl %ebp, %esi
movl 0x24(%rsp), %ebx
movl %ebx, %edx
movl %r13d, %ecx
callq 0x84b48
addl %r15d, %r14d
movq %r12, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl %r13d, %ecx
callq 0x84b48
movq %r12, %rdi
movl %ebp, %esi
movl 0x20(%rsp), %ebx
movl %ebx, %edx
movl %r13d, %ecx
callq 0x84b48
movq %r12, %rdi
movl %r14d, %esi
movq 0x38(%rsp), %r14
movl %ebx, %edx
movl %r13d, %ecx
callq 0x84b48
movq 0x8(%rsp), %rax
leal (%r14,%rax), %ebp
decl %ebp
movq %r12, %rdi
movl 0x1c(%rsp), %ebx
movl %ebx, %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x84b48
movq %r12, %rdi
movl 0x14(%rsp), %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x84b48
leal (%r14,%r15), %ebp
movq %r12, %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x84b48
movq %r12, %rdi
movl 0x14(%rsp), %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x84b48
movq 0x48(%rsp), %rdx
testl %edx, %edx
jg 0x85981
movq 0x40(%rsp), %rdi
addl %edi, %edx
addl $0xa, %edx
movq %rdx, 0x48(%rsp)
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
decl %r15d
addl $0x4, %edi
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %r14
jmp 0x85888
movq 0x30(%rsp), %rcx
decl %ecx
movl 0x10(%rsp), %eax
movq 0x40(%rsp), %rsi
subl %eax, %esi
addl %esi, %edx
addl $0xa, %edx
addl $-0x4, %eax
movl %eax, 0x10(%rsp)
movq 0x28(%rsp), %r14
jmp 0x85841
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ImageDrawCircleLines:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rsp+88h+var_70], r8d
mov [rsp+88h+var_50], rdx
mov r14d, esi
mov [rsp+88h+var_38], rdi
push 3
pop rdx
sub edx, ecx
sub edx, ecx
lea eax, ds:0FFFFFFFFFFFFFFF8h[rcx*4]
mov [rsp+88h+var_78], eax
mov [rsp+88h+var_80], 0
mov [rsp+88h+var_60], r14
mov r12, [rsp+88h+var_38]
mov r13d, [rsp+88h+var_70]
loc_85841:
mov [rsp+88h+var_40], rdx
mov rdx, [rsp+88h+var_50]
lea eax, [rcx+rdx]
mov [rsp+88h+var_64], eax
mov eax, edx
sub eax, ecx
mov [rsp+88h+var_68], eax
lea eax, [rcx+r14]
mov [rsp+88h+var_6C], eax
mov eax, r14d
sub eax, ecx
mov [rsp+88h+var_74], eax
mov rdx, [rsp+88h+var_80]
lea eax, [rdx+1]
mov r15d, edx
neg r15d
shl edx, 2
mov edi, edx
mov [rsp+88h+var_80], rax
mov [rsp+88h+var_58], rcx
loc_85888:
mov rax, [rsp+88h+var_80]
dec eax
cmp ecx, eax
jl loc_859A9
mov [rsp+88h+var_48], rdi
mov rax, [rsp+88h+var_80]
lea ebp, [r14+rax]
dec ebp
mov rdi, r12
mov esi, ebp
mov ebx, [rsp+88h+var_64]
mov edx, ebx
mov ecx, r13d
call ImageDrawPixel
add r14d, r15d
mov rdi, r12
mov esi, r14d
mov edx, ebx
mov ecx, r13d
call ImageDrawPixel
mov rdi, r12
mov esi, ebp
mov ebx, [rsp+88h+var_68]
mov edx, ebx
mov ecx, r13d
call ImageDrawPixel
mov rdi, r12
mov esi, r14d
mov r14, [rsp+88h+var_50]
mov edx, ebx
mov ecx, r13d
call ImageDrawPixel
mov rax, [rsp+88h+var_80]
lea ebp, [r14+rax]
dec ebp
mov rdi, r12
mov ebx, [rsp+88h+var_6C]
mov esi, ebx
mov edx, ebp
mov ecx, r13d
call ImageDrawPixel
mov rdi, r12
mov esi, [rsp+88h+var_74]
mov edx, ebp
mov ecx, r13d
call ImageDrawPixel
lea ebp, [r14+r15]
mov rdi, r12
mov esi, ebx
mov edx, ebp
mov ecx, r13d
call ImageDrawPixel
mov rdi, r12
mov esi, [rsp+88h+var_74]
mov edx, ebp
mov ecx, r13d
call ImageDrawPixel
mov rdx, [rsp+88h+var_40]
test edx, edx
jg short loc_85981
mov rdi, [rsp+88h+var_48]
add edx, edi
add edx, 0Ah
mov [rsp+88h+var_40], rdx
mov rax, [rsp+88h+var_80]
inc eax
mov [rsp+88h+var_80], rax
dec r15d
add edi, 4
mov rcx, [rsp+88h+var_58]
mov r14, [rsp+88h+var_60]
jmp loc_85888
loc_85981:
mov rcx, [rsp+88h+var_58]
dec ecx
mov eax, [rsp+88h+var_78]
mov rsi, [rsp+88h+var_48]
sub esi, eax
add edx, esi
add edx, 0Ah
add eax, 0FFFFFFFCh
mov [rsp+88h+var_78], eax
mov r14, [rsp+88h+var_60]
jmp loc_85841
loc_859A9:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ImageDrawCircleLines(long long *a1, int a2, int a3, int a4, unsigned int a5)
{
int v5; // r14d
int v6; // edx
int v9; // r15d
int v10; // edi
long long result; // rax
int v12; // ebp
int v13; // r14d
int v14; // ebp
int v15; // [rsp+8h] [rbp-80h]
int v16; // [rsp+10h] [rbp-78h]
int v17; // [rsp+14h] [rbp-74h]
int v18; // [rsp+1Ch] [rbp-6Ch]
int v19; // [rsp+20h] [rbp-68h]
int v20; // [rsp+24h] [rbp-64h]
int v21; // [rsp+30h] [rbp-58h]
int v23; // [rsp+48h] [rbp-40h]
v5 = a2;
v6 = 3 - a4 - a4;
v16 = 4 * a4 - 8;
v15 = 0;
LABEL_2:
v23 = v6;
v20 = a4 + a3;
v19 = a3 - a4;
v18 = a4 + v5;
v17 = v5 - a4;
v9 = -v15;
v10 = 4 * v15++;
v21 = a4;
while ( 1 )
{
result = (unsigned int)(v15 - 1);
if ( a4 < (int)result )
return result;
v12 = v5 + v15 - 1;
ImageDrawPixel(a1, v12, v20, a5);
v13 = v9 + v5;
ImageDrawPixel(a1, v13, v20, a5);
ImageDrawPixel(a1, v12, v19, a5);
ImageDrawPixel(a1, v13, v19, a5);
v14 = a3 + v15 - 1;
ImageDrawPixel(a1, v18, v14, a5);
ImageDrawPixel(a1, v17, v14, a5);
ImageDrawPixel(a1, v18, a3 + v9, a5);
ImageDrawPixel(a1, v17, a3 + v9, a5);
if ( v23 > 0 )
{
a4 = v21 - 1;
v6 = v10 - v16 + v23 + 10;
v16 -= 4;
v5 = a2;
goto LABEL_2;
}
v23 += v10 + 10;
++v15;
--v9;
v10 += 4;
a4 = v21;
v5 = a2;
}
}
|
ImageDrawCircleLines:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV dword ptr [RSP + 0x18],R8D
MOV qword ptr [RSP + 0x38],RDX
MOV R14D,ESI
MOV qword ptr [RSP + 0x50],RDI
PUSH 0x3
POP RDX
SUB EDX,ECX
SUB EDX,ECX
LEA EAX,[-0x8 + RCX*0x4]
MOV dword ptr [RSP + 0x10],EAX
MOV qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x28],R14
MOV R12,qword ptr [RSP + 0x50]
MOV R13D,dword ptr [RSP + 0x18]
LAB_00185841:
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,qword ptr [RSP + 0x38]
LEA EAX,[RCX + RDX*0x1]
MOV dword ptr [RSP + 0x24],EAX
MOV EAX,EDX
SUB EAX,ECX
MOV dword ptr [RSP + 0x20],EAX
LEA EAX,[RCX + R14*0x1]
MOV dword ptr [RSP + 0x1c],EAX
MOV EAX,R14D
SUB EAX,ECX
MOV dword ptr [RSP + 0x14],EAX
MOV RDX,qword ptr [RSP + 0x8]
LEA EAX,[RDX + 0x1]
MOV R15D,EDX
NEG R15D
SHL EDX,0x2
MOV EDI,EDX
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x30],RCX
LAB_00185888:
MOV RAX,qword ptr [RSP + 0x8]
DEC EAX
CMP ECX,EAX
JL 0x001859a9
MOV qword ptr [RSP + 0x40],RDI
MOV RAX,qword ptr [RSP + 0x8]
LEA EBP,[R14 + RAX*0x1]
DEC EBP
MOV RDI,R12
MOV ESI,EBP
MOV EBX,dword ptr [RSP + 0x24]
MOV EDX,EBX
MOV ECX,R13D
CALL 0x00184b48
ADD R14D,R15D
MOV RDI,R12
MOV ESI,R14D
MOV EDX,EBX
MOV ECX,R13D
CALL 0x00184b48
MOV RDI,R12
MOV ESI,EBP
MOV EBX,dword ptr [RSP + 0x20]
MOV EDX,EBX
MOV ECX,R13D
CALL 0x00184b48
MOV RDI,R12
MOV ESI,R14D
MOV R14,qword ptr [RSP + 0x38]
MOV EDX,EBX
MOV ECX,R13D
CALL 0x00184b48
MOV RAX,qword ptr [RSP + 0x8]
LEA EBP,[R14 + RAX*0x1]
DEC EBP
MOV RDI,R12
MOV EBX,dword ptr [RSP + 0x1c]
MOV ESI,EBX
MOV EDX,EBP
MOV ECX,R13D
CALL 0x00184b48
MOV RDI,R12
MOV ESI,dword ptr [RSP + 0x14]
MOV EDX,EBP
MOV ECX,R13D
CALL 0x00184b48
LEA EBP,[R14 + R15*0x1]
MOV RDI,R12
MOV ESI,EBX
MOV EDX,EBP
MOV ECX,R13D
CALL 0x00184b48
MOV RDI,R12
MOV ESI,dword ptr [RSP + 0x14]
MOV EDX,EBP
MOV ECX,R13D
CALL 0x00184b48
MOV RDX,qword ptr [RSP + 0x48]
TEST EDX,EDX
JG 0x00185981
MOV RDI,qword ptr [RSP + 0x40]
ADD EDX,EDI
ADD EDX,0xa
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x8]
INC EAX
MOV qword ptr [RSP + 0x8],RAX
DEC R15D
ADD EDI,0x4
MOV RCX,qword ptr [RSP + 0x30]
MOV R14,qword ptr [RSP + 0x28]
JMP 0x00185888
LAB_00185981:
MOV RCX,qword ptr [RSP + 0x30]
DEC ECX
MOV EAX,dword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x40]
SUB ESI,EAX
ADD EDX,ESI
ADD EDX,0xa
ADD EAX,-0x4
MOV dword ptr [RSP + 0x10],EAX
MOV R14,qword ptr [RSP + 0x28]
JMP 0x00185841
LAB_001859a9:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void ImageDrawCircleLines(int8 param_1,int param_2,int param_3,int param_4,int4 param_5)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int4 local_78;
iVar2 = param_4 * -2 + 3;
local_78 = param_4 * 4 + -8;
iVar1 = 0;
do {
iVar5 = -iVar1;
iVar3 = iVar1 << 2;
iVar4 = iVar1;
while( true ) {
iVar1 = iVar4 + 1;
if (param_4 < iVar4) {
return;
}
iVar4 = param_2 + iVar1 + -1;
ImageDrawPixel(param_1,iVar4,param_4 + param_3,param_5);
ImageDrawPixel(param_1,param_2 + iVar5,param_4 + param_3,param_5);
ImageDrawPixel(param_1,iVar4,param_3 - param_4,param_5);
ImageDrawPixel(param_1,param_2 + iVar5,param_3 - param_4,param_5);
iVar4 = param_3 + iVar1 + -1;
ImageDrawPixel(param_1,param_4 + param_2,iVar4,param_5);
ImageDrawPixel(param_1,param_2 - param_4,iVar4,param_5);
ImageDrawPixel(param_1,param_4 + param_2,param_3 + iVar5,param_5);
ImageDrawPixel(param_1,param_2 - param_4,param_3 + iVar5,param_5);
if (0 < iVar2) break;
iVar2 = iVar2 + iVar3 + 10;
iVar5 = iVar5 + -1;
iVar3 = iVar3 + 4;
iVar4 = iVar1;
}
param_4 = param_4 + -1;
iVar2 = iVar2 + (iVar3 - local_78) + 10;
local_78 = local_78 + -4;
} while( true );
}
|
Subsets and Splits
C++ Functions Using STL
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++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
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.