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
|
---|---|---|---|---|---|---|---|---|---|---|---|
5,400 | minja::FilterTemplateToken::~FilterTemplateToken() | monkey531[P]llama/common/minja.hpp | FilterTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && filter)
: TemplateToken(Type::Filter, location, pre, post), filter(std::move(filter)) {} | O1 | cpp | minja::FilterTemplateToken::~FilterTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x93f3b(%rip), %rax # 0x131e48
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x9df22
callq 0x71c94
leaq 0x933bf(%rip), %rax # 0x1312e8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x9df3f
popq %rbx
jmp 0x71c94
popq %rbx
retq
nop
| _ZN5minja19FilterTemplateTokenD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_9DF22
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9DF22:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_9DF3F
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9DF3F:
pop rbx
retn
| void minja::FilterTemplateToken::~FilterTemplateToken(minja::FilterTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::FilterTemplateToken + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~FilterTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x231e48]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x0019df22
CALL 0x00171c94
LAB_0019df22:
LEA RAX,[0x2312e8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0019df3f
POP RBX
JMP 0x00171c94
LAB_0019df3f:
POP RBX
RET
|
/* minja::FilterTemplateToken::~FilterTemplateToken() */
void __thiscall minja::FilterTemplateToken::~FilterTemplateToken(FilterTemplateToken *this)
{
*(int ***)this = &PTR__FilterTemplateToken_00231e58;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_002312f8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
return;
}
return;
}
|
|
5,401 | count_square | eloqsql/storage/myisam/rt_split.c | static double count_square(const double *a, int n_dim)
{
const double *end = a + n_dim * 2;
double square = 1.0;
do
{
square *= a[1] - a[0];
a += 2;
}while (a != end);
return square;
} | O0 | c | count_square:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movsd 0x7aede(%rip), %xmm0 # 0x150028
movsd %xmm0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x8(%rbp), %rax
subsd (%rax), %xmm0
mulsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x20(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0xd514f
movsd -0x20(%rbp), %xmm0
popq %rbp
retq
nopw (%rax,%rax)
| count_square_0:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl ecx, 1
movsxd rcx, ecx
shl rcx, 3
add rax, rcx
mov [rbp+var_18], rax
movsd xmm0, cs:qword_150028
movsd [rbp+var_20], xmm0
loc_D514F:
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+8]
mov rax, [rbp+var_8]
subsd xmm0, qword ptr [rax]
mulsd xmm0, [rbp+var_20]
movsd [rbp+var_20], xmm0
mov rax, [rbp+var_8]
add rax, 10h
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
cmp rax, [rbp+var_18]
jnz short loc_D514F
movsd xmm0, [rbp+var_20]
pop rbp
retn
| double count_square_0(double *a1, int a2)
{
double v3; // [rsp+0h] [rbp-20h]
double *v4; // [rsp+18h] [rbp-8h]
v4 = a1;
v3 = 1.0;
do
{
v3 = (v4[1] - *v4) * v3;
v4 += 2;
}
while ( v4 != &a1[2 * a2] );
return v3;
}
| count_square:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOVSD XMM0,qword ptr [0x00250028]
MOVSD qword ptr [RBP + -0x20],XMM0
LAB_001d514f:
MOV RAX,qword ptr [RBP + -0x8]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x8]
SUBSD XMM0,qword ptr [RAX]
MULSD XMM0,qword ptr [RBP + -0x20]
MOVSD qword ptr [RBP + -0x20],XMM0
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x10
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x001d514f
MOVSD XMM0,qword ptr [RBP + -0x20]
POP RBP
RET
|
double count_square(double *param_1,int param_2)
{
double local_28;
double *local_10;
local_28 = DAT_00250028;
local_10 = param_1;
do {
local_28 = (local_10[1] - *local_10) * local_28;
local_10 = local_10 + 2;
} while (local_10 != param_1 + (param_2 << 1));
return local_28;
}
|
|
5,402 | WaveFormat | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels)
{
ma_format formatIn = ((wave->sampleSize == 8)? ma_format_u8 : ((wave->sampleSize == 16)? ma_format_s16 : ma_format_f32));
ma_format formatOut = ((sampleSize == 8)? ma_format_u8 : ((sampleSize == 16)? ma_format_s16 : ma_format_f32));
ma_uint32 frameCountIn = wave->frameCount;
ma_uint32 frameCount = (ma_uint32)ma_convert_frames(NULL, 0, formatOut, channels, sampleRate, NULL, frameCountIn, formatIn, wave->channels, wave->sampleRate);
if (frameCount == 0)
{
TRACELOG(LOG_WARNING, "WAVE: Failed to get frame count for format conversion");
return;
}
void *data = RL_MALLOC(frameCount*channels*(sampleSize/8));
frameCount = (ma_uint32)ma_convert_frames(data, frameCount, formatOut, channels, sampleRate, wave->data, frameCountIn, formatIn, wave->channels, wave->sampleRate);
if (frameCount == 0)
{
TRACELOG(LOG_WARNING, "WAVE: Failed format conversion");
return;
}
wave->frameCount = frameCount;
wave->sampleSize = sampleSize;
wave->sampleRate = sampleRate;
wave->channels = channels;
RL_FREE(wave->data);
wave->data = data;
} | O2 | c | WaveFormat:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
xorl %edi, %edi
cmpl $0x10, %eax
setne %dil
cmpl $0x8, %eax
leal 0x2(%rdi,%rdi,2), %ebp
pushq $0x1
popq %rax
cmovel %eax, %ebp
movl %edx, %r14d
xorl %edx, %edx
cmpl $0x10, %r14d
setne %dl
cmpl $0x8, %r14d
leal 0x2(%rdx,%rdx,2), %r12d
cmovel %eax, %r12d
movl %esi, %r15d
movl (%rbx), %r11d
movl 0x4(%rbx), %eax
movl 0xc(%rbx), %r10d
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movl %ecx, 0x8(%rsp)
movl %r15d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq %rbp
movq %r11, 0x28(%rsp)
pushq %r11
callq 0x227f9
addq $0x20, %rsp
movq %rax, %r13
testl %r13d, %r13d
je 0x3baed
pushq $0x8
popq %rcx
movl %r14d, %eax
cltd
idivl %ecx
movl %r15d, 0xc(%rsp)
movl 0x8(%rsp), %r15d
movl %r15d, %edi
imull %r13d, %edi
imull %eax, %edi
callq 0x96e0
movl %r13d, %esi
movq %rax, %r13
movq 0x10(%rbx), %r9
movl 0x4(%rbx), %eax
movl 0xc(%rbx), %r10d
movq %r13, %rdi
movl %r12d, %edx
movl %r15d, %ecx
movl 0xc(%rsp), %r15d
movl %r15d, %r8d
pushq %rax
pushq %r10
pushq %rbp
pushq 0x28(%rsp)
callq 0x227f9
addq $0x20, %rsp
testl %eax, %eax
je 0x3baf6
movl %eax, (%rbx)
movl %r14d, 0x8(%rbx)
movl %r15d, 0x4(%rbx)
movl 0x8(%rsp), %eax
movl %eax, 0xc(%rbx)
movq 0x10(%rbx), %rdi
callq 0x9640
movq %r13, 0x10(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80741(%rip), %rsi # 0xbc235
jmp 0x3bafd
leaq 0x8076e(%rip), %rsi # 0xbc26b
pushq $0x4
popq %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa128b
| WaveFormat:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
mov eax, [rdi+8]
xor edi, edi
cmp eax, 10h
setnz dil
cmp eax, 8
lea ebp, [rdi+rdi*2+2]
push 1
pop rax
cmovz ebp, eax
mov r14d, edx
xor edx, edx
cmp r14d, 10h
setnz dl
cmp r14d, 8
lea r12d, [rdx+rdx*2+2]
cmovz r12d, eax
mov r15d, esi
mov r11d, [rbx]
mov eax, [rbx+4]
mov r10d, [rbx+0Ch]
xor edi, edi
xor esi, esi
mov edx, r12d
mov [rsp+48h+var_40], ecx
mov r8d, r15d
xor r9d, r9d
push rax
push r10
push rbp
mov [rsp+60h+var_38], r11
push r11
call ma_convert_frames
add rsp, 20h
mov r13, rax
test r13d, r13d
jz loc_3BAED
push 8
pop rcx
mov eax, r14d
cdq
idiv ecx
mov [rsp+48h+var_3C], r15d
mov r15d, [rsp+48h+var_40]
mov edi, r15d
imul edi, r13d
imul edi, eax
call _malloc
mov esi, r13d
mov r13, rax
mov r9, [rbx+10h]
mov eax, [rbx+4]
mov r10d, [rbx+0Ch]
mov rdi, r13
mov edx, r12d
mov ecx, r15d
mov r15d, [rsp+48h+var_3C]
mov r8d, r15d
push rax
push r10
push rbp
push [rsp+60h+var_38]
call ma_convert_frames
add rsp, 20h
test eax, eax
jz short loc_3BAF6
mov [rbx], eax
mov [rbx+8], r14d
mov [rbx+4], r15d
mov eax, [rsp+48h+var_40]
mov [rbx+0Ch], eax
mov rdi, [rbx+10h]
call _free
mov [rbx+10h], r13
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3BAED:
lea rsi, aWaveFailedToGe; "WAVE: Failed to get frame count for for"...
jmp short loc_3BAFD
loc_3BAF6:
lea rsi, aWaveFailedForm; "WAVE: Failed format conversion"
loc_3BAFD:
push 4
pop rdi
xor eax, eax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp TraceLog
| long long WaveFormat(unsigned int *a1, int a2, signed int a3, int a4)
{
unsigned int v4; // eax
int v5; // ebp
int v7; // r12d
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
unsigned int v13; // r13d
long long v14; // rsi
long long v15; // r13
unsigned int v16; // eax
long long result; // rax
const char *v18; // rsi
long long v20; // [rsp+10h] [rbp-38h]
v4 = a1[2];
v5 = 3 * (v4 != 16) + 2;
if ( v4 == 8 )
v5 = 1;
v7 = 3 * (a3 != 16) + 2;
if ( a3 == 8 )
v7 = 1;
v20 = *a1;
v13 = ma_convert_frames(0LL, 0LL, v7, a4, a2, 0LL, v20, v5, a1[3], a1[1]);
if ( v13 )
{
v14 = v13;
v15 = malloc(a3 / 8 * v13 * a4);
v16 = ma_convert_frames(v15, v14, v7, a4, a2, *((_QWORD *)a1 + 2), v20, v5, a1[3], a1[1]);
if ( v16 )
{
*a1 = v16;
a1[2] = a3;
a1[1] = a2;
a1[3] = a4;
result = free(*((_QWORD *)a1 + 2));
*((_QWORD *)a1 + 2) = v15;
return result;
}
v18 = "WAVE: Failed format conversion";
}
else
{
v18 = "WAVE: Failed to get frame count for format conversion";
}
return TraceLog(4, (_DWORD)v18, v9, v10, v11, v12);
}
| WaveFormat:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x8]
XOR EDI,EDI
CMP EAX,0x10
SETNZ DIL
CMP EAX,0x8
LEA EBP,[RDI + RDI*0x2 + 0x2]
PUSH 0x1
POP RAX
CMOVZ EBP,EAX
MOV R14D,EDX
XOR EDX,EDX
CMP R14D,0x10
SETNZ DL
CMP R14D,0x8
LEA R12D,[RDX + RDX*0x2 + 0x2]
CMOVZ R12D,EAX
MOV R15D,ESI
MOV R11D,dword ptr [RBX]
MOV EAX,dword ptr [RBX + 0x4]
MOV R10D,dword ptr [RBX + 0xc]
XOR EDI,EDI
XOR ESI,ESI
MOV EDX,R12D
MOV dword ptr [RSP + 0x8],ECX
MOV R8D,R15D
XOR R9D,R9D
PUSH RAX
PUSH R10
PUSH RBP
MOV qword ptr [RSP + 0x28],R11
PUSH R11
CALL 0x001227f9
ADD RSP,0x20
MOV R13,RAX
TEST R13D,R13D
JZ 0x0013baed
PUSH 0x8
POP RCX
MOV EAX,R14D
CDQ
IDIV ECX
MOV dword ptr [RSP + 0xc],R15D
MOV R15D,dword ptr [RSP + 0x8]
MOV EDI,R15D
IMUL EDI,R13D
IMUL EDI,EAX
CALL 0x001096e0
MOV ESI,R13D
MOV R13,RAX
MOV R9,qword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x4]
MOV R10D,dword ptr [RBX + 0xc]
MOV RDI,R13
MOV EDX,R12D
MOV ECX,R15D
MOV R15D,dword ptr [RSP + 0xc]
MOV R8D,R15D
PUSH RAX
PUSH R10
PUSH RBP
PUSH qword ptr [RSP + 0x28]
CALL 0x001227f9
ADD RSP,0x20
TEST EAX,EAX
JZ 0x0013baf6
MOV dword ptr [RBX],EAX
MOV dword ptr [RBX + 0x8],R14D
MOV dword ptr [RBX + 0x4],R15D
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RBX + 0xc],EAX
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x00109640
MOV qword ptr [RBX + 0x10],R13
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013baed:
LEA RSI,[0x1bc235]
JMP 0x0013bafd
LAB_0013baf6:
LEA RSI,[0x1bc26b]
LAB_0013bafd:
PUSH 0x4
POP RDI
XOR EAX,EAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001a128b
|
void WaveFormat(int *param_1,int param_2,int param_3,ulong param_4)
{
char cVar1;
char cVar2;
int iVar3;
int iVar4;
void *pvVar5;
char *pcVar6;
cVar1 = (param_1[2] != 0x10) * '\x03' + '\x02';
if (param_1[2] == 8) {
cVar1 = '\x01';
}
cVar2 = (param_3 != 0x10) * '\x03' + '\x02';
if (param_3 == 8) {
cVar2 = '\x01';
}
iVar4 = *param_1;
iVar3 = ma_convert_frames(0,0,cVar2,param_4,param_2,0,iVar4,cVar1,param_1[3],param_1[1]);
if (iVar3 == 0) {
pcVar6 = "WAVE: Failed to get frame count for format conversion";
}
else {
pvVar5 = malloc((ulong)(uint)((int)param_4 * iVar3 * (param_3 / 8)));
iVar4 = ma_convert_frames(pvVar5,iVar3,cVar2,param_4 & 0xffffffff,param_2,
*(int8 *)(param_1 + 4),iVar4,cVar1,param_1[3],param_1[1]);
if (iVar4 != 0) {
*param_1 = iVar4;
param_1[2] = param_3;
param_1[1] = param_2;
param_1[3] = (int)param_4;
free(*(void **)(param_1 + 4));
*(void **)(param_1 + 4) = pvVar5;
return;
}
pcVar6 = "WAVE: Failed format conversion";
}
TraceLog(4,pcVar6);
return;
}
|
|
5,403 | WaveFormat | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels)
{
ma_format formatIn = ((wave->sampleSize == 8)? ma_format_u8 : ((wave->sampleSize == 16)? ma_format_s16 : ma_format_f32));
ma_format formatOut = ((sampleSize == 8)? ma_format_u8 : ((sampleSize == 16)? ma_format_s16 : ma_format_f32));
ma_uint32 frameCountIn = wave->frameCount;
ma_uint32 frameCount = (ma_uint32)ma_convert_frames(NULL, 0, formatOut, channels, sampleRate, NULL, frameCountIn, formatIn, wave->channels, wave->sampleRate);
if (frameCount == 0)
{
TRACELOG(LOG_WARNING, "WAVE: Failed to get frame count for format conversion");
return;
}
void *data = RL_MALLOC(frameCount*channels*(sampleSize/8));
frameCount = (ma_uint32)ma_convert_frames(data, frameCount, formatOut, channels, sampleRate, wave->data, frameCountIn, formatIn, wave->channels, wave->sampleRate);
if (frameCount == 0)
{
TRACELOG(LOG_WARNING, "WAVE: Failed format conversion");
return;
}
wave->frameCount = frameCount;
wave->sampleSize = sampleSize;
wave->sampleRate = sampleRate;
wave->channels = channels;
RL_FREE(wave->data);
wave->data = data;
} | O3 | c | WaveFormat:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %rbx
movl 0x8(%rdi), %eax
xorl %edx, %edx
cmpl $0x10, %eax
setne %dl
cmpl $0x8, %eax
leal 0x2(%rdx,%rdx,2), %r13d
movl $0x1, %eax
cmovel %eax, %r13d
xorl %edx, %edx
cmpl $0x10, %r15d
setne %dl
cmpl $0x8, %r15d
leal 0x2(%rdx,%rdx,2), %ebp
cmovel %eax, %ebp
movl (%rdi), %r9d
movl 0x4(%rdi), %eax
movl 0xc(%rdi), %edx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r8
movups %xmm0, 0x58(%r8)
movups %xmm0, 0x48(%r8)
movups %xmm0, 0x38(%r8)
movups %xmm0, 0x28(%r8)
movups %xmm0, 0x18(%r8)
movq $0x0, 0x68(%r8)
movl %r13d, (%r8)
movl %ebp, 0x4(%r8)
movl %edx, 0x8(%r8)
movl %ecx, (%rsp)
movl %ecx, 0xc(%r8)
movl %eax, 0x10(%r8)
movl %esi, 0x14(%r8)
movq $0x4, 0x70(%r8)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
movq %r9, 0x8(%rsp)
movq %r9, %rcx
callq 0x2799b
movq %rax, %r14
testl %r14d, %r14d
je 0x43d59
leal 0x7(%r15), %edi
testl %r15d, %r15d
cmovnsl %r15d, %edi
sarl $0x3, %edi
movl %r12d, 0x4(%rsp)
movl (%rsp), %r12d
imull %r12d, %edi
imull %r14d, %edi
callq 0xa6f0
movl %r14d, %esi
movq %rax, %r14
movq 0x10(%rbx), %rdx
movl 0x4(%rbx), %eax
movl 0xc(%rbx), %ecx
leaq 0x10(%rsp), %r8
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%r8)
movups %xmm0, 0x48(%r8)
movups %xmm0, 0x38(%r8)
movups %xmm0, 0x28(%r8)
movups %xmm0, 0x18(%r8)
movq $0x0, 0x68(%r8)
movl %r13d, (%r8)
movl %ebp, 0x4(%r8)
movl %ecx, 0x8(%r8)
movl %r12d, 0xc(%r8)
movl 0x4(%rsp), %ebp
movl %eax, 0x10(%r8)
movl %ebp, 0x14(%r8)
movq $0x4, 0x70(%r8)
movq %r14, %rdi
movq 0x8(%rsp), %rcx
callq 0x2799b
testl %eax, %eax
je 0x43d62
movl %eax, (%rbx)
movl %r15d, 0x8(%rbx)
movl %ebp, 0x4(%rbx)
movl (%rsp), %eax
movl %eax, 0xc(%rbx)
movq 0x10(%rbx), %rdi
callq 0xa650
movq %r14, 0x10(%rbx)
jmp 0x43d75
leaq 0x926a5(%rip), %rsi # 0xd6405
jmp 0x43d69
leaq 0x926d2(%rip), %rsi # 0xd643b
movl $0x4, %edi
xorl %eax, %eax
callq 0xb9db7
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| WaveFormat:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r15d, edx
mov r12d, esi
mov rbx, rdi
mov eax, [rdi+8]
xor edx, edx
cmp eax, 10h
setnz dl
cmp eax, 8
lea r13d, [rdx+rdx*2+2]
mov eax, 1
cmovz r13d, eax
xor edx, edx
cmp r15d, 10h
setnz dl
cmp r15d, 8
lea ebp, [rdx+rdx*2+2]
cmovz ebp, eax
mov r9d, [rdi]
mov eax, [rdi+4]
mov edx, [rdi+0Ch]
xorps xmm0, xmm0
lea r8, [rsp+0B8h+var_A8]
movups xmmword ptr [r8+58h], xmm0
movups xmmword ptr [r8+48h], xmm0
movups xmmword ptr [r8+38h], xmm0
movups xmmword ptr [r8+28h], xmm0
movups xmmword ptr [r8+18h], xmm0
mov qword ptr [r8+68h], 0
mov [r8], r13d
mov [r8+4], ebp
mov [r8+8], edx
mov [rsp+0B8h+var_B8], ecx
mov [r8+0Ch], ecx
mov [r8+10h], eax
mov [r8+14h], esi
mov qword ptr [r8+70h], 4
xor edi, edi
xor esi, esi
xor edx, edx
mov [rsp+0B8h+var_B0], r9
mov rcx, r9
call ma_convert_frames_ex
mov r14, rax
test r14d, r14d
jz loc_43D59
lea edi, [r15+7]
test r15d, r15d
cmovns edi, r15d
sar edi, 3
mov [rsp+0B8h+var_B4], r12d
mov r12d, [rsp+0B8h+var_B8]
imul edi, r12d
imul edi, r14d
call _malloc
mov esi, r14d
mov r14, rax
mov rdx, [rbx+10h]
mov eax, [rbx+4]
mov ecx, [rbx+0Ch]
lea r8, [rsp+0B8h+var_A8]
xorps xmm0, xmm0
movups xmmword ptr [r8+58h], xmm0
movups xmmword ptr [r8+48h], xmm0
movups xmmword ptr [r8+38h], xmm0
movups xmmword ptr [r8+28h], xmm0
movups xmmword ptr [r8+18h], xmm0
mov qword ptr [r8+68h], 0
mov [r8], r13d
mov [r8+4], ebp
mov [r8+8], ecx
mov [r8+0Ch], r12d
mov ebp, [rsp+0B8h+var_B4]
mov [r8+10h], eax
mov [r8+14h], ebp
mov qword ptr [r8+70h], 4
mov rdi, r14
mov rcx, [rsp+0B8h+var_B0]
call ma_convert_frames_ex
test eax, eax
jz short loc_43D62
mov [rbx], eax
mov [rbx+8], r15d
mov [rbx+4], ebp
mov eax, [rsp+0B8h+var_B8]
mov [rbx+0Ch], eax
mov rdi, [rbx+10h]
call _free
mov [rbx+10h], r14
jmp short loc_43D75
loc_43D59:
lea rsi, aWaveFailedToGe; "WAVE: Failed to get frame count for for"...
jmp short loc_43D69
loc_43D62:
lea rsi, aWaveFailedForm; "WAVE: Failed format conversion"
loc_43D69:
mov edi, 4
xor eax, eax
call TraceLog
loc_43D75:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long WaveFormat(
unsigned int *a1,
unsigned int a2,
signed int a3,
unsigned int a4,
double a5,
double a6,
double a7,
double a8)
{
unsigned int v10; // eax
int v11; // r13d
int v12; // ebp
long long v13; // r9
unsigned int v14; // eax
unsigned int v15; // edx
unsigned int v16; // eax
int v17; // edx
int v18; // ecx
int v19; // r8d
int v20; // r9d
long long v21; // rsi
long long v22; // r14
long long v23; // rdx
unsigned int v24; // eax
unsigned int v25; // ecx
unsigned int v26; // eax
long long result; // rax
const char *v28; // rsi
long long v30; // [rsp+8h] [rbp-B0h]
int v31; // [rsp+10h] [rbp-A8h] BYREF
int v32; // [rsp+14h] [rbp-A4h]
unsigned int v33; // [rsp+18h] [rbp-A0h]
unsigned int v34; // [rsp+1Ch] [rbp-9Ch]
unsigned int v35; // [rsp+20h] [rbp-98h]
unsigned int v36; // [rsp+24h] [rbp-94h]
__int128 v37; // [rsp+28h] [rbp-90h]
__int128 v38; // [rsp+38h] [rbp-80h]
__int128 v39; // [rsp+48h] [rbp-70h]
__int128 v40; // [rsp+58h] [rbp-60h]
__int128 v41; // [rsp+68h] [rbp-50h]
long long v42; // [rsp+78h] [rbp-40h]
long long v43; // [rsp+80h] [rbp-38h]
v10 = a1[2];
v11 = 3 * (v10 != 16) + 2;
if ( v10 == 8 )
v11 = 1;
v12 = 3 * (a3 != 16) + 2;
if ( a3 == 8 )
v12 = 1;
v13 = *a1;
v14 = a1[1];
v15 = a1[3];
v41 = 0LL;
v40 = 0LL;
v39 = 0LL;
v38 = 0LL;
v37 = 0LL;
v42 = 0LL;
v31 = v11;
v32 = v12;
v33 = v15;
v34 = a4;
v35 = v14;
v36 = a2;
v43 = 4LL;
v30 = v13;
v16 = ma_convert_frames_ex(0LL, 0LL, 0LL, v13, (long long)&v31, 0.0, a6, a7, a8);
if ( v16 )
{
v21 = v16;
v22 = malloc(v16 * a4 * (a3 / 8));
v23 = *((_QWORD *)a1 + 2);
v24 = a1[1];
v25 = a1[3];
v41 = 0LL;
v40 = 0LL;
v39 = 0LL;
v38 = 0LL;
v37 = 0LL;
v42 = 0LL;
v31 = v11;
v32 = v12;
v33 = v25;
v34 = a4;
v35 = v24;
v36 = a2;
v43 = 4LL;
v26 = ma_convert_frames_ex(v22, v21, v23, v30, (long long)&v31, 0.0, a6, a7, a8);
if ( v26 )
{
*a1 = v26;
a1[2] = a3;
a1[1] = a2;
a1[3] = a4;
result = free(*((_QWORD *)a1 + 2));
*((_QWORD *)a1 + 2) = v22;
return result;
}
v28 = "WAVE: Failed format conversion";
}
else
{
v28 = "WAVE: Failed to get frame count for format conversion";
}
return TraceLog(4, (_DWORD)v28, v17, v18, v19, v20);
}
| WaveFormat:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R15D,EDX
MOV R12D,ESI
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x8]
XOR EDX,EDX
CMP EAX,0x10
SETNZ DL
CMP EAX,0x8
LEA R13D,[RDX + RDX*0x2 + 0x2]
MOV EAX,0x1
CMOVZ R13D,EAX
XOR EDX,EDX
CMP R15D,0x10
SETNZ DL
CMP R15D,0x8
LEA EBP,[RDX + RDX*0x2 + 0x2]
CMOVZ EBP,EAX
MOV R9D,dword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x4]
MOV EDX,dword ptr [RDI + 0xc]
XORPS XMM0,XMM0
LEA R8,[RSP + 0x10]
MOVUPS xmmword ptr [R8 + 0x58],XMM0
MOVUPS xmmword ptr [R8 + 0x48],XMM0
MOVUPS xmmword ptr [R8 + 0x38],XMM0
MOVUPS xmmword ptr [R8 + 0x28],XMM0
MOVUPS xmmword ptr [R8 + 0x18],XMM0
MOV qword ptr [R8 + 0x68],0x0
MOV dword ptr [R8],R13D
MOV dword ptr [R8 + 0x4],EBP
MOV dword ptr [R8 + 0x8],EDX
MOV dword ptr [RSP],ECX
MOV dword ptr [R8 + 0xc],ECX
MOV dword ptr [R8 + 0x10],EAX
MOV dword ptr [R8 + 0x14],ESI
MOV qword ptr [R8 + 0x70],0x4
XOR EDI,EDI
XOR ESI,ESI
XOR EDX,EDX
MOV qword ptr [RSP + 0x8],R9
MOV RCX,R9
CALL 0x0012799b
MOV R14,RAX
TEST R14D,R14D
JZ 0x00143d59
LEA EDI,[R15 + 0x7]
TEST R15D,R15D
CMOVNS EDI,R15D
SAR EDI,0x3
MOV dword ptr [RSP + 0x4],R12D
MOV R12D,dword ptr [RSP]
IMUL EDI,R12D
IMUL EDI,R14D
CALL 0x0010a6f0
MOV ESI,R14D
MOV R14,RAX
MOV RDX,qword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x4]
MOV ECX,dword ptr [RBX + 0xc]
LEA R8,[RSP + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R8 + 0x58],XMM0
MOVUPS xmmword ptr [R8 + 0x48],XMM0
MOVUPS xmmword ptr [R8 + 0x38],XMM0
MOVUPS xmmword ptr [R8 + 0x28],XMM0
MOVUPS xmmword ptr [R8 + 0x18],XMM0
MOV qword ptr [R8 + 0x68],0x0
MOV dword ptr [R8],R13D
MOV dword ptr [R8 + 0x4],EBP
MOV dword ptr [R8 + 0x8],ECX
MOV dword ptr [R8 + 0xc],R12D
MOV EBP,dword ptr [RSP + 0x4]
MOV dword ptr [R8 + 0x10],EAX
MOV dword ptr [R8 + 0x14],EBP
MOV qword ptr [R8 + 0x70],0x4
MOV RDI,R14
MOV RCX,qword ptr [RSP + 0x8]
CALL 0x0012799b
TEST EAX,EAX
JZ 0x00143d62
MOV dword ptr [RBX],EAX
MOV dword ptr [RBX + 0x8],R15D
MOV dword ptr [RBX + 0x4],EBP
MOV EAX,dword ptr [RSP]
MOV dword ptr [RBX + 0xc],EAX
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x0010a650
MOV qword ptr [RBX + 0x10],R14
JMP 0x00143d75
LAB_00143d59:
LEA RSI,[0x1d6405]
JMP 0x00143d69
LAB_00143d62:
LEA RSI,[0x1d643b]
LAB_00143d69:
MOV EDI,0x4
XOR EAX,EAX
CALL 0x001b9db7
LAB_00143d75:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void WaveFormat(int *param_1,int param_2,int param_3,int param_4)
{
int iVar1;
int iVar2;
void *pvVar3;
char *pcVar4;
int iVar5;
iVar2 = *param_1;
iVar1 = ma_convert_frames_ex(0,0,0,iVar2);
if (iVar1 == 0) {
pcVar4 = "WAVE: Failed to get frame count for format conversion";
}
else {
iVar5 = param_3 + 7;
if (-1 < param_3) {
iVar5 = param_3;
}
pvVar3 = malloc((ulong)(uint)((iVar5 >> 3) * param_4 * iVar1));
iVar2 = ma_convert_frames_ex(pvVar3,iVar1,*(int8 *)(param_1 + 4),iVar2);
if (iVar2 != 0) {
*param_1 = iVar2;
param_1[2] = param_3;
param_1[1] = param_2;
param_1[3] = param_4;
free(*(void **)(param_1 + 4));
*(void **)(param_1 + 4) = pvVar3;
return;
}
pcVar4 = "WAVE: Failed format conversion";
}
TraceLog(4,pcVar4);
return;
}
|
|
5,404 | minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!expr) throw std::runtime_error("UnaryOpExpr.expr is null");
auto e = expr->evaluate(context);
switch (op) {
case Op::Plus: return e;
case Op::Minus: return -e;
case Op::LogicalNot: return !e.to_bool();
case Op::Expansion:
case Op::ExpansionDict:
throw std::runtime_error("Expansion operator is only supported in function calls and collections");
}
throw std::runtime_error("Unknown unary operator");
} | O3 | cpp | minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x42208
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x42364
movl 0x30(%r14), %eax
cmpq $0x4, %rax
ja 0x42258
leaq 0x6b2ef(%rip), %rcx # 0xad3b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x48(%rsp), %r15
movups -0x30(%r15), %xmm0
xorl %r12d, %r12d
movq %r12, -0x28(%r15)
movups %xmm0, 0x10(%rbx)
movq %r12, -0x30(%r15)
movups -0x20(%r15), %xmm0
movq %r12, -0x18(%r15)
movups %xmm0, 0x20(%rbx)
movq %r12, -0x20(%r15)
movups -0x10(%r15), %xmm0
movq %r12, -0x8(%r15)
movups %xmm0, 0x30(%rbx)
movq %r12, -0x10(%r15)
leaq 0x40(%rbx), %r14
movups (%r15), %xmm0
movups %xmm0, 0x40(%rbx)
movq %r15, %rdi
xorl %esi, %esi
callq 0x426e2
movb $0x0, (%r15)
movq %r12, 0x8(%r15)
jmp 0x42164
leaq 0x8(%rsp), %rdi
callq 0x42562
xorb $0x1, %al
leaq 0x40(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movzbl %al, %esi
movq %r14, %rdi
callq 0x44794
movq %r14, %rdi
movl $0x1, %esi
callq 0x426e2
jmp 0x42180
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x424de
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r14, %rdi
callq 0x4f2d0
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x421a5
callq 0x348da
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x421b4
callq 0x348da
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x421c3
callq 0x348da
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x421f9
movq 0xa0dc4(%rip), %rax # 0xe2f98
cmpb $0x0, (%rax)
je 0x421e4
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x421ee
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x421f9
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1a390
movq %rax, %r14
leaq 0x6d22f(%rip), %rsi # 0xaf44b
movq %rax, %rdi
callq 0x1a290
movq 0xa0dc5(%rip), %rsi # 0xe2ff0
movq 0xa0d3e(%rip), %rdx # 0xe2f70
movq %r14, %rdi
callq 0x1acd0
movl $0x10, %edi
callq 0x1a390
movq %rax, %r14
leaq 0x6d216(%rip), %rsi # 0xaf464
movq %rax, %rdi
callq 0x1a290
jmp 0x42274
movl $0x10, %edi
callq 0x1a390
movq %rax, %r14
leaq 0x6d23f(%rip), %rsi # 0xaf4ab
movq %rax, %rdi
callq 0x1a290
movq 0xa0d75(%rip), %rsi # 0xe2ff0
movq 0xa0cee(%rip), %rdx # 0xe2f70
movq %r14, %rdi
callq 0x1acd0
jmp 0x4228e
jmp 0x422a8
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a530
jmp 0x422ab
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a530
jmp 0x422b5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x42656
movq %rbx, %rdi
callq 0x1ad30
nop
| _ZNK5minja11UnaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r14, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz loc_42208
mov rbx, rdi
lea rdi, [rsp+78h+var_70]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov eax, [r14+30h]
cmp rax, 4; switch 5 cases
ja def_420D0; jumptable 00000000000420D0 default case
lea rcx, jpt_420D0
movsxd rax, ds:(jpt_420D0 - 0AD3B8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_420D2:
xorps xmm0, xmm0; jumptable 00000000000420D0 case 0
movups xmmword ptr [rbx], xmm0
lea r15, [rsp+78h+var_30]
movups xmm0, xmmword ptr [r15-30h]
xor r12d, r12d
mov [r15-28h], r12
movups xmmword ptr [rbx+10h], xmm0
mov [r15-30h], r12
movups xmm0, xmmword ptr [r15-20h]
mov [r15-18h], r12
movups xmmword ptr [rbx+20h], xmm0
mov [r15-20h], r12
movups xmm0, xmmword ptr [r15-10h]
mov [r15-8], r12
movups xmmword ptr [rbx+30h], xmm0
mov [r15-10h], r12
lea r14, [rbx+40h]
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rbx+40h], xmm0
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 byte ptr [r15], 0
mov [r15+8], r12
jmp short loc_42164
loc_42133:
lea rdi, [rsp+78h+var_70]; jumptable 00000000000420D0 case 2
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
xor al, 1
lea r14, [rbx+40h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+40h], xmm0
movups xmmword ptr [rbx+30h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
movzx esi, al
mov rdi, r14
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)
loc_42164:
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_42180
loc_42173:
lea rsi, [rsp+78h+var_70]; jumptable 00000000000420D0 case 1
mov rdi, rbx
call _ZNK5minja5ValuengEv; minja::Value::operator-(void)
loc_42180:
lea r14, [rsp+78h+var_30]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_421A5
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_421A5:
mov rdi, [rsp+78h+var_48]
test rdi, rdi
jz short loc_421B4
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_421B4:
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz short loc_421C3
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_421C3:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_421F9
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_421E4
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_421EE
loc_421E4:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_421EE:
cmp eax, 1
jnz short loc_421F9
mov rax, [rdi]
call qword ptr [rax+18h]
loc_421F9:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
loc_42208:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnaryopexprExp; "UnaryOpExpr.expr is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_4223A:
mov edi, 10h; jumptable 00000000000420D0 cases 3,4
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpansionOpera; "Expansion operator is only supported in"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_42274
def_420D0:
mov edi, 10h; jumptable 00000000000420D0 default case
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnknownUnaryOp; "Unknown unary operator"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_42274:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_4228E
jmp short loc_422A8
loc_4228E:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_422AB
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_422B5
loc_422A8:
mov rbx, rax
loc_422AB:
lea rdi, [rsp+78h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_422B5:
mov rdi, rbx
call __Unwind_Resume
| do_evaluate:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x00142208
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x00142364
MOV EAX,dword ptr [R14 + 0x30]
CMP RAX,0x4
JA 0x00142258
LEA RCX,[0x1ad3b8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LEA R15,[RSP + 0x48]
MOVUPS XMM0,xmmword ptr [R15 + -0x30]
XOR R12D,R12D
MOV qword ptr [R15 + -0x28],R12
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [R15 + -0x30],R12
MOVUPS XMM0,xmmword ptr [R15 + -0x20]
MOV qword ptr [R15 + -0x18],R12
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOV qword ptr [R15 + -0x20],R12
MOVUPS XMM0,xmmword ptr [R15 + -0x10]
MOV qword ptr [R15 + -0x8],R12
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV qword ptr [R15 + -0x10],R12
LEA R14,[RBX + 0x40]
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R15
XOR ESI,ESI
CALL 0x001426e2
MOV byte ptr [R15],0x0
MOV qword ptr [R15 + 0x8],R12
JMP 0x00142164
caseD_2:
LEA RDI,[RSP + 0x8]
CALL 0x00142562
XOR AL,0x1
LEA R14,[RBX + 0x40]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVZX ESI,AL
MOV RDI,R14
CALL 0x00144794
LAB_00142164:
MOV RDI,R14
MOV ESI,0x1
CALL 0x001426e2
JMP 0x00142180
caseD_1:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001424de
LAB_00142180:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001426e2
MOV RDI,R14
CALL 0x0014f2d0
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x001421a5
CALL 0x001348da
LAB_001421a5:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x001421b4
CALL 0x001348da
LAB_001421b4:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x001421c3
CALL 0x001348da
LAB_001421c3:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001421f9
MOV RAX,qword ptr [0x001e2f98]
CMP byte ptr [RAX],0x0
JZ 0x001421e4
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001421ee
LAB_001421e4:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001421ee:
CMP EAX,0x1
JNZ 0x001421f9
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001421f9:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00142208:
MOV EDI,0x10
CALL 0x0011a390
MOV R14,RAX
LAB_00142215:
LEA RSI,[0x1af44b]
MOV RDI,RAX
CALL 0x0011a290
LAB_00142224:
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,R14
CALL 0x0011acd0
caseD_3:
MOV EDI,0x10
CALL 0x0011a390
MOV R14,RAX
LAB_00142247:
LEA RSI,[0x1af464]
MOV RDI,RAX
CALL 0x0011a290
LAB_00142256:
JMP 0x00142274
default:
MOV EDI,0x10
CALL 0x0011a390
MOV R14,RAX
LAB_00142265:
LEA RSI,[0x1af4ab]
MOV RDI,RAX
CALL 0x0011a290
LAB_00142274:
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,R14
CALL 0x0011acd0
|
/* minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
UnaryOpExpr * __thiscall minja::UnaryOpExpr::do_evaluate(UnaryOpExpr *this,shared_ptr *param_1)
{
int *piVar1;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var2;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var3;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var4;
byte bVar5;
int iVar6;
runtime_error *prVar7;
Expression local_70 [8];
long *local_68;
int8 local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_58;
int8 local_50;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_48;
int8 local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_38;
data local_30;
int7 uStack_2f;
int8 uStack_28;
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00142215 to 00142223 has its CatchHandler @ 0014229b */
std::runtime_error::runtime_error(prVar7,"UnaryOpExpr.expr is null");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
Expression::evaluate(local_70,*(shared_ptr **)(param_1 + 0x20));
p_Var4 = p_Stack_38;
p_Var3 = p_Stack_48;
p_Var2 = p_Stack_58;
switch(*(int4 *)(param_1 + 0x30)) {
case 0:
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
p_Stack_58 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x10) = local_60;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) = p_Var2;
local_60 = 0;
p_Stack_48 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x20) = local_50;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) = p_Var3;
local_50 = 0;
p_Stack_38 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x30) = local_40;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) = p_Var4;
local_40 = 0;
*(ulong *)(this + 0x40) = CONCAT71(uStack_2f,local_30);
*(int8 *)(this + 0x48) = uStack_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_30,0));
local_30 = (data)0x0;
uStack_28 = 0;
break;
case 1:
/* try { // try from 00142173 to 0014217f has its CatchHandler @ 001422a8 */
Value::operator-((Value *)this);
goto LAB_00142180;
case 2:
/* try { // try from 00142133 to 0014213c has its CatchHandler @ 0014228c */
bVar5 = Value::to_bool((Value *)local_70);
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 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>>
(this + 0x40,bVar5 ^ 1);
break;
case 3:
case 4:
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00142247 to 00142255 has its CatchHandler @ 0014228e */
std::runtime_error::runtime_error
(prVar7,"Expansion operator is only supported in function calls and collections");
goto LAB_00142274;
default:
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00142265 to 00142273 has its CatchHandler @ 0014228a */
std::runtime_error::runtime_error(prVar7,"Unknown unary operator");
LAB_00142274:
/* try { // try from 00142274 to 00142289 has its CatchHandler @ 001422a8 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)this + '@'));
LAB_00142180:
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30,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_30);
if (p_Stack_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_38);
}
if (p_Stack_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_48);
}
if (p_Stack_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_58);
}
if (local_68 != (long *)0x0) {
if (*PTR___libc_single_threaded_001e2f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_68 + 0xc);
iVar6 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar6 = *(int *)((long)local_68 + 0xc);
*(int *)((long)local_68 + 0xc) = iVar6 + -1;
}
if (iVar6 == 1) {
(**(code **)(*local_68 + 0x18))();
}
}
return this;
}
|
||
5,405 | call_setter | bluesky950520[P]quickjs/quickjs.c | static int call_setter(JSContext *ctx, JSObject *setter,
JSValue this_obj, JSValue val, int flags)
{
JSValue ret, func;
if (likely(setter)) {
func = JS_MKPTR(JS_TAG_OBJECT, setter);
/* Note: the field could be removed in the setter */
func = js_dup(func);
ret = JS_CallFree(ctx, func, this_obj, 1, &val);
JS_FreeValue(ctx, val);
if (JS_IsException(ret))
return -1;
JS_FreeValue(ctx, ret);
return TRUE;
} else {
JS_FreeValue(ctx, val);
if ((flags & JS_PROP_THROW) ||
((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) {
JS_ThrowTypeError(ctx, "no setter for property");
return -1;
}
return FALSE;
}
} | O2 | c | call_setter:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq %r8, 0x10(%rsp)
movq %r9, 0x18(%rsp)
testq %rsi, %rsi
je 0x39e10
movq %rcx, %rax
movq %rdx, %rcx
incl (%rsi)
leaq 0x10(%rsp), %r12
movq %r12, (%rsp)
pushq $-0x1
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %rax, %r8
movl %ebp, %r9d
callq 0x2093e
movq %rax, %r14
movq %rdx, %r15
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1bbce
cmpl $0x6, %r15d
jne 0x39df3
pushq $-0x1
popq %rbp
jmp 0x39e01
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1bbce
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x50(%rsp), %r14d
movq %rbx, %rdi
movq %r8, %rsi
movq %r9, %rdx
callq 0x1bbce
btl $0xe, %r14d
jb 0x39e48
xorl %ebp, %ebp
testw %r14w, %r14w
jns 0x39e01
movq 0x18(%rbx), %rax
movq 0x108(%rax), %rax
testq %rax, %rax
je 0x39e01
cmpl $0x0, 0x40(%rax)
jns 0x39e01
leaq 0x4f495(%rip), %rsi # 0x892e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x201fd
jmp 0x39dee
| call_setter:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov rbx, rdi
mov [rsp+48h+var_38], r8
mov [rsp+48h+var_30], r9
test rsi, rsi
jz short loc_39E10
mov rax, rcx
mov rcx, rdx
inc dword ptr [rsi]
lea r12, [rsp+48h+var_38]
mov [rsp+48h+var_48], r12
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 1
pop rbp
mov rdi, rbx
mov r8, rax
mov r9d, ebp
call JS_CallFree
mov r14, rax
mov r15, rdx
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call JS_FreeValue
cmp r15d, 6
jnz short loc_39DF3
loc_39DEE:
push 0FFFFFFFFFFFFFFFFh
pop rbp
jmp short loc_39E01
loc_39DF3:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
loc_39E01:
mov eax, ebp
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_39E10:
mov r14d, [rsp+48h+arg_0]
mov rdi, rbx
mov rsi, r8
mov rdx, r9
call JS_FreeValue
bt r14d, 0Eh
jb short loc_39E48
xor ebp, ebp
test r14w, r14w
jns short loc_39E01
mov rax, [rbx+18h]
mov rax, [rax+108h]
test rax, rax
jz short loc_39E01
cmp dword ptr [rax+40h], 0
jns short loc_39E01
loc_39E48:
lea rsi, aNoSetterForPro; "no setter for property"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp short loc_39DEE
| long long call_setter(
long long a1,
_DWORD *a2,
int a3,
int a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
__int16 a15)
{
unsigned int v15; // ebp
long long v16; // r14
long long v17; // rdx
long long v18; // r15
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
long long v26; // rax
char v27; // [rsp+0h] [rbp-48h]
long long v28; // [rsp+10h] [rbp-38h] BYREF
long long v29; // [rsp+18h] [rbp-30h]
v28 = a5;
v29 = a6;
if ( a2 )
{
++*a2;
v15 = 1;
v16 = JS_CallFree(a1, (long long)a2, -1LL, a3, a4, 1, (long long)&v28);
v18 = v17;
JS_FreeValue(a1, v28, v29);
if ( (_DWORD)v18 != 6 )
{
JS_FreeValue(a1, v16, v18);
return v15;
}
return (unsigned int)-1;
}
JS_FreeValue(a1, a5, a6);
if ( (a15 & 0x4000) != 0
|| (v15 = 0, a15 < 0) && (v26 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL)) != 0 && *(int *)(v26 + 64) < 0 )
{
JS_ThrowTypeError(
a1,
(long long)"no setter for property",
v20,
v21,
v22,
v23,
a7,
a8,
a9,
a10,
v24,
v25,
a13,
a14,
v27);
return (unsigned int)-1;
}
return v15;
}
| call_setter:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV qword ptr [RSP + 0x10],R8
MOV qword ptr [RSP + 0x18],R9
TEST RSI,RSI
JZ 0x00139e10
MOV RAX,RCX
MOV RCX,RDX
INC dword ptr [RSI]
LEA R12,[RSP + 0x10]
MOV qword ptr [RSP],R12
PUSH -0x1
POP RDX
PUSH 0x1
POP RBP
MOV RDI,RBX
MOV R8,RAX
MOV R9D,EBP
CALL 0x0012093e
MOV R14,RAX
MOV R15,RDX
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011bbce
CMP R15D,0x6
JNZ 0x00139df3
LAB_00139dee:
PUSH -0x1
POP RBP
JMP 0x00139e01
LAB_00139df3:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011bbce
LAB_00139e01:
MOV EAX,EBP
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00139e10:
MOV R14D,dword ptr [RSP + 0x50]
MOV RDI,RBX
MOV RSI,R8
MOV RDX,R9
CALL 0x0011bbce
BT R14D,0xe
JC 0x00139e48
XOR EBP,EBP
TEST R14W,R14W
JNS 0x00139e01
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x108]
TEST RAX,RAX
JZ 0x00139e01
CMP dword ptr [RAX + 0x40],0x0
JNS 0x00139e01
LAB_00139e48:
LEA RSI,[0x1892e4]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x001201fd
JMP 0x00139dee
|
int4
call_setter(long param_1,int *param_2,int8 param_3,int8 param_4,int8 param_5,
int8 param_6,uint param_7)
{
long lVar1;
int1 auVar2 [16];
int8 local_38;
int8 local_30;
local_38 = param_5;
local_30 = param_6;
if (param_2 == (int *)0x0) {
JS_FreeValue(param_1,param_5,param_6);
if ((param_7 >> 0xe & 1) == 0) {
if (-1 < (short)param_7) {
return 0;
}
lVar1 = *(long *)(*(long *)(param_1 + 0x18) + 0x108);
if (lVar1 == 0) {
return 0;
}
if (-1 < *(int *)(lVar1 + 0x40)) {
return 0;
}
}
JS_ThrowTypeError(param_1,"no setter for property");
}
else {
*param_2 = *param_2 + 1;
auVar2 = JS_CallFree(param_1,param_2,0xffffffffffffffff,param_3,param_4,1,&local_38);
JS_FreeValue(param_1,local_38,local_30);
if (auVar2._8_4_ != 6) {
JS_FreeValue(param_1,auVar2._0_8_,auVar2._8_8_);
return 1;
}
}
return 0xffffffff;
}
|
|
5,406 | MemoryManager::copyFrom(void const*, unsigned int, unsigned int) | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp | bool MemoryManager::copyFrom(const void *src, uint32_t dest, uint32_t len) {
for (uint32_t i = 0; i < len; ++i) {
if (!this->isAddrExist(dest + i)) {
dbgprintf("Data copy to invalid addr 0x%x!\n", dest + i);
return false;
}
this->setByte(dest + i, ((uint8_t *)src)[i]);
}
return true;
} | O1 | cpp | MemoryManager::copyFrom(void const*, unsigned int, unsigned int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %ecx, %ecx
sete %bl
je 0x2f16
movl %edx, %ebp
movq %rdi, %r15
movl %edx, %eax
shrl $0x16, %eax
movq (%rdi,%rax,8), %rax
testq %rax, %rax
je 0x2f06
movq %rsi, %r14
movl %ecx, %r12d
movl $0x1, %r13d
movl %ebp, %ecx
shrl $0x9, %ecx
andl $0x1ff8, %ecx # imm = 0x1FF8
cmpq $0x0, (%rax,%rcx)
je 0x2f06
movzbl -0x1(%r14,%r13), %edx
movq %r15, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
callq 0x2f2a
cmpq %r12, %r13
setae %bl
je 0x2f16
incl %ebp
movl %ebp, %eax
shrl $0x16, %eax
movq (%r15,%rax,8), %rax
incq %r13
testq %rax, %rax
jne 0x2ec7
leaq 0x2267(%rip), %rdi # 0x5174
movl %ebp, %esi
xorl %eax, %eax
callq 0x2330
andb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN13MemoryManager8copyFromEPKvjj:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
test ecx, ecx
setz bl
jz short loc_2F16
mov ebp, edx
mov r15, rdi
mov eax, edx
shr eax, 16h
mov rax, [rdi+rax*8]
test rax, rax
jz short loc_2F06
mov r14, rsi
mov r12d, ecx
mov r13d, 1
loc_2EC7:
mov ecx, ebp
shr ecx, 9
and ecx, 1FF8h
cmp qword ptr [rax+rcx], 0
jz short loc_2F06
movzx edx, byte ptr [r14+r13-1]; unsigned __int8
mov rdi, r15; this
mov esi, ebp; unsigned int
xor ecx, ecx; unsigned int *
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
cmp r13, r12
setnb bl
jz short loc_2F16
inc ebp
mov eax, ebp
shr eax, 16h
mov rax, [r15+rax*8]
inc r13
test rax, rax
jnz short loc_2EC7
loc_2F06:
lea rdi, aDataCopyToInva; "Data copy to invalid addr 0x%x!\n"
mov esi, ebp
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
loc_2F16:
and bl, 1
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long MemoryManager::copyFrom(
MemoryManager *this,
char *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 v14; // al
unsigned int v15; // ebx
unsigned int v16; // ebp
long long v17; // rax
unsigned long long v18; // r12
unsigned long long v19; // r13
char v21; // [rsp-8h] [rbp-38h]
v21 = v14;
LOBYTE(v15) = (_DWORD)a4 == 0;
if ( (_DWORD)a4 )
{
v16 = a3;
v17 = *((_QWORD *)this + ((unsigned int)a3 >> 22));
if ( v17 )
{
v18 = (unsigned int)a4;
v19 = 1LL;
do
{
a4 = (v16 >> 9) & 0x1FF8;
if ( !*(_QWORD *)(v17 + a4) )
break;
MemoryManager::setByte(this, v16, a2[v19 - 1], 0LL);
LOBYTE(v15) = v19 >= v18;
if ( v19 == v18 )
goto LABEL_8;
v17 = *((_QWORD *)this + (++v16 >> 22));
++v19;
}
while ( v17 );
}
dbgprintf("Data copy to invalid addr 0x%x!\n", v16, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v21);
}
LABEL_8:
LOBYTE(v15) = v15 & 1;
return v15;
}
| copyFrom:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST ECX,ECX
SETZ BL
JZ 0x00102f16
MOV EBP,EDX
MOV R15,RDI
MOV EAX,EDX
SHR EAX,0x16
MOV RAX,qword ptr [RDI + RAX*0x8]
TEST RAX,RAX
JZ 0x00102f06
MOV R14,RSI
MOV R12D,ECX
MOV R13D,0x1
LAB_00102ec7:
MOV ECX,EBP
SHR ECX,0x9
AND ECX,0x1ff8
CMP qword ptr [RAX + RCX*0x1],0x0
JZ 0x00102f06
MOVZX EDX,byte ptr [R14 + R13*0x1 + -0x1]
MOV RDI,R15
MOV ESI,EBP
XOR ECX,ECX
CALL 0x00102f2a
CMP R13,R12
SETNC BL
JZ 0x00102f16
INC EBP
MOV EAX,EBP
SHR EAX,0x16
MOV RAX,qword ptr [R15 + RAX*0x8]
INC R13
TEST RAX,RAX
JNZ 0x00102ec7
LAB_00102f06:
LEA RDI,[0x105174]
MOV ESI,EBP
XOR EAX,EAX
CALL 0x00102330
LAB_00102f16:
AND BL,0x1
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* MemoryManager::copyFrom(void const*, unsigned int, unsigned int) */
ulong __thiscall
MemoryManager::copyFrom(MemoryManager *this,void *param_1,uint param_2,uint param_3)
{
long lVar1;
int8 unaff_RBX;
ulong uVar2;
bool bVar3;
bVar3 = param_3 == 0;
if (!bVar3) {
lVar1 = *(long *)(this + (ulong)(param_2 >> 0x16) * 8);
if (lVar1 != 0) {
uVar2 = 1;
do {
if (*(long *)(lVar1 + (ulong)(param_2 >> 9 & 0x1ff8)) == 0) break;
setByte(this,param_2,*(uchar *)((long)param_1 + (uVar2 - 1)),(uint *)0x0);
bVar3 = param_3 <= uVar2;
if (uVar2 == param_3) goto LAB_00102f16;
param_2 = param_2 + 1;
lVar1 = *(long *)(this + (ulong)(param_2 >> 0x16) * 8);
uVar2 = uVar2 + 1;
} while (lVar1 != 0);
}
dbgprintf("Data copy to invalid addr 0x%x!\n",(ulong)param_2);
}
LAB_00102f16:
return CONCAT71((int7)((ulong)unaff_RBX >> 8),bVar3) & 0xffffffff;
}
|
|
5,407 | MemoryManager::copyFrom(void const*, unsigned int, unsigned int) | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp | bool MemoryManager::copyFrom(const void *src, uint32_t dest, uint32_t len) {
for (uint32_t i = 0; i < len; ++i) {
if (!this->isAddrExist(dest + i)) {
dbgprintf("Data copy to invalid addr 0x%x!\n", dest + i);
return false;
}
this->setByte(dest + i, ((uint8_t *)src)[i]);
}
return true;
} | O3 | cpp | MemoryManager::copyFrom(void const*, unsigned int, unsigned int):
movb $0x1, %al
testl %ecx, %ecx
je 0x2f1a
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r15
movl %edx, %eax
shrl $0x16, %eax
movq (%rdi,%rax,8), %rax
testq %rax, %rax
je 0x2f1d
movq %rsi, %r14
movl %ecx, %r13d
movl $0x1, %ebp
xorl %r12d, %r12d
movl %ebx, %ecx
shrl $0x9, %ecx
andl $0x1ff8, %ecx # imm = 0x1FF8
cmpq $0x0, (%rax,%rcx)
je 0x2f20
movzbl -0x1(%r14,%rbp), %edx
movq %r15, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x2f36
cmpq %rbp, %r13
je 0x2f0a
setbe %r12b
incl %ebx
movl %ebx, %eax
shrl $0x16, %eax
movq (%r15,%rax,8), %rax
incq %rbp
testq %rax, %rax
jne 0x2ec8
jmp 0x2f20
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
andb $0x1, %al
retq
xorl %r12d, %r12d
leaq 0x224d(%rip), %rdi # 0x5174
movl %ebx, %esi
xorl %eax, %eax
callq 0x2330
movl %r12d, %eax
jmp 0x2f0c
nop
| _ZN13MemoryManager8copyFromEPKvjj:
mov al, 1
test ecx, ecx
jz short loc_2F1A
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, edx
mov r15, rdi
mov eax, edx
shr eax, 16h
mov rax, [rdi+rax*8]
test rax, rax
jz short loc_2F1D
mov r14, rsi
mov r13d, ecx
mov ebp, 1
xor r12d, r12d
loc_2EC8:
mov ecx, ebx
shr ecx, 9
and ecx, 1FF8h
cmp qword ptr [rax+rcx], 0
jz short loc_2F20
movzx edx, byte ptr [r14+rbp-1]; unsigned __int8
mov rdi, r15; this
mov esi, ebx; unsigned int
xor ecx, ecx; unsigned int *
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
cmp r13, rbp
jz short loc_2F0A
setbe r12b
inc ebx
mov eax, ebx
shr eax, 16h
mov rax, [r15+rax*8]
inc rbp
test rax, rax
jnz short loc_2EC8
jmp short loc_2F20
loc_2F0A:
mov al, 1
loc_2F0C:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
loc_2F1A:
and al, 1
retn
loc_2F1D:
xor r12d, r12d
loc_2F20:
lea rdi, aDataCopyToInva; "Data copy to invalid addr 0x%x!\n"
mov esi, ebx
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
mov eax, r12d
jmp short loc_2F0C
| char MemoryManager::copyFrom(
MemoryManager *this,
char *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 v14; // al
unsigned int v15; // ebx
long long v16; // rax
unsigned long long v17; // r13
unsigned long long v18; // rbp
bool v19; // r12
v14 = 1;
if ( (_DWORD)a4 )
{
v15 = a3;
v16 = *((_QWORD *)this + ((unsigned int)a3 >> 22));
if ( v16 )
{
v17 = (unsigned int)a4;
v18 = 1LL;
v19 = 0;
do
{
a4 = (v15 >> 9) & 0x1FF8;
if ( !*(_QWORD *)(v16 + a4) )
break;
MemoryManager::setByte(this, v15, a2[v18 - 1], 0LL);
if ( v17 == v18 )
{
v14 = 1;
return v14 & 1;
}
v19 = v17 <= v18;
v16 = *((_QWORD *)this + (++v15 >> 22));
++v18;
}
while ( v16 );
}
else
{
v19 = 0;
}
dbgprintf("Data copy to invalid addr 0x%x!\n", v15, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, 1);
v14 = v19;
}
return v14 & 1;
}
| copyFrom:
MOV AL,0x1
TEST ECX,ECX
JZ 0x00102f1a
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R15,RDI
MOV EAX,EDX
SHR EAX,0x16
MOV RAX,qword ptr [RDI + RAX*0x8]
TEST RAX,RAX
JZ 0x00102f1d
MOV R14,RSI
MOV R13D,ECX
MOV EBP,0x1
XOR R12D,R12D
LAB_00102ec8:
MOV ECX,EBX
SHR ECX,0x9
AND ECX,0x1ff8
CMP qword ptr [RAX + RCX*0x1],0x0
JZ 0x00102f20
MOVZX EDX,byte ptr [R14 + RBP*0x1 + -0x1]
MOV RDI,R15
MOV ESI,EBX
XOR ECX,ECX
CALL 0x00102f36
CMP R13,RBP
JZ 0x00102f0a
SETBE R12B
INC EBX
MOV EAX,EBX
SHR EAX,0x16
MOV RAX,qword ptr [R15 + RAX*0x8]
INC RBP
TEST RAX,RAX
JNZ 0x00102ec8
JMP 0x00102f20
LAB_00102f0a:
MOV AL,0x1
LAB_00102f0c:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
LAB_00102f1a:
AND AL,0x1
RET
LAB_00102f1d:
XOR R12D,R12D
LAB_00102f20:
LEA RDI,[0x105174]
MOV ESI,EBX
XOR EAX,EAX
CALL 0x00102330
MOV EAX,R12D
JMP 0x00102f0c
|
/* MemoryManager::copyFrom(void const*, unsigned int, unsigned int) */
bool __thiscall MemoryManager::copyFrom(MemoryManager *this,void *param_1,uint param_2,uint param_3)
{
long lVar1;
ulong uVar2;
bool bVar3;
bVar3 = true;
if (param_3 != 0) {
lVar1 = *(long *)(this + (ulong)(param_2 >> 0x16) * 8);
if (lVar1 == 0) {
bVar3 = false;
}
else {
uVar2 = 1;
bVar3 = false;
do {
if (*(long *)(lVar1 + (ulong)(param_2 >> 9 & 0x1ff8)) == 0) break;
setByte(this,param_2,*(uchar *)((long)param_1 + (uVar2 - 1)),(uint *)0x0);
if (param_3 == uVar2) {
return true;
}
bVar3 = param_3 <= uVar2;
param_2 = param_2 + 1;
lVar1 = *(long *)(this + (ulong)(param_2 >> 0x16) * 8);
uVar2 = uVar2 + 1;
} while (lVar1 != 0);
}
dbgprintf("Data copy to invalid addr 0x%x!\n",(ulong)param_2);
}
return bVar3;
}
|
|
5,408 | 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>::at(unsigned long) | llama.cpp/common/json.hpp | reference at(size_type idx)
{
// at only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
JSON_TRY
{
return set_parent(m_data.m_value.array->at(idx));
}
JSON_CATCH (std::out_of_range&)
{
// create better exception explanation
JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
}
} | 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>::at(unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r15
cmpb $0x2, (%rdi)
jne 0xbc978
movq %rsi, %r12
movq 0x8(%r15), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq %rsi, %rdx
jbe 0xbc9d7
shlq $0x4, %r12
addq %r12, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x20640
movq %rax, %r14
movq %r15, %rdi
callq 0x8a740
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x5e642(%rip), %rsi # 0x11afde
movq %rsp, %rdi
callq 0x7fcbd
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x130, %esi # imm = 0x130
movq %r15, %rcx
callq 0x8a568
xorl %ebp, %ebp
leaq 0xa367d(%rip), %rsi # 0x160040
leaq -0x463ba(%rip), %rdx # 0x76610
movq %r14, %rdi
callq 0x20a40
jmp 0xbca5f
leaq 0x62f58(%rip), %rdi # 0x11f936
movq %r12, %rsi
xorl %eax, %eax
callq 0x20090
movq %rax, %rbx
cmpl $0x1, %edx
jne 0xbcb09
movq %rbx, %rdi
callq 0x200b0
movl $0x20, %edi
callq 0x20640
movq %rax, %r14
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x7899b
leaq 0x62efb(%rip), %rsi # 0x11f918
leaq 0x62f01(%rip), %rcx # 0x11f925
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xbcd22
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x191, %esi # imm = 0x191
movq %r15, %rcx
callq 0x88ccc
xorl %ebp, %ebp
leaq 0xa3570(%rip), %rsi # 0x15ffc0
leaq -0x46447(%rip), %rdx # 0x76610
movq %r14, %rdi
callq 0x20a40
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbca7d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbca98
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20180
testb %bpl, %bpl
jne 0xbcac2
jmp 0xbcaca
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbcac2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xbcac2
movq %rax, %rbx
movq %r14, %rdi
callq 0x20ef0
callq 0x20d50
jmp 0xbcb09
movq %rax, %rdi
callq 0x2868d
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbcaf7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
testb %bpl, %bpl
jne 0xbcb01
jmp 0xbcb09
movq %rax, %rbx
movq %r14, %rdi
callq 0x20ef0
movq %rbx, %rdi
callq 0x20ae0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atEm:
push rbp; void *
push r15; int
push r14; __int64
push r12; int
push rbx; void *
sub rsp, 40h
mov r15, rdi
cmp byte ptr [rdi], 2
jnz short loc_BC978
mov r12, rsi
mov rcx, [r15+8]
mov rax, [rcx]
mov rdx, [rcx+8]
sub rdx, rax
sar rdx, 4
cmp rdx, rsi
jbe short loc_BC9D7
shl r12, 4
add rax, r12
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_BC978:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, r15
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+68h+var_48]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 130h; int
mov rcx, r15
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, r14; void *
call ___cxa_throw
jmp loc_BCA5F
loc_BC9D7:
lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"...
mov rsi, r12
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
mov rbx, rax
cmp edx, 1
jnz loc_BCB09
mov rdi, rbx; void *
call ___cxa_begin_catch
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rdi, [rsp+68h+var_48]; this
mov rsi, r12; unsigned __int64
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, aArrayIndex; "array index "
lea rcx, aIsOutOfRange; " is out of range"
mov rdi, rsp
lea rdx, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA13_KcS8_RA17_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[13],std::string,char const(&)[17]>(char const(&)[13],std::string,char const(&)[17] &&)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 191h; int
mov rcx, r15
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_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_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_BCA5F:
mov rbx, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BCA7D
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BCA7D:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BCA98
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BCA98:
test bpl, bpl
jnz short loc_BCAC2
jmp short loc_BCACA
mov rbx, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BCAC2
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_BCAC2
mov rbx, rax
loc_BCAC2:
mov rdi, r14; void *
call ___cxa_free_exception
loc_BCACA:
call ___cxa_end_catch
jmp short loc_BCB09
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BCAF7
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BCAF7:
test bpl, bpl
jnz short loc_BCB01
jmp short loc_BCB09
mov rbx, rax
loc_BCB01:
mov rdi, r14; void *
call ___cxa_free_exception
loc_BCB09:
mov rdi, rbx
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>::at(
long long a1,
unsigned long long a2)
{
_QWORD *v2; // rcx
unsigned long long v3; // rdx
nlohmann::json_abi_v3_11_3::detail::exception *exception; // r14
_QWORD v6[2]; // [rsp+0h] [rbp-68h] BYREF
const char *v7; // [rsp+20h] [rbp-48h] BYREF
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
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>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
(long long)v6,
(long long)"cannot use at() with ",
&v7);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
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);
}
v2 = *(_QWORD **)(a1 + 8);
v3 = (long long)(v2[1] - *v2) >> 4;
if ( v3 <= a2 )
std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", a2, v3);
return 16 * a2 + *v2;
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R15,RDI
CMP byte ptr [RDI],0x2
JNZ 0x001bc978
MOV R12,RSI
MOV RCX,qword ptr [R15 + 0x8]
MOV RAX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x8]
SUB RDX,RAX
SAR RDX,0x4
CMP RDX,RSI
JBE 0x001bc9d7
SHL R12,0x4
ADD RAX,R12
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001bc978:
MOV EDI,0x20
CALL 0x00120640
MOV R14,RAX
MOV RDI,R15
CALL 0x0018a740
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LAB_001bc995:
LEA RSI,[0x21afde]
MOV RDI,RSP
CALL 0x0017fcbd
MOV BPL,0x1
LAB_001bc9a7:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x130
MOV RCX,R15
CALL 0x0018a568
XOR EBP,EBP
LEA RSI,[0x260040]
LEA RDX,[0x176610]
MOV RDI,R14
CALL 0x00120a40
LAB_001bc9d7:
LEA RDI,[0x21f936]
MOV RSI,R12
XOR EAX,EAX
CALL 0x00120090
LAB_001bc9e8:
MOV RBX,RAX
CMP EDX,0x1
JNZ 0x001bcb09
MOV RDI,RBX
CALL 0x001200b0
MOV EDI,0x20
CALL 0x00120640
MOV R14,RAX
LAB_001bca09:
LEA RDI,[RSP + 0x20]
MOV RSI,R12
CALL 0x0017899b
LAB_001bca16:
LEA RSI,[0x21f918]
LEA RCX,[0x21f925]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001bcd22
MOV BPL,0x1
LAB_001bca34:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x191
MOV RCX,R15
CALL 0x00188ccc
XOR EBP,EBP
LEA RSI,[0x25ffc0]
LEA RDX,[0x176610]
MOV RDI,R14
CALL 0x00120a40
LAB_001bcb09:
MOV RDI,RBX
CALL 0x00120ae0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::at(unsigned long) */
long __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>
::at(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,ulong param_1)
{
long lVar1;
int8 uVar2;
int1 auVar3 [12];
detail adStack_68 [32];
char *local_48 [4];
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_48[0] = (char *)type_name(this);
/* try { // try from 001bc995 to 001bc9a3 has its CatchHandler @ 001bcafe */
detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(adStack_68,"cannot use at() with ",local_48);
/* try { // try from 001bc9a7 to 001bc9d1 has its CatchHandler @ 001bcad9 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x130,adStack_68,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
lVar1 = **(long **)(this + 8);
if (param_1 < (ulong)((*(long **)(this + 8))[1] - lVar1 >> 4)) {
return lVar1 + param_1 * 0x10;
}
/* try { // try from 001bc9d7 to 001bc9e7 has its CatchHandler @ 001bc9e8 */
auVar3 = std::__throw_out_of_range_fmt
("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",
param_1);
/* catch(type#1 @ 002642b0) { ... } // from try @ 001bc9d7 with catch @ 001bc9e8
*/
if (auVar3._8_4_ == 1) {
__cxa_begin_catch(auVar3._0_8_);
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 001bca09 to 001bca15 has its CatchHandler @ 001bcabf */
std::__cxx11::to_string((__cxx11 *)local_48,param_1);
/* try { // try from 001bca16 to 001bca30 has its CatchHandler @ 001bca9f */
detail::concat<std::__cxx11::string,char_const(&)[13],std::__cxx11::string,char_const(&)[17]>
(adStack_68,"array index ",(string *)local_48," is out of range");
/* try { // try from 001bca34 to 001bca5e has its CatchHandler @ 001bca5f */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x191,adStack_68,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::out_of_range::typeinfo,detail::exception::~exception);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(auVar3._0_8_);
}
|
|
5,409 | js_free_shape | bluesky950520[P]quickjs/quickjs.c | static void js_free_shape(JSRuntime *rt, JSShape *sh)
{
if (unlikely(--sh->header.ref_count <= 0)) {
js_free_shape0(rt, sh);
}
} | O2 | c | js_free_shape:
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jle 0x34ab5
retq
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, 0x18(%rsi)
je 0x34ad1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34b2f
movq 0x38(%r14), %rsi
testq %rsi, %rsi
je 0x34ae5
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x18031
xorl %r15d, %r15d
cmpl 0x28(%r14), %r15d
jae 0x34b00
movl 0x44(%r14,%r15,8), %esi
movq %rbx, %rdi
callq 0x182d0
incq %r15
jmp 0x34ae8
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movl 0x20(%r14), %eax
notq %rax
leaq (%r14,%rax,4), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x170cb
| js_free_shape:
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jle short loc_34AB5
retn
loc_34AB5:
push r15
push r14
push rbx
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rsi+18h], 0
jz short loc_34AD1
mov rdi, rbx
mov rsi, r14
call js_shape_hash_unlink
loc_34AD1:
mov rsi, [r14+38h]
test rsi, rsi
jz short loc_34AE5
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, rbx
call JS_FreeValueRT
loc_34AE5:
xor r15d, r15d
loc_34AE8:
cmp r15d, [r14+28h]
jnb short loc_34B00
mov esi, [r14+r15*8+44h]
mov rdi, rbx
call JS_FreeAtomRT
inc r15
jmp short loc_34AE8
loc_34B00:
mov rax, [r14+8]
mov rcx, [r14+10h]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+8], xmm0
mov eax, [r14+20h]
not rax
lea rsi, [r14+rax*4]
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp js_free_rt
| long long js_free_shape(long long a1, unsigned int *a2)
{
long long result; // rax
unsigned int *v4; // rsi
long long i; // r15
long long v6; // rax
_QWORD *v7; // rcx
result = *a2;
*a2 = result - 1;
if ( (int)result <= 1 )
{
if ( *((_BYTE *)a2 + 24) )
js_shape_hash_unlink(a1, a2);
v4 = (unsigned int *)*((_QWORD *)a2 + 7);
if ( v4 )
JS_FreeValueRT(a1, v4, 0xFFFFFFFF);
for ( i = 0LL; (unsigned int)i < a2[10]; ++i )
JS_FreeAtomRT(a1, a2[2 * i + 17]);
v6 = *((_QWORD *)a2 + 1);
v7 = (_QWORD *)*((_QWORD *)a2 + 2);
*(_QWORD *)(v6 + 8) = v7;
*v7 = v6;
*(_OWORD *)(a2 + 2) = 0LL;
return js_free_rt(a1, (long long)&a2[~(unsigned long long)a2[8]]);
}
return result;
}
| js_free_shape:
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JLE 0x00134ab5
RET
LAB_00134ab5:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RSI + 0x18],0x0
JZ 0x00134ad1
MOV RDI,RBX
MOV RSI,R14
CALL 0x00134b2f
LAB_00134ad1:
MOV RSI,qword ptr [R14 + 0x38]
TEST RSI,RSI
JZ 0x00134ae5
PUSH -0x1
POP RDX
MOV RDI,RBX
CALL 0x00118031
LAB_00134ae5:
XOR R15D,R15D
LAB_00134ae8:
CMP R15D,dword ptr [R14 + 0x28]
JNC 0x00134b00
MOV ESI,dword ptr [R14 + R15*0x8 + 0x44]
MOV RDI,RBX
CALL 0x001182d0
INC R15
JMP 0x00134ae8
LAB_00134b00:
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV EAX,dword ptr [R14 + 0x20]
NOT RAX
LEA RSI,[R14 + RAX*0x4]
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x001170cb
|
void js_free_shape(int8 param_1,int *param_2)
{
int iVar1;
long *plVar2;
long lVar3;
iVar1 = *param_2;
*param_2 = iVar1 + -1;
if (1 < iVar1) {
return;
}
if ((char)param_2[6] != '\0') {
js_shape_hash_unlink(param_1,param_2);
}
if (*(long *)(param_2 + 0xe) != 0) {
JS_FreeValueRT(param_1,*(long *)(param_2 + 0xe),0xffffffffffffffff);
}
for (lVar3 = 0; (uint)lVar3 < (uint)param_2[10]; lVar3 = lVar3 + 1) {
JS_FreeAtomRT(param_1,param_2[lVar3 * 2 + 0x11]);
}
lVar3 = *(long *)(param_2 + 2);
plVar2 = *(long **)(param_2 + 4);
*(long **)(lVar3 + 8) = plVar2;
*plVar2 = lVar3;
param_2[2] = 0;
param_2[3] = 0;
param_2[4] = 0;
param_2[5] = 0;
js_free_rt(param_1,param_2 + ~(ulong)(uint)param_2[8]);
return;
}
|
|
5,410 | mysql_free_result_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_free_result_start(MYSQL_RES *result)
{
MK_ASYNC_START_BODY_VOID_RETURN(
mysql_free_result,
result->handle,
{
WIN_SET_NONBLOCKING(result->handle)
parms.result= result;
},
/*
mysql_free_result() can have NULL in result->handle (this happens when all
rows have been fetched and mysql_fetch_row() returned NULL.)
So we cannot suspend, but it does not matter, as in this case
mysql_free_result() cannot block.
It is also legitimate to have NULL result, which will do nothing.
*/
if (!result || !result->handle)
{
mysql_free_result(result);
return 0;
})
} | O0 | c | mysql_free_result_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3c7de
movq -0x10(%rbp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x3c7f3
movq -0x10(%rbp), %rdi
callq 0x17d60
movl $0x0, -0x4(%rbp)
jmp 0x3c8e9
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x20(%rbp), %rdi
addq $0x38, %rdi
leaq 0xd7(%rip), %rsi # 0x3c900
leaq -0x28(%rbp), %rdx
callq 0x42760
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x14(%rbp)
jle 0x3c861
movq -0x20(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x3c8e9
cmpl $0x0, -0x14(%rbp)
jge 0x3c8e2
jmp 0x3c869
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x266df(%rip), %rax # 0x62f70
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13210
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x97, %rdi
leaq 0x266bd(%rip), %rax # 0x62f80
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x296(%rax)
jmp 0x3c8e2
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_free_result_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jz short loc_3C7DE
mov rax, [rbp+var_10]
cmp qword ptr [rax+78h], 0
jnz short loc_3C7F3
loc_3C7DE:
mov rdi, [rbp+var_10]
call mysql_free_result
mov [rbp+var_4], 0
jmp loc_3C8E9
loc_3C7F3:
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_20]
add rdi, 38h ; '8'
lea rsi, mysql_free_result_start_internal
lea rdx, [rbp+var_28]
call my_context_spawn
mov [rbp+var_14], eax
mov rax, [rbp+var_20]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 0
cmp [rbp+var_14], 0
jle short loc_3C861
mov rax, [rbp+var_20]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_3C8E9
loc_3C861:
cmp [rbp+var_14], 0
jge short loc_3C8E2
jmp short $+2
loc_3C869:
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_10]
mov rdi, [rax+78h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_10]
mov rdi, [rax+78h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov byte ptr [rax+296h], 0
jmp short $+2
loc_3C8E2:
mov [rbp+var_4], 0
loc_3C8E9:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_free_result_start(_QWORD *a1)
{
_QWORD *v2; // [rsp+8h] [rbp-28h] BYREF
_BYTE *v3; // [rsp+10h] [rbp-20h]
int v4; // [rsp+1Ch] [rbp-14h]
_QWORD *v5; // [rsp+20h] [rbp-10h]
v5 = a1;
if ( a1 && v5[15] )
{
v3 = *(_BYTE **)(*(_QWORD *)(v5[15] + 1152LL) + 40LL);
v2 = v5;
v3[20] = 1;
v4 = my_context_spawn(v3 + 56, mysql_free_result_start_internal, &v2);
v3[21] = 0;
v3[20] = 0;
if ( v4 <= 0 )
{
if ( v4 < 0 )
{
*(_DWORD *)(v5[15] + 144LL) = 2008;
strncpy(v5[15] + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(v5[15] + 668LL) = 0;
strncpy(v5[15] + 151LL, client_errors[8], 511LL);
*(_BYTE *)(v5[15] + 662LL) = 0;
}
return 0;
}
else
{
v3[21] = 1;
return *(unsigned int *)v3;
}
}
else
{
mysql_free_result(v5);
return 0;
}
}
| mysql_free_result_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013c7de
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x78],0x0
JNZ 0x0013c7f3
LAB_0013c7de:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00117d60
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0013c8e9
LAB_0013c7f3:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
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 qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x38
LEA RSI,[0x13c900]
LEA RDX,[RBP + -0x28]
CALL 0x00142760
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x14],0x0
JLE 0x0013c861
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013c8e9
LAB_0013c861:
CMP dword ptr [RBP + -0x14],0x0
JGE 0x0013c8e2
JMP 0x0013c869
LAB_0013c869:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x297
LEA RAX,[0x162f70]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x97
LEA RAX,[0x162f80]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0013c8e2
LAB_0013c8e2:
MOV dword ptr [RBP + -0x4],0x0
LAB_0013c8e9:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_free_result_start(long param_1)
{
long local_30;
int4 *local_28;
int local_1c;
long local_18;
int4 local_c;
local_18 = param_1;
if ((param_1 == 0) || (*(long *)(param_1 + 0x78) == 0)) {
mysql_free_result(param_1);
local_c = 0;
}
else {
local_28 = *(int4 **)(*(long *)(*(long *)(param_1 + 0x78) + 0x480) + 0x28);
*(int1 *)(local_28 + 5) = 1;
local_30 = param_1;
local_1c = my_context_spawn(local_28 + 0xe,mysql_free_result_start_internal,&local_30);
*(int1 *)((long)local_28 + 0x15) = 0;
*(int1 *)(local_28 + 5) = 0;
if (local_1c < 1) {
if (local_1c < 0) {
*(int4 *)(*(long *)(local_18 + 0x78) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_18 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_18 + 0x78) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_18 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_00162fc0,
0x1ff);
*(int1 *)(*(long *)(local_18 + 0x78) + 0x296) = 0;
}
local_c = 0;
}
else {
*(int1 *)((long)local_28 + 0x15) = 1;
local_c = *local_28;
}
}
return local_c;
}
|
|
5,411 | usage | eloqsql/client/mysqlshow.c | static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts("Shows the structure of a MariaDB database (databases, tables, and columns).\n");
printf("Usage: %s [OPTIONS] [database [table [column]]]\n",my_progname);
puts("\n\
If last argument contains a shell or SQL wildcard (*,?,% or _) then only\n\
what\'s matched by the wildcard is shown.\n\
If no database is given then all matching databases are shown.\n\
If no table is given, then all matching tables in database are shown.\n\
If no column is given, then all matching columns and column types in table\n\
are shown.");
print_defaults("my",load_default_groups);
puts("");
my_print_help(my_long_options);
my_print_variables(my_long_options);
} | O0 | c | usage:
pushq %rbp
movq %rsp, %rbp
callq 0x38f20
leaq 0x908d9(%rip), %rdi # 0xc9849
callq 0x369b0
leaq 0x90913(%rip), %rdi # 0xc988f
callq 0x369b0
leaq 0x3ba948(%rip), %rax # 0x3f38d0
movq (%rax), %rsi
leaq 0x9094a(%rip), %rdi # 0xc98dc
movb $0x0, %al
callq 0x36070
leaq 0x9096d(%rip), %rdi # 0xc990d
callq 0x369b0
leaq 0x9005c(%rip), %rdi # 0xc9008
leaq 0x1f605d(%rip), %rsi # 0x22f010
callq 0x720f0
leaq 0x90be2(%rip), %rdi # 0xc9ba1
callq 0x369b0
leaq 0x1f6085(%rip), %rdi # 0x22f050
callq 0x7a5d0
leaq 0x1f6079(%rip), %rdi # 0x22f050
callq 0x7ac80
popq %rbp
retq
nop
| usage:
push rbp
mov rbp, rsp
call print_version
lea rdi, aCopyrightC2000; "Copyright (c) 2000, 2018, Oracle, Maria"...
call _puts
lea rdi, aShowsTheStruct; "Shows the structure of a MariaDB databa"...
call _puts
lea rax, my_progname
mov rsi, [rax]
lea rdi, aUsageSOptionsD; "Usage: %s [OPTIONS] [database [table [c"...
mov al, 0
call _printf
lea rdi, aIfLastArgument; "\nIf last argument contains a shell or "...
call _puts
lea rdi, unk_C9008
lea rsi, load_default_groups
call print_defaults
lea rdi, aURowSInSet_0+12h; ""
call _puts
lea rdi, my_long_options
call my_print_help
lea rdi, my_long_options
call my_print_variables
pop rbp
retn
| long long usage()
{
int v0; // esi
print_version();
puts("Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\n");
puts("Shows the structure of a MariaDB database (databases, tables, and columns).\n");
v0 = (int)my_progname;
printf("Usage: %s [OPTIONS] [database [table [column]]]\n", my_progname);
puts(
"\n"
"If last argument contains a shell or SQL wildcard (*,?,% or _) then only\n"
"what's matched by the wildcard is shown.\n"
"If no database is given then all matching databases are shown.\n"
"If no table is given, then all matching tables in database are shown.\n"
"If no column is given, then all matching columns and column types in table\n"
"are shown.",
v0);
print_defaults(&unk_C9008, load_default_groups);
puts("");
my_print_help(&my_long_options);
return my_print_variables(&my_long_options);
}
| usage:
PUSH RBP
MOV RBP,RSP
CALL 0x00138f20
LEA RDI,[0x1c9849]
CALL 0x001369b0
LEA RDI,[0x1c988f]
CALL 0x001369b0
LEA RAX,[0x4f38d0]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x1c98dc]
MOV AL,0x0
CALL 0x00136070
LEA RDI,[0x1c990d]
CALL 0x001369b0
LEA RDI,[0x1c9008]
LEA RSI,[0x32f010]
CALL 0x001720f0
LEA RDI,[0x1c9ba1]
CALL 0x001369b0
LEA RDI,[0x32f050]
CALL 0x0017a5d0
LEA RDI,[0x32f050]
CALL 0x0017ac80
POP RBP
RET
|
void usage(void)
{
print_version();
puts("Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\n");
puts("Shows the structure of a MariaDB database (databases, tables, and columns).\n");
printf("Usage: %s [OPTIONS] [database [table [column]]]\n",my_progname);
puts(
"\nIf last argument contains a shell or SQL wildcard (*,?,% or _) then only\nwhat\'s matched by the wildcard is shown.\nIf no database is given then all matching databases are shown.\nIf no table is given, then all matching tables in database are shown.\nIf no column is given, then all matching columns and column types in table\nare shown."
);
print_defaults(&DAT_001c9008,load_default_groups);
puts("");
my_print_help(my_long_options);
my_print_variables(my_long_options);
return;
}
|
|
5,412 | my_open | eloqsql/mysys/my_open.c | File my_open(const char *FileName, int Flags, myf MyFlags)
/* Path-name of file */
/* Read | write .. */
/* Special flags */
{
File fd;
DBUG_ENTER("my_open");
DBUG_PRINT("my",("Name: '%s' Flags: %d MyFlags: %lu",
FileName, Flags, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FFNF)))
MyFlags|= my_global_flags;
#if defined(_WIN32)
fd= my_win_open(FileName, Flags);
#else
if (MyFlags & MY_NOSYMLINKS)
fd = open_nosymlinks(FileName, Flags | O_CLOEXEC, my_umask);
else
fd = open(FileName, Flags | O_CLOEXEC, my_umask);
#endif
fd= my_register_filename(fd, FileName, FILE_BY_OPEN,
EE_FILENOTFOUND, MyFlags);
DBUG_RETURN(fd);
} | O0 | c | my_open:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x2a375
movq -0x18(%rbp), %rax
andq $0x19, %rax
cmpq $0x0, %rax
jne 0x2a395
leaq 0x35e89e(%rip), %rax # 0x388c28
movq (%rax), %rax
orq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0x2a3c5
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
orl $0x80000, %esi # imm = 0x80000
leaq 0x1a6fbf(%rip), %rax # 0x1d1378
movl (%rax), %edx
callq 0x2a420
movl %eax, -0x1c(%rbp)
jmp 0x2a3e5
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
orl $0x80000, %esi # imm = 0x80000
leaq 0x1a6f9f(%rip), %rax # 0x1d1378
movl (%rax), %edx
movb $0x0, %al
callq 0x245e0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %edi
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %r8
movl $0x1, %edx
movl $0x1d, %ecx
callq 0x2a490
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_open:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
jmp short $+2
loc_2A375:
mov rax, [rbp+var_18]
and rax, 19h
cmp rax, 0
jnz short loc_2A395
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_18]
mov [rbp+var_18], rax
loc_2A395:
mov rax, [rbp+var_18]
and rax, 200h
cmp rax, 0
jz short loc_2A3C5
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
or esi, 80000h
lea rax, my_umask
mov edx, [rax]
call open_nosymlinks
mov [rbp+var_1C], eax
jmp short loc_2A3E5
loc_2A3C5:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
or esi, 80000h
lea rax, my_umask
mov edx, [rax]
mov al, 0
call _open64
mov [rbp+var_1C], eax
loc_2A3E5:
mov edi, [rbp+var_1C]
mov rsi, [rbp+var_8]
mov r8, [rbp+var_18]
mov edx, 1
mov ecx, 1Dh
call my_register_filename
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
| long long my_open(long long a1, int a2, long long a3)
{
unsigned int v4; // [rsp+4h] [rbp-1Ch]
long long v5; // [rsp+8h] [rbp-18h]
v5 = a3;
if ( (a3 & 0x19) == 0 )
v5 = a3 | my_global_flags;
if ( (v5 & 0x200) != 0 )
v4 = open_nosymlinks(a1, a2 | 0x80000u, my_umask);
else
v4 = open64(a1, a2 | 0x80000u, my_umask);
return (unsigned int)my_register_filename(v4, a1, 1LL, 29LL, v5);
}
| my_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x0012a375
LAB_0012a375:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x19
CMP RAX,0x0
JNZ 0x0012a395
LEA RAX,[0x488c28]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
LAB_0012a395:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x200
CMP RAX,0x0
JZ 0x0012a3c5
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
OR ESI,0x80000
LEA RAX,[0x2d1378]
MOV EDX,dword ptr [RAX]
CALL 0x0012a420
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0012a3e5
LAB_0012a3c5:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
OR ESI,0x80000
LEA RAX,[0x2d1378]
MOV EDX,dword ptr [RAX]
MOV AL,0x0
CALL 0x001245e0
MOV dword ptr [RBP + -0x1c],EAX
LAB_0012a3e5:
MOV EDI,dword ptr [RBP + -0x1c]
MOV RSI,qword ptr [RBP + -0x8]
MOV R8,qword ptr [RBP + -0x18]
MOV EDX,0x1
MOV ECX,0x1d
CALL 0x0012a490
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int4 my_open(char *param_1,uint param_2,ulong param_3)
{
int4 uVar1;
int4 local_24;
int8 local_20;
local_20 = param_3;
if ((param_3 & 0x19) == 0) {
local_20 = my_global_flags | param_3;
}
if ((local_20 & 0x200) == 0) {
local_24 = open64(param_1,param_2 | 0x80000,(ulong)my_umask);
}
else {
local_24 = open_nosymlinks(param_1,param_2 | 0x80000,my_umask);
}
uVar1 = my_register_filename(local_24,param_1,1,0x1d,local_20);
return uVar1;
}
|
|
5,413 | Generator::Generator(NodeProg) | BhuvanGudi[P]LexiParse/src/generation.hpp | explicit Generator(NodeProg prog)
: m_prog(std::move(prog))
{
} | O0 | cpp | Generator::Generator(NodeProg):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movq %rdi, %rax
movq %rax, -0x30(%rbp)
callq 0x10630
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
callq 0x3130
jmp 0x5523
movq -0x30(%rbp), %rdi
movq $0x0, 0x1a0(%rdi)
addq $0x1a8, %rdi # imm = 0x1A8
movq %rdi, -0x40(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x3100
movq -0x40(%rbp), %rdi
callq 0x10de0
movq -0x30(%rbp), %rdi
addq $0x1c0, %rdi # imm = 0x1C0
movq %rdi, -0x38(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x3100
movq -0x38(%rbp), %rdi
callq 0x10e00
movq -0x30(%rbp), %rax
movl $0x0, 0x1d8(%rax)
addq $0x40, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x55b0
movq -0x18(%rbp), %rdi
callq 0x32d0
nopl (%rax,%rax)
| _ZN9GeneratorC2E8NodeProg:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_28], rdi
mov rax, rdi
mov [rbp+var_30], rax
call _ZN8NodeProgC2EOS_; NodeProg::NodeProg(NodeProg&&)
mov rdi, [rbp+var_28]
add rdi, 18h
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
jmp short $+2
loc_5523:
mov rdi, [rbp+var_30]
mov qword ptr [rdi+1A0h], 0
add rdi, 1A8h
mov [rbp+var_40], rdi
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rbp+var_40]
call _ZNSt6vectorIN9Generator3VarESaIS1_EEC2Ev; std::vector<Generator::Var>::vector(void)
mov rdi, [rbp+var_30]
add rdi, 1C0h
mov [rbp+var_38], rdi
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rbp+var_38]
call _ZNSt6vectorImSaImEEC2Ev; std::vector<ulong>::vector(void)
mov rax, [rbp+var_30]
mov dword ptr [rax+1D8h], 0
add rsp, 40h
pop rbp
retn
mov rdi, [rbp+var_28]; this
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
call _ZN8NodeProgD2Ev; NodeProg::~NodeProg()
mov rdi, [rbp+var_18]
call __Unwind_Resume
| long long Generator::Generator(long long a1)
{
long long result; // rax
NodeProg::NodeProg();
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(a1 + 24);
*(_QWORD *)(a1 + 416) = 0LL;
memset(a1 + 424, 0LL, 24LL);
std::vector<Generator::Var>::vector(a1 + 424);
memset(a1 + 448, 0LL, 24LL);
std::vector<unsigned long>::vector(a1 + 448);
result = a1;
*(_DWORD *)(a1 + 472) = 0;
return result;
}
| Generator:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x30],RAX
CALL 0x00110630
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x18
LAB_0010551c:
CALL 0x00103130
LAB_00105521:
JMP 0x00105523
LAB_00105523:
MOV RDI,qword ptr [RBP + -0x30]
MOV qword ptr [RDI + 0x1a0],0x0
ADD RDI,0x1a8
MOV qword ptr [RBP + -0x40],RDI
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00103100
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00110de0
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x1c0
MOV qword ptr [RBP + -0x38],RDI
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00103100
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00110e00
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x1d8],0x0
ADD RSP,0x40
POP RBP
RET
|
/* Generator::Generator(NodeProg) */
void __thiscall Generator::Generator(Generator *this,NodeProg *param_2)
{
NodeProg::NodeProg((NodeProg *)this,param_2);
/* try { // try from 0010551c to 00105520 has its CatchHandler @ 0010558a */
std::__cxx11::stringstream::stringstream((stringstream *)(this + 0x18));
*(int8 *)(this + 0x1a0) = 0;
memset((vector<Generator::Var,std::allocator<Generator::Var>> *)(this + 0x1a8),0,0x18);
std::vector<Generator::Var,std::allocator<Generator::Var>>::vector
((vector<Generator::Var,std::allocator<Generator::Var>> *)(this + 0x1a8));
memset((vector<unsigned_long,std::allocator<unsigned_long>> *)(this + 0x1c0),0,0x18);
std::vector<unsigned_long,std::allocator<unsigned_long>>::vector
((vector<unsigned_long,std::allocator<unsigned_long>> *)(this + 0x1c0));
*(int4 *)(this + 0x1d8) = 0;
return;
}
|
|
5,414 | Generator::Generator(NodeProg) | BhuvanGudi[P]LexiParse/src/generation.hpp | explicit Generator(NodeProg prog)
: m_prog(std::move(prog))
{
} | O1 | cpp | Generator::Generator(NodeProg):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
addq $0x18, %rdi
callq 0x2140
xorps %xmm0, %xmm0
movups %xmm0, 0x1cc(%rbx)
movups %xmm0, 0x1c0(%rbx)
movups %xmm0, 0x1b0(%rbx)
movups %xmm0, 0x1a0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x36c6
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r14, %rdi
callq 0x22d0
| _ZN9GeneratorC2E8NodeProg:
push r14
push rbx
push rax
mov rbx, rdi
mov rax, [rsi]
mov [rdi], rax
mov rax, [rsi+8]
mov [rdi+8], rax
mov rax, [rsi+10h]
mov [rdi+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [rsi], xmm0
mov qword ptr [rsi+10h], 0
add rdi, 18h
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
xorps xmm0, xmm0
movups xmmword ptr [rbx+1CCh], xmm0
movups xmmword ptr [rbx+1C0h], xmm0
movups xmmword ptr [rbx+1B0h], xmm0
movups xmmword ptr [rbx+1A0h], xmm0
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_36C6
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_36C6:
mov rdi, r14
call __Unwind_Resume
| long long Generator::Generator(long long a1, _QWORD *a2, long long a3)
{
long long result; // rax
*(_QWORD *)a1 = *a2;
*(_QWORD *)(a1 + 8) = a2[1];
*(_QWORD *)(a1 + 16) = a2[2];
*(_OWORD *)a2 = 0LL;
a2[2] = 0LL;
result = std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(
a1 + 24,
a2,
a3);
*(_OWORD *)(a1 + 460) = 0LL;
*(_OWORD *)(a1 + 448) = 0LL;
*(_OWORD *)(a1 + 432) = 0LL;
*(_OWORD *)(a1 + 416) = 0LL;
return result;
}
| Generator:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],0x0
ADD RDI,0x18
LAB_00103683:
CALL 0x00102140
LAB_00103688:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x1cc],XMM0
MOVUPS xmmword ptr [RBX + 0x1c0],XMM0
MOVUPS xmmword ptr [RBX + 0x1b0],XMM0
MOVUPS xmmword ptr [RBX + 0x1a0],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Generator::Generator(NodeProg) */
void __thiscall Generator::Generator(Generator *this,int8 *param_2)
{
*(int8 *)this = *param_2;
*(int8 *)(this + 8) = param_2[1];
*(int8 *)(this + 0x10) = param_2[2];
*param_2 = 0;
param_2[1] = 0;
param_2[2] = 0;
/* try { // try from 00103683 to 00103687 has its CatchHandler @ 001036af */
std::__cxx11::stringstream::stringstream((stringstream *)(this + 0x18));
*(int8 *)(this + 0x1cc) = 0;
*(int8 *)(this + 0x1d4) = 0;
*(int8 *)(this + 0x1c0) = 0;
*(int8 *)(this + 0x1c8) = 0;
*(int8 *)(this + 0x1b0) = 0;
*(int8 *)(this + 0x1b8) = 0;
*(int8 *)(this + 0x1a0) = 0;
*(int8 *)(this + 0x1a8) = 0;
return;
}
|
|
5,415 | Generator::Generator(NodeProg) | BhuvanGudi[P]LexiParse/src/generation.hpp | explicit Generator(NodeProg prog)
: m_prog(std::move(prog))
{
} | O2 | cpp | Generator::Generator(NodeProg):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
addq $0x18, %rdi
callq 0x2110
xorps %xmm0, %xmm0
movups %xmm0, 0x1cc(%rbx)
movups %xmm0, 0x1c0(%rbx)
movups %xmm0, 0x1b0(%rbx)
movups %xmm0, 0x1a0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x5d3c
movq %r14, %rdi
callq 0x2270
nop
| _ZN9GeneratorC2E8NodeProg:
push r14
push rbx
push rax
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmmword ptr [rdi], xmm0
mov rax, [rsi+10h]
mov [rdi+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [rsi], xmm0
and qword ptr [rsi+10h], 0
add rdi, 18h
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
xorps xmm0, xmm0
movups xmmword ptr [rbx+1CCh], xmm0
movups xmmword ptr [rbx+1C0h], xmm0
movups xmmword ptr [rbx+1B0h], xmm0
movups xmmword ptr [rbx+1A0h], xmm0
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
mov rdi, rbx
call _ZNSt12_Vector_baseIP8NodeStmtSaIS1_EED2Ev; std::_Vector_base<NodeStmt *>::~_Vector_base()
mov rdi, r14
call __Unwind_Resume
| long long Generator::Generator(long long a1, long long a2, long long a3)
{
long long result; // rax
*(_OWORD *)a1 = *(_OWORD *)a2;
*(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 16);
*(_OWORD *)a2 = 0LL;
*(_QWORD *)(a2 + 16) = 0LL;
result = std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(
a1 + 24,
a2,
a3);
*(_OWORD *)(a1 + 460) = 0LL;
*(_OWORD *)(a1 + 448) = 0LL;
*(_OWORD *)(a1 + 432) = 0LL;
*(_OWORD *)(a1 + 416) = 0LL;
return result;
}
| Generator:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS xmmword ptr [RDI],XMM0
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI],XMM0
AND qword ptr [RSI + 0x10],0x0
ADD RDI,0x18
LAB_001032d8:
CALL 0x00102110
LAB_001032dd:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x1cc],XMM0
MOVUPS xmmword ptr [RBX + 0x1c0],XMM0
MOVUPS xmmword ptr [RBX + 0x1b0],XMM0
MOVUPS xmmword ptr [RBX + 0x1a0],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Generator::Generator(NodeProg) */
void __thiscall Generator::Generator(Generator *this,int8 *param_2)
{
int8 uVar1;
uVar1 = param_2[1];
*(int8 *)this = *param_2;
*(int8 *)(this + 8) = uVar1;
*(int8 *)(this + 0x10) = param_2[2];
*param_2 = 0;
param_2[1] = 0;
param_2[2] = 0;
/* try { // try from 001032d8 to 001032dc has its CatchHandler @ 00103304 */
std::__cxx11::stringstream::stringstream((stringstream *)(this + 0x18));
*(int8 *)(this + 0x1cc) = 0;
*(int8 *)(this + 0x1d4) = 0;
*(int8 *)(this + 0x1c0) = 0;
*(int8 *)(this + 0x1c8) = 0;
*(int8 *)(this + 0x1b0) = 0;
*(int8 *)(this + 0x1b8) = 0;
*(int8 *)(this + 0x1a0) = 0;
*(int8 *)(this + 0x1a8) = 0;
return;
}
|
|
5,416 | Generator::Generator(NodeProg) | BhuvanGudi[P]LexiParse/src/generation.hpp | explicit Generator(NodeProg prog)
: m_prog(std::move(prog))
{
} | O3 | cpp | Generator::Generator(NodeProg):
pushq %rbx
movq %rdi, %rbx
movq 0x1c0(%rdi), %rdi
testq %rdi, %rdi
je 0x35b9
movq 0x1d0(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x1a8(%rbx), %rdi
callq 0x8800
leaq 0x18(%rbx), %rdi
movq 0x99d0(%rip), %rsi # 0xcfa0
callq 0x2170
leaq 0x98(%rbx), %rdi
callq 0x2090
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x35f6
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
jmp 0x2200
popq %rbx
retq
| _ZN9GeneratorD2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+1C0h]; void *
test rdi, rdi
jz short loc_35B9
mov rsi, [rbx+1D0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_35B9:
lea rdi, [rbx+1A8h]
call _ZNSt6vectorIN9Generator3VarESaIS1_EED2Ev; std::vector<Generator::Var>::~vector()
lea rdi, [rbx+18h]
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rbx+98h]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_35F6
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_35F6:
pop rbx
retn
| void Generator::~Generator(Generator *this)
{
void *v2; // rdi
v2 = (void *)*((_QWORD *)this + 56);
if ( v2 )
operator delete(v2, *((_QWORD *)this + 58) - (_QWORD)v2);
std::vector<Generator::Var>::~vector((char *)this + 424);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
(char *)this + 24,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((Generator *)((char *)this + 152));
if ( *(_QWORD *)this )
operator delete(*(void **)this, *((_QWORD *)this + 2) - *(_QWORD *)this);
}
| ~Generator:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x1c0]
TEST RDI,RDI
JZ 0x001035b9
MOV RSI,qword ptr [RBX + 0x1d0]
SUB RSI,RDI
CALL 0x00102200
LAB_001035b9:
LEA RDI,[RBX + 0x1a8]
CALL 0x00108800
LEA RDI,[RBX + 0x18]
MOV RSI,qword ptr [0x0010cfa0]
CALL 0x00102170
LEA RDI,[RBX + 0x98]
CALL 0x00102090
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x001035f6
MOV RSI,qword ptr [RBX + 0x10]
SUB RSI,RDI
POP RBX
JMP 0x00102200
LAB_001035f6:
POP RBX
RET
|
/* Generator::~Generator() */
void __thiscall Generator::~Generator(Generator *this)
{
void *pvVar1;
pvVar1 = *(void **)(this + 0x1c0);
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,*(long *)(this + 0x1d0) - (long)pvVar1);
}
std::vector<Generator::Var,std::allocator<Generator::Var>>::~vector
((vector<Generator::Var,std::allocator<Generator::Var>> *)(this + 0x1a8));
std::__cxx11::stringstream::~stringstream((stringstream *)(this + 0x18));
std::ios_base::~ios_base((ios_base *)(this + 0x98));
pvVar1 = *(void **)this;
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,*(long *)(this + 0x10) - (long)pvVar1);
return;
}
return;
}
|
|
5,417 | void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t) | monkey531[P]llama/common/json.hpp | static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept
{
j.m_data.m_value.destroy(j.m_data.m_type);
j.m_data.m_type = value_t::number_float;
j.m_data.m_value = val;
j.assert_invariant();
} | O1 | cpp | void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t):
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, (%rsp)
movq %rdi, %rbx
addq $0x8, %rdi
movzbl (%rbx), %esi
callq 0x4402c
movb $0x7, (%rbx)
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
addq $0x10, %rsp
popq %rbx
jmp 0x42e48
movq %rax, %rdi
callq 0x208a9
| _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE:
push rbx
sub rsp, 10h
movsd [rsp+18h+var_18], xmm0
mov rbx, rdi
add rdi, 8
movzx esi, byte ptr [rbx]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
mov byte ptr [rbx], 7
movsd xmm0, [rsp+18h+var_18]
movsd [rsp+18h+var_10], xmm0
mov rax, [rsp+18h+var_10]
mov [rbx+8], rax
mov rdi, rbx
mov esi, 1
add rsp, 10h
pop rbx
jmp _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, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
unsigned __int8 *a1,
double a2)
{
long long result; // rax
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
(void **)a1 + 1,
*a1);
*a1 = 7;
result = *(_QWORD *)&a2;
*((double *)a1 + 1) = 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 *)a1);
return result;
}
| 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>>:
PUSH RBX
SUB RSP,0x10
MOVSD qword ptr [RSP],XMM0
MOV RBX,RDI
ADD RDI,0x8
MOVZX ESI,byte ptr [RBX]
LAB_0014495a:
CALL 0x0014402c
MOV byte ptr [RBX],0x7
MOVSD XMM0,qword ptr [RSP]
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,RBX
MOV ESI,0x1
ADD RSP,0x10
POP RBX
JMP 0x00142e48
|
/* void
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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>::number_float_t) */
void nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(int8 param_1_00,int1 *param_1)
{
/* try { // try from 0014495a to 0014495e has its CatchHandler @ 00144988 */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::destroy((json_value *)(param_1 + 8),*param_1);
*param_1 = 7;
*(int8 *)(param_1 + 8) = param_1_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>
::assert_invariant(SUB81(param_1,0));
return;
}
|
|
5,418 | ggml_compute_forward_rms_norm_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_rms_norm_back(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_rms_norm_back_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_rms_norm_back:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
testl %eax, %eax
jne 0x14bea
jmp 0x14bdb
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x28e40
jmp 0x14c04
leaq 0x5ef71(%rip), %rdi # 0x73b62
movl $0x1c11, %esi # imm = 0x1C11
leaq 0x5f1c0(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ggml_compute_forward_rms_norm_back:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
test eax, eax
jnz short loc_14BEA
jmp short $+2
loc_14BDB:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_rms_norm_back_f32
jmp short loc_14C04
loc_14BEA:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1C11h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_14C04:
add rsp, 20h
pop rbp
retn
| double ggml_compute_forward_rms_norm_back(long long a1, long long a2)
{
double result; // xmm0_8
if ( **(_DWORD **)(a2 + 152) )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
7185LL,
"fatal error");
ggml_compute_forward_rms_norm_back_f32(a1, a2);
return result;
}
| ggml_compute_forward_rms_norm_back:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JNZ 0x00114bea
JMP 0x00114bdb
LAB_00114bdb:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00128e40
JMP 0x00114c04
LAB_00114bea:
LEA RDI,[0x173b62]
MOV ESI,0x1c11
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_00114c04:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_rms_norm_back(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_rms_norm_back_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x1c11,"fatal error");
}
return;
}
|
|
5,419 | 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 0x4b80b
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 0x279c0d(%rip), %rcx # 0x2c5410
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0x4b81e
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x4a320
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 0x4b840
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0x4b893
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0x4b873
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 0x4aeb0
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 0x2a2a0
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_4B80B
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_4B81E
loc_4B80B:
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_4B81E:
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_4B840
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_4B893
loc_4B840:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_4B873
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_4B873:
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_4B893:
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 0x0014b80b
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,[0x3c5410]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0014b81e
LAB_0014b80b:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x24]
CALL 0x0014a320
MOV dword ptr [RBP + -0x28],EAX
LAB_0014b81e:
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 0x0014b840
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x0014b893
LAB_0014b840:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0014b873
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 0x0014aeb0
LAB_0014b873:
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 0x0012a2a0
LAB_0014b893:
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;
}
|
|
5,420 | mysql_client_find_plugin@libmariadbclient_18 | eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c | struct st_mysql_client_plugin * STDCALL
mysql_client_find_plugin(MYSQL *mysql, const char *name, int type)
{
struct st_mysql_client_plugin *p;
int plugin_nr= get_plugin_nr(type);
if (is_not_initialized(mysql, name))
return NULL;
if (plugin_nr == -1)
{
my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, SQLSTATE_UNKNOWN,
ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, "invalid type");
}
if ((p= find_plugin(name, type)))
return p;
/* not found, load it */
return mysql_load_plugin(mysql, name, type, 0);
} | O3 | c | mysql_client_find_plugin@libmariadbclient_18:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
leaq 0xa52b(%rip), %rcx # 0x3bcf0
cmpl %r15d, (%rax,%rcx)
je 0x31811
addq $0x8, %rax
cmpq $0x30, %rax
jne 0x317c5
cmpb $0x0, 0x1cf44(%rip) # 0x4e720
je 0x31847
leaq 0x1a56b(%rip), %rax # 0x4bd50
movq (%rax), %rdx
leaq 0x1a571(%rip), %rax # 0x4bd60
movq 0x1d8(%rax), %rcx
leaq 0x9a5b(%rip), %r9 # 0x3b258
movq %r14, %rdi
movl $0x80b, %esi # imm = 0x80B
movq %rbx, %r8
xorl %eax, %eax
callq 0x1cbd5
jmp 0x3181a
cmpb $0x0, 0x1cf08(%rip) # 0x4e720
je 0x31847
movq %rbx, %rdi
movl %r15d, %esi
callq 0x31423
movq %rax, %r12
testq %rax, %rax
jne 0x3187b
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17a20
leaq 0x1a502(%rip), %rax # 0x4bd50
movq (%rax), %rdx
leaq 0x1a508(%rip), %rax # 0x4bd60
movq 0x1d8(%rax), %rcx
leaq 0x9a5e(%rip), %r9 # 0x3b2c4
xorl %r12d, %r12d
movq %r14, %rdi
movl $0x80b, %esi # imm = 0x80B
movq %rbx, %r8
xorl %eax, %eax
callq 0x1cbd5
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
| mysql_client_find_plugin@libmariadbclient_18:
push rbp; Alternative name is 'mysql_client_find_plugin'
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15d, edx
mov rbx, rsi
mov r14, rdi
xor eax, eax
lea rcx, valid_plugins
loc_317C5:
cmp [rax+rcx], r15d
jz short loc_31811
add rax, 8
cmp rax, 30h ; '0'
jnz short loc_317C5
cmp cs:initialized, 0
jz short loc_31847
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
lea r9, aInvalidType; "invalid type"
mov rdi, r14
mov esi, 80Bh
mov r8, rbx
xor eax, eax
call my_set_error
jmp short loc_3181A
loc_31811:
cmp cs:initialized, 0
jz short loc_31847
loc_3181A:
mov rdi, rbx
mov esi, r15d
call find_plugin
mov r12, rax
test rax, rax
jnz short loc_3187B
mov rdi, r14
mov rsi, rbx
mov edx, r15d
xor ecx, ecx
xor eax, eax
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _mysql_load_plugin@libmariadbclient_18
loc_31847:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
lea r9, aNotInitialized; "not initialized"
xor r12d, r12d
mov rdi, r14
mov esi, 80Bh
mov r8, rbx
xor eax, eax
call my_set_error
loc_3187B:
mov rax, r12
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mysql_client_find_plugin_libmariadbclient_18(
long long a1,
long long a2,
int a3,
long long a4,
long long a5,
long long a6,
char a7)
{
long long v8; // rax
int v9; // r8d
int v10; // r9d
long long plugin; // r12
v8 = 0LL;
while ( valid_plugins[v8] != a3 )
{
v8 += 2LL;
if ( v8 == 12 )
{
if ( initialized )
{
my_set_error(a1, 2059, (long long)SQLSTATE_UNKNOWN, client_errors[59], a2, "invalid type");
goto LABEL_7;
}
LABEL_9:
plugin = 0LL;
my_set_error(a1, 2059, (long long)SQLSTATE_UNKNOWN, client_errors[59], a2, "not initialized");
return plugin;
}
}
if ( !initialized )
goto LABEL_9;
LABEL_7:
plugin = find_plugin(a2, a3);
if ( !plugin )
return mysql_load_plugin_libmariadbclient_18(a1, a2, a3, 0, v9, v10, a7);
return plugin;
}
| mysql_client_find_plugin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15D,EDX
MOV RBX,RSI
MOV R14,RDI
XOR EAX,EAX
LEA RCX,[0x13bcf0]
LAB_001317c5:
CMP dword ptr [RAX + RCX*0x1],R15D
JZ 0x00131811
ADD RAX,0x8
CMP RAX,0x30
JNZ 0x001317c5
CMP byte ptr [0x0014e720],0x0
JZ 0x00131847
LEA RAX,[0x14bd50]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x14bd60]
MOV RCX,qword ptr [RAX + 0x1d8]
LEA R9,[0x13b258]
MOV RDI,R14
MOV ESI,0x80b
MOV R8,RBX
XOR EAX,EAX
CALL 0x0011cbd5
JMP 0x0013181a
LAB_00131811:
CMP byte ptr [0x0014e720],0x0
JZ 0x00131847
LAB_0013181a:
MOV RDI,RBX
MOV ESI,R15D
CALL 0x00131423
MOV R12,RAX
TEST RAX,RAX
JNZ 0x0013187b
MOV RDI,R14
MOV RSI,RBX
MOV EDX,R15D
XOR ECX,ECX
XOR EAX,EAX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00117a20
LAB_00131847:
LEA RAX,[0x14bd50]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x14bd60]
MOV RCX,qword ptr [RAX + 0x1d8]
LEA R9,[0x13b2c4]
XOR R12D,R12D
MOV RDI,R14
MOV ESI,0x80b
MOV R8,RBX
XOR EAX,EAX
CALL 0x0011cbd5
LAB_0013187b:
MOV RAX,R12
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long mysql_client_find_plugin(int8 param_1,int8 param_2,int param_3)
{
long lVar1;
lVar1 = 0;
do {
if (*(int *)((long)&valid_plugins + lVar1) == param_3) {
if (initialized != '\0') goto LAB_0013181a;
goto LAB_00131847;
}
lVar1 = lVar1 + 8;
} while (lVar1 != 0x30);
if (initialized == '\0') {
LAB_00131847:
lVar1 = 0;
my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____0014bf38,
param_2,"not initialized");
}
else {
my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____0014bf38,
param_2,"invalid type");
LAB_0013181a:
lVar1 = find_plugin(param_2,param_3);
if (lVar1 == 0) {
lVar1 = mysql_load_plugin(param_1,param_2,param_3,0);
return lVar1;
}
}
return lVar1;
}
|
|
5,421 | void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>(sapphire_plugins::tube_unit::TubeUnitEditor&) | sapphire-plugins/src/shared/editor_interactions.h | inline void drainQueueFromUI(Ed &editor)
{
auto aum = editor.audioToUI.pop();
while (aum.has_value())
{
switch (aum->action)
{
case AudioToUIMsg::UPDATE_PARAM:
{
auto pid = aum->paramId;
auto val = aum->value;
auto p = editor.patchCopy.paramMap.at(pid);
if (p)
{
p->value = val;
auto val01 = (val - p->meta.minVal) / (p->meta.maxVal - p->meta.minVal);
auto sbi = editor.sliderByID.find(pid);
if (sbi != editor.sliderByID.end() && sbi->second)
{
sbi->second->setValue(val01, juce::dontSendNotification);
}
}
}
break;
case AudioToUIMsg::UPDATE_VU:
break;
}
aum = editor.audioToUI.pop();
}
} | O3 | c | void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>(sapphire_plugins::tube_unit::TubeUnitEditor&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x12c0(%rdi), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rax), %rcx
cmpq %rcx, %rsi
jne 0xf47fe
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movq %rsi, %rdi
shlq $0x4, %rdi
movl 0x18(%rax,%rdi), %edx
movl 0x1c(%rax,%rdi), %ecx
movss 0x20(%rax,%rdi), %xmm0
incl %esi
andl $0x3fff, %esi # imm = 0x3FFF
movq %rsi, 0x10(%rax)
leaq 0x110(%rbx), %r14
leaq 0x1228(%rbx), %r15
leaq 0x14(%rsp), %r12
leaq 0x4dbf8c(%rip), %r13 # 0x5d07c8
leaq 0x4e9845(%rip), %rbp # 0x5de088
testl %edx, %edx
jne 0xf48fd
movss %xmm0, 0x8(%rsp)
movl %ecx, 0x14(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xd9e94
testq %rax, %rax
je 0xf4934
movq 0x10(%rax), %rax
testq %rax, %rax
je 0xf48f6
movss 0x8(%rsp), %xmm0
movss %xmm0, (%rax)
movss 0x58(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x5c(%rax), %xmm0
movss %xmm0, 0x10(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xee1a6
testq %rax, %rax
je 0xf48f6
movq 0x10(%rax), %rax
testq %rax, %rax
je 0xf48f6
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0xf48f6
movq %r13, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x87c90
testq %rax, %rax
je 0xf48f6
movss 0x8(%rsp), %xmm0
movss 0xc(%rsp), %xmm2
subss %xmm2, %xmm0
movss 0x10(%rsp), %xmm1
subss %xmm2, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movq %rax, %rdi
xorl %esi, %esi
callq 0x16977e
movq 0x12c0(%rbx), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rax), %rcx
cmpq %rcx, %rsi
je 0xf47ef
movq %rsi, %rdi
shlq $0x4, %rdi
movl 0x18(%rax,%rdi), %edx
movl 0x1c(%rax,%rdi), %ecx
movss 0x20(%rax,%rdi), %xmm0
incl %esi
andl $0x3fff, %esi # imm = 0x3FFF
movq %rsi, 0x10(%rax)
jmp 0xf4843
leaq 0x2b132a(%rip), %rdi # 0x3a5c65
callq 0x87150
| _ZN16sapphire_plugins6shared16drainQueueFromUIINS_9tube_unit14TubeUnitEditorEEEvRT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rax, [rdi+12C0h]
mov rsi, [rax+10h]
mov rcx, [rax+8]
cmp rsi, rcx
jnz short loc_F47FE
loc_F47EF:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_F47FE:
mov rbx, rdi
mov rdi, rsi
shl rdi, 4
mov edx, [rax+rdi+18h]
mov ecx, [rax+rdi+1Ch]
movss xmm0, dword ptr [rax+rdi+20h]
inc esi
and esi, 3FFFh
mov [rax+10h], rsi
lea r14, [rbx+110h]
lea r15, [rbx+1228h]
lea r12, [rsp+48h+var_34]
lea r13, _ZTIN4juce9ComponentE; `typeinfo for'juce::Component
lea rbp, _ZTIN4juce6SliderE; `typeinfo for'juce::Slider
loc_F4843:
test edx, edx
jnz loc_F48FD
movss [rsp+48h+var_40], xmm0
mov [rsp+48h+var_34], ecx
mov rdi, r14
mov rsi, r12
call _ZNSt10_HashtableIjSt4pairIKjPN16sapphire_plugins6shared12ParamWithLagEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&)
test rax, rax
jz loc_F4934
mov rax, [rax+10h]
test rax, rax
jz loc_F48F6
movss xmm0, [rsp+48h+var_40]
movss dword ptr [rax], xmm0
movss xmm0, dword ptr [rax+58h]
movss [rsp+48h+var_3C], xmm0
movss xmm0, dword ptr [rax+5Ch]
movss [rsp+48h+var_38], xmm0
mov rdi, r15
mov rsi, r12
call _ZNSt10_HashtableIjSt4pairIKjN4juce9Component11SafePointerINS2_6SliderEEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<uint const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&)
test rax, rax
jz short loc_F48F6
mov rax, [rax+10h]
test rax, rax
jz short loc_F48F6
mov rdi, [rax+10h]; lpsrc
test rdi, rdi
jz short loc_F48F6
mov rsi, r13; lpstype
mov rdx, rbp; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz short loc_F48F6
movss xmm0, [rsp+48h+var_40]
movss xmm2, [rsp+48h+var_3C]
subss xmm0, xmm2
movss xmm1, [rsp+48h+var_38]
subss xmm1, xmm2
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
mov rdi, rax
xor esi, esi
call _ZN4juce6Slider8setValueEdNS_16NotificationTypeE; juce::Slider::setValue(double,juce::NotificationType)
loc_F48F6:
mov rax, [rbx+12C0h]
loc_F48FD:
mov rsi, [rax+10h]
mov rcx, [rax+8]
cmp rsi, rcx
jz loc_F47EF
mov rdi, rsi
shl rdi, 4
mov edx, [rax+rdi+18h]
mov ecx, [rax+rdi+1Ch]
movss xmm0, dword ptr [rax+rdi+20h]
inc esi
and esi, 3FFFh
mov [rax+10h], rsi
jmp loc_F4843
loc_F4934:
lea rdi, aMapBaseAt; "_Map_base::at"
call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
| long long sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>(long long *a1)
{
long long result; // rax
long long v2; // rsi
int v4; // edx
unsigned int v5; // ecx
float v6; // xmm0_4
long long *v7; // rax
float *v8; // rax
long long *v9; // rax
long long v10; // rax
const void *v11; // rdi
void *v12; // rax
long long v13; // rsi
float v14; // [rsp+Ch] [rbp-3Ch]
float v15; // [rsp+10h] [rbp-38h]
unsigned int v16[13]; // [rsp+14h] [rbp-34h] BYREF
result = a1[600];
v2 = *(_QWORD *)(result + 16);
if ( v2 != *(_QWORD *)(result + 8) )
{
v4 = *(_DWORD *)(result + 16 * v2 + 24);
v5 = *(_DWORD *)(result + 16 * v2 + 28);
v6 = *(float *)(result + 16 * v2 + 32);
for ( *(_QWORD *)(result + 16) = ((_WORD)v2 + 1) & 0x3FFF; ; *(_QWORD *)(result + 16) = ((_WORD)v13 + 1) & 0x3FFF )
{
if ( !v4 )
{
v16[0] = v5;
v7 = std::_Hashtable<unsigned int,std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(
a1 + 34,
v16);
if ( !v7 )
std::__throw_out_of_range("_Map_base::at");
v8 = (float *)v7[2];
if ( v8 )
{
*v8 = v6;
v14 = v8[22];
v15 = v8[23];
v9 = std::_Hashtable<unsigned int,std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(
a1 + 581,
v16);
if ( v9 )
{
v10 = v9[2];
if ( v10 )
{
v11 = *(const void **)(v10 + 16);
if ( v11 )
{
v12 = __dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'juce::Component,
(const struct __class_type_info *)&`typeinfo for'juce::Slider,
0LL);
if ( v12 )
juce::Slider::setValue(v12, 0LL, (float)((float)(v6 - v14) / (float)(v15 - v14)));
}
}
}
}
result = a1[600];
}
v13 = *(_QWORD *)(result + 16);
if ( v13 == *(_QWORD *)(result + 8) )
break;
v4 = *(_DWORD *)(result + 16 * v13 + 24);
v5 = *(_DWORD *)(result + 16 * v13 + 28);
v6 = *(float *)(result + 16 * v13 + 32);
}
}
return result;
}
| drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr [RDI + 0x12c0]
MOV RSI,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x8]
CMP RSI,RCX
JNZ 0x001f47fe
LAB_001f47ef:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001f47fe:
MOV RBX,RDI
MOV RDI,RSI
SHL RDI,0x4
MOV EDX,dword ptr [RAX + RDI*0x1 + 0x18]
MOV ECX,dword ptr [RAX + RDI*0x1 + 0x1c]
MOVSS XMM0,dword ptr [RAX + RDI*0x1 + 0x20]
INC ESI
AND ESI,0x3fff
MOV qword ptr [RAX + 0x10],RSI
LEA R14,[RBX + 0x110]
LEA R15,[RBX + 0x1228]
LEA R12,[RSP + 0x14]
LEA R13,[0x6d07c8]
LEA RBP,[0x6de088]
LAB_001f4843:
TEST EDX,EDX
JNZ 0x001f48fd
MOVSS dword ptr [RSP + 0x8],XMM0
MOV dword ptr [RSP + 0x14],ECX
MOV RDI,R14
MOV RSI,R12
CALL 0x001d9e94
TEST RAX,RAX
JZ 0x001f4934
MOV RAX,qword ptr [RAX + 0x10]
TEST RAX,RAX
JZ 0x001f48f6
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RAX],XMM0
MOVSS XMM0,dword ptr [RAX + 0x58]
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RAX + 0x5c]
MOVSS dword ptr [RSP + 0x10],XMM0
MOV RDI,R15
MOV RSI,R12
CALL 0x001ee1a6
TEST RAX,RAX
JZ 0x001f48f6
MOV RAX,qword ptr [RAX + 0x10]
TEST RAX,RAX
JZ 0x001f48f6
MOV RDI,qword ptr [RAX + 0x10]
TEST RDI,RDI
JZ 0x001f48f6
MOV RSI,R13
MOV RDX,RBP
XOR ECX,ECX
CALL 0x00187c90
TEST RAX,RAX
JZ 0x001f48f6
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS XMM2,dword ptr [RSP + 0xc]
SUBSS XMM0,XMM2
MOVSS XMM1,dword ptr [RSP + 0x10]
SUBSS XMM1,XMM2
DIVSS XMM0,XMM1
CVTSS2SD XMM0,XMM0
MOV RDI,RAX
XOR ESI,ESI
CALL 0x0026977e
LAB_001f48f6:
MOV RAX,qword ptr [RBX + 0x12c0]
LAB_001f48fd:
MOV RSI,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x8]
CMP RSI,RCX
JZ 0x001f47ef
MOV RDI,RSI
SHL RDI,0x4
MOV EDX,dword ptr [RAX + RDI*0x1 + 0x18]
MOV ECX,dword ptr [RAX + RDI*0x1 + 0x1c]
MOVSS XMM0,dword ptr [RAX + RDI*0x1 + 0x20]
INC ESI
AND ESI,0x3fff
MOV qword ptr [RAX + 0x10],RSI
JMP 0x001f4843
LAB_001f4934:
LEA RDI,[0x4a5c65]
CALL 0x00187150
|
/* void
sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>(sapphire_plugins::tube_unit::TubeUnitEditor&)
*/
void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::tube_unit::TubeUnitEditor>
(TubeUnitEditor *param_1)
{
float fVar1;
float fVar2;
float *pfVar3;
long lVar4;
long lVar5;
int iVar6;
long lVar7;
float fVar8;
uint local_34;
lVar5 = *(long *)(param_1 + 0x12c0);
lVar4 = *(long *)(lVar5 + 0x10);
if (lVar4 != *(long *)(lVar5 + 8)) {
lVar7 = lVar4 * 0x10;
iVar6 = *(int *)(lVar5 + 0x18 + lVar7);
local_34 = *(uint *)(lVar5 + 0x1c + lVar7);
fVar8 = *(float *)(lVar5 + 0x20 + lVar7);
*(ulong *)(lVar5 + 0x10) = (ulong)((int)lVar4 + 1U & 0x3fff);
while( true ) {
if (iVar6 == 0) {
lVar4 = std::
_Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
*)(param_1 + 0x110),&local_34);
if (lVar4 == 0) {
/* WARNING: Subroutine does not return */
std::__throw_out_of_range("_Map_base::at");
}
pfVar3 = *(float **)(lVar4 + 0x10);
if (pfVar3 != (float *)0x0) {
*pfVar3 = fVar8;
fVar1 = pfVar3[0x16];
fVar2 = pfVar3[0x17];
lVar4 = std::
_Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
*)(param_1 + 0x1228),&local_34);
if (((lVar4 != 0) && (*(long *)(lVar4 + 0x10) != 0)) &&
(lVar4 = *(long *)(*(long *)(lVar4 + 0x10) + 0x10), lVar4 != 0)) {
lVar4 = __dynamic_cast(lVar4,&juce::Component::typeinfo,&juce::Slider::typeinfo,0);
if (lVar4 != 0) {
juce::Slider::setValue((double)((fVar8 - fVar1) / (fVar2 - fVar1)),lVar4,0);
}
}
}
lVar5 = *(long *)(param_1 + 0x12c0);
}
lVar4 = *(long *)(lVar5 + 0x10);
if (lVar4 == *(long *)(lVar5 + 8)) break;
lVar7 = lVar4 * 0x10;
iVar6 = *(int *)(lVar5 + 0x18 + lVar7);
local_34 = *(uint *)(lVar5 + 0x1c + lVar7);
fVar8 = *(float *)(lVar5 + 0x20 + lVar7);
*(ulong *)(lVar5 + 0x10) = (ulong)((int)lVar4 + 1U & 0x3fff);
}
}
return;
}
|
|
5,422 | my_strnncoll_latin1_de | eloqsql/strings/ctype-latin1.c | static int my_strnncoll_latin1_de(CHARSET_INFO *cs __attribute__((unused)),
const uchar *a, size_t a_length,
const uchar *b, size_t b_length,
my_bool b_is_prefix)
{
const uchar *a_end= a + a_length;
const uchar *b_end= b + b_length;
uchar a_char, a_extend= 0, b_char, b_extend= 0;
while ((a < a_end || a_extend) && (b < b_end || b_extend))
{
if (a_extend)
{
a_char=a_extend; a_extend=0;
}
else
{
a_extend=combo2map[*a];
a_char=combo1map[*a++];
}
if (b_extend)
{
b_char=b_extend; b_extend=0;
}
else
{
b_extend=combo2map[*b];
b_char=combo1map[*b++];
}
if (a_char != b_char)
return (int) a_char - (int) b_char;
}
/*
A simple test of string lengths won't work -- we test to see
which string ran out first
*/
return ((a < a_end || a_extend) ? (b_is_prefix ? 0 : 1) :
(b < b_end || b_extend) ? -1 : 0);
} | O0 | c | my_strnncoll_latin1_de:
pushq %rbp
movq %rsp, %rbp
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movb $0x0, -0x4a(%rbp)
movb $0x0, -0x4c(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x40(%rbp), %rax
jb 0x489d6
movzbl -0x4a(%rbp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x4d(%rbp)
je 0x489f8
movq -0x28(%rbp), %rcx
movb $0x1, %al
cmpq -0x48(%rbp), %rcx
movb %al, -0x4e(%rbp)
jb 0x489f2
movzbl -0x4c(%rbp), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x4e(%rbp)
movb -0x4e(%rbp), %al
movb %al, -0x4d(%rbp)
movb -0x4d(%rbp), %al
testb $0x1, %al
jne 0x48a04
jmp 0x48ab6
cmpb $0x0, -0x4a(%rbp)
je 0x48a16
movb -0x4a(%rbp), %al
movb %al, -0x49(%rbp)
movb $0x0, -0x4a(%rbp)
jmp 0x48a4d
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1009ba(%rip), %rax # 0x1493e0
movb (%rax,%rcx), %al
movb %al, -0x4a(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x100899(%rip), %rax # 0x1492e0
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
cmpb $0x0, -0x4c(%rbp)
je 0x48a5f
movb -0x4c(%rbp), %al
movb %al, -0x4b(%rbp)
movb $0x0, -0x4c(%rbp)
jmp 0x48a96
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x100971(%rip), %rax # 0x1493e0
movb (%rax,%rcx), %al
movb %al, -0x4c(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x100850(%rip), %rax # 0x1492e0
movb (%rax,%rcx), %al
movb %al, -0x4b(%rbp)
movzbl -0x49(%rbp), %eax
movzbl -0x4b(%rbp), %ecx
cmpl %ecx, %eax
je 0x48ab1
movzbl -0x49(%rbp), %eax
movzbl -0x4b(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x48b14
jmp 0x489be
movq -0x18(%rbp), %rax
cmpq -0x40(%rbp), %rax
jb 0x48ac9
movzbl -0x4a(%rbp), %eax
cmpl $0x0, %eax
je 0x48adf
movsbl -0x31(%rbp), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
jmp 0x48b0e
movq -0x28(%rbp), %rcx
movb $0x1, %al
cmpq -0x48(%rbp), %rcx
movb %al, -0x55(%rbp)
jb 0x48afb
movzbl -0x4c(%rbp), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x55(%rbp)
movb -0x55(%rbp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| my_strnncoll_latin1_de:
push rbp
mov rbp, rsp
mov al, r9b
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_31], al
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_48], rax
mov [rbp+var_4A], 0
mov [rbp+var_4C], 0
loc_489BE:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_40]
jb short loc_489D6
movzx ecx, [rbp+var_4A]
xor eax, eax
cmp ecx, 0
mov [rbp+var_4D], al
jz short loc_489F8
loc_489D6:
mov rcx, [rbp+var_28]
mov al, 1
cmp rcx, [rbp+var_48]
mov [rbp+var_4E], al
jb short loc_489F2
movzx eax, [rbp+var_4C]
cmp eax, 0
setnz al
mov [rbp+var_4E], al
loc_489F2:
mov al, [rbp+var_4E]
mov [rbp+var_4D], al
loc_489F8:
mov al, [rbp+var_4D]
test al, 1
jnz short loc_48A04
jmp loc_48AB6
loc_48A04:
cmp [rbp+var_4A], 0
jz short loc_48A16
mov al, [rbp+var_4A]
mov [rbp+var_49], al
mov [rbp+var_4A], 0
jmp short loc_48A4D
loc_48A16:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_4A], al
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_49], al
loc_48A4D:
cmp [rbp+var_4C], 0
jz short loc_48A5F
mov al, [rbp+var_4C]
mov [rbp+var_4B], al
mov [rbp+var_4C], 0
jmp short loc_48A96
loc_48A5F:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_4C], al
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_4B], al
loc_48A96:
movzx eax, [rbp+var_49]
movzx ecx, [rbp+var_4B]
cmp eax, ecx
jz short loc_48AB1
movzx eax, [rbp+var_49]
movzx ecx, [rbp+var_4B]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_48B14
loc_48AB1:
jmp loc_489BE
loc_48AB6:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_40]
jb short loc_48AC9
movzx eax, [rbp+var_4A]
cmp eax, 0
jz short loc_48ADF
loc_48AC9:
movsx edx, [rbp+var_31]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_54], eax
jmp short loc_48B0E
loc_48ADF:
mov rcx, [rbp+var_28]
mov al, 1
cmp rcx, [rbp+var_48]
mov [rbp+var_55], al
jb short loc_48AFB
movzx eax, [rbp+var_4C]
cmp eax, 0
setnz al
mov [rbp+var_55], al
loc_48AFB:
mov dl, [rbp+var_55]
xor eax, eax
mov ecx, 0FFFFFFFFh
test dl, 1
cmovnz eax, ecx
mov [rbp+var_54], eax
loc_48B0E:
mov eax, [rbp+var_54]
mov [rbp+var_4], eax
loc_48B14:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_strnncoll_latin1_de(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
char a6)
{
unsigned __int8 *v6; // rax
unsigned __int8 *v7; // rax
unsigned int v8; // eax
bool v10; // [rsp+1h] [rbp-55h]
bool v12; // [rsp+8h] [rbp-4Eh]
bool v13; // [rsp+9h] [rbp-4Dh]
unsigned __int8 v14; // [rsp+Ah] [rbp-4Ch]
unsigned __int8 v15; // [rsp+Bh] [rbp-4Bh]
unsigned __int8 v16; // [rsp+Ch] [rbp-4Ah]
unsigned __int8 v17; // [rsp+Dh] [rbp-49h]
unsigned long long v18; // [rsp+Eh] [rbp-48h]
unsigned long long v19; // [rsp+16h] [rbp-40h]
unsigned __int8 *v20; // [rsp+2Eh] [rbp-28h]
unsigned __int8 *v21; // [rsp+3Eh] [rbp-18h]
v21 = a2;
v20 = a4;
v19 = (unsigned long long)&a2[a3];
v18 = (unsigned long long)&a4[a5];
v16 = 0;
v14 = 0;
while ( 1 )
{
if ( (unsigned long long)v21 < v19 || (v13 = 0, v16) )
{
v12 = 1;
if ( (unsigned long long)v20 >= v18 )
v12 = v14 != 0;
v13 = v12;
}
if ( !v13 )
break;
if ( v16 )
{
v17 = v16;
v16 = 0;
}
else
{
v16 = combo2map[*v21];
v6 = v21++;
v17 = combo1map[*v6];
}
if ( v14 )
{
v15 = v14;
v14 = 0;
}
else
{
v14 = combo2map[*v20];
v7 = v20++;
v15 = combo1map[*v7];
}
if ( v17 != v15 )
return (unsigned int)(v17 - v15);
}
if ( (unsigned long long)v21 < v19 || v16 )
{
return a6 == 0;
}
else
{
v10 = 1;
if ( (unsigned long long)v20 >= v18 )
v10 = v14 != 0;
v8 = 0;
if ( v10 )
v8 = -1;
return v8;
}
}
| my_strnncoll_latin1_de:
PUSH RBP
MOV RBP,RSP
MOV AL,R9B
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 byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV byte ptr [RBP + -0x4a],0x0
MOV byte ptr [RBP + -0x4c],0x0
LAB_001489be:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x40]
JC 0x001489d6
MOVZX ECX,byte ptr [RBP + -0x4a]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x4d],AL
JZ 0x001489f8
LAB_001489d6:
MOV RCX,qword ptr [RBP + -0x28]
MOV AL,0x1
CMP RCX,qword ptr [RBP + -0x48]
MOV byte ptr [RBP + -0x4e],AL
JC 0x001489f2
MOVZX EAX,byte ptr [RBP + -0x4c]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x4e],AL
LAB_001489f2:
MOV AL,byte ptr [RBP + -0x4e]
MOV byte ptr [RBP + -0x4d],AL
LAB_001489f8:
MOV AL,byte ptr [RBP + -0x4d]
TEST AL,0x1
JNZ 0x00148a04
JMP 0x00148ab6
LAB_00148a04:
CMP byte ptr [RBP + -0x4a],0x0
JZ 0x00148a16
MOV AL,byte ptr [RBP + -0x4a]
MOV byte ptr [RBP + -0x49],AL
MOV byte ptr [RBP + -0x4a],0x0
JMP 0x00148a4d
LAB_00148a16:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2493e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x4a],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2492e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
LAB_00148a4d:
CMP byte ptr [RBP + -0x4c],0x0
JZ 0x00148a5f
MOV AL,byte ptr [RBP + -0x4c]
MOV byte ptr [RBP + -0x4b],AL
MOV byte ptr [RBP + -0x4c],0x0
JMP 0x00148a96
LAB_00148a5f:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2493e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x4c],AL
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2492e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x4b],AL
LAB_00148a96:
MOVZX EAX,byte ptr [RBP + -0x49]
MOVZX ECX,byte ptr [RBP + -0x4b]
CMP EAX,ECX
JZ 0x00148ab1
MOVZX EAX,byte ptr [RBP + -0x49]
MOVZX ECX,byte ptr [RBP + -0x4b]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00148b14
LAB_00148ab1:
JMP 0x001489be
LAB_00148ab6:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x40]
JC 0x00148ac9
MOVZX EAX,byte ptr [RBP + -0x4a]
CMP EAX,0x0
JZ 0x00148adf
LAB_00148ac9:
MOVSX EDX,byte ptr [RBP + -0x31]
MOV EAX,0x1
XOR ECX,ECX
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
JMP 0x00148b0e
LAB_00148adf:
MOV RCX,qword ptr [RBP + -0x28]
MOV AL,0x1
CMP RCX,qword ptr [RBP + -0x48]
MOV byte ptr [RBP + -0x55],AL
JC 0x00148afb
MOVZX EAX,byte ptr [RBP + -0x4c]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x55],AL
LAB_00148afb:
MOV DL,byte ptr [RBP + -0x55]
XOR EAX,EAX
MOV ECX,0xffffffff
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
LAB_00148b0e:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x4],EAX
LAB_00148b14:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint my_strnncoll_latin1_de
(int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5,
char param_6)
{
uint local_5c;
bool local_56;
byte local_54;
byte local_53;
byte local_52;
byte local_51;
byte *local_30;
byte *local_20;
local_52 = 0;
local_54 = 0;
local_30 = param_4;
local_20 = param_2;
do {
if ((local_20 < param_2 + param_3) || (local_56 = false, local_52 != 0)) {
local_56 = local_30 < param_4 + param_5 || local_54 != 0;
}
if (!local_56) {
if ((local_20 < param_2 + param_3) || (local_52 != 0)) {
local_5c = (uint)(param_6 == '\0');
}
else {
local_5c = 0;
if (local_30 < param_4 + param_5 || local_54 != 0) {
local_5c = 0xffffffff;
}
}
return local_5c;
}
if (local_52 == 0) {
local_52 = combo2map[*local_20];
local_51 = combo1map[*local_20];
local_20 = local_20 + 1;
}
else {
local_51 = local_52;
local_52 = 0;
}
if (local_54 == 0) {
local_54 = combo2map[*local_30];
local_53 = combo1map[*local_30];
local_30 = local_30 + 1;
}
else {
local_53 = local_54;
local_54 = 0;
}
} while (local_51 == local_53);
return (uint)local_51 - (uint)local_53;
}
|
|
5,423 | 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>>::~json_sax_dom_callback_parser() | monkey531[P]llama/common/json.hpp | ~json_sax_dom_callback_parser() = default; | O3 | 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>>::~json_sax_dom_callback_parser():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa8(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5c5ee
movq %r14, %rdi
callq 0x61a6a
movq 0x90(%rbx), %rax
testq %rax, %rax
je 0x5eda5
leaq 0x80(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x48(%rbx), %rdi
callq 0x5fe10
leaq 0x20(%rbx), %rdi
callq 0x5fe10
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x5edd3
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1ba60
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x5eddf
jmp 0x5eddf
movq %rax, %rdi
callq 0x2445b
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea r14, [rdi+0A8h]
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 rax, [rbx+90h]
test rax, rax
jz short loc_5EDA5
lea rdi, [rbx+80h]
mov rsi, rdi
mov edx, 3
call rax
loc_5EDA5:
lea rdi, [rbx+48h]
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
lea rdi, [rbx+20h]
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
mov rdi, [rbx+8]; void *
test rdi, rdi
jz short loc_5EDD3
mov rsi, [rbx+18h]
sub rsi, rdi; unsigned __int64
add rsp, 8
pop rbx
pop r14
jmp __ZdlPvm; operator delete(void *,ulong)
loc_5EDD3:
add rsp, 8
pop rbx
pop r14
retn
jmp short loc_5EDDF
jmp short $+2
loc_5EDDF:
mov rdi, rax
call __clang_call_terminate
| void nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,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 a1)
{
long long v2; // rsi
void ( *v3)(long long, long long, long long); // rax
void *v4; // rdi
v2 = 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 + 168));
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(a1 + 168);
v3 = *(void ( **)(long long, long long, long long))(a1 + 144);
if ( v3 )
{
v2 = a1 + 128;
v3(a1 + 128, a1 + 128, 3LL);
}
std::_Bvector_base<std::allocator<bool>>::_M_deallocate(a1 + 72, v2);
std::_Bvector_base<std::allocator<bool>>::_M_deallocate(a1 + 32, v2);
v4 = *(void **)(a1 + 8);
if ( v4 )
operator delete(v4, *(_QWORD *)(a1 + 24) - (_QWORD)v4);
}
| ~json_sax_dom_callback_parser:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[RDI + 0xa8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015c5ee
MOV RDI,R14
CALL 0x00161a6a
MOV RAX,qword ptr [RBX + 0x90]
TEST RAX,RAX
JZ 0x0015eda5
LEA RDI,[RBX + 0x80]
LAB_0015ed9b:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0015eda5:
LEA RDI,[RBX + 0x48]
LAB_0015eda9:
CALL 0x0015fe10
LEA RDI,[RBX + 0x20]
LAB_0015edb2:
CALL 0x0015fe10
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0015edd3
MOV RSI,qword ptr [RBX + 0x18]
SUB RSI,RDI
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011ba60
LAB_0015edd3:
ADD RSP,0x8
POP RBX
POP R14
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> >::~json_sax_dom_callback_parser() */
void __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>>
::~json_sax_dom_callback_parser
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
void *pvVar1;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)(this + 0xa8),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>
::data::~data((data *)(this + 0xa8));
if (*(code **)(this + 0x90) != (code *)0x0) {
/* try { // try from 0015ed9b to 0015eda4 has its CatchHandler @ 0015eddb */
(**(code **)(this + 0x90))(this + 0x80,this + 0x80,3);
}
/* try { // try from 0015eda9 to 0015edad has its CatchHandler @ 0015eddf */
std::_Bvector_base<std::allocator<bool>>::_M_deallocate
((_Bvector_base<std::allocator<bool>> *)(this + 0x48));
/* try { // try from 0015edb2 to 0015edb6 has its CatchHandler @ 0015eddd */
std::_Bvector_base<std::allocator<bool>>::_M_deallocate
((_Bvector_base<std::allocator<bool>> *)(this + 0x20));
pvVar1 = *(void **)(this + 8);
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,*(long *)(this + 0x18) - (long)pvVar1);
return;
}
return;
}
|
|
5,424 | my_wc_mb_cp932 | eloqsql/strings/ctype-cp932.c | static int
my_wc_mb_cp932(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */
{
/*
This branch is for performance purposes on ASCII range,
to avoid using unicode_to_cp932[]: about 10% improvement.
*/
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= (uchar) wc;
return 1;
}
if (wc > 0xFFFF ||
!(code= unicode_to_cp932[wc])) /* Bad Unicode code point */
return MY_CS_ILUNI;
if (code <= 0xFF)
{
/* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= code;
return 1;
}
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, code); /* JIS-X-0208(MS) */
return 2;
} | O0 | c | my_wc_mb_cp932:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x80, %eax
jge 0x368fd
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x368e5
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x36994
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x36994
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
ja 0x3691e
movq -0x18(%rbp), %rcx
leaq 0x7d03e(%rip), %rax # 0xb3950
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jne 0x36927
movl $0x0, -0x4(%rbp)
jmp 0x36994
cmpl $0xff, -0x2c(%rbp)
jg 0x36957
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x36943
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x36994
movl -0x2c(%rbp), %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x36994
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x3696e
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x36994
movl -0x2c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| my_wc_mb_cp932:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
cmp eax, 80h
jge short loc_368FD
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_368E5
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_36994
loc_368E5:
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp loc_36994
loc_368FD:
cmp [rbp+var_18], 0FFFFh
ja short loc_3691E
mov rcx, [rbp+var_18]
lea rax, unicode_to_cp932
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_2C], eax
cmp eax, 0
jnz short loc_36927
loc_3691E:
mov [rbp+var_4], 0
jmp short loc_36994
loc_36927:
cmp [rbp+var_2C], 0FFh
jg short loc_36957
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_36943
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_36994
loc_36943:
mov eax, [rbp+var_2C]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp short loc_36994
loc_36957:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_3696E
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_36994
loc_3696E:
mov eax, [rbp+var_2C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov eax, [rbp+var_2C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
loc_36994:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_cp932(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
unsigned __int16 v5; // [rsp+0h] [rbp-2Ch]
if ( (int)a2 >= 128 )
{
if ( a2 <= 0xFFFF && (v5 = unicode_to_cp932[a2]) != 0 )
{
if ( unicode_to_cp932[a2] > 0xFFu )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = HIBYTE(v5);
a3[1] = v5;
return 2;
}
else
{
return (unsigned int)-102;
}
}
else if ( (unsigned long long)a3 < a4 )
{
*a3 = v5;
return 1;
}
else
{
return (unsigned int)-101;
}
}
else
{
return 0;
}
}
else if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1;
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_cp932:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP EAX,0x80
JGE 0x001368fd
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001368e5
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00136994
LAB_001368e5:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00136994
LAB_001368fd:
CMP qword ptr [RBP + -0x18],0xffff
JA 0x0013691e
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x1b3950]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JNZ 0x00136927
LAB_0013691e:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00136994
LAB_00136927:
CMP dword ptr [RBP + -0x2c],0xff
JG 0x00136957
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00136943
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00136994
LAB_00136943:
MOV EAX,dword ptr [RBP + -0x2c]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00136994
LAB_00136957:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0013696e
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00136994
LAB_0013696e:
MOV EAX,dword ptr [RBP + -0x2c]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
LAB_00136994:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_wc_mb_cp932(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
ushort uVar1;
int4 local_c;
if ((int)param_2 < 0x80) {
if (param_3 < param_4) {
*param_3 = (char)param_2;
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
}
else if ((param_2 < 0x10000) && (uVar1 = *(ushort *)(unicode_to_cp932 + param_2 * 2), uVar1 != 0))
{
if (uVar1 < 0x100) {
if (param_3 < param_4) {
*param_3 = (char)uVar1;
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
*param_3 = (char)(uVar1 >> 8);
param_3[1] = (char)uVar1;
local_c = 2;
}
}
else {
local_c = 0;
}
return local_c;
}
|
|
5,425 | testing::Test::HasNonfatalFailure() | seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc | bool Test::HasNonfatalFailure() {
return internal::GetUnitTestImpl()
->current_test_result()
->HasNonfatalFailure();
} | O3 | cpp | testing::Test::HasNonfatalFailure():
pushq %rax
callq 0x1cf0a
movq 0x4139683(%rip), %rcx # 0x415df60
movq 0x170(%rcx), %rax
testq %rax, %rax
je 0x248f1
addq $0x90, %rax
jmp 0x2490f
movq 0x168(%rcx), %rax
testq %rax, %rax
je 0x24905
addq $0x88, %rax
jmp 0x2490f
addq $0x178, %rcx # imm = 0x178
movq %rcx, %rax
movq 0x38(%rax), %rcx
movq 0x40(%rax), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
je 0x24937
xorl %esi, %esi
cmpl $0x1, (%rcx)
sete %sil
addl %esi, %eax
addq $0x70, %rcx
cmpq %rdx, %rcx
jne 0x2491e
testl %eax, %eax
setne %al
popq %rcx
retq
nop
| _ZN7testing4Test18HasNonfatalFailureEv:
push rax
call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void)
mov rcx, cs:qword_415DF60
mov rax, [rcx+170h]
test rax, rax
jz short loc_248F1
add rax, 90h
jmp short loc_2490F
loc_248F1:
mov rax, [rcx+168h]
test rax, rax
jz short loc_24905
add rax, 88h
jmp short loc_2490F
loc_24905:
add rcx, 178h
mov rax, rcx
loc_2490F:
mov rcx, [rax+38h]
mov rdx, [rax+40h]
xor eax, eax
cmp rcx, rdx
jz short loc_24937
loc_2491E:
xor esi, esi
cmp dword ptr [rcx], 1
setz sil
add eax, esi
add rcx, 70h ; 'p'
cmp rcx, rdx
jnz short loc_2491E
test eax, eax
setnz al
loc_24937:
pop rcx
retn
| char testing::Test::HasNonfatalFailure(testing::Test *this)
{
long long v1; // rax
char *v2; // rax
long long v3; // rax
_DWORD *v4; // rcx
_DWORD *v5; // rdx
int v6; // eax
testing::UnitTest::GetInstance(this);
v1 = *((_QWORD *)qword_415DF60 + 46);
if ( v1 )
{
v2 = (char *)(v1 + 144);
}
else
{
v3 = *((_QWORD *)qword_415DF60 + 45);
if ( v3 )
v2 = (char *)(v3 + 136);
else
v2 = (char *)qword_415DF60 + 376;
}
v4 = (_DWORD *)*((_QWORD *)v2 + 7);
v5 = (_DWORD *)*((_QWORD *)v2 + 8);
v6 = 0;
if ( v4 != v5 )
{
do
{
v6 += *v4 == 1;
v4 += 28;
}
while ( v4 != v5 );
LOBYTE(v6) = v6 != 0;
}
return v6;
}
| HasNonfatalFailure:
PUSH RAX
CALL 0x0011cf0a
MOV RCX,qword ptr [0x0425df60]
MOV RAX,qword ptr [RCX + 0x170]
TEST RAX,RAX
JZ 0x001248f1
ADD RAX,0x90
JMP 0x0012490f
LAB_001248f1:
MOV RAX,qword ptr [RCX + 0x168]
TEST RAX,RAX
JZ 0x00124905
ADD RAX,0x88
JMP 0x0012490f
LAB_00124905:
ADD RCX,0x178
MOV RAX,RCX
LAB_0012490f:
MOV RCX,qword ptr [RAX + 0x38]
MOV RDX,qword ptr [RAX + 0x40]
XOR EAX,EAX
CMP RCX,RDX
JZ 0x00124937
LAB_0012491e:
XOR ESI,ESI
CMP dword ptr [RCX],0x1
SETZ SIL
ADD EAX,ESI
ADD RCX,0x70
CMP RCX,RDX
JNZ 0x0012491e
TEST EAX,EAX
SETNZ AL
LAB_00124937:
POP RCX
RET
|
/* testing::Test::HasNonfatalFailure() */
int testing::Test::HasNonfatalFailure(void)
{
int iVar1;
long lVar2;
int *piVar3;
UnitTest::GetInstance();
if (*(long *)(UnitTest::GetInstance()::instance._64_8_ + 0x170) == 0) {
if (*(long *)(UnitTest::GetInstance()::instance._64_8_ + 0x168) == 0) {
lVar2 = UnitTest::GetInstance()::instance._64_8_ + 0x178;
}
else {
lVar2 = *(long *)(UnitTest::GetInstance()::instance._64_8_ + 0x168) + 0x88;
}
}
else {
lVar2 = *(long *)(UnitTest::GetInstance()::instance._64_8_ + 0x170) + 0x90;
}
piVar3 = *(int **)(lVar2 + 0x38);
iVar1 = 0;
if (piVar3 != *(int **)(lVar2 + 0x40)) {
do {
iVar1 = iVar1 + (uint)(*piVar3 == 1);
piVar3 = piVar3 + 0x1c;
} while (piVar3 != *(int **)(lVar2 + 0x40));
iVar1 = CONCAT31((int3)((uint)iVar1 >> 8),iVar1 != 0);
}
return iVar1;
}
|
|
5,426 | action_r_set | qoraal-tictactoe/build_O0/_deps/qoraal_engine-src/src/parts/engine.c | int32_t
action_r_set (PENGINE_T instance, uint32_t parm, uint32_t flags)
{
int32_t value ;
if (flags & (PART_ACTION_FLAG_VALIDATE)) {
return parts_valadate_int (instance, parm, flags, 0, ENGINE_REGISTER_COUNT-1) ;
}
value = parts_get_int (instance, parm, flags, 0, ENGINE_REGISTER_COUNT-1) ;
engine_set_variable (instance, value, 1) ;
return ENGINE_OK ;
} | O0 | c | action_r_set:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x7ed9
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x91b0
movl %eax, -0x4(%rbp)
jmp 0x7f0b
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x92f0
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl $0x1, %edx
callq 0x13550
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| action_r_set:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov eax, [rbp+var_18]
and eax, 1
cmp eax, 0
jz short loc_7ED9
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
xor ecx, ecx
mov r8d, 4
call parts_valadate_int
mov [rbp+var_4], eax
jmp short loc_7F0B
loc_7ED9:
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
xor ecx, ecx
mov r8d, 4
call parts_get_int
mov [rbp+var_1C], eax
mov rdi, [rbp+var_10]
mov esi, [rbp+var_1C]
mov edx, 1
call engine_set_variable
mov [rbp+var_4], 0
loc_7F0B:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long action_r_set(long long a1, unsigned int a2, unsigned int a3)
{
unsigned int v4; // [rsp+4h] [rbp-1Ch]
if ( (a3 & 1) != 0 )
{
return (unsigned int)parts_valadate_int(a1, a2, a3, 0LL, 4LL);
}
else
{
v4 = parts_get_int(a1, a2, a3, 0LL, 4LL);
engine_set_variable(a1, v4, 1LL);
return 0;
}
}
| action_r_set:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00107ed9
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
XOR ECX,ECX
MOV R8D,0x4
CALL 0x001091b0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00107f0b
LAB_00107ed9:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
XOR ECX,ECX
MOV R8D,0x4
CALL 0x001092f0
MOV dword ptr [RBP + -0x1c],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,0x1
CALL 0x00113550
MOV dword ptr [RBP + -0x4],0x0
LAB_00107f0b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 action_r_set(int8 param_1,int4 param_2,uint param_3)
{
int4 uVar1;
int4 local_c;
if ((param_3 & 1) == 0) {
uVar1 = parts_get_int(param_1,param_2,param_3,0,4);
engine_set_variable(param_1,uVar1,1);
local_c = 0;
}
else {
local_c = parts_valadate_int(param_1,param_2,param_3,0,4);
}
return local_c;
}
|
|
5,427 | common_log::add(ggml_log_level, char const*, __va_list_tag*) | monkey531[P]llama/common/log.cpp | void add(enum ggml_log_level level, const char * fmt, va_list args) {
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
// discard messages while the worker thread is paused
return;
}
auto & entry = entries[tail];
{
// cannot use args twice, so make a copy in case we need to expand the buffer
va_list args_copy;
va_copy(args_copy, args);
#if 1
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy);
}
#else
// hack for bolding arguments
std::stringstream ss;
for (int i = 0; fmt[i] != 0; i++) {
if (fmt[i] == '%') {
ss << LOG_COL_BOLD;
while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++];
ss << LOG_COL_DEFAULT;
if (fmt[i] == 0) break;
}
ss << fmt[i];
}
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy);
}
#endif
va_end(args_copy);
}
entry.level = level;
entry.prefix = prefix;
entry.timestamp = 0;
if (timestamps) {
entry.timestamp = t_us() - t_start;
}
entry.is_end = false;
tail = (tail + 1) % entries.size();
if (tail == head) {
// expand the buffer
std::vector<common_log_entry> new_entries(2*entries.size());
size_t new_tail = 0;
do {
new_entries[new_tail] = std::move(entries[head]);
head = (head + 1) % entries.size();
new_tail = (new_tail + 1);
} while (head != tail);
head = 0;
tail = new_tail;
for (size_t i = tail; i < new_entries.size(); i++) {
new_entries[i].msg.resize(256);
}
entries = std::move(new_entries);
}
cv.notify_one();
} | O1 | cpp | common_log::add(ggml_log_level, char const*, __va_list_tag*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1bf20
testl %eax, %eax
jne 0xd0945
cmpb $0x1, 0x6a(%rbx)
jne 0xd092e
movl %ebp, 0xc(%rsp)
movq 0x78(%rbx), %r13
movq 0x98(%rbx), %rax
leaq (%rax,%rax,2), %rbp
shlq $0x4, %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%r13,%rbp), %rdi
movq 0x18(%r13,%rbp), %rsi
subq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1c488
movslq %eax, %rsi
movq 0x18(%r13,%rbp), %rax
subq 0x10(%r13,%rbp), %rax
cmpq %rsi, %rax
ja 0xd0730
leaq 0x10(,%rbp), %rdi
addq %r13, %rdi
incq %rsi
callq 0x824fe
movq 0x10(%r12), %rdi
movq 0x18(%r12), %rsi
subq %rdi, %rsi
leaq 0x30(%rsp), %rcx
movq %r14, %rdx
callq 0x1c488
movl 0xc(%rsp), %eax
movl %eax, (%r12)
movb 0x68(%rbx), %al
movb %al, 0x4(%r12)
movq $0x0, 0x8(%r12)
cmpb $0x1, 0x69(%rbx)
jne 0xd0778
callq 0x1b090
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
subq 0x70(%rbx), %rdx
movq %rdx, 0x8(%r12)
movb $0x0, 0x28(%r12)
movq 0x80(%rbx), %rsi
movq 0x98(%rbx), %rax
incq %rax
subq 0x78(%rbx), %rsi
sarq $0x4, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
xorl %edx, %edx
divq %rsi
movq %rdx, 0x98(%rbx)
cmpq 0x90(%rbx), %rdx
jne 0xd0925
addq %rsi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbx, (%rsp)
callq 0xd13be
movl $0x10, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
movq 0x78(%rbx), %rax
movq 0x90(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq 0x10(%rsp), %r15
movq %r14, %rbx
leaq (%rax,%rcx), %r14
addq $0x10, %r14
movups -0x10(%r14), %xmm0
movups %xmm0, (%r15,%rbp)
leaq (%r15,%r12), %rdi
movq %r14, %rsi
callq 0xd144a
movb 0x18(%r14), %al
movq %rbx, %r14
movq (%rsp), %rbx
movb %al, 0x28(%r15,%rbp)
movq 0x80(%rbx), %rcx
movq 0x90(%rbx), %rax
incq %rax
subq 0x78(%rbx), %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, 0x90(%rbx)
incq %r13
addq $0x30, %r12
addq $0x30, %rbp
cmpq 0x98(%rbx), %rdx
jne 0xd07df
movq $0x0, 0x90(%rbx)
movq %r13, 0x98(%rbx)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x4, %rax
imulq %r14, %rax
cmpq %rax, %r13
jae 0xd08c6
addq %r12, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x824fe
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x4, %rax
imulq %r14, %rax
addq $0x30, %r12
jmp 0xd0893
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movups 0x78(%rbx), %xmm0
movq 0x88(%rbx), %rdx
movq %rdi, 0x78(%rbx)
movq %rcx, 0x80(%rbx)
leaq 0x10(%rsp), %r14
movq 0x10(%r14), %rcx
movq %rcx, 0x88(%rbx)
movq 0x10(%rax), %rcx
movq %rdx, 0x10(%rax)
movaps (%rax), %xmm1
movaps %xmm0, (%rax)
movaps %xmm1, (%r14)
movq %rcx, 0x10(%r14)
movq %rax, %rdi
callq 0xd0c2e
movq %r14, %rdi
callq 0xd0c2e
leaq 0x30(%rbx), %rdi
callq 0x1b4f0
movq %rbx, %rdi
callq 0x1b7b0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x1b6d0
jmp 0xd0952
movq %rbx, (%rsp)
movq %rax, %r14
jmp 0xd0964
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xd0c2e
movq (%rsp), %rdi
callq 0x1b7b0
movq %r14, %rdi
callq 0x1c250
nop
| _ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz loc_D0945
cmp byte ptr [rbx+6Ah], 1
jnz loc_D092E
mov [rsp+78h+var_6C], ebp
mov r13, [rbx+78h]
mov rax, [rbx+98h]
lea rbp, [rax+rax*2]
shl rbp, 4
mov r12, r13
add r12, rbp
mov rax, [r15+10h]
mov [rsp+78h+var_38], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+78h+var_48], xmm0
mov rdi, [r13+rbp+10h]
mov rsi, [r13+rbp+18h]
sub rsi, rdi
mov rdx, r14
mov rcx, r15
call vsnprintf
movsxd rsi, eax
mov rax, [r13+rbp+18h]
sub rax, [r13+rbp+10h]
cmp rax, rsi
ja short loc_D0730
lea rdi, ds:10h[rbp]
add rdi, r13
inc rsi
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [r12+10h]; this
mov rsi, [r12+18h]
sub rsi, rdi
lea rcx, [rsp+78h+var_48]
mov rdx, r14
call vsnprintf
loc_D0730:
mov eax, [rsp+78h+var_6C]
mov [r12], eax
mov al, [rbx+68h]
mov [r12+4], al
mov qword ptr [r12+8], 0
cmp byte ptr [rbx+69h], 1
jnz short loc_D0778
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov rcx, 20C49BA5E353F7CFh
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
sub rdx, [rbx+70h]
mov [r12+8], rdx
loc_D0778:
mov byte ptr [r12+28h], 0
mov rsi, [rbx+80h]
mov rax, [rbx+98h]
inc rax
sub rsi, [rbx+78h]
sar rsi, 4
mov r14, 0AAAAAAAAAAAAAAABh
imul rsi, r14
xor edx, edx
div rsi
mov [rbx+98h], rdx
cmp rdx, [rbx+90h]
jnz loc_D0925
add rsi, rsi
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_48]
mov [rsp+78h+var_78], rbx
call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&)
mov r12d, 10h
xor ebp, ebp
xor r13d, r13d
loc_D07DF:
mov rax, [rbx+78h]
mov rcx, [rbx+90h]
lea rcx, [rcx+rcx*2]
shl rcx, 4
mov r15, [rsp+78h+var_68]
mov rbx, r14
lea r14, [rax+rcx]
add r14, 10h
movups xmm0, xmmword ptr [r14-10h]
movups xmmword ptr [r15+rbp], xmm0
lea rdi, [r15+r12]
mov rsi, r14
call _ZNSt6vectorIcSaIcEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<char>::_M_move_assign(std::vector<char>&&,std::integral_constant<bool,true>)
mov al, [r14+18h]
mov r14, rbx
mov rbx, [rsp+78h+var_78]
mov [r15+rbp+28h], al
mov rcx, [rbx+80h]
mov rax, [rbx+90h]
inc rax
sub rcx, [rbx+78h]
sar rcx, 4
imul rcx, r14
xor edx, edx
div rcx
mov [rbx+90h], rdx
inc r13
add r12, 30h ; '0'
add rbp, 30h ; '0'
cmp rdx, [rbx+98h]
jnz loc_D07DF
mov qword ptr [rbx+90h], 0
mov [rbx+98h], r13
mov rdi, [rsp+78h+var_68]
mov rcx, [rsp+78h+var_60]
mov rax, rcx
sub rax, rdi
sar rax, 4
imul rax, r14
loc_D0893:
cmp r13, rax
jnb short loc_D08C6
add rdi, r12
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
inc r13
mov rdi, [rsp+78h+var_68]
mov rcx, [rsp+78h+var_60]
mov rax, rcx
sub rax, rdi
sar rax, 4
imul rax, r14
add r12, 30h ; '0'
jmp short loc_D0893
loc_D08C6:
xorps xmm0, xmm0
lea rax, [rsp+78h+var_48]
movaps xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
movups xmm0, xmmword ptr [rbx+78h]
mov rdx, [rbx+88h]
mov [rbx+78h], rdi
mov [rbx+80h], rcx
lea r14, [rsp+78h+var_68]
mov rcx, [r14+10h]
mov [rbx+88h], rcx
mov rcx, [rax+10h]
mov [rax+10h], rdx
movaps xmm1, xmmword ptr [rax]
movaps xmmword ptr [rax], xmm0
movaps xmmword ptr [r14], xmm1
mov [r14+10h], rcx
mov rdi, rax
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
mov rdi, r14
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_D0925:
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
loc_D092E:
mov rdi, rbx
call _pthread_mutex_unlock
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_D0945:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short loc_D0952
mov [rsp+78h+var_78], rbx
loc_D0952:
mov r14, rax
jmp short loc_D0964
mov r14, rax
lea rdi, [rsp+78h+var_68]
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_D0964:
mov rdi, [rsp+78h+var_78]
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long common_log::add(long long a1, int a2, long long a3, __int128 *a4)
{
long long v6; // rbx
int v7; // eax
long long v8; // r13
long long v9; // rbp
long long v10; // r12
std::chrono::_V2::system_clock *v11; // rdi
unsigned long long v12; // rsi
unsigned long long v13; // r14
unsigned long long v14; // rsi
unsigned long long v15; // rdx
long long v16; // r12
long long v17; // rbp
unsigned long long v18; // r13
long long v19; // rax
long long v20; // rcx
long long v21; // r15
unsigned long long v22; // rbx
long long v23; // r14
char v24; // al
unsigned long long v25; // rdx
__int128 v26; // kr00_16
unsigned long long v27; // rax
__int128 v28; // xmm0
long long v29; // rdx
long long v30; // rcx
__int128 v31; // xmm1
long long v33; // [rsp+0h] [rbp-78h]
__int128 v35; // [rsp+10h] [rbp-68h] BYREF
long long v36; // [rsp+20h] [rbp-58h]
__int128 v37; // [rsp+30h] [rbp-48h] BYREF
long long v38; // [rsp+40h] [rbp-38h]
v6 = a1;
v7 = pthread_mutex_lock();
if ( v7 )
std::__throw_system_error(v7);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v8 = *(_QWORD *)(a1 + 120);
v9 = 48LL * *(_QWORD *)(a1 + 152);
v10 = v9 + v8;
v38 = *((_QWORD *)a4 + 2);
v37 = *a4;
v11 = *(std::chrono::_V2::system_clock **)(v8 + v9 + 16);
v12 = (int)vsnprintf(v11, *(_QWORD *)(v8 + v9 + 24) - (_QWORD)v11, a3, a4);
if ( *(_QWORD *)(v8 + v9 + 24) - *(_QWORD *)(v8 + v9 + 16) <= v12 )
{
std::vector<char>::resize((_QWORD *)(v8 + v9 + 16), v12 + 1);
v11 = *(std::chrono::_V2::system_clock **)(v10 + 16);
vsnprintf(v11, *(_QWORD *)(v10 + 24) - (_QWORD)v11, a3, &v37);
}
*(_DWORD *)v10 = a2;
*(_BYTE *)(v10 + 4) = *(_BYTE *)(v6 + 104);
*(_QWORD *)(v10 + 8) = 0LL;
if ( *(_BYTE *)(v6 + 105) == 1 )
*(_QWORD *)(v10 + 8) = std::chrono::_V2::system_clock::now(v11) / 1000LL - *(_QWORD *)(v6 + 112);
*(_BYTE *)(v10 + 40) = 0;
v13 = 0xAAAAAAAAAAAAAAABLL;
v14 = 0xAAAAAAAAAAAAAAABLL * ((long long)(*(_QWORD *)(v6 + 128) - *(_QWORD *)(v6 + 120)) >> 4);
v15 = (*(_QWORD *)(v6 + 152) + 1LL) % v14;
*(_QWORD *)(v6 + 152) = v15;
if ( v15 == *(_QWORD *)(v6 + 144) )
{
v33 = v6;
std::vector<common_log_entry>::vector(&v35, 2 * v14, &v37);
v16 = 16LL;
v17 = 0LL;
v18 = 0LL;
do
{
v19 = *(_QWORD *)(v6 + 120);
v20 = 48LL * *(_QWORD *)(v6 + 144);
v21 = v35;
v22 = v13;
v23 = v19 + v20 + 16;
*(_OWORD *)(v35 + v17) = *(_OWORD *)(v19 + v20);
std::vector<char>::_M_move_assign(v21 + v16, v23);
v24 = *(_BYTE *)(v23 + 24);
v13 = v22;
v6 = v33;
*(_BYTE *)(v21 + v17 + 40) = v24;
v25 = (*(_QWORD *)(v33 + 144) + 1LL) % (v13 * ((long long)(*(_QWORD *)(v6 + 128) - *(_QWORD *)(v6 + 120)) >> 4));
*(_QWORD *)(v33 + 144) = v25;
++v18;
v16 += 48LL;
v17 += 48LL;
}
while ( v25 != *(_QWORD *)(v33 + 152) );
*(_QWORD *)(v33 + 144) = 0LL;
*(_QWORD *)(v33 + 152) = v18;
v26 = v35;
v27 = v13 * ((long long)(*((_QWORD *)&v35 + 1) - v35) >> 4);
while ( v18 < v27 )
{
std::vector<char>::resize((_QWORD *)(v16 + v26), 0x100uLL);
++v18;
v27 = v13 * ((long long)(*((_QWORD *)&v35 + 1) - v35) >> 4);
v16 += 48LL;
v26 = v35;
}
v37 = 0LL;
v38 = 0LL;
v28 = *(_OWORD *)(v33 + 120);
v29 = *(_QWORD *)(v33 + 136);
*(_OWORD *)(v33 + 120) = v26;
*(_QWORD *)(v33 + 136) = v36;
v30 = v38;
v38 = v29;
v31 = v37;
v37 = v28;
v35 = v31;
v36 = v30;
std::vector<common_log_entry>::~vector(&v37);
std::vector<common_log_entry>::~vector(&v35);
}
std::condition_variable::notify_one((std::condition_variable *)(v6 + 48));
}
return pthread_mutex_unlock(v6);
}
| add:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0011bf20
TEST EAX,EAX
JNZ 0x001d0945
CMP byte ptr [RBX + 0x6a],0x1
JNZ 0x001d092e
MOV dword ptr [RSP + 0xc],EBP
MOV R13,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x98]
LEA RBP,[RAX + RAX*0x2]
SHL RBP,0x4
MOV R12,R13
ADD R12,RBP
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10]
MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RSI,RDI
MOV RDX,R14
MOV RCX,R15
CALL 0x0011c488
MOVSXD RSI,EAX
MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10]
CMP RAX,RSI
JA 0x001d0730
LEA RDI,[0x10 + RBP*0x1]
ADD RDI,R13
INC RSI
LAB_001d0711:
CALL 0x001824fe
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
SUB RSI,RDI
LEA RCX,[RSP + 0x30]
MOV RDX,R14
CALL 0x0011c488
LAB_001d0730:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R12],EAX
MOV AL,byte ptr [RBX + 0x68]
MOV byte ptr [R12 + 0x4],AL
MOV qword ptr [R12 + 0x8],0x0
CMP byte ptr [RBX + 0x69],0x1
JNZ 0x001d0778
CALL 0x0011b090
MOV RCX,0x20c49ba5e353f7cf
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
SUB RDX,qword ptr [RBX + 0x70]
MOV qword ptr [R12 + 0x8],RDX
LAB_001d0778:
MOV byte ptr [R12 + 0x28],0x0
MOV RSI,qword ptr [RBX + 0x80]
MOV RAX,qword ptr [RBX + 0x98]
INC RAX
SUB RSI,qword ptr [RBX + 0x78]
SAR RSI,0x4
MOV R14,-0x5555555555555555
IMUL RSI,R14
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x98],RDX
CMP RDX,qword ptr [RBX + 0x90]
JNZ 0x001d0925
ADD RSI,RSI
LAB_001d07c1:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x30]
MOV qword ptr [RSP],RBX
CALL 0x001d13be
MOV R12D,0x10
XOR EBP,EBP
XOR R13D,R13D
LAB_001d07df:
MOV RAX,qword ptr [RBX + 0x78]
MOV RCX,qword ptr [RBX + 0x90]
LEA RCX,[RCX + RCX*0x2]
SHL RCX,0x4
MOV R15,qword ptr [RSP + 0x10]
MOV RBX,R14
LEA R14,[RAX + RCX*0x1]
ADD R14,0x10
MOVUPS XMM0,xmmword ptr [R14 + -0x10]
MOVUPS xmmword ptr [R15 + RBP*0x1],XMM0
LEA RDI,[R15 + R12*0x1]
MOV RSI,R14
CALL 0x001d144a
MOV AL,byte ptr [R14 + 0x18]
MOV R14,RBX
MOV RBX,qword ptr [RSP]
MOV byte ptr [R15 + RBP*0x1 + 0x28],AL
MOV RCX,qword ptr [RBX + 0x80]
MOV RAX,qword ptr [RBX + 0x90]
INC RAX
SUB RCX,qword ptr [RBX + 0x78]
SAR RCX,0x4
IMUL RCX,R14
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBX + 0x90],RDX
INC R13
ADD R12,0x30
ADD RBP,0x30
CMP RDX,qword ptr [RBX + 0x98]
JNZ 0x001d07df
MOV qword ptr [RBX + 0x90],0x0
MOV qword ptr [RBX + 0x98],R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,RCX
SUB RAX,RDI
SAR RAX,0x4
IMUL RAX,R14
LAB_001d0893:
CMP R13,RAX
JNC 0x001d08c6
ADD RDI,R12
LAB_001d089b:
MOV ESI,0x100
CALL 0x001824fe
LAB_001d08a5:
INC R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,RCX
SUB RAX,RDI
SAR RAX,0x4
IMUL RAX,R14
ADD R12,0x30
JMP 0x001d0893
LAB_001d08c6:
XORPS XMM0,XMM0
LEA RAX,[RSP + 0x30]
MOVAPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOVUPS XMM0,xmmword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x88]
MOV qword ptr [RBX + 0x78],RDI
MOV qword ptr [RBX + 0x80],RCX
LEA R14,[RSP + 0x10]
MOV RCX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x88],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOVAPS XMM1,xmmword ptr [RAX]
MOVAPS xmmword ptr [RAX],XMM0
MOVAPS xmmword ptr [R14],XMM1
MOV qword ptr [R14 + 0x10],RCX
MOV RDI,RAX
CALL 0x001d0c2e
MOV RDI,R14
CALL 0x001d0c2e
LAB_001d0925:
LEA RDI,[RBX + 0x30]
CALL 0x0011b4f0
LAB_001d092e:
MOV RDI,RBX
CALL 0x0011b7b0
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001d0945:
MOV EDI,EAX
CALL 0x0011b6d0
|
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */
void __thiscall
common_log::add(common_log *this,int4 param_2,char *param_3,int8 *param_4)
{
int4 *puVar1;
char *__s;
int4 uVar2;
int4 uVar3;
int4 uVar4;
long lVar5;
int iVar6;
long lVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
int4 *puVar11;
long local_68;
long lStack_60;
int8 local_58;
int8 local_48;
int8 uStack_40;
int8 local_38;
iVar6 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar6 == 0) {
if (this[0x6a] == (common_log)0x1) {
lVar7 = *(long *)(this + 0x78);
lVar10 = *(long *)(this + 0x98) * 0x30;
puVar11 = (int4 *)(lVar7 + lVar10);
local_38 = param_4[2];
local_48 = *param_4;
uStack_40 = param_4[1];
__s = *(char **)(lVar7 + 0x10 + lVar10);
iVar6 = vsnprintf(__s,*(long *)(lVar7 + 0x18 + lVar10) - (long)__s,param_3,param_4);
if ((ulong)(*(long *)(lVar7 + 0x18 + lVar10) - *(long *)(lVar7 + 0x10 + lVar10)) <=
(ulong)(long)iVar6) {
/* try { // try from 001d0711 to 001d0715 has its CatchHandler @ 001d094e */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar10 + 0x10 + lVar7),(long)iVar6 + 1);
vsnprintf(*(char **)(puVar11 + 4),*(long *)(puVar11 + 6) - (long)*(char **)(puVar11 + 4),
param_3,&local_48);
}
*puVar11 = param_2;
*(common_log *)(puVar11 + 1) = this[0x68];
*(int8 *)(puVar11 + 2) = 0;
if (this[0x69] == (common_log)0x1) {
lVar7 = std::chrono::_V2::system_clock::now();
*(long *)(puVar11 + 2) = lVar7 / 1000 - *(long *)(this + 0x70);
}
*(int1 *)(puVar11 + 10) = 0;
lVar7 = *(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4;
uVar8 = (*(long *)(this + 0x98) + 1U) % (ulong)(lVar7 * -0x5555555555555555);
*(ulong *)(this + 0x98) = uVar8;
if (uVar8 == *(ulong *)(this + 0x90)) {
/* try { // try from 001d07c1 to 001d07d3 has its CatchHandler @ 001d094c */
std::vector<common_log_entry,std::allocator<common_log_entry>>::vector
((ulong)&local_68,(allocator *)(lVar7 * 0x5555555555555556));
lVar10 = 0x10;
lVar7 = 0;
uVar8 = 0;
do {
lVar5 = local_68;
puVar11 = (int4 *)(*(long *)(this + 0x78) + *(long *)(this + 0x90) * 0x30);
uVar2 = puVar11[1];
uVar3 = puVar11[2];
uVar4 = puVar11[3];
puVar1 = (int4 *)(local_68 + lVar7);
*puVar1 = *puVar11;
puVar1[1] = uVar2;
puVar1[2] = uVar3;
puVar1[3] = uVar4;
std::vector<char,std::allocator<char>>::_M_move_assign(local_68 + lVar10,puVar11 + 4);
*(int1 *)(lVar5 + 0x28 + lVar7) = *(int1 *)(puVar11 + 10);
uVar9 = (*(long *)(this + 0x90) + 1U) %
(ulong)((*(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4) *
-0x5555555555555555);
*(ulong *)(this + 0x90) = uVar9;
uVar8 = uVar8 + 1;
lVar10 = lVar10 + 0x30;
lVar7 = lVar7 + 0x30;
} while (uVar9 != *(ulong *)(this + 0x98));
*(int8 *)(this + 0x90) = 0;
*(ulong *)(this + 0x98) = uVar8;
lVar7 = lStack_60 - local_68;
for (; uVar8 < (ulong)((lVar7 >> 4) * -0x5555555555555555); uVar8 = uVar8 + 1) {
/* try { // try from 001d089b to 001d08a4 has its CatchHandler @ 001d0957 */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(local_68 + lVar10),0x100);
lVar7 = lStack_60 - local_68;
lVar10 = lVar10 + 0x30;
}
local_48 = *(int8 *)(this + 0x78);
uStack_40 = *(int8 *)(this + 0x80);
local_38 = *(int8 *)(this + 0x88);
*(long *)(this + 0x78) = local_68;
*(long *)(this + 0x80) = lStack_60;
*(int8 *)(this + 0x88) = local_58;
local_68 = 0;
lStack_60 = 0;
local_58 = 0;
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48);
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_68);
}
std::condition_variable::notify_one();
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar6);
}
|
|
5,428 | common_log::add(ggml_log_level, char const*, __va_list_tag*) | monkey531[P]llama/common/log.cpp | void add(enum ggml_log_level level, const char * fmt, va_list args) {
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
// discard messages while the worker thread is paused
return;
}
auto & entry = entries[tail];
{
// cannot use args twice, so make a copy in case we need to expand the buffer
va_list args_copy;
va_copy(args_copy, args);
#if 1
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy);
}
#else
// hack for bolding arguments
std::stringstream ss;
for (int i = 0; fmt[i] != 0; i++) {
if (fmt[i] == '%') {
ss << LOG_COL_BOLD;
while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++];
ss << LOG_COL_DEFAULT;
if (fmt[i] == 0) break;
}
ss << fmt[i];
}
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy);
}
#endif
va_end(args_copy);
}
entry.level = level;
entry.prefix = prefix;
entry.timestamp = 0;
if (timestamps) {
entry.timestamp = t_us() - t_start;
}
entry.is_end = false;
tail = (tail + 1) % entries.size();
if (tail == head) {
// expand the buffer
std::vector<common_log_entry> new_entries(2*entries.size());
size_t new_tail = 0;
do {
new_entries[new_tail] = std::move(entries[head]);
head = (head + 1) % entries.size();
new_tail = (new_tail + 1);
} while (head != tail);
head = 0;
tail = new_tail;
for (size_t i = tail; i < new_entries.size(); i++) {
new_entries[i].msg.resize(256);
}
entries = std::move(new_entries);
}
cv.notify_one();
} | O3 | cpp | common_log::add(ggml_log_level, char const*, __va_list_tag*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1bf20
testl %eax, %eax
jne 0xcfe22
cmpb $0x1, 0x6a(%rbx)
jne 0xcfe0b
movl %ebp, 0xc(%rsp)
movq 0x78(%rbx), %r13
movq 0x98(%rbx), %rax
leaq (%rax,%rax,2), %rbp
shlq $0x4, %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%r13,%rbp), %rdi
movq 0x18(%r13,%rbp), %rsi
subq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1c488
movslq %eax, %rsi
movq 0x18(%r13,%rbp), %rax
subq 0x10(%r13,%rbp), %rax
cmpq %rsi, %rax
ja 0xcfc0a
leaq 0x10(,%rbp), %rdi
addq %r13, %rdi
incq %rsi
callq 0x824a4
movq 0x10(%r12), %rdi
movq 0x18(%r12), %rsi
subq %rdi, %rsi
leaq 0x30(%rsp), %rcx
movq %r14, %rdx
callq 0x1c488
movl 0xc(%rsp), %eax
movl %eax, (%r12)
movb 0x68(%rbx), %al
movb %al, 0x4(%r12)
movq $0x0, 0x8(%r12)
cmpb $0x1, 0x69(%rbx)
jne 0xcfc52
callq 0x1b090
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
subq 0x70(%rbx), %rdx
movq %rdx, 0x8(%r12)
movb $0x0, 0x28(%r12)
movq 0x80(%rbx), %rsi
movq 0x98(%rbx), %rax
incq %rax
subq 0x78(%rbx), %rsi
sarq $0x4, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
xorl %edx, %edx
divq %rsi
movq %rdx, 0x98(%rbx)
cmpq 0x90(%rbx), %rdx
jne 0xcfe02
addq %rsi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbx, (%rsp)
callq 0xd0894
movq 0x78(%rbx), %rcx
movq 0x90(%rbx), %rdx
movl $0x10, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movq 0x10(%rsp), %r15
movq %r14, %rbx
leaq (%rcx,%rax), %r14
addq $0x10, %r14
movups -0x10(%r14), %xmm0
movups %xmm0, (%r15,%rbp)
leaq (%r15,%r12), %rdi
movq %r14, %rsi
callq 0xd0912
movb 0x18(%r14), %al
movq %rbx, %r14
movq (%rsp), %rbx
movb %al, 0x28(%r15,%rbp)
movq 0x90(%rbx), %rax
incq %rax
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq %rsi, %rdi
subq %rcx, %rdi
sarq $0x4, %rdi
imulq %r14, %rdi
xorl %edx, %edx
divq %rdi
movq %rdx, 0x90(%rbx)
incq %r13
addq $0x30, %r12
addq $0x30, %rbp
cmpq 0x98(%rbx), %rdx
jne 0xcfcc4
movq $0x0, 0x90(%rbx)
movq %r13, 0x98(%rbx)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %r14, %rdx
cmpq %rdx, %r13
jae 0xcfdb4
addq %r12, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x824a4
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
addq $0x30, %r12
cmpq %rcx, %r13
jb 0xcfd78
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %rdi, 0x78(%rbx)
movq %rax, 0x80(%rbx)
leaq 0x10(%rsp), %r14
movq 0x10(%r14), %rax
movq %rax, 0x88(%rbx)
leaq 0x30(%rsp), %rdi
movq %rcx, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0xd010a
movq %r14, %rdi
callq 0xd010a
leaq 0x30(%rbx), %rdi
callq 0x1b4f0
movq %rbx, %rdi
callq 0x1b7b0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x1b6d0
jmp 0xcfe2f
movq %rbx, (%rsp)
movq %rax, %r14
jmp 0xcfe41
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xd010a
movq (%rsp), %rdi
callq 0x1b7b0
movq %r14, %rdi
callq 0x1c250
| _ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz loc_CFE22
cmp byte ptr [rbx+6Ah], 1
jnz loc_CFE0B
mov [rsp+78h+var_6C], ebp
mov r13, [rbx+78h]
mov rax, [rbx+98h]
lea rbp, [rax+rax*2]
shl rbp, 4
mov r12, r13
add r12, rbp
mov rax, [r15+10h]
mov [rsp+78h+var_38], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+78h+var_48], xmm0
mov rdi, [r13+rbp+10h]
mov rsi, [r13+rbp+18h]
sub rsi, rdi
mov rdx, r14
mov rcx, r15
call vsnprintf
movsxd rsi, eax
mov rax, [r13+rbp+18h]
sub rax, [r13+rbp+10h]
cmp rax, rsi
ja short loc_CFC0A
lea rdi, ds:10h[rbp]
add rdi, r13
inc rsi
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [r12+10h]; this
mov rsi, [r12+18h]
sub rsi, rdi
lea rcx, [rsp+78h+var_48]
mov rdx, r14
call vsnprintf
loc_CFC0A:
mov eax, [rsp+78h+var_6C]
mov [r12], eax
mov al, [rbx+68h]
mov [r12+4], al
mov qword ptr [r12+8], 0
cmp byte ptr [rbx+69h], 1
jnz short loc_CFC52
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov rcx, 20C49BA5E353F7CFh
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
sub rdx, [rbx+70h]
mov [r12+8], rdx
loc_CFC52:
mov byte ptr [r12+28h], 0
mov rsi, [rbx+80h]
mov rax, [rbx+98h]
inc rax
sub rsi, [rbx+78h]
sar rsi, 4
mov r14, 0AAAAAAAAAAAAAAABh
imul rsi, r14
xor edx, edx
div rsi
mov [rbx+98h], rdx
cmp rdx, [rbx+90h]
jnz loc_CFE02
add rsi, rsi
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_48]
mov [rsp+78h+var_78], rbx
call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&)
mov rcx, [rbx+78h]
mov rdx, [rbx+90h]
mov r12d, 10h
xor ebp, ebp
xor r13d, r13d
loc_CFCC4:
lea rax, [rdx+rdx*2]
shl rax, 4
mov r15, [rsp+78h+var_68]
mov rbx, r14
lea r14, [rcx+rax]
add r14, 10h
movups xmm0, xmmword ptr [r14-10h]
movups xmmword ptr [r15+rbp], xmm0
lea rdi, [r15+r12]
mov rsi, r14
call _ZNSt6vectorIcSaIcEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<char>::_M_move_assign(std::vector<char>&&,std::integral_constant<bool,true>)
mov al, [r14+18h]
mov r14, rbx
mov rbx, [rsp+78h+var_78]
mov [r15+rbp+28h], al
mov rax, [rbx+90h]
inc rax
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
mov rdi, rsi
sub rdi, rcx
sar rdi, 4
imul rdi, r14
xor edx, edx
div rdi
mov [rbx+90h], rdx
inc r13
add r12, 30h ; '0'
add rbp, 30h ; '0'
cmp rdx, [rbx+98h]
jnz loc_CFCC4
mov qword ptr [rbx+90h], 0
mov [rbx+98h], r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rdx, rax
sub rdx, rdi
sar rdx, 4
imul rdx, r14
cmp r13, rdx
jnb short loc_CFDB4
loc_CFD78:
add rdi, r12
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
inc r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rcx, rax
sub rcx, rdi
sar rcx, 4
imul rcx, r14
add r12, 30h ; '0'
cmp r13, rcx
jb short loc_CFD78
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
loc_CFDB4:
mov rdx, [rbx+88h]
mov [rbx+78h], rdi
mov [rbx+80h], rax
lea r14, [rsp+78h+var_68]
mov rax, [r14+10h]
mov [rbx+88h], rax
lea rdi, [rsp+78h+var_48]
mov [rdi], rcx
mov [rdi+8], rsi
mov [rdi+10h], rdx
xorps xmm0, xmm0
movaps xmmword ptr [r14], xmm0
mov qword ptr [r14+10h], 0
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
mov rdi, r14
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_CFE02:
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
loc_CFE0B:
mov rdi, rbx
call _pthread_mutex_unlock
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_CFE22:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short loc_CFE2F
mov [rsp+78h+var_78], rbx
loc_CFE2F:
mov r14, rax
jmp short loc_CFE41
mov r14, rax
lea rdi, [rsp+78h+var_68]
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_CFE41:
mov rdi, [rsp+78h+var_78]
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long common_log::add(long long a1, int a2, long long a3, __int128 *a4)
{
_QWORD *v6; // rbx
int v7; // eax
long long v8; // r13
long long v9; // rbp
long long v10; // r12
std::chrono::_V2::system_clock *v11; // rdi
unsigned long long v12; // rsi
unsigned long long v13; // r14
unsigned long long v14; // rsi
unsigned long long v15; // rdx
long long v16; // rcx
unsigned long long v17; // rdx
long long v18; // r12
long long v19; // rbp
unsigned long long v20; // r13
long long v21; // r15
unsigned long long v22; // rbx
long long v23; // r14
char v24; // al
long long v25; // rsi
__int128 v26; // kr00_16
long long v27; // rdx
_QWORD *v29; // [rsp+0h] [rbp-78h]
__int128 v31; // [rsp+10h] [rbp-68h] BYREF
long long v32; // [rsp+20h] [rbp-58h]
__int128 v33; // [rsp+30h] [rbp-48h] BYREF
long long v34; // [rsp+40h] [rbp-38h]
v6 = (_QWORD *)a1;
v7 = pthread_mutex_lock();
if ( v7 )
std::__throw_system_error(v7);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v8 = *(_QWORD *)(a1 + 120);
v9 = 48LL * *(_QWORD *)(a1 + 152);
v10 = v9 + v8;
v34 = *((_QWORD *)a4 + 2);
v33 = *a4;
v11 = *(std::chrono::_V2::system_clock **)(v8 + v9 + 16);
v12 = (int)vsnprintf(v11, *(_QWORD *)(v8 + v9 + 24) - (_QWORD)v11, a3, a4);
if ( *(_QWORD *)(v8 + v9 + 24) - *(_QWORD *)(v8 + v9 + 16) <= v12 )
{
std::vector<char>::resize((_QWORD *)(v8 + v9 + 16), v12 + 1);
v11 = *(std::chrono::_V2::system_clock **)(v10 + 16);
vsnprintf(v11, *(_QWORD *)(v10 + 24) - (_QWORD)v11, a3, &v33);
}
*(_DWORD *)v10 = a2;
*(_BYTE *)(v10 + 4) = *((_BYTE *)v6 + 104);
*(_QWORD *)(v10 + 8) = 0LL;
if ( *((_BYTE *)v6 + 105) == 1 )
*(_QWORD *)(v10 + 8) = std::chrono::_V2::system_clock::now(v11) / 1000LL - v6[14];
*(_BYTE *)(v10 + 40) = 0;
v13 = 0xAAAAAAAAAAAAAAABLL;
v14 = 0xAAAAAAAAAAAAAAABLL * ((long long)(v6[16] - v6[15]) >> 4);
v15 = (v6[19] + 1LL) % v14;
v6[19] = v15;
if ( v15 == v6[18] )
{
v29 = v6;
std::vector<common_log_entry>::vector(&v31, 2 * v14, &v33);
v16 = v6[15];
v17 = v6[18];
v18 = 16LL;
v19 = 0LL;
v20 = 0LL;
do
{
v21 = v31;
v22 = v13;
v23 = v16 + 48 * v17 + 16;
*(_OWORD *)(v31 + v19) = *(_OWORD *)(v16 + 48 * v17);
std::vector<char>::_M_move_assign(v21 + v18, v23);
v24 = *(_BYTE *)(v23 + 24);
v13 = v22;
v6 = v29;
*(_BYTE *)(v21 + v19 + 40) = v24;
v16 = v29[15];
v25 = v29[16];
v17 = (v29[18] + 1LL) % (v13 * ((v25 - v16) >> 4));
v29[18] = v17;
++v20;
v18 += 48LL;
v19 += 48LL;
}
while ( v17 != v29[19] );
v29[18] = 0LL;
v29[19] = v20;
v26 = v31;
if ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) )
{
do
{
std::vector<char>::resize((_QWORD *)(v18 + v26), 0x100uLL);
++v20;
v18 += 48LL;
v26 = v31;
}
while ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) );
v16 = v29[15];
v25 = v29[16];
}
v27 = v29[17];
*(_OWORD *)(v29 + 15) = v26;
v29[17] = v32;
*(_QWORD *)&v33 = v16;
*((_QWORD *)&v33 + 1) = v25;
v34 = v27;
v31 = 0LL;
v32 = 0LL;
std::vector<common_log_entry>::~vector(&v33);
std::vector<common_log_entry>::~vector(&v31);
}
std::condition_variable::notify_one((std::condition_variable *)(v6 + 6));
}
return pthread_mutex_unlock(v6);
}
| add:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0011bf20
TEST EAX,EAX
JNZ 0x001cfe22
CMP byte ptr [RBX + 0x6a],0x1
JNZ 0x001cfe0b
MOV dword ptr [RSP + 0xc],EBP
MOV R13,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x98]
LEA RBP,[RAX + RAX*0x2]
SHL RBP,0x4
MOV R12,R13
ADD R12,RBP
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10]
MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RSI,RDI
MOV RDX,R14
MOV RCX,R15
CALL 0x0011c488
MOVSXD RSI,EAX
MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10]
CMP RAX,RSI
JA 0x001cfc0a
LEA RDI,[0x10 + RBP*0x1]
ADD RDI,R13
INC RSI
LAB_001cfbeb:
CALL 0x001824a4
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
SUB RSI,RDI
LEA RCX,[RSP + 0x30]
MOV RDX,R14
CALL 0x0011c488
LAB_001cfc0a:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R12],EAX
MOV AL,byte ptr [RBX + 0x68]
MOV byte ptr [R12 + 0x4],AL
MOV qword ptr [R12 + 0x8],0x0
CMP byte ptr [RBX + 0x69],0x1
JNZ 0x001cfc52
CALL 0x0011b090
MOV RCX,0x20c49ba5e353f7cf
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
SUB RDX,qword ptr [RBX + 0x70]
MOV qword ptr [R12 + 0x8],RDX
LAB_001cfc52:
MOV byte ptr [R12 + 0x28],0x0
MOV RSI,qword ptr [RBX + 0x80]
MOV RAX,qword ptr [RBX + 0x98]
INC RAX
SUB RSI,qword ptr [RBX + 0x78]
SAR RSI,0x4
MOV R14,-0x5555555555555555
IMUL RSI,R14
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x98],RDX
CMP RDX,qword ptr [RBX + 0x90]
JNZ 0x001cfe02
ADD RSI,RSI
LAB_001cfc9b:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x30]
MOV qword ptr [RSP],RBX
CALL 0x001d0894
MOV RCX,qword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x90]
MOV R12D,0x10
XOR EBP,EBP
XOR R13D,R13D
LAB_001cfcc4:
LEA RAX,[RDX + RDX*0x2]
SHL RAX,0x4
MOV R15,qword ptr [RSP + 0x10]
MOV RBX,R14
LEA R14,[RCX + RAX*0x1]
ADD R14,0x10
MOVUPS XMM0,xmmword ptr [R14 + -0x10]
MOVUPS xmmword ptr [R15 + RBP*0x1],XMM0
LEA RDI,[R15 + R12*0x1]
MOV RSI,R14
CALL 0x001d0912
MOV AL,byte ptr [R14 + 0x18]
MOV R14,RBX
MOV RBX,qword ptr [RSP]
MOV byte ptr [R15 + RBP*0x1 + 0x28],AL
MOV RAX,qword ptr [RBX + 0x90]
INC RAX
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
MOV RDI,RSI
SUB RDI,RCX
SAR RDI,0x4
IMUL RDI,R14
XOR EDX,EDX
DIV RDI
MOV qword ptr [RBX + 0x90],RDX
INC R13
ADD R12,0x30
ADD RBP,0x30
CMP RDX,qword ptr [RBX + 0x98]
JNZ 0x001cfcc4
MOV qword ptr [RBX + 0x90],0x0
MOV qword ptr [RBX + 0x98],R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,RAX
SUB RDX,RDI
SAR RDX,0x4
IMUL RDX,R14
CMP R13,RDX
JNC 0x001cfdb4
LAB_001cfd78:
ADD RDI,R12
LAB_001cfd7b:
MOV ESI,0x100
CALL 0x001824a4
LAB_001cfd85:
INC R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,RAX
SUB RCX,RDI
SAR RCX,0x4
IMUL RCX,R14
ADD R12,0x30
CMP R13,RCX
JC 0x001cfd78
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
LAB_001cfdb4:
MOV RDX,qword ptr [RBX + 0x88]
MOV qword ptr [RBX + 0x78],RDI
MOV qword ptr [RBX + 0x80],RAX
LEA R14,[RSP + 0x10]
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x88],RAX
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],RCX
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14],XMM0
MOV qword ptr [R14 + 0x10],0x0
CALL 0x001d010a
MOV RDI,R14
CALL 0x001d010a
LAB_001cfe02:
LEA RDI,[RBX + 0x30]
CALL 0x0011b4f0
LAB_001cfe0b:
MOV RDI,RBX
CALL 0x0011b7b0
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001cfe22:
MOV EDI,EAX
CALL 0x0011b6d0
|
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */
void __thiscall common_log::add(common_log *this,int4 param_2,char *param_3,long *param_4)
{
int4 *puVar1;
char *__s;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int iVar5;
long lVar6;
ulong uVar7;
long lVar8;
long lVar9;
int4 *puVar10;
long lVar11;
ulong uVar12;
long local_68;
long lStack_60;
int8 local_58;
long local_48;
long lStack_40;
long local_38;
iVar5 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar5 == 0) {
if (this[0x6a] == (common_log)0x1) {
lVar6 = *(long *)(this + 0x78);
lVar8 = *(long *)(this + 0x98) * 0x30;
puVar10 = (int4 *)(lVar6 + lVar8);
local_38 = param_4[2];
local_48 = *param_4;
lStack_40 = param_4[1];
__s = *(char **)(lVar6 + 0x10 + lVar8);
iVar5 = vsnprintf(__s,*(long *)(lVar6 + 0x18 + lVar8) - (long)__s,param_3,param_4);
if ((ulong)(*(long *)(lVar6 + 0x18 + lVar8) - *(long *)(lVar6 + 0x10 + lVar8)) <=
(ulong)(long)iVar5) {
/* try { // try from 001cfbeb to 001cfbef has its CatchHandler @ 001cfe2b */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar8 + 0x10 + lVar6),(long)iVar5 + 1);
vsnprintf(*(char **)(puVar10 + 4),*(long *)(puVar10 + 6) - (long)*(char **)(puVar10 + 4),
param_3,&local_48);
}
*puVar10 = param_2;
*(common_log *)(puVar10 + 1) = this[0x68];
*(int8 *)(puVar10 + 2) = 0;
if (this[0x69] == (common_log)0x1) {
lVar6 = std::chrono::_V2::system_clock::now();
*(long *)(puVar10 + 2) = lVar6 / 1000 - *(long *)(this + 0x70);
}
*(int1 *)(puVar10 + 10) = 0;
lVar6 = *(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4;
uVar7 = (*(long *)(this + 0x98) + 1U) % (ulong)(lVar6 * -0x5555555555555555);
*(ulong *)(this + 0x98) = uVar7;
if (uVar7 == *(ulong *)(this + 0x90)) {
/* try { // try from 001cfc9b to 001cfcad has its CatchHandler @ 001cfe29 */
std::vector<common_log_entry,std::allocator<common_log_entry>>::vector
((ulong)&local_68,(allocator *)(lVar6 * 0x5555555555555556));
lVar6 = *(long *)(this + 0x78);
uVar7 = *(ulong *)(this + 0x90);
lVar11 = 0x10;
lVar8 = 0;
uVar12 = 0;
do {
lVar9 = local_68;
puVar10 = (int4 *)(lVar6 + uVar7 * 0x30);
uVar2 = puVar10[1];
uVar3 = puVar10[2];
uVar4 = puVar10[3];
puVar1 = (int4 *)(local_68 + lVar8);
*puVar1 = *puVar10;
puVar1[1] = uVar2;
puVar1[2] = uVar3;
puVar1[3] = uVar4;
std::vector<char,std::allocator<char>>::_M_move_assign(local_68 + lVar11,puVar10 + 4);
*(int1 *)(lVar9 + 0x28 + lVar8) = *(int1 *)(puVar10 + 10);
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
uVar7 = (*(long *)(this + 0x90) + 1U) %
(ulong)((lVar9 - lVar6 >> 4) * -0x5555555555555555);
*(ulong *)(this + 0x90) = uVar7;
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
lVar8 = lVar8 + 0x30;
} while (uVar7 != *(ulong *)(this + 0x98));
*(int8 *)(this + 0x90) = 0;
*(ulong *)(this + 0x98) = uVar12;
if (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555)) {
do {
/* try { // try from 001cfd7b to 001cfd84 has its CatchHandler @ 001cfe34 */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(local_68 + lVar11),0x100);
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
} while (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555));
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
}
local_38 = *(long *)(this + 0x88);
*(long *)(this + 0x78) = local_68;
*(long *)(this + 0x80) = lStack_60;
*(int8 *)(this + 0x88) = local_58;
local_68 = 0;
lStack_60 = 0;
local_58 = 0;
local_48 = lVar6;
lStack_40 = lVar9;
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48);
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_68);
}
std::condition_variable::notify_one();
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar5);
}
|
|
5,429 | my_fwrite | eloqsql/mysys/my_fstream.c | size_t my_fwrite(FILE *stream, const uchar *Buffer, size_t Count, myf MyFlags)
{
size_t writtenbytes =0;
my_off_t seekptr;
#if !defined(NO_BACKGROUND) && defined(USE_MY_STREAM)
uint errors;
#endif
DBUG_ENTER("my_fwrite");
DBUG_PRINT("my",("stream:%p Buffer:%p Count: %u MyFlags: %lu",
stream, Buffer, (uint) Count, MyFlags));
#if !defined(NO_BACKGROUND) && defined(USE_MY_STREAM)
errors=0;
#endif
seekptr= ftell(stream);
for (;;)
{
size_t written;
if ((written = (size_t) fwrite((char*) Buffer,sizeof(char),
Count, stream)) != Count)
{
DBUG_PRINT("error",("Write only %d bytes", (int) writtenbytes));
my_errno=errno;
if (written != (size_t) -1)
{
seekptr+=written;
Buffer+=written;
writtenbytes+=written;
Count-=written;
}
#ifdef EINTR
if (errno == EINTR)
{
(void) my_fseek(stream,seekptr,MY_SEEK_SET,MYF(0));
continue;
}
#endif
#if !defined(NO_BACKGROUND) && defined(USE_MY_STREAM)
if (my_thread_var->abort)
MyFlags&= ~ MY_WAIT_IF_FULL; /* End if aborted by user */
if ((errno == ENOSPC || errno == EDQUOT) &&
(MyFlags & MY_WAIT_IF_FULL))
{
wait_for_free_space("[stream]", errors);
errors++;
(void) my_fseek(stream,seekptr,MY_SEEK_SET,MYF(0));
continue;
}
#endif
if (ferror(stream) || (MyFlags & (MY_NABP | MY_FNABP)))
{
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
{
my_error(EE_WRITE, MYF(ME_BELL),
my_filename(my_fileno(stream)), errno);
}
writtenbytes= (size_t) -1; /* Return that we got error */
break;
}
}
if (MyFlags & (MY_NABP | MY_FNABP))
writtenbytes= 0; /* Everything OK */
else
writtenbytes+= written;
break;
}
DBUG_RETURN(writtenbytes);
} | O3 | c | my_fwrite:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x30(%rbp)
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
callq 0x25700
movq %rax, %r13
movl $0x1, %esi
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x25890
cmpq %r12, %rax
jne 0x2cbaf
movq $0x0, -0x38(%rbp)
jmp 0x2cc47
movq %rax, %r15
movq $0x0, -0x38(%rbp)
callq 0x25060
movq %rax, -0x40(%rbp)
movq %r14, %rbx
movq -0x40(%rbp), %rax
movl (%rax), %r14d
callq 0x2ed72
movl %r14d, (%rax)
movq %r13, %rsi
cmpq $-0x1, %r15
je 0x2cbec
addq %r15, %rsi
addq %r15, -0x48(%rbp)
addq %r15, -0x38(%rbp)
subq %r15, %r12
movq -0x40(%rbp), %rax
cmpl $0x4, (%rax)
movq %rbx, %r14
movq %rbx, %rdi
jne 0x2cc2f
movq %rsi, %r13
xorl %edx, %edx
callq 0x257c0
testl %eax, %eax
jne 0x2cc11
movq %r14, %rdi
callq 0x25700
movl $0x1, %esi
movq -0x48(%rbp), %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x25890
movq %rax, %r15
cmpq %r12, %rax
jne 0x2cbc3
jmp 0x2cc47
callq 0x25850
testl %eax, %eax
sete %al
testb $0x6, -0x30(%rbp)
sete %cl
movq %r15, %r12
testb %al, %cl
je 0x2cc67
addq -0x38(%rbp), %r12
xorl %ebx, %ebx
testb $0x6, -0x30(%rbp)
cmoveq %r12, %rbx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $-0x1, %rbx
testb $0x1a, -0x30(%rbp)
je 0x2cc55
movq %r14, %rdi
callq 0x25470
movl %eax, %edi
callq 0x33e6c
movq -0x40(%rbp), %rcx
movl (%rcx), %ecx
movl $0x4, %esi
movl $0x3, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2c37b
jmp 0x2cc55
| my_fwrite:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rbp+var_30], rcx
mov r12, rdx
mov rbx, rsi
mov r14, rdi
call _ftello64
mov r13, rax
mov esi, 1
mov [rbp+var_48], rbx
mov rdi, rbx
mov rdx, r12
mov rcx, r14
call _fwrite
cmp rax, r12
jnz short loc_2CBAF
mov [rbp+var_38], 0
jmp loc_2CC47
loc_2CBAF:
mov r15, rax
mov [rbp+var_38], 0
call ___errno_location
mov [rbp+var_40], rax
loc_2CBC3:
mov rbx, r14
mov rax, [rbp+var_40]
mov r14d, [rax]
call _my_thread_var
mov [rax], r14d
mov rsi, r13
cmp r15, 0FFFFFFFFFFFFFFFFh
jz short loc_2CBEC
add rsi, r15
add [rbp+var_48], r15
add [rbp+var_38], r15
sub r12, r15
loc_2CBEC:
mov rax, [rbp+var_40]
cmp dword ptr [rax], 4
mov r14, rbx
mov rdi, rbx
jnz short loc_2CC2F
mov r13, rsi
xor edx, edx
call _fseeko64
test eax, eax
jnz short loc_2CC11
mov rdi, r14
call _ftello64
loc_2CC11:
mov esi, 1
mov rdi, [rbp+var_48]
mov rdx, r12
mov rcx, r14
call _fwrite
mov r15, rax
cmp rax, r12
jnz short loc_2CBC3
jmp short loc_2CC47
loc_2CC2F:
call _ferror
test eax, eax
setz al
test byte ptr [rbp+var_30], 6
setz cl
mov r12, r15
test cl, al
jz short loc_2CC67
loc_2CC47:
add r12, [rbp+var_38]
xor ebx, ebx
test byte ptr [rbp+var_30], 6
cmovz rbx, r12
loc_2CC55:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2CC67:
mov rbx, 0FFFFFFFFFFFFFFFFh
test byte ptr [rbp+var_30], 1Ah
jz short loc_2CC55
mov rdi, r14
call _fileno
mov edi, eax
call my_filename
mov rcx, [rbp+var_40]
mov ecx, [rcx]
mov esi, 4
mov edi, 3
mov rdx, rax
xor eax, eax
call my_error
jmp short loc_2CC55
| long long my_fwrite(long long a1, long long a2, long long a3, char a4)
{
long long v6; // r13
long long v7; // rdi
long long v8; // rax
long long v9; // r15
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
long long v14; // rbx
unsigned int v15; // r14d
long long v16; // rsi
long long v17; // r12
long long v18; // rbx
unsigned int v20; // eax
long long v21; // rax
long long v22; // [rsp+8h] [rbp-48h]
unsigned int *v23; // [rsp+10h] [rbp-40h]
long long v24; // [rsp+18h] [rbp-38h]
v6 = ((long long (*)(void))ftello64)();
v22 = a2;
v7 = a2;
v8 = fwrite(a2, 1LL, a3, a1);
if ( v8 == a3 )
{
v24 = 0LL;
LABEL_12:
v17 = v24 + a3;
v18 = 0LL;
if ( (a4 & 6) == 0 )
return v17;
return v18;
}
v9 = v8;
v24 = 0LL;
v23 = (unsigned int *)__errno_location(a2);
while ( 1 )
{
v14 = a1;
v15 = *v23;
*(_DWORD *)my_thread_var(v7, 1LL, v10, v11, v12, v13) = v15;
v16 = v6;
if ( v9 != -1 )
{
v16 = v9 + v6;
v22 += v9;
v24 += v9;
a3 -= v9;
}
a1 = v14;
if ( *v23 != 4 )
break;
v6 = v16;
if ( !(unsigned int)fseeko64(v14, v16, 0LL) )
ftello64(v14);
v7 = v22;
v9 = fwrite(v22, 1LL, a3, v14);
if ( v9 == a3 )
goto LABEL_12;
}
a3 = v9;
if ( (unsigned int)ferror(v14) == 0 && (a4 & 6) == 0 )
goto LABEL_12;
v18 = -1LL;
if ( (a4 & 0x1A) != 0 )
{
v20 = fileno(a1);
v21 = my_filename(v20);
my_error(3u, 4LL, v21, *v23);
}
return v18;
}
| my_fwrite:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RBP + -0x30],RCX
MOV R12,RDX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00125700
MOV R13,RAX
MOV ESI,0x1
MOV qword ptr [RBP + -0x48],RBX
MOV RDI,RBX
MOV RDX,R12
MOV RCX,R14
CALL 0x00125890
CMP RAX,R12
JNZ 0x0012cbaf
MOV qword ptr [RBP + -0x38],0x0
JMP 0x0012cc47
LAB_0012cbaf:
MOV R15,RAX
MOV qword ptr [RBP + -0x38],0x0
CALL 0x00125060
MOV qword ptr [RBP + -0x40],RAX
LAB_0012cbc3:
MOV RBX,R14
MOV RAX,qword ptr [RBP + -0x40]
MOV R14D,dword ptr [RAX]
CALL 0x0012ed72
MOV dword ptr [RAX],R14D
MOV RSI,R13
CMP R15,-0x1
JZ 0x0012cbec
ADD RSI,R15
ADD qword ptr [RBP + -0x48],R15
ADD qword ptr [RBP + -0x38],R15
SUB R12,R15
LAB_0012cbec:
MOV RAX,qword ptr [RBP + -0x40]
CMP dword ptr [RAX],0x4
MOV R14,RBX
MOV RDI,RBX
JNZ 0x0012cc2f
MOV R13,RSI
XOR EDX,EDX
CALL 0x001257c0
TEST EAX,EAX
JNZ 0x0012cc11
MOV RDI,R14
CALL 0x00125700
LAB_0012cc11:
MOV ESI,0x1
MOV RDI,qword ptr [RBP + -0x48]
MOV RDX,R12
MOV RCX,R14
CALL 0x00125890
MOV R15,RAX
CMP RAX,R12
JNZ 0x0012cbc3
JMP 0x0012cc47
LAB_0012cc2f:
CALL 0x00125850
TEST EAX,EAX
SETZ AL
TEST byte ptr [RBP + -0x30],0x6
SETZ CL
MOV R12,R15
TEST CL,AL
JZ 0x0012cc67
LAB_0012cc47:
ADD R12,qword ptr [RBP + -0x38]
XOR EBX,EBX
TEST byte ptr [RBP + -0x30],0x6
CMOVZ RBX,R12
LAB_0012cc55:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012cc67:
MOV RBX,-0x1
TEST byte ptr [RBP + -0x30],0x1a
JZ 0x0012cc55
MOV RDI,R14
CALL 0x00125470
MOV EDI,EAX
CALL 0x00133e6c
MOV RCX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RCX]
MOV ESI,0x4
MOV EDI,0x3
MOV RDX,RAX
XOR EAX,EAX
CALL 0x0012c37b
JMP 0x0012cc55
|
long my_fwrite(FILE *param_1,void *param_2,size_t param_3,ulong param_4)
{
int iVar1;
__off64_t __off;
size_t sVar2;
int *piVar3;
int *piVar4;
int8 uVar5;
long lVar6;
void *local_50;
long local_40;
__off = ftello64(param_1);
sVar2 = fwrite(param_2,1,param_3,param_1);
if (sVar2 == param_3) {
local_40 = 0;
}
else {
local_40 = 0;
piVar3 = __errno_location();
local_50 = param_2;
do {
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
if (sVar2 != 0xffffffffffffffff) {
__off = __off + sVar2;
local_50 = (void *)((long)local_50 + sVar2);
local_40 = local_40 + sVar2;
param_3 = param_3 - sVar2;
}
if (*piVar3 != 4) {
iVar1 = ferror(param_1);
param_3 = sVar2;
if ((param_4 & 6) != 0 || iVar1 != 0) {
if ((param_4 & 0x1a) == 0) {
return -1;
}
iVar1 = fileno(param_1);
uVar5 = my_filename(iVar1);
my_error(3,4,uVar5,*piVar3);
return -1;
}
break;
}
iVar1 = fseeko64(param_1,__off,0);
if (iVar1 == 0) {
ftello64(param_1);
}
sVar2 = fwrite(local_50,1,param_3,param_1);
} while (sVar2 != param_3);
}
lVar6 = 0;
if ((param_4 & 6) == 0) {
lVar6 = param_3 + local_40;
}
return lVar6;
}
|
|
5,430 | my_thread_end | eloqsql/mysys/my_thr_init.c | void my_thread_end(void)
{
struct st_my_thread_var *tmp;
tmp= my_thread_var;
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_end(): tmp: %p pthread_self: %p thread_id: %ld\n",
tmp, pthread_self(), tmp ? (long) tmp->id : 0L);
#endif
/*
Remove the instrumentation for this thread.
This must be done before trashing st_my_thread_var,
because the LF_HASH depends on it.
*/
PSI_CALL_delete_current_thread();
/*
We need to disable DBUG early for this thread to ensure that the
the mutex calls doesn't enable it again
To this we have to both do DBUG_POP() and also reset THR_KEY_mysys
as the key is used by DBUG.
*/
DBUG_POP();
set_mysys_var(NULL);
if (tmp && tmp->init)
{
#if !defined(DBUG_OFF)
/* tmp->dbug is allocated inside DBUG library */
if (tmp->dbug)
{
free(tmp->dbug);
tmp->dbug=0;
}
#endif
my_thread_destory_thr_mutex(tmp);
/*
Decrement counter for number of running threads. We are using this
in my_thread_global_end() to wait until all threads have called
my_thread_end and thus freed all memory they have allocated in
my_thread_init() and DBUG_xxxx
*/
mysql_mutex_lock(&THR_LOCK_threads);
DBUG_ASSERT(THR_thread_count != 0);
if (--THR_thread_count == 0)
mysql_cond_signal(&THR_COND_threads);
mysql_mutex_unlock(&THR_LOCK_threads);
/* Trash variable so that we can detect false accesses to my_thread_var */
tmp->init= 2;
free(tmp);
}
} | O3 | c | my_thread_end:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0xb66683(%rip), %r15 # 0xc08534
movl (%r15), %edi
callq 0x29840
movq %rax, %rbx
leaq 0x2e414d(%rip), %r14 # 0x386010
movq (%r14), %rax
callq *0x138(%rax)
movl (%r15), %edi
xorl %esi, %esi
callq 0x292f0
testq %rbx, %rbx
je 0xa1f54
cmpb $0x0, 0xe8(%rbx)
je 0xa1f54
movq %rbx, %rdi
callq 0xa1ac5
leaq 0xb66575(%rip), %r15 # 0xc08468
cmpq $0x0, 0x40(%r15)
jne 0xa1f5f
leaq 0xb66567(%rip), %rdi # 0xc08468
callq 0x29200
leaq 0xb6635b(%rip), %rax # 0xc08268
decl (%rax)
jne 0xa1f2d
leaq 0xb665e0(%rip), %rax # 0xc084f8
movq 0x30(%rax), %rdi
testq %rdi, %rdi
jne 0xa1f71
leaq 0xb665d0(%rip), %rdi # 0xc084f8
callq 0x295b0
movq 0x40(%r15), %rdi
testq %rdi, %rdi
jne 0xa1f66
leaq 0xb6652b(%rip), %rdi # 0xc08468
callq 0x291c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x29140
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2efc7
jmp 0xa1f06
movq (%r14), %rax
callq *0x160(%rax)
jmp 0xa1f36
movq (%r14), %rax
callq *0x170(%rax)
jmp 0xa1f21
| my_thread_end:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
lea r15, THR_KEY_mysys
mov edi, [r15]
call _pthread_getspecific
mov rbx, rax
lea r14, PSI_server
mov rax, [r14]
call qword ptr [rax+138h]
mov edi, [r15]
xor esi, esi
call _pthread_setspecific
test rbx, rbx
jz short loc_A1F54
cmp byte ptr [rbx+0E8h], 0
jz short loc_A1F54
mov rdi, rbx
call my_thread_destory_thr_mutex
lea r15, THR_LOCK_threads
cmp qword ptr [r15+40h], 0
jnz short loc_A1F5F
lea rdi, THR_LOCK_threads
call _pthread_mutex_lock
loc_A1F06:
lea rax, THR_thread_count
dec dword ptr [rax]
jnz short loc_A1F2D
lea rax, THR_COND_threads
mov rdi, [rax+30h]
test rdi, rdi
jnz short loc_A1F71
loc_A1F21:
lea rdi, THR_COND_threads
call _pthread_cond_signal
loc_A1F2D:
mov rdi, [r15+40h]
test rdi, rdi
jnz short loc_A1F66
loc_A1F36:
lea rdi, THR_LOCK_threads
call _pthread_mutex_unlock
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _free
loc_A1F54:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A1F5F:
call my_thread_end_cold_1
jmp short loc_A1F06
loc_A1F66:
mov rax, [r14]
call qword ptr [rax+160h]
jmp short loc_A1F36
loc_A1F71:
mov rax, [r14]
call qword ptr [rax+170h]
jmp short loc_A1F21
| long long my_thread_end()
{
long long v0; // rdi
long long v1; // rbx
long long result; // rax
long long v3; // rdi
long long v4; // rdi
v0 = THR_KEY_mysys;
v1 = pthread_getspecific(THR_KEY_mysys);
((void ( *)(long long))PSI_server[39])(v0);
result = pthread_setspecific(THR_KEY_mysys, 0LL);
if ( v1 && *(_BYTE *)(v1 + 232) )
{
my_thread_destory_thr_mutex(v1);
if ( THR_LOCK_threads[8] )
my_thread_end_cold_1(v1);
else
pthread_mutex_lock(THR_LOCK_threads);
if ( !--THR_thread_count )
{
v3 = THR_COND_threads[6];
if ( v3 )
((void ( *)(long long))PSI_server[46])(v3);
pthread_cond_signal(THR_COND_threads);
}
v4 = THR_LOCK_threads[8];
if ( v4 )
((void ( *)(long long))PSI_server[44])(v4);
pthread_mutex_unlock(THR_LOCK_threads);
return free(v1);
}
return result;
}
| my_thread_end:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
LEA R15,[0xd08534]
MOV EDI,dword ptr [R15]
CALL 0x00129840
MOV RBX,RAX
LEA R14,[0x486010]
MOV RAX,qword ptr [R14]
CALL qword ptr [RAX + 0x138]
MOV EDI,dword ptr [R15]
XOR ESI,ESI
CALL 0x001292f0
TEST RBX,RBX
JZ 0x001a1f54
CMP byte ptr [RBX + 0xe8],0x0
JZ 0x001a1f54
MOV RDI,RBX
CALL 0x001a1ac5
LEA R15,[0xd08468]
CMP qword ptr [R15 + 0x40],0x0
JNZ 0x001a1f5f
LEA RDI,[0xd08468]
CALL 0x00129200
LAB_001a1f06:
LEA RAX,[0xd08268]
DEC dword ptr [RAX]
JNZ 0x001a1f2d
LEA RAX,[0xd084f8]
MOV RDI,qword ptr [RAX + 0x30]
TEST RDI,RDI
JNZ 0x001a1f71
LAB_001a1f21:
LEA RDI,[0xd084f8]
CALL 0x001295b0
LAB_001a1f2d:
MOV RDI,qword ptr [R15 + 0x40]
TEST RDI,RDI
JNZ 0x001a1f66
LAB_001a1f36:
LEA RDI,[0xd08468]
CALL 0x001291c0
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00129140
LAB_001a1f54:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a1f5f:
CALL 0x0012efc7
JMP 0x001a1f06
LAB_001a1f66:
MOV RAX,qword ptr [R14]
CALL qword ptr [RAX + 0x160]
JMP 0x001a1f36
LAB_001a1f71:
MOV RAX,qword ptr [R14]
CALL qword ptr [RAX + 0x170]
JMP 0x001a1f21
|
void my_thread_end(void)
{
void *__ptr;
__ptr = pthread_getspecific(THR_KEY_mysys);
(**(code **)(PSI_server + 0x138))();
pthread_setspecific(THR_KEY_mysys,(void *)0x0);
if ((__ptr != (void *)0x0) && (*(char *)((long)__ptr + 0xe8) != '\0')) {
my_thread_destory_thr_mutex(__ptr);
if (THR_LOCK_threads._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_threads);
}
else {
my_thread_end_cold_1();
}
THR_thread_count = THR_thread_count + -1;
if (THR_thread_count == 0) {
if (THR_COND_threads._48_8_ != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal((pthread_cond_t *)THR_COND_threads);
}
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_threads);
free(__ptr);
return;
}
return;
}
|
|
5,431 | list_delete | eloqsql/mysys/list.c | LIST *list_delete(LIST *root, LIST *element)
{
if (element->prev)
element->prev->next=element->next;
else
root=element->next;
if (element->next)
element->next->prev=element->prev;
return root;
} | O0 | c | list_delete:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0xdf3fb
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
jmp 0xdf407
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xdf424
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
| list_delete:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jz short loc_DF3FB
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+8], rcx
jmp short loc_DF407
loc_DF3FB:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_8], rax
loc_DF407:
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_DF424
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax], rcx
loc_DF424:
mov rax, [rbp+var_8]
pop rbp
retn
| long long list_delete(long long a1, _QWORD *a2)
{
if ( *a2 )
*(_QWORD *)(*a2 + 8LL) = a2[1];
else
a1 = a2[1];
if ( a2[1] )
*(_QWORD *)a2[1] = *a2;
return a1;
}
| list_delete:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JZ 0x001df3fb
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001df407
LAB_001df3fb:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
LAB_001df407:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001df424
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX],RCX
LAB_001df424:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long list_delete(long param_1,long *param_2)
{
long local_10;
if (*param_2 == 0) {
local_10 = param_2[1];
}
else {
*(long *)(*param_2 + 8) = param_2[1];
local_10 = param_1;
}
if (param_2[1] != 0) {
*(long *)param_2[1] = *param_2;
}
return local_10;
}
|
|
5,432 | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [5], 0>(char const (&) [5]) | hkr04[P]cpp-mcp/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O0 | cpp | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [5], 0>(char const (&) [5]):
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x6fa60
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rdi
callq 0x6fa90
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x6fac0
testb $0x1, %al
jne 0xd08d6
jmp 0xd0916
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x76480
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0xd0930
testb $0x1, %al
jne 0xd0906
jmp 0xd0908
jmp 0xd0925
jmp 0xd090a
leaq 0x30(%rsp), %rdi
callq 0x6fb40
jmp 0xd08b2
movq 0x10(%rsp), %rdi
callq 0x6fa90
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov rdi, [rsp+38h+var_10]
mov [rsp+38h+var_28], rdi
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov [rsp+38h+var_8], rax
loc_D08B2:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+38h+var_20], rax
lea rdi, [rsp+38h+var_8]
lea rsi, [rsp+38h+var_20]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
test al, 1
jnz short loc_D08D6
jmp short loc_D0916
loc_D08D6:
mov rax, [rsp+38h+var_28]
add rax, 18h
mov [rsp+38h+var_30], rax
lea rdi, [rsp+38h+var_8]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void)
mov rdi, [rsp+38h+var_30]
mov rsi, rax
mov rdx, [rsp+38h+var_18]
call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA3_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_
test al, 1
jnz short loc_D0906
jmp short loc_D0908
loc_D0906:
jmp short loc_D0925
loc_D0908:
jmp short $+2
loc_D090A:
lea rdi, [rsp+38h+var_8]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void)
jmp short loc_D08B2
loc_D0916:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+38h+var_8], rax
loc_D0925:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long a1,
long long a2)
{
long long v2; // rax
long long v4; // [rsp+18h] [rbp-20h] BYREF
long long v5; // [rsp+20h] [rbp-18h]
long long v6; // [rsp+28h] [rbp-10h]
long long i; // [rsp+30h] [rbp-8h] BYREF
v6 = a1;
v5 = a2;
for ( i = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(a1);
;
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i) )
{
v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1);
if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
(long long)&i,
(long long)&v4) )
break;
v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i);
if ( (std::equal_to<void>::operator()<std::string const&,char const(&)[3]>(a1 + 24, v2, v5) & 1) != 0 )
return i;
}
return std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1);
}
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV RDI,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0016fa60
MOV qword ptr [RSP + 0x30],RAX
LAB_001d08b2:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0016fa90
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x18]
CALL 0x0016fac0
TEST AL,0x1
JNZ 0x001d08d6
JMP 0x001d0916
LAB_001d08d6:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x18
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x30]
CALL 0x00176480
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x001d0930
TEST AL,0x1
JNZ 0x001d0906
JMP 0x001d0908
LAB_001d0906:
JMP 0x001d0925
LAB_001d0908:
JMP 0x001d090a
LAB_001d090a:
LEA RDI,[RSP + 0x30]
CALL 0x0016fb40
JMP 0x001d08b2
LAB_001d0916:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0016fa90
MOV qword ptr [RSP + 0x30],RAX
LAB_001d0925:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int8
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*param_1,char *param_2)
{
bool bVar1;
string *psVar2;
ulong uVar3;
int8 uVar4;
int8 local_20;
char *local_18;
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*local_10;
int8 local_8;
local_18 = param_2;
local_10 = param_1;
local_8 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::begin(param_1);
while( true ) {
local_20 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(param_1);
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_8,(__normal_iterator *)&local_20);
if (!bVar1) {
uVar4 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(param_1);
return uVar4;
}
psVar2 = (string *)
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator->((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_8);
uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(param_1 + 0x18),psVar2,local_18);
if ((uVar3 & 1) != 0) break;
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_8);
}
return local_8;
}
|
|
5,433 | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [5], 0>(char const (&) [5]) | hkr04[P]cpp-mcp/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O2 | cpp | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [5], 0>(char const (&) [5]):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r14
movq 0x8(%r15), %rax
cmpq %rax, %r14
je 0x457d9
movq %r14, %rdi
movq %rbx, %rsi
callq 0xce79
testb %al, %al
jne 0x457d6
addq $0x30, %r14
jmp 0x457b8
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
push r15
push r14
push rbx
mov rbx, rsi
mov r15, rdi
mov r14, [rdi]
loc_457B8:
mov rax, [r15+8]
cmp r14, rax
jz short loc_457D9
mov rdi, r14
mov rsi, rbx
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_457D6
add r14, 30h ; '0'
jmp short loc_457B8
loc_457D6:
mov rax, r14
loc_457D9:
pop rbx
pop r14
pop r15
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long *a1)
{
long long i; // r14
long long result; // rax
for ( i = *a1; ; i += 48LL )
{
result = a1[1];
if ( i == result )
break;
if ( std::operator==<char>(i) )
return i;
}
return result;
}
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
MOV R14,qword ptr [RDI]
LAB_001457b8:
MOV RAX,qword ptr [R15 + 0x8]
CMP R14,RAX
JZ 0x001457d9
MOV RDI,R14
MOV RSI,RBX
CALL 0x0010ce79
TEST AL,AL
JNZ 0x001457d6
ADD R14,0x30
JMP 0x001457b8
LAB_001457d6:
MOV RAX,R14
LAB_001457d9:
POP RBX
POP R14
POP R15
RET
|
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(int8 *param_1,char *param_2)
{
bool bVar1;
string *psVar2;
string *psVar3;
psVar3 = (string *)*param_1;
while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] &&
(bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) {
psVar3 = psVar3 + 0x30;
}
return psVar2;
}
|
|
5,434 | tprint | eloqsql/storage/maria/ma_recovery_util.c | void tprint(FILE *trace_file __attribute__ ((unused)),
const char *format __attribute__ ((unused)), ...)
{
va_list args;
#ifndef DBUG_OFF
{
char buff[1024];
size_t length;
va_start(args, format);
length= my_vsnprintf(buff, sizeof(buff)-1, format, args);
if (length && buff[length-1] == '\n')
buff[length-1]= 0; /* Don't print end \n */
DBUG_PRINT("info", ("%s", buff));
va_end(args);
}
#endif
va_start(args, format);
if (trace_file != NULL)
vfprintf(trace_file, format, args);
va_end(args);
} | O3 | c | tprint:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, %r10
leaq -0xd0(%rbp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x74e33
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 %rsi, -0x10(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x20(%rbp)
testq %rdi, %rdi
je 0x74e63
leaq -0x20(%rbp), %rcx
movl $0x1, %esi
movq %r10, %rdx
callq 0x2a740
addq $0xd0, %rsp
popq %rbp
retq
| tprint:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov r10, rsi
lea rsi, [rbp+var_D0]
mov [rsi+10h], rdx
mov [rsi+18h], rcx
mov [rsi+20h], r8
mov [rsi+28h], r9
test al, al
jz short loc_74E33
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_74E33:
mov [rbp+var_10], rsi
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
mov rax, 3000000010h
mov [rbp+var_20], rax
test rdi, rdi
jz short loc_74E63
lea rcx, [rbp+var_20]
mov esi, 1
mov rdx, r10
call ___vfprintf_chk
loc_74E63:
add rsp, 0D0h
pop rbp
retn
| long long tprint(
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)
{
long long result; // rax
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;
result = 0x3000000010LL;
v29[0] = 0x3000000010LL;
if ( a1 )
return __vfprintf_chk(a1, 1LL, a2, v29);
return result;
}
| tprint:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV R10,RSI
LEA RSI,[RBP + -0xd0]
MOV qword ptr [RSI + 0x10],RDX
MOV qword ptr [RSI + 0x18],RCX
MOV qword ptr [RSI + 0x20],R8
MOV qword ptr [RSI + 0x28],R9
TEST AL,AL
JZ 0x00174e33
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_00174e33:
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x20],RAX
TEST RDI,RDI
JZ 0x00174e63
LEA RCX,[RBP + -0x20]
MOV ESI,0x1
MOV RDX,R10
CALL 0x0012a740
LAB_00174e63:
ADD RSP,0xd0
POP RBP
RET
|
void tprint(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,
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 (param_9 != 0) {
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
__vfprintf_chk(param_9,1,param_10,&local_28);
}
return;
}
|
|
5,435 | alaya::SequentialStorage<unsigned int, unsigned int>::save(std::basic_ofstream<char, std::char_traits<char>>&) const | AlayaLite/include/storage/sequential_storage.hpp | auto save(std::ofstream &writer) const -> void {
writer.write(reinterpret_cast<const char *>(&item_size_), sizeof(item_size_));
writer.write(reinterpret_cast<const char *>(&aligned_item_size_), sizeof(aligned_item_size_));
writer.write(reinterpret_cast<const char *>(&capacity_), sizeof(capacity_));
writer.write(reinterpret_cast<const char *>(&pos_), sizeof(pos_));
writer.write(reinterpret_cast<const char *>(&alignment_), sizeof(alignment_));
writer.write(reinterpret_cast<char *>(data_), aligned_item_size_ * capacity_);
writer.write(reinterpret_cast<char *>(bitmap_), capacity_ / sizeof(char) + 1);
} | O0 | cpp | alaya::SequentialStorage<unsigned int, unsigned int>::save(std::basic_ofstream<char, std::char_traits<char>>&) const:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq 0x8(%rsp), %rdi
movl $0x8, %edx
callq 0x15a20
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
addq $0x8, %rsi
movl $0x8, %edx
callq 0x15a20
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
addq $0x10, %rsi
movl $0x8, %edx
callq 0x15a20
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
addq $0x18, %rsi
movl $0x8, %edx
callq 0x15a20
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
addq $0x20, %rsi
movl $0x8, %edx
callq 0x15a20
movq (%rsp), %rax
movq 0x8(%rsp), %rdi
movq 0x28(%rax), %rsi
movq 0x8(%rax), %rdx
imulq 0x10(%rax), %rdx
callq 0x15a20
movq (%rsp), %rax
movq 0x8(%rsp), %rdi
movq 0x30(%rax), %rsi
movq 0x10(%rax), %rdx
shrq $0x0, %rdx
addq $0x1, %rdx
callq 0x15a20
addq $0x18, %rsp
retq
| _ZNK5alaya17SequentialStorageIjjE4saveERSt14basic_ofstreamIcSt11char_traitsIcEE:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rsi, [rsp+18h+var_8]; char *
mov [rsp+18h+var_18], rsi
mov rdi, [rsp+18h+var_10]; this
mov edx, 8; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rsi, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
add rsi, 8; char *
mov edx, 8; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rsi, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
add rsi, 10h; char *
mov edx, 8; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rsi, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
add rsi, 18h; char *
mov edx, 8; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rsi, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
add rsi, 20h ; ' '; char *
mov edx, 8; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rax, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
mov rsi, [rax+28h]; char *
mov rdx, [rax+8]
imul rdx, [rax+10h]; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rax, [rsp+18h+var_18]
mov rdi, [rsp+18h+var_10]; this
mov rsi, [rax+30h]; char *
mov rdx, [rax+10h]
shr rdx, 0
add rdx, 1; __int64
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
add rsp, 18h
retn
| long long alaya::SequentialStorage<unsigned int,unsigned int>::save(long long a1, std::ostream *a2)
{
std::ostream::write(a2, (const char *)a1, 8LL);
std::ostream::write(a2, (const char *)(a1 + 8), 8LL);
std::ostream::write(a2, (const char *)(a1 + 16), 8LL);
std::ostream::write(a2, (const char *)(a1 + 24), 8LL);
std::ostream::write(a2, (const char *)(a1 + 32), 8LL);
std::ostream::write(a2, *(const char **)(a1 + 40), *(_QWORD *)(a1 + 16) * *(_QWORD *)(a1 + 8));
return std::ostream::write(a2, *(const char **)(a1 + 48), *(_QWORD *)(a1 + 16) + 1LL);
}
| save:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RSI
MOV RDI,qword ptr [RSP + 0x8]
MOV EDX,0x8
CALL 0x00115a20
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
ADD RSI,0x8
MOV EDX,0x8
CALL 0x00115a20
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
ADD RSI,0x10
MOV EDX,0x8
CALL 0x00115a20
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
ADD RSI,0x18
MOV EDX,0x8
CALL 0x00115a20
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
ADD RSI,0x20
MOV EDX,0x8
CALL 0x00115a20
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX + 0x28]
MOV RDX,qword ptr [RAX + 0x8]
IMUL RDX,qword ptr [RAX + 0x10]
CALL 0x00115a20
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX + 0x30]
MOV RDX,qword ptr [RAX + 0x10]
SHR RDX,0x0
ADD RDX,0x1
CALL 0x00115a20
ADD RSP,0x18
RET
|
/* alaya::SequentialStorage<unsigned int, unsigned int>::save(std::ofstream&) const */
void __thiscall
alaya::SequentialStorage<unsigned_int,unsigned_int>::save
(SequentialStorage<unsigned_int,unsigned_int> *this,ofstream *param_1)
{
std::ostream::write((char *)param_1,(long)this);
std::ostream::write((char *)param_1,(long)(this + 8));
std::ostream::write((char *)param_1,(long)(this + 0x10));
std::ostream::write((char *)param_1,(long)(this + 0x18));
std::ostream::write((char *)param_1,(long)(this + 0x20));
std::ostream::write((char *)param_1,*(long *)(this + 0x28));
std::ostream::write((char *)param_1,*(long *)(this + 0x30));
return;
}
|
|
5,436 | alaya::SequentialStorage<unsigned int, unsigned int>::save(std::basic_ofstream<char, std::char_traits<char>>&) const | AlayaLite/include/storage/sequential_storage.hpp | auto save(std::ofstream &writer) const -> void {
writer.write(reinterpret_cast<const char *>(&item_size_), sizeof(item_size_));
writer.write(reinterpret_cast<const char *>(&aligned_item_size_), sizeof(aligned_item_size_));
writer.write(reinterpret_cast<const char *>(&capacity_), sizeof(capacity_));
writer.write(reinterpret_cast<const char *>(&pos_), sizeof(pos_));
writer.write(reinterpret_cast<const char *>(&alignment_), sizeof(alignment_));
writer.write(reinterpret_cast<char *>(data_), aligned_item_size_ * capacity_);
writer.write(reinterpret_cast<char *>(bitmap_), capacity_ / sizeof(char) + 1);
} | O3 | cpp | alaya::SequentialStorage<unsigned int, unsigned int>::save(std::basic_ofstream<char, std::char_traits<char>>&) const:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x8, %edx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x115f0
leaq 0x8(%r14), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x115f0
leaq 0x10(%r14), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x115f0
leaq 0x18(%r14), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x115f0
leaq 0x20(%r14), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x115f0
movq 0x10(%r14), %rdx
movq 0x28(%r14), %rsi
imulq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x115f0
movq 0x10(%r14), %rdx
movq 0x30(%r14), %rsi
incq %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x115f0
nop
| _ZNK5alaya17SequentialStorageIjjE4saveERSt14basic_ofstreamIcSt11char_traitsIcEE:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov edx, 8; __int64
mov rdi, rsi; this
mov rsi, r14; char *
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
lea rsi, [r14+8]; char *
mov edx, 8; __int64
mov rdi, rbx; this
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
lea rsi, [r14+10h]; char *
mov edx, 8; __int64
mov rdi, rbx; this
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
lea rsi, [r14+18h]; char *
mov edx, 8; __int64
mov rdi, rbx; this
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
lea rsi, [r14+20h]; char *
mov edx, 8; __int64
mov rdi, rbx; this
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rdx, [r14+10h]
mov rsi, [r14+28h]; char *
imul rdx, [r14+8]; __int64
mov rdi, rbx; this
call __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
mov rdx, [r14+10h]
mov rsi, [r14+30h]; char *
inc rdx; __int64
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp __ZNSo5writeEPKcl; std::ostream::write(char const*,long)
| long long alaya::SequentialStorage<unsigned int,unsigned int>::save(char *a1, std::ostream *this)
{
std::ostream::write(this, a1, 8LL);
std::ostream::write(this, a1 + 8, 8LL);
std::ostream::write(this, a1 + 16, 8LL);
std::ostream::write(this, a1 + 24, 8LL);
std::ostream::write(this, a1 + 32, 8LL);
std::ostream::write(this, *((const char **)a1 + 5), *((_QWORD *)a1 + 1) * *((_QWORD *)a1 + 2));
return std::ostream::write(this, *((const char **)a1 + 6), *((_QWORD *)a1 + 2) + 1LL);
}
| save:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV EDX,0x8
MOV RDI,RSI
MOV RSI,R14
CALL 0x001115f0
LEA RSI,[R14 + 0x8]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x001115f0
LEA RSI,[R14 + 0x10]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x001115f0
LEA RSI,[R14 + 0x18]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x001115f0
LEA RSI,[R14 + 0x20]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x001115f0
MOV RDX,qword ptr [R14 + 0x10]
MOV RSI,qword ptr [R14 + 0x28]
IMUL RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x001115f0
MOV RDX,qword ptr [R14 + 0x10]
MOV RSI,qword ptr [R14 + 0x30]
INC RDX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001115f0
|
/* alaya::SequentialStorage<unsigned int, unsigned int>::save(std::ofstream&) const */
void __thiscall
alaya::SequentialStorage<unsigned_int,unsigned_int>::save
(SequentialStorage<unsigned_int,unsigned_int> *this,ofstream *param_1)
{
std::ostream::write((char *)param_1,(long)this);
std::ostream::write((char *)param_1,(long)(this + 8));
std::ostream::write((char *)param_1,(long)(this + 0x10));
std::ostream::write((char *)param_1,(long)(this + 0x18));
std::ostream::write((char *)param_1,(long)(this + 0x20));
std::ostream::write((char *)param_1,*(long *)(this + 0x28));
std::ostream::write((char *)param_1,*(long *)(this + 0x30));
return;
}
|
|
5,437 | hi0bits | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static int hi0bits(register ULong x)
{
register int k= 0;
if (!(x & 0xffff0000))
{
k= 16;
x<<= 16;
}
if (!(x & 0xff000000))
{
k+= 8;
x<<= 8;
}
if (!(x & 0xf0000000))
{
k+= 4;
x<<= 4;
}
if (!(x & 0xc0000000))
{
k+= 2;
x<<= 2;
}
if (!(x & 0x80000000))
{
k++;
if (!(x & 0x40000000))
return 32;
}
return k;
} | O0 | c | hi0bits:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl -0x8(%rbp), %eax
andl $0xffff0000, %eax # imm = 0xFFFF0000
cmpl $0x0, %eax
jne 0x4f33b
movl $0x10, -0xc(%rbp)
movl -0x8(%rbp), %eax
shll $0x10, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
andl $0xff000000, %eax # imm = 0xFF000000
cmpl $0x0, %eax
jne 0x4f35a
movl -0xc(%rbp), %eax
addl $0x8, %eax
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %eax
shll $0x8, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
andl $0xf0000000, %eax # imm = 0xF0000000
cmpl $0x0, %eax
jne 0x4f379
movl -0xc(%rbp), %eax
addl $0x4, %eax
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %eax
shll $0x4, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
andl $0xc0000000, %eax # imm = 0xC0000000
cmpl $0x0, %eax
jne 0x4f398
movl -0xc(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
jne 0x4f3c6
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %eax
andl $0x40000000, %eax # imm = 0x40000000
cmpl $0x0, %eax
jne 0x4f3c4
movl $0x20, -0x4(%rbp)
jmp 0x4f3cc
jmp 0x4f3c6
movl -0xc(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| hi0bits:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
mov [rbp+var_C], 0
mov eax, [rbp+var_8]
and eax, 0FFFF0000h
cmp eax, 0
jnz short loc_4F33B
mov [rbp+var_C], 10h
mov eax, [rbp+var_8]
shl eax, 10h
mov [rbp+var_8], eax
loc_4F33B:
mov eax, [rbp+var_8]
and eax, 0FF000000h
cmp eax, 0
jnz short loc_4F35A
mov eax, [rbp+var_C]
add eax, 8
mov [rbp+var_C], eax
mov eax, [rbp+var_8]
shl eax, 8
mov [rbp+var_8], eax
loc_4F35A:
mov eax, [rbp+var_8]
and eax, 0F0000000h
cmp eax, 0
jnz short loc_4F379
mov eax, [rbp+var_C]
add eax, 4
mov [rbp+var_C], eax
mov eax, [rbp+var_8]
shl eax, 4
mov [rbp+var_8], eax
loc_4F379:
mov eax, [rbp+var_8]
and eax, 0C0000000h
cmp eax, 0
jnz short loc_4F398
mov eax, [rbp+var_C]
add eax, 2
mov [rbp+var_C], eax
mov eax, [rbp+var_8]
shl eax, 2
mov [rbp+var_8], eax
loc_4F398:
mov eax, [rbp+var_8]
and eax, 80000000h
cmp eax, 0
jnz short loc_4F3C6
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
mov eax, [rbp+var_8]
and eax, 40000000h
cmp eax, 0
jnz short loc_4F3C4
mov [rbp+var_4], 20h ; ' '
jmp short loc_4F3CC
loc_4F3C4:
jmp short $+2
loc_4F3C6:
mov eax, [rbp+var_C]
mov [rbp+var_4], eax
loc_4F3CC:
mov eax, [rbp+var_4]
pop rbp
retn
| long long hi0bits(int a1)
{
unsigned int v2; // [rsp+0h] [rbp-Ch]
int v3; // [rsp+4h] [rbp-8h]
v3 = a1;
v2 = 0;
if ( (a1 & 0xFFFF0000) == 0 )
{
v2 = 16;
v3 = a1 << 16;
}
if ( (v3 & 0xFF000000) == 0 )
{
v2 += 8;
v3 <<= 8;
}
if ( (v3 & 0xF0000000) == 0 )
{
v2 += 4;
v3 *= 16;
}
if ( (v3 & 0xC0000000) == 0 )
{
v2 += 2;
v3 *= 4;
}
if ( v3 < 0 )
return v2;
++v2;
if ( (v3 & 0x40000000) != 0 )
return v2;
else
return 32;
}
| hi0bits:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
MOV dword ptr [RBP + -0xc],0x0
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xffff0000
CMP EAX,0x0
JNZ 0x0014f33b
MOV dword ptr [RBP + -0xc],0x10
MOV EAX,dword ptr [RBP + -0x8]
SHL EAX,0x10
MOV dword ptr [RBP + -0x8],EAX
LAB_0014f33b:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff000000
CMP EAX,0x0
JNZ 0x0014f35a
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x8
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHL EAX,0x8
MOV dword ptr [RBP + -0x8],EAX
LAB_0014f35a:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xf0000000
CMP EAX,0x0
JNZ 0x0014f379
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x4
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHL EAX,0x4
MOV dword ptr [RBP + -0x8],EAX
LAB_0014f379:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xc0000000
CMP EAX,0x0
JNZ 0x0014f398
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x2
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0x8]
SHL EAX,0x2
MOV dword ptr [RBP + -0x8],EAX
LAB_0014f398:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0x80000000
CMP EAX,0x0
JNZ 0x0014f3c6
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0x40000000
CMP EAX,0x0
JNZ 0x0014f3c4
MOV dword ptr [RBP + -0x4],0x20
JMP 0x0014f3cc
LAB_0014f3c4:
JMP 0x0014f3c6
LAB_0014f3c6:
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x4],EAX
LAB_0014f3cc:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int hi0bits(uint param_1)
{
int local_14;
uint local_10;
int local_c;
local_14 = 0;
local_10 = param_1;
if ((param_1 & 0xffff0000) == 0) {
local_14 = 0x10;
local_10 = param_1 << 0x10;
}
if ((local_10 & 0xff000000) == 0) {
local_14 = local_14 + 8;
local_10 = local_10 << 8;
}
if ((local_10 & 0xf0000000) == 0) {
local_14 = local_14 + 4;
local_10 = local_10 << 4;
}
if ((local_10 & 0xc0000000) == 0) {
local_14 = local_14 + 2;
local_10 = local_10 << 2;
}
if (((local_10 & 0x80000000) == 0) && (local_14 = local_14 + 1, (local_10 & 0x40000000) == 0)) {
local_c = 0x20;
}
else {
local_c = local_14;
}
return local_c;
}
|
|
5,438 | mi_status | eloqsql/storage/myisam/mi_info.c | int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
{
MY_STAT state;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("mi_status");
x->recpos = info->lastpos;
if (flag == HA_STATUS_POS)
DBUG_RETURN(0); /* Compatible with ISAM */
if (!(flag & HA_STATUS_NO_LOCK))
{
mysql_mutex_lock(&share->intern_lock);
(void) _mi_readinfo(info,F_RDLCK,0);
fast_mi_writeinfo(info);
mysql_mutex_unlock(&share->intern_lock);
}
if (flag & HA_STATUS_VARIABLE)
{
x->records = info->state->records;
x->deleted = info->state->del;
x->delete_length = info->state->empty;
x->data_file_length =info->state->data_file_length;
x->index_file_length=info->state->key_file_length;
x->keys = share->state.header.keys;
x->check_time = share->state.check_time;
x->mean_reclength= x->records ?
(ulong) ((x->data_file_length - x->delete_length) / x->records) :
(ulong) share->min_pack_length;
}
if (flag & HA_STATUS_ERRKEY)
{
x->errkey = info->errkey;
x->dupp_key_pos= info->dupp_key_pos;
}
if (flag & HA_STATUS_CONST)
{
x->reclength = share->base.reclength;
x->max_data_file_length=share->base.max_data_file_length;
x->max_index_file_length=info->s->base.max_key_file_length;
x->filenr = info->dfile;
x->options = share->options;
x->create_time=share->state.create_time;
x->reflength= mi_get_pointer_length(share->base.max_data_file_length,
myisam_data_pointer_size);
x->record_offset= ((share->options &
(HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ?
0L : share->base.pack_reclength);
x->sortkey= -1; /* No clustering */
x->rec_per_key = share->state.rec_per_key_part;
x->key_map = share->state.key_map;
x->data_file_name = share->data_file_name;
x->index_file_name = share->index_file_name;
}
if ((flag & HA_STATUS_TIME) && !mysql_file_fstat(info->dfile, &state, MYF(0)))
{
MSAN_STAT_WORKAROUND(&state);
x->update_time=state.st_mtime;
}
else
x->update_time=0;
if (flag & HA_STATUS_AUTO)
{
x->auto_increment= share->state.auto_increment+1;
if (!x->auto_increment) /* This shouldn't happen */
x->auto_increment= ~(ulonglong) 0;
}
DBUG_RETURN(0);
} | O0 | c | mi_status:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x10(%rbp), %rax
movq 0x170(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
cmpl $0x1, -0x1c(%rbp)
jne 0xb2f6b
jmp 0xb2f5f
movl $0x0, -0x4(%rbp)
jmp 0xb3302
movl -0x1c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0xb2fd0
movq -0xb8(%rbp), %rdi
addq $0x480, %rdi # imm = 0x480
leaq 0xac322(%rip), %rsi # 0x15f2ad
movl $0x2e, %edx
callq 0xb3310
movq -0x10(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0xb6040
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x368(%rax)
jne 0xb2fbd
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xb61a0
movq -0xb8(%rbp), %rdi
addq $0x480, %rdi # imm = 0x480
callq 0xb3380
movl -0x1c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xb30bf
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0xb8(%rbp), %rax
movzbl 0x12(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0xb8(%rbp), %rax
movq 0xe0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0xb309b
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
subq 0x48(%rcx), %rax
movq -0x18(%rbp), %rcx
xorl %edx, %edx
divq (%rcx)
movq %rax, -0xc0(%rbp)
jmp 0xb30b0
movq -0xb8(%rbp), %rax
movq 0x320(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x58(%rax)
movl -0x1c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xb30f1
movq -0x10(%rbp), %rax
movl 0x1f0(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x88(%rax)
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x1c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xb3267
movq -0xb8(%rbp), %rax
movq 0x140(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0xb8(%rbp), %rax
movq 0x110(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x118(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movl 0x1c0(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0xb8(%rbp), %rax
movq 0x318(%rax), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x84(%rax)
movq -0xb8(%rbp), %rax
movq 0xd0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0xb8(%rbp), %rax
movq 0x110(%rax), %rdi
leaq 0x219e42(%rip), %rax # 0x2ccfe0
movq (%rax), %rax
movl %eax, %esi
callq 0xde500
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xb0(%rax)
movq -0xb8(%rbp), %rax
movq 0x318(%rax), %rax
andq $0x5, %rax
cmpq $0x0, %rax
je 0xb31d7
xorl %eax, %eax
movq %rax, -0xc8(%rbp)
jmp 0xb31ec
movq -0xb8(%rbp), %rax
movq 0x148(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x18(%rbp), %rax
movl $0xffffffff, 0x8c(%rax) # imm = 0xFFFFFFFF
movq -0xb8(%rbp), %rax
movq 0x88(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0xb8(%rbp), %rax
movq 0xc0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0xb8(%rbp), %rax
movq 0x260(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0xb8(%rbp), %rax
movq 0x268(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x78(%rax)
movl -0x1c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xb32af
movq -0x10(%rbp), %rax
movl 0x1c0(%rax), %edx
leaq 0xac02a(%rip), %rdi # 0x15f2ad
movl $0x59, %esi
leaq -0xb0(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0xb33e0
cmpl $0x0, %eax
jne 0xb32af
movq -0x58(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xa8(%rax)
jmp 0xb32be
movq -0x18(%rbp), %rax
movq $0x0, 0xa8(%rax)
movl -0x1c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xb32f9
movq -0xb8(%rbp), %rax
movq 0x60(%rax), %rcx
addq $0x1, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0xb32f7
movq -0x18(%rbp), %rax
movq $-0x1, 0x60(%rax)
jmp 0xb32f9
jmp 0xb32fb
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
nop
| mi_status:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_B8], rax
mov rax, [rbp+var_10]
mov rcx, [rax+170h]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
cmp [rbp+var_1C], 1
jnz short loc_B2F6B
jmp short $+2
loc_B2F5F:
mov [rbp+var_4], 0
jmp loc_B3302
loc_B2F6B:
mov eax, [rbp+var_1C]
and eax, 2
cmp eax, 0
jnz short loc_B2FD0
mov rdi, [rbp+var_B8]
add rdi, 480h
lea rsi, aWorkspaceLlm4b_30; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 2Eh ; '.'
call inline_mysql_mutex_lock_17
mov rdi, [rbp+var_10]
xor edx, edx
mov esi, edx
call _mi_readinfo
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+368h], 0
jnz short loc_B2FBD
mov rdi, [rbp+var_10]
xor esi, esi
call _mi_writeinfo
loc_B2FBD:
mov rdi, [rbp+var_B8]
add rdi, 480h
call inline_mysql_mutex_unlock_18
loc_B2FD0:
mov eax, [rbp+var_1C]
and eax, 10h
cmp eax, 0
jz loc_B30BF
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rax]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rax+8]
mov rax, [rbp+var_18]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+48h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rax+28h]
mov rax, [rbp+var_18]
mov [rax+28h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rax+20h]
mov rax, [rbp+var_18]
mov [rax+38h], rcx
mov rax, [rbp+var_B8]
movzx ecx, byte ptr [rax+12h]
mov rax, [rbp+var_18]
mov [rax+80h], ecx
mov rax, [rbp+var_B8]
mov rcx, [rax+0E0h]
mov rax, [rbp+var_18]
mov [rax+0A0h], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jz short loc_B309B
mov rax, [rbp+var_18]
mov rax, [rax+28h]
mov rcx, [rbp+var_18]
sub rax, [rcx+48h]
mov rcx, [rbp+var_18]
xor edx, edx
div qword ptr [rcx]
mov [rbp+var_C0], rax
jmp short loc_B30B0
loc_B309B:
mov rax, [rbp+var_B8]
mov rax, [rax+320h]
mov [rbp+var_C0], rax
loc_B30B0:
mov rcx, [rbp+var_C0]
mov rax, [rbp+var_18]
mov [rax+58h], rcx
loc_B30BF:
mov eax, [rbp+var_1C]
and eax, 20h
cmp eax, 0
jz short loc_B30F1
mov rax, [rbp+var_10]
mov ecx, [rax+1F0h]
mov rax, [rbp+var_18]
mov [rax+88h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+1A0h]
mov rax, [rbp+var_18]
mov [rax+20h], rcx
loc_B30F1:
mov eax, [rbp+var_1C]
and eax, 8
cmp eax, 0
jz loc_B3267
mov rax, [rbp+var_B8]
mov rcx, [rax+140h]
mov rax, [rbp+var_18]
mov [rax+50h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+110h]
mov rax, [rbp+var_18]
mov [rax+30h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rax+118h]
mov rax, [rbp+var_18]
mov [rax+40h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+1C0h]
mov rax, [rbp+var_18]
mov [rax+90h], ecx
mov rax, [rbp+var_B8]
mov rax, [rax+318h]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+84h], ecx
mov rax, [rbp+var_B8]
mov rcx, [rax+0D0h]
mov rax, [rbp+var_18]
mov [rax+98h], rcx
mov rax, [rbp+var_B8]
mov rdi, [rax+110h]
lea rax, myisam_data_pointer_size
mov rax, [rax]
mov esi, eax
call mi_get_pointer_length
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+0B0h], ecx
mov rax, [rbp+var_B8]
mov rax, [rax+318h]
and rax, 5
cmp rax, 0
jz short loc_B31D7
xor eax, eax
mov [rbp+var_C8], rax
jmp short loc_B31EC
loc_B31D7:
mov rax, [rbp+var_B8]
mov rax, [rax+148h]
mov [rbp+var_C8], rax
loc_B31EC:
mov rcx, [rbp+var_C8]
mov rax, [rbp+var_18]
mov [rax+0B8h], rcx
mov rax, [rbp+var_18]
mov dword ptr [rax+8Ch], 0FFFFFFFFh
mov rax, [rbp+var_B8]
mov rcx, [rax+88h]
mov rax, [rbp+var_18]
mov [rax+0C0h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+0C0h]
mov rax, [rbp+var_18]
mov [rax+68h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+260h]
mov rax, [rbp+var_18]
mov [rax+70h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+268h]
mov rax, [rbp+var_18]
mov [rax+78h], rcx
loc_B3267:
mov eax, [rbp+var_1C]
and eax, 4
cmp eax, 0
jz short loc_B32AF
mov rax, [rbp+var_10]
mov edx, [rax+1C0h]
lea rdi, aWorkspaceLlm4b_30; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 59h ; 'Y'
lea rcx, [rbp+var_B0]
xor eax, eax
mov r8d, eax
call inline_mysql_file_fstat
cmp eax, 0
jnz short loc_B32AF
mov rcx, [rbp+var_58]
mov rax, [rbp+var_18]
mov [rax+0A8h], rcx
jmp short loc_B32BE
loc_B32AF:
mov rax, [rbp+var_18]
mov qword ptr [rax+0A8h], 0
loc_B32BE:
mov eax, [rbp+var_1C]
and eax, 40h
cmp eax, 0
jz short loc_B32F9
mov rax, [rbp+var_B8]
mov rcx, [rax+60h]
add rcx, 1
mov rax, [rbp+var_18]
mov [rax+60h], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax+60h], 0
jnz short loc_B32F7
mov rax, [rbp+var_18]
mov qword ptr [rax+60h], 0FFFFFFFFFFFFFFFFh
loc_B32F7:
jmp short $+2
loc_B32F9:
jmp short $+2
loc_B32FB:
mov [rbp+var_4], 0
loc_B3302:
mov eax, [rbp+var_4]
add rsp, 0D0h
pop rbp
retn
| long long mi_status(_QWORD *a1, long long a2, int a3)
{
long long v4; // [rsp+8h] [rbp-C8h]
long long v5; // [rsp+10h] [rbp-C0h]
long long v6; // [rsp+18h] [rbp-B8h]
_BYTE v7[88]; // [rsp+20h] [rbp-B0h] BYREF
long long v8; // [rsp+78h] [rbp-58h]
int v9; // [rsp+B4h] [rbp-1Ch]
long long v10; // [rsp+B8h] [rbp-18h]
_DWORD *v11; // [rsp+C0h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v6 = *a1;
*(_QWORD *)(a2 + 16) = a1[46];
if ( v9 == 1 )
{
return 0;
}
else
{
if ( (v9 & 2) == 0 )
{
inline_mysql_mutex_lock_17(v6 + 1152, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_info.c", 46LL);
mi_readinfo(v11, 0LL, 0LL);
if ( !*(_DWORD *)(*(_QWORD *)v11 + 872LL) )
mi_writeinfo(v11, 0LL);
inline_mysql_mutex_unlock_18(v6 + 1152);
}
if ( (v9 & 0x10) != 0 )
{
*(_QWORD *)v10 = **((_QWORD **)v11 + 1);
*(_QWORD *)(v10 + 8) = *(_QWORD *)(*((_QWORD *)v11 + 1) + 8LL);
*(_QWORD *)(v10 + 72) = *(_QWORD *)(*((_QWORD *)v11 + 1) + 16LL);
*(_QWORD *)(v10 + 40) = *(_QWORD *)(*((_QWORD *)v11 + 1) + 40LL);
*(_QWORD *)(v10 + 56) = *(_QWORD *)(*((_QWORD *)v11 + 1) + 32LL);
*(_DWORD *)(v10 + 128) = *(unsigned __int8 *)(v6 + 18);
*(_QWORD *)(v10 + 160) = *(_QWORD *)(v6 + 224);
if ( *(_QWORD *)v10 )
v5 = (*(_QWORD *)(v10 + 40) - *(_QWORD *)(v10 + 72)) / *(_QWORD *)v10;
else
v5 = *(_QWORD *)(v6 + 800);
*(_QWORD *)(v10 + 88) = v5;
}
if ( (v9 & 0x20) != 0 )
{
*(_DWORD *)(v10 + 136) = v11[124];
*(_QWORD *)(v10 + 32) = *((_QWORD *)v11 + 52);
}
if ( (v9 & 8) != 0 )
{
*(_QWORD *)(v10 + 80) = *(_QWORD *)(v6 + 320);
*(_QWORD *)(v10 + 48) = *(_QWORD *)(v6 + 272);
*(_QWORD *)(v10 + 64) = *(_QWORD *)(*(_QWORD *)v11 + 280LL);
*(_DWORD *)(v10 + 144) = v11[112];
*(_DWORD *)(v10 + 132) = *(_QWORD *)(v6 + 792);
*(_QWORD *)(v10 + 152) = *(_QWORD *)(v6 + 208);
*(_DWORD *)(v10 + 176) = mi_get_pointer_length(*(_QWORD *)(v6 + 272), (unsigned int)myisam_data_pointer_size);
if ( (*(_QWORD *)(v6 + 792) & 5LL) != 0 )
v4 = 0LL;
else
v4 = *(_QWORD *)(v6 + 328);
*(_QWORD *)(v10 + 184) = v4;
*(_DWORD *)(v10 + 140) = -1;
*(_QWORD *)(v10 + 192) = *(_QWORD *)(v6 + 136);
*(_QWORD *)(v10 + 104) = *(_QWORD *)(v6 + 192);
*(_QWORD *)(v10 + 112) = *(_QWORD *)(v6 + 608);
*(_QWORD *)(v10 + 120) = *(_QWORD *)(v6 + 616);
}
if ( (v9 & 4) == 0
|| (unsigned int)inline_mysql_file_fstat(
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_info.c",
89LL,
(unsigned int)v11[112],
v7,
0LL) )
{
*(_QWORD *)(v10 + 168) = 0LL;
}
else
{
*(_QWORD *)(v10 + 168) = v8;
}
if ( (v9 & 0x40) != 0 )
{
*(_QWORD *)(v10 + 96) = *(_QWORD *)(v6 + 96) + 1LL;
if ( !*(_QWORD *)(v10 + 96) )
*(_QWORD *)(v10 + 96) = -1LL;
}
return 0;
}
}
| mi_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
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]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x170]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
CMP dword ptr [RBP + -0x1c],0x1
JNZ 0x001b2f6b
JMP 0x001b2f5f
LAB_001b2f5f:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001b3302
LAB_001b2f6b:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x001b2fd0
MOV RDI,qword ptr [RBP + -0xb8]
ADD RDI,0x480
LEA RSI,[0x25f2ad]
MOV EDX,0x2e
CALL 0x001b3310
MOV RDI,qword ptr [RBP + -0x10]
XOR EDX,EDX
MOV ESI,EDX
CALL 0x001b6040
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x001b2fbd
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x001b61a0
LAB_001b2fbd:
MOV RDI,qword ptr [RBP + -0xb8]
ADD RDI,0x480
CALL 0x001b3380
LAB_001b2fd0:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001b30bf
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOVZX ECX,byte ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x80],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0xe0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JZ 0x001b309b
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RCX + 0x48]
MOV RCX,qword ptr [RBP + -0x18]
XOR EDX,EDX
DIV qword ptr [RCX]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x001b30b0
LAB_001b309b:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x320]
MOV qword ptr [RBP + -0xc0],RAX
LAB_001b30b0:
MOV RCX,qword ptr [RBP + -0xc0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x58],RCX
LAB_001b30bf:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001b30f1
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1f0]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x88],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x1a0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],RCX
LAB_001b30f1:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001b3267
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x140]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x50],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x110]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x118]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1c0]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x90],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x318]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x84],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0xd0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x98],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RDI,qword ptr [RAX + 0x110]
LEA RAX,[0x3ccfe0]
MOV RAX,qword ptr [RAX]
MOV ESI,EAX
CALL 0x001de500
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xb0],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x318]
AND RAX,0x5
CMP RAX,0x0
JZ 0x001b31d7
XOR EAX,EAX
MOV qword ptr [RBP + -0xc8],RAX
JMP 0x001b31ec
LAB_001b31d7:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x148]
MOV qword ptr [RBP + -0xc8],RAX
LAB_001b31ec:
MOV RCX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xb8],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x8c],0xffffffff
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x88]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xc0],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x68],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x260]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x70],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x268]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x78],RCX
LAB_001b3267:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001b32af
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x1c0]
LEA RDI,[0x25f2ad]
MOV ESI,0x59
LEA RCX,[RBP + -0xb0]
XOR EAX,EAX
MOV R8D,EAX
CALL 0x001b33e0
CMP EAX,0x0
JNZ 0x001b32af
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xa8],RCX
JMP 0x001b32be
LAB_001b32af:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xa8],0x0
LAB_001b32be:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001b32f9
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x60]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x60],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x60],0x0
JNZ 0x001b32f7
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x60],-0x1
LAB_001b32f7:
JMP 0x001b32f9
LAB_001b32f9:
JMP 0x001b32fb
LAB_001b32fb:
MOV dword ptr [RBP + -0x4],0x0
LAB_001b3302:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xd0
POP RBP
RET
|
int4 mi_status(long *param_1,ulong *param_2,ulong param_3)
{
long lVar1;
int4 uVar2;
int iVar3;
ulong extraout_RDX;
ulong local_d0;
ulong local_c8;
int1 local_b8 [88];
ulong local_60;
uint local_24;
ulong *local_20;
long *local_18;
local_24 = (uint)param_3;
lVar1 = *param_1;
param_2[2] = param_1[0x2e];
if (local_24 != 1) {
local_20 = param_2;
local_18 = param_1;
if ((param_3 & 2) == 0) {
inline_mysql_mutex_lock
(lVar1 + 0x480,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_info.c",
0x2e);
_mi_readinfo(local_18,0);
if (*(int *)(*local_18 + 0x368) == 0) {
_mi_writeinfo(local_18,0);
}
inline_mysql_mutex_unlock(lVar1 + 0x480);
param_3 = extraout_RDX;
}
if ((local_24 & 0x10) != 0) {
*local_20 = *(ulong *)local_18[1];
local_20[1] = *(ulong *)(local_18[1] + 8);
local_20[9] = *(ulong *)(local_18[1] + 0x10);
local_20[5] = *(ulong *)(local_18[1] + 0x28);
local_20[7] = *(ulong *)(local_18[1] + 0x20);
*(uint *)(local_20 + 0x10) = (uint)*(byte *)(lVar1 + 0x12);
local_20[0x14] = *(ulong *)(lVar1 + 0xe0);
if (*local_20 == 0) {
local_c8 = *(ulong *)(lVar1 + 800);
}
else {
local_c8 = (local_20[5] - local_20[9]) / *local_20;
param_3 = (local_20[5] - local_20[9]) % *local_20;
}
local_20[0xb] = local_c8;
}
if ((local_24 & 0x20) != 0) {
*(int *)(local_20 + 0x11) = (int)local_18[0x3e];
local_20[4] = local_18[0x34];
}
if ((local_24 & 8) != 0) {
local_20[10] = *(ulong *)(lVar1 + 0x140);
local_20[6] = *(ulong *)(lVar1 + 0x110);
local_20[8] = *(ulong *)(*local_18 + 0x118);
*(int *)(local_20 + 0x12) = (int)local_18[0x38];
*(int *)((long)local_20 + 0x84) = (int)*(int8 *)(lVar1 + 0x318);
local_20[0x13] = *(ulong *)(lVar1 + 0xd0);
uVar2 = mi_get_pointer_length
(*(int8 *)(lVar1 + 0x110),myisam_data_pointer_size & 0xffffffff,
param_3);
*(int4 *)(local_20 + 0x16) = uVar2;
if ((*(ulong *)(lVar1 + 0x318) & 5) == 0) {
local_d0 = *(ulong *)(lVar1 + 0x148);
}
else {
local_d0 = 0;
}
local_20[0x17] = local_d0;
*(int4 *)((long)local_20 + 0x8c) = 0xffffffff;
local_20[0x18] = *(ulong *)(lVar1 + 0x88);
local_20[0xd] = *(ulong *)(lVar1 + 0xc0);
local_20[0xe] = *(ulong *)(lVar1 + 0x260);
local_20[0xf] = *(ulong *)(lVar1 + 0x268);
}
if (((local_24 & 4) == 0) ||
(iVar3 = inline_mysql_file_fstat
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_info.c",0x59,
(int)local_18[0x38],local_b8,0), iVar3 != 0)) {
local_20[0x15] = 0;
}
else {
local_20[0x15] = local_60;
}
if (((local_24 & 0x40) != 0) &&
(local_20[0xc] = *(long *)(lVar1 + 0x60) + 1, local_20[0xc] == 0)) {
local_20[0xc] = 0xffffffffffffffff;
}
}
return 0;
}
|
|
5,439 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array() | monkey531[P]llama/common/./json.hpp | bool end_array()
{
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(ref_stack.back()->is_array());
ref_stack.back()->set_parents();
ref_stack.pop_back();
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array():
pushq %rax
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x73af0
movq -0x8(%rax), %rcx
cmpb $0x2, (%rcx)
jne 0x73b0c
addq $-0x8, %rax
movq %rax, 0x10(%rdi)
movb $0x1, %al
popq %rcx
retq
leaq 0x7e21f(%rip), %rdi # 0xf1d16
leaq 0x7e264(%rip), %rdx # 0xf1d62
leaq 0x818e1(%rip), %rcx # 0xf53e6
movl $0x1b01, %esi # imm = 0x1B01
jmp 0x73b26
leaq 0x7e203(%rip), %rdi # 0xf1d16
leaq 0x7e248(%rip), %rdx # 0xf1d62
leaq 0x81a86(%rip), %rcx # 0xf55a7
movl $0x1b02, %esi # imm = 0x1B02
xorl %eax, %eax
callq 0x292a0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9end_arrayEv:
push rax
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_73AF0
mov rcx, [rax-8]
cmp byte ptr [rcx], 2
jnz short loc_73B0C
add rax, 0FFFFFFFFFFFFFFF8h
mov [rdi+10h], rax
mov al, 1
pop rcx
retn
loc_73AF0:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1B01h
jmp short loc_73B26
loc_73B0C:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs_0; "ref_stack.back()->is_array()"
mov esi, 1B02h
loc_73B26:
xor eax, eax
call _ggml_abort
nop
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_array(
long long a1)
{
long long v1; // rax
long long v3; // rsi
long long v4; // rdx
long long v5; // rcx
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v1 )
{
v3 = 6913LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6913LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
}
else
{
if ( **(_BYTE **)(v1 - 8) == 2 )
{
*(_QWORD *)(a1 + 16) = v1 - 8;
return 1;
}
v3 = 6914LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6914LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array()");
}
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::out_of_range>(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
v3,
v4,
v5);
}
| end_array:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x00173af0
MOV RCX,qword ptr [RAX + -0x8]
CMP byte ptr [RCX],0x2
JNZ 0x00173b0c
ADD RAX,-0x8
MOV qword ptr [RDI + 0x10],RAX
MOV AL,0x1
POP RCX
RET
LAB_00173af0:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f53e6]
MOV ESI,0x1b01
JMP 0x00173b26
LAB_00173b0c:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f55a7]
MOV ESI,0x1b02
LAB_00173b26:
XOR EAX,EAX
CALL 0x001292a0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_array() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_array(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
long lVar1;
char *pcVar2;
int8 uVar3;
lVar1 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar1) {
pcVar2 = "!ref_stack.empty()";
uVar3 = 0x1b01;
}
else {
if (**(char **)(lVar1 + -8) == '\x02') {
*(long *)(this + 0x10) = lVar1 + -8;
return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1);
}
pcVar2 = "ref_stack.back()->is_array()";
uVar3 = 0x1b02;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
|
|
5,440 | get_scale_min_k4 | ngxson[P]ggml-easy/ggml/src/ggml-quants.c | static inline void get_scale_min_k4(int j, const uint8_t * GGML_RESTRICT q, uint8_t * GGML_RESTRICT d, uint8_t * GGML_RESTRICT m) {
if (j < 4) {
*d = q[j] & 63; *m = q[j + 4] & 63;
} else {
*d = (q[j+4] & 0xF) | ((q[j-4] >> 6) << 4);
*m = (q[j+4] >> 4) | ((q[j-0] >> 6) << 4);
}
} | O2 | c | get_scale_min_k4:
cmpl $0x3, %edi
jg 0x330eb
movslq %edi, %rdi
movb (%rsi,%rdi), %al
movb 0x4(%rsi,%rdi), %sil
andb $0x3f, %al
andb $0x3f, %sil
jmp 0x33118
movl %edi, %edi
movb 0x4(%rsi,%rdi), %r8b
movl %r8d, %r9d
andb $0xf, %r9b
movb -0x4(%rsi,%rdi), %al
movb (%rsi,%rdi), %sil
shrb $0x2, %al
andb $0x30, %al
orb %r9b, %al
shrb $0x4, %r8b
shrb $0x2, %sil
andb $0x30, %sil
orb %r8b, %sil
movb %al, (%rdx)
movb %sil, (%rcx)
retq
| get_scale_min_k4:
cmp edi, 3
jg short loc_330EB
movsxd rdi, edi
mov al, [rsi+rdi]
mov sil, [rsi+rdi+4]
and al, 3Fh
and sil, 3Fh
jmp short loc_33118
loc_330EB:
mov edi, edi
mov r8b, [rsi+rdi+4]
mov r9d, r8d
and r9b, 0Fh
mov al, [rsi+rdi-4]
mov sil, [rsi+rdi]
shr al, 2
and al, 30h
or al, r9b
shr r8b, 4
shr sil, 2
and sil, 30h
or sil, r8b
loc_33118:
mov [rdx], al
mov [rcx], sil
retn
| char get_scale_min_k4(int a1, long long a2, _BYTE *a3, _BYTE *a4)
{
char result; // al
char v5; // si
unsigned __int8 v6; // r8
if ( a1 > 3 )
{
v6 = *(_BYTE *)(a2 + (unsigned int)a1 + 4);
result = v6 & 0xF | (*(_BYTE *)(a2 + (unsigned int)a1 - 4) >> 2) & 0x30;
v5 = (v6 >> 4) | (*(_BYTE *)(a2 + (unsigned int)a1) >> 2) & 0x30;
}
else
{
result = *(_BYTE *)(a2 + a1) & 0x3F;
v5 = *(_BYTE *)(a2 + a1 + 4) & 0x3F;
}
*a3 = result;
*a4 = v5;
return result;
}
| get_scale_min_k4:
CMP EDI,0x3
JG 0x001330eb
MOVSXD RDI,EDI
MOV AL,byte ptr [RSI + RDI*0x1]
MOV SIL,byte ptr [RSI + RDI*0x1 + 0x4]
AND AL,0x3f
AND SIL,0x3f
JMP 0x00133118
LAB_001330eb:
MOV EDI,EDI
MOV R8B,byte ptr [RSI + RDI*0x1 + 0x4]
MOV R9D,R8D
AND R9B,0xf
MOV AL,byte ptr [RSI + RDI*0x1 + -0x4]
MOV SIL,byte ptr [RSI + RDI*0x1]
SHR AL,0x2
AND AL,0x30
OR AL,R9B
SHR R8B,0x4
SHR SIL,0x2
AND SIL,0x30
OR SIL,R8B
LAB_00133118:
MOV byte ptr [RDX],AL
MOV byte ptr [RCX],SIL
RET
|
void get_scale_min_k4(uint param_1,long param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
ulong uVar3;
if ((int)param_1 < 4) {
bVar1 = *(byte *)(param_2 + (int)param_1) & 0x3f;
bVar2 = *(byte *)(param_2 + 4 + (long)(int)param_1) & 0x3f;
}
else {
uVar3 = (ulong)param_1;
bVar2 = *(byte *)(param_2 + 4 + uVar3);
bVar1 = *(byte *)(param_2 + -4 + uVar3) >> 2 & 0x30 | bVar2 & 0xf;
bVar2 = *(byte *)(param_2 + uVar3) >> 2 & 0x30 | bVar2 >> 4;
}
*param_3 = bVar1;
*param_4 = bVar2;
return;
}
|
|
5,441 | ggml_add1_or_set | ngxson[P]ggml-easy/ggml/src/ggml.c | static void ggml_add1_or_set(
struct ggml_context * ctx,
struct ggml_cgraph * cgraph,
size_t isrc,
struct ggml_tensor * tensor) {
struct ggml_tensor * src = cgraph->visited_hash_set.keys[isrc];
GGML_ASSERT(src);
if (cgraph->grads[isrc]) {
cgraph->grads[isrc] = ggml_add1_impl(ctx, cgraph->grads[isrc], tensor, cgraph->grad_accs[isrc]);
} else {
cgraph->grads[isrc] = ggml_repeat(ctx, tensor, src);
}
ggml_format_name(cgraph->grads[isrc], "grad for %s", src->name);
ggml_build_forward_expand(cgraph, cgraph->grads[isrc]);
} | O3 | c | ggml_add1_or_set:
pushq %r15
pushq %r14
pushq %rbx
movq 0x40(%rsi), %rax
movq (%rax,%rdx,8), %r15
testq %r15, %r15
je 0x23a4b
movq %rdx, %r14
movq %rsi, %rbx
movq 0x18(%rsi), %rax
movq (%rax,%rdx,8), %rsi
testq %rsi, %rsi
je 0x23a03
movq 0x20(%rbx), %rdx
xorl %eax, %eax
cmpq $0x0, (%rdx,%r14,8)
setne %al
movq %rcx, %rdx
movl %eax, %ecx
callq 0x1a400
jmp 0x23a0e
movq %rcx, %rsi
movq %r15, %rdx
callq 0x16a50
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
addq $0x100, %r15 # imm = 0x100
leaq 0x29532(%rip), %rsi # 0x4cf5e
movq %r15, %rdx
xorl %eax, %eax
callq 0x179f0
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x16650
leaq 0x26bc1(%rip), %rdi # 0x4a613
leaq 0x26c05(%rip), %rdx # 0x4a65e
leaq 0x294fa(%rip), %rcx # 0x4cf5a
movl $0x1498, %esi # imm = 0x1498
xorl %eax, %eax
callq 0x17c60
| ggml_add1_or_set:
push r15
push r14
push rbx
mov rax, [rsi+40h]
mov r15, [rax+rdx*8]
test r15, r15
jz short loc_23A4B
mov r14, rdx
mov rbx, rsi
mov rax, [rsi+18h]
mov rsi, [rax+rdx*8]
test rsi, rsi
jz short loc_23A03
mov rdx, [rbx+20h]
xor eax, eax
cmp qword ptr [rdx+r14*8], 0
setnz al
mov rdx, rcx
mov ecx, eax
call ggml_add1_impl
jmp short loc_23A0E
loc_23A03:
mov rsi, rcx
mov rdx, r15
call _ggml_repeat
loc_23A0E:
mov rcx, [rbx+18h]
mov [rcx+r14*8], rax
mov rax, [rbx+18h]
mov rdi, [rax+r14*8]
add r15, 100h
lea rsi, aGradForS; "grad for %s"
mov rdx, r15
xor eax, eax
call _ggml_format_name
mov rax, [rbx+18h]
mov rsi, [rax+r14*8]
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp _ggml_build_forward_expand
loc_23A4B:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc; "src"
mov esi, 1498h
xor eax, eax
call _ggml_abort
| long long ggml_add1_or_set(long long a1, _QWORD *a2, long long a3, _QWORD *a4, char **a5, int a6)
{
long long *v6; // r15
_QWORD *v9; // rsi
long long v10; // rax
v6 = *(long long **)(a2[8] + 8 * a3);
if ( !v6 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",
5272,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"src",
(_DWORD)a5,
a6);
v9 = *(_QWORD **)(a2[3] + 8 * a3);
if ( v9 )
v10 = ggml_add1_impl(a1, v9, a4, *(_QWORD *)(a2[4] + 8 * a3) != 0LL, a5, a6);
else
v10 = ggml_repeat(a1, a4, v6);
*(_QWORD *)(a2[3] + 8 * a3) = v10;
ggml_format_name(*(_QWORD *)(a2[3] + 8 * a3), (long long)"grad for %s");
return ggml_build_forward_expand((long long)a2, *(_QWORD *)(a2[3] + 8 * a3));
}
| ggml_add1_or_set:
PUSH R15
PUSH R14
PUSH RBX
MOV RAX,qword ptr [RSI + 0x40]
MOV R15,qword ptr [RAX + RDX*0x8]
TEST R15,R15
JZ 0x00123a4b
MOV R14,RDX
MOV RBX,RSI
MOV RAX,qword ptr [RSI + 0x18]
MOV RSI,qword ptr [RAX + RDX*0x8]
TEST RSI,RSI
JZ 0x00123a03
MOV RDX,qword ptr [RBX + 0x20]
XOR EAX,EAX
CMP qword ptr [RDX + R14*0x8],0x0
SETNZ AL
MOV RDX,RCX
MOV ECX,EAX
CALL 0x0011a400
JMP 0x00123a0e
LAB_00123a03:
MOV RSI,RCX
MOV RDX,R15
CALL 0x00116a50
LAB_00123a0e:
MOV RCX,qword ptr [RBX + 0x18]
MOV qword ptr [RCX + R14*0x8],RAX
MOV RAX,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [RAX + R14*0x8]
ADD R15,0x100
LEA RSI,[0x14cf5e]
MOV RDX,R15
XOR EAX,EAX
CALL 0x001179f0
MOV RAX,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RAX + R14*0x8]
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x00116650
LAB_00123a4b:
LEA RDI,[0x14a613]
LEA RDX,[0x14a65e]
LEA RCX,[0x14cf5a]
MOV ESI,0x1498
XOR EAX,EAX
CALL 0x00117c60
|
void ggml_add1_or_set(int8 param_1,long param_2,long param_3,int8 param_4)
{
long lVar1;
long lVar2;
int8 uVar3;
lVar1 = *(long *)(*(long *)(param_2 + 0x40) + param_3 * 8);
if (lVar1 != 0) {
lVar2 = *(long *)(*(long *)(param_2 + 0x18) + param_3 * 8);
if (lVar2 == 0) {
uVar3 = ggml_repeat(param_1,param_4,lVar1);
}
else {
uVar3 = ggml_add1_impl(param_1,lVar2,param_4,
*(long *)(*(long *)(param_2 + 0x20) + param_3 * 8) != 0);
}
*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8) = uVar3;
ggml_format_name(*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8),"grad for %s",
lVar1 + 0x100);
ggml_build_forward_expand(param_2,*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8));
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1498,
"GGML_ASSERT(%s) failed",&DAT_0014cf5a);
}
|
|
5,442 | mi_ft_del | eloqsql/storage/myisam/ft_update.c | int _mi_ft_del(MI_INFO *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_mi_ft_del");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist=_mi_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error=_mi_ft_erase(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
} | O0 | c | mi_ft_del:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
jmp 0xa32e4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x90, %rcx
callq 0xa2b80
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xa3324
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0xa3110
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x90, %rdi
movl $0x2, %esi
callq 0xed720
jmp 0xa333b
jmp 0xa333d
movl -0x2c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _mi_ft_del:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], 0FFFFFFFFh
jmp short $+2
loc_A32E4:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 90h
call _mi_ft_parserecord
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_A3324
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_38]
mov r8, [rbp+var_28]
call _mi_ft_erase
mov [rbp+var_2C], eax
loc_A3324:
mov rdi, [rbp+var_8]
add rdi, 90h
mov esi, 2
call free_root
jmp short $+2
loc_A333B:
jmp short $+2
loc_A333D:
mov eax, [rbp+var_2C]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long mi_ft_del(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5)
{
_QWORD *v6; // [rsp+8h] [rbp-38h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = -1;
v6 = (_QWORD *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18));
if ( v6 )
v7 = mi_ft_erase((long long)a1, a2, a3, v6, a5);
free_root(a1 + 18, 2LL);
return v7;
}
| _mi_ft_del:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],0xffffffff
JMP 0x001a32e4
LAB_001a32e4:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x90
CALL 0x001a2b80
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001a3324
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x001a3110
MOV dword ptr [RBP + -0x2c],EAX
LAB_001a3324:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x90
MOV ESI,0x2
CALL 0x001ed720
JMP 0x001a333b
LAB_001a333b:
JMP 0x001a333d
LAB_001a333d:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int4
_mi_ft_del(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5)
{
long lVar1;
int4 local_34;
local_34 = 0xffffffff;
lVar1 = _mi_ft_parserecord(param_1,param_2,param_4,param_1 + 0x90);
if (lVar1 != 0) {
local_34 = _mi_ft_erase(param_1,param_2,param_3,lVar1,param_5);
}
free_root(param_1 + 0x90,2);
return local_34;
}
|
|
5,443 | google::protobuf::compiler::cpp::IsStringOrMessage(google::protobuf::FieldDescriptor const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc | bool IsStringOrMessage(const FieldDescriptor* field) {
switch (field->cpp_type()) {
case FieldDescriptor::CPPTYPE_INT32:
case FieldDescriptor::CPPTYPE_INT64:
case FieldDescriptor::CPPTYPE_UINT32:
case FieldDescriptor::CPPTYPE_UINT64:
case FieldDescriptor::CPPTYPE_DOUBLE:
case FieldDescriptor::CPPTYPE_FLOAT:
case FieldDescriptor::CPPTYPE_BOOL:
case FieldDescriptor::CPPTYPE_ENUM:
return false;
case FieldDescriptor::CPPTYPE_STRING:
case FieldDescriptor::CPPTYPE_MESSAGE:
return true;
}
GOOGLE_LOG(FATAL) << "Can't get here.";
return false;
} | O3 | cpp | google::protobuf::compiler::cpp::IsStringOrMessage(google::protobuf::FieldDescriptor const*):
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x379b9
leaq 0x10228e(%rip), %rax # 0x139c34
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdx
movq %rbx, (%rdx)
callq 0x2f19d
movzbl 0x2(%rbx), %eax
leaq 0x1b825c(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %ecx
decl %ecx
cmpl $0xa, %ecx
jae 0x379d7
movl $0x300, %eax # imm = 0x300
shrl %cl, %eax
jmp 0x37a1b
leaq 0x165afb(%rip), %rdx # 0x19d4d9
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x3, %esi
movl $0x42c, %ecx # imm = 0x42C
callq 0x1072ba
leaq 0x165c22(%rip), %rsi # 0x19d61e
movq %rbx, %rdi
callq 0x106db8
movq %rsp, %rdi
movq %rax, %rsi
callq 0x106e92
leaq 0x8(%rsp), %rdi
callq 0x1072d8
xorl %eax, %eax
andb $0x1, %al
addq $0x40, %rsp
popq %rbx
retq
jmp 0x37a25
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1072d8
movq %rbx, %rdi
callq 0x1f860
| _ZN6google8protobuf8compiler3cpp17IsStringOrMessageEPKNS0_15FieldDescriptorE:
push rbx
sub rsp, 40h
mov rbx, rdi
mov rdi, [rdi+18h]
test rdi, rdi
jz short loc_379B9
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+48h+var_40]
mov [rsi], rax
mov rdx, rsp
mov [rdx], rbx
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_379B9:
movzx eax, byte ptr [rbx+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov ecx, [rcx+rax*4]
dec ecx
cmp ecx, 0Ah
jnb short loc_379D7
mov eax, 300h
shr eax, cl
jmp short loc_37A1B
loc_379D7:
lea rdx, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/aimrt_"...
lea rbx, [rsp+48h+var_40]
mov rdi, rbx
mov esi, 3
mov ecx, 42Ch
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCanTGetHere; "Can't get here."
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rsp
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+48h+var_40]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
xor eax, eax
loc_37A1B:
and al, 1
add rsp, 40h
pop rbx
retn
jmp short $+2
loc_37A25:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
| char google::protobuf::compiler::cpp::IsStringOrMessage(
google::protobuf::compiler::cpp *this,
const google::protobuf::FieldDescriptor *a2)
{
long long v3; // rdi
unsigned int v4; // ecx
unsigned int v5; // eax
long long v6; // rax
google::protobuf::compiler::cpp *v8; // [rsp+0h] [rbp-48h] BYREF
_QWORD v9[8]; // [rsp+8h] [rbp-40h] BYREF
v3 = *((_QWORD *)this + 3);
if ( v3 )
{
v9[0] = google::protobuf::FieldDescriptor::TypeOnceInit;
v8 = this;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v3,
(long long)v9,
(long long)&v8);
}
v4 = google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*((unsigned __int8 *)this + 2)] - 1;
if ( v4 >= 0xA )
{
google::protobuf::internal::LogMessage::LogMessage(
v9,
3LL,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc",
1068LL);
v6 = google::protobuf::internal::LogMessage::operator<<(v9, "Can't get here.");
google::protobuf::internal::LogFinisher::operator=(&v8, v6);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v9);
LOBYTE(v5) = 0;
}
else
{
v5 = 0x300u >> v4;
}
return v5 & 1;
}
| IsStringOrMessage:
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x18]
TEST RDI,RDI
JZ 0x001379b9
LEA RAX,[0x239c34]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
MOV RDX,RSP
MOV qword ptr [RDX],RBX
CALL 0x0012f19d
LAB_001379b9:
MOVZX EAX,byte ptr [RBX + 0x2]
LEA RCX,[0x2efc20]
MOV ECX,dword ptr [RCX + RAX*0x4]
DEC ECX
CMP ECX,0xa
JNC 0x001379d7
MOV EAX,0x300
SHR EAX,CL
JMP 0x00137a1b
LAB_001379d7:
LEA RDX,[0x29d4d9]
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x3
MOV ECX,0x42c
CALL 0x002072ba
LAB_001379f5:
LEA RSI,[0x29d61e]
MOV RDI,RBX
CALL 0x00206db8
LAB_00137a04:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x00206e92
LAB_00137a0f:
LEA RDI,[RSP + 0x8]
CALL 0x002072d8
XOR EAX,EAX
LAB_00137a1b:
AND AL,0x1
ADD RSP,0x40
POP RBX
RET
|
/* google::protobuf::compiler::cpp::IsStringOrMessage(google::protobuf::FieldDescriptor const*) */
uint google::protobuf::compiler::cpp::IsStringOrMessage(FieldDescriptor *param_1)
{
uint uVar1;
LogMessage *pLVar2;
FieldDescriptor *local_48;
code *local_40 [7];
if (*(once_flag **)(param_1 + 0x18) != (once_flag *)0x0) {
local_40[0] = FieldDescriptor::TypeOnceInit;
local_48 = param_1;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(param_1 + 0x18),(_func_void_FieldDescriptor_ptr *)local_40,&local_48)
;
}
if (*(int *)(FieldDescriptor::kTypeToCppTypeMap + (ulong)(byte)param_1[2] * 4) - 1U < 10) {
uVar1 = 0x300 >> ((byte)(*(int *)(FieldDescriptor::kTypeToCppTypeMap +
(ulong)(byte)param_1[2] * 4) - 1U) & 0x1f);
}
else {
internal::LogMessage::LogMessage
((LogMessage *)local_40,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc"
,0x42c);
/* try { // try from 001379f5 to 00137a03 has its CatchHandler @ 00137a25 */
pLVar2 = (LogMessage *)
internal::LogMessage::operator<<((LogMessage *)local_40,"Can\'t get here.");
/* try { // try from 00137a04 to 00137a0e has its CatchHandler @ 00137a23 */
internal::LogFinisher::operator=((LogFinisher *)&local_48,pLVar2);
internal::LogMessage::~LogMessage((LogMessage *)local_40);
uVar1 = 0;
}
return uVar1 & 0xffffff01;
}
|
|
5,444 | tree_record_pos | eloqsql/mysys/tree.c | ha_rows tree_record_pos(TREE *tree, const void *key,
enum ha_rkey_function flag, void *custom_arg)
{
int cmp;
TREE_ELEMENT *element= tree->root;
double left= 1;
double right= tree->elements_in_tree;
while (element != &null_element)
{
if ((cmp= (*tree->compare)(custom_arg, ELEMENT_KEY(tree, element),
key)) == 0)
{
switch (flag) {
case HA_READ_KEY_EXACT:
case HA_READ_BEFORE_KEY:
cmp= 1;
break;
case HA_READ_AFTER_KEY:
cmp= -1;
break;
default:
return HA_POS_ERROR;
}
}
if (cmp < 0) /* element < key */
{
element= element->right;
left= (left + right) / 2;
}
else
{
element= element->left;
right= (left + right) / 2;
}
}
switch (flag) {
case HA_READ_KEY_EXACT:
case HA_READ_BEFORE_KEY:
return (ha_rows) right;
case HA_READ_AFTER_KEY:
return (ha_rows) left;
default:
return HA_POS_ERROR;
}
} | O3 | c | tree_record_pos:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movl 0x20c(%rdi), %eax
cvtsi2sd %rax, %xmm0
movapd %xmm0, -0x50(%rbp)
movq (%rdi), %r13
leaq 0x2e0918(%rip), %rax # 0x385bc0
cmpq %rax, %r13
je 0xa5365
movq %rcx, %r14
movq %rdi, %r15
movq %rsi, %r12
movsd 0x3bb66(%rip), %xmm0 # 0xe0e28
movapd %xmm0, -0x40(%rbp)
movl 0x208(%r15), %esi
testq %rsi, %rsi
je 0xa52d8
addq %r13, %rsi
jmp 0xa52dc
movq 0x18(%r13), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq *0x228(%r15)
testl %eax, %eax
je 0xa5325
movapd -0x40(%rbp), %xmm0
addsd -0x50(%rbp), %xmm0
mulsd 0x3bb91(%rip), %xmm0 # 0xe0e90
testl %eax, %eax
js 0xa530a
movapd %xmm0, -0x50(%rbp)
jmp 0xa530f
movapd %xmm0, -0x40(%rbp)
shrl $0x1f, %eax
movq (%r13,%rax,8), %r13
leaq 0x2e08a2(%rip), %rax # 0x385bc0
cmpq %rax, %r13
jne 0xa52c7
jmp 0xa533f
movl $0x1, %eax
testl %ebx, %ebx
je 0xa52ed
cmpl $0x4, %ebx
je 0xa52ed
cmpl $0x3, %ebx
jne 0xa53b2
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0xa52ed
movapd -0x40(%rbp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x3bac0(%rip), %xmm0 # 0xe0e18
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
jmp 0xa536a
movl $0x1, %eax
cmpl $0x4, %ebx
je 0xa537f
cmpl $0x3, %ebx
je 0xa53a3
movq $-0x1, %rax
testl %ebx, %ebx
jne 0xa53a3
movapd -0x50(%rbp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x3ba80(%rip), %xmm0 # 0xe0e18
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $-0x1, %rax
jmp 0xa53a3
| tree_record_pos:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, edx
mov eax, [rdi+20Ch]
cvtsi2sd xmm0, rax
movapd [rbp+var_50], xmm0
mov r13, [rdi]
lea rax, null_element
cmp r13, rax
jz loc_A5365
mov r14, rcx
mov r15, rdi
mov r12, rsi
movsd xmm0, cs:qword_E0E28
movapd [rbp+var_40], xmm0
loc_A52C7:
mov esi, [r15+208h]
test rsi, rsi
jz short loc_A52D8
add rsi, r13
jmp short loc_A52DC
loc_A52D8:
mov rsi, [r13+18h]
loc_A52DC:
mov rdi, r14
mov rdx, r12
call qword ptr [r15+228h]
test eax, eax
jz short loc_A5325
loc_A52ED:
movapd xmm0, [rbp+var_40]
addsd xmm0, qword ptr [rbp+var_50]
mulsd xmm0, cs:qword_E0E90
test eax, eax
js short loc_A530A
movapd [rbp+var_50], xmm0
jmp short loc_A530F
loc_A530A:
movapd [rbp+var_40], xmm0
loc_A530F:
shr eax, 1Fh
mov r13, [r13+rax*8+0]
lea rax, null_element
cmp r13, rax
jnz short loc_A52C7
jmp short loc_A533F
loc_A5325:
mov eax, 1
test ebx, ebx
jz short loc_A52ED
cmp ebx, 4
jz short loc_A52ED
cmp ebx, 3
jnz short loc_A53B2
mov eax, 0FFFFFFFFh
jmp short loc_A52ED
loc_A533F:
movapd xmm0, [rbp+var_40]
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
subsd xmm0, cs:qword_E0E18
cvttsd2si rax, xmm0
and rax, rdx
or rax, rcx
jmp short loc_A536A
loc_A5365:
mov eax, 1
loc_A536A:
cmp ebx, 4
jz short loc_A537F
cmp ebx, 3
jz short loc_A53A3
mov rax, 0FFFFFFFFFFFFFFFFh
test ebx, ebx
jnz short loc_A53A3
loc_A537F:
movapd xmm0, [rbp+var_50]
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
subsd xmm0, cs:qword_E0E18
cvttsd2si rax, xmm0
and rax, rdx
or rax, rcx
loc_A53A3:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A53B2:
mov rax, 0FFFFFFFFFFFFFFFFh
jmp short loc_A53A3
| long long tree_record_pos(long long a1, long long a2, int a3, long long a4)
{
_QWORD *v5; // r13
char *v8; // rsi
int v9; // eax
__int128 v10; // xmm0
long long result; // rax
double v12; // [rsp+0h] [rbp-50h]
__int128 v13; // [rsp+10h] [rbp-40h]
v12 = (double)*(int *)(a1 + 524);
v5 = *(_QWORD **)a1;
if ( *(_UNKNOWN **)a1 != &null_element )
{
v13 = 0x3FF0000000000000uLL;
while ( 1 )
{
if ( *(_DWORD *)(a1 + 520) )
v8 = (char *)v5 + *(unsigned int *)(a1 + 520);
else
v8 = (char *)v5[3];
v9 = (*(long long ( **)(long long, char *, long long))(a1 + 552))(a4, v8, a2);
if ( !v9 )
{
v9 = 1;
if ( a3 )
{
if ( a3 != 4 )
{
if ( a3 != 3 )
return -1LL;
v9 = -1;
}
}
}
*((_QWORD *)&v10 + 1) = *((_QWORD *)&v13 + 1);
if ( v9 < 0 )
{
*(double *)&v10 = (*(double *)&v13 + v12) * 0.5;
v13 = v10;
}
else
{
v12 = (*(double *)&v13 + v12) * 0.5;
}
v5 = (_QWORD *)v5[(unsigned int)v9 >> 31];
if ( v5 == (_QWORD *)&null_element )
{
result = (unsigned int)(int)*(double *)&v13;
goto LABEL_17;
}
}
}
result = 1LL;
LABEL_17:
if ( a3 == 4 )
return (unsigned int)(int)v12;
if ( a3 != 3 )
{
result = -1LL;
if ( !a3 )
return (unsigned int)(int)v12;
}
return result;
}
| tree_record_pos:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,EDX
MOV EAX,dword ptr [RDI + 0x20c]
CVTSI2SD XMM0,RAX
MOVAPD xmmword ptr [RBP + -0x50],XMM0
MOV R13,qword ptr [RDI]
LEA RAX,[0x485bc0]
CMP R13,RAX
JZ 0x001a5365
MOV R14,RCX
MOV R15,RDI
MOV R12,RSI
MOVSD XMM0,qword ptr [0x001e0e28]
MOVAPD xmmword ptr [RBP + -0x40],XMM0
LAB_001a52c7:
MOV ESI,dword ptr [R15 + 0x208]
TEST RSI,RSI
JZ 0x001a52d8
ADD RSI,R13
JMP 0x001a52dc
LAB_001a52d8:
MOV RSI,qword ptr [R13 + 0x18]
LAB_001a52dc:
MOV RDI,R14
MOV RDX,R12
CALL qword ptr [R15 + 0x228]
TEST EAX,EAX
JZ 0x001a5325
LAB_001a52ed:
MOVAPD XMM0,xmmword ptr [RBP + -0x40]
ADDSD XMM0,qword ptr [RBP + -0x50]
MULSD XMM0,qword ptr [0x001e0e90]
TEST EAX,EAX
JS 0x001a530a
MOVAPD xmmword ptr [RBP + -0x50],XMM0
JMP 0x001a530f
LAB_001a530a:
MOVAPD xmmword ptr [RBP + -0x40],XMM0
LAB_001a530f:
SHR EAX,0x1f
MOV R13,qword ptr [R13 + RAX*0x8]
LEA RAX,[0x485bc0]
CMP R13,RAX
JNZ 0x001a52c7
JMP 0x001a533f
LAB_001a5325:
MOV EAX,0x1
TEST EBX,EBX
JZ 0x001a52ed
CMP EBX,0x4
JZ 0x001a52ed
CMP EBX,0x3
JNZ 0x001a53b2
MOV EAX,0xffffffff
JMP 0x001a52ed
LAB_001a533f:
MOVAPD XMM0,xmmword ptr [RBP + -0x40]
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM0,qword ptr [0x001e0e18]
CVTTSD2SI RAX,XMM0
AND RAX,RDX
OR RAX,RCX
JMP 0x001a536a
LAB_001a5365:
MOV EAX,0x1
LAB_001a536a:
CMP EBX,0x4
JZ 0x001a537f
CMP EBX,0x3
JZ 0x001a53a3
MOV RAX,-0x1
TEST EBX,EBX
JNZ 0x001a53a3
LAB_001a537f:
MOVAPD XMM0,xmmword ptr [RBP + -0x50]
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM0,qword ptr [0x001e0e18]
CVTTSD2SI RAX,XMM0
AND RAX,RDX
OR RAX,RCX
LAB_001a53a3:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a53b2:
MOV RAX,-0x1
JMP 0x001a53a3
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong tree_record_pos(long *param_1,int8 param_2,int param_3,int8 param_4)
{
uint uVar1;
ulong uVar2;
int1 *puVar3;
int1 *puVar4;
double dVar5;
double local_58;
double local_48;
local_58 = (double)*(uint *)((long)param_1 + 0x20c);
puVar4 = (int1 *)*param_1;
if (puVar4 == null_element) {
uVar2 = 1;
}
else {
local_48 = DAT_001e0e28;
do {
if ((ulong)*(uint *)(param_1 + 0x41) == 0) {
puVar3 = *(int1 **)(puVar4 + 0x18);
}
else {
puVar3 = puVar4 + *(uint *)(param_1 + 0x41);
}
uVar1 = (*(code *)param_1[0x45])(param_4,puVar3,param_2);
if (((uVar1 == 0) && (uVar1 = 1, param_3 != 0)) && (param_3 != 4)) {
if (param_3 != 3) {
return 0xffffffffffffffff;
}
uVar1 = 0xffffffff;
}
dVar5 = (local_48 + local_58) * DAT_001e0e90;
if (-1 < (int)uVar1) {
local_58 = dVar5;
dVar5 = local_48;
}
local_48 = dVar5;
puVar4 = *(int1 **)(puVar4 + (ulong)(uVar1 >> 0x1f) * 8);
} while (puVar4 != null_element);
uVar2 = (long)(local_48 - _DAT_001e0e18) & (long)local_48 >> 0x3f | (long)local_48;
}
if ((param_3 == 4) || ((param_3 != 3 && (uVar2 = 0xffffffffffffffff, param_3 == 0)))) {
uVar2 = (long)(local_58 - _DAT_001e0e18) & (long)local_58 >> 0x3f | (long)local_58;
}
return uVar2;
}
|
|
5,445 | DrawCircleLinesV | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawCircleLinesV(Vector2 center, float radius, Color color)
{
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
// NOTE: Circle outline is drawn pixel by pixel every degree (0 to 360)
for (int i = 0; i < 360; i += 10)
{
rlVertex2f(center.x + cosf(DEG2RAD*i)*radius, center.y + sinf(DEG2RAD*i)*radius);
rlVertex2f(center.x + cosf(DEG2RAD*(i + 10))*radius, center.y + sinf(DEG2RAD*(i + 10))*radius);
}
rlEnd();
} | O1 | c | DrawCircleLinesV:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebx
movss %xmm1, 0x4(%rsp)
movaps %xmm0, 0x10(%rsp)
movl %edi, %ebp
shrl $0x8, %ebp
movl %edi, %r14d
shrl $0x10, %r14d
movl %edi, %r15d
shrl $0x18, %r15d
movl $0x1, %edi
callq 0x622e0
movl $0xff, %eax
andl %eax, %ebx
andl %eax, %ebp
andl %eax, %r14d
movl %ebx, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq 0x64079
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x20(%rsp)
xorl %ebx, %ebx
xorps %xmm1, %xmm1
cvtsi2ss %ebx, %xmm1
movss 0x6553e(%rip), %xmm0 # 0xe3440
mulss %xmm0, %xmm1
movss %xmm1, 0x8(%rsp)
movaps %xmm1, %xmm0
callq 0x93b0
mulss 0x4(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x8(%rsp), %xmm0
callq 0x9420
movaps %xmm0, %xmm1
mulss 0x4(%rsp), %xmm1
addss 0x20(%rsp), %xmm1
movss 0xc(%rsp), %xmm0
callq 0x63f05
leal 0xa(%rbx), %ebp
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
mulss 0x654e3(%rip), %xmm0 # 0xe3440
movss %xmm0, 0x8(%rsp)
callq 0x93b0
mulss 0x4(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x8(%rsp), %xmm0
callq 0x9420
movaps %xmm0, %xmm1
mulss 0x4(%rsp), %xmm1
addss 0x20(%rsp), %xmm1
movss 0xc(%rsp), %xmm0
callq 0x63f05
cmpl $0x15e, %ebx # imm = 0x15E
movl %ebp, %ebx
jb 0x7def3
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x63b64
| DrawCircleLinesV:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebx, edi
movss [rsp+58h+var_54], xmm1
movaps [rsp+58h+var_48], xmm0
mov ebp, edi
shr ebp, 8
mov r14d, edi
shr r14d, 10h
mov r15d, edi
shr r15d, 18h
mov edi, 1
call rlBegin
mov eax, 0FFh
and ebx, eax
and ebp, eax
and r14d, eax
mov edi, ebx
mov esi, ebp
mov edx, r14d
mov ecx, r15d
call rlColor4ub
movaps xmm0, [rsp+58h+var_48]
shufps xmm0, xmm0, 55h ; 'U'
movaps [rsp+58h+var_38], xmm0
xor ebx, ebx
loc_7DEF3:
xorps xmm1, xmm1
cvtsi2ss xmm1, ebx
movss xmm0, cs:dword_E3440
mulss xmm1, xmm0
movss [rsp+58h+var_50], xmm1
movaps xmm0, xmm1
call _cosf
mulss xmm0, [rsp+58h+var_54]
addss xmm0, dword ptr [rsp+58h+var_48]
movss [rsp+58h+var_4C], xmm0
movss xmm0, [rsp+58h+var_50]
call _sinf
movaps xmm1, xmm0
mulss xmm1, [rsp+58h+var_54]
addss xmm1, dword ptr [rsp+58h+var_38]
movss xmm0, [rsp+58h+var_4C]
call rlVertex2f
lea ebp, [rbx+0Ah]
xorps xmm0, xmm0
cvtsi2ss xmm0, ebp
mulss xmm0, cs:dword_E3440
movss [rsp+58h+var_50], xmm0
call _cosf
mulss xmm0, [rsp+58h+var_54]
addss xmm0, dword ptr [rsp+58h+var_48]
movss [rsp+58h+var_4C], xmm0
movss xmm0, [rsp+58h+var_50]
call _sinf
movaps xmm1, xmm0
mulss xmm1, [rsp+58h+var_54]
addss xmm1, dword ptr [rsp+58h+var_38]
movss xmm0, [rsp+58h+var_4C]
call rlVertex2f
cmp ebx, 15Eh
mov ebx, ebp
jb loc_7DEF3
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
jmp rlEnd
| long long DrawCircleLinesV(int a1, __m128 a2, float a3)
{
int v3; // ebx
double v4; // xmm0_8
double v5; // xmm0_8
double v6; // xmm1_8
bool v7; // cf
float v10; // [rsp+Ch] [rbp-4Ch]
float v11; // [rsp+Ch] [rbp-4Ch]
float v13; // [rsp+20h] [rbp-38h]
rlBegin(1);
rlColor4ub(a1, SBYTE1(a1), SBYTE2(a1), SHIBYTE(a1));
LODWORD(v13) = _mm_shuffle_ps(a2, a2, 85).m128_u32[0];
v3 = 0;
do
{
v10 = (float)(cosf((float)v3 * 0.017453292) * a3) + a2.m128_f32[0];
v4 = sinf((float)v3 * 0.017453292);
rlVertex2f(v10, (float)(*(float *)&v4 * a3) + v13);
v11 = (float)(cosf((float)(v3 + 10) * 0.017453292) * a3) + a2.m128_f32[0];
v5 = sinf((float)(v3 + 10) * 0.017453292);
HIDWORD(v6) = HIDWORD(v5);
*(float *)&v6 = (float)(*(float *)&v5 * a3) + v13;
rlVertex2f(v11, *(float *)&v6);
v7 = (unsigned int)v3 < 0x15E;
v3 += 10;
}
while ( v7 );
return rlEnd(COERCE_DOUBLE((unsigned long long)LODWORD(v11)), v6);
}
| DrawCircleLinesV:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBX,EDI
MOVSS dword ptr [RSP + 0x4],XMM1
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV EBP,EDI
SHR EBP,0x8
MOV R14D,EDI
SHR R14D,0x10
MOV R15D,EDI
SHR R15D,0x18
MOV EDI,0x1
CALL 0x001622e0
MOV EAX,0xff
AND EBX,EAX
AND EBP,EAX
AND R14D,EAX
MOV EDI,EBX
MOV ESI,EBP
MOV EDX,R14D
MOV ECX,R15D
CALL 0x00164079
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
SHUFPS XMM0,XMM0,0x55
MOVAPS xmmword ptr [RSP + 0x20],XMM0
XOR EBX,EBX
LAB_0017def3:
XORPS XMM1,XMM1
CVTSI2SS XMM1,EBX
MOVSS XMM0,dword ptr [0x001e3440]
MULSS XMM1,XMM0
MOVSS dword ptr [RSP + 0x8],XMM1
MOVAPS XMM0,XMM1
CALL 0x001093b0
MULSS XMM0,dword ptr [RSP + 0x4]
ADDSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0x8]
CALL 0x00109420
MOVAPS XMM1,XMM0
MULSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,dword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RSP + 0xc]
CALL 0x00163f05
LEA EBP,[RBX + 0xa]
XORPS XMM0,XMM0
CVTSI2SS XMM0,EBP
MULSS XMM0,dword ptr [0x001e3440]
MOVSS dword ptr [RSP + 0x8],XMM0
CALL 0x001093b0
MULSS XMM0,dword ptr [RSP + 0x4]
ADDSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0x8]
CALL 0x00109420
MOVAPS XMM1,XMM0
MULSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,dword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RSP + 0xc]
CALL 0x00163f05
CMP EBX,0x15e
MOV EBX,EBP
JC 0x0017def3
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00163b64
|
void DrawCircleLinesV(int8 param_1,float param_2,uint param_3)
{
uint uVar1;
bool bVar2;
float fVar3;
float fVar4;
float fVar5;
fVar4 = (float)((ulong)param_1 >> 0x20);
rlBegin(1);
rlColor4ub(param_3 & 0xff,param_3 >> 8 & 0xff,param_3 >> 0x10 & 0xff,param_3 >> 0x18);
uVar1 = 0;
do {
fVar5 = (float)(int)uVar1 * DAT_001e3440;
fVar3 = cosf(fVar5);
fVar5 = sinf(fVar5);
rlVertex2f(fVar3 * param_2 + (float)param_1,fVar5 * param_2 + fVar4);
fVar3 = (float)(int)(uVar1 + 10) * DAT_001e3440;
fVar5 = cosf(fVar3);
fVar3 = sinf(fVar3);
rlVertex2f(fVar5 * param_2 + (float)param_1,fVar3 * param_2 + fVar4);
bVar2 = uVar1 < 0x15e;
uVar1 = uVar1 + 10;
} while (bVar2);
rlEnd();
return;
}
|
|
5,446 | DrawCircleLinesV | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawCircleLinesV(Vector2 center, float radius, Color color)
{
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
// NOTE: Circle outline is drawn pixel by pixel every degree (0 to 360)
for (int i = 0; i < 360; i += 10)
{
rlVertex2f(center.x + cosf(DEG2RAD*i)*radius, center.y + sinf(DEG2RAD*i)*radius);
rlVertex2f(center.x + cosf(DEG2RAD*(i + 10))*radius, center.y + sinf(DEG2RAD*(i + 10))*radius);
}
rlEnd();
} | O2 | c | DrawCircleLinesV:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebx
movss %xmm1, 0x4(%rsp)
movaps %xmm0, 0x10(%rsp)
movl %edi, %ebp
shrl $0x8, %ebp
movl %edi, %r14d
shrl $0x10, %r14d
movl %edi, %r15d
shrl $0x18, %r15d
pushq $0x1
popq %rdi
callq 0x51283
movl $0xff, %eax
andl %eax, %ebx
andl %eax, %ebp
andl %eax, %r14d
movl %ebx, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq 0x52b4f
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x20(%rsp)
xorl %ebx, %ebx
cmpl $0x168, %ebx # imm = 0x168
jae 0x670a2
cvtsi2ss %ebx, %xmm1
movss 0x5c4cd(%rip), %xmm0 # 0xc34d0
mulss %xmm0, %xmm1
movss %xmm1, 0x8(%rsp)
movaps %xmm1, %xmm0
callq 0x9390
mulss 0x4(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x8(%rsp), %xmm0
callq 0x9410
movaps %xmm0, %xmm1
mulss 0x4(%rsp), %xmm1
addss 0x20(%rsp), %xmm1
movss 0xc(%rsp), %xmm0
callq 0x529f9
addl $0xa, %ebx
cvtsi2ss %ebx, %xmm0
mulss 0x5c475(%rip), %xmm0 # 0xc34d0
movss %xmm0, 0x8(%rsp)
callq 0x9390
mulss 0x4(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x8(%rsp), %xmm0
callq 0x9410
movaps %xmm0, %xmm1
mulss 0x4(%rsp), %xmm1
addss 0x20(%rsp), %xmm1
movss 0xc(%rsp), %xmm0
callq 0x529f9
jmp 0x66feb
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5265a
| DrawCircleLinesV:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebx, edi
movss [rsp+58h+var_54], xmm1
movaps [rsp+58h+var_48], xmm0
mov ebp, edi
shr ebp, 8
mov r14d, edi
shr r14d, 10h
mov r15d, edi
shr r15d, 18h
push 1
pop rdi
call rlBegin
mov eax, 0FFh
and ebx, eax
and ebp, eax
and r14d, eax
mov edi, ebx
mov esi, ebp
mov edx, r14d
mov ecx, r15d
call rlColor4ub
movaps xmm0, [rsp+58h+var_48]
shufps xmm0, xmm0, 55h ; 'U'
movaps [rsp+58h+var_38], xmm0
xor ebx, ebx
loc_66FEB:
cmp ebx, 168h
jnb loc_670A2
cvtsi2ss xmm1, ebx
movss xmm0, cs:dword_C34D0
mulss xmm1, xmm0
movss [rsp+58h+var_50], xmm1
movaps xmm0, xmm1
call _cosf
mulss xmm0, [rsp+58h+var_54]
addss xmm0, dword ptr [rsp+58h+var_48]
movss [rsp+58h+var_4C], xmm0
movss xmm0, [rsp+58h+var_50]
call _sinf
movaps xmm1, xmm0
mulss xmm1, [rsp+58h+var_54]
addss xmm1, dword ptr [rsp+58h+var_38]
movss xmm0, [rsp+58h+var_4C]
call rlVertex2f
add ebx, 0Ah
cvtsi2ss xmm0, ebx
mulss xmm0, cs:dword_C34D0
movss [rsp+58h+var_50], xmm0
call _cosf
mulss xmm0, [rsp+58h+var_54]
addss xmm0, dword ptr [rsp+58h+var_48]
movss [rsp+58h+var_4C], xmm0
movss xmm0, [rsp+58h+var_50]
call _sinf
movaps xmm1, xmm0
mulss xmm1, [rsp+58h+var_54]
addss xmm1, dword ptr [rsp+58h+var_38]
movss xmm0, [rsp+58h+var_4C]
call rlVertex2f
jmp loc_66FEB
loc_670A2:
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
jmp rlEnd
| double DrawCircleLinesV(int a1, __m128 a2, float a3)
{
long long v3; // rdx
int v4; // ebx
double v5; // xmm0_8
__m128 v6; // xmm0
__m128 v7; // xmm1
__m128 v8; // xmm0
__m128 v9; // xmm1
float v12; // [rsp+8h] [rbp-50h]
float v13; // [rsp+8h] [rbp-50h]
unsigned int v14; // [rsp+Ch] [rbp-4Ch]
unsigned int v15; // [rsp+Ch] [rbp-4Ch]
float v17; // [rsp+20h] [rbp-38h]
rlBegin(1);
rlColor4ub(a1, SBYTE1(a1), SBYTE2(a1), SHIBYTE(a1));
LODWORD(v17) = _mm_shuffle_ps(a2, a2, 85).m128_u32[0];
v4 = 0;
while ( (unsigned int)v4 < 0x168 )
{
v12 = (float)v4 * 0.017453292;
v5 = cosf(v12);
*(float *)&v14 = (float)(*(float *)&v5 * a3) + a2.m128_f32[0];
v6 = (__m128)LODWORD(v12);
*(double *)v6.m128_u64 = sinf(v12);
v7 = v6;
v7.m128_f32[0] = (float)(v6.m128_f32[0] * a3) + v17;
rlVertex2f((__m128)v14, v7);
v4 += 10;
v13 = (float)v4 * 0.017453292;
*(double *)v6.m128_u64 = cosf(v13);
*(float *)&v15 = (float)(v6.m128_f32[0] * a3) + a2.m128_f32[0];
v8 = (__m128)LODWORD(v13);
*(double *)v8.m128_u64 = sinf(v13);
v9 = v8;
v9.m128_f32[0] = (float)(v8.m128_f32[0] * a3) + v17;
rlVertex2f((__m128)v15, v9);
}
return rlEnd((unsigned __int8)a1, BYTE1(a1), v3);
}
| DrawCircleLinesV:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBX,EDI
MOVSS dword ptr [RSP + 0x4],XMM1
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV EBP,EDI
SHR EBP,0x8
MOV R14D,EDI
SHR R14D,0x10
MOV R15D,EDI
SHR R15D,0x18
PUSH 0x1
POP RDI
CALL 0x00151283
MOV EAX,0xff
AND EBX,EAX
AND EBP,EAX
AND R14D,EAX
MOV EDI,EBX
MOV ESI,EBP
MOV EDX,R14D
MOV ECX,R15D
CALL 0x00152b4f
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
SHUFPS XMM0,XMM0,0x55
MOVAPS xmmword ptr [RSP + 0x20],XMM0
XOR EBX,EBX
LAB_00166feb:
CMP EBX,0x168
JNC 0x001670a2
CVTSI2SS XMM1,EBX
MOVSS XMM0,dword ptr [0x001c34d0]
MULSS XMM1,XMM0
MOVSS dword ptr [RSP + 0x8],XMM1
MOVAPS XMM0,XMM1
CALL 0x00109390
MULSS XMM0,dword ptr [RSP + 0x4]
ADDSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0x8]
CALL 0x00109410
MOVAPS XMM1,XMM0
MULSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,dword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RSP + 0xc]
CALL 0x001529f9
ADD EBX,0xa
CVTSI2SS XMM0,EBX
MULSS XMM0,dword ptr [0x001c34d0]
MOVSS dword ptr [RSP + 0x8],XMM0
CALL 0x00109390
MULSS XMM0,dword ptr [RSP + 0x4]
ADDSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0x8]
CALL 0x00109410
MOVAPS XMM1,XMM0
MULSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,dword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RSP + 0xc]
CALL 0x001529f9
JMP 0x00166feb
LAB_001670a2:
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0015265a
|
void DrawCircleLinesV(int8 param_1,float param_2,uint param_3)
{
uint uVar1;
float fVar2;
float fVar3;
float fVar4;
fVar3 = (float)((ulong)param_1 >> 0x20);
rlBegin(1);
rlColor4ub(param_3 & 0xff,param_3 >> 8 & 0xff,param_3 >> 0x10 & 0xff,param_3 >> 0x18);
uVar1 = 0;
while (uVar1 < 0x168) {
fVar4 = (float)(int)uVar1 * DAT_001c34d0;
fVar2 = cosf(fVar4);
fVar4 = sinf(fVar4);
rlVertex2f(fVar2 * param_2 + (float)param_1,fVar4 * param_2 + fVar3);
uVar1 = uVar1 + 10;
fVar2 = (float)(int)uVar1 * DAT_001c34d0;
fVar4 = cosf(fVar2);
fVar2 = sinf(fVar2);
rlVertex2f(fVar4 * param_2 + (float)param_1,fVar2 * param_2 + fVar3);
}
rlEnd();
return;
}
|
|
5,447 | ma_new | eloqsql/storage/maria/ma_page.c | my_off_t _ma_new(register MARIA_HA *info, int level,
MARIA_PINNED_PAGE **page_link)
{
my_off_t pos;
MARIA_SHARE *share= info->s;
uint block_size= share->block_size;
DBUG_ENTER("_ma_new");
if (_ma_lock_key_del(info, 1))
{
mysql_mutex_lock(&share->intern_lock);
pos= share->state.state.key_file_length;
if (pos >= share->base.max_key_file_length - block_size)
{
my_errno=HA_ERR_INDEX_FILE_FULL;
mysql_mutex_unlock(&share->intern_lock);
DBUG_RETURN(HA_OFFSET_ERROR);
}
share->state.state.key_file_length+= block_size;
/* Following is for not transactional tables */
info->state->key_file_length= share->state.state.key_file_length;
mysql_mutex_unlock(&share->intern_lock);
(*page_link)->changed= 0;
(*page_link)->write_lock= PAGECACHE_LOCK_WRITE;
}
else
{
uchar *buff;
pos= share->key_del_current; /* Protected */
DBUG_ASSERT(share->pagecache->block_size == block_size);
if (!(buff= pagecache_read(share->pagecache,
&share->kfile,
(pgcache_page_no_t) (pos / block_size), level,
0, share->page_type,
PAGECACHE_LOCK_WRITE, &(*page_link)->link)))
{
pos= HA_OFFSET_ERROR;
_ma_set_fatal_error(info, my_errno);
}
else
{
/*
Next deleted page's number is in the header of the present page
(single linked list):
*/
#ifdef DBUG_ASSERT_EXISTS
my_off_t key_del_current;
#endif
share->key_del_current= mi_sizekorr(buff+share->keypage_header);
#ifdef DBUG_ASSERT_EXISTS
key_del_current= share->key_del_current;
DBUG_ASSERT((key_del_current != 0) &&
((key_del_current == HA_OFFSET_ERROR) ||
(key_del_current <=
(share->state.state.key_file_length - block_size))));
#endif
}
(*page_link)->unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
(*page_link)->write_lock= PAGECACHE_LOCK_WRITE;
/*
We have to mark it changed as _ma_flush_pending_blocks() uses
'changed' to know if we used the page cache or not
*/
(*page_link)->changed= 1;
push_dynamic(&info->pinned_pages, (void*) *page_link);
*page_link= dynamic_element(&info->pinned_pages,
info->pinned_pages.elements-1,
MARIA_PINNED_PAGE *);
}
share->state.changed|= STATE_NOT_SORTED_PAGES;
DBUG_PRINT("exit",("Pos: %ld",(long) pos));
DBUG_RETURN(pos);
} | O0 | c | ma_new:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x44be0
cmpb $0x0, %al
je 0x99bfe
movq -0x30(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
leaq 0xbeed6(%rip), %rsi # 0x158a29
movl $0x19b, %edx # imm = 0x19B
callq 0x99df0
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movq 0x370(%rcx), %rcx
movl -0x34(%rbp), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
jb 0x99bab
callq 0xfc1b0
movl $0x88, (%rax)
movq -0x30(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x99e60
movq $-0x1, -0x8(%rbp)
jmp 0x99dde
movl -0x34(%rbp), %eax
movl %eax, %ecx
movq -0x30(%rbp), %rax
addq 0x38(%rax), %rcx
movq %rcx, 0x38(%rax)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x99e60
movq -0x20(%rbp), %rax
movq (%rax), %rax
movb $0x0, 0x10(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl $0x4, 0xc(%rax)
jmp 0x99dbf
movq -0x30(%rbp), %rax
movq 0x700(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x99c0f
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x30(%rbp), %rsi
addq $0x750, %rsi # imm = 0x750
movq -0x28(%rbp), %rax
movl -0x34(%rbp), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rdx
movl -0x14(%rbp), %ecx
movq -0x30(%rbp), %rax
movl 0x7d4(%rax), %r9d
movq -0x20(%rbp), %rax
movq (%rax), %rax
xorl %r8d, %r8d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x3b470
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x99c8c
movq $-0x1, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
callq 0xfc1b0
movq -0x48(%rbp), %rdi
movl (%rax), %esi
callq 0x42200
jmp 0x99d59
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
movl 0x744(%rcx), %ecx
movzbl 0x7(%rax,%rcx), %eax
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rdx
movl 0x744(%rdx), %edx
movzbl 0x6(%rcx,%rdx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rdx
movl 0x744(%rdx), %edx
movzbl 0x5(%rcx,%rdx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rdx
movl 0x744(%rdx), %edx
movzbl 0x4(%rcx,%rdx), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rdx
movl 0x744(%rdx), %edx
movzbl 0x3(%rax,%rdx), %eax
movq -0x40(%rbp), %rdx
movq -0x30(%rbp), %rsi
movl 0x744(%rsi), %esi
movzbl 0x2(%rdx,%rsi), %edx
shll $0x8, %edx
orl %edx, %eax
movq -0x40(%rbp), %rdx
movq -0x30(%rbp), %rsi
movl 0x744(%rsi), %esi
movzbl 0x1(%rdx,%rsi), %edx
shll $0x10, %edx
orl %edx, %eax
movq -0x40(%rbp), %rdx
movq -0x30(%rbp), %rsi
movl 0x744(%rsi), %esi
movzbl (%rdx,%rsi), %edx
shll $0x18, %edx
orl %edx, %eax
movl %eax, %eax
shlq $0x20, %rax
orq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x700(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl $0x6, 0x8(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl $0x4, 0xc(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x10(%rax)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
movq -0x20(%rbp), %rax
movq (%rax), %rsi
callq 0xda300
movq -0x10(%rbp), %rax
movq 0x2e8(%rax), %rcx
movq -0x10(%rbp), %rax
movl 0x2f0(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
imulq $0x18, %rax, %rax
addq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movl 0x170(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x170(%rax)
jmp 0x99dd4
jmp 0x99dd6
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ma_new:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov eax, [rax+7BCh]
mov [rbp+var_34], eax
mov rdi, [rbp+var_10]
mov esi, 1
call _ma_lock_key_del
cmp al, 0
jz loc_99BFE
mov rdi, [rbp+var_30]
add rdi, 8F0h
lea rsi, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 19Bh
call inline_mysql_mutex_lock_14
mov rax, [rbp+var_30]
mov rax, [rax+38h]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_30]
mov rcx, [rcx+370h]
mov edx, [rbp+var_34]
sub rcx, rdx
cmp rax, rcx
jb short loc_99BAB
call _my_thread_var
mov dword ptr [rax], 88h
mov rdi, [rbp+var_30]
add rdi, 8F0h
call inline_mysql_mutex_unlock_15
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_99DDE
loc_99BAB:
mov eax, [rbp+var_34]
mov ecx, eax
mov rax, [rbp+var_30]
add rcx, [rax+38h]
mov [rax+38h], rcx
mov rax, [rbp+var_30]
mov rcx, [rax+38h]
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov [rax+20h], rcx
mov rdi, [rbp+var_30]
add rdi, 8F0h
call inline_mysql_mutex_unlock_15
mov rax, [rbp+var_20]
mov rax, [rax]
mov byte ptr [rax+10h], 0
mov rax, [rbp+var_20]
mov rax, [rax]
mov dword ptr [rax+0Ch], 4
jmp loc_99DBF
loc_99BFE:
mov rax, [rbp+var_30]
mov rax, [rax+700h]
mov [rbp+var_28], rax
jmp short $+2
loc_99C0F:
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_30]
add rsi, 750h
mov rax, [rbp+var_28]
mov ecx, [rbp+var_34]
xor edx, edx
div rcx
mov rdx, rax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_30]
mov r9d, [rax+7D4h]
mov rax, [rbp+var_20]
mov rax, [rax]
xor r8d, r8d
mov [rsp+60h+var_60], 4
mov [rsp+60h+var_58], rax
call pagecache_read
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_99C8C
mov [rbp+var_28], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov [rbp+var_48], rax
call _my_thread_var
mov rdi, [rbp+var_48]
mov esi, [rax]
call _ma_set_fatal_error
jmp loc_99D59
loc_99C8C:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_30]
mov ecx, [rcx+744h]
movzx eax, byte ptr [rax+rcx+7]
mov rcx, [rbp+var_40]
mov rdx, [rbp+var_30]
mov edx, [rdx+744h]
movzx ecx, byte ptr [rcx+rdx+6]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_40]
mov rdx, [rbp+var_30]
mov edx, [rdx+744h]
movzx ecx, byte ptr [rcx+rdx+5]
shl ecx, 10h
or eax, ecx
mov rcx, [rbp+var_40]
mov rdx, [rbp+var_30]
mov edx, [rdx+744h]
movzx ecx, byte ptr [rcx+rdx+4]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_40]
mov rdx, [rbp+var_30]
mov edx, [rdx+744h]
movzx eax, byte ptr [rax+rdx+3]
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_30]
mov esi, [rsi+744h]
movzx edx, byte ptr [rdx+rsi+2]
shl edx, 8
or eax, edx
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_30]
mov esi, [rsi+744h]
movzx edx, byte ptr [rdx+rsi+1]
shl edx, 10h
or eax, edx
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_30]
mov esi, [rsi+744h]
movzx edx, byte ptr [rdx+rsi]
shl edx, 18h
or eax, edx
mov eax, eax
shl rax, 20h
or rcx, rax
mov rax, [rbp+var_30]
mov [rax+700h], rcx
loc_99D59:
mov rax, [rbp+var_20]
mov rax, [rax]
mov dword ptr [rax+8], 6
mov rax, [rbp+var_20]
mov rax, [rax]
mov dword ptr [rax+0Ch], 4
mov rax, [rbp+var_20]
mov rax, [rax]
mov byte ptr [rax+10h], 1
mov rdi, [rbp+var_10]
add rdi, 2E8h
mov rax, [rbp+var_20]
mov rsi, [rax]
call insert_dynamic
mov rax, [rbp+var_10]
mov rcx, [rax+2E8h]
mov rax, [rbp+var_10]
mov eax, [rax+2F0h]
sub eax, 1
mov eax, eax
imul rax, 18h
add rcx, rax
mov rax, [rbp+var_20]
mov [rax], rcx
loc_99DBF:
mov rax, [rbp+var_30]
mov ecx, [rax+170h]
or ecx, 20h
mov [rax+170h], ecx
jmp short $+2
loc_99DD4:
jmp short $+2
loc_99DD6:
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_99DDE:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| long long ma_new(long long *a1, int a2, char **a3)
{
_QWORD *v3; // rdi
int *v4; // rax
long long v5; // rdx
long long v6; // rcx
long long v7; // r8
int v8; // r9d
long long v10; // [rsp+20h] [rbp-40h]
unsigned int v11; // [rsp+2Ch] [rbp-34h]
long long v12; // [rsp+30h] [rbp-30h]
unsigned long long v13; // [rsp+38h] [rbp-28h]
v12 = *a1;
v11 = *(_DWORD *)(*a1 + 1980);
if ( !ma_lock_key_del(a1, 1) )
{
v13 = *(_QWORD *)(v12 + 1792);
v3 = *(_QWORD **)(v12 + 1536);
v10 = pagecache_read(v3, v12 + 1872, v13 / v11, a2, 0LL, *(_DWORD *)(v12 + 2004), 4u, *a3);
if ( v10 )
{
*(_QWORD *)(v12 + 1792) = ((unsigned long long)_byteswap_ulong(*(_DWORD *)(v10 + *(unsigned int *)(v12 + 1860))) << 32) | _byteswap_ulong(*(_DWORD *)(v10 + *(unsigned int *)(v12 + 1860) + 4));
}
else
{
v13 = -1LL;
v4 = (int *)my_thread_var(v3, (const char *)(v12 + 1872));
ma_set_fatal_error(a1, *v4, v5, v6, v7, v8);
}
*((_DWORD *)*a3 + 2) = 6;
*((_DWORD *)*a3 + 3) = 4;
(*a3)[16] = 1;
insert_dynamic(a1 + 93, *a3);
*a3 = (char *)(24LL * (unsigned int)(*((_DWORD *)a1 + 188) - 1) + a1[93]);
goto LABEL_9;
}
inline_mysql_mutex_lock_14(v12 + 2288, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_page.c", 411LL);
v13 = *(_QWORD *)(v12 + 56);
if ( v13 < *(_QWORD *)(v12 + 880) - (unsigned long long)v11 )
{
*(_QWORD *)(v12 + 56) += v11;
*(_QWORD *)(a1[4] + 32) = *(_QWORD *)(v12 + 56);
inline_mysql_mutex_unlock_15(v12 + 2288);
(*a3)[16] = 0;
*((_DWORD *)*a3 + 3) = 4;
LABEL_9:
*(_DWORD *)(v12 + 368) |= 0x20u;
return v13;
}
*(_DWORD *)my_thread_var(v12 + 2288, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_page.c") = 136;
inline_mysql_mutex_unlock_15(v12 + 2288);
return -1LL;
}
| _ma_new:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x34],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x00144be0
CMP AL,0x0
JZ 0x00199bfe
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x8f0
LEA RSI,[0x258a29]
MOV EDX,0x19b
CALL 0x00199df0
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX + 0x370]
MOV EDX,dword ptr [RBP + -0x34]
SUB RCX,RDX
CMP RAX,RCX
JC 0x00199bab
CALL 0x001fc1b0
MOV dword ptr [RAX],0x88
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x8f0
CALL 0x00199e60
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00199dde
LAB_00199bab:
MOV EAX,dword ptr [RBP + -0x34]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RCX,qword ptr [RAX + 0x38]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x8f0
CALL 0x00199e60
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0xc],0x4
JMP 0x00199dbf
LAB_00199bfe:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x700]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00199c0f
LAB_00199c0f:
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x30]
ADD RSI,0x750
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x34]
XOR EDX,EDX
DIV RCX
MOV RDX,RAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RAX + 0x7d4]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
XOR R8D,R8D
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0013b470
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x00199c8c
MOV qword ptr [RBP + -0x28],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x48],RAX
CALL 0x001fc1b0
MOV RDI,qword ptr [RBP + -0x48]
MOV ESI,dword ptr [RAX]
CALL 0x00142200
JMP 0x00199d59
LAB_00199c8c:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RCX + 0x744]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x7]
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RDX + 0x744]
MOVZX ECX,byte ptr [RCX + RDX*0x1 + 0x6]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RDX + 0x744]
MOVZX ECX,byte ptr [RCX + RDX*0x1 + 0x5]
SHL ECX,0x10
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RDX + 0x744]
MOVZX ECX,byte ptr [RCX + RDX*0x1 + 0x4]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RDX + 0x744]
MOVZX EAX,byte ptr [RAX + RDX*0x1 + 0x3]
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RSI + 0x744]
MOVZX EDX,byte ptr [RDX + RSI*0x1 + 0x2]
SHL EDX,0x8
OR EAX,EDX
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RSI + 0x744]
MOVZX EDX,byte ptr [RDX + RSI*0x1 + 0x1]
SHL EDX,0x10
OR EAX,EDX
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RSI + 0x744]
MOVZX EDX,byte ptr [RDX + RSI*0x1]
SHL EDX,0x18
OR EAX,EDX
MOV EAX,EAX
SHL RAX,0x20
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x700],RCX
LAB_00199d59:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0x8],0x6
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0xc],0x4
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX + 0x10],0x1
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX]
CALL 0x001da300
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x2e8]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x2f0]
SUB EAX,0x1
MOV EAX,EAX
IMUL RAX,RAX,0x18
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
LAB_00199dbf:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x170]
OR ECX,0x20
MOV dword ptr [RAX + 0x170],ECX
JMP 0x00199dd4
LAB_00199dd4:
JMP 0x00199dd6
LAB_00199dd6:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_00199dde:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
ulong _ma_new(long *param_1,int4 param_2,long *param_3)
{
uint uVar1;
long lVar2;
char cVar3;
int4 *puVar4;
long lVar5;
ulong local_30;
lVar2 = *param_1;
uVar1 = *(uint *)(lVar2 + 0x7bc);
cVar3 = _ma_lock_key_del(param_1,1);
if (cVar3 == '\0') {
local_30 = *(ulong *)(lVar2 + 0x700);
lVar5 = pagecache_read(*(int8 *)(lVar2 + 0x600),lVar2 + 0x750,local_30 / uVar1,param_2,0,
*(int4 *)(lVar2 + 0x7d4),4,*param_3);
if (lVar5 == 0) {
local_30 = 0xffffffffffffffff;
puVar4 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar4);
}
else {
*(ulong *)(lVar2 + 0x700) =
CONCAT44(CONCAT13(*(int1 *)(lVar5 + (ulong)*(uint *)(lVar2 + 0x744)),
CONCAT12(*(int1 *)(lVar5 + 1 + (ulong)*(uint *)(lVar2 + 0x744)),
CONCAT11(*(int1 *)
(lVar5 + 2 + (ulong)*(uint *)(lVar2 + 0x744)),
*(int1 *)
(lVar5 + 3 + (ulong)*(uint *)(lVar2 + 0x744))))),
CONCAT13(*(int1 *)(lVar5 + 4 + (ulong)*(uint *)(lVar2 + 0x744)),
CONCAT12(*(int1 *)(lVar5 + 5 + (ulong)*(uint *)(lVar2 + 0x744)),
CONCAT11(*(int1 *)
(lVar5 + 6 + (ulong)*(uint *)(lVar2 + 0x744)),
*(int1 *)
(lVar5 + 7 + (ulong)*(uint *)(lVar2 + 0x744))))));
}
*(int4 *)(*param_3 + 8) = 6;
*(int4 *)(*param_3 + 0xc) = 4;
*(int1 *)(*param_3 + 0x10) = 1;
insert_dynamic(param_1 + 0x5d,*param_3);
*param_3 = param_1[0x5d] + (ulong)((int)param_1[0x5e] - 1) * 0x18;
}
else {
inline_mysql_mutex_lock
(lVar2 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_page.c",
0x19b);
local_30 = *(ulong *)(lVar2 + 0x38);
if (*(long *)(lVar2 + 0x370) - (ulong)uVar1 <= local_30) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x88;
inline_mysql_mutex_unlock(lVar2 + 0x8f0);
return 0xffffffffffffffff;
}
*(ulong *)(lVar2 + 0x38) = (ulong)uVar1 + *(long *)(lVar2 + 0x38);
*(int8 *)(param_1[4] + 0x20) = *(int8 *)(lVar2 + 0x38);
inline_mysql_mutex_unlock(lVar2 + 0x8f0);
*(int1 *)(*param_3 + 0x10) = 0;
*(int4 *)(*param_3 + 0xc) = 4;
}
*(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x20;
return local_30;
}
|
|
5,448 | JS_ToNumberHintFree | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ToNumberHintFree(JSContext *ctx, JSValue val,
JSToNumberHintEnum flag)
{
uint32_t tag;
JSValue ret;
redo:
tag = JS_VALUE_GET_NORM_TAG(val);
switch(tag) {
case JS_TAG_BIG_INT:
if (flag != TON_FLAG_NUMERIC) {
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert BigInt to number");
}
ret = val;
break;
case JS_TAG_FLOAT64:
case JS_TAG_INT:
case JS_TAG_EXCEPTION:
ret = val;
break;
case JS_TAG_BOOL:
case JS_TAG_NULL:
ret = js_int32(JS_VALUE_GET_INT(val));
break;
case JS_TAG_UNDEFINED:
ret = JS_NAN;
break;
case JS_TAG_OBJECT:
val = JS_ToPrimitiveFree(ctx, val, HINT_NUMBER);
if (JS_IsException(val))
return JS_EXCEPTION;
goto redo;
case JS_TAG_STRING:
{
const char *str;
size_t len;
int flags;
str = JS_ToCStringLen(ctx, &len, val);
JS_FreeValue(ctx, val);
if (!str)
return JS_EXCEPTION;
flags = ATOD_TRIM_SPACES | ATOD_ACCEPT_EMPTY |
ATOD_ACCEPT_FLOAT | ATOD_ACCEPT_INFINITY |
ATOD_ACCEPT_HEX_PREFIX | ATOD_ACCEPT_BIN_OCT |
ATOD_DECIMAL_AFTER_SIGN | ATOD_NO_TRAILING_CHARS;
ret = js_atof(ctx, str, len, NULL, 10, flags);
JS_FreeCString(ctx, str);
}
break;
case JS_TAG_SYMBOL:
JS_FreeValue(ctx, val);
return JS_ThrowTypeError(ctx, "cannot convert symbol to number");
default:
JS_FreeValue(ctx, val);
ret = JS_NAN;
break;
}
return ret;
} | O2 | c | JS_ToNumberHintFree:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0xc(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
pushq $0x7
popq %r15
leaq 0x495b9(%rip), %rbx # 0x83cc0
pushq $0x1
popq %rbp
leal 0x9(%r12), %eax
cmpl $0x10, %eax
ja 0x3a7d9
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x366ee
movq %rax, %r13
movq %rdx, %r12
cmpl $0x6, %r12d
jne 0x3a70a
xorl %r13d, %r13d
jmp 0x3a815
movl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x3a819
cmpl $0x1, 0xc(%rsp)
jne 0x3a7f3
movq %r12, %r15
jmp 0x3a819
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1801e
leaq 0x4bdef(%rip), %rsi # 0x86567
jmp 0x3a808
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0x36bee
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1801e
testq %rbp, %rbp
je 0x3a82e
movq 0x10(%rsp), %rdx
pushq $0xa
popq %r8
movq %r14, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
movl $0x63f, %r9d # imm = 0x63F
callq 0x36bf6
movq %rax, %r13
movq %rdx, %r15
movq %r14, %rdi
movq %rbp, %rsi
callq 0x1b057
jmp 0x3a819
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1801e
movabsq $0x7ff8000000000000, %r13 # imm = 0x7FF8000000000000
jmp 0x3a819
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1801e
leaq 0x4bd3f(%rip), %rsi # 0x86547
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1c64d
pushq $0x6
popq %r15
movq %r13, %rax
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x6
popq %r15
xorl %r13d, %r13d
jmp 0x3a819
| JS_ToNumberHintFree:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_3C], ecx
mov r12, rdx
mov r13, rsi
mov r14, rdi
push 7
pop r15
lea rbx, jpt_3A71F
push 1
pop rbp
loc_3A70A:
lea eax, [r12+9]; switch 17 cases
cmp eax, 10h
ja def_3A71F; jumptable 000000000003A71F default case, cases -6--2,4,5
movsxd rax, ds:(jpt_3A71F - 83CC0h)[rbx+rax*4]
add rax, rbx
jmp rax; switch jump
loc_3A721:
mov rdi, r14; jumptable 000000000003A71F case -1
mov rsi, r13
mov rdx, r12
mov ecx, ebp
call JS_ToPrimitiveFree
mov r13, rax
mov r12, rdx
cmp r12d, 6
jnz short loc_3A70A
xor r13d, r13d
jmp loc_3A815
loc_3A745:
mov r13d, r13d; jumptable 000000000003A71F cases 1,2
xor r15d, r15d
jmp loc_3A819
loc_3A750:
cmp [rsp+48h+var_3C], 1; jumptable 000000000003A71F case -9
jnz loc_3A7F3
loc_3A75B:
mov r15, r12; jumptable 000000000003A71F cases 0,6,7
jmp loc_3A819
loc_3A763:
mov rdi, r14; jumptable 000000000003A71F case -8
mov rsi, r13
mov rdx, r12
call JS_FreeValue
lea rsi, aCannotConvertS_0; "cannot convert symbol to number"
jmp loc_3A808
loc_3A77D:
lea rsi, [rsp+48h+var_38]; jumptable 000000000003A71F case -7
mov rdi, r14
mov rdx, r13
mov rcx, r12
call JS_ToCStringLen_0
mov rbp, rax
mov rdi, r14
mov rsi, r13
mov rdx, r12
call JS_FreeValue
test rbp, rbp
jz loc_3A82E
mov rdx, [rsp+48h+var_38]
push 0Ah
pop r8
mov rdi, r14
mov rsi, rbp
xor ecx, ecx
mov r9d, 63Fh
call js_atof
mov r13, rax
mov r15, rdx
mov rdi, r14
mov rsi, rbp
call JS_FreeCString
jmp short loc_3A819
def_3A71F:
mov rdi, r14; jumptable 000000000003A71F default case, cases -6--2,4,5
mov rsi, r13
mov rdx, r12
call JS_FreeValue
loc_3A7E7:
mov r13, 7FF8000000000000h; jumptable 000000000003A71F case 3
jmp short loc_3A819
loc_3A7F3:
mov rdi, r14
mov rsi, r13
mov rdx, r12
call JS_FreeValue
lea rsi, aCannotConvertB; "cannot convert BigInt to number"
loc_3A808:
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
loc_3A815:
push 6
pop r15
loc_3A819:
mov rax, r13
mov rdx, r15
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3A82E:
push 6
pop r15
xor r13d, r13d
jmp short loc_3A819
| long long JS_ToNumberHintFree(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v16; // rdx
long long v17; // rdx
long long v18; // rcx
long long v19; // r8
long long v20; // r9
__m128 v21; // xmm4
__m128 v22; // xmm5
const char *v23; // rsi
unsigned __int8 *v24; // rbp
char v26; // [rsp+0h] [rbp-48h]
long long v28[7]; // [rsp+10h] [rbp-38h] BYREF
while ( 2 )
{
switch ( (int)a3 )
{
case -9:
if ( a4 != 1 )
{
JS_FreeValue(a1, a2, a3);
v23 = "cannot convert BigInt to number";
goto LABEL_13;
}
break;
case -8:
JS_FreeValue(a1, a2, a3);
v23 = "cannot convert symbol to number";
LABEL_13:
a2 = 0LL;
JS_ThrowTypeError(a1, (long long)v23, v17, v18, v19, v20, a7, a8, a9, a10, v21, v22, a13, a14, v26);
break;
case -7:
v24 = (unsigned __int8 *)JS_ToCStringLen_0(a1, v28, a2, a3);
JS_FreeValue(a1, a2, a3);
if ( v24 )
{
a2 = js_atof(a1, v24, v28[0], 0LL, 0xAu, 1599);
JS_FreeCString(a1, (long long)v24);
}
else
{
a2 = 0LL;
}
break;
case -1:
a2 = JS_ToPrimitiveFree(a1, a2, a3, 1LL, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
a3 = v16;
if ( (_DWORD)v16 != 6 )
continue;
a2 = 0LL;
break;
case 0:
case 6:
case 7:
return a2;
case 1:
case 2:
a2 = (unsigned int)a2;
break;
case 3:
goto LABEL_11;
default:
JS_FreeValue(a1, a2, a3);
LABEL_11:
a2 = 0x7FF8000000000000LL;
break;
}
return a2;
}
}
| JS_ToNumberHintFree:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RSP + 0xc],ECX
MOV R12,RDX
MOV R13,RSI
MOV R14,RDI
PUSH 0x7
POP R15
LEA RBX,[0x183cc0]
PUSH 0x1
POP RBP
LAB_0013a70a:
LEA EAX,[R12 + 0x9]
CMP EAX,0x10
JA 0x0013a7d9
MOVSXD RAX,dword ptr [RBX + RAX*0x4]
ADD RAX,RBX
switchD:
JMP RAX
caseD_ffffffff:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
MOV ECX,EBP
CALL 0x001366ee
MOV R13,RAX
MOV R12,RDX
CMP R12D,0x6
JNZ 0x0013a70a
XOR R13D,R13D
JMP 0x0013a815
caseD_1:
MOV R13D,R13D
XOR R15D,R15D
JMP 0x0013a819
caseD_fffffff7:
CMP dword ptr [RSP + 0xc],0x1
JNZ 0x0013a7f3
caseD_0:
MOV R15,R12
JMP 0x0013a819
caseD_fffffff8:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011801e
LEA RSI,[0x186567]
JMP 0x0013a808
caseD_fffffff9:
LEA RSI,[RSP + 0x10]
MOV RDI,R14
MOV RDX,R13
MOV RCX,R12
CALL 0x00136bee
MOV RBP,RAX
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011801e
TEST RBP,RBP
JZ 0x0013a82e
MOV RDX,qword ptr [RSP + 0x10]
PUSH 0xa
POP R8
MOV RDI,R14
MOV RSI,RBP
XOR ECX,ECX
MOV R9D,0x63f
CALL 0x00136bf6
MOV R13,RAX
MOV R15,RDX
MOV RDI,R14
MOV RSI,RBP
CALL 0x0011b057
JMP 0x0013a819
caseD_fffffffa:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011801e
caseD_3:
MOV R13,0x7ff8000000000000
JMP 0x0013a819
LAB_0013a7f3:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0011801e
LEA RSI,[0x186547]
LAB_0013a808:
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011c64d
LAB_0013a815:
PUSH 0x6
POP R15
LAB_0013a819:
MOV RAX,R13
MOV RDX,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013a82e:
PUSH 0x6
POP R15
XOR R13D,R13D
JMP 0x0013a819
|
int1 [16]
JS_ToNumberHintFree(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int1 auVar1 [16];
int1 auVar2 [16];
long lVar3;
char *pcVar4;
int8 uVar5;
ulong uVar6;
int1 auVar7 [16];
int8 local_38;
auVar7._8_8_ = param_3;
auVar7._0_8_ = param_2;
LAB_0013a70a:
uVar5 = auVar7._8_8_;
uVar6 = auVar7._0_8_;
switch(auVar7._8_4_) {
case 0:
case 6:
case 7:
return auVar7;
case 1:
case 2:
auVar2._8_8_ = 0;
auVar2._0_8_ = uVar6 & 0xffffffff;
return auVar2;
case -9:
if (param_4 == 1) {
return auVar7;
}
JS_FreeValue(param_1,uVar6,uVar5);
pcVar4 = "cannot convert BigInt to number";
break;
case -8:
JS_FreeValue(param_1,uVar6,uVar5);
pcVar4 = "cannot convert symbol to number";
break;
case -7:
lVar3 = JS_ToCStringLen(param_1,&local_38,uVar6,uVar5);
JS_FreeValue(param_1,uVar6,uVar5);
if (lVar3 == 0) {
return ZEXT816(6) << 0x40;
}
auVar7 = js_atof(param_1,lVar3,local_38,0,10,0x63f);
JS_FreeCString(param_1,lVar3);
return auVar7;
default:
JS_FreeValue(param_1,uVar6,uVar5);
case 3:
auVar1._8_8_ = 7;
auVar1._0_8_ = 0x7ff8000000000000;
return auVar1;
case -1:
goto switchD_0013a71f_caseD_ffffffff;
}
JS_ThrowTypeError(param_1,pcVar4);
goto LAB_0013a815;
switchD_0013a71f_caseD_ffffffff:
auVar7 = JS_ToPrimitiveFree(param_1,uVar6,uVar5,1);
if (auVar7._8_4_ == 6) {
LAB_0013a815:
return ZEXT816(6) << 0x40;
}
goto LAB_0013a70a;
}
|
|
5,449 | lcg_verify | xtate/src/crypto/crypto-lcg.c | static unsigned lcg_verify(uint64_t a, uint64_t c, uint64_t range,
uint64_t max) {
unsigned char *list;
uint64_t i;
unsigned is_success = 1;
/* Allocate a list of 1-byte counters */
list = CALLOC(1, (size_t)((range < max) ? range : max));
/* For all numbers in the range, verify increment the counter for the
* the output. */
for (i = 0; i < range; i++) {
uint64_t x = lcg_rand(i, a, c, range);
if (x < max)
list[x]++;
}
/* Now check the output to make sure that every counter is set exactly
* to the value of '1'. */
for (i = 0; i < max && i < range; i++) {
if (list[i] != 1)
is_success = 0;
}
FREE(list);
return is_success;
} | O3 | c | lcg_verify:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpq %rcx, %rdx
movq %rcx, %rbx
cmovbq %rdx, %rbx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x5080b
movq %rax, %rdi
testq %r15, %r15
je 0x1d1e9
movq %r15, %rcx
movq %r12, %rax
xorl %edx, %edx
divq %r15
cmpq %r14, %rdx
jae 0x1d1e1
incb (%rdi,%rdx)
addq %r13, %r12
decq %rcx
jne 0x1d1d1
movl $0x1, %ebp
testq %rbx, %rbx
je 0x1d208
xorl %eax, %eax
xorl %ecx, %ecx
cmpb $0x1, (%rdi,%rcx)
cmovnel %eax, %ebp
incq %rcx
cmpq %rcx, %rbx
jne 0x1d1f7
jmp 0x1d20d
testq %rdi, %rdi
je 0x1d212
callq 0x151e0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| lcg_verify:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov r13, rdi
cmp rdx, rcx
mov rbx, rcx
cmovb rbx, rdx
mov edi, 1
mov rsi, rbx
call CALLOC
mov rdi, rax
test r15, r15
jz short loc_1D1E9
mov rcx, r15
loc_1D1D1:
mov rax, r12
xor edx, edx
div r15
cmp rdx, r14
jnb short loc_1D1E1
inc byte ptr [rdi+rdx]
loc_1D1E1:
add r12, r13
dec rcx
jnz short loc_1D1D1
loc_1D1E9:
mov ebp, 1
test rbx, rbx
jz short loc_1D208
xor eax, eax
xor ecx, ecx
loc_1D1F7:
cmp byte ptr [rdi+rcx], 1
cmovnz ebp, eax
inc rcx
cmp rbx, rcx
jnz short loc_1D1F7
jmp short loc_1D20D
loc_1D208:
test rdi, rdi
jz short loc_1D212
loc_1D20D:
call _free
loc_1D212:
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long lcg_verify(long long a1, unsigned long long a2, unsigned long long a3, unsigned long long a4)
{
unsigned long long v8; // rbx
long long v9; // rdi
unsigned long long v10; // rcx
unsigned int v11; // ebp
long long i; // rcx
v8 = a4;
if ( a3 < a4 )
v8 = a3;
v9 = CALLOC(1LL, v8);
if ( a3 )
{
v10 = a3;
do
{
if ( a2 % a3 < a4 )
++*(_BYTE *)(v9 + a2 % a3);
a2 += a1;
--v10;
}
while ( v10 );
}
v11 = 1;
if ( v8 )
{
for ( i = 0LL; i != v8; ++i )
{
if ( *(_BYTE *)(v9 + i) != 1 )
v11 = 0;
}
goto LABEL_15;
}
if ( v9 )
LABEL_15:
free(v9);
return v11;
}
| lcg_verify:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
CMP RDX,RCX
MOV RBX,RCX
CMOVC RBX,RDX
MOV EDI,0x1
MOV RSI,RBX
CALL 0x0015080b
MOV RDI,RAX
TEST R15,R15
JZ 0x0011d1e9
MOV RCX,R15
LAB_0011d1d1:
MOV RAX,R12
XOR EDX,EDX
DIV R15
CMP RDX,R14
JNC 0x0011d1e1
INC byte ptr [RDI + RDX*0x1]
LAB_0011d1e1:
ADD R12,R13
DEC RCX
JNZ 0x0011d1d1
LAB_0011d1e9:
MOV EBP,0x1
TEST RBX,RBX
JZ 0x0011d208
XOR EAX,EAX
XOR ECX,ECX
LAB_0011d1f7:
CMP byte ptr [RDI + RCX*0x1],0x1
CMOVNZ EBP,EAX
INC RCX
CMP RBX,RCX
JNZ 0x0011d1f7
JMP 0x0011d20d
LAB_0011d208:
TEST RDI,RDI
JZ 0x0011d212
LAB_0011d20d:
CALL 0x001151e0
LAB_0011d212:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 lcg_verify(long param_1,ulong param_2,ulong param_3,ulong param_4)
{
char *pcVar1;
void *__ptr;
ulong uVar2;
ulong uVar3;
int4 uVar4;
uVar3 = param_4;
if (param_3 < param_4) {
uVar3 = param_3;
}
__ptr = (void *)CALLOC(1,uVar3);
uVar2 = param_3;
if (param_3 != 0) {
do {
if (param_2 % param_3 < param_4) {
pcVar1 = (char *)((long)__ptr + param_2 % param_3);
*pcVar1 = *pcVar1 + '\x01';
}
param_2 = param_2 + param_1;
uVar2 = uVar2 - 1;
} while (uVar2 != 0);
}
uVar4 = 1;
if (uVar3 == 0) {
if (__ptr == (void *)0x0) {
return 1;
}
}
else {
uVar2 = 0;
do {
if (*(char *)((long)__ptr + uVar2) != '\x01') {
uVar4 = 0;
}
uVar2 = uVar2 + 1;
} while (uVar3 != uVar2);
}
free(__ptr);
return uVar4;
}
|
|
5,450 | common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool) | monkey531[P]llama/common/common.cpp | std::string common_token_to_piece(const struct llama_vocab * vocab, llama_token token, bool special) {
std::string piece;
piece.resize(piece.capacity()); // using string internal cache, 15 bytes + '\n'
const int n_chars = llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special);
if (n_chars < 0) {
piece.resize(-n_chars);
int check = llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special);
GGML_ASSERT(check == -n_chars);
}
else {
piece.resize(n_chars);
}
return piece;
} | O2 | cpp | common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
pushq $0xf
popq %rsi
callq 0x23c10
movq (%rbx), %rdx
movl 0x8(%rbx), %ecx
movzbl %r15b, %r15d
movq %r14, %rdi
movl %ebp, %esi
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0x237f0
movl %eax, %r12d
testl %eax, %eax
js 0x562c8
movl %r12d, %esi
movq %rbx, %rdi
callq 0x23c10
jmp 0x562f1
negl %r12d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x23c10
movq (%rbx), %rdx
movl 0x8(%rbx), %ecx
movq %r14, %rdi
movl %ebp, %esi
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0x237f0
cmpl %r12d, %eax
jne 0x562fd
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5b96d(%rip), %rdi # 0xb1c71
leaq 0x52f68(%rip), %rdx # 0xa9273
leaq 0x5bff2(%rip), %rcx # 0xb2304
movl $0x6cc, %esi # imm = 0x6CC
xorl %eax, %eax
callq 0x23ea0
jmp 0x56322
jmp 0x56322
movq %rax, %r14
movq %rbx, %rdi
callq 0x241b8
movq %r14, %rdi
callq 0x23f80
| _Z21common_token_to_pieceB5cxx11PK11llama_vocabib:
push rbp
push r15
push r14
push r12
push rbx
mov r15d, ecx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
push 0Fh
pop rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov rdx, [rbx]
mov ecx, [rbx+8]
movzx r15d, r15b
mov rdi, r14
mov esi, ebp
xor r8d, r8d
mov r9d, r15d
call _llama_token_to_piece
mov r12d, eax
test eax, eax
js short loc_562C8
mov esi, r12d
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
jmp short loc_562F1
loc_562C8:
neg r12d
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov rdx, [rbx]
mov ecx, [rbx+8]
mov rdi, r14
mov esi, ebp
xor r8d, r8d
mov r9d, r15d
call _llama_token_to_piece
cmp eax, r12d
jnz short loc_562FD
loc_562F1:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_562FD:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCheckNChars; "check == -n_chars"
mov esi, 6CCh
xor eax, eax
call _ggml_abort
jmp short loc_56322
jmp short $+2
loc_56322:
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| _QWORD * common_token_to_piece[abi:cxx11](_QWORD *a1, long long a2, long long a3, unsigned __int8 a4)
{
unsigned int v5; // ebp
int v6; // eax
long long v7; // rdx
int v8; // r12d
long long v10; // r14
v5 = a3;
*a1 = a1 + 2;
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
std::string::resize(a1, 15LL, a3);
v6 = llama_token_to_piece(a2, v5, *a1, *((unsigned int *)a1 + 2), 0LL, a4);
if ( v6 < 0 )
{
v8 = -v6;
std::string::resize(a1, (unsigned int)-v6, v7);
if ( (unsigned int)llama_token_to_piece(a2, v5, *a1, *((unsigned int *)a1 + 2), 0LL, a4) != v8 )
{
v10 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1740LL,
"GGML_ASSERT(%s) failed",
"check == -n_chars");
std::string::~string(a1);
_Unwind_Resume(v10);
}
}
else
{
std::string::resize(a1, (unsigned int)v6, v7);
}
return a1;
}
| common_token_to_piece[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15D,ECX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
LAB_00156292:
PUSH 0xf
POP RSI
CALL 0x00123c10
MOV RDX,qword ptr [RBX]
MOV ECX,dword ptr [RBX + 0x8]
LAB_001562a0:
MOVZX R15D,R15B
MOV RDI,R14
MOV ESI,EBP
XOR R8D,R8D
MOV R9D,R15D
CALL 0x001237f0
MOV R12D,EAX
TEST EAX,EAX
JS 0x001562c8
MOV ESI,R12D
MOV RDI,RBX
CALL 0x00123c10
JMP 0x001562f1
LAB_001562c8:
NEG R12D
MOV RDI,RBX
MOV RSI,R12
CALL 0x00123c10
MOV RDX,qword ptr [RBX]
MOV ECX,dword ptr [RBX + 0x8]
LAB_001562dc:
MOV RDI,R14
MOV ESI,EBP
XOR R8D,R8D
MOV R9D,R15D
CALL 0x001237f0
CMP EAX,R12D
JNZ 0x001562fd
LAB_001562f1:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001562fd:
LEA RDI,[0x1b1c71]
LEA RDX,[0x1a9273]
LEA RCX,[0x1b2304]
MOV ESI,0x6cc
XOR EAX,EAX
CALL 0x00123ea0
|
/* common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool) */
llama_vocab * common_token_to_piece_abi_cxx11_(llama_vocab *param_1,int param_2,bool param_3)
{
int iVar1;
int iVar2;
int1 in_CL;
int7 in_register_00000011;
int4 in_register_00000034;
*(llama_vocab **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (llama_vocab)0x0;
/* try { // try from 00156292 to 00156299 has its CatchHandler @ 00156320 */
std::__cxx11::string::resize((ulong)param_1);
/* try { // try from 001562a0 to 001562d5 has its CatchHandler @ 00156322 */
iVar1 = llama_token_to_piece
(CONCAT44(in_register_00000034,param_2),
CONCAT71(in_register_00000011,param_3) & 0xffffffff,*(int8 *)param_1,
*(int4 *)(param_1 + 8),0,in_CL);
if (iVar1 < 0) {
std::__cxx11::string::resize((ulong)param_1);
/* try { // try from 001562dc to 0015631d has its CatchHandler @ 0015631e */
iVar2 = llama_token_to_piece
(CONCAT44(in_register_00000034,param_2),
CONCAT71(in_register_00000011,param_3) & 0xffffffff,*(int8 *)param_1,
*(int4 *)(param_1 + 8),0,in_CL);
if (iVar2 != -iVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6cc
,"GGML_ASSERT(%s) failed","check == -n_chars");
}
}
else {
std::__cxx11::string::resize((ulong)param_1);
}
return param_1;
}
|
|
5,451 | translog_get_last_page_addr | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_get_last_page_addr(TRANSLOG_ADDRESS *addr,
my_bool *last_page_ok,
my_bool no_errors)
{
char path[FN_REFLEN];
uint32 rec_offset;
my_off_t file_size;
uint32 file_no= LSN_FILE_NO(*addr);
TRANSLOG_FILE *file;
#ifndef DBUG_OFF
char buff[21];
#endif
DBUG_ENTER("translog_get_last_page_addr");
if (likely((file= get_logfile_by_number(file_no)) != NULL))
{
/*
This function used only during initialization of loghandler or in
scanner (which mean we need read that part of the log), so the
requested log file have to be opened and can't be freed after
returning pointer on it (file_size).
*/
file_size= mysql_file_seek(file->handler.file, 0, SEEK_END, MYF(0));
}
else
{
/*
This branch is used only during very early initialization
when files are not opened.
*/
File fd;
if ((fd= mysql_file_open(key_file_translog,
translog_filename_by_fileno(file_no, path),
O_RDONLY | O_CLOEXEC, (no_errors ? MYF(0) : MYF(MY_WME)))) < 0)
{
my_errno= errno;
DBUG_PRINT("error", ("Error %d during opening file #%d",
errno, file_no));
DBUG_RETURN(1);
}
file_size= mysql_file_seek(fd, 0, SEEK_END, MYF(0));
mysql_file_close(fd, MYF(0));
}
DBUG_PRINT("info", ("File size: %s", llstr(file_size, buff)));
if (file_size == MY_FILEPOS_ERROR)
DBUG_RETURN(1);
DBUG_ASSERT(file_size < 0xffffffffULL);
if (((uint32)file_size) > TRANSLOG_PAGE_SIZE)
{
rec_offset= (((((uint32)file_size) / TRANSLOG_PAGE_SIZE) - 1) *
TRANSLOG_PAGE_SIZE);
*last_page_ok= (((uint32)file_size) == rec_offset + TRANSLOG_PAGE_SIZE);
}
else
{
*last_page_ok= 0;
rec_offset= 0;
}
*addr= MAKE_LSN(file_no, rec_offset);
DBUG_PRINT("info", ("Last page: 0x%lx ok: %d", (ulong) rec_offset,
*last_page_ok));
DBUG_RETURN(0);
} | O0 | c | translog_get_last_page_addr:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movb %dl, %al
movq %fs:0x28, %rcx
movq %rcx, -0x8(%rbp)
movq %rdi, -0x220(%rbp)
movq %rsi, -0x228(%rbp)
movb %al, -0x229(%rbp)
movq -0x220(%rbp), %rax
movq (%rax), %rax
sarq $0x20, %rax
movl %eax, -0x23c(%rbp)
movl -0x23c(%rbp), %edi
callq 0xae430
movq %rax, -0x248(%rbp)
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa77a8
movq -0x248(%rbp), %rax
movl 0x18(%rax), %edx
leaq 0xe4a0f(%rip), %rdi # 0x18c193
movl $0xcd4, %esi # imm = 0xCD4
xorl %eax, %eax
movl %eax, %r9d
movl $0x2, %r8d
movq %r9, %rcx
callq 0xa7aa0
movq %rax, -0x238(%rbp)
jmp 0xa787b
leaq 0x4329b5(%rip), %rax # 0x4da164
movl (%rax), %eax
movl %eax, -0x250(%rbp)
movl -0x23c(%rbp), %edi
leaq -0x210(%rbp), %rsi
callq 0xa5290
movl -0x250(%rbp), %edi
movq %rax, %rcx
movsbl -0x229(%rbp), %edx
movl $0x10, %r9d
xorl %eax, %eax
cmpl $0x0, %edx
cmovneq %rax, %r9
leaq 0xe49a4(%rip), %rsi # 0x18c193
movl $0xcdf, %edx # imm = 0xCDF
movl $0x80000, %r8d # imm = 0x80000
callq 0xae2c0
movl %eax, -0x24c(%rbp)
cmpl $0x0, %eax
jge 0xa7834
callq 0x2c900
movl (%rax), %eax
movl %eax, -0x254(%rbp)
callq 0x1295d0
movl -0x254(%rbp), %ecx
movl %ecx, (%rax)
jmp 0xa7826
jmp 0xa7828
movb $0x1, -0x211(%rbp)
jmp 0xa7927
movl -0x24c(%rbp), %edx
leaq 0xe4952(%rip), %rdi # 0x18c193
movl $0xce6, %esi # imm = 0xCE6
xorl %eax, %eax
movl %eax, %r9d
movl $0x2, %r8d
movq %r9, %rcx
callq 0xa7aa0
movq %rax, -0x238(%rbp)
movl -0x24c(%rbp), %edx
leaq 0xe4926(%rip), %rdi # 0x18c193
movl $0xce7, %esi # imm = 0xCE7
xorl %eax, %eax
movl %eax, %ecx
callq 0xa5930
jmp 0xa787d
jmp 0xa787f
cmpq $-0x1, -0x238(%rbp)
jne 0xa7897
jmp 0xa788b
movb $0x1, -0x211(%rbp)
jmp 0xa7927
jmp 0xa7899
jmp 0xa789b
movq -0x238(%rbp), %rax
cmpl $0x2000, %eax # imm = 0x2000
jbe 0xa78e9
movq -0x238(%rbp), %rax
shrl $0xd, %eax
subl $0x1, %eax
shll $0xd, %eax
movl %eax, -0x230(%rbp)
movq -0x238(%rbp), %rax
movl -0x230(%rbp), %ecx
addl $0x2000, %ecx # imm = 0x2000
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x228(%rbp), %rax
movb %cl, (%rax)
jmp 0xa78fd
movq -0x228(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x230(%rbp)
movl -0x23c(%rbp), %eax
movl %eax, %ecx
shlq $0x20, %rcx
movl -0x230(%rbp), %eax
orq %rax, %rcx
movq -0x220(%rbp), %rax
movq %rcx, (%rax)
jmp 0xa791e
jmp 0xa7920
movb $0x0, -0x211(%rbp)
movb -0x211(%rbp), %al
movb %al, -0x255(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xa7954
movb -0x255(%rbp), %al
addq $0x260, %rsp # imm = 0x260
popq %rbp
retq
callq 0x2c290
nopl (%rax)
| translog_get_last_page_addr:
push rbp
mov rbp, rsp
sub rsp, 260h
mov al, dl
mov rcx, fs:28h
mov [rbp+var_8], rcx
mov [rbp+var_220], rdi
mov [rbp+var_228], rsi
mov [rbp+var_229], al
mov rax, [rbp+var_220]
mov rax, [rax]
sar rax, 20h
mov [rbp+var_23C], eax
mov edi, [rbp+var_23C]
call get_logfile_by_number
mov [rbp+var_248], rax
cmp rax, 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_A77A8
mov rax, [rbp+var_248]
mov edx, [rax+18h]
lea rdi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CD4h
xor eax, eax
mov r9d, eax
mov r8d, 2
mov rcx, r9
call inline_mysql_file_seek_3
mov [rbp+var_238], rax
jmp loc_A787B
loc_A77A8:
lea rax, key_file_translog
mov eax, [rax]
mov [rbp+var_250], eax
mov edi, [rbp+var_23C]
lea rsi, [rbp+var_210]
call translog_filename_by_fileno
mov edi, [rbp+var_250]
mov rcx, rax
movsx edx, [rbp+var_229]
mov r9d, 10h
xor eax, eax
cmp edx, 0
cmovnz r9, rax
lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0CDFh
mov r8d, 80000h
call inline_mysql_file_open_1
mov [rbp+var_24C], eax
cmp eax, 0
jge short loc_A7834
call ___errno_location
mov eax, [rax]
mov [rbp+var_254], eax
call _my_thread_var
mov ecx, [rbp+var_254]
mov [rax], ecx
jmp short $+2
loc_A7826:
jmp short $+2
loc_A7828:
mov [rbp+var_211], 1
jmp loc_A7927
loc_A7834:
mov edx, [rbp+var_24C]
lea rdi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CE6h
xor eax, eax
mov r9d, eax
mov r8d, 2
mov rcx, r9
call inline_mysql_file_seek_3
mov [rbp+var_238], rax
mov edx, [rbp+var_24C]
lea rdi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CE7h
xor eax, eax
mov ecx, eax
call inline_mysql_file_close_6
loc_A787B:
jmp short $+2
loc_A787D:
jmp short $+2
loc_A787F:
cmp [rbp+var_238], 0FFFFFFFFFFFFFFFFh
jnz short loc_A7897
jmp short $+2
loc_A788B:
mov [rbp+var_211], 1
jmp loc_A7927
loc_A7897:
jmp short $+2
loc_A7899:
jmp short $+2
loc_A789B:
mov rax, [rbp+var_238]
cmp eax, 2000h
jbe short loc_A78E9
mov rax, [rbp+var_238]
shr eax, 0Dh
sub eax, 1
shl eax, 0Dh
mov [rbp+var_230], eax
mov rax, [rbp+var_238]
mov ecx, [rbp+var_230]
add ecx, 2000h
cmp eax, ecx
setz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_228]
mov [rax], cl
jmp short loc_A78FD
loc_A78E9:
mov rax, [rbp+var_228]
mov byte ptr [rax], 0
mov [rbp+var_230], 0
loc_A78FD:
mov eax, [rbp+var_23C]
mov ecx, eax
shl rcx, 20h
mov eax, [rbp+var_230]
or rcx, rax
mov rax, [rbp+var_220]
mov [rax], rcx
jmp short $+2
loc_A791E:
jmp short $+2
loc_A7920:
mov [rbp+var_211], 0
loc_A7927:
mov al, [rbp+var_211]
mov [rbp+var_255], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_A7954
mov al, [rbp+var_255]
add rsp, 260h
pop rbp
retn
loc_A7954:
call ___stack_chk_fail
| char translog_get_last_page_addr(unsigned long long *a1, bool *a2, char a3)
{
long long v3; // rdx
long long v4; // rcx
int v5; // r8d
int v6; // r9d
long long v7; // rdi
long long v8; // rcx
long long v9; // r9
int v11; // [rsp+Ch] [rbp-254h]
signed int v12; // [rsp+14h] [rbp-24Ch]
long long logfile_by_number; // [rsp+18h] [rbp-248h]
unsigned int v14; // [rsp+24h] [rbp-23Ch]
long long v15; // [rsp+28h] [rbp-238h]
unsigned int v16; // [rsp+30h] [rbp-230h]
_BYTE v20[520]; // [rsp+50h] [rbp-210h] BYREF
unsigned long long v21; // [rsp+258h] [rbp-8h]
v21 = __readfsqword(0x28u);
v14 = HIDWORD(*a1);
logfile_by_number = get_logfile_by_number(v14);
if ( logfile_by_number )
{
v15 = inline_mysql_file_seek_3(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3284LL,
*(unsigned int *)(logfile_by_number + 24),
0LL,
2LL);
}
else
{
v7 = key_file_translog;
v8 = translog_filename_by_fileno(v14, (long long)v20, v3, v4, v5, v6);
v9 = 16LL;
if ( a3 )
v9 = 0LL;
v12 = inline_mysql_file_open_1(
v7,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3295LL,
v8,
0x80000LL,
v9);
if ( v12 < 0 )
{
v11 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(v7, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c") = v11;
return 1;
}
v15 = inline_mysql_file_seek_3(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3302LL,
(unsigned int)v12,
0LL,
2LL);
inline_mysql_file_close_6(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xCE7u,
v12,
0LL);
}
if ( v15 == -1 )
return 1;
if ( (unsigned int)v15 <= 0x2000 )
{
*a2 = 0;
v16 = 0;
}
else
{
v16 = (((unsigned int)v15 >> 13) - 1) << 13;
*a2 = (_DWORD)v15 == v16 + 0x2000;
}
*a1 = v16 | ((unsigned long long)v14 << 32);
return 0;
}
| translog_get_last_page_addr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x260
MOV AL,DL
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RCX
MOV qword ptr [RBP + -0x220],RDI
MOV qword ptr [RBP + -0x228],RSI
MOV byte ptr [RBP + -0x229],AL
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX]
SAR RAX,0x20
MOV dword ptr [RBP + -0x23c],EAX
MOV EDI,dword ptr [RBP + -0x23c]
CALL 0x001ae430
MOV qword ptr [RBP + -0x248],RAX
CMP RAX,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 0x001a77a8
MOV RAX,qword ptr [RBP + -0x248]
MOV EDX,dword ptr [RAX + 0x18]
LEA RDI,[0x28c193]
MOV ESI,0xcd4
XOR EAX,EAX
MOV R9D,EAX
MOV R8D,0x2
MOV RCX,R9
CALL 0x001a7aa0
MOV qword ptr [RBP + -0x238],RAX
JMP 0x001a787b
LAB_001a77a8:
LEA RAX,[0x5da164]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x250],EAX
MOV EDI,dword ptr [RBP + -0x23c]
LEA RSI,[RBP + -0x210]
CALL 0x001a5290
MOV EDI,dword ptr [RBP + -0x250]
MOV RCX,RAX
MOVSX EDX,byte ptr [RBP + -0x229]
MOV R9D,0x10
XOR EAX,EAX
CMP EDX,0x0
CMOVNZ R9,RAX
LEA RSI,[0x28c193]
MOV EDX,0xcdf
MOV R8D,0x80000
CALL 0x001ae2c0
MOV dword ptr [RBP + -0x24c],EAX
CMP EAX,0x0
JGE 0x001a7834
CALL 0x0012c900
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x254],EAX
CALL 0x002295d0
MOV ECX,dword ptr [RBP + -0x254]
MOV dword ptr [RAX],ECX
JMP 0x001a7826
LAB_001a7826:
JMP 0x001a7828
LAB_001a7828:
MOV byte ptr [RBP + -0x211],0x1
JMP 0x001a7927
LAB_001a7834:
MOV EDX,dword ptr [RBP + -0x24c]
LEA RDI,[0x28c193]
MOV ESI,0xce6
XOR EAX,EAX
MOV R9D,EAX
MOV R8D,0x2
MOV RCX,R9
CALL 0x001a7aa0
MOV qword ptr [RBP + -0x238],RAX
MOV EDX,dword ptr [RBP + -0x24c]
LEA RDI,[0x28c193]
MOV ESI,0xce7
XOR EAX,EAX
MOV ECX,EAX
CALL 0x001a5930
LAB_001a787b:
JMP 0x001a787d
LAB_001a787d:
JMP 0x001a787f
LAB_001a787f:
CMP qword ptr [RBP + -0x238],-0x1
JNZ 0x001a7897
JMP 0x001a788b
LAB_001a788b:
MOV byte ptr [RBP + -0x211],0x1
JMP 0x001a7927
LAB_001a7897:
JMP 0x001a7899
LAB_001a7899:
JMP 0x001a789b
LAB_001a789b:
MOV RAX,qword ptr [RBP + -0x238]
CMP EAX,0x2000
JBE 0x001a78e9
MOV RAX,qword ptr [RBP + -0x238]
SHR EAX,0xd
SUB EAX,0x1
SHL EAX,0xd
MOV dword ptr [RBP + -0x230],EAX
MOV RAX,qword ptr [RBP + -0x238]
MOV ECX,dword ptr [RBP + -0x230]
ADD ECX,0x2000
CMP EAX,ECX
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],CL
JMP 0x001a78fd
LAB_001a78e9:
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],0x0
MOV dword ptr [RBP + -0x230],0x0
LAB_001a78fd:
MOV EAX,dword ptr [RBP + -0x23c]
MOV ECX,EAX
SHL RCX,0x20
MOV EAX,dword ptr [RBP + -0x230]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x220]
MOV qword ptr [RAX],RCX
JMP 0x001a791e
LAB_001a791e:
JMP 0x001a7920
LAB_001a7920:
MOV byte ptr [RBP + -0x211],0x0
LAB_001a7927:
MOV AL,byte ptr [RBP + -0x211]
MOV byte ptr [RBP + -0x255],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001a7954
MOV AL,byte ptr [RBP + -0x255]
ADD RSP,0x260
POP RBP
RET
LAB_001a7954:
CALL 0x0012c290
|
int8 translog_get_last_page_addr(int8 *param_1,int1 *param_2,char param_3)
{
int4 uVar1;
int4 uVar2;
int iVar3;
long lVar4;
int8 uVar5;
int *piVar6;
int8 uVar7;
long in_FS_OFFSET;
ulong local_240;
int local_238;
int1 local_219;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = (int4)((ulong)*param_1 >> 0x20);
lVar4 = get_logfile_by_number(uVar2);
uVar1 = key_file_translog;
if (lVar4 == 0) {
uVar5 = translog_filename_by_fileno(uVar2,local_218);
uVar7 = 0x10;
if (param_3 != '\0') {
uVar7 = 0;
}
iVar3 = inline_mysql_file_open
(uVar1,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xcdf,uVar5,0x80000,uVar7);
if (iVar3 < 0) {
piVar6 = __errno_location();
iVar3 = *piVar6;
piVar6 = (int *)_my_thread_var();
*piVar6 = iVar3;
local_219 = 1;
goto LAB_001a7927;
}
local_240 = inline_mysql_file_seek
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xce6,iVar3,0,2);
inline_mysql_file_close
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0xce7,iVar3,
0);
}
else {
local_240 = inline_mysql_file_seek
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xcd4,*(int4 *)(lVar4 + 0x18),0,2);
}
if (local_240 == 0xffffffffffffffff) {
local_219 = 1;
}
else {
if ((uint)local_240 < 0x2001) {
*param_2 = 0;
local_238 = 0;
}
else {
local_238 = (((uint)(local_240 >> 0xd) & 0x7ffff) - 1) * 0x2000;
*param_2 = (uint)local_240 == local_238 + 0x2000U;
}
*param_1 = CONCAT44(uVar2,local_238);
local_219 = 0;
}
LAB_001a7927:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_219);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
5,452 | mi_read_static_record | eloqsql/storage/myisam/mi_statrec.c | int _mi_read_static_record(register MI_INFO *info, register my_off_t pos,
register uchar *record)
{
int error;
if (pos != HA_OFFSET_ERROR)
{
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file <= pos &&
flush_io_cache(&info->rec_cache))
return(-1);
info->rec_cache.seek_not_done=1; /* We have done a seek */
error=info->s->file_read(info, record, info->s->base.reclength,
pos,MYF(MY_NABP)) != 0;
fast_mi_writeinfo(info);
if (! error)
{
if (!*record)
{
my_errno=HA_ERR_RECORD_DELETED;
return(1); /* Record is deleted */
}
info->update|= HA_STATE_AKTIV; /* Record is read */
return(0);
}
return(-1); /* Error on read */
}
fast_mi_writeinfo(info); /* No such record */
return(-1);
} | O3 | c | mi_read_static_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpq $-0x1, %rsi
je 0xa216f
movq %rdx, %r14
movq %rsi, %r15
testb $0x10, 0x1c8(%rbx)
je 0xa2110
cmpq %r15, 0x220(%rbx)
ja 0xa2110
leaq 0x220(%rbx), %rdi
movl $0x1, %esi
callq 0xb0e3d
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xa219e
movl $0x1, 0x300(%rbx)
movq (%rbx), %rax
movq 0x140(%rax), %rdx
movl $0x4, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq *0x2e0(%rax)
movq %rax, %r15
movq (%rbx), %rax
cmpl $0x0, 0x368(%rax)
jne 0xa2152
movq %rbx, %rdi
xorl %esi, %esi
callq 0x977c2
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
testq %r15, %r15
jne 0xa219e
cmpb $0x0, (%r14)
je 0xa218d
orb $0x2, 0x1d0(%rbx)
xorl %r12d, %r12d
jmp 0xa219e
movq (%rbx), %rax
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmpl $0x0, 0x368(%rax)
jne 0xa219e
movq %rbx, %rdi
xorl %esi, %esi
callq 0x977c2
jmp 0xa219e
callq 0xc14ee
movl $0x86, (%rax)
movl $0x1, %r12d
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_read_static_record:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
cmp rsi, 0FFFFFFFFFFFFFFFFh
jz loc_A216F
mov r14, rdx
mov r15, rsi
test byte ptr [rbx+1C8h], 10h
jz short loc_A2110
cmp [rbx+220h], r15
ja short loc_A2110
lea rdi, [rbx+220h]
mov esi, 1
call my_b_flush_io_cache
mov r12d, 0FFFFFFFFh
test eax, eax
jnz loc_A219E
loc_A2110:
mov dword ptr [rbx+300h], 1
mov rax, [rbx]
mov rdx, [rax+140h]
mov r8d, 4
mov rdi, rbx
mov rsi, r14
mov rcx, r15
call qword ptr [rax+2E0h]
mov r15, rax
mov rax, [rbx]
cmp dword ptr [rax+368h], 0
jnz short loc_A2152
mov rdi, rbx
xor esi, esi
call _mi_writeinfo
loc_A2152:
mov r12d, 0FFFFFFFFh
test r15, r15
jnz short loc_A219E
cmp byte ptr [r14], 0
jz short loc_A218D
or byte ptr [rbx+1D0h], 2
xor r12d, r12d
jmp short loc_A219E
loc_A216F:
mov rax, [rbx]
mov r12d, 0FFFFFFFFh
cmp dword ptr [rax+368h], 0
jnz short loc_A219E
mov rdi, rbx
xor esi, esi
call _mi_writeinfo
jmp short loc_A219E
loc_A218D:
call _my_thread_var
mov dword ptr [rax], 86h
mov r12d, 1
loc_A219E:
mov eax, r12d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_read_static_record(long long a1, unsigned long long a2, _BYTE *a3)
{
unsigned int v4; // r12d
long long v5; // r15
if ( a2 == -1LL )
{
v4 = -1;
if ( !*(_DWORD *)(*(_QWORD *)a1 + 872LL) )
mi_writeinfo((_QWORD *)a1, 0);
}
else if ( (*(_BYTE *)(a1 + 456) & 0x10) == 0
|| *(_QWORD *)(a1 + 544) > a2
|| (v4 = -1, !(unsigned int)my_b_flush_io_cache(a1 + 544, 1LL)) )
{
*(_DWORD *)(a1 + 768) = 1;
v5 = (*(long long ( **)(long long, _BYTE *, _QWORD, unsigned long long, long long))(*(_QWORD *)a1 + 736LL))(
a1,
a3,
*(_QWORD *)(*(_QWORD *)a1 + 320LL),
a2,
4LL);
if ( !*(_DWORD *)(*(_QWORD *)a1 + 872LL) )
mi_writeinfo((_QWORD *)a1, 0);
v4 = -1;
if ( !v5 )
{
if ( *a3 )
{
*(_BYTE *)(a1 + 464) |= 2u;
return 0;
}
else
{
*(_DWORD *)my_thread_var(a1) = 134;
return 1;
}
}
}
return v4;
}
| _mi_read_static_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
CMP RSI,-0x1
JZ 0x001a216f
MOV R14,RDX
MOV R15,RSI
TEST byte ptr [RBX + 0x1c8],0x10
JZ 0x001a2110
CMP qword ptr [RBX + 0x220],R15
JA 0x001a2110
LEA RDI,[RBX + 0x220]
MOV ESI,0x1
CALL 0x001b0e3d
MOV R12D,0xffffffff
TEST EAX,EAX
JNZ 0x001a219e
LAB_001a2110:
MOV dword ptr [RBX + 0x300],0x1
MOV RAX,qword ptr [RBX]
MOV RDX,qword ptr [RAX + 0x140]
MOV R8D,0x4
MOV RDI,RBX
MOV RSI,R14
MOV RCX,R15
CALL qword ptr [RAX + 0x2e0]
MOV R15,RAX
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x001a2152
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001977c2
LAB_001a2152:
MOV R12D,0xffffffff
TEST R15,R15
JNZ 0x001a219e
CMP byte ptr [R14],0x0
JZ 0x001a218d
OR byte ptr [RBX + 0x1d0],0x2
XOR R12D,R12D
JMP 0x001a219e
LAB_001a216f:
MOV RAX,qword ptr [RBX]
MOV R12D,0xffffffff
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x001a219e
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001977c2
JMP 0x001a219e
LAB_001a218d:
CALL 0x001c14ee
MOV dword ptr [RAX],0x86
MOV R12D,0x1
LAB_001a219e:
MOV EAX,R12D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 _mi_read_static_record(long *param_1,ulong param_2,char *param_3)
{
int iVar1;
long lVar2;
int4 *puVar3;
int8 uVar4;
if (param_2 == 0xffffffffffffffff) {
uVar4 = 0xffffffff;
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
}
else {
if ((((*(byte *)(param_1 + 0x39) & 0x10) != 0) && ((ulong)param_1[0x44] <= param_2)) &&
(iVar1 = my_b_flush_io_cache(param_1 + 0x44,1), iVar1 != 0)) {
return 0xffffffff;
}
*(int4 *)(param_1 + 0x60) = 1;
lVar2 = (**(code **)(*param_1 + 0x2e0))
(param_1,param_3,*(int8 *)(*param_1 + 0x140),param_2,4);
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
uVar4 = 0xffffffff;
if (lVar2 == 0) {
if (*param_3 == '\0') {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x86;
uVar4 = 1;
}
else {
*(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 2;
uVar4 = 0;
}
}
}
return uVar4;
}
|
|
5,453 | translog_max_lsn_to_header | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_max_lsn_to_header(File file, LSN lsn)
{
uchar lsn_buff[LSN_STORE_SIZE];
my_bool rc;
DBUG_ENTER("translog_max_lsn_to_header");
DBUG_PRINT("enter", ("File descriptor: %ld "
"lsn: " LSN_FMT,
(long) file,
LSN_IN_PARTS(lsn)));
lsn_store(lsn_buff, lsn);
rc= (my_pwrite(file, lsn_buff,
LSN_STORE_SIZE,
(LOG_HEADER_DATA_SIZE - LSN_STORE_SIZE),
log_write_flags) != 0 ||
mysql_file_sync(file, MYF(MY_WME)) != 0);
/*
We should not increase counter in case of error above, but it is so
unlikely that we can ignore this case
*/
translog_syncs++;
DBUG_RETURN(rc);
} | O0 | c | translog_max_lsn_to_header:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x14(%rbp)
movq %rsi, -0x20(%rbp)
jmp 0x596fe
jmp 0x59700
jmp 0x59702
movq -0x20(%rbp), %rax
sarq $0x20, %rax
movb %al, -0xf(%rbp)
movq -0x20(%rbp), %rax
sarq $0x20, %rax
shrl $0x8, %eax
movb %al, -0xe(%rbp)
movq -0x20(%rbp), %rax
sarq $0x20, %rax
shrl $0x10, %eax
movb %al, -0xd(%rbp)
jmp 0x5972b
leaq -0xf(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x30(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x20(%rbp), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
jmp 0x5974f
movl -0x14(%rbp), %edi
leaq -0xf(%rbp), %rsi
movl $0x7, %edx
movl $0x25, %ecx
movl $0x34, %r8d
callq 0xf4860
movq %rax, %rcx
movb $0x1, %al
cmpq $0x0, %rcx
movb %al, -0x31(%rbp)
jne 0x5979b
movl -0x14(%rbp), %edx
leaq 0xf854b(%rip), %rdi # 0x151cce
movl $0x4a9, %esi # imm = 0x4A9
movl $0x10, %ecx
callq 0x59160
cmpl $0x0, %eax
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x21(%rbp)
movq 0x41ea0b(%rip), %rax # 0x4781b8
addq $0x1, %rax
movq %rax, 0x41ea00(%rip) # 0x4781b8
movb -0x21(%rbp), %al
movb %al, -0x32(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x597d9
movb -0x32(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
callq 0x2a270
nop
| translog_max_lsn_to_header:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_14], edi
mov [rbp+var_20], rsi
jmp short $+2
loc_596FE:
jmp short $+2
loc_59700:
jmp short $+2
loc_59702:
mov rax, [rbp+var_20]
sar rax, 20h
mov [rbp+var_F], al
mov rax, [rbp+var_20]
sar rax, 20h
shr eax, 8
mov [rbp+var_E], al
mov rax, [rbp+var_20]
sar rax, 20h
shr eax, 10h
mov [rbp+var_D], al
jmp short $+2
loc_5972B:
lea rax, [rbp+var_F]
add rax, 3
mov [rbp+var_30], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_20]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax], ecx
jmp short $+2
loc_5974F:
mov edi, [rbp+var_14]
lea rsi, [rbp+var_F]
mov edx, 7
mov ecx, 25h ; '%'
mov r8d, 34h ; '4'
call my_pwrite
mov rcx, rax
mov al, 1
cmp rcx, 0
mov [rbp+var_31], al
jnz short loc_5979B
mov edx, [rbp+var_14]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 4A9h
mov ecx, 10h
call inline_mysql_file_sync_3
cmp eax, 0
setnz al
mov [rbp+var_31], al
loc_5979B:
mov al, [rbp+var_31]
and al, 1
movzx eax, al
mov [rbp+var_21], al
mov rax, cs:translog_syncs
add rax, 1
mov cs:translog_syncs, rax
mov al, [rbp+var_21]
mov [rbp+var_32], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_597D9
mov al, [rbp+var_32]
add rsp, 40h
pop rbp
retn
loc_597D9:
call ___stack_chk_fail
| bool translog_max_lsn_to_header(unsigned int a1, long long a2)
{
bool v3; // [rsp+Fh] [rbp-31h]
__int16 v4; // [rsp+31h] [rbp-Fh] BYREF
char v5; // [rsp+33h] [rbp-Dh]
int v6; // [rsp+34h] [rbp-Ch]
unsigned long long v7; // [rsp+38h] [rbp-8h]
v7 = __readfsqword(0x28u);
v4 = WORD2(a2);
v5 = BYTE6(a2);
v6 = a2;
v3 = 1;
if ( !my_pwrite(a1, &v4, 7LL, 37LL) )
v3 = (unsigned int)inline_mysql_file_sync_3(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x4A9u,
a1,
16LL) != 0;
++translog_syncs;
return v3;
}
| translog_max_lsn_to_header:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x14],EDI
MOV qword ptr [RBP + -0x20],RSI
JMP 0x001596fe
LAB_001596fe:
JMP 0x00159700
LAB_00159700:
JMP 0x00159702
LAB_00159702:
MOV RAX,qword ptr [RBP + -0x20]
SAR RAX,0x20
MOV byte ptr [RBP + -0xf],AL
MOV RAX,qword ptr [RBP + -0x20]
SAR RAX,0x20
SHR EAX,0x8
MOV byte ptr [RBP + -0xe],AL
MOV RAX,qword ptr [RBP + -0x20]
SAR RAX,0x20
SHR EAX,0x10
MOV byte ptr [RBP + -0xd],AL
JMP 0x0015972b
LAB_0015972b:
LEA RAX,[RBP + -0xf]
ADD RAX,0x3
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x20]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
JMP 0x0015974f
LAB_0015974f:
MOV EDI,dword ptr [RBP + -0x14]
LEA RSI,[RBP + -0xf]
MOV EDX,0x7
MOV ECX,0x25
MOV R8D,0x34
CALL 0x001f4860
MOV RCX,RAX
MOV AL,0x1
CMP RCX,0x0
MOV byte ptr [RBP + -0x31],AL
JNZ 0x0015979b
MOV EDX,dword ptr [RBP + -0x14]
LEA RDI,[0x251cce]
MOV ESI,0x4a9
MOV ECX,0x10
CALL 0x00159160
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x31],AL
LAB_0015979b:
MOV AL,byte ptr [RBP + -0x31]
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x21],AL
MOV RAX,qword ptr [0x005781b8]
ADD RAX,0x1
MOV qword ptr [0x005781b8],RAX
MOV AL,byte ptr [RBP + -0x21]
MOV byte ptr [RBP + -0x32],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001597d9
MOV AL,byte ptr [RBP + -0x32]
ADD RSP,0x40
POP RBP
RET
LAB_001597d9:
CALL 0x0012a270
|
int8 translog_max_lsn_to_header(int4 param_1,int8 param_2)
{
int iVar1;
long lVar2;
long in_FS_OFFSET;
bool local_39;
int1 local_17;
int1 local_16;
int1 local_15;
int4 local_14;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_17 = (int1)((ulong)param_2 >> 0x20);
local_16 = (int1)((ulong)param_2 >> 0x28);
local_15 = (int1)((ulong)param_2 >> 0x30);
local_14 = (int4)param_2;
lVar2 = my_pwrite(param_1,&local_17,7,0x25,0x34);
local_39 = true;
if (lVar2 == 0) {
iVar1 = inline_mysql_file_sync
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x4a9,param_1,0x10);
local_39 = iVar1 != 0;
}
translog_syncs = translog_syncs + 1;
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_39);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
5,454 | my_numcells_eucjp | eloqsql/strings/ctype-ujis.c | static
size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b == 0x8E)
{
clen++;
b+= 2;
}
else if (*b == 0x8F)
{
clen+= 2;
b+= 3;
}
else if (*b & 0x80)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O0 | c | my_numcells_eucjp:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%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 0xc1092
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x8e, %eax
jne 0xc101e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0xc108d
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x8f, %eax
jne 0xc1046
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x28(%rbp)
jmp 0xc108b
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xc1071
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0xc1089
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xc108b
jmp 0xc108d
jmp 0xc0fe8
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| my_numcells_eucjp:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
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_C0FE8:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb loc_C1092
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 8Eh
jnz short loc_C101E
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_C108D
loc_C101E:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 8Fh
jnz short loc_C1046
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 3
mov [rbp+var_28], rax
jmp short loc_C108B
loc_C1046:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
and eax, 80h
cmp eax, 0
jz short loc_C1071
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_C1089
loc_C1071:
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_C1089:
jmp short $+2
loc_C108B:
jmp short $+2
loc_C108D:
jmp loc_C0FE8
loc_C1092:
mov rax, [rbp+var_20]
pop rbp
retn
| long long my_numcells_eucjp(long long a1, _BYTE *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( (unsigned __int8)*a2 == 142 )
{
++v5;
a2 += 2;
}
else if ( (unsigned __int8)*a2 == 143 )
{
v5 += 2LL;
a2 += 3;
}
else if ( (*a2 & 0x80) != 0 )
{
v5 += 2LL;
a2 += 2;
}
else
{
++v5;
++a2;
}
}
return v5;
}
| my_numcells_eucjp:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -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_001c0fe8:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001c1092
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x8e
JNZ 0x001c101e
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001c108d
LAB_001c101e:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x8f
JNZ 0x001c1046
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x3
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001c108b
LAB_001c1046:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001c1071
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 0x001c1089
LAB_001c1071:
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_001c1089:
JMP 0x001c108b
LAB_001c108b:
JMP 0x001c108d
LAB_001c108d:
JMP 0x001c0fe8
LAB_001c1092:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_eucjp(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 == 0x8e) {
local_28 = local_28 + 1;
local_30 = local_30 + 2;
}
else if (*local_30 == 0x8f) {
local_28 = local_28 + 2;
local_30 = local_30 + 3;
}
else if ((*local_30 & 0x80) == 0) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
return local_28;
}
|
|
5,455 | mysql_local_infile_error | eloqsql/libmariadb/libmariadb/ma_loaddata.c | static
int mysql_local_infile_error(void *ptr, char *error_buf, unsigned int error_buf_len)
{
MYSQL_INFILE_INFO *info = (MYSQL_INFILE_INFO *)ptr;
if (info) {
ma_strmake(error_buf, info->error_msg, error_buf_len);
return(info->error_no);
}
ma_strmake(error_buf, "Unknown error", error_buf_len);
return(CR_UNKNOWN_ERROR);
} | O0 | c | mysql_local_infile_error:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x35564
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq $0xc, %rsi
movl -0x1c(%rbp), %eax
movl %eax, %edx
callq 0x39d40
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x35580
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, %edx
leaq 0x20c53(%rip), %rsi # 0x561c7
callq 0x39d40
movl $0x7d0, -0x4(%rbp) # imm = 0x7D0
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| mysql_local_infile_error:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jz short loc_35564
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_28]
add rsi, 0Ch
mov eax, [rbp+var_1C]
mov edx, eax
call ma_strmake
mov rax, [rbp+var_28]
mov eax, [rax+8]
mov [rbp+var_4], eax
jmp short loc_35580
loc_35564:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_1C]
mov edx, eax
lea rsi, aUnknownError; "Unknown error"
call ma_strmake
mov [rbp+var_4], 7D0h
loc_35580:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_local_infile_error(long long a1, long long a2, unsigned int a3)
{
if ( a1 )
{
ma_strmake(a2, a1 + 12, a3);
return *(unsigned int *)(a1 + 8);
}
else
{
ma_strmake(a2, "Unknown error", a3);
return 2000;
}
}
| mysql_local_infile_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00135564
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x28]
ADD RSI,0xc
MOV EAX,dword ptr [RBP + -0x1c]
MOV EDX,EAX
CALL 0x00139d40
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00135580
LAB_00135564:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
MOV EDX,EAX
LEA RSI,[0x1561c7]
CALL 0x00139d40
MOV dword ptr [RBP + -0x4],0x7d0
LAB_00135580:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_local_infile_error(long param_1,int8 param_2,int4 param_3)
{
int4 local_c;
if (param_1 == 0) {
ma_strmake(param_2,"Unknown error",param_3);
local_c = 2000;
}
else {
ma_strmake(param_2,param_1 + 0xc,param_3);
local_c = *(int4 *)(param_1 + 8);
}
return local_c;
}
|
|
5,456 | crypto_sign_ed25519_ref10_fe_neg | eloqsql/libmariadb/plugins/auth/ref10/fe_neg.c | void fe_neg(fe h,const fe f)
{
crypto_int32 f0 = f[0];
crypto_int32 f1 = f[1];
crypto_int32 f2 = f[2];
crypto_int32 f3 = f[3];
crypto_int32 f4 = f[4];
crypto_int32 f5 = f[5];
crypto_int32 f6 = f[6];
crypto_int32 f7 = f[7];
crypto_int32 f8 = f[8];
crypto_int32 f9 = f[9];
crypto_int32 h0 = -f0;
crypto_int32 h1 = -f1;
crypto_int32 h2 = -f2;
crypto_int32 h3 = -f3;
crypto_int32 h4 = -f4;
crypto_int32 h5 = -f5;
crypto_int32 h6 = -f6;
crypto_int32 h7 = -f7;
crypto_int32 h8 = -f8;
crypto_int32 h9 = -f9;
h[0] = h0;
h[1] = h1;
h[2] = h2;
h[3] = h3;
h[4] = h4;
h[5] = h5;
h[6] = h6;
h[7] = h7;
h[8] = h8;
h[9] = h9;
} | O0 | c | crypto_sign_ed25519_ref10_fe_neg:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x38(%rbp)
xorl %eax, %eax
subl -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
xorl %eax, %eax
subl -0x18(%rbp), %eax
movl %eax, -0x40(%rbp)
xorl %eax, %eax
subl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
xorl %eax, %eax
subl -0x20(%rbp), %eax
movl %eax, -0x48(%rbp)
xorl %eax, %eax
subl -0x24(%rbp), %eax
movl %eax, -0x4c(%rbp)
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl %eax, -0x50(%rbp)
xorl %eax, %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x54(%rbp)
xorl %eax, %eax
subl -0x30(%rbp), %eax
movl %eax, -0x58(%rbp)
xorl %eax, %eax
subl -0x34(%rbp), %eax
movl %eax, -0x5c(%rbp)
xorl %eax, %eax
subl -0x38(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x3c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
movl -0x40(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x44(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0x48(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
movl -0x4c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0x50(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x54(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0x58(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl -0x5c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20(%rax)
movl -0x60(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x24(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| crypto_sign_ed25519_ref10_fe_neg:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov eax, [rax]
mov [rbp+var_14], eax
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov [rbp+var_20], eax
mov rax, [rbp+var_10]
mov eax, [rax+10h]
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov [rbp+var_28], eax
mov rax, [rbp+var_10]
mov eax, [rax+18h]
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
mov eax, [rax+1Ch]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov eax, [rax+20h]
mov [rbp+var_34], eax
mov rax, [rbp+var_10]
mov eax, [rax+24h]
mov [rbp+var_38], eax
xor eax, eax
sub eax, [rbp+var_14]
mov [rbp+var_3C], eax
xor eax, eax
sub eax, [rbp+var_18]
mov [rbp+var_40], eax
xor eax, eax
sub eax, [rbp+var_1C]
mov [rbp+var_44], eax
xor eax, eax
sub eax, [rbp+var_20]
mov [rbp+var_48], eax
xor eax, eax
sub eax, [rbp+var_24]
mov [rbp+var_4C], eax
xor eax, eax
sub eax, [rbp+var_28]
mov [rbp+var_50], eax
xor eax, eax
sub eax, [rbp+var_2C]
mov [rbp+var_54], eax
xor eax, eax
sub eax, [rbp+var_30]
mov [rbp+var_58], eax
xor eax, eax
sub eax, [rbp+var_34]
mov [rbp+var_5C], eax
xor eax, eax
sub eax, [rbp+var_38]
mov [rbp+var_60], eax
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_8]
mov [rax], ecx
mov ecx, [rbp+var_40]
mov rax, [rbp+var_8]
mov [rax+4], ecx
mov ecx, [rbp+var_44]
mov rax, [rbp+var_8]
mov [rax+8], ecx
mov ecx, [rbp+var_48]
mov rax, [rbp+var_8]
mov [rax+0Ch], ecx
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_8]
mov [rax+10h], ecx
mov ecx, [rbp+var_50]
mov rax, [rbp+var_8]
mov [rax+14h], ecx
mov ecx, [rbp+var_54]
mov rax, [rbp+var_8]
mov [rax+18h], ecx
mov ecx, [rbp+var_58]
mov rax, [rbp+var_8]
mov [rax+1Ch], ecx
mov ecx, [rbp+var_5C]
mov rax, [rbp+var_8]
mov [rax+20h], ecx
mov ecx, [rbp+var_60]
mov rax, [rbp+var_8]
mov [rax+24h], ecx
pop rbp
retn
| _DWORD * crypto_sign_ed25519_ref10_fe_neg(_DWORD *a1, _DWORD *a2)
{
_DWORD *result; // rax
int v3; // [rsp+4h] [rbp-5Ch]
int v4; // [rsp+8h] [rbp-58h]
int v5; // [rsp+Ch] [rbp-54h]
int v6; // [rsp+10h] [rbp-50h]
int v7; // [rsp+14h] [rbp-4Ch]
int v8; // [rsp+18h] [rbp-48h]
int v9; // [rsp+1Ch] [rbp-44h]
int v10; // [rsp+20h] [rbp-40h]
int v11; // [rsp+28h] [rbp-38h]
v11 = a2[9];
v10 = -a2[1];
v9 = -a2[2];
v8 = -a2[3];
v7 = -a2[4];
v6 = -a2[5];
v5 = -a2[6];
v4 = -a2[7];
v3 = -a2[8];
*a1 = -*a2;
a1[1] = v10;
a1[2] = v9;
a1[3] = v8;
a1[4] = v7;
a1[5] = v6;
a1[6] = v5;
a1[7] = v4;
a1[8] = v3;
result = a1;
a1[9] = -v11;
return result;
}
| crypto_sign_ed25519_ref10_fe_neg:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x18]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x20]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x24]
MOV dword ptr [RBP + -0x38],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x3c],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x40],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x44],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x48],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4c],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x50],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x54],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x58],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x5c],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x60],EAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x4],ECX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x8],ECX
MOV ECX,dword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc],ECX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x10],ECX
MOV ECX,dword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x14],ECX
MOV ECX,dword ptr [RBP + -0x54]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x18],ECX
MOV ECX,dword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x1c],ECX
MOV ECX,dword ptr [RBP + -0x5c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x20],ECX
MOV ECX,dword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x24],ECX
POP RBP
RET
|
void crypto_sign_ed25519_ref10_fe_neg(int *param_1,int *param_2)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
iVar1 = param_2[1];
iVar2 = param_2[2];
iVar3 = param_2[3];
iVar4 = param_2[4];
iVar5 = param_2[5];
iVar6 = param_2[6];
iVar7 = param_2[7];
iVar8 = param_2[8];
iVar9 = param_2[9];
*param_1 = -*param_2;
param_1[1] = -iVar1;
param_1[2] = -iVar2;
param_1[3] = -iVar3;
param_1[4] = -iVar4;
param_1[5] = -iVar5;
param_1[6] = -iVar6;
param_1[7] = -iVar7;
param_1[8] = -iVar8;
param_1[9] = -iVar9;
return;
}
|
|
5,457 | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*) | monkey531[P]llama/common/json.hpp | static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x84d28(%rip), %rsi # 0xf5d3b
leaq 0x84d31(%rip), %rdx # 0xf5d4b
leaq 0x28(%rsp), %rdi
callq 0x28a68
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x6af1a
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1bdd0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1b270
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1b270
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1b270
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x710bd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x710d8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x710ef
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6b188
leaq 0xc107b(%rip), %rax # 0x132180
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x71123
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x711b1
movq 0x18(%rsp), %rsi
jmp 0x711a9
movq %rax, %rbx
jmp 0x7119a
movq %rax, %rbx
jmp 0x711b1
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x71173
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1c741
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x711b1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b910
movq %rbx, %rdi
callq 0x1bff0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aInvalidIterato; "invalid_iterator"
lea rdx, aInvalidIterato+10h; ""
lea rdi, [rsp+0C8h+var_A0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_710BD
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_710BD:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_710D8
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_710D8:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_710EF
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_710EF:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_71123
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_71123:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_711B1
mov rsi, [rsp+arg_10]
jmp short loc_711A9
mov rbx, rax
jmp short loc_7119A
mov rbx, rax
jmp short loc_711B1
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_71173
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_71173:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ__cold_1
mov rbx, [r12]
loc_7119A:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_711B1
mov rsi, [rsp+arg_30]
loc_711A9:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_711B1:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>(v7, "invalid_iterator", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_0017100c:
LEA RSI,[0x1f5d3b]
LEA RDX,[0x1f5d4b]
LEA RDI,[RSP + 0x28]
CALL 0x00128a68
LAB_00171024:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0016af1a
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_00171063:
LEA RDI,[RSP + 0x8]
CALL 0x0011bdd0
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x0011b270
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x0011b270
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0011b270
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001710bd
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011b910
LAB_001710bd:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001710d8
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011b910
LAB_001710d8:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001710ef
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b910
LAB_001710ef:
MOV RDX,qword ptr [RSP + 0x8]
LAB_001710f4:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0016b188
LAB_001710fe:
LEA RAX,[0x232180]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00171123
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b910
LAB_00171123:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 0017100c to 00171023 has its CatchHandler @ 00171151 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"invalid_iterator","");
/* try { // try from 00171024 to 00171034 has its CatchHandler @ 0017114c */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 00171063 to 001710a5 has its CatchHandler @ 00171156 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 001710f4 to 001710fd has its CatchHandler @ 00171138 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_00232190;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
|
|
5,458 | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*) | monkey531[P]llama/common/json.hpp | static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x4a226(%rip), %rsi # 0xb6d4d
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2a75e
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x4e28c
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x52454
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x4e223
leaq 0x8(%rsp), %rdi
callq 0x25258
leaq 0x48(%rsp), %rdi
callq 0x25258
leaq 0x28(%rsp), %rdi
callq 0x25258
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x535e4
leaq 0x68(%rsp), %rdi
callq 0x25258
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x6cbe3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x25258
jmp 0x6cbcf
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x25258
jmp 0x6cbde
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x25258
jmp 0x6cbed
movq %rax, %rbx
movq %rbx, %rdi
callq 0x24fe0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aInvalidIterato; "invalid_iterator"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::invalid_iterator::invalid_iterator(int,char const*)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_6CBE3
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6CBCF
mov rbx, rax
loc_6CBCF:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6CBDE
mov rbx, rax
loc_6CBDE:
lea rdi, [rsp+arg_20]; void *
loc_6CBE3:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6CBED
mov rbx, rax
loc_6CBED:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::invalid_iterator * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::invalid_iterator *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
char *v8[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"invalid_iterator");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::invalid_iterator(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_0016cb20:
LEA RSI,[0x1b6d4d]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0012a75e
LAB_0016cb36:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0014e28c
LAB_0016cb47:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x00152454
LAB_0016cb54:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0014e223
LEA RDI,[RSP + 0x8]
CALL 0x00125258
LEA RDI,[RSP + 0x48]
CALL 0x00125258
LEA RDI,[RSP + 0x28]
CALL 0x00125258
MOV RDX,qword ptr [RSP + 0x68]
LAB_0016cb8e:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001535e4
LAB_0016cb98:
LEA RDI,[RSP + 0x68]
CALL 0x00125258
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
invalid_iterator *
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(invalid_iterator *param_1,int param_2,string *param_3)
{
allocator local_a1;
string local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 0016cb20 to 0016cb35 has its CatchHandler @ 0016cbea */
std::__cxx11::string::string<std::allocator<char>>(local_80,"invalid_iterator",&local_a1);
/* try { // try from 0016cb36 to 0016cb46 has its CatchHandler @ 0016cbdb */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 0016cb47 to 0016cb53 has its CatchHandler @ 0016cbcc */
nlohmann::json_abi_v3_11_3::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_a0);
/* try { // try from 0016cb54 to 0016cb6a has its CatchHandler @ 0016cbbd */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,local_a0,param_3);
std::__cxx11::string::~string(local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 0016cb8e to 0016cb97 has its CatchHandler @ 0016cbb3 */
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::invalid_iterator
(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
|
|
5,459 | inline_mysql_file_create_with_symlink | eloqsql/include/mysql/psi/mysql_file.h | static inline File
inline_mysql_file_create_with_symlink(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *linkname, const char *filename, int create_flags,
int access_flags, myf flags)
{
File file;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_CREATE, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
return file;
} | O0 | c | inline_mysql_file_create_with_symlink:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
leaq 0x275859(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x80(%rbp), %rdi
xorl %edx, %edx
leaq -0x38(%rbp), %r8
callq *%rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%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 0x4b99a
leaq 0x275811(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl 0x10(%rbp), %ecx
movq 0x18(%rbp), %r8
callq 0xf67e0
movl %eax, -0x30(%rbp)
leaq 0x2757d9(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x200(%rax), %rax
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
callq *%rax
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x4b9ba
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl 0x10(%rbp), %ecx
movq 0x18(%rbp), %r8
callq 0xf67e0
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_create_with_symlink:
push rbp
mov rbp, rsp
sub rsp, 80h
mov rax, [rbp+arg_8]
mov eax, [rbp+arg_0]
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], r9d
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_28]
lea rdi, [rbp+var_80]
xor edx, edx
lea r8, [rbp+var_38]
call rax
mov [rbp+var_38], rax
cmp [rbp+var_38], 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_4B99A
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov edx, [rbp+var_2C]
mov ecx, [rbp+arg_0]
mov r8, [rbp+arg_8]
call my_create_with_symlink
mov [rbp+var_30], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+200h]
mov rdi, [rbp+var_38]
mov esi, [rbp+var_30]
call rax
mov eax, [rbp+var_30]
mov [rbp+var_4], eax
jmp short loc_4B9BA
loc_4B99A:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov edx, [rbp+var_2C]
mov ecx, [rbp+arg_0]
mov r8, [rbp+arg_8]
call my_create_with_symlink
mov [rbp+var_30], eax
mov eax, [rbp+var_30]
mov [rbp+var_4], eax
loc_4B9BA:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
| long long inline_mysql_file_create_with_symlink(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
long long a5,
unsigned int a6,
unsigned int a7,
long long a8)
{
_BYTE v9[72]; // [rsp+0h] [rbp-80h] BYREF
long long v10; // [rsp+48h] [rbp-38h] BYREF
unsigned int v11; // [rsp+50h] [rbp-30h]
unsigned int v12; // [rsp+54h] [rbp-2Ch]
long long v13; // [rsp+58h] [rbp-28h]
long long v14; // [rsp+60h] [rbp-20h]
unsigned int v15; // [rsp+6Ch] [rbp-14h]
long long v16; // [rsp+70h] [rbp-10h]
unsigned int v17; // [rsp+78h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long *))PSI_server[41])(v9, a1, 0LL, a5, &v10);
if ( v10 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v10, v16, v15);
v11 = my_create_with_symlink(v14, v13, v12, a7, a8);
((void ( *)(long long, _QWORD))PSI_server[64])(v10, v11);
}
else
{
return (unsigned int)my_create_with_symlink(v14, v13, v12, a7, a8);
}
return v11;
}
| inline_mysql_file_create_with_symlink:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV RAX,qword ptr [RBP + 0x18]
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],R9D
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0x80]
XOR EDX,EDX
LEA R8,[RBP + -0x38]
CALL RAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],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 0x0014b99a
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + 0x10]
MOV R8,qword ptr [RBP + 0x18]
CALL 0x001f67e0
MOV dword ptr [RBP + -0x30],EAX
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0x30]
CALL RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0014b9ba
LAB_0014b99a:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + 0x10]
MOV R8,qword ptr [RBP + 0x18]
CALL 0x001f67e0
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x4],EAX
LAB_0014b9ba:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_create_with_symlink
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int8 param_5,int4 param_6,int4 param_7,int8 param_8)
{
int1 local_88 [72];
long local_40;
int4 local_38;
int4 local_34;
int8 local_30;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_34 = param_6;
local_30 = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0,param_5,&local_40);
if (local_40 == 0) {
local_c = my_create_with_symlink(local_28,local_30,local_34,param_7,param_8);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_40,local_18,local_1c);
local_38 = my_create_with_symlink(local_28,local_30,local_34,param_7,param_8);
(**(code **)(PSI_server + 0x200))(local_40,local_38);
local_c = local_38;
}
return local_c;
}
|
|
5,460 | vector_f_add_generic | tsotchke[P]eshkol/src/core/utils/vector.c | static void vector_f_add_generic(VectorF* result, const VectorF* a, const VectorF* b) {
assert(result != NULL);
assert(a != NULL);
assert(b != NULL);
assert(a->dim == b->dim);
assert(result->dim >= a->dim);
for (size_t i = 0; i < a->dim; i++) {
result->data[i] = a->data[i] + b->data[i];
}
} | O0 | c | vector_f_add_generic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x466d
jmp 0x468c
leaq 0x8c12(%rip), %rdi # 0xd286
leaq 0x8d45(%rip), %rsi # 0xd3c0
movl $0xc8, %edx
leaq 0x969e(%rip), %rcx # 0xdd25
callq 0x10b0
cmpq $0x0, -0x10(%rbp)
je 0x4695
jmp 0x46b4
leaq 0x7de2(%rip), %rdi # 0xc47e
leaq 0x8d1d(%rip), %rsi # 0xd3c0
movl $0xc9, %edx
leaq 0x9676(%rip), %rcx # 0xdd25
callq 0x10b0
cmpq $0x0, -0x18(%rbp)
je 0x46bd
jmp 0x46dc
leaq 0x7e35(%rip), %rdi # 0xc4f9
leaq 0x8cf5(%rip), %rsi # 0xd3c0
movl $0xca, %edx
leaq 0x964e(%rip), %rcx # 0xdd25
callq 0x10b0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x46f0
jmp 0x470f
leaq 0x8f27(%rip), %rdi # 0xd61e
leaq 0x8cc2(%rip), %rsi # 0xd3c0
movl $0xcb, %edx
leaq 0x961b(%rip), %rcx # 0xdd25
callq 0x10b0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jb 0x4723
jmp 0x4742
leaq 0x9642(%rip), %rdi # 0xdd6c
leaq 0x8c8f(%rip), %rsi # 0xd3c0
movl $0xcc, %edx
leaq 0x95e8(%rip), %rcx # 0xdd25
callq 0x10b0
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x478d
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
addss (%rax,%rcx,4), %xmm0
movq -0x8(%rbp), %rax
movq -0x20(%rbp), %rcx
movss %xmm0, (%rax,%rcx,4)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x474a
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| vector_f_add_generic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
cmp [rbp+var_8], 0
jz short loc_466D
jmp short loc_468C
loc_466D:
lea rdi, aResultNull; "result != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0C8h
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
call ___assert_fail
loc_468C:
cmp [rbp+var_10], 0
jz short loc_4695
jmp short loc_46B4
loc_4695:
lea rdi, aArenaNull+4; "a != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0C9h
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
call ___assert_fail
loc_46B4:
cmp [rbp+var_18], 0
jz short loc_46BD
jmp short loc_46DC
loc_46BD:
lea rdi, aBNull; "b != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0CAh
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
call ___assert_fail
loc_46DC:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_18]
cmp rax, [rcx+10h]
jnz short loc_46F0
jmp short loc_470F
loc_46F0:
lea rdi, aADimBDim; "a->dim == b->dim"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0CBh
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
call ___assert_fail
loc_470F:
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jb short loc_4723
jmp short loc_4742
loc_4723:
lea rdi, aResultDimADim; "result->dim >= a->dim"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0CCh
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
call ___assert_fail
loc_4742:
mov [rbp+var_20], 0
loc_474A:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jnb short loc_478D
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
movss xmm0, dword ptr [rax+rcx*4]
mov rax, [rbp+var_18]
mov rcx, [rbp+var_20]
addss xmm0, dword ptr [rax+rcx*4]
mov rax, [rbp+var_8]
mov rcx, [rbp+var_20]
movss dword ptr [rax+rcx*4], xmm0
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_474A
loc_478D:
add rsp, 20h
pop rbp
retn
| unsigned long long vector_f_add_generic(long long a1, long long a2, long long a3)
{
unsigned long long result; // rax
unsigned long long i; // [rsp+0h] [rbp-20h]
if ( !a1 )
__assert_fail(
"result != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
200LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( !a2 )
__assert_fail(
"a != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
201LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( !a3 )
__assert_fail(
"b != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
202LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( *(_QWORD *)(a2 + 16) != *(_QWORD *)(a3 + 16) )
__assert_fail(
"a->dim == b->dim",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
203LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( *(_QWORD *)(a1 + 16) < *(_QWORD *)(a2 + 16) )
__assert_fail(
"result->dim >= a->dim",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
204LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= *(_QWORD *)(a2 + 16) )
break;
*(float *)(a1 + 4 * i) = *(float *)(a2 + 4 * i) + *(float *)(a3 + 4 * i);
}
return result;
}
| vector_f_add_generic:
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
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0010466d
JMP 0x0010468c
LAB_0010466d:
LEA RDI,[0x10d262]
LEA RSI,[0x10d398]
MOV EDX,0xc8
LEA RCX,[0x10dceb]
CALL 0x001010b0
LAB_0010468c:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00104695
JMP 0x001046b4
LAB_00104695:
LEA RDI,[0x10c46c]
LEA RSI,[0x10d398]
MOV EDX,0xc9
LEA RCX,[0x10dceb]
CALL 0x001010b0
LAB_001046b4:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001046bd
JMP 0x001046dc
LAB_001046bd:
LEA RDI,[0x10c4e7]
LEA RSI,[0x10d398]
MOV EDX,0xca
LEA RCX,[0x10dceb]
CALL 0x001010b0
LAB_001046dc:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x001046f0
JMP 0x0010470f
LAB_001046f0:
LEA RDI,[0x10d5e4]
LEA RSI,[0x10d398]
MOV EDX,0xcb
LEA RCX,[0x10dceb]
CALL 0x001010b0
LAB_0010470f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JC 0x00104723
JMP 0x00104742
LAB_00104723:
LEA RDI,[0x10dd32]
LEA RSI,[0x10d398]
MOV EDX,0xcc
LEA RCX,[0x10dceb]
CALL 0x001010b0
LAB_00104742:
MOV qword ptr [RBP + -0x20],0x0
LAB_0010474a:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JNC 0x0010478d
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
ADDSS XMM0,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
MOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0010474a
LAB_0010478d:
ADD RSP,0x20
POP RBP
RET
|
void vector_f_add_generic(long param_1,long param_2,long param_3)
{
ulong local_28;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("result != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c"
,200,"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
}
if (param_2 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("a != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",0xc9
,"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
}
if (param_3 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("b != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",0xca
,"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
}
if (*(long *)(param_2 + 0x10) == *(long *)(param_3 + 0x10)) {
if (*(ulong *)(param_2 + 0x10) <= *(ulong *)(param_1 + 0x10)) {
for (local_28 = 0; local_28 < *(ulong *)(param_2 + 0x10); local_28 = local_28 + 1) {
*(float *)(param_1 + local_28 * 4) =
*(float *)(param_2 + local_28 * 4) + *(float *)(param_3 + local_28 * 4);
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("result->dim >= a->dim",
"/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c",0xcc,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
}
/* WARNING: Subroutine does not return */
__assert_fail("a->dim == b->dim","/workspace/llm4binary/github2025/eshkol/src/core/utils/vector.c"
,0xcb,"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
}
|
|
5,461 | vector_f_add_generic | tsotchke[P]eshkol/src/core/utils/vector.c | static void vector_f_add_generic(VectorF* result, const VectorF* a, const VectorF* b) {
assert(result != NULL);
assert(a != NULL);
assert(b != NULL);
assert(a->dim == b->dim);
assert(result->dim >= a->dim);
for (size_t i = 0; i < a->dim; i++) {
result->data[i] = a->data[i] + b->data[i];
}
} | O3 | c | vector_f_add_generic:
pushq %rax
testq %rdi, %rdi
je 0x3789
testq %rsi, %rsi
je 0x37a8
testq %rdx, %rdx
je 0x37c7
movq 0x10(%rsi), %rax
cmpq 0x10(%rdx), %rax
jne 0x37e6
cmpq %rax, 0x10(%rdi)
jb 0x3805
testq %rax, %rax
je 0x3787
xorl %ecx, %ecx
movss (%rsi,%rcx,4), %xmm0
addss (%rdx,%rcx,4), %xmm0
movss %xmm0, (%rdi,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x3770
popq %rax
retq
leaq 0x6b96(%rip), %rdi # 0xa326
leaq 0x6d29(%rip), %rsi # 0xa4c0
leaq 0x7687(%rip), %rcx # 0xae25
movl $0xc8, %edx
callq 0x10b0
leaq 0x5cbc(%rip), %rdi # 0x946b
leaq 0x6d0a(%rip), %rsi # 0xa4c0
leaq 0x7668(%rip), %rcx # 0xae25
movl $0xc9, %edx
callq 0x10b0
leaq 0x5d18(%rip), %rdi # 0x94e6
leaq 0x6ceb(%rip), %rsi # 0xa4c0
leaq 0x7649(%rip), %rcx # 0xae25
movl $0xca, %edx
callq 0x10b0
leaq 0x6f31(%rip), %rdi # 0xa71e
leaq 0x6ccc(%rip), %rsi # 0xa4c0
leaq 0x762a(%rip), %rcx # 0xae25
movl $0xcb, %edx
callq 0x10b0
leaq 0x7660(%rip), %rdi # 0xae6c
leaq 0x6cad(%rip), %rsi # 0xa4c0
leaq 0x760b(%rip), %rcx # 0xae25
movl $0xcc, %edx
callq 0x10b0
| vector_f_add_generic:
push rax
test rdi, rdi
jz short loc_3789
test rsi, rsi
jz short loc_37A8
test rdx, rdx
jz short loc_37C7
mov rax, [rsi+10h]
cmp rax, [rdx+10h]
jnz loc_37E6
cmp [rdi+10h], rax
jb loc_3805
test rax, rax
jz short loc_3787
xor ecx, ecx
loc_3770:
movss xmm0, dword ptr [rsi+rcx*4]
addss xmm0, dword ptr [rdx+rcx*4]
movss dword ptr [rdi+rcx*4], xmm0
inc rcx
cmp rax, rcx
jnz short loc_3770
loc_3787:
pop rax
retn
loc_3789:
lea rdi, aResultNull; "result != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
mov edx, 0C8h
call ___assert_fail
loc_37A8:
lea rdi, aArenaNull+4; "a != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
mov edx, 0C9h
call ___assert_fail
loc_37C7:
lea rdi, aBNull; "b != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
mov edx, 0CAh
call ___assert_fail
loc_37E6:
lea rdi, aADimBDim; "a->dim == b->dim"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
mov edx, 0CBh
call ___assert_fail
loc_3805:
lea rdi, aResultDimADim; "result->dim >= a->dim"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidVectorFAdd; "void vector_f_add_generic(VectorF *, co"...
mov edx, 0CCh
call ___assert_fail
| void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> vector_f_add_generic(long long a1, long long a2, long long a3)
{
unsigned long long v3; // rax
long long i; // rcx
if ( !a1 )
__assert_fail(
"result != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
200LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( !a2 )
__assert_fail(
"a != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
201LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( !a3 )
__assert_fail(
"b != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
202LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
v3 = *(_QWORD *)(a2 + 16);
if ( v3 != *(_QWORD *)(a3 + 16) )
__assert_fail(
"a->dim == b->dim",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
203LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( *(_QWORD *)(a1 + 16) < v3 )
__assert_fail(
"result->dim >= a->dim",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/vector.c",
204LL,
"void vector_f_add_generic(VectorF *, const VectorF *, const VectorF *)");
if ( v3 )
{
for ( i = 0LL; i != v3; ++i )
*(float *)(a1 + 4 * i) = *(float *)(a2 + 4 * i) + *(float *)(a3 + 4 * i);
}
}
| |||
5,462 | ftxui::Input(ftxui::StringRef, ftxui::StringRef, ftxui::InputOption) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/input.cpp | Component Input(StringRef content, StringRef placeholder, InputOption option) {
option.content = std::move(content);
option.placeholder = std::move(placeholder);
return Make<InputBase>(std::move(option));
} | O3 | cpp | ftxui::Input(ftxui::StringRef, ftxui::StringRef, ftxui::InputOption):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %rcx, (%r12)
movzbl 0x20(%rsi), %eax
leaq 0x2e8d1(%rip), %r13 # 0x580f8
movq %r12, %rdi
callq *(%r13,%rax,8)
leaq 0x28(%rbx), %rax
movq %rax, (%r12)
movzbl 0x20(%r14), %eax
movq %rsp, %rdi
movq %r14, %rsi
callq *(%r13,%rax,8)
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29487
movaps (%r14), %xmm0
movups %xmm0, (%r15)
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN5ftxui5InputENS_9StringRefES0_NS_11InputOptionE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rcx
mov r14, rdx
mov r15, rdi
mov r12, rsp
mov [r12], rcx
movzx eax, byte ptr [rsi+20h]
lea r13, _ZNSt8__detail9__variant12__gen_vtableINS0_20__variant_idx_cookieEOZNS0_17_Copy_assign_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_EEaSERKSB_EUlOT_T0_E_JRKSt7variantIJS9_SA_EEEE9_S_vtableE
mov rdi, r12
call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_20__variant_idx_cookieEOZNS0_17_Copy_assign_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_EEaSERKSB_EUlOT_T0_E_JRKSt7variantIJS9_SA_EEEE9_S_vtableE - 580F8h)[r13+rax*8]; std::ostream::write(char const*,long) ...
lea rax, [rbx+28h]
mov [r12], rax
movzx eax, byte ptr [r14+20h]
mov rdi, rsp
mov rsi, r14
call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_20__variant_idx_cookieEOZNS0_17_Copy_assign_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_EEaSERKSB_EUlOT_T0_E_JRKSt7variantIJS9_SA_EEEE9_S_vtableE - 580F8h)[r13+rax*8]; std::ostream::write(char const*,long) ...
mov r14, rsp
mov rdi, r14
mov rsi, rbx
call _ZN5ftxui4MakeINS_12_GLOBAL__N_19InputBaseEJNS_11InputOptionEEEESt10shared_ptrIT_EDpOT0_; ftxui::Make<ftxui::`anonymous namespace'::InputBase,ftxui::InputOption>(ftxui::InputOption &&)
movaps xmm0, xmmword ptr [r14]
movups xmmword ptr [r15], xmm0
mov rax, r15
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| _OWORD * ftxui::Input(_OWORD *a1, long long a2, long long a3, long long a4)
{
_OWORD v7[3]; // [rsp+0h] [rbp-38h] BYREF
*(_QWORD *)&v7[0] = a4;
((void ( *)(_OWORD *))ZNSt8__detail9__variant12__gen_vtableINS0_20__variant_idx_cookieEOZNS0_17_Copy_assign_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_EEaSERKSB_EUlOT_T0_E_JRKSt7variantIJS9_SA_EEEE9_S_vtableE[*(unsigned __int8 *)(a2 + 32)])(v7);
*(_QWORD *)&v7[0] = a4 + 40;
((void ( *)(_OWORD *))ZNSt8__detail9__variant12__gen_vtableINS0_20__variant_idx_cookieEOZNS0_17_Copy_assign_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_EEaSERKSB_EUlOT_T0_E_JRKSt7variantIJS9_SA_EEEE9_S_vtableE[*(unsigned __int8 *)(a3 + 32)])(v7);
ftxui::Make<ftxui::`anonymous namespace'::InputBase,ftxui::InputOption>(v7, a4);
*a1 = v7[0];
return a1;
}
| Input:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
MOV R12,RSP
MOV qword ptr [R12],RCX
MOVZX EAX,byte ptr [RSI + 0x20]
LEA R13,[0x1580f8]
MOV RDI,R12
CALL qword ptr [R13 + RAX*0x8]
LEA RAX,[RBX + 0x28]
MOV qword ptr [R12],RAX
MOVZX EAX,byte ptr [R14 + 0x20]
MOV RDI,RSP
MOV RSI,R14
CALL qword ptr [R13 + RAX*0x8]
MOV R14,RSP
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129487
MOVAPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [R15],XMM0
MOV RAX,R15
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* ftxui::Input(ftxui::StringRef, ftxui::StringRef, ftxui::InputOption) */
ftxui * __thiscall ftxui::Input(ftxui *this,long param_2,long param_3,InputOption *param_4)
{
InputOption *local_38;
int8 uStack_30;
local_38 = param_4;
(**(code **)(std::__detail::__variant::
__gen_vtable<std::__detail::__variant::__variant_idx_cookie,std::__detail::__variant::_Copy_assign_base<false,std::__cxx11::string,std::__cxx11::string*>::operator=(std::__detail::__variant::_Copy_assign_base<false,std::__cxx11::string,std::__cxx11::string*>const&)::{lambda(auto:1&&,auto:2)#1}&&,std::variant<std::__cxx11::string,std::__cxx11::string*>const&>
::_S_vtable + (ulong)*(byte *)(param_2 + 0x20) * 8))(&local_38);
local_38 = param_4 + 0x28;
(**(code **)(std::__detail::__variant::
__gen_vtable<std::__detail::__variant::__variant_idx_cookie,std::__detail::__variant::_Copy_assign_base<false,std::__cxx11::string,std::__cxx11::string*>::operator=(std::__detail::__variant::_Copy_assign_base<false,std::__cxx11::string,std::__cxx11::string*>const&)::{lambda(auto:1&&,auto:2)#1}&&,std::variant<std::__cxx11::string,std::__cxx11::string*>const&>
::_S_vtable + (ulong)*(byte *)(param_3 + 0x20) * 8))(&local_38,param_3);
Make<ftxui::(anonymous_namespace)::InputBase,ftxui::InputOption>((ftxui *)&local_38,param_4);
*(InputOption **)this = local_38;
*(int8 *)(this + 8) = uStack_30;
return this;
}
|
|
5,463 | drop_table_share(PFS_thread*, bool, char const*, unsigned int, char const*, unsigned int) | eloqsql/storage/perfschema/pfs_instr_class.cc | void drop_table_share(PFS_thread *thread,
bool temporary,
const char *schema_name, uint schema_name_length,
const char *table_name, uint table_name_length)
{
PFS_table_share_key key;
LF_PINS* pins= get_table_share_hash_pins(thread);
if (unlikely(pins == NULL))
return;
set_table_share_key(&key, temporary, schema_name, schema_name_length,
table_name, table_name_length);
PFS_table_share **entry;
entry= reinterpret_cast<PFS_table_share**>
(lf_hash_search(&table_share_hash, pins,
key.m_hash_key, key.m_key_length));
if (entry && (entry != MY_ERRPTR))
{
PFS_table_share *pfs= *entry;
lf_hash_delete(&table_share_hash, pins,
pfs->m_key.m_hash_key, pfs->m_key.m_key_length);
pfs->destroy_lock_stat();
pfs->destroy_index_stats();
pfs->m_lock.allocated_to_free();
}
lf_hash_search_unpin(pins);
} | O3 | cpp | drop_table_share(PFS_thread*, bool, char const*, unsigned int, char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movl %r9d, %r12d
movl %ecx, %r14d
movl %esi, %r13d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x810(%rdi), %rbx
testq %rbx, %rbx
je 0x372ea
movl %r14d, %ecx
movl %r12d, %r9d
movzbl %r13b, %esi
leaq -0x1b8(%rbp), %r14
movq %r14, %rdi
callq 0x3690d
movl 0x184(%r14), %ecx
leaq 0x396630(%rip), %rdi # 0x3cd840
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2c462
cmpq $0x2, %rax
jb 0x372c3
movq (%rax), %r14
leaq 0x8(%r14), %rdx
movl 0x18c(%r14), %ecx
leaq 0x396606(%rip), %rdi # 0x3cd840
movq %rbx, %rsi
callq 0x2bf34
xorl %eax, %eax
xchgq %rax, 0x1c0(%r14)
testq %rax, %rax
je 0x37277
movq $0x0, 0x168(%rax)
movq 0x170(%rax), %rcx
movl (%rax), %edx
andl $-0x4, %edx
xchgl %edx, (%rax)
xorl %eax, %eax
movb %al, (%rcx)
leaq 0x382a24(%rip), %rcx # 0x3b9c98
movb %al, 0x9(%rcx)
movl $0x39, %eax
xorl %ecx, %ecx
leaq 0x372933(%rip), %rdx # 0x3a9bb8
xorl %esi, %esi
xchgq %rsi, (%r14,%rax,8)
testq %rsi, %rsi
je 0x372b1
movq $0x0, 0x150(%rsi)
movq 0x158(%rsi), %rdi
movl (%rsi), %r8d
andl $-0x4, %r8d
xchgl %r8d, (%rsi)
movb %cl, (%rdi)
movb %cl, 0x9(%rdx)
incq %rax
cmpq $0x7a, %rax
jne 0x37285
movl (%r14), %eax
andl $-0x4, %eax
xchgl %eax, (%r14)
xorl %eax, %eax
xchgq %rax, 0x10(%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x37332
addq $0x1a8, %rsp # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, -0x1c0(%rbp)
movq %r8, -0x1c8(%rbp)
cmpb $0x1, 0x396651(%rip) # 0x3cd950
jne 0x372c9
movq %rdi, %r15
leaq 0x39655d(%rip), %rdi # 0x3cd868
callq 0x2ba28
movq %rax, 0x810(%r15)
testq %rax, %rax
je 0x372c9
movq %rax, %rbx
movq -0x1c8(%rbp), %r8
movq -0x1c0(%rbp), %rdx
jmp 0x371e9
callq 0x263a0
| _Z16drop_table_shareP10PFS_threadbPKcjS2_j:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1A8h
mov r12d, r9d
mov r14d, ecx
mov r13d, esi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rbx, [rdi+810h]
test rbx, rbx
jz loc_372EA
loc_371E9:
mov ecx, r14d
mov r9d, r12d
movzx esi, r13b
lea r14, [rbp+var_1B8]
mov rdi, r14
call _ZL19set_table_share_keyP19PFS_table_share_keybPKcmS2_m; set_table_share_key(PFS_table_share_key *,bool,char const*,ulong,char const*,ulong)
mov ecx, [r14+184h]
lea rdi, table_share_hash
mov rsi, rbx
mov rdx, r14
call lf_hash_search
cmp rax, 2
jb loc_372C3
mov r14, [rax]
lea rdx, [r14+8]
mov ecx, [r14+18Ch]
lea rdi, table_share_hash
mov rsi, rbx
call lf_hash_delete
xor eax, eax
xchg rax, [r14+1C0h]
test rax, rax
jz short loc_37277
mov qword ptr [rax+168h], 0
mov rcx, [rax+170h]
mov edx, [rax]
and edx, 0FFFFFFFCh
xchg edx, [rax]
xor eax, eax
mov [rcx], al
lea rcx, global_table_share_lock_container
mov [rcx+9], al
loc_37277:
mov eax, 39h ; '9'
xor ecx, ecx
lea rdx, global_table_share_index_container
loc_37285:
xor esi, esi
xchg rsi, [r14+rax*8]
test rsi, rsi
jz short loc_372B1
mov qword ptr [rsi+150h], 0
mov rdi, [rsi+158h]
mov r8d, [rsi]
and r8d, 0FFFFFFFCh
xchg r8d, [rsi]
mov [rdi], cl
mov [rdx+9], cl
loc_372B1:
inc rax
cmp rax, 7Ah ; 'z'
jnz short loc_37285
mov eax, [r14]
and eax, 0FFFFFFFCh
xchg eax, [r14]
loc_372C3:
xor eax, eax
xchg rax, [rbx+10h]
loc_372C9:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_37332
add rsp, 1A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_372EA:
mov [rbp+var_1C0], rdx
mov [rbp+var_1C8], r8
cmp cs:_ZL23table_share_hash_inited, 1; table_share_hash_inited
jnz short loc_372C9
mov r15, rdi
lea rdi, unk_3CD868
call lf_pinbox_get_pins
mov [r15+810h], rax
test rax, rax
jz short loc_372C9
mov rbx, rax
mov r8, [rbp+var_1C8]
mov rdx, [rbp+var_1C0]
jmp loc_371E9
loc_37332:
call ___stack_chk_fail
| unsigned long long drop_table_share(
PFS_thread *a1,
char a2,
const char *a3,
unsigned int a4,
const char *a5,
unsigned int a6)
{
volatile long long *v8; // rbx
unsigned long long v9; // rax
long long v10; // r14
long long v11; // rax
_BYTE *v12; // rcx
long long i; // rax
long long v14; // rsi
_BYTE *v15; // rdi
long long pins; // rax
const char *v18; // [rsp+8h] [rbp-1C8h]
const char *v19; // [rsp+10h] [rbp-1C0h]
_BYTE v20[388]; // [rsp+18h] [rbp-1B8h] BYREF
unsigned int v21; // [rsp+19Ch] [rbp-34h]
unsigned long long v22; // [rsp+1A0h] [rbp-30h]
v22 = __readfsqword(0x28u);
v8 = (volatile long long *)*((_QWORD *)a1 + 258);
if ( !v8 )
{
v19 = a3;
v18 = a5;
if ( table_share_hash_inited != 1 )
return __readfsqword(0x28u);
pins = lf_pinbox_get_pins((long long)&unk_3CD868);
*((_QWORD *)a1 + 258) = pins;
if ( !pins )
return __readfsqword(0x28u);
v8 = (volatile long long *)pins;
a5 = v18;
a3 = v19;
}
set_table_share_key((long long)v20, a2, (long long)a3, a4, (long long)a5, a6);
v9 = lf_hash_search((long long)&table_share_hash, v8, (long long)v20, v21);
if ( v9 >= 2 )
{
v10 = *(_QWORD *)v9;
lf_hash_delete((long long)&table_share_hash, v8, *(_QWORD *)v9 + 8LL, *(_DWORD *)(*(_QWORD *)v9 + 396LL));
v11 = _InterlockedExchange64((volatile long long *)(v10 + 448), 0LL);
if ( v11 )
{
*(_QWORD *)(v11 + 360) = 0LL;
v12 = *(_BYTE **)(v11 + 368);
_InterlockedExchange((volatile __int32 *)v11, *(_DWORD *)v11 & 0xFFFFFFFC);
*v12 = 0;
*((_BYTE *)&global_table_share_lock_container + 9) = 0;
}
for ( i = 57LL; i != 122; ++i )
{
v14 = _InterlockedExchange64((volatile long long *)(v10 + 8 * i), 0LL);
if ( v14 )
{
*(_QWORD *)(v14 + 336) = 0LL;
v15 = *(_BYTE **)(v14 + 344);
_InterlockedExchange((volatile __int32 *)v14, *(_DWORD *)v14 & 0xFFFFFFFC);
*v15 = 0;
*((_BYTE *)&global_table_share_index_container + 9) = 0;
}
}
_InterlockedExchange((volatile __int32 *)v10, *(_DWORD *)v10 & 0xFFFFFFFC);
}
_InterlockedExchange64(v8 + 2, 0LL);
return __readfsqword(0x28u);
}
| drop_table_share:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1a8
MOV R12D,R9D
MOV R14D,ECX
MOV R13D,ESI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RBX,qword ptr [RDI + 0x810]
TEST RBX,RBX
JZ 0x001372ea
LAB_001371e9:
MOV ECX,R14D
MOV R9D,R12D
MOVZX ESI,R13B
LEA R14,[RBP + -0x1b8]
MOV RDI,R14
CALL 0x0013690d
MOV ECX,dword ptr [R14 + 0x184]
LEA RDI,[0x4cd840]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0012c462
CMP RAX,0x2
JC 0x001372c3
MOV R14,qword ptr [RAX]
LEA RDX,[R14 + 0x8]
MOV ECX,dword ptr [R14 + 0x18c]
LEA RDI,[0x4cd840]
MOV RSI,RBX
CALL 0x0012bf34
XOR EAX,EAX
XCHG qword ptr [R14 + 0x1c0],RAX
TEST RAX,RAX
JZ 0x00137277
MOV qword ptr [RAX + 0x168],0x0
MOV RCX,qword ptr [RAX + 0x170]
MOV EDX,dword ptr [RAX]
AND EDX,0xfffffffc
XCHG dword ptr [RAX],EDX
XOR EAX,EAX
MOV byte ptr [RCX],AL
LEA RCX,[0x4b9c98]
MOV byte ptr [RCX + 0x9],AL
LAB_00137277:
MOV EAX,0x39
XOR ECX,ECX
LEA RDX,[0x4a9bb8]
LAB_00137285:
XOR ESI,ESI
XCHG qword ptr [R14 + RAX*0x8],RSI
TEST RSI,RSI
JZ 0x001372b1
MOV qword ptr [RSI + 0x150],0x0
MOV RDI,qword ptr [RSI + 0x158]
MOV R8D,dword ptr [RSI]
AND R8D,0xfffffffc
XCHG dword ptr [RSI],R8D
MOV byte ptr [RDI],CL
MOV byte ptr [RDX + 0x9],CL
LAB_001372b1:
INC RAX
CMP RAX,0x7a
JNZ 0x00137285
MOV EAX,dword ptr [R14]
AND EAX,0xfffffffc
XCHG dword ptr [R14],EAX
LAB_001372c3:
XOR EAX,EAX
XCHG qword ptr [RBX + 0x10],RAX
LAB_001372c9:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00137332
ADD RSP,0x1a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001372ea:
MOV qword ptr [RBP + -0x1c0],RDX
MOV qword ptr [RBP + -0x1c8],R8
CMP byte ptr [0x004cd950],0x1
JNZ 0x001372c9
MOV R15,RDI
LEA RDI,[0x4cd868]
CALL 0x0012ba28
MOV qword ptr [R15 + 0x810],RAX
TEST RAX,RAX
JZ 0x001372c9
MOV RBX,RAX
MOV R8,qword ptr [RBP + -0x1c8]
MOV RDX,qword ptr [RBP + -0x1c0]
JMP 0x001371e9
LAB_00137332:
CALL 0x001263a0
|
/* drop_table_share(PFS_thread*, bool, char const*, unsigned int, char const*, unsigned int) */
void drop_table_share(PFS_thread *param_1,bool param_2,char *param_3,uint param_4,char *param_5,
uint param_6)
{
uint *puVar1;
uint *puVar2;
uint *puVar3;
int8 *puVar4;
long lVar5;
long lVar6;
long in_FS_OFFSET;
PFS_table_share_key local_1c0 [388];
int4 local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar6 = *(long *)(param_1 + 0x810);
if (lVar6 == 0) {
if (table_share_hash_inited != '\x01') goto LAB_001372c9;
lVar6 = lf_pinbox_get_pins(0x4cd868);
*(long *)(param_1 + 0x810) = lVar6;
if (lVar6 == 0) goto LAB_001372c9;
}
set_table_share_key(local_1c0,param_2,param_3,(ulong)param_4,param_5,(ulong)param_6);
puVar4 = (int8 *)lf_hash_search(table_share_hash,lVar6,local_1c0,local_3c);
if ((int8 *)0x1 < puVar4) {
puVar3 = (uint *)*puVar4;
lf_hash_delete(table_share_hash,lVar6,puVar3 + 2);
LOCK();
puVar1 = puVar3 + 0x70;
puVar2 = *(uint **)puVar1;
puVar1[0] = 0;
puVar1[1] = 0;
UNLOCK();
if (puVar2 != (uint *)0x0) {
puVar2[0x5a] = 0;
puVar2[0x5b] = 0;
LOCK();
*puVar2 = *puVar2 & 0xfffffffc;
UNLOCK();
**(int1 **)(puVar2 + 0x5c) = 0;
global_table_share_lock_container[9] = 0;
}
lVar5 = 0x39;
do {
LOCK();
puVar1 = puVar3 + lVar5 * 2;
puVar2 = *(uint **)puVar1;
puVar1[0] = 0;
puVar1[1] = 0;
UNLOCK();
if (puVar2 != (uint *)0x0) {
puVar2[0x54] = 0;
puVar2[0x55] = 0;
LOCK();
*puVar2 = *puVar2 & 0xfffffffc;
UNLOCK();
**(int1 **)(puVar2 + 0x56) = 0;
global_table_share_index_container[9] = 0;
}
lVar5 = lVar5 + 1;
} while (lVar5 != 0x7a);
LOCK();
*puVar3 = *puVar3 & 0xfffffffc;
UNLOCK();
}
LOCK();
*(int8 *)(lVar6 + 0x10) = 0;
UNLOCK();
LAB_001372c9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
|
|
5,464 | my_filename | eloqsql/mysys/my_div.c | char * my_filename(File fd)
{
DBUG_ENTER("my_filename");
if ((uint) fd >= (uint) my_file_limit || !my_file_info[fd].name)
DBUG_RETURN((char*) "UNKNOWN");
if (fd >= 0 && my_file_info[fd].type != UNOPEN)
{
DBUG_RETURN(my_file_info[fd].name);
}
else
DBUG_RETURN((char*) "UNOPENED"); /* Debug message */
} | O3 | c | my_filename:
pushq %rbp
movq %rsp, %rbp
leaq 0x2dcb05(%rip), %rcx # 0x385b10
leaq 0x34283(%rip), %rax # 0xdd295
cmpl %edi, (%rcx)
jbe 0xa9047
leaq 0x2dcafb(%rip), %rcx # 0x385b18
movq (%rcx), %rcx
movslq %edi, %rdx
shlq $0x4, %rdx
movq (%rcx,%rdx), %rsi
testq %rsi, %rsi
je 0xa9047
testl %edi, %edi
js 0xa9040
addq %rdx, %rcx
cmpl $0x0, 0x8(%rcx)
movq %rsi, %rax
jne 0xa9047
leaq 0x34256(%rip), %rax # 0xdd29d
popq %rbp
retq
nopl (%rax)
| my_filename:
push rbp
mov rbp, rsp
lea rcx, my_file_limit
lea rax, aUnknown_1; "UNKNOWN"
cmp [rcx], edi
jbe short loc_A9047
lea rcx, my_file_info
mov rcx, [rcx]
movsxd rdx, edi
shl rdx, 4
mov rsi, [rcx+rdx]
test rsi, rsi
jz short loc_A9047
test edi, edi
js short loc_A9040
add rcx, rdx
cmp dword ptr [rcx+8], 0
mov rax, rsi
jnz short loc_A9047
loc_A9040:
lea rax, aUnopened; "UNOPENED"
loc_A9047:
pop rbp
retn
| const char * my_filename(int a1)
{
const char *result; // rax
long long v2; // rdx
result = "UNKNOWN";
if ( my_file_limit > (unsigned int)a1 )
{
v2 = 16LL * a1;
if ( *(_QWORD *)((char *)my_file_info + v2) )
{
if ( a1 < 0 )
return "UNOPENED";
result = (const char *)*((_QWORD *)my_file_info + 2 * a1);
if ( !*(_DWORD *)((char *)my_file_info + v2 + 8) )
return "UNOPENED";
}
}
return result;
}
| my_filename:
PUSH RBP
MOV RBP,RSP
LEA RCX,[0x485b10]
LEA RAX,[0x1dd295]
CMP dword ptr [RCX],EDI
JBE 0x001a9047
LEA RCX,[0x485b18]
MOV RCX,qword ptr [RCX]
MOVSXD RDX,EDI
SHL RDX,0x4
MOV RSI,qword ptr [RCX + RDX*0x1]
TEST RSI,RSI
JZ 0x001a9047
TEST EDI,EDI
JS 0x001a9040
ADD RCX,RDX
CMP dword ptr [RCX + 0x8],0x0
MOV RAX,RSI
JNZ 0x001a9047
LAB_001a9040:
LEA RAX,[0x1dd29d]
LAB_001a9047:
POP RBP
RET
|
char * my_filename(uint param_1)
{
char *pcVar1;
pcVar1 = "UNKNOWN";
if (param_1 < my_file_limit) {
if ((*(char **)(my_file_info + (long)(int)param_1 * 0x10) != (char *)0x0) &&
(((int)param_1 < 0 ||
(pcVar1 = *(char **)(my_file_info + (long)(int)param_1 * 0x10),
*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) == 0)))) {
pcVar1 = "UNOPENED";
}
}
return pcVar1;
}
|
|
5,465 | backtick_string | eloqsql/strings/my_vsnprintf.c | static char *backtick_string(CHARSET_INFO *cs, char *to, const char *end,
char *par, size_t par_len, char quote_char,
my_bool cut)
{
char *last[3]= {0,0,0};
uint char_len;
char *start= to;
char *par_end= par + par_len;
size_t buff_length= (size_t) (end - to);
uint index= 0;
if (buff_length <= par_len)
goto err;
*start++= quote_char;
for ( ; par < par_end; par+= char_len)
{
uchar c= *(uchar *) par;
if (cut)
{
last[index]= start;
index= (index + 1) % 3;
}
char_len= my_ci_charlen_fix(cs, (const uchar *) par, (const uchar *) par_end);
if (char_len == 1 && c == (uchar) quote_char )
{
if (start + 1 >= end)
goto err;
*start++= quote_char;
}
if (start + char_len >= end)
goto err;
start= strnmov(start, par, char_len);
}
if (start + 1 >= end)
goto err;
if (cut)
{
uint dots= 0;
start= NULL;
for (; dots < 3; dots++)
{
if (index == 0)
index= 2;
else
index--;
if (!last[index])
break;
start= last[index];
}
if (start == NULL)
goto err; // there was no characters at all
for (; dots; dots--)
*start++= '.';
}
*start++= quote_char;
return start;
err:
*to='\0';
return to;
} | O0 | c | backtick_string:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movb %r9b, %al
movb 0x10(%rbp), %r9b
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movb %al, -0x31(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x24180
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x30(%rbp), %rax
ja 0x7cae2
jmp 0x7cc7a
movb -0x31(%rbp), %cl
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
cmpq -0x68(%rbp), %rax
jae 0x7cbbe
movq -0x28(%rbp), %rax
movb (%rax), %al
movb %al, -0x75(%rbp)
cmpb $0x0, 0x10(%rbp)
je 0x7cb31
movq -0x60(%rbp), %rcx
movl -0x74(%rbp), %eax
movq %rcx, -0x50(%rbp,%rax,8)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl $0x3, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -0x74(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x7ccf0
movl %eax, -0x54(%rbp)
cmpl $0x1, -0x54(%rbp)
jne 0x7cb7e
movzbl -0x75(%rbp), %eax
movzbl -0x31(%rbp), %ecx
cmpl %ecx, %eax
jne 0x7cb7e
movq -0x60(%rbp), %rax
addq $0x1, %rax
cmpq -0x20(%rbp), %rax
jb 0x7cb6a
jmp 0x7cc7a
movb -0x31(%rbp), %cl
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movb %cl, (%rax)
movq -0x60(%rbp), %rax
movl -0x54(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jb 0x7cb93
jmp 0x7cc7a
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x54(%rbp), %eax
movl %eax, %edx
callq 0x7d250
movq %rax, -0x60(%rbp)
movl -0x54(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
jmp 0x7caf6
movq -0x60(%rbp), %rax
addq $0x1, %rax
cmpq -0x20(%rbp), %rax
jb 0x7cbd1
jmp 0x7cc7a
cmpb $0x0, 0x10(%rbp)
je 0x7cc5c
movl $0x0, -0x7c(%rbp)
movq $0x0, -0x60(%rbp)
cmpl $0x3, -0x7c(%rbp)
jae 0x7cc2c
cmpl $0x0, -0x74(%rbp)
jne 0x7cbff
movl $0x2, -0x74(%rbp)
jmp 0x7cc08
movl -0x74(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
cmpq $0x0, -0x50(%rbp,%rax,8)
jne 0x7cc15
jmp 0x7cc2c
movl -0x74(%rbp), %eax
movq -0x50(%rbp,%rax,8), %rax
movq %rax, -0x60(%rbp)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x7cbea
cmpq $0x0, -0x60(%rbp)
jne 0x7cc35
jmp 0x7cc7a
jmp 0x7cc37
cmpl $0x0, -0x7c(%rbp)
je 0x7cc5a
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2e, (%rax)
movl -0x7c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x7cc37
jmp 0x7cc5c
movb -0x31(%rbp), %cl
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movb %cl, (%rax)
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7cc89
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| backtick_string:
push rbp
mov rbp, rsp
sub rsp, 80h
mov al, r9b
mov r9b, [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_31], al
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 18h
call _memset
mov rax, [rbp+var_18]
mov [rbp+var_60], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_68], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_70], rax
mov [rbp+var_74], 0
mov rax, [rbp+var_70]
cmp rax, [rbp+var_30]
ja short loc_7CAE2
jmp loc_7CC7A
loc_7CAE2:
mov cl, [rbp+var_31]
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 1
mov [rbp+var_60], rdx
mov [rax], cl
loc_7CAF6:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_68]
jnb loc_7CBBE
mov rax, [rbp+var_28]
mov al, [rax]
mov [rbp+var_75], al
cmp [rbp+arg_0], 0
jz short loc_7CB31
mov rcx, [rbp+var_60]
mov eax, [rbp+var_74]
mov [rbp+rax*8+var_50], rcx
mov eax, [rbp+var_74]
add eax, 1
mov ecx, 3
xor edx, edx
div ecx
mov [rbp+var_74], edx
loc_7CB31:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_68]
call my_ci_charlen_fix
mov [rbp+var_54], eax
cmp [rbp+var_54], 1
jnz short loc_7CB7E
movzx eax, [rbp+var_75]
movzx ecx, [rbp+var_31]
cmp eax, ecx
jnz short loc_7CB7E
mov rax, [rbp+var_60]
add rax, 1
cmp rax, [rbp+var_20]
jb short loc_7CB6A
jmp loc_7CC7A
loc_7CB6A:
mov cl, [rbp+var_31]
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 1
mov [rbp+var_60], rdx
mov [rax], cl
loc_7CB7E:
mov rax, [rbp+var_60]
mov ecx, [rbp+var_54]
add rax, rcx
cmp rax, [rbp+var_20]
jb short loc_7CB93
jmp loc_7CC7A
loc_7CB93:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_28]
mov eax, [rbp+var_54]
mov edx, eax
call strnmov
mov [rbp+var_60], rax
mov ecx, [rbp+var_54]
mov rax, [rbp+var_28]
mov ecx, ecx
add rax, rcx
mov [rbp+var_28], rax
jmp loc_7CAF6
loc_7CBBE:
mov rax, [rbp+var_60]
add rax, 1
cmp rax, [rbp+var_20]
jb short loc_7CBD1
jmp loc_7CC7A
loc_7CBD1:
cmp [rbp+arg_0], 0
jz loc_7CC5C
mov [rbp+var_7C], 0
mov [rbp+var_60], 0
loc_7CBEA:
cmp [rbp+var_7C], 3
jnb short loc_7CC2C
cmp [rbp+var_74], 0
jnz short loc_7CBFF
mov [rbp+var_74], 2
jmp short loc_7CC08
loc_7CBFF:
mov eax, [rbp+var_74]
add eax, 0FFFFFFFFh
mov [rbp+var_74], eax
loc_7CC08:
mov eax, [rbp+var_74]
cmp [rbp+rax*8+var_50], 0
jnz short loc_7CC15
jmp short loc_7CC2C
loc_7CC15:
mov eax, [rbp+var_74]
mov rax, [rbp+rax*8+var_50]
mov [rbp+var_60], rax
mov eax, [rbp+var_7C]
add eax, 1
mov [rbp+var_7C], eax
jmp short loc_7CBEA
loc_7CC2C:
cmp [rbp+var_60], 0
jnz short loc_7CC35
jmp short loc_7CC7A
loc_7CC35:
jmp short $+2
loc_7CC37:
cmp [rbp+var_7C], 0
jz short loc_7CC5A
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Eh ; '.'
mov eax, [rbp+var_7C]
add eax, 0FFFFFFFFh
mov [rbp+var_7C], eax
jmp short loc_7CC37
loc_7CC5A:
jmp short $+2
loc_7CC5C:
mov cl, [rbp+var_31]
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 1
mov [rbp+var_60], rdx
mov [rax], cl
mov rax, [rbp+var_60]
mov [rbp+var_8], rax
jmp short loc_7CC89
loc_7CC7A:
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_7CC89:
mov rax, [rbp+var_8]
add rsp, 80h
pop rbp
retn
| _BYTE * backtick_string(
long long a1,
_BYTE *a2,
unsigned long long a3,
char *a4,
unsigned long long a5,
char a6,
char a7)
{
_BYTE *v7; // rax
_BYTE *v8; // rax
unsigned int v10; // [rsp+4h] [rbp-7Ch]
char v11; // [rsp+Bh] [rbp-75h]
unsigned int v12; // [rsp+Ch] [rbp-74h]
char *v13; // [rsp+18h] [rbp-68h]
_BYTE *v14; // [rsp+20h] [rbp-60h]
unsigned int v15; // [rsp+2Ch] [rbp-54h]
_QWORD v16[3]; // [rsp+30h] [rbp-50h] BYREF
char v17; // [rsp+4Fh] [rbp-31h]
unsigned long long v18; // [rsp+50h] [rbp-30h]
char *v19; // [rsp+58h] [rbp-28h]
unsigned long long v20; // [rsp+60h] [rbp-20h]
_BYTE *v21; // [rsp+68h] [rbp-18h]
long long v22; // [rsp+70h] [rbp-10h]
v22 = a1;
v21 = a2;
v20 = a3;
v19 = a4;
v18 = a5;
v17 = a6;
memset(v16, 0LL, sizeof(v16));
v13 = &v19[v18];
v12 = 0;
if ( v20 - (unsigned long long)v21 <= v18 )
goto LABEL_25;
v14 = v21 + 1;
*v21 = v17;
while ( v19 < v13 )
{
v11 = *v19;
if ( a7 )
{
v16[v12] = v14;
v12 = (v12 + 1) % 3;
}
v15 = my_ci_charlen_fix(v22, v19, v13);
if ( v15 == 1 && v11 == v17 )
{
if ( (unsigned long long)(v14 + 1) >= v20 )
goto LABEL_25;
v7 = v14++;
*v7 = v17;
}
if ( (unsigned long long)&v14[v15] >= v20 )
goto LABEL_25;
v14 = (_BYTE *)strnmov(v14, v19, v15);
v19 += v15;
}
if ( (unsigned long long)(v14 + 1) >= v20 )
goto LABEL_25;
if ( a7 )
{
v10 = 0;
v14 = 0LL;
while ( v10 < 3 )
{
if ( v12 )
--v12;
else
v12 = 2;
if ( !v16[v12] )
break;
v14 = (_BYTE *)v16[v12];
++v10;
}
if ( v14 )
{
while ( v10 )
{
v8 = v14++;
*v8 = 46;
--v10;
}
goto LABEL_24;
}
LABEL_25:
*v21 = 0;
return v21;
}
LABEL_24:
*v14 = v17;
return v14 + 1;
}
| backtick_string:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV AL,R9B
MOV R9B,byte 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 byte ptr [RBP + -0x31],AL
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00124180
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
MOV dword ptr [RBP + -0x74],0x0
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,qword ptr [RBP + -0x30]
JA 0x0017cae2
JMP 0x0017cc7a
LAB_0017cae2:
MOV CL,byte ptr [RBP + -0x31]
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOV byte ptr [RAX],CL
LAB_0017caf6:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x68]
JNC 0x0017cbbe
MOV RAX,qword ptr [RBP + -0x28]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x75],AL
CMP byte ptr [RBP + 0x10],0x0
JZ 0x0017cb31
MOV RCX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RBP + -0x74]
MOV qword ptr [RBP + RAX*0x8 + -0x50],RCX
MOV EAX,dword ptr [RBP + -0x74]
ADD EAX,0x1
MOV ECX,0x3
XOR EDX,EDX
DIV ECX
MOV dword ptr [RBP + -0x74],EDX
LAB_0017cb31:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x0017ccf0
MOV dword ptr [RBP + -0x54],EAX
CMP dword ptr [RBP + -0x54],0x1
JNZ 0x0017cb7e
MOVZX EAX,byte ptr [RBP + -0x75]
MOVZX ECX,byte ptr [RBP + -0x31]
CMP EAX,ECX
JNZ 0x0017cb7e
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x20]
JC 0x0017cb6a
JMP 0x0017cc7a
LAB_0017cb6a:
MOV CL,byte ptr [RBP + -0x31]
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOV byte ptr [RAX],CL
LAB_0017cb7e:
MOV RAX,qword ptr [RBP + -0x60]
MOV ECX,dword ptr [RBP + -0x54]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JC 0x0017cb93
JMP 0x0017cc7a
LAB_0017cb93:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x54]
MOV EDX,EAX
CALL 0x0017d250
MOV qword ptr [RBP + -0x60],RAX
MOV ECX,dword ptr [RBP + -0x54]
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0017caf6
LAB_0017cbbe:
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x20]
JC 0x0017cbd1
JMP 0x0017cc7a
LAB_0017cbd1:
CMP byte ptr [RBP + 0x10],0x0
JZ 0x0017cc5c
MOV dword ptr [RBP + -0x7c],0x0
MOV qword ptr [RBP + -0x60],0x0
LAB_0017cbea:
CMP dword ptr [RBP + -0x7c],0x3
JNC 0x0017cc2c
CMP dword ptr [RBP + -0x74],0x0
JNZ 0x0017cbff
MOV dword ptr [RBP + -0x74],0x2
JMP 0x0017cc08
LAB_0017cbff:
MOV EAX,dword ptr [RBP + -0x74]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x74],EAX
LAB_0017cc08:
MOV EAX,dword ptr [RBP + -0x74]
CMP qword ptr [RBP + RAX*0x8 + -0x50],0x0
JNZ 0x0017cc15
JMP 0x0017cc2c
LAB_0017cc15:
MOV EAX,dword ptr [RBP + -0x74]
MOV RAX,qword ptr [RBP + RAX*0x8 + -0x50]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x7c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x7c],EAX
JMP 0x0017cbea
LAB_0017cc2c:
CMP qword ptr [RBP + -0x60],0x0
JNZ 0x0017cc35
JMP 0x0017cc7a
LAB_0017cc35:
JMP 0x0017cc37
LAB_0017cc37:
CMP dword ptr [RBP + -0x7c],0x0
JZ 0x0017cc5a
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2e
MOV EAX,dword ptr [RBP + -0x7c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x7c],EAX
JMP 0x0017cc37
LAB_0017cc5a:
JMP 0x0017cc5c
LAB_0017cc5c:
MOV CL,byte ptr [RBP + -0x31]
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017cc89
LAB_0017cc7a:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0017cc89:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x80
POP RBP
RET
|
char * backtick_string(int8 param_1,char *param_2,char *param_3,char *param_4,ulong param_5,
char param_6,char param_7)
{
char cVar1;
uint uVar2;
char *pcVar3;
uint local_84;
uint local_7c;
char *local_68;
long local_58 [3];
char local_39;
ulong local_38;
char *local_30;
char *local_28;
char *local_20;
int8 local_18;
local_39 = param_6;
local_38 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
memset(local_58,0,0x18);
pcVar3 = local_30 + local_38;
local_7c = 0;
if (local_38 < (ulong)((long)local_28 - (long)local_20)) {
local_68 = local_20 + 1;
*local_20 = local_39;
for (; local_30 < pcVar3; local_30 = local_30 + uVar2) {
cVar1 = *local_30;
if (param_7 != '\0') {
local_58[local_7c] = (long)local_68;
local_7c = (local_7c + 1) % 3;
}
uVar2 = my_ci_charlen_fix(local_18,local_30,pcVar3);
if ((uVar2 == 1) && (cVar1 == local_39)) {
if (local_28 <= local_68 + 1) goto LAB_0017cc7a;
*local_68 = local_39;
local_68 = local_68 + 1;
}
if (local_28 <= local_68 + uVar2) goto LAB_0017cc7a;
local_68 = (char *)strnmov(local_68,local_30,uVar2);
}
if (local_68 + 1 < local_28) {
if (param_7 != '\0') {
local_68 = (char *)0x0;
for (local_84 = 0; local_84 < 3; local_84 = local_84 + 1) {
if (local_7c == 0) {
local_7c = 2;
}
else {
local_7c = local_7c - 1;
}
if (local_58[local_7c] == 0) break;
local_68 = (char *)local_58[local_7c];
}
if (local_68 == (char *)0x0) goto LAB_0017cc7a;
for (; local_84 != 0; local_84 = local_84 - 1) {
*local_68 = '.';
local_68 = local_68 + 1;
}
}
*local_68 = local_39;
return local_68 + 1;
}
}
LAB_0017cc7a:
*local_20 = '\0';
return local_20;
}
|
|
5,466 | ma_net_read | eloqsql/libmariadb/libmariadb/ma_net.c | ulong ma_net_read(NET *net)
{
size_t len,complen;
#ifdef HAVE_COMPRESS
if (!net->compress)
{
#endif
len = ma_real_read (net,(size_t *)&complen);
if (len == MAX_PACKET_LENGTH)
{
/* multi packet read */
size_t length= 0;
ulong last_pos= net->where_b;
do
{
length+= len;
net->where_b+= (unsigned long)len;
len= ma_real_read(net, &complen);
} while (len == MAX_PACKET_LENGTH);
net->where_b= last_pos;
if (len != packet_error)
len+= length;
}
net->read_pos = net->buff + net->where_b;
if (len != packet_error)
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
return (ulong)len;
#ifdef HAVE_COMPRESS
}
else
{
/*
compressed protocol:
--------------------------------------
packet_length 3
sequence_id 1
uncompressed_length 3
--------------------------------------
compressed data packet_length - 7
--------------------------------------
Another packet will follow if:
packet_length == MAX_PACKET_LENGTH
Last package will be identified by
- packet_length is zero (special case)
- packet_length < MAX_PACKET_LENGTH
*/
size_t packet_length,
buffer_length;
size_t current= 0, start= 0;
my_bool is_multi_packet= 0;
/* check if buffer is empty */
if (!net->remain_in_buf)
{
buffer_length= 0;
}
else
{
/* save position and restore \0 character */
buffer_length= net->buf_length;
current= net->buf_length - net->remain_in_buf;
start= current;
net->buff[net->buf_length - net->remain_in_buf]=net->save_char;
}
for (;;)
{
if (buffer_length - current >= 4)
{
uchar *pos= net->buff + current;
packet_length= uint3korr(pos);
/* check if we have last package (special case: zero length) */
if (!packet_length)
{
current+= 4; /* length + sequence_id,
no more data will follow */
break;
}
if (packet_length + 4 <= buffer_length - current)
{
if (!is_multi_packet)
{
current= current + packet_length + 4;
}
else
{
/* remove packet_header */
memmove(net->buff + current,
net->buff + current + 4,
buffer_length - current);
buffer_length-= 4;
current+= packet_length;
}
/* do we have last packet ? */
if (packet_length != MAX_PACKET_LENGTH)
{
is_multi_packet= 0;
break;
}
else
is_multi_packet= 1;
if (start)
{
memmove(net->buff, net->buff + start,
buffer_length - start);
/* decrease buflen*/
buffer_length-= start;
start= 0;
}
continue;
}
}
if (start)
{
memmove(net->buff, net->buff + start, buffer_length - start);
/* decrease buflen and current */
current -= start;
buffer_length-= start;
start= 0;
}
net->where_b=(unsigned long)buffer_length;
if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error)
return packet_error;
if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen))
{
net->error=2; /* caller will close socket */
net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0);
return packet_error;
}
buffer_length+= complen;
}
/* set values */
net->buf_length= (unsigned long)buffer_length;
net->remain_in_buf= (unsigned long)(buffer_length - current);
net->read_pos= net->buff + start + 4;
len= current - start - 4;
if (is_multi_packet)
len-= 4;
net->save_char= net->read_pos[len]; /* Must be saved */
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
}
#endif
return (ulong)len;
} | O0 | c | ma_net_read:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x84(%rax)
jne 0x4b138
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x4b480
movq %rax, -0x18(%rbp)
cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF
jne 0x4b0f8
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rcx
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x4b480
movq %rax, -0x18(%rbp)
cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF
je 0x4b09c
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x18(%rbp)
je 0x4b0f6
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x4b0f8
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x18(%rbp)
je 0x4b12b
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4b467
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movb $0x0, -0x51(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x4b161
movq $0x0, -0x40(%rbp)
jmp 0x4b1ae
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rcx
subq 0x30(%rcx), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movb 0x81(%rax), %dl
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq -0x10(%rbp), %rsi
subq 0x30(%rsi), %rcx
movb %dl, (%rax,%rcx)
jmp 0x4b1b0
movq -0x40(%rbp), %rax
subq -0x48(%rbp), %rax
cmpq $0x4, %rax
jb 0x4b2e0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
movq -0x60(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x60(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movl %eax, %eax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x4b211
movq -0x48(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x48(%rbp)
jmp 0x4b3e0
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq -0x40(%rbp), %rcx
subq -0x48(%rbp), %rcx
cmpq %rcx, %rax
ja 0x4b2de
cmpb $0x0, -0x51(%rbp)
jne 0x4b242
movq -0x48(%rbp), %rax
addq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x48(%rbp)
jmp 0x4b283
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
addq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x48(%rbp), %rsi
addq $0x4, %rsi
movq -0x40(%rbp), %rdx
subq -0x48(%rbp), %rdx
callq 0x136f0
movq -0x40(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF
je 0x4b296
movb $0x0, -0x51(%rbp)
jmp 0x4b3e0
movb $0x1, -0x51(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x4b2d9
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
subq -0x50(%rbp), %rdx
callq 0x136f0
movq -0x50(%rbp), %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x4b1b0
jmp 0x4b2e0
cmpq $0x0, -0x50(%rbp)
je 0x4b32e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
subq -0x50(%rbp), %rdx
callq 0x136f0
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x4b480
movq %rax, -0x38(%rbp)
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jne 0x4b363
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %rax, -0x8(%rbp)
jmp 0x4b467
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rsi
leaq -0x38(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x29e90
cmpb $0x0, %al
je 0x4b3cf
movq -0x10(%rbp), %rax
movb $0x2, 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 0x1bda0(%rip), %rax # 0x67150
movq (%rax), %rdx
movl $0x1397, %esi # imm = 0x1397
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq *%r8
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %rax, -0x8(%rbp)
jmp 0x4b467
movq -0x20(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x4b1b0
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x40(%rbp), %rcx
subq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq -0x50(%rbp), %rcx
addq $0x4, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x18(%rbp)
cmpb $0x0, -0x51(%rbp)
je 0x4b436
movq -0x18(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x81(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_net_read:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp byte ptr [rax+84h], 0
jnz loc_4B138
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_18], rax
cmp [rbp+var_18], 0FFFFFFh
jnz short loc_4B0F8
mov [rbp+var_28], 0
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov [rbp+var_30], rax
loc_4B09C:
mov rax, [rbp+var_18]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
add rcx, [rax+48h]
mov [rax+48h], rcx
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_18], rax
cmp [rbp+var_18], 0FFFFFFh
jz short loc_4B09C
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov eax, 0FFFFFFFFh
cmp [rbp+var_18], rax
jz short loc_4B0F6
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
loc_4B0F6:
jmp short $+2
loc_4B0F8:
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
add rcx, [rax+48h]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov eax, 0FFFFFFFFh
cmp [rbp+var_18], rax
jz short loc_4B12B
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov byte ptr [rax+rcx], 0
loc_4B12B:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp loc_4B467
loc_4B138:
mov [rbp+var_48], 0
mov [rbp+var_50], 0
mov [rbp+var_51], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+30h], 0
jnz short loc_4B161
mov [rbp+var_40], 0
jmp short loc_4B1AE
loc_4B161:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rcx, [rbp+var_10]
sub rax, [rcx+30h]
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
mov [rbp+var_50], rax
mov rax, [rbp+var_10]
mov dl, [rax+81h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+40h]
mov rsi, [rbp+var_10]
sub rcx, [rsi+30h]
mov [rax+rcx], dl
loc_4B1AE:
jmp short $+2
loc_4B1B0:
mov rax, [rbp+var_40]
sub rax, [rbp+var_48]
cmp rax, 4
jb loc_4B2E0
mov rax, [rbp+var_10]
mov rax, [rax+8]
add rax, [rbp+var_48]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_60]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_60]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov eax, eax
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz short loc_4B211
mov rax, [rbp+var_48]
add rax, 4
mov [rbp+var_48], rax
jmp loc_4B3E0
loc_4B211:
mov rax, [rbp+var_38]
add rax, 4
mov rcx, [rbp+var_40]
sub rcx, [rbp+var_48]
cmp rax, rcx
ja loc_4B2DE
cmp [rbp+var_51], 0
jnz short loc_4B242
mov rax, [rbp+var_48]
add rax, [rbp+var_38]
add rax, 4
mov [rbp+var_48], rax
jmp short loc_4B283
loc_4B242:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
add rdi, [rbp+var_48]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_48]
add rsi, 4
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_48]
call _memmove
mov rax, [rbp+var_40]
sub rax, 4
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_48]
mov [rbp+var_48], rax
loc_4B283:
cmp [rbp+var_38], 0FFFFFFh
jz short loc_4B296
mov [rbp+var_51], 0
jmp loc_4B3E0
loc_4B296:
mov [rbp+var_51], 1
cmp [rbp+var_50], 0
jz short loc_4B2D9
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_50]
call _memmove
mov rcx, [rbp+var_50]
mov rax, [rbp+var_40]
sub rax, rcx
mov [rbp+var_40], rax
mov [rbp+var_50], 0
loc_4B2D9:
jmp loc_4B1B0
loc_4B2DE:
jmp short $+2
loc_4B2E0:
cmp [rbp+var_50], 0
jz short loc_4B32E
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_50]
call _memmove
mov rcx, [rbp+var_50]
mov rax, [rbp+var_48]
sub rax, rcx
mov [rbp+var_48], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_40]
sub rax, rcx
mov [rbp+var_40], rax
mov [rbp+var_50], 0
loc_4B32E:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_38], rax
mov ecx, 0FFFFFFFFh
cmp rax, rcx
jnz short loc_4B363
mov eax, 0FFFFFFFFh
mov [rbp+var_8], rax
jmp loc_4B467
loc_4B363:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
add rsi, [rax+48h]
lea rdx, [rbp+var_38]
lea rcx, [rbp+var_20]
call _mariadb_uncompress
cmp al, 0
jz short loc_4B3CF
mov rax, [rbp+var_10]
mov byte ptr [rax+94h], 2
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, 1397h
xor eax, eax
mov ecx, eax
mov al, 0
call r8
mov eax, 0FFFFFFFFh
mov [rbp+var_8], rax
jmp loc_4B467
loc_4B3CF:
mov rax, [rbp+var_20]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
jmp loc_4B1B0
loc_4B3E0:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rcx, [rbp+var_40]
sub rcx, [rbp+var_48]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, [rbp+var_50]
add rcx, 4
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_48]
sub rax, [rbp+var_50]
sub rax, 4
mov [rbp+var_18], rax
cmp [rbp+var_51], 0
jz short loc_4B436
mov rax, [rbp+var_18]
sub rax, 4
mov [rbp+var_18], rax
loc_4B436:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax+81h], cl
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov byte ptr [rax+rcx], 0
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_4B467:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| long long ma_net_read(long long a1)
{
char v2; // [rsp+Fh] [rbp-51h]
long long v3; // [rsp+10h] [rbp-50h]
long long v4; // [rsp+18h] [rbp-48h]
long long v5; // [rsp+20h] [rbp-40h]
long long v6; // [rsp+28h] [rbp-38h] BYREF
long long v7; // [rsp+30h] [rbp-30h]
long long v8; // [rsp+38h] [rbp-28h]
long long v9; // [rsp+40h] [rbp-20h] BYREF
long long v10; // [rsp+48h] [rbp-18h]
long long v11; // [rsp+50h] [rbp-10h]
v11 = a1;
if ( *(_BYTE *)(a1 + 132) )
{
v4 = 0LL;
v3 = 0LL;
v2 = 0;
if ( *(_QWORD *)(v11 + 48) )
{
v5 = *(_QWORD *)(v11 + 64);
v4 = v5 - *(_QWORD *)(v11 + 48);
v3 = v4;
*(_BYTE *)(*(_QWORD *)(v11 + 8) + v4) = *(_BYTE *)(v11 + 129);
}
else
{
v5 = 0LL;
}
while ( 1 )
{
while ( 1 )
{
if ( (unsigned long long)(v5 - v4) >= 4 )
{
v6 = (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 2) << 16)
+ (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 1) << 8)
+ (unsigned int)*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8));
if ( !v6 )
{
v4 += 4LL;
goto LABEL_32;
}
if ( v6 + 4 <= (unsigned long long)(v5 - v4) )
break;
}
if ( v3 )
{
memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3);
v4 -= v3;
v5 -= v3;
v3 = 0LL;
}
*(_QWORD *)(v11 + 72) = v5;
v6 = ma_real_read(v11, &v9);
if ( v6 == 0xFFFFFFFFLL )
return 0xFFFFFFFFLL;
if ( mariadb_uncompress(v11, *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8), &v6, &v9) )
{
*(_BYTE *)(v11 + 148) = 2;
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)v11 + 80LL))(
*(_QWORD *)(*(_QWORD *)v11 + 64LL),
5015LL,
SQLSTATE_UNKNOWN,
0LL);
return 0xFFFFFFFFLL;
}
v5 += v9;
}
if ( v2 )
{
memmove(v4 + *(_QWORD *)(v11 + 8), v4 + *(_QWORD *)(v11 + 8) + 4, v5 - v4);
v5 -= 4LL;
v4 += v6;
}
else
{
v4 += v6 + 4;
}
if ( v6 != 0xFFFFFF )
break;
v2 = 1;
if ( v3 )
{
memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3);
v5 -= v3;
v3 = 0LL;
}
}
v2 = 0;
LABEL_32:
*(_QWORD *)(v11 + 64) = v5;
*(_QWORD *)(v11 + 48) = v5 - v4;
*(_QWORD *)(v11 + 32) = v3 + *(_QWORD *)(v11 + 8) + 4;
v10 = v4 - v3 - 4;
if ( v2 )
v10 -= 4LL;
*(_BYTE *)(v11 + 129) = *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10);
*(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0;
return v10;
}
else
{
v10 = ma_real_read(v11, &v9);
if ( v10 == 0xFFFFFF )
{
v8 = 0LL;
v7 = *(_QWORD *)(v11 + 72);
do
{
v8 += v10;
*(_QWORD *)(v11 + 72) += v10;
v10 = ma_real_read(v11, &v9);
}
while ( v10 == 0xFFFFFF );
*(_QWORD *)(v11 + 72) = v7;
if ( v10 != 0xFFFFFFFFLL )
v10 += v8;
}
*(_QWORD *)(v11 + 32) = *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8);
if ( v10 != 0xFFFFFFFFLL )
*(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0;
return v10;
}
}
| ma_net_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x84],0x0
JNZ 0x0014b138
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x0014b480
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0xffffff
JNZ 0x0014b0f8
MOV qword ptr [RBP + -0x28],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x30],RAX
LAB_0014b09c:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x48]
MOV qword ptr [RAX + 0x48],RCX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x0014b480
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0xffffff
JZ 0x0014b09c
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x18],RAX
JZ 0x0014b0f6
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
LAB_0014b0f6:
JMP 0x0014b0f8
LAB_0014b0f8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x18],RAX
JZ 0x0014b12b
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + RCX*0x1],0x0
LAB_0014b12b:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014b467
LAB_0014b138:
MOV qword ptr [RBP + -0x48],0x0
MOV qword ptr [RBP + -0x50],0x0
MOV byte ptr [RBP + -0x51],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x30],0x0
JNZ 0x0014b161
MOV qword ptr [RBP + -0x40],0x0
JMP 0x0014b1ae
LAB_0014b161:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX + 0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV DL,byte ptr [RAX + 0x81]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x40]
MOV RSI,qword ptr [RBP + -0x10]
SUB RCX,qword ptr [RSI + 0x30]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0014b1ae:
JMP 0x0014b1b0
LAB_0014b1b0:
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,qword ptr [RBP + -0x48]
CMP RAX,0x4
JC 0x0014b2e0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0014b211
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x4
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0014b3e0
LAB_0014b211:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV RCX,qword ptr [RBP + -0x40]
SUB RCX,qword ptr [RBP + -0x48]
CMP RAX,RCX
JA 0x0014b2de
CMP byte ptr [RBP + -0x51],0x0
JNZ 0x0014b242
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0014b283
LAB_0014b242:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
ADD RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x48]
ADD RSI,0x4
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x48]
CALL 0x001136f0
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,0x4
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
LAB_0014b283:
CMP qword ptr [RBP + -0x38],0xffffff
JZ 0x0014b296
MOV byte ptr [RBP + -0x51],0x0
JMP 0x0014b3e0
LAB_0014b296:
MOV byte ptr [RBP + -0x51],0x1
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0014b2d9
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x50]
CALL 0x001136f0
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],0x0
LAB_0014b2d9:
JMP 0x0014b1b0
LAB_0014b2de:
JMP 0x0014b2e0
LAB_0014b2e0:
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0014b32e
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x50]
CALL 0x001136f0
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],0x0
LAB_0014b32e:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x0014b480
MOV qword ptr [RBP + -0x38],RAX
MOV ECX,0xffffffff
CMP RAX,RCX
JNZ 0x0014b363
MOV EAX,0xffffffff
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014b467
LAB_0014b363:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
ADD RSI,qword ptr [RAX + 0x48]
LEA RDX,[RBP + -0x38]
LEA RCX,[RBP + -0x20]
CALL 0x00129e90
CMP AL,0x0
JZ 0x0014b3cf
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x94],0x2
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,[0x167150]
MOV RDX,qword ptr [RAX]
MOV ESI,0x1397
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL R8
MOV EAX,0xffffffff
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014b467
LAB_0014b3cf:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0014b1b0
LAB_0014b3e0:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RCX,qword ptr [RBP + -0x40]
SUB RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,qword ptr [RBP + -0x50]
ADD RCX,0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,qword ptr [RBP + -0x50]
SUB RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
CMP byte ptr [RBP + -0x51],0x0
JZ 0x0014b436
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
LAB_0014b436:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x81],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014b467:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
long ma_net_read(long *param_1)
{
bool bVar1;
char cVar2;
byte *pbVar3;
long local_58;
long local_50;
long local_48;
ulong local_40;
long local_38;
long local_30;
long local_28;
long local_20;
long *local_18;
local_18 = param_1;
if (*(char *)((long)param_1 + 0x84) == '\0') {
local_20 = ma_real_read(param_1,&local_28);
if (local_20 == 0xffffff) {
local_30 = 0;
local_38 = local_18[9];
local_20 = 0xffffff;
do {
local_30 = local_20 + local_30;
local_18[9] = local_20 + local_18[9];
local_20 = ma_real_read(local_18,&local_28);
} while (local_20 == 0xffffff);
local_18[9] = local_38;
if (local_20 != 0xffffffff) {
local_20 = local_30 + local_20;
}
}
local_18[4] = local_18[1] + local_18[9];
if (local_20 != 0xffffffff) {
*(int1 *)(local_18[4] + local_20) = 0;
}
return local_20;
}
local_50 = 0;
bVar1 = false;
if (param_1[6] == 0) {
local_48 = 0;
local_58 = local_50;
}
else {
local_48 = param_1[8];
local_58 = param_1[8] - param_1[6];
*(int1 *)(param_1[1] + (param_1[8] - param_1[6])) = *(int1 *)((long)param_1 + 0x81);
local_50 = local_58;
}
LAB_0014b1b0:
do {
if (3 < (ulong)(local_48 - local_50)) {
pbVar3 = (byte *)(local_18[1] + local_50);
local_40 = (ulong)((uint)*pbVar3 + (uint)pbVar3[1] * 0x100 + (uint)pbVar3[2] * 0x10000);
if (local_40 == 0) {
local_50 = local_50 + 4;
LAB_0014b3e0:
local_18[8] = local_48;
local_18[6] = local_48 - local_50;
local_18[4] = local_18[1] + local_58 + 4;
local_20 = (local_50 - local_58) + -4;
if (bVar1) {
local_20 = (local_50 - local_58) + -8;
}
*(int1 *)((long)local_18 + 0x81) = *(int1 *)(local_18[4] + local_20);
*(int1 *)(local_18[4] + local_20) = 0;
return local_20;
}
if (local_40 + 4 <= (ulong)(local_48 - local_50)) {
if (bVar1) {
memmove((void *)(local_18[1] + local_50),(void *)(local_18[1] + local_50 + 4),
local_48 - local_50);
local_48 = local_48 + -4;
local_50 = local_40 + local_50;
}
else {
local_50 = local_50 + local_40 + 4;
}
if (local_40 != 0xffffff) {
bVar1 = false;
goto LAB_0014b3e0;
}
bVar1 = true;
if (local_58 != 0) {
memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58);
local_48 = local_48 - local_58;
local_58 = 0;
}
goto LAB_0014b1b0;
}
}
if (local_58 != 0) {
memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58);
local_50 = local_50 - local_58;
local_48 = local_48 - local_58;
local_58 = 0;
}
local_18[9] = local_48;
local_40 = ma_real_read(local_18,&local_28);
if (local_40 == 0xffffffff) {
return 0xffffffff;
}
cVar2 = _mariadb_uncompress(local_18,local_18[1] + local_18[9],&local_40,&local_28);
if (cVar2 != '\0') {
*(int1 *)((long)local_18 + 0x94) = 2;
(**(code **)(*local_18 + 0x50))(*(int8 *)(*local_18 + 0x40),0x1397,SQLSTATE_UNKNOWN,0);
return 0xffffffff;
}
local_48 = local_28 + local_48;
} while( true );
}
|
|
5,467 | ftxui::EatCodePoint(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&, unsigned long, unsigned long*, unsigned int*) | Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/string.cpp | bool EatCodePoint(const std::wstring& input,
size_t start,
size_t* end,
uint32_t* ucs) {
if (start >= input.size()) {
*end = start + 1;
return false;
}
// On linux wstring uses the UTF32 encoding:
if constexpr (sizeof(wchar_t) == 4) {
*ucs = input[start]; // NOLINT
*end = start + 1;
return true;
}
// On windows, wstring uses the UTF16 encoding:
int32_t C0 = input[start]; // NOLINT
// 1 word size:
if (C0 < 0xd800 || C0 >= 0xdc00) { // NOLINT
*ucs = C0;
*end = start + 1;
return true;
}
// 2 word size:
if (start + 1 >= input.size()) {
*end = start + 2;
return false;
}
int32_t C1 = input[start + 1]; // NOLINT
*ucs = ((C0 & 0x3ff) << 10) + (C1 & 0x3ff) + 0x10000; // NOLINT
*end = start + 2;
return true;
} | O0 | cpp | ftxui::EatCodePoint(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&, unsigned long, unsigned long*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0xd420
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jb 0x8d26a
movq -0x18(%rbp), %rcx
addq $0x1, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x8d292
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xd980
movl (%rax), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rcx
addq $0x1, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN5ftxui12EatCodePointERKNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEEmPmPj:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
call __ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE4sizeEv; std::wstring::size(void)
mov rcx, rax
mov rax, [rbp+var_38]
cmp rax, rcx
jb short loc_8D26A
mov rcx, [rbp+var_18]
add rcx, 1
mov rax, [rbp+var_20]
mov [rax], rcx
mov [rbp+var_1], 0
jmp short loc_8D292
loc_8D26A:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEixEm; std::wstring::operator[](ulong)
mov ecx, [rax]
mov rax, [rbp+var_28]
mov [rax], ecx
mov rcx, [rbp+var_18]
add rcx, 1
mov rax, [rbp+var_20]
mov [rax], rcx
mov [rbp+var_1], 1
loc_8D292:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
| char ftxui::EatCodePoint(long long a1, unsigned long long a2, _QWORD *a3, _DWORD *a4)
{
if ( a2 < std::wstring::size(a1) )
{
*a4 = *(_DWORD *)std::wstring::operator[](a1, a2);
*a3 = a2 + 1;
return 1;
}
else
{
*a3 = a2 + 1;
return 0;
}
}
| EatCodePoint:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010d420
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,RCX
JC 0x0018d26a
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0018d292
LAB_0018d26a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0010d980
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV byte ptr [RBP + -0x1],0x1
LAB_0018d292:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
/* ftxui::EatCodePoint(std::__cxx11::wstring const&, unsigned long, unsigned long*, unsigned int*)
*/
bool ftxui::EatCodePoint(wstring *param_1,ulong param_2,ulong *param_3,uint *param_4)
{
ulong uVar1;
uint *puVar2;
uVar1 = std::__cxx11::wstring::size();
if (param_2 < uVar1) {
puVar2 = (uint *)std::__cxx11::wstring::operator[]((ulong)param_1);
*param_4 = *puVar2;
*param_3 = param_2 + 1;
}
else {
*param_3 = param_2 + 1;
}
return param_2 < uVar1;
}
|
|
5,468 | my_strnncollsp_padspace_bin | eloqsql/strings/ctype-bin.c | int my_strnncollsp_padspace_bin(const uchar *str, size_t length)
{
for ( ; length ; str++, length--)
{
if (*str < ' ')
return -1;
else if (*str > ' ')
return 1;
}
return 0;
} | O0 | c | my_strnncollsp_padspace_bin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x94a1b
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jge 0x949e8
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x94a22
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jle 0x949fd
movl $0x1, -0x4(%rbp)
jmp 0x94a22
jmp 0x949ff
jmp 0x94a01
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x949cc
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
| my_strnncollsp_padspace_bin:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
loc_949CC:
cmp [rbp+var_18], 0
jz short loc_94A1B
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jge short loc_949E8
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_94A22
loc_949E8:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jle short loc_949FD
mov [rbp+var_4], 1
jmp short loc_94A22
loc_949FD:
jmp short $+2
loc_949FF:
jmp short $+2
loc_94A01:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
jmp short loc_949CC
loc_94A1B:
mov [rbp+var_4], 0
loc_94A22:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_strnncollsp_padspace_bin(unsigned __int8 *a1, long long a2)
{
while ( a2 )
{
if ( *a1 < 0x20u )
return (unsigned int)-1;
if ( *a1 > 0x20u )
return 1;
++a1;
--a2;
}
return 0;
}
| my_strnncollsp_padspace_bin:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LAB_001949cc:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00194a1b
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x20
JGE 0x001949e8
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00194a22
LAB_001949e8:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x20
JLE 0x001949fd
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00194a22
LAB_001949fd:
JMP 0x001949ff
LAB_001949ff:
JMP 0x00194a01
LAB_00194a01:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001949cc
LAB_00194a1b:
MOV dword ptr [RBP + -0x4],0x0
LAB_00194a22:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_strnncollsp_padspace_bin(byte *param_1,long param_2)
{
long local_20;
byte *local_18;
local_20 = param_2;
local_18 = param_1;
while( true ) {
if (local_20 == 0) {
return 0;
}
if (*local_18 < 0x20) break;
if (0x20 < *local_18) {
return 1;
}
local_18 = local_18 + 1;
local_20 = local_20 + -1;
}
return 0xffffffff;
}
|
|
5,469 | LefDefParser::lefMalloc(unsigned long) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lef_keywords.cpp | void *
lefMalloc(size_t lef_size)
{
void *mallocVar;
if (lefSettings->MallocFunction)
return (*lefSettings->MallocFunction)(lef_size);
else {
mallocVar = (void*) malloc(lef_size);
if (!mallocVar) {
fprintf(stderr, "ERROR (LEFPARS-1009): Not enough memory, stop parsing!\n");
exit(1);
}
return mallocVar;
}
} | O0 | cpp | LefDefParser::lefMalloc(unsigned long):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x761c8(%rip), %rax # 0xc5728
movq (%rax), %rax
cmpq $0x0, 0x100(%rax)
je 0x4f58e
leaq 0x761b4(%rip), %rax # 0xc5728
movq (%rax), %rax
movq 0x100(%rax), %rax
movq 0x8(%rsp), %rcx
movl %ecx, %edi
callq *%rax
movq %rax, 0x10(%rsp)
jmp 0x4f5ce
movq 0x8(%rsp), %rdi
callq 0x2330
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x4f5c5
movq 0x72a1e(%rip), %rax # 0xc1fc8
movq (%rax), %rdi
leaq 0x49048(%rip), %rsi # 0x985fc
movb $0x0, %al
callq 0x2370
movl $0x1, %edi
callq 0x2300
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| _ZN12LefDefParser9lefMallocEm:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
cmp qword ptr [rax+100h], 0
jz short loc_4F58E
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
mov rax, [rax+100h]
mov rcx, [rsp+18h+var_10]
mov edi, ecx
call rax
mov [rsp+18h+var_8], rax
jmp short loc_4F5CE
loc_4F58E:
mov rdi, [rsp+18h+var_10]
call _malloc
mov [rsp+18h+var_18], rax
cmp [rsp+18h+var_18], 0
jnz short loc_4F5C5
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aErrorLefpars10_0; "ERROR (LEFPARS-1009): Not enough memory"...
mov al, 0
call _fprintf
mov edi, 1
call _exit
loc_4F5C5:
mov rax, [rsp+18h+var_18]
mov [rsp+18h+var_8], rax
loc_4F5CE:
mov rax, [rsp+18h+var_8]
add rsp, 18h
retn
| long long LefDefParser::lefMalloc(LefDefParser *this)
{
long long v2; // [rsp+0h] [rbp-18h]
if ( *((_QWORD *)LefDefParser::lefSettings + 32) )
return (*((long long ( **)(_QWORD))LefDefParser::lefSettings + 32))((unsigned int)this);
v2 = malloc(this);
if ( !v2 )
{
fprintf(stderr, "ERROR (LEFPARS-1009): Not enough memory, stop parsing!\n");
exit(1LL);
}
return v2;
}
| lefMalloc:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
LEA RAX,[0x1c5728]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x100],0x0
JZ 0x0014f58e
LEA RAX,[0x1c5728]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x100]
MOV RCX,qword ptr [RSP + 0x8]
MOV EDI,ECX
CALL RAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0014f5ce
LAB_0014f58e:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00102330
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP],0x0
JNZ 0x0014f5c5
MOV RAX,qword ptr [0x001c1fc8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1985fc]
MOV AL,0x0
CALL 0x00102370
MOV EDI,0x1
CALL 0x00102300
LAB_0014f5c5:
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x10],RAX
LAB_0014f5ce:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x18
RET
|
/* LefDefParser::lefMalloc(unsigned long) */
void * LefDefParser::lefMalloc(ulong param_1)
{
void *local_8;
if (*(long *)(lefSettings + 0x100) == 0) {
local_8 = malloc(param_1);
if (local_8 == (void *)0x0) {
fprintf(*(FILE **)PTR_stderr_001c1fc8,
"ERROR (LEFPARS-1009): Not enough memory, stop parsing!\n");
/* WARNING: Subroutine does not return */
exit(1);
}
}
else {
local_8 = (void *)(**(code **)(lefSettings + 0x100))(param_1 & 0xffffffff);
}
return local_8;
}
|
|
5,470 | js_std_file_fileno | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_std_file_fileno(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
FILE *f = js_std_file_get(ctx, this_val);
if (!f)
return JS_EXCEPTION;
return JS_NewInt32(ctx, fileno(f));
} | O0 | c | js_std_file_fileno:
subq $0x68, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movl %ecx, 0x1c(%rsp)
movq %r8, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x13a80
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x130a0
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0x130e5
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
callq 0xe5f0
movq (%rsp), %rcx
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| js_std_file_fileno:
sub rsp, 68h
mov [rsp+68h+var_40], rsi
mov [rsp+68h+var_38], rdx
mov [rsp+68h+var_48], rdi
mov [rsp+68h+var_4C], ecx
mov [rsp+68h+var_58], r8
mov rdi, [rsp+68h+var_48]
mov rsi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_38]
call js_std_file_get
mov [rsp+68h+var_60], rax
cmp [rsp+68h+var_60], 0
jnz short loc_130A0
mov dword ptr [rsp+68h+var_30], 0
mov [rsp+68h+var_28], 6
jmp short loc_130E5
loc_130A0:
mov rax, [rsp+68h+var_48]
mov [rsp+68h+var_68], rax
mov rdi, [rsp+68h+var_60]
call _fileno
mov rcx, [rsp+68h+var_68]
mov [rsp+68h+var_18], rcx
mov [rsp+68h+var_1C], eax
mov eax, [rsp+68h+var_1C]
mov dword ptr [rsp+68h+var_10], eax
mov [rsp+68h+var_8], 0
mov rcx, [rsp+68h+var_10]
mov rax, [rsp+68h+var_8]
mov [rsp+68h+var_30], rcx
mov [rsp+68h+var_28], rax
loc_130E5:
mov rax, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
add rsp, 68h
retn
| long long js_std_file_fileno(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+8h] [rbp-60h]
long long v5; // [rsp+38h] [rbp-30h]
long long v6; // [rsp+58h] [rbp-10h]
v4 = js_std_file_get(a1, a2, a3);
if ( v4 )
{
LODWORD(v6) = fileno(v4);
return v6;
}
else
{
LODWORD(v5) = 0;
}
return v5;
}
| js_std_file_fileno:
SUB RSP,0x68
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ECX
MOV qword ptr [RSP + 0x10],R8
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x00113a80
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x001130a0
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x001130e5
LAB_001130a0:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0010e5f0
MOV RCX,qword ptr [RSP]
MOV qword ptr [RSP + 0x50],RCX
MOV dword ptr [RSP + 0x4c],EAX
MOV EAX,dword ptr [RSP + 0x4c]
MOV dword ptr [RSP + 0x58],EAX
MOV qword ptr [RSP + 0x60],0x0
MOV RCX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],RAX
LAB_001130e5:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
ADD RSP,0x68
RET
|
int1 [16] js_std_file_fileno(int8 param_1,int8 param_2,int8 param_3)
{
int1 auVar1 [16];
FILE *__stream;
int4 local_30;
int4 uStack_2c;
int8 local_28;
int4 uStack_c;
__stream = (FILE *)js_std_file_get(param_1,param_2,param_3);
if (__stream == (FILE *)0x0) {
local_30 = 0;
local_28 = 6;
}
else {
local_30 = fileno(__stream);
uStack_2c = uStack_c;
local_28 = 0;
}
auVar1._4_4_ = uStack_2c;
auVar1._0_4_ = local_30;
auVar1._8_8_ = local_28;
return auVar1;
}
|
|
5,471 | my_block_write | eloqsql/mysys/mf_iocache.c | int my_block_write(IO_CACHE *info, const uchar *Buffer, size_t Count,
my_off_t pos)
{
size_t length;
int error=0;
/*
Assert that we cannot come here with a shared cache. If we do one
day, we might need to add a call to copy_to_read_buffer().
*/
DBUG_ASSERT(!info->share);
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
if (pos < info->pos_in_file)
{
/* Of no overlap, write everything without buffering */
if (pos + Count <= info->pos_in_file)
return (int)mysql_file_pwrite(info->file, Buffer, Count, pos,
info->myflags | MY_NABP);
/* Write the part of the block that is before buffer */
length= (uint) (info->pos_in_file - pos);
if (mysql_file_pwrite(info->file, Buffer, length, pos, info->myflags | MY_NABP))
info->error= error= -1;
Buffer+=length;
pos+= length;
Count-= length;
}
/* Check if we want to write inside the used part of the buffer.*/
length= (size_t) (info->write_end - info->buffer);
if (pos < info->pos_in_file + length)
{
size_t offset= (size_t) (pos - info->pos_in_file);
length-=offset;
if (length > Count)
length=Count;
memcpy(info->buffer+offset, Buffer, length);
Buffer+=length;
Count-= length;
/* Fix length of buffer if the new data was larger */
if (info->buffer+length > info->write_pos)
info->write_pos=info->buffer+length;
if (!Count)
return (error);
}
/* Write at the end of the current buffer; This is the normal case */
if (_my_b_write(info, Buffer, Count))
error= -1;
return error;
} | O0 | c | my_block_write:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x34(%rbp)
jmp 0xe4df1
jmp 0xe4df3
jmp 0xe4df5
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0xe4ee6
movq -0x28(%rbp), %rax
addq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
ja 0xe4e59
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
orq $0x4, %rax
leaq 0x78593(%rip), %rdi # 0x15d3d6
movl $0x673, %esi # imm = 0x673
movq %rax, (%rsp)
callq 0xe4fe0
movl %eax, -0x4(%rbp)
jmp 0xe4fd7
movq -0x10(%rbp), %rax
movq (%rax), %rax
subq -0x28(%rbp), %rax
movl %eax, %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
orq $0x4, %rax
leaq 0x78540(%rip), %rdi # 0x15d3d6
movl $0x676, %esi # imm = 0x676
movq %rax, (%rsp)
callq 0xe4fe0
cmpq $0x0, %rax
je 0xe4ebf
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
addq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jae 0xe4fb4
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
subq (%rcx), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0xe4f45
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
addq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x2a0c0
movq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
addq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jbe 0xe4fa3
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
addq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
cmpq $0x0, -0x20(%rbp)
jne 0xe4fb2
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xe4fd7
jmp 0xe4fb4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xe3e70
cmpl $0x0, %eax
je 0xe4fd1
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
| my_block_write:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_34], 0
jmp short $+2
loc_E4DF1:
jmp short $+2
loc_E4DF3:
jmp short $+2
loc_E4DF5:
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jnb loc_E4EE6
mov rax, [rbp+var_28]
add rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
ja short loc_E4E59
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_20]
mov r9, [rbp+var_28]
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
or rax, 4
lea rdi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 673h
mov [rsp+50h+var_50], rax
call inline_mysql_file_pwrite_3
mov [rbp+var_4], eax
jmp loc_E4FD7
loc_E4E59:
mov rax, [rbp+var_10]
mov rax, [rax]
sub rax, [rbp+var_28]
mov eax, eax
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_30]
mov r9, [rbp+var_28]
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
or rax, 4
lea rdi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 676h
mov [rsp+50h+var_50], rax
call inline_mysql_file_pwrite_3
cmp rax, 0
jz short loc_E4EBF
mov [rbp+var_34], 0FFFFFFFFh
mov rax, [rbp+var_10]
mov dword ptr [rax+0E4h], 0FFFFFFFFh
loc_E4EBF:
mov rax, [rbp+var_30]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rax, [rbp+var_30]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
loc_E4EE6:
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+20h]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
add rcx, [rbp+var_30]
cmp rax, rcx
jnb loc_E4FB4
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
sub rax, [rcx]
mov [rbp+var_40], rax
mov rcx, [rbp+var_40]
mov rax, [rbp+var_30]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jbe short loc_E4F45
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
loc_E4F45:
mov rax, [rbp+var_10]
mov rdi, [rax+20h]
add rdi, [rbp+var_40]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
call _memcpy
mov rax, [rbp+var_30]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
add rax, [rbp+var_30]
mov rcx, [rbp+var_10]
cmp rax, [rcx+40h]
jbe short loc_E4FA3
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
add rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
loc_E4FA3:
cmp [rbp+var_20], 0
jnz short loc_E4FB2
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_E4FD7
loc_E4FB2:
jmp short $+2
loc_E4FB4:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _my_b_write
cmp eax, 0
jz short loc_E4FD1
mov [rbp+var_34], 0FFFFFFFFh
loc_E4FD1:
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_E4FD7:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_block_write(long long a1, const char *a2, unsigned long long a3, unsigned long long a4)
{
unsigned long long v5; // [rsp+10h] [rbp-40h]
unsigned int v6; // [rsp+1Ch] [rbp-34h]
long long v7; // [rsp+20h] [rbp-30h]
long long v8; // [rsp+20h] [rbp-30h]
unsigned long long v9; // [rsp+20h] [rbp-30h]
unsigned long long v10; // [rsp+28h] [rbp-28h]
unsigned long long v11; // [rsp+30h] [rbp-20h]
const char *v12; // [rsp+38h] [rbp-18h]
v12 = a2;
v11 = a3;
v10 = a4;
v6 = 0;
if ( a4 < *(_QWORD *)a1 )
{
if ( a3 + a4 <= *(_QWORD *)a1 )
return (unsigned int)inline_mysql_file_pwrite_3(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1651,
*(_DWORD *)(a1 + 212),
(_DWORD)a2,
a3,
a4,
*(_QWORD *)(a1 + 248) | 4LL);
v7 = (unsigned int)*(_QWORD *)a1 - (unsigned int)a4;
if ( inline_mysql_file_pwrite_3(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1654,
*(_DWORD *)(a1 + 212),
(_DWORD)a2,
(unsigned int)*(_QWORD *)a1 - (unsigned int)a4,
a4,
*(_QWORD *)(a1 + 248) | 4LL) )
{
v6 = -1;
*(_DWORD *)(a1 + 228) = -1;
}
v12 = &a2[v7];
v10 += v7;
v11 -= v7;
}
v8 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 32);
if ( v10 >= v8 + *(_QWORD *)a1 )
goto LABEL_20;
v5 = v10 - *(_QWORD *)a1;
v9 = v8 - v5;
if ( v9 > v11 )
v9 = v11;
memcpy(v5 + *(_QWORD *)(a1 + 32), v12, v9);
v12 += v9;
v11 -= v9;
if ( v9 + *(_QWORD *)(a1 + 32) > *(_QWORD *)(a1 + 64) )
*(_QWORD *)(a1 + 64) = v9 + *(_QWORD *)(a1 + 32);
if ( v11 )
{
LABEL_20:
if ( (unsigned int)my_b_write(a1, v12, v11) )
return (unsigned int)-1;
return v6;
}
else
{
return v6;
}
}
| my_block_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x34],0x0
JMP 0x001e4df1
LAB_001e4df1:
JMP 0x001e4df3
LAB_001e4df3:
JMP 0x001e4df5
LAB_001e4df5:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JNC 0x001e4ee6
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JA 0x001e4e59
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x20]
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
OR RAX,0x4
LEA RDI,[0x25d3d6]
MOV ESI,0x673
MOV qword ptr [RSP],RAX
CALL 0x001e4fe0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e4fd7
LAB_001e4e59:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
SUB RAX,qword ptr [RBP + -0x28]
MOV EAX,EAX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
OR RAX,0x4
LEA RDI,[0x25d3d6]
MOV ESI,0x676
MOV qword ptr [RSP],RAX
CALL 0x001e4fe0
CMP RAX,0x0
JZ 0x001e4ebf
MOV dword ptr [RBP + -0x34],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe4],0xffffffff
LAB_001e4ebf:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001e4ee6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
ADD RCX,qword ptr [RBP + -0x30]
CMP RAX,RCX
JNC 0x001e4fb4
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX]
MOV qword ptr [RBP + -0x40],RAX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001e4f45
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
LAB_001e4f45:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x20]
ADD RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x0012a0c0
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
ADD RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x40]
JBE 0x001e4fa3
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
ADD RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
LAB_001e4fa3:
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001e4fb2
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e4fd7
LAB_001e4fb2:
JMP 0x001e4fb4
LAB_001e4fb4:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001e3e70
CMP EAX,0x0
JZ 0x001e4fd1
MOV dword ptr [RBP + -0x34],0xffffffff
LAB_001e4fd1:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_001e4fd7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4 my_block_write(ulong *param_1,void *param_2,ulong param_3,ulong param_4)
{
int4 uVar1;
int iVar2;
long lVar3;
int4 local_3c;
size_t local_38;
ulong local_30;
ulong local_28;
void *local_20;
local_3c = 0;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
if (param_4 < *param_1) {
if (param_4 + param_3 <= *param_1) {
uVar1 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x673,
*(int4 *)((long)param_1 + 0xd4),param_2,param_3,param_4,
param_1[0x1f] | 4);
return uVar1;
}
local_28 = (ulong)(uint)((int)*param_1 - (int)param_4);
lVar3 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x676,
*(int4 *)((long)param_1 + 0xd4),param_2,local_28,param_4,
param_1[0x1f] | 4);
if (lVar3 != 0) {
local_3c = 0xffffffff;
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
}
local_20 = (void *)(local_28 + (long)param_2);
local_30 = local_28 + param_4;
local_28 = param_3 - local_28;
}
if (local_30 < *param_1 + (param_1[9] - param_1[4])) {
local_38 = (param_1[9] - param_1[4]) - (local_30 - *param_1);
if (local_28 < local_38) {
local_38 = local_28;
}
memcpy((void *)(param_1[4] + (local_30 - *param_1)),local_20,local_38);
local_20 = (void *)(local_38 + (long)local_20);
local_28 = local_28 - local_38;
if (param_1[8] < param_1[4] + local_38) {
param_1[8] = param_1[4] + local_38;
}
if (local_28 == 0) {
return local_3c;
}
}
iVar2 = _my_b_write(param_1,local_20,local_28);
if (iVar2 != 0) {
local_3c = 0xffffffff;
}
return local_3c;
}
|
|
5,472 | my_hash_sort_ucs2_nopad_bin | eloqsql/strings/ctype-ucs2.c | static void
my_hash_sort_ucs2_nopad_bin(CHARSET_INFO *cs __attribute__((unused)),
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
const uchar *end= key + len;
register ulong m1= *nr1, m2= *nr2;
for ( ; key < end ; key++)
{
MY_HASH_ADD(m1, m2, (uint)*key);
}
*nr1= m1;
*nr2= m2;
} | O0 | c | my_hash_sort_ucs2_nopad_bin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x5512e
jmp 0x550e6
movq -0x38(%rbp), %rax
andq $0x3f, %rax
addq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x38(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
jmp 0x55120
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x550da
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_hash_sort_ucs2_nopad_bin:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_40], rax
loc_550DA:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_30]
jnb short loc_5512E
jmp short $+2
loc_550E6:
mov rax, [rbp+var_38]
and rax, 3Fh
add rax, [rbp+var_40]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_38]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, [rbp+var_40]
add rax, 3
mov [rbp+var_40], rax
jmp short $+2
loc_55120:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_550DA
loc_5512E:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
mov [rax], rcx
pop rbp
retn
| _QWORD * my_hash_sort_ucs2_nopad_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5)
{
_QWORD *result; // rax
long long v6; // [rsp+0h] [rbp-40h]
long long v7; // [rsp+8h] [rbp-38h]
unsigned __int8 *v8; // [rsp+30h] [rbp-10h]
v8 = a2;
v7 = *a4;
v6 = *a5;
while ( v8 < &a2[a3] )
{
v7 ^= (v7 << 8) + *v8 * (v6 + (v7 & 0x3F));
v6 += 3LL;
++v8;
}
*a4 = v7;
result = a5;
*a5 = v6;
return result;
}
| my_hash_sort_ucs2_nopad_bin:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
LAB_001550da:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0015512e
JMP 0x001550e6
LAB_001550e6:
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00155120
LAB_00155120:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001550da
LAB_0015512e:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void my_hash_sort_ucs2_nopad_bin
(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
long local_48;
ulong local_40;
byte *local_18;
local_40 = *param_4;
local_48 = *param_5;
for (local_18 = param_2; local_18 < param_2 + param_3; local_18 = local_18 + 1) {
local_40 = ((local_40 & 0x3f) + local_48) * (ulong)*local_18 + local_40 * 0x100 ^ local_40;
local_48 = local_48 + 3;
}
*param_4 = local_40;
*param_5 = local_48;
return;
}
|
|
5,473 | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | llama.cpp/common/minja/minja.hpp | TextTemplateToken(const Location & loc, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Text, loc, pre, post), text(t) {} | O3 | cpp | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x72ace(%rip), %r12 # 0x165910
addq $0x10, %r12
movq %r12, (%rdi)
movl $0x0, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0xf2e79
movq 0x7411d(%rip), %rdi # 0x166f88
cmpb $0x0, (%rdi)
je 0xf2e75
incl 0x8(%rax)
jmp 0xf2e79
lock
incl 0x8(%rax)
leaq 0x18(%rbx), %r14
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0x73596(%rip), %rax # 0x166428
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
callq 0x2d688
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r12, (%rbx)
movq %r14, %rdi
callq 0x7620e
movq %r15, %rdi
callq 0x21b80
| _ZN5minja17TextTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
lea r12, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r12, 10h
mov [rdi], r12
mov dword ptr [rdi+8], 0
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_F2E79
mov rdi, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rdi], 0
jz short loc_F2E75
inc dword ptr [rax+8]
jmp short loc_F2E79
loc_F2E75:
lock inc dword ptr [rax+8]
loc_F2E79:
lea r14, [rbx+18h]
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja17TextTemplateTokenE; `vtable for'minja::TextTemplateToken
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+30h]
lea rax, [rbx+40h]
mov [rbx+30h], rax
mov rsi, [r8]
mov rdx, [r8+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)
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r15, rax
mov [rbx], r12
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r15
call __Unwind_Resume
| long long minja::TextTemplateToken::TextTemplateToken(long long a1, _QWORD *a2, int a3, int a4, long long a5)
{
long long v5; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 0;
*(_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::TextTemplateToken + 2;
*(_QWORD *)(a1 + 48) = a1 + 64;
return std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
}
| TextTemplateToken:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R12,[0x265910]
ADD R12,0x10
MOV qword ptr [RDI],R12
MOV dword ptr [RDI + 0x8],0x0
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 0x001f2e79
MOV RDI,qword ptr [0x00266f88]
CMP byte ptr [RDI],0x0
JZ 0x001f2e75
INC dword ptr [RAX + 0x8]
JMP 0x001f2e79
LAB_001f2e75:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001f2e79:
LEA R14,[RBX + 0x18]
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x266428]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x30]
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
ADD RDX,RSI
LAB_001f2eaf:
CALL 0x0012d688
LAB_001f2eb4:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::__cxx11::string const&) */
void __thiscall
minja::TextTemplateToken::TextTemplateToken
(TextTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
long *param_5)
{
long lVar1;
*(int ***)this = &PTR__TemplateToken_00265920;
*(int4 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00266f88 == '\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__TextTemplateToken_00266438;
*(TextTemplateToken **)(this + 0x30) = this + 0x40;
/* try { // try from 001f2eaf to 001f2eb3 has its CatchHandler @ 001f2ec0 */
std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5);
return;
}
|
|
5,474 | ggml_vec_mad_f32_unroll | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | inline static void ggml_vec_mad_f32_unroll(const int n, const int xs, const int vs, float * restrict y, const float * restrict xv, const float * restrict vv) {
const float * restrict x[GGML_VEC_MAD_UNROLL];
const float * restrict v[GGML_VEC_MAD_UNROLL];
for (int i = 0; i < GGML_VEC_MAD_UNROLL; ++i) {
x[i] = (const float *) ((const char *) xv + i*xs);
v[i] = (const float *) ((const char *) vv + i*vs);
}
#if defined(GGML_SIMD)
const int np = (n & ~(GGML_F32_STEP - 1));
GGML_F32_VEC vx[GGML_VEC_MAD_UNROLL];
for (int k = 0; k < GGML_VEC_MAD_UNROLL; ++k) {
vx[k] = GGML_F32_VEC_SET1(v[k][0]);
}
GGML_F32_VEC ax[GGML_VEC_MAD_UNROLL][GGML_F32_ARR];
GGML_F32_VEC ay[GGML_F32_ARR];
for (int i = 0; i < np; i += GGML_F32_STEP) {
for (int j = 0; j < GGML_F32_ARR; j++) {
ay[j] = GGML_F32_VEC_LOAD(y + i + j*GGML_F32_EPR);
for (int k = 0; k < GGML_VEC_MAD_UNROLL; ++k) {
ax[k][j] = GGML_F32_VEC_LOAD(x[k] + i + j*GGML_F32_EPR);
ay[j] = GGML_F32_VEC_FMA(ay[j], ax[k][j], vx[k]);
}
GGML_F32_VEC_STORE(y + i + j*GGML_F32_EPR, ay[j]);
}
}
// leftovers
for (int k = 0; k < GGML_VEC_MAD_UNROLL; ++k) {
for (int i = np; i < n; ++i) {
y[i] += x[k][i]*v[k][0];
}
}
#else
// scalar
for (int k = 0; k < GGML_VEC_MAD_UNROLL; ++k) {
for (int i = 0; i < n; ++i) {
y[i] += x[k][i]*v[k][0];
}
}
#endif
} | O0 | c | ggml_vec_mad_f32_unroll:
pushq %rbp
movq %rsp, %rbp
andq $-0x40, %rsp
subq $0x2dc0, %rsp # imm = 0x2DC0
movl %edi, 0x2bec(%rsp)
movl %esi, 0x2be8(%rsp)
movl %edx, 0x2be4(%rsp)
movq %rcx, 0x2bd8(%rsp)
movq %r8, 0x2bd0(%rsp)
movq %r9, 0x2bc8(%rsp)
movl $0x0, 0x29bc(%rsp)
cmpl $0x20, 0x29bc(%rsp)
jge 0x2b6ec
movq 0x2bd0(%rsp), %rcx
movl 0x29bc(%rsp), %eax
imull 0x2be8(%rsp), %eax
cltq
addq %rax, %rcx
movslq 0x29bc(%rsp), %rax
movq %rcx, 0x2ac0(%rsp,%rax,8)
movq 0x2bc8(%rsp), %rcx
movl 0x29bc(%rsp), %eax
imull 0x2be4(%rsp), %eax
cltq
addq %rax, %rcx
movslq 0x29bc(%rsp), %rax
movq %rcx, 0x29c0(%rsp,%rax,8)
movl 0x29bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x29bc(%rsp)
jmp 0x2b677
movl 0x2bec(%rsp), %eax
andl $-0x40, %eax
movl %eax, 0x29b8(%rsp)
movl $0x0, 0x217c(%rsp)
cmpl $0x20, 0x217c(%rsp)
jge 0x2b780
movslq 0x217c(%rsp), %rax
movq 0x29c0(%rsp,%rax,8), %rax
vmovss (%rax), %xmm0
vmovss %xmm0, 0x2d3c(%rsp)
vbroadcastss 0x2d3c(%rsp), %zmm0
vmovaps %zmm0, 0x2cc0(%rsp)
vmovaps 0x2cc0(%rsp), %zmm0
movslq 0x217c(%rsp), %rcx
leaq 0x2180(%rsp), %rax
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps %zmm0, (%rax)
movl 0x217c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x217c(%rsp)
jmp 0x2b708
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
cmpl 0x29b8(%rsp), %eax
jge 0x2b9c7
movl $0x0, 0x38(%rsp)
cmpl $0x4, 0x38(%rsp)
jge 0x2b9b5
movq 0x2bd8(%rsp), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0x38(%rsp), %ecx
shll $0x4, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x2bf8(%rsp)
movq 0x2bf8(%rsp), %rax
vmovups (%rax), %zmm0
movslq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %rax
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps %zmm0, (%rax)
movl $0x0, 0x34(%rsp)
cmpl $0x20, 0x34(%rsp)
jge 0x2b93d
movslq 0x34(%rsp), %rax
movq 0x2ac0(%rsp,%rax,8), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0x38(%rsp), %ecx
shll $0x4, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x2bf0(%rsp)
movq 0x2bf0(%rsp), %rax
vmovups (%rax), %zmm0
movslq 0x34(%rsp), %rcx
leaq 0x140(%rsp), %rax
shlq $0x8, %rcx
addq %rcx, %rax
movslq 0x38(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps %zmm0, (%rax)
movslq 0x34(%rsp), %rcx
leaq 0x140(%rsp), %rax
shlq $0x8, %rcx
addq %rcx, %rax
movslq 0x38(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps (%rax), %zmm2
movslq 0x34(%rsp), %rcx
leaq 0x2180(%rsp), %rax
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps (%rax), %zmm1
movslq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %rax
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps (%rax), %zmm0
vmovaps %zmm2, 0x2c80(%rsp)
vmovaps %zmm1, 0x2c40(%rsp)
vmovaps %zmm0, 0x2c00(%rsp)
vmovaps 0x2c80(%rsp), %zmm1
vmovaps 0x2c40(%rsp), %zmm0
vmovaps 0x2c00(%rsp), %zmm2
vfmadd213ps %zmm2, %zmm1, %zmm0 # zmm0 = (zmm1 * zmm0) + zmm2
movslq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %rax
shlq $0x6, %rcx
addq %rcx, %rax
vmovaps %zmm0, (%rax)
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x2b806
movq 0x2bd8(%rsp), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0x38(%rsp), %ecx
shll $0x4, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movslq 0x38(%rsp), %rdx
leaq 0x40(%rsp), %rcx
shlq $0x6, %rdx
addq %rdx, %rcx
vmovaps (%rcx), %zmm0
movq %rax, 0x2da8(%rsp)
vmovaps %zmm0, 0x2d40(%rsp)
vmovaps 0x2d40(%rsp), %zmm0
movq 0x2da8(%rsp), %rax
vmovups %zmm0, (%rax)
movl 0x38(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x38(%rsp)
jmp 0x2b7a1
jmp 0x2b9b7
movl 0x3c(%rsp), %eax
addl $0x40, %eax
movl %eax, 0x3c(%rsp)
jmp 0x2b788
movl $0x0, 0x30(%rsp)
cmpl $0x20, 0x30(%rsp)
jge 0x2ba4e
movl 0x29b8(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x2bec(%rsp), %eax
jge 0x2ba3f
movslq 0x30(%rsp), %rax
movq 0x2ac0(%rsp,%rax,8), %rax
movslq 0x2c(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm1
movslq 0x30(%rsp), %rax
movq 0x29c0(%rsp,%rax,8), %rax
vmovss (%rax), %xmm0
movq 0x2bd8(%rsp), %rax
movslq 0x2c(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm2
vfmadd213ss %xmm2, %xmm1, %xmm0 # xmm0 = (xmm1 * xmm0) + xmm2
vmovss %xmm0, (%rax,%rcx,4)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x2b9e1
jmp 0x2ba41
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x2b9cf
movq %rbp, %rsp
popq %rbp
vzeroupper
retq
nopw %cs:(%rax,%rax)
| ggml_vec_mad_f32_unroll:
push rbp
mov rbp, rsp
and rsp, 0FFFFFFFFFFFFFFC0h
sub rsp, 2DC0h
mov [rsp+2DC0h+var_1D4], edi
mov [rsp+2DC0h+var_1D8], esi
mov [rsp+2DC0h+var_1DC], edx
mov [rsp+2DC0h+var_1E8], rcx
mov [rsp+2DC0h+var_1F0], r8
mov [rsp+2DC0h+var_1F8], r9
mov [rsp+2DC0h+var_404], 0
loc_2B677:
cmp [rsp+2DC0h+var_404], 20h ; ' '
jge short loc_2B6EC
mov rcx, [rsp+2DC0h+var_1F0]
mov eax, [rsp+2DC0h+var_404]
imul eax, [rsp+2DC0h+var_1D8]
cdqe
add rcx, rax
movsxd rax, [rsp+2DC0h+var_404]
mov [rsp+rax*8+2DC0h+var_300], rcx
mov rcx, [rsp+2DC0h+var_1F8]
mov eax, [rsp+2DC0h+var_404]
imul eax, [rsp+2DC0h+var_1DC]
cdqe
add rcx, rax
movsxd rax, [rsp+2DC0h+var_404]
mov [rsp+rax*8+2DC0h+var_400], rcx
mov eax, [rsp+2DC0h+var_404]
add eax, 1
mov [rsp+2DC0h+var_404], eax
jmp short loc_2B677
loc_2B6EC:
mov eax, [rsp+2DC0h+var_1D4]
and eax, 0FFFFFFC0h
mov [rsp+2DC0h+var_408], eax
mov [rsp+2DC0h+var_C44], 0
loc_2B708:
cmp [rsp+2DC0h+var_C44], 20h ; ' '
jge short loc_2B780
movsxd rax, [rsp+2DC0h+var_C44]
mov rax, [rsp+rax*8+2DC0h+var_400]
vmovss xmm0, dword ptr [rax]
vmovss [rsp+2DC0h+var_84], xmm0
vbroadcastss zmm0, [rsp+2DC0h+var_84]
vmovaps zmmword ptr [rsp+2DC0h+var_100], zmm0
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_100]
movsxd rcx, [rsp+2DC0h+var_C44]
lea rax, [rsp+2DC0h+var_C40]
shl rcx, 6
add rax, rcx
vmovaps zmmword ptr [rax], zmm0
mov eax, [rsp+2DC0h+var_C44]
add eax, 1
mov [rsp+2DC0h+var_C44], eax
jmp short loc_2B708
loc_2B780:
mov [rsp+2DC0h+var_2D84], 0
loc_2B788:
mov eax, [rsp+2DC0h+var_2D84]
cmp eax, [rsp+2DC0h+var_408]
jge loc_2B9C7
mov [rsp+2DC0h+var_2D88], 0
loc_2B7A1:
cmp [rsp+2DC0h+var_2D88], 4
jge loc_2B9B5
mov rax, [rsp+2DC0h+var_1E8]
movsxd rcx, [rsp+2DC0h+var_2D84]
shl rcx, 2
add rax, rcx
mov ecx, [rsp+2DC0h+var_2D88]
shl ecx, 4
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
mov [rsp+2DC0h+var_1C8], rax
mov rax, [rsp+2DC0h+var_1C8]
vmovups zmm0, zmmword ptr [rax]
movsxd rcx, [rsp+2DC0h+var_2D88]
lea rax, [rsp+2DC0h+var_2D80]
shl rcx, 6
add rax, rcx
vmovaps zmmword ptr [rax], zmm0
mov [rsp+2DC0h+var_2D8C], 0
loc_2B806:
cmp [rsp+2DC0h+var_2D8C], 20h ; ' '
jge loc_2B93D
movsxd rax, [rsp+2DC0h+var_2D8C]
mov rax, [rsp+rax*8+2DC0h+var_300]
movsxd rcx, [rsp+2DC0h+var_2D84]
shl rcx, 2
add rax, rcx
mov ecx, [rsp+2DC0h+var_2D88]
shl ecx, 4
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
mov [rsp+2DC0h+var_1D0], rax
mov rax, [rsp+2DC0h+var_1D0]
vmovups zmm0, zmmword ptr [rax]
movsxd rcx, [rsp+2DC0h+var_2D8C]
lea rax, [rsp+2DC0h+var_2C80]
shl rcx, 8
add rax, rcx
movsxd rcx, [rsp+2DC0h+var_2D88]
shl rcx, 6
add rax, rcx
vmovaps zmmword ptr [rax], zmm0
movsxd rcx, [rsp+2DC0h+var_2D8C]
lea rax, [rsp+2DC0h+var_2C80]
shl rcx, 8
add rax, rcx
movsxd rcx, [rsp+2DC0h+var_2D88]
shl rcx, 6
add rax, rcx
vmovaps zmm2, zmmword ptr [rax]
movsxd rcx, [rsp+2DC0h+var_2D8C]
lea rax, [rsp+2DC0h+var_C40]
shl rcx, 6
add rax, rcx
vmovaps zmm1, zmmword ptr [rax]
movsxd rcx, [rsp+2DC0h+var_2D88]
lea rax, [rsp+2DC0h+var_2D80]
shl rcx, 6
add rax, rcx
vmovaps zmm0, zmmword ptr [rax]
vmovaps zmmword ptr [rsp+2DC0h+var_140], zmm2
vmovaps zmmword ptr [rsp+2DC0h+var_180], zmm1
vmovaps zmmword ptr [rsp+2DC0h+var_1C0], zmm0
vmovaps zmm1, zmmword ptr [rsp+2DC0h+var_140]
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_180]
vmovaps zmm2, zmmword ptr [rsp+2DC0h+var_1C0]
vfmadd213ps zmm0, zmm1, zmm2
movsxd rcx, [rsp+2DC0h+var_2D88]
lea rax, [rsp+2DC0h+var_2D80]
shl rcx, 6
add rax, rcx
vmovaps zmmword ptr [rax], zmm0
mov eax, [rsp+2DC0h+var_2D8C]
add eax, 1
mov [rsp+2DC0h+var_2D8C], eax
jmp loc_2B806
loc_2B93D:
mov rax, [rsp+2DC0h+var_1E8]
movsxd rcx, [rsp+2DC0h+var_2D84]
shl rcx, 2
add rax, rcx
mov ecx, [rsp+2DC0h+var_2D88]
shl ecx, 4
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movsxd rdx, [rsp+2DC0h+var_2D88]
lea rcx, [rsp+2DC0h+var_2D80]
shl rdx, 6
add rcx, rdx
vmovaps zmm0, zmmword ptr [rcx]
mov [rsp+2DC0h+var_18], rax
vmovaps zmmword ptr [rsp+2DC0h+var_80], zmm0
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_80]
mov rax, [rsp+2DC0h+var_18]
vmovups zmmword ptr [rax], zmm0
mov eax, [rsp+2DC0h+var_2D88]
add eax, 1
mov [rsp+2DC0h+var_2D88], eax
jmp loc_2B7A1
loc_2B9B5:
jmp short $+2
loc_2B9B7:
mov eax, [rsp+2DC0h+var_2D84]
add eax, 40h ; '@'
mov [rsp+2DC0h+var_2D84], eax
jmp loc_2B788
loc_2B9C7:
mov [rsp+2DC0h+var_2D90], 0
loc_2B9CF:
cmp [rsp+2DC0h+var_2D90], 20h ; ' '
jge short loc_2BA4E
mov eax, [rsp+2DC0h+var_408]
mov [rsp+2DC0h+var_2D94], eax
loc_2B9E1:
mov eax, [rsp+2DC0h+var_2D94]
cmp eax, [rsp+2DC0h+var_1D4]
jge short loc_2BA3F
movsxd rax, [rsp+2DC0h+var_2D90]
mov rax, [rsp+rax*8+2DC0h+var_300]
movsxd rcx, [rsp+2DC0h+var_2D94]
vmovss xmm1, dword ptr [rax+rcx*4]
movsxd rax, [rsp+2DC0h+var_2D90]
mov rax, [rsp+rax*8+2DC0h+var_400]
vmovss xmm0, dword ptr [rax]
mov rax, [rsp+2DC0h+var_1E8]
movsxd rcx, [rsp+2DC0h+var_2D94]
vmovss xmm2, dword ptr [rax+rcx*4]
vfmadd213ss xmm0, xmm1, xmm2
vmovss dword ptr [rax+rcx*4], xmm0
mov eax, [rsp+2DC0h+var_2D94]
add eax, 1
mov [rsp+2DC0h+var_2D94], eax
jmp short loc_2B9E1
loc_2BA3F:
jmp short $+2
loc_2BA41:
mov eax, [rsp+2DC0h+var_2D90]
add eax, 1
mov [rsp+2DC0h+var_2D90], eax
jmp short loc_2B9CF
loc_2BA4E:
mov rsp, rbp
pop rbp
vzeroupper
retn
| long long ggml_vec_mad_f32_unroll(signed int a1, int a2, int a3, long long a4, long long a5, long long a6)
{
long long result; // rax
signed int jj; // [rsp+2Ch] [rbp-2D94h]
int ii; // [rsp+30h] [rbp-2D90h]
int n; // [rsp+34h] [rbp-2D8Ch]
int m; // [rsp+38h] [rbp-2D88h]
signed int k; // [rsp+3Ch] [rbp-2D84h]
_BYTE v45[8508]; // [rsp+40h] [rbp-2D80h] BYREF
int j; // [rsp+217Ch] [rbp-C44h]
_BYTE v47[2104]; // [rsp+2180h] [rbp-C40h] BYREF
signed int v48; // [rsp+29B8h] [rbp-408h]
int i; // [rsp+29BCh] [rbp-404h]
_QWORD v50[65]; // [rsp+29C0h] [rbp-400h]
long long v51; // [rsp+2BC8h] [rbp-1F8h]
long long v52; // [rsp+2BD0h] [rbp-1F0h]
long long v53; // [rsp+2BD8h] [rbp-1E8h]
int v54; // [rsp+2BE4h] [rbp-1DCh]
int v55; // [rsp+2BE8h] [rbp-1D8h]
signed int v56; // [rsp+2BECh] [rbp-1D4h]
long long v57; // [rsp+2BF0h] [rbp-1D0h]
long long v58; // [rsp+2BF8h] [rbp-1C8h]
long long v65; // [rsp+2DA8h] [rbp-18h]
v56 = a1;
v55 = a2;
v54 = a3;
v53 = a4;
v52 = a5;
v51 = a6;
for ( i = 0; i < 32; ++i )
{
v50[i + 32] = v55 * i + v52;
v50[i] = v54 * i + v51;
}
v48 = v56 & 0xFFFFFFC0;
for ( j = 0; j < 32; ++j )
{
_RAX = v50[j];
__asm
{
vmovss xmm0, dword ptr [rax]
vmovss [rsp+2DC0h+var_84], xmm0
vbroadcastss zmm0, [rsp+2DC0h+var_84]
vmovaps zmmword ptr [rsp+2DC0h+var_100], zmm0
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_100]
}
_RAX = &v47[64 * (long long)j];
__asm { vmovaps zmmword ptr [rax], zmm0 }
}
for ( k = 0; ; k += 64 )
{
result = (unsigned int)k;
if ( k >= v48 )
break;
for ( m = 0; m < 4; ++m )
{
v58 = 64LL * m + 4LL * k + v53;
_RAX = v58;
__asm { vmovups zmm0, zmmword ptr [rax] }
_RAX = &v45[64 * (long long)m];
__asm { vmovaps zmmword ptr [rax], zmm0 }
for ( n = 0; n < 32; ++n )
{
v57 = 64LL * m + 4LL * k + v50[n + 32];
_RAX = v57;
__asm { vmovups zmm0, zmmword ptr [rax] }
_RAX = &v45[256 * (long long)n + 256 + 64 * (long long)m];
__asm
{
vmovaps zmmword ptr [rax], zmm0
vmovaps zmm2, zmmword ptr [rax]
}
_RAX = &v47[64 * (long long)n];
__asm { vmovaps zmm1, zmmword ptr [rax] }
_RAX = &v45[64 * (long long)m];
__asm
{
vmovaps zmm0, zmmword ptr [rax]
vmovaps zmmword ptr [rsp+2DC0h+var_140], zmm2
vmovaps zmmword ptr [rsp+2DC0h+var_180], zmm1
vmovaps zmmword ptr [rsp+2DC0h+var_1C0], zmm0
vmovaps zmm1, zmmword ptr [rsp+2DC0h+var_140]
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_180]
vmovaps zmm2, zmmword ptr [rsp+2DC0h+var_1C0]
vfmadd213ps zmm0, zmm1, zmm2
vmovaps zmmword ptr [rax], zmm0
}
}
_RCX = &v45[64 * (long long)m];
__asm { vmovaps zmm0, zmmword ptr [rcx] }
v65 = 64LL * m + 4LL * k + v53;
__asm
{
vmovaps zmmword ptr [rsp+2DC0h+var_80], zmm0
vmovaps zmm0, zmmword ptr [rsp+2DC0h+var_80]
}
_RAX = v65;
__asm { vmovups zmmword ptr [rax], zmm0 }
}
}
for ( ii = 0; ii < 32; ++ii )
{
for ( jj = v48; jj < v56; ++jj )
{
_RAX = v50[ii + 32];
_RCX = jj;
__asm { vmovss xmm1, dword ptr [rax+rcx*4] }
_RAX = v50[ii];
__asm { vmovss xmm0, dword ptr [rax] }
_RAX = v53;
_RCX = jj;
__asm
{
vmovss xmm2, dword ptr [rax+rcx*4]
vfmadd213ss xmm0, xmm1, xmm2
vmovss dword ptr [rax+rcx*4], xmm0
}
}
result = (unsigned int)(ii + 1);
}
__asm { vzeroupper }
return result;
}
| ggml_vec_mad_f32_unroll:
PUSH RBP
MOV RBP,RSP
AND RSP,-0x40
SUB RSP,0x2dc0
MOV dword ptr [RSP + 0x2bec],EDI
MOV dword ptr [RSP + 0x2be8],ESI
MOV dword ptr [RSP + 0x2be4],EDX
MOV qword ptr [RSP + 0x2bd8],RCX
MOV qword ptr [RSP + 0x2bd0],R8
MOV qword ptr [RSP + 0x2bc8],R9
MOV dword ptr [RSP + 0x29bc],0x0
LAB_0012b677:
CMP dword ptr [RSP + 0x29bc],0x20
JGE 0x0012b6ec
MOV RCX,qword ptr [RSP + 0x2bd0]
MOV EAX,dword ptr [RSP + 0x29bc]
IMUL EAX,dword ptr [RSP + 0x2be8]
CDQE
ADD RCX,RAX
MOVSXD RAX,dword ptr [RSP + 0x29bc]
MOV qword ptr [RSP + RAX*0x8 + 0x2ac0],RCX
MOV RCX,qword ptr [RSP + 0x2bc8]
MOV EAX,dword ptr [RSP + 0x29bc]
IMUL EAX,dword ptr [RSP + 0x2be4]
CDQE
ADD RCX,RAX
MOVSXD RAX,dword ptr [RSP + 0x29bc]
MOV qword ptr [RSP + RAX*0x8 + 0x29c0],RCX
MOV EAX,dword ptr [RSP + 0x29bc]
ADD EAX,0x1
MOV dword ptr [RSP + 0x29bc],EAX
JMP 0x0012b677
LAB_0012b6ec:
MOV EAX,dword ptr [RSP + 0x2bec]
AND EAX,0xffffffc0
MOV dword ptr [RSP + 0x29b8],EAX
MOV dword ptr [RSP + 0x217c],0x0
LAB_0012b708:
CMP dword ptr [RSP + 0x217c],0x20
JGE 0x0012b780
MOVSXD RAX,dword ptr [RSP + 0x217c]
MOV RAX,qword ptr [RSP + RAX*0x8 + 0x29c0]
VMOVSS XMM0,dword ptr [RAX]
VMOVSS dword ptr [RSP + 0x2d3c],XMM0
VBROADCASTSS ZMM0,dword ptr [RSP + 0x2d3c]
VMOVAPS zmmword ptr [RSP + 0x2cc0] ,ZMM0
VMOVAPS ZMM0,zmmword ptr [RSP + 0x2cc0]
MOVSXD RCX,dword ptr [RSP + 0x217c]
LEA RAX,[RSP + 0x2180]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS zmmword ptr [RAX] ,ZMM0
MOV EAX,dword ptr [RSP + 0x217c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x217c],EAX
JMP 0x0012b708
LAB_0012b780:
MOV dword ptr [RSP + 0x3c],0x0
LAB_0012b788:
MOV EAX,dword ptr [RSP + 0x3c]
CMP EAX,dword ptr [RSP + 0x29b8]
JGE 0x0012b9c7
MOV dword ptr [RSP + 0x38],0x0
LAB_0012b7a1:
CMP dword ptr [RSP + 0x38],0x4
JGE 0x0012b9b5
MOV RAX,qword ptr [RSP + 0x2bd8]
MOVSXD RCX,dword ptr [RSP + 0x3c]
SHL RCX,0x2
ADD RAX,RCX
MOV ECX,dword ptr [RSP + 0x38]
SHL ECX,0x4
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x2bf8],RAX
MOV RAX,qword ptr [RSP + 0x2bf8]
VMOVUPS ZMM0,zmmword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x40]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS zmmword ptr [RAX] ,ZMM0
MOV dword ptr [RSP + 0x34],0x0
LAB_0012b806:
CMP dword ptr [RSP + 0x34],0x20
JGE 0x0012b93d
MOVSXD RAX,dword ptr [RSP + 0x34]
MOV RAX,qword ptr [RSP + RAX*0x8 + 0x2ac0]
MOVSXD RCX,dword ptr [RSP + 0x3c]
SHL RCX,0x2
ADD RAX,RCX
MOV ECX,dword ptr [RSP + 0x38]
SHL ECX,0x4
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x2bf0],RAX
MOV RAX,qword ptr [RSP + 0x2bf0]
VMOVUPS ZMM0,zmmword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0x34]
LEA RAX,[RSP + 0x140]
SHL RCX,0x8
ADD RAX,RCX
MOVSXD RCX,dword ptr [RSP + 0x38]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS zmmword ptr [RAX] ,ZMM0
MOVSXD RCX,dword ptr [RSP + 0x34]
LEA RAX,[RSP + 0x140]
SHL RCX,0x8
ADD RAX,RCX
MOVSXD RCX,dword ptr [RSP + 0x38]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS ZMM2,zmmword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0x34]
LEA RAX,[RSP + 0x2180]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS ZMM1,zmmword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x40]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS ZMM0,zmmword ptr [RAX]
VMOVAPS zmmword ptr [RSP + 0x2c80] ,ZMM2
VMOVAPS zmmword ptr [RSP + 0x2c40] ,ZMM1
VMOVAPS zmmword ptr [RSP + 0x2c00] ,ZMM0
VMOVAPS ZMM1,zmmword ptr [RSP + 0x2c80]
VMOVAPS ZMM0,zmmword ptr [RSP + 0x2c40]
VMOVAPS ZMM2,zmmword ptr [RSP + 0x2c00]
VFMADD213PS ZMM0,ZMM1,ZMM2
MOVSXD RCX,dword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x40]
SHL RCX,0x6
ADD RAX,RCX
VMOVAPS zmmword ptr [RAX] ,ZMM0
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,0x1
MOV dword ptr [RSP + 0x34],EAX
JMP 0x0012b806
LAB_0012b93d:
MOV RAX,qword ptr [RSP + 0x2bd8]
MOVSXD RCX,dword ptr [RSP + 0x3c]
SHL RCX,0x2
ADD RAX,RCX
MOV ECX,dword ptr [RSP + 0x38]
SHL ECX,0x4
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RAX,RCX
MOVSXD RDX,dword ptr [RSP + 0x38]
LEA RCX,[RSP + 0x40]
SHL RDX,0x6
ADD RCX,RDX
VMOVAPS ZMM0,zmmword ptr [RCX]
MOV qword ptr [RSP + 0x2da8],RAX
VMOVAPS zmmword ptr [RSP + 0x2d40] ,ZMM0
VMOVAPS ZMM0,zmmword ptr [RSP + 0x2d40]
MOV RAX,qword ptr [RSP + 0x2da8]
VMOVUPS zmmword ptr [RAX],ZMM0
MOV EAX,dword ptr [RSP + 0x38]
ADD EAX,0x1
MOV dword ptr [RSP + 0x38],EAX
JMP 0x0012b7a1
LAB_0012b9b5:
JMP 0x0012b9b7
LAB_0012b9b7:
MOV EAX,dword ptr [RSP + 0x3c]
ADD EAX,0x40
MOV dword ptr [RSP + 0x3c],EAX
JMP 0x0012b788
LAB_0012b9c7:
MOV dword ptr [RSP + 0x30],0x0
LAB_0012b9cf:
CMP dword ptr [RSP + 0x30],0x20
JGE 0x0012ba4e
MOV EAX,dword ptr [RSP + 0x29b8]
MOV dword ptr [RSP + 0x2c],EAX
LAB_0012b9e1:
MOV EAX,dword ptr [RSP + 0x2c]
CMP EAX,dword ptr [RSP + 0x2bec]
JGE 0x0012ba3f
MOVSXD RAX,dword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + RAX*0x8 + 0x2ac0]
MOVSXD RCX,dword ptr [RSP + 0x2c]
VMOVSS XMM1,dword ptr [RAX + RCX*0x4]
MOVSXD RAX,dword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + RAX*0x8 + 0x29c0]
VMOVSS XMM0,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x2bd8]
MOVSXD RCX,dword ptr [RSP + 0x2c]
VMOVSS XMM2,dword ptr [RAX + RCX*0x4]
VFMADD213SS XMM0,XMM1,XMM2
VMOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x0012b9e1
LAB_0012ba3f:
JMP 0x0012ba41
LAB_0012ba41:
MOV EAX,dword ptr [RSP + 0x30]
ADD EAX,0x1
MOV dword ptr [RSP + 0x30],EAX
JMP 0x0012b9cf
LAB_0012ba4e:
MOV RSP,RBP
POP RBP
VZEROUPPER
RET
|
void ggml_vec_mad_f32_unroll
(uint param_1,int param_2,int param_3,long param_4,long param_5,long param_6)
{
int1 auVar1 [16];
int8 uVar2;
int8 uVar3;
int8 uVar4;
int8 uVar5;
int8 uVar6;
int8 uVar7;
int8 uVar8;
int1 auVar9 [64];
int8 *puVar10;
int8 *puVar11;
long lVar12;
long lVar13;
int1 auVar14 [64];
uint local_2dd4;
int local_2dd0;
int local_2dcc;
int local_2dc8;
int local_2dc4;
int8 local_2dc0 [32];
int8 local_2cc0 [1031];
int local_c84;
int8 local_c80 [263];
int local_444;
long alStack_440 [32];
long alStack_340 [64];
int8 local_140;
int8 uStack_138;
int8 uStack_130;
int8 uStack_128;
int8 uStack_120;
int8 uStack_118;
int8 uStack_110;
int8 uStack_108;
for (local_444 = 0; local_444 < 0x20; local_444 = local_444 + 1) {
alStack_340[local_444] = param_5 + local_444 * param_2;
alStack_440[local_444] = param_6 + local_444 * param_3;
}
for (local_c84 = 0; local_c84 < 0x20; local_c84 = local_c84 + 1) {
auVar14 = vbroadcastss_avx512f(ZEXT416(*(uint *)alStack_440[local_c84]));
local_140 = auVar14._0_8_;
uStack_138 = auVar14._8_8_;
uStack_130 = auVar14._16_8_;
uStack_128 = auVar14._24_8_;
uStack_120 = auVar14._32_8_;
uStack_118 = auVar14._40_8_;
uStack_110 = auVar14._48_8_;
uStack_108 = auVar14._56_8_;
lVar12 = (long)local_c84;
local_c80[lVar12 * 8] = local_140;
local_c80[lVar12 * 8 + 1] = uStack_138;
local_c80[lVar12 * 8 + 2] = uStack_130;
local_c80[lVar12 * 8 + 3] = uStack_128;
local_c80[lVar12 * 8 + 4] = uStack_120;
local_c80[lVar12 * 8 + 5] = uStack_118;
local_c80[lVar12 * 8 + 6] = uStack_110;
local_c80[lVar12 * 8 + 7] = uStack_108;
}
for (local_2dc4 = 0; local_2dc4 < (int)(param_1 & 0xffffffc0); local_2dc4 = local_2dc4 + 0x40) {
for (local_2dc8 = 0; local_2dc8 < 4; local_2dc8 = local_2dc8 + 1) {
puVar10 = (int8 *)(param_4 + (long)local_2dc4 * 4 + (long)(local_2dc8 << 4) * 4);
uVar2 = puVar10[1];
uVar3 = puVar10[2];
uVar4 = puVar10[3];
uVar5 = puVar10[4];
uVar6 = puVar10[5];
uVar7 = puVar10[6];
uVar8 = puVar10[7];
lVar12 = (long)local_2dc8;
local_2dc0[lVar12 * 8] = *puVar10;
local_2dc0[lVar12 * 8 + 1] = uVar2;
local_2dc0[lVar12 * 8 + 2] = uVar3;
local_2dc0[lVar12 * 8 + 3] = uVar4;
local_2dc0[lVar12 * 8 + 4] = uVar5;
local_2dc0[lVar12 * 8 + 5] = uVar6;
local_2dc0[lVar12 * 8 + 6] = uVar7;
local_2dc0[lVar12 * 8 + 7] = uVar8;
for (local_2dcc = 0; local_2dcc < 0x20; local_2dcc = local_2dcc + 1) {
puVar10 = (int8 *)
(alStack_340[local_2dcc] + (long)local_2dc4 * 4 + (long)(local_2dc8 << 4) * 4);
uVar2 = puVar10[1];
uVar3 = puVar10[2];
uVar4 = puVar10[3];
uVar5 = puVar10[4];
uVar6 = puVar10[5];
uVar7 = puVar10[6];
uVar8 = puVar10[7];
puVar11 = local_2cc0 + (long)local_2dcc * 0x20 + (long)local_2dc8 * 8;
*puVar11 = *puVar10;
puVar11[1] = uVar2;
puVar11[2] = uVar3;
puVar11[3] = uVar4;
puVar11[4] = uVar5;
puVar11[5] = uVar6;
puVar11[6] = uVar7;
puVar11[7] = uVar8;
lVar12 = (long)local_2dcc;
lVar13 = (long)local_2dc8;
auVar9._8_8_ = local_c80[lVar12 * 8 + 1];
auVar9._0_8_ = local_c80[lVar12 * 8];
auVar9._16_8_ = local_c80[lVar12 * 8 + 2];
auVar9._24_8_ = local_c80[lVar12 * 8 + 3];
auVar9._32_8_ = local_c80[lVar12 * 8 + 4];
auVar9._40_8_ = local_c80[lVar12 * 8 + 5];
auVar9._48_8_ = local_c80[lVar12 * 8 + 6];
auVar9._56_8_ = local_c80[lVar12 * 8 + 7];
auVar14._8_8_ = local_2dc0[lVar13 * 8 + 1];
auVar14._0_8_ = local_2dc0[lVar13 * 8];
auVar14._16_8_ = local_2dc0[lVar13 * 8 + 2];
auVar14._24_8_ = local_2dc0[lVar13 * 8 + 3];
auVar14._32_8_ = local_2dc0[lVar13 * 8 + 4];
auVar14._40_8_ = local_2dc0[lVar13 * 8 + 5];
auVar14._48_8_ = local_2dc0[lVar13 * 8 + 6];
auVar14._56_8_ = local_2dc0[lVar13 * 8 + 7];
auVar14 = vfmadd213ps_avx512f(auVar9,*(int1 (*) [64])
(local_2cc0 +
(long)local_2dcc * 0x20 + (long)local_2dc8 * 8),
auVar14);
*(int1 (*) [64])(local_2dc0 + (long)local_2dc8 * 8) = auVar14;
}
puVar10 = (int8 *)(param_4 + (long)local_2dc4 * 4 + (long)(local_2dc8 << 4) * 4);
lVar12 = (long)local_2dc8;
uVar2 = local_2dc0[lVar12 * 8 + 1];
uVar3 = local_2dc0[lVar12 * 8 + 2];
uVar4 = local_2dc0[lVar12 * 8 + 3];
uVar5 = local_2dc0[lVar12 * 8 + 4];
uVar6 = local_2dc0[lVar12 * 8 + 5];
uVar7 = local_2dc0[lVar12 * 8 + 6];
uVar8 = local_2dc0[lVar12 * 8 + 7];
*puVar10 = local_2dc0[lVar12 * 8];
puVar10[1] = uVar2;
puVar10[2] = uVar3;
puVar10[3] = uVar4;
puVar10[4] = uVar5;
puVar10[5] = uVar6;
puVar10[6] = uVar7;
puVar10[7] = uVar8;
}
}
for (local_2dd0 = 0; local_2dd4 = param_1 & 0xffffffc0, local_2dd0 < 0x20;
local_2dd0 = local_2dd0 + 1) {
for (; (int)local_2dd4 < (int)param_1; local_2dd4 = local_2dd4 + 1) {
auVar1 = vfmadd213ss_fma(ZEXT416(*(uint *)alStack_440[local_2dd0]),
ZEXT416(*(uint *)(alStack_340[local_2dd0] + (long)(int)local_2dd4 * 4
)),
ZEXT416(*(uint *)(param_4 + (long)(int)local_2dd4 * 4)));
*(int *)(param_4 + (long)(int)local_2dd4 * 4) = auVar1._0_4_;
}
}
return;
}
|
|
5,475 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) | monkey531[P]llama/common/json.hpp | static diyfp normalize(diyfp x) noexcept
{
JSON_ASSERT(x.f != 0);
while ((x.f >> 63u) == 0)
{
x.f <<= 1u;
x.e--;
}
return x;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rax
testq %rdi, %rdi
jne 0x891ba
leaq 0x27d61(%rip), %rdi # 0xb0efc
leaq 0x22092(%rip), %rdx # 0xab234
leaq 0x2d527(%rip), %rcx # 0xb66d0
movl $0x42a1, %esi # imm = 0x42A1
xorl %eax, %eax
callq 0x23eb0
addq %rdi, %rdi
decl %esi
testq %rdi, %rdi
jns 0x891b5
movq %rdi, %rax
movl %esi, %edx
popq %rcx
retq
movq %rax, %rdi
callq 0x28027
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_:
push rax
test rdi, rdi
jnz short loc_891BA
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aXF0; "x.f != 0"
mov esi, 42A1h
xor eax, eax
call _ggml_abort
loc_891B5:
add rdi, rdi
dec esi
loc_891BA:
test rdi, rdi
jns short loc_891B5
mov rax, rdi
mov edx, esi
pop rcx
retn
mov rdi, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(long long a1, int a2)
{
if ( a1 )
goto LABEL_4;
a1 = (long long)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp";
a2 = 17057;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17057LL,
"GGML_ASSERT(%s) failed",
"x.f != 0");
do
{
a1 *= 2LL;
--a2;
LABEL_4:
;
}
while ( a1 >= 0 );
return a1;
}
| normalize:
PUSH RAX
TEST RDI,RDI
JNZ 0x001891ba
LAB_00189194:
LEA RDI,[0x1b0efc]
LEA RDX,[0x1ab234]
LEA RCX,[0x1b66d0]
MOV ESI,0x42a1
XOR EAX,EAX
CALL 0x00123eb0
LAB_001891b5:
ADD RDI,RDI
DEC ESI
LAB_001891ba:
TEST RDI,RDI
JNS 0x001891b5
MOV RAX,RDI
MOV EDX,ESI
POP RCX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
*/
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(diyfp *this,int param_2)
{
int1 auVar1 [16];
if (this == (diyfp *)0x0) {
/* try { // try from 00189194 to 001891b4 has its CatchHandler @ 001891c6 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x42a1,
"GGML_ASSERT(%s) failed","x.f != 0");
}
for (; -1 < (long)this; this = (diyfp *)((long)this * 2)) {
param_2 = param_2 + -1;
}
auVar1._8_4_ = param_2;
auVar1._0_8_ = this;
auVar1._12_4_ = 0;
return auVar1;
}
|
|
5,476 | 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;
} | O0 | c | rw_pr_init:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2a330
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2a370
movq -0x8(%rbp), %rax
movl $0x0, 0x58(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x5c(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x60(%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
| rw_pr_init:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call _pthread_mutex_init
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
xor eax, eax
mov esi, eax
call _pthread_cond_init
mov rax, [rbp+var_8]
mov dword ptr [rax+58h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+5Ch], 0
mov rax, [rbp+var_8]
mov byte ptr [rax+60h], 0
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long rw_pr_init(long long a1)
{
pthread_mutex_init(a1, 0LL);
pthread_cond_init(a1 + 40, 0LL);
*(_DWORD *)(a1 + 88) = 0;
*(_DWORD *)(a1 + 92) = 0;
*(_BYTE *)(a1 + 96) = 0;
return 0LL;
}
| rw_pr_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0012a330
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0012a370
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x58],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x5c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x60],0x0
XOR EAX,EAX
ADD RSP,0x10
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);
*(int4 *)((long)param_1 + 0x58) = 0;
*(int4 *)((long)param_1 + 0x5c) = 0;
*(int1 *)((long)param_1 + 0x60) = 0;
return 0;
}
|
|
5,477 | LefDefParser::lefwLayerAntennaCumDiffSideAreaRatio(double) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwLayerAntennaCumDiffSideAreaRatio(double value)
{
lefw54Num = LEFW_ANTENNACUMDIFFSIDEAREARATIO;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING)
return LEFW_BAD_ORDER;
// only routing calls this func
if (!lefwIsRouting)
return LEFW_BAD_DATA;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n", value);
else
fprintf(lefwFile, " ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n", value);
lefwLines++;
return LEFW_OK;
} | O3 | cpp | LefDefParser::lefwLayerAntennaCumDiffSideAreaRatio(double):
movl $0x70, 0x17de5(%rip) # 0x24d4c
leaq 0x17e92(%rip), %rax # 0x24e00
movq (%rax), %rdi
testq %rdi, %rdi
je 0xcfb4
leaq 0x180d3(%rip), %rax # 0x25050
movl (%rax), %ecx
cmpl $0x1f, %ecx
je 0xcf8e
movl $0x2, %eax
cmpl $0x7, %ecx
jne 0xcfdd
leaq 0x1812f(%rip), %rax # 0x250c4
cmpl $0x0, (%rax)
je 0xcfba
pushq %rax
cmpb $0x1, 0x1814a(%rip) # 0x250ec
jne 0xcfc0
leaq 0xdf1e(%rip), %rsi # 0x1aec9
movb $0x1, %al
callq 0x18c35
jmp 0xcfce
movl $0x1, %eax
retq
movl $0x3, %eax
retq
leaq 0xdf02(%rip), %rsi # 0x1aec9
movb $0x1, %al
callq 0x10f0
leaq 0x18077(%rip), %rax # 0x2504c
incl (%rax)
xorl %eax, %eax
addq $0x8, %rsp
retq
| _ZN12LefDefParser36lefwLayerAntennaCumDiffSideAreaRatioEd:
mov cs:_ZN12LefDefParserL9lefw54NumE, 70h ; 'p'; LefDefParser::lefw54Num
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
test rdi, rdi
jz short loc_CFB4
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov ecx, [rax]
cmp ecx, 1Fh
jz short loc_CF8E
mov eax, 2
cmp ecx, 7
jnz short locret_CFDD
loc_CF8E:
lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting
cmp dword ptr [rax], 0
jz short loc_CFBA
push rax
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz short loc_CFC0
lea rsi, aAntennacumdiff_1; " ANTENNACUMDIFFSIDEAREARATIO %.11g ;"...
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_CFCE
loc_CFB4:
mov eax, 1
retn
loc_CFBA:
mov eax, 3
retn
loc_CFC0:
lea rsi, aAntennacumdiff_1; " ANTENNACUMDIFFSIDEAREARATIO %.11g ;"...
mov al, 1
call _fprintf
loc_CFCE:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
add rsp, 8
locret_CFDD:
retn
| long long LefDefParser::lefwLayerAntennaCumDiffSideAreaRatio(
LefDefParser *this,
double a2,
long long a3,
int a4,
long long a5,
int a6,
int a7)
{
long long result; // rax
LefDefParser::lefw54Num = 112;
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
if ( LefDefParser::lefwState == 31 || (result = 2LL, LefDefParser::lefwState == 7) )
{
if ( LefDefParser::lefwIsRouting )
{
if ( LefDefParser::lefwWriteEncrypt == 1 )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n",
a4,
LefDefParser::lefwState,
a6,
a7);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n", a2);
++LefDefParser::lefwLines;
return 0LL;
}
else
{
return 3LL;
}
}
return result;
}
| lefwLayerAntennaCumDiffSideAreaRatio:
MOV dword ptr [0x00124d4c],0x70
LEA RAX,[0x124e00]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x0010cfb4
LEA RAX,[0x125050]
MOV ECX,dword ptr [RAX]
CMP ECX,0x1f
JZ 0x0010cf8e
MOV EAX,0x2
CMP ECX,0x7
JNZ 0x0010cfdd
LAB_0010cf8e:
LEA RAX,[0x1250c4]
CMP dword ptr [RAX],0x0
JZ 0x0010cfba
PUSH RAX
CMP byte ptr [0x001250ec],0x1
JNZ 0x0010cfc0
LEA RSI,[0x11aec9]
MOV AL,0x1
CALL 0x00118c35
JMP 0x0010cfce
LAB_0010cfb4:
MOV EAX,0x1
RET
LAB_0010cfba:
MOV EAX,0x3
RET
LAB_0010cfc0:
LEA RSI,[0x11aec9]
MOV AL,0x1
CALL 0x001010f0
LAB_0010cfce:
LEA RAX,[0x12504c]
INC dword ptr [RAX]
XOR EAX,EAX
ADD RSP,0x8
LAB_0010cfdd:
RET
|
/* LefDefParser::lefwLayerAntennaCumDiffSideAreaRatio(double) */
int8 LefDefParser::lefwLayerAntennaCumDiffSideAreaRatio(double param_1)
{
int8 uVar1;
lefw54Num = 0x70;
if (lefwFile == (_IO_FILE *)0x0) {
return 1;
}
if ((lefwState == 0x1f) || (uVar1 = 2, lefwState == 7)) {
if (lefwIsRouting == 0) {
return 3;
}
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile," ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n");
}
else {
fprintf(lefwFile," ANTENNACUMDIFFSIDEAREARATIO %.11g ;\n");
}
lefwLines = lefwLines + 1;
uVar1 = 0;
}
return uVar1;
}
|
|
5,478 | js_new_string_char | bluesky950520[P]quickjs/quickjs.c | static JSValue js_new_string_char(JSContext *ctx, uint16_t c)
{
if (c < 0x100) {
char ch8 = c;
return js_new_string8_len(ctx, &ch8, 1);
} else {
uint16_t ch16 = c;
return js_new_string16_len(ctx, &ch16, 1);
}
} | O1 | c | js_new_string_char:
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
cmpl $0xff, %esi
ja 0x3c99c
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
callq 0x1f5c9
jmp 0x3c9d4
movl $0x1, %esi
movl $0x1, %edx
callq 0x1ff5f
testq %rax, %rax
je 0x3c9c2
movw %bx, 0x18(%rax)
movq %rax, 0x8(%rsp)
movq $-0x7, %rdx
jmp 0x3c9cf
movl $0x0, 0x8(%rsp)
movl $0x6, %edx
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
retq
| js_new_string_char:
push rbx
sub rsp, 10h
mov ebx, esi
cmp esi, 0FFh
ja short loc_3C99C
lea rsi, [rsp+18h+var_11]
mov [rsi], bl
mov edx, 1
call js_new_string8_len
jmp short loc_3C9D4
loc_3C99C:
mov esi, 1
mov edx, 1
call js_alloc_string
test rax, rax
jz short loc_3C9C2
mov [rax+18h], bx
mov [rsp+18h+var_10], rax
mov rdx, 0FFFFFFFFFFFFFFF9h
jmp short loc_3C9CF
loc_3C9C2:
mov dword ptr [rsp+18h+var_10], 0
mov edx, 6
loc_3C9CF:
mov rax, [rsp+18h+var_10]
loc_3C9D4:
add rsp, 10h
pop rbx
retn
| long long js_new_string_char(long long a1, unsigned int a2)
{
long long v3; // rax
char v4; // [rsp+7h] [rbp-11h] BYREF
long long v5; // [rsp+8h] [rbp-10h]
if ( a2 > 0xFF )
{
v3 = js_alloc_string(a1, 1LL, 1u);
if ( v3 )
{
*(_WORD *)(v3 + 24) = a2;
return v3;
}
else
{
LODWORD(v5) = 0;
}
return v5;
}
else
{
v4 = a2;
return js_new_string8_len(a1, (long long)&v4, 1u);
}
}
| js_new_string_char:
PUSH RBX
SUB RSP,0x10
MOV EBX,ESI
CMP ESI,0xff
JA 0x0013c99c
LEA RSI,[RSP + 0x7]
MOV byte ptr [RSI],BL
MOV EDX,0x1
CALL 0x0011f5c9
JMP 0x0013c9d4
LAB_0013c99c:
MOV ESI,0x1
MOV EDX,0x1
CALL 0x0011ff5f
TEST RAX,RAX
JZ 0x0013c9c2
MOV word ptr [RAX + 0x18],BX
MOV qword ptr [RSP + 0x8],RAX
MOV RDX,-0x7
JMP 0x0013c9cf
LAB_0013c9c2:
MOV dword ptr [RSP + 0x8],0x0
MOV EDX,0x6
LAB_0013c9cf:
MOV RAX,qword ptr [RSP + 0x8]
LAB_0013c9d4:
ADD RSP,0x10
POP RBX
RET
|
long js_new_string_char(int8 param_1,uint param_2)
{
long lVar1;
int1 local_11;
int8 local_10;
if (param_2 < 0x100) {
local_11 = (int1)param_2;
local_10 = js_new_string8_len(param_1,&local_11,1);
}
else {
lVar1 = js_alloc_string(param_1,1,1);
if (lVar1 == 0) {
local_10 = (ulong)local_10._4_4_ << 0x20;
}
else {
*(short *)(lVar1 + 0x18) = (short)param_2;
local_10 = lVar1;
}
}
return local_10;
}
|
|
5,479 | LefDefParser::lefiSite::print(_IO_FILE*) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMisc.cpp | void
lefiSite::print(FILE *f) const
{
fprintf(f, "SITE %s", name());
if (hasClass())
fprintf(f, " CLASS %s", siteClass());
if (hasSize())
fprintf(f, " SIZE %g %g", sizeX(),
sizeY());
if (hasXSymmetry())
fprintf(f, " SYMMETRY X");
if (hasYSymmetry())
fprintf(f, " SYMMETRY Y");
if (has90Symmetry())
fprintf(f, " SYMMETRY R90");
fprintf(f, "\n");
} | O0 | cpp | LefDefParser::lefiSite::print(_IO_FILE*) const:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x128d0
movq 0x18(%rsp), %rdi
movq %rax, %rdx
leaq 0x7f84c(%rip), %rsi # 0x922b2
movb $0x0, %al
callq 0x2370
movq 0x20(%rsp), %rdi
callq 0x128e0
cmpl $0x0, %eax
je 0x12aa6
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0x128f0
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x7f81b(%rip), %rsi # 0x922ba
movb $0x0, %al
callq 0x2370
movq 0x20(%rsp), %rdi
callq 0x12920
cmpl $0x0, %eax
je 0x12af3
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
callq 0x12900
movq 0x20(%rsp), %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x12910
movq (%rsp), %rdi
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
leaq 0x7f7d8(%rip), %rsi # 0x922c4
movb $0x2, %al
callq 0x2370
movq 0x20(%rsp), %rdi
callq 0x12930
cmpl $0x0, %eax
je 0x12b15
movq 0x28(%rsp), %rdi
leaq 0x7f7c2(%rip), %rsi # 0x922d0
movb $0x0, %al
callq 0x2370
movq 0x20(%rsp), %rdi
callq 0x12950
cmpl $0x0, %eax
je 0x12b37
movq 0x28(%rsp), %rdi
leaq 0x7f7ac(%rip), %rsi # 0x922dc
movb $0x0, %al
callq 0x2370
movq 0x20(%rsp), %rdi
callq 0x12970
cmpl $0x0, %eax
je 0x12b59
movq 0x28(%rsp), %rdi
leaq 0x7f796(%rip), %rsi # 0x922e8
movb $0x0, %al
callq 0x2370
movq 0x28(%rsp), %rdi
leaq 0x813a2(%rip), %rsi # 0x93f07
movb $0x0, %al
callq 0x2370
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZNK12LefDefParser8lefiSite5printEP8_IO_FILE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rdi, [rsp+38h+var_8]; this
mov [rsp+38h+var_18], rdi
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_20], rax
call _ZNK12LefDefParser8lefiSite4nameEv; LefDefParser::lefiSite::name(void)
mov rdi, [rsp+38h+var_20]
mov rdx, rax
lea rsi, aSiteS_1; "SITE %s"
mov al, 0
call _fprintf
mov rdi, [rsp+38h+var_18]; this
call _ZNK12LefDefParser8lefiSite8hasClassEv; LefDefParser::lefiSite::hasClass(void)
cmp eax, 0
jz short loc_12AA6
mov rdi, [rsp+38h+var_18]; this
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_28], rax
call _ZNK12LefDefParser8lefiSite9siteClassEv; LefDefParser::lefiSite::siteClass(void)
mov rdi, [rsp+38h+var_28]
mov rdx, rax
lea rsi, aClassS_1; " CLASS %s"
mov al, 0
call _fprintf
loc_12AA6:
mov rdi, [rsp+38h+var_18]; this
call _ZNK12LefDefParser8lefiSite7hasSizeEv; LefDefParser::lefiSite::hasSize(void)
cmp eax, 0
jz short loc_12AF3
mov rdi, [rsp+38h+var_18]; this
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_38], rax
call _ZNK12LefDefParser8lefiSite5sizeXEv; LefDefParser::lefiSite::sizeX(void)
mov rdi, [rsp+38h+var_18]; this
movsd [rsp+38h+var_30], xmm0
call _ZNK12LefDefParser8lefiSite5sizeYEv; LefDefParser::lefiSite::sizeY(void)
mov rdi, [rsp+38h+var_38]
movaps xmm1, xmm0
movsd xmm0, [rsp+38h+var_30]
lea rsi, aSizeGG; " SIZE %g %g"
mov al, 2
call _fprintf
loc_12AF3:
mov rdi, [rsp+38h+var_18]; this
call _ZNK12LefDefParser8lefiSite12hasXSymmetryEv; LefDefParser::lefiSite::hasXSymmetry(void)
cmp eax, 0
jz short loc_12B15
mov rdi, [rsp+38h+var_10]
lea rsi, aSymmetryX_0; " SYMMETRY X"
mov al, 0
call _fprintf
loc_12B15:
mov rdi, [rsp+38h+var_18]; this
call _ZNK12LefDefParser8lefiSite12hasYSymmetryEv; LefDefParser::lefiSite::hasYSymmetry(void)
cmp eax, 0
jz short loc_12B37
mov rdi, [rsp+38h+var_10]
lea rsi, aSymmetryY_0; " SYMMETRY Y"
mov al, 0
call _fprintf
loc_12B37:
mov rdi, [rsp+38h+var_18]; this
call _ZNK12LefDefParser8lefiSite13has90SymmetryEv; LefDefParser::lefiSite::has90Symmetry(void)
cmp eax, 0
jz short loc_12B59
mov rdi, [rsp+38h+var_10]
lea rsi, aSymmetryR90_0; " SYMMETRY R90"
mov al, 0
call _fprintf
loc_12B59:
mov rdi, [rsp+38h+var_10]
lea rsi, aEnd_0+7; "\n"
mov al, 0
call _fprintf
add rsp, 38h
retn
| long long LefDefParser::lefiSite::print(LefDefParser::lefiSite *a1, long long a2)
{
const char *v2; // rax
const char *v3; // rax
double v4; // xmm1_8
double v6; // [rsp+8h] [rbp-30h]
v2 = (const char *)LefDefParser::lefiSite::name(a1);
fprintf(a2, "SITE %s", v2);
if ( (unsigned int)LefDefParser::lefiSite::hasClass(a1) )
{
v3 = (const char *)LefDefParser::lefiSite::siteClass(a1);
fprintf(a2, " CLASS %s", v3);
}
if ( (unsigned int)LefDefParser::lefiSite::hasSize(a1) )
{
v6 = LefDefParser::lefiSite::sizeX(a1);
v4 = LefDefParser::lefiSite::sizeY(a1);
fprintf(a2, " SIZE %g %g", v6, v4);
}
if ( LefDefParser::lefiSite::hasXSymmetry(a1) )
fprintf(a2, " SYMMETRY X");
if ( LefDefParser::lefiSite::hasYSymmetry(a1) )
fprintf(a2, " SYMMETRY Y");
if ( LefDefParser::lefiSite::has90Symmetry(a1) )
fprintf(a2, " SYMMETRY R90");
return fprintf(a2, "\n");
}
| print:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x001128d0
MOV RDI,qword ptr [RSP + 0x18]
MOV RDX,RAX
LEA RSI,[0x1922b2]
MOV AL,0x0
CALL 0x00102370
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001128e0
CMP EAX,0x0
JZ 0x00112aa6
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001128f0
MOV RDI,qword ptr [RSP + 0x10]
MOV RDX,RAX
LEA RSI,[0x1922ba]
MOV AL,0x0
CALL 0x00102370
LAB_00112aa6:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00112920
CMP EAX,0x0
JZ 0x00112af3
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP],RAX
CALL 0x00112900
MOV RDI,qword ptr [RSP + 0x20]
MOVSD qword ptr [RSP + 0x8],XMM0
CALL 0x00112910
MOV RDI,qword ptr [RSP]
MOVAPS XMM1,XMM0
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x1922c4]
MOV AL,0x2
CALL 0x00102370
LAB_00112af3:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00112930
CMP EAX,0x0
JZ 0x00112b15
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x1922d0]
MOV AL,0x0
CALL 0x00102370
LAB_00112b15:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00112950
CMP EAX,0x0
JZ 0x00112b37
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x1922dc]
MOV AL,0x0
CALL 0x00102370
LAB_00112b37:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00112970
CMP EAX,0x0
JZ 0x00112b59
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x1922e8]
MOV AL,0x0
CALL 0x00102370
LAB_00112b59:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x193f07]
MOV AL,0x0
CALL 0x00102370
ADD RSP,0x38
RET
|
/* LefDefParser::lefiSite::print(_IO_FILE*) const */
void __thiscall LefDefParser::lefiSite::print(lefiSite *this,_IO_FILE *param_1)
{
int iVar1;
int8 uVar2;
int4 uVar3;
uVar2 = name(this);
fprintf(param_1,"SITE %s",uVar2);
iVar1 = hasClass(this);
if (iVar1 != 0) {
uVar2 = siteClass(this);
fprintf(param_1," CLASS %s",uVar2);
}
iVar1 = hasSize(this);
if (iVar1 != 0) {
uVar2 = sizeX(this);
uVar3 = sizeY(this);
fprintf(param_1," SIZE %g %g",uVar2,uVar3);
}
iVar1 = hasXSymmetry(this);
if (iVar1 != 0) {
fprintf(param_1," SYMMETRY X");
}
iVar1 = hasYSymmetry(this);
if (iVar1 != 0) {
fprintf(param_1," SYMMETRY Y");
}
iVar1 = has90Symmetry(this);
if (iVar1 != 0) {
fprintf(param_1," SYMMETRY R90");
}
fprintf(param_1,"\n");
return;
}
|
|
5,480 | google::protobuf::internal::LogMessage::operator<<(google::protobuf::util::status_internal::Status const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/common.cc | LogMessage& LogMessage::operator<<(const util::Status& status) {
message_ += status.ToString();
return *this;
} | O3 | cpp | google::protobuf::internal::LogMessage::operator<<(google::protobuf::util::status_internal::Status const&):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x173c0
leaq 0x18(%rbx), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x13a4e
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16690
callq 0xf330
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x166b1
callq 0xf330
movq %rbx, %rdi
callq 0xf570
nop
| _ZN6google8protobuf8internal10LogMessagelsERKNS0_4util15status_internal6StatusE:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _ZNK6google8protobuf4util15status_internal6Status8ToStringB5cxx11Ev; google::protobuf::util::status_internal::Status::ToString(void)
lea rdi, [rbx+18h]
mov rsi, [r14]
mov rdx, [r14+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_16690
call __ZdlPv; operator delete(void *)
loc_16690:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_166B1
call __ZdlPv; operator delete(void *)
loc_166B1:
mov rdi, rbx
call __Unwind_Resume
| long long google::protobuf::internal::LogMessage::operator<<(
long long a1,
int a2,
int a3,
int a4,
int a5,
int a6)
{
void *v7[2]; // [rsp+8h] [rbp-30h] BYREF
char v8; // [rsp+18h] [rbp-20h] BYREF
google::protobuf::util::status_internal::Status::ToString[abi:cxx11]((unsigned int)v7, a2, a3, a4, a5, a6);
std::string::_M_append((_QWORD *)(a1 + 24), (_BYTE *)v7[0], (long long)v7[1]);
if ( v7[0] != &v8 )
operator delete(v7[0]);
return a1;
}
| operator<<:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001173c0
LEA RDI,[RBX + 0x18]
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00116678:
CALL 0x00113a4e
LAB_0011667d:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00116690
CALL 0x0010f330
LAB_00116690:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* google::protobuf::internal::LogMessage::TEMPNAMEPLACEHOLDERVALUE(google::protobuf::util::status_internal::Status
const&) */
LogMessage * __thiscall
google::protobuf::internal::LogMessage::operator<<(LogMessage *this,Status *param_1)
{
char *local_30;
ulong local_28;
char local_20 [16];
util::status_internal::Status::ToString_abi_cxx11_();
/* try { // try from 00116678 to 0011667c has its CatchHandler @ 0011669b */
std::__cxx11::string::_M_append((string *)(this + 0x18),local_30,local_28);
if (local_30 != local_20) {
operator_delete(local_30);
}
return this;
}
|
|
5,481 | js_dtoa_infinite | bluesky950520[P]quickjs/quickjs.c | static JSValue js_dtoa_infinite(JSContext *ctx, double d)
{
// TODO(chqrlie) use atoms for NaN and Infinite?
if (isnan(d))
return js_new_string8(ctx, "NaN");
if (d < 0)
return js_new_string8(ctx, "-Infinity");
else
return js_new_string8(ctx, "Infinity");
} | O0 | c | js_dtoa_infinite:
subq $0x28, %rsp
movq %rdi, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x68672
jmp 0x6868f
movq 0x10(%rsp), %rdi
leaq 0xad233(%rip), %rsi # 0x1158b1
callq 0x3f8e0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
jmp 0x686d2
xorps %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x686b7
movq 0x10(%rsp), %rdi
leaq 0xabd7d(%rip), %rsi # 0x114423
callq 0x3f8e0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
jmp 0x686d2
movq 0x10(%rsp), %rdi
leaq 0xabd61(%rip), %rsi # 0x114424
callq 0x3f8e0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| js_dtoa_infinite:
sub rsp, 28h
mov [rsp+28h+var_18], rdi
movsd [rsp+28h+var_20], xmm0
movsd xmm0, [rsp+28h+var_20]
ucomisd xmm0, xmm0
setp al
test al, 1
jnz short loc_68672
jmp short loc_6868F
loc_68672:
mov rdi, [rsp+28h+var_18]
lea rsi, aDateValueIsNan+0Eh; "NaN"
call js_new_string8
mov [rsp+28h+var_10], rax
mov [rsp+28h+var_8], rdx
jmp short loc_686D2
loc_6868F:
xorps xmm0, xmm0
ucomisd xmm0, [rsp+28h+var_20]
jbe short loc_686B7
mov rdi, [rsp+28h+var_18]
lea rsi, aInfinity; "-Infinity"
call js_new_string8
mov [rsp+28h+var_10], rax
mov [rsp+28h+var_8], rdx
jmp short loc_686D2
loc_686B7:
mov rdi, [rsp+28h+var_18]
lea rsi, aInfinity+1; "Infinity"
call js_new_string8
mov [rsp+28h+var_10], rax
mov [rsp+28h+var_8], rdx
loc_686D2:
mov rax, [rsp+28h+var_10]
mov rdx, [rsp+28h+var_8]
add rsp, 28h
retn
| long long js_dtoa_infinite(long long a1, double a2)
{
if ( a2 >= 0.0 )
return js_new_string8(a1, (long long)"Infinity");
else
return js_new_string8(a1, (long long)"-Infinity");
}
| js_dtoa_infinite:
SUB RSP,0x28
MOV qword ptr [RSP + 0x10],RDI
MOVSD qword ptr [RSP + 0x8],XMM0
MOVSD XMM0,qword ptr [RSP + 0x8]
UCOMISD XMM0,XMM0
SETP AL
TEST AL,0x1
JNZ 0x00168672
JMP 0x0016868f
LAB_00168672:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x2158b1]
CALL 0x0013f8e0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
JMP 0x001686d2
LAB_0016868f:
XORPS XMM0,XMM0
UCOMISD XMM0,qword ptr [RSP + 0x8]
JBE 0x001686b7
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x214423]
CALL 0x0013f8e0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
JMP 0x001686d2
LAB_001686b7:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x214424]
CALL 0x0013f8e0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
LAB_001686d2:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
int1 [16] js_dtoa_infinite(double param_1,int8 param_2)
{
int1 auVar1 [16];
if (NAN(param_1)) {
auVar1 = js_new_string8(param_2,"NaN");
}
else if (0.0 <= param_1) {
auVar1 = js_new_string8(param_2,"Infinity");
}
else {
auVar1 = js_new_string8(param_2,"-Infinity");
}
return auVar1;
}
|
|
5,482 | js_dtoa_infinite | bluesky950520[P]quickjs/quickjs.c | static JSValue js_dtoa_infinite(JSContext *ctx, double d)
{
// TODO(chqrlie) use atoms for NaN and Infinite?
if (isnan(d))
return js_new_string8(ctx, "NaN");
if (d < 0)
return js_new_string8(ctx, "-Infinity");
else
return js_new_string8(ctx, "Infinity");
} | O2 | c | js_dtoa_infinite:
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
leaq 0x4eebd(%rip), %rax # 0x89387
leaq 0x4eeb7(%rip), %rcx # 0x89388
cmovaq %rax, %rcx
ucomisd %xmm0, %xmm0
leaq 0x5031f(%rip), %rsi # 0x8a7ff
cmovnpq %rcx, %rsi
jmp 0x25406
| js_dtoa_infinite:
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
lea rax, aInfinity; "-Infinity"
lea rcx, aInfinity+1; "Infinity"
cmova rcx, rax
ucomisd xmm0, xmm0
lea rsi, aDateValueIsNan+0Eh; "NaN"
cmovnp rsi, rcx
jmp js_new_string8
| long long js_dtoa_infinite(long long a1, double a2)
{
char *v2; // rcx
v2 = "Infinity";
if ( a2 < 0.0 )
v2 = "-Infinity";
return js_new_string8(a1, (long long)v2);
}
| js_dtoa_infinite:
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
LEA RAX,[0x189387]
LEA RCX,[0x189388]
CMOVA RCX,RAX
UCOMISD XMM0,XMM0
LEA RSI,[0x18a7ff]
CMOVNP RSI,RCX
JMP 0x00125406
|
void js_dtoa_infinite(double param_1,int8 param_2)
{
char *pcVar1;
char *pcVar2;
pcVar1 = "Infinity";
if (param_1 < 0.0) {
pcVar1 = "-Infinity";
}
pcVar2 = "NaN";
if (!NAN(param_1)) {
pcVar2 = pcVar1;
}
js_new_string8(param_2,pcVar2);
return;
}
|
|
5,483 | js_bytecode_function_mark | bluesky950520[P]quickjs/quickjs.c | static void js_bytecode_function_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSVarRef **var_refs = p->u.func.var_refs;
JSFunctionBytecode *b = p->u.func.function_bytecode;
int i;
if (p->u.func.home_object) {
JS_MarkValue(rt, JS_MKPTR(JS_TAG_OBJECT, p->u.func.home_object),
mark_func);
}
if (b) {
if (var_refs) {
for(i = 0; i < b->closure_var_count; i++) {
JSVarRef *var_ref = var_refs[i];
if (var_ref && var_ref->is_detached) {
mark_func(rt, &var_ref->header);
}
}
}
/* must mark the function bytecode because template objects may be
part of a cycle */
JS_MarkValue(rt, JS_MKPTR(JS_TAG_FUNCTION_BYTECODE, b), mark_func);
}
} | O0 | c | js_bytecode_function_mark:
subq $0x68, %rsp
movq %rsi, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0x5b1ca
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x18(%rsp)
movq $-0x1, 0x20(%rsp)
movq 0x48(%rsp), %rcx
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2abe0
cmpq $0x0, 0x30(%rsp)
je 0x5b26d
cmpq $0x0, 0x38(%rsp)
je 0x5b243
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x5c(%rcx), %eax
jge 0x5b241
movq 0x38(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x5b232
movq 0x10(%rsp), %rax
movb 0x5(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x5b232
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq *%rax
jmp 0x5b234
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x5b1e6
jmp 0x5b243
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq $-0x2, 0x8(%rsp)
movq 0x48(%rsp), %rcx
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x2abe0
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| js_bytecode_function_mark:
sub rsp, 68h
mov [rsp+68h+var_10], rsi
mov [rsp+68h+var_8], rdx
mov [rsp+68h+var_18], rdi
mov [rsp+68h+var_20], rcx
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_28], rax
mov rax, [rsp+68h+var_28]
mov rax, [rax+38h]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_28]
mov rax, [rax+30h]
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_28]
cmp qword ptr [rax+40h], 0
jz short loc_5B1CA
mov rdi, [rsp+68h+var_18]
mov rax, [rsp+68h+var_28]
mov rax, [rax+40h]
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], 0FFFFFFFFFFFFFFFFh
mov rcx, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_50]
mov rdx, [rsp+68h+var_48]
call JS_MarkValue
loc_5B1CA:
cmp [rsp+68h+var_38], 0
jz loc_5B26D
cmp [rsp+68h+var_30], 0
jz short loc_5B243
mov [rsp+68h+var_3C], 0
loc_5B1E6:
mov eax, [rsp+68h+var_3C]
mov rcx, [rsp+68h+var_38]
cmp eax, [rcx+5Ch]
jge short loc_5B241
mov rax, [rsp+68h+var_30]
movsxd rcx, [rsp+68h+var_3C]
mov rax, [rax+rcx*8]
mov [rsp+68h+var_58], rax
cmp [rsp+68h+var_58], 0
jz short loc_5B232
mov rax, [rsp+68h+var_58]
mov al, [rax+5]
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_5B232
mov rax, [rsp+68h+var_20]
mov rdi, [rsp+68h+var_18]
mov rsi, [rsp+68h+var_58]
call rax
loc_5B232:
jmp short $+2
loc_5B234:
mov eax, [rsp+68h+var_3C]
add eax, 1
mov [rsp+68h+var_3C], eax
jmp short loc_5B1E6
loc_5B241:
jmp short $+2
loc_5B243:
mov rdi, [rsp+68h+var_18]
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_68], rax
mov [rsp+68h+var_60], 0FFFFFFFFFFFFFFFEh
mov rcx, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
call JS_MarkValue
loc_5B26D:
add rsp, 68h
retn
| long long js_bytecode_function_mark(
long long a1,
_QWORD *a2,
long long a3,
long long ( *a4)(long long, long long))
{
long long result; // rax
long long v5; // [rsp+10h] [rbp-58h]
int i; // [rsp+2Ch] [rbp-3Ch]
long long v7; // [rsp+30h] [rbp-38h]
long long v8; // [rsp+38h] [rbp-30h]
v8 = a2[7];
v7 = a2[6];
result = (long long)a2;
if ( a2[8] )
result = JS_MarkValue(a1, a2[8], -1LL, a4);
if ( v7 )
{
if ( v8 )
{
for ( i = 0; i < *(_DWORD *)(v7 + 92); ++i )
{
v5 = *(_QWORD *)(v8 + 8LL * i);
if ( v5 )
{
if ( (*(_BYTE *)(v5 + 5) & 1) != 0 )
a4(a1, v5);
}
}
}
return JS_MarkValue(a1, v7, -2LL, a4);
}
return result;
}
| js_bytecode_function_mark:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RCX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x40],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 + 0x30]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x0015b1ca
MOV RDI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],-0x1
MOV RCX,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x0012abe0
LAB_0015b1ca:
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0015b26d
CMP qword ptr [RSP + 0x38],0x0
JZ 0x0015b243
MOV dword ptr [RSP + 0x2c],0x0
LAB_0015b1e6:
MOV EAX,dword ptr [RSP + 0x2c]
MOV RCX,qword ptr [RSP + 0x30]
CMP EAX,dword ptr [RCX + 0x5c]
JGE 0x0015b241
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x2c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x10],0x0
JZ 0x0015b232
MOV RAX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RAX + 0x5]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0015b232
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x10]
CALL RAX
LAB_0015b232:
JMP 0x0015b234
LAB_0015b234:
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x0015b1e6
LAB_0015b241:
JMP 0x0015b243
LAB_0015b243:
MOV RDI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],-0x2
MOV RCX,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x0012abe0
LAB_0015b26d:
ADD RSP,0x68
RET
|
void js_bytecode_function_mark(int8 param_1,long param_2,int8 param_3,code *param_4)
{
long lVar1;
long lVar2;
long lVar3;
int local_3c;
lVar1 = *(long *)(param_2 + 0x38);
lVar2 = *(long *)(param_2 + 0x30);
if (*(long *)(param_2 + 0x40) != 0) {
JS_MarkValue(param_1,*(int8 *)(param_2 + 0x40),0xffffffffffffffff,param_4);
}
if (lVar2 != 0) {
if (lVar1 != 0) {
for (local_3c = 0; local_3c < *(int *)(lVar2 + 0x5c); local_3c = local_3c + 1) {
lVar3 = *(long *)(lVar1 + (long)local_3c * 8);
if ((lVar3 != 0) && ((*(byte *)(lVar3 + 5) & 1) != 0)) {
(*param_4)(param_1,lVar3);
}
}
}
JS_MarkValue(param_1,lVar2,0xfffffffffffffffe,param_4);
}
return;
}
|
|
5,484 | js_bytecode_function_mark | bluesky950520[P]quickjs/quickjs.c | static void js_bytecode_function_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSVarRef **var_refs = p->u.func.var_refs;
JSFunctionBytecode *b = p->u.func.function_bytecode;
int i;
if (p->u.func.home_object) {
JS_MarkValue(rt, JS_MKPTR(JS_TAG_OBJECT, p->u.func.home_object),
mark_func);
}
if (b) {
if (var_refs) {
for(i = 0; i < b->closure_var_count; i++) {
JSVarRef *var_ref = var_refs[i];
if (var_ref && var_ref->is_detached) {
mark_func(rt, &var_ref->header);
}
}
}
/* must mark the function bytecode because template objects may be
part of a cycle */
JS_MarkValue(rt, JS_MKPTR(JS_TAG_FUNCTION_BYTECODE, b), mark_func);
}
} | O1 | c | js_bytecode_function_mark:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
movq 0x30(%rsi), %rbx
movq 0x38(%rsi), %r15
movq 0x40(%rsi), %rsi
testq %rsi, %rsi
movq %rcx, %r13
je 0x3a93f
movq %r14, %rdi
callq *%r13
movq %r13, %rcx
testq %rbx, %rbx
je 0x3a987
testq %r15, %r15
je 0x3a976
cmpl $0x0, 0x5c(%rbx)
jle 0x3a976
xorl %r12d, %r12d
movq (%r15,%r12,8), %rsi
testq %rsi, %rsi
je 0x3a96a
testb $0x1, 0x5(%rsi)
je 0x3a96a
movq %r14, %rdi
callq *%r13
movq %r13, %rcx
incq %r12
movslq 0x5c(%rbx), %rax
cmpq %rax, %r12
jl 0x3a952
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *%rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| js_bytecode_function_mark:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdi
mov rbx, [rsi+30h]
mov r15, [rsi+38h]
mov rsi, [rsi+40h]
test rsi, rsi
mov r13, rcx
jz short loc_3A93F
mov rdi, r14
call r13
mov rcx, r13
loc_3A93F:
test rbx, rbx
jz short loc_3A987
test r15, r15
jz short loc_3A976
cmp dword ptr [rbx+5Ch], 0
jle short loc_3A976
xor r12d, r12d
loc_3A952:
mov rsi, [r15+r12*8]
test rsi, rsi
jz short loc_3A96A
test byte ptr [rsi+5], 1
jz short loc_3A96A
mov rdi, r14
call r13
mov rcx, r13
loc_3A96A:
inc r12
movsxd rax, dword ptr [rbx+5Ch]
cmp r12, rax
jl short loc_3A952
loc_3A976:
mov rdi, r14
mov rsi, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp rcx
loc_3A987:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long js_bytecode_function_mark(long long a1, _QWORD *a2, long long a3, void ( *a4)(_QWORD))
{
long long v4; // rbx
long long v5; // r15
void ( *v6)(_QWORD); // r13
long long result; // rax
long long v8; // r12
long long v9; // rsi
v4 = a2[6];
v5 = a2[7];
v6 = a4;
if ( a2[8] )
{
result = ((long long ( *)(long long))a4)(a1);
a4 = v6;
}
if ( v4 )
{
if ( v5 && *(int *)(v4 + 92) > 0 )
{
v8 = 0LL;
do
{
v9 = *(_QWORD *)(v5 + 8 * v8);
if ( v9 )
{
if ( (*(_BYTE *)(v9 + 5) & 1) != 0 )
{
v6(a1);
a4 = v6;
}
}
++v8;
}
while ( v8 < *(int *)(v4 + 92) );
}
return ((long long ( *)(long long, long long))a4)(a1, v4);
}
return result;
}
| |||
5,485 | THD::set_current_stmt_binlog_format_row_if_mixed() | eloqsql/sql/sql_class.h | inline void set_current_stmt_binlog_format_row_if_mixed()
{
DBUG_ENTER("set_current_stmt_binlog_format_row_if_mixed");
/*
This should only be called from decide_logging_format.
@todo Once we have ensured this, uncomment the following
statement, remove the big comment below that, and remove the
in_sub_stmt==0 condition from the following 'if'.
*/
/* DBUG_ASSERT(in_sub_stmt == 0); */
/*
If in a stored/function trigger, the caller should already have done the
change. We test in_sub_stmt to prevent introducing bugs where people
wouldn't ensure that, and would switch to row-based mode in the middle
of executing a stored function/trigger (which is too late, see also
reset_current_stmt_binlog_format_row()); this condition will make their
tests fail and so force them to propagate the
lex->binlog_row_based_if_mixed upwards to the caller.
*/
if ((wsrep_binlog_format() == BINLOG_FORMAT_MIXED) && (in_sub_stmt == 0))
set_current_stmt_binlog_format_row();
DBUG_VOID_RETURN;
} | O0 | c | THD::set_current_stmt_binlog_format_row_if_mixed():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x86f8d0
cmpq $0x0, %rax
jne 0x8929b5
movq -0x10(%rbp), %rax
cmpl $0x0, 0x27b0(%rax)
jne 0x8929b5
movq -0x10(%rbp), %rdi
callq 0x892730
jmp 0x8929b7
jmp 0x8929b9
addq $0x10, %rsp
popq %rbp
retq
nop
| _ZN3THD43set_current_stmt_binlog_format_row_if_mixedEv:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZNK3THD19wsrep_binlog_formatEv; THD::wsrep_binlog_format(void)
cmp rax, 0
jnz short loc_8929B5
mov rax, [rbp+var_10]
cmp dword ptr [rax+27B0h], 0
jnz short loc_8929B5
mov rdi, [rbp+var_10]; this
call _ZN3THD34set_current_stmt_binlog_format_rowEv; THD::set_current_stmt_binlog_format_row(void)
loc_8929B5:
jmp short $+2
loc_8929B7:
jmp short $+2
loc_8929B9:
add rsp, 10h
pop rbp
retn
| THD * THD::set_current_stmt_binlog_format_row_if_mixed(THD *this)
{
THD *result; // rax
result = (THD *)THD::wsrep_binlog_format(this);
if ( !result )
{
result = this;
if ( !*((_DWORD *)this + 2540) )
return THD::set_current_stmt_binlog_format_row(this);
}
return result;
}
| __cxx_global_var_init.32:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x1dfb4d0]
LEA RSI,[0x14b7aa6]
CALL 0x00c03760
LEA RDI,[0xc037f0]
LEA RSI,[0x1dfb4d0]
LEA RDX,[0x1bc5008]
CALL 0x00858cf0
POP RBP
RET
|
void __cxx_global_var_init_32(void)
{
Named_type_handler<Type_handler_ulong>::Named_type_handler
((Named_type_handler<Type_handler_ulong> *)type_handler_ulong,"int unsigned");
__cxa_atexit(Named_type_handler<Type_handler_ulong>::~Named_type_handler,type_handler_ulong,
&__dso_handle);
return;
}
|
|
5,486 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O1 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1a350
addq 0x8(%r14), %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1ac00
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1aee0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x1a210
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x8d9cd
movq (%r12), %rsi
incq %rsi
callq 0x1a7f0
movq %r14, %rdi
callq 0x1adc0
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA39_KcS8_EEET_DpOT0_:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
add rax, [r14+8]
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_8D9CD
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D9CD:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[39],std::string>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
std::string::reserve(a1, a3[1] + v4);
std::string::append(a1, a2);
std::string::_M_append(a1, *a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011a350
ADD RAX,qword ptr [R14 + 0x8]
LAB_0018d982:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011ac00
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011aee0
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x0011a210
LAB_0018d9a7:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [39], std::__cxx11::string >(char const (&) [39], std::__cxx11::string&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>
(detail *this,char *param_1,string *param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
/* try { // try from 0018d982 to 0018d9a6 has its CatchHandler @ 0018d9b6 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2);
return this;
}
|
|
5,487 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O2 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x4e301
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22bf0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x95732
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x22f98
movq %r14, %rdi
callq 0x22da0
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA28_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3);
std::string::reserve(a1, v4);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA28_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_(
a1,
a2,
a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[28],char_const*>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
MOV RSI,RDX
CALL 0x0014e301
LAB_001956e5:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00122bf0
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x00195732
LAB_001956fe:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [28], char const*>(char const (&) [28], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
concat_length<char_const*>(param_1,param_2);
/* try { // try from 001956e5 to 001956fd has its CatchHandler @ 00195707 */
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA28_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
(this,param_1,param_2);
return this;
}
|
|
5,488 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [39], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x19350
movq %rax, %r12
movq (%r14), %rdi
callq 0x19350
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19c00
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19ee0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x19ee0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xb1229
movq (%r13), %rsi
incq %rsi
callq 0x197f0
movq %r14, %rdi
callq 0x19dc0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_B1229
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B1229:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[28],char_const*>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R13,[RDI + 0x10]
MOV qword ptr [RDI],R13
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x00119350
MOV R12,RAX
MOV RDI,qword ptr [R14]
CALL 0x00119350
ADD R12,RAX
LAB_001b11e4:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00119c00
MOV RDI,RBX
MOV RSI,R15
CALL 0x00119ee0
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x00119ee0
LAB_001b1205:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [28], char const*>(char const (&) [28], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(*param_2);
/* try { // try from 001b11e4 to 001b1204 has its CatchHandler @ 001b1212 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this);
return this;
}
|
|
5,489 | aimrt::CoreRef::GetConfigurator() const | aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/core.h | configurator::ConfiguratorRef GetConfigurator() const {
AIMRT_ASSERT(base_ptr_, "Reference is null.");
return configurator::ConfiguratorRef(base_ptr_->configurator(base_ptr_->impl));
} | O0 | c | aimrt::CoreRef::GetConfigurator() const:
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xd70cc
movb $0x1, 0x23(%rsp)
movl $0x28, %edi
callq 0x8e630
movq %rax, (%rsp)
leaq 0x3067bb(%rip), %rax # 0x3dd6da
movq %rax, 0x30(%rsp)
movq $0x12, 0x38(%rsp)
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
leaq 0x40(%rsp), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa0(%rsp)
movq %rax, 0xa8(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movups (%rax), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq 0xc0(%rsp), %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
callq 0x9e310
movq %rdx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
jmp 0xd6fa8
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xe0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0xe8(%rsp), %rax
movq %rcx, 0x100(%rsp)
movq $0x0, 0xf8(%rsp)
movq %rax, 0xf0(%rsp)
movq 0x100(%rsp), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, (%rax)
movq 0xf0(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %r8
leaq 0x40(%rsp), %rdi
callq 0x9e1d0
jmp 0xd7060
jmp 0xd7062
movq (%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x9e120
jmp 0xd7072
movq (%rsp), %rdi
movb $0x0, 0x23(%rsp)
leaq 0x42279e(%rip), %rsi # 0x4f9820
leaq -0x38f19(%rip), %rdx # 0x9e170
callq 0x90860
jmp 0xd7107
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0xd70b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x96fb8
testb $0x1, 0x23(%rsp)
jne 0xd70c1
jmp 0xd70ca
movq (%rsp), %rdi
callq 0x93710
jmp 0xd70fd
jmp 0xd70ce
movq 0x18(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rax), %rax
movq (%rcx), %rcx
movq 0x40(%rcx), %rdi
callq *%rax
movq %rax, %rsi
leaq 0x68(%rsp), %rdi
callq 0xd9a50
movq 0x68(%rsp), %rax
addq $0x108, %rsp # imm = 0x108
retq
movq 0x28(%rsp), %rdi
callq 0x90db0
nopw (%rax,%rax)
| _ZNK5aimrt7CoreRef15GetConfiguratorEv:
sub rsp, 108h
mov [rsp+108h+var_A8], rdi
mov rax, [rsp+108h+var_A8]
mov [rsp+108h+var_F0], rax
mov rax, [rsp+108h+var_F0]
cmp qword ptr [rax], 0
jnz loc_D70CC
mov [rsp+108h+var_E5], 1
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov [rsp+108h+var_108], rax
lea rax, aReferenceIsNul; "Reference is null."
mov [rsp+108h+var_D8], rax
mov [rsp+108h+var_D0], 12h
mov rcx, [rsp+108h+var_D8]
mov rax, [rsp+108h+var_D0]
lea rdx, [rsp+108h+var_C8]
mov [rsp+108h+var_58], rdx
mov [rsp+108h+var_68], rcx
mov [rsp+108h+var_60], rax
lea rax, [rsp+108h+var_68]
mov [rsp+108h+var_50], rax
mov rax, [rsp+108h+var_50]
movups xmm0, xmmword ptr [rax]
movaps [rsp+108h+var_48], xmm0
mov rcx, qword ptr [rsp+108h+var_48]
mov rax, qword ptr [rsp+108h+var_48+8]
mov [rsp+108h+var_78], rcx
mov [rsp+108h+var_70], rax
call _ZN3fmt3v1016make_format_argsINS0_20basic_format_contextINS0_8appenderEcEEJEEENS0_16format_arg_storeIT_JDpNSt9remove_cvINSt16remove_referenceIT0_E4typeEE4typeEEEEDpRS9_
mov [rsp+108h+var_100], rdx
mov [rsp+108h+var_F8], rax
jmp short $+2
loc_D6FA8:
mov rax, [rsp+108h+var_100]
mov rcx, [rsp+108h+var_F8]
mov [rsp+108h+var_98], rcx
mov [rsp+108h+var_90], rax
lea rax, [rsp+108h+var_88]
mov [rsp+108h+var_28], rax
lea rax, [rsp+108h+var_98]
mov [rsp+108h+var_30], rax
mov rcx, [rsp+108h+var_28]
mov rax, [rsp+108h+var_30]
mov [rsp+108h+var_20], rax
mov rax, [rsp+108h+var_20]
mov [rsp+108h+var_8], rcx
mov [rsp+108h+var_10], 0
mov [rsp+108h+var_18], rax
mov rax, [rsp+108h+var_8]
mov rcx, [rsp+108h+var_10]
mov [rax], rcx
mov rcx, [rsp+108h+var_18]
mov [rax+8], rcx
mov rsi, [rsp+108h+var_78]
mov rdx, [rsp+108h+var_70]
mov rcx, [rsp+108h+var_88]
mov r8, [rsp+108h+var_80]
lea rdi, [rsp+108h+var_C8]
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
jmp short $+2
loc_D7060:
jmp short $+2
loc_D7062:
mov rdi, [rsp+108h+var_108]
lea rsi, [rsp+108h+var_C8]
call _ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_
jmp short $+2
loc_D7072:
mov rdi, [rsp+108h+var_108]; void *
mov [rsp+108h+var_E5], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_D7107
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_D70B8
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_38]; void *
call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_D70B8:
test [rsp+arg_1B], 1
jnz short loc_D70C1
jmp short loc_D70CA
loc_D70C1:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_D70CA:
jmp short loc_D70FD
loc_D70CC:
jmp short $+2
loc_D70CE:
mov rcx, [rsp+108h+var_F0]
mov rax, [rcx]
mov rax, [rax+8]
mov rcx, [rcx]
mov rdi, [rcx+40h]
call rax
mov rsi, rax
lea rdi, [rsp+108h+var_A0]
call _ZN5aimrt12configurator15ConfiguratorRefC2EPK25aimrt_configurator_base_t; aimrt::configurator::ConfiguratorRef::ConfiguratorRef(aimrt_configurator_base_t const*)
mov rax, [rsp+108h+var_A0]
add rsp, 108h
retn
loc_D70FD:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
loc_D7107:
nop word ptr [rax+rax+00000000h]
| long long aimrt::CoreRef::GetConfigurator(aimrt::CoreRef *this)
{
long long v1; // rdx
long long v2; // rax
std::exception *exception; // [rsp+0h] [rbp-108h]
_BYTE v5[32]; // [rsp+40h] [rbp-C8h] BYREF
aimrt::CoreRef *v6; // [rsp+60h] [rbp-A8h]
long long v7; // [rsp+68h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+70h] [rbp-98h] BYREF
_QWORD v9[2]; // [rsp+80h] [rbp-88h] BYREF
__int128 v10; // [rsp+90h] [rbp-78h]
__int128 v11; // [rsp+A0h] [rbp-68h] BYREF
_BYTE *v12; // [rsp+B0h] [rbp-58h]
__int128 *v13; // [rsp+B8h] [rbp-50h]
__int128 v14; // [rsp+C0h] [rbp-48h]
_QWORD *v15; // [rsp+D8h] [rbp-30h]
_QWORD *v16; // [rsp+E0h] [rbp-28h]
_QWORD *v17; // [rsp+E8h] [rbp-20h]
_QWORD *v18; // [rsp+F0h] [rbp-18h]
long long v19; // [rsp+F8h] [rbp-10h]
_QWORD *v20; // [rsp+100h] [rbp-8h]
v6 = this;
if ( !*(_QWORD *)this )
{
exception = (std::exception *)__cxa_allocate_exception(0x28uLL);
v12 = v5;
*(_QWORD *)&v11 = "Reference is null.";
*((_QWORD *)&v11 + 1) = 18LL;
v13 = &v11;
v14 = v11;
v10 = v11;
v8[0] = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>();
v8[1] = v1;
v16 = v9;
v15 = v8;
v17 = v8;
v20 = v9;
v19 = 0LL;
v18 = v8;
v9[0] = 0LL;
v9[1] = v8;
fmt::v10::vformat[abi:cxx11]((long long)v5, v10, *((long long *)&v10 + 1), 0LL, (long long)v8);
ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_(
exception,
(long long)v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
v2 = (*(long long ( **)(_QWORD))(*(_QWORD *)this + 8LL))(*(_QWORD *)(*(_QWORD *)this + 64LL));
aimrt::configurator::ConfiguratorRef::ConfiguratorRef(&v7, v2);
return v7;
}
| GetConfigurator:
SUB RSP,0x108
MOV qword ptr [RSP + 0x60],RDI
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
CMP qword ptr [RAX],0x0
JNZ 0x001d70cc
MOV byte ptr [RSP + 0x23],0x1
MOV EDI,0x28
CALL 0x0018e630
MOV qword ptr [RSP],RAX
LEA RAX,[0x4dd6da]
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],0x12
MOV RCX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x38]
LEA RDX,[RSP + 0x40]
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa0],RCX
MOV qword ptr [RSP + 0xa8],RAX
LEA RAX,[RSP + 0xa0]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0xc0],XMM0
MOV RCX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x98],RAX
LAB_001d6f97:
CALL 0x0019e310
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001d6fa8
LAB_001d6fa8:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0xe0],RAX
LEA RAX,[RSP + 0x70]
MOV qword ptr [RSP + 0xd8],RAX
MOV RCX,qword ptr [RSP + 0xe0]
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0xe8],RAX
MOV RAX,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x100],RCX
MOV qword ptr [RSP + 0xf8],0x0
MOV qword ptr [RSP + 0xf0],RAX
MOV RAX,qword ptr [RSP + 0x100]
MOV RCX,qword ptr [RSP + 0xf8]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0xf0]
MOV qword ptr [RAX + 0x8],RCX
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RSP + 0x80]
MOV R8,qword ptr [RSP + 0x88]
LEA RDI,[RSP + 0x40]
CALL 0x0019e1d0
JMP 0x001d7060
LAB_001d7060:
JMP 0x001d7062
LAB_001d7062:
MOV RDI,qword ptr [RSP]
LEA RSI,[RSP + 0x40]
CALL 0x0019e120
JMP 0x001d7072
LAB_001d7072:
MOV RDI,qword ptr [RSP]
MOV byte ptr [RSP + 0x23],0x0
LEA RSI,[0x5f9820]
LEA RDX,[0x19e170]
CALL 0x00190860
LAB_001d70cc:
JMP 0x001d70ce
LAB_001d70ce:
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RCX]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x40]
CALL RAX
MOV RSI,RAX
LEA RDI,[RSP + 0x68]
CALL 0x001d9a50
MOV RAX,qword ptr [RSP + 0x68]
ADD RSP,0x108
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
/* aimrt::CoreRef::GetConfigurator() const */
int8 __thiscall aimrt::CoreRef::GetConfigurator(CoreRef *this)
{
int8 uVar1;
aimrt_configurator_base_t *paVar2;
int1 local_c8 [32];
CoreRef *local_a8;
int8 local_a0;
int1 local_98 [16];
int1 local_88 [16];
char *local_78;
int8 local_70;
char *local_68;
int8 uStack_60;
int1 *local_58;
char **local_50;
char *local_48;
int8 uStack_40;
int1 *local_30;
int1 *local_28;
int1 *local_20;
int1 *local_18;
int8 local_10;
int1 *local_8;
local_a8 = this;
if (*(long *)this == 0) {
uVar1 = __cxa_allocate_exception(0x28);
local_58 = local_c8;
local_68 = "Reference is null.";
uStack_60 = 0x12;
local_50 = &local_68;
local_78 = "Reference is null.";
local_70 = 0x12;
local_48 = local_78;
uStack_40 = local_70;
/* try { // try from 001d6f97 to 001d705d has its CatchHandler @ 001d7090 */
local_98 = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>()
;
local_28 = local_88;
local_30 = local_98;
local_10 = 0;
local_20 = local_30;
local_18 = local_30;
local_8 = local_28;
fmt::v10::vformat_abi_cxx11_(local_c8,local_78,local_70,0,local_30);
/* try { // try from 001d7062 to 001d708d has its CatchHandler @ 001d70a0 */
_ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_
(uVar1,local_c8);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&common::util::AimRTException::typeinfo,
common::util::AimRTException::~AimRTException);
}
paVar2 = (aimrt_configurator_base_t *)
(**(code **)(*(long *)this + 8))(*(int8 *)(*(long *)this + 0x40));
configurator::ConfiguratorRef::ConfiguratorRef((ConfiguratorRef *)&local_a0,paVar2);
return local_a0;
}
|
|
5,490 | PAIRING_FinalVerify | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/aggregate.c | static bool_t PAIRING_FinalVerify(const PAIRING *ctx, const vec384fp12 GTsig)
{
vec384fp12 GT;
if (!(ctx->ctrl & AGGR_GT_SET))
return 0;
if (GTsig != NULL) {
vec_copy(GT, GTsig, sizeof(GT));
} else if (ctx->ctrl & AGGR_SIGN_SET) {
AggregatedSignature AggrSign;
switch (ctx->ctrl & MIN_SIG_OR_PK) {
case AGGR_MIN_SIG:
POINTonE1_from_Jacobian(&AggrSign.e1, &ctx->AggrSign.e1);
miller_loop_n(GT, (const POINTonE2_affine *)&BLS12_381_G2,
(const POINTonE1_affine *)&AggrSign.e1, 1);
break;
case AGGR_MIN_PK:
POINTonE2_from_Jacobian(&AggrSign.e2, &ctx->AggrSign.e2);
miller_loop_n(GT, (const POINTonE2_affine *)&AggrSign.e2,
(const POINTonE1_affine *)&BLS12_381_G1, 1);
break;
default:
return 0;
}
} else {
/*
* The aggregated signature was infinite, relation between the
* hashes and the public keys has to be VERY special...
*/
vec_copy(GT, BLS12_381_Rx.p12, sizeof(GT));
}
conjugate_fp12(GT);
mul_fp12(GT, GT, ctx->GT);
final_exp(GT, GT);
/* return GT==1 */
return vec_is_equal(GT[0][0], BLS12_381_Rx.p2, sizeof(GT[0][0])) &
vec_is_zero(GT[0][1], sizeof(GT) - sizeof(GT[0][0]));
} | O3 | c | PAIRING_FinalVerify:
movl (%rdi), %eax
testb $0x20, %al
jne 0x61d48
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x360, %rsp # imm = 0x360
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x61d6d
testb $0x10, %al
jne 0x61de8
leaq 0x2af6b(%rip), %rsi # 0x8ccd8
leaq -0x250(%rbp), %rdi
movl $0x240, %edx # imm = 0x240
callq 0x22090
leaq -0x130(%rbp), %rdi
movq %rdi, %rsi
callq 0x683b9
addq $0x18, %rbx
leaq -0x250(%rbp), %r14
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5f7d8
movq %r14, %rdi
movq %r14, %rsi
callq 0x60d2e
leaq 0x2af20(%rip), %rsi # 0x8ccd8
movl $0x60, %edx
movq %r14, %rdi
callq 0x70980
movq %rax, %rbx
leaq -0x1f0(%rbp), %rdi
movl $0x1e0, %esi # imm = 0x1E0
callq 0x70940
andq %rbx, %rax
addq $0x360, %rsp # imm = 0x360
popq %rbx
popq %r14
popq %rbp
retq
andl $0x3, %eax
cmpl $0x2, %eax
je 0x61e23
cmpl $0x1, %eax
jne 0x61e59
leaq 0x258(%rbx), %rsi
leaq -0x370(%rbp), %r14
movq %r14, %rdi
callq 0x59422
leaq 0x2ac4e(%rip), %rsi # 0x8ca60
leaq -0x250(%rbp), %rdi
movl $0x1, %ecx
movq %r14, %rdx
jmp 0x61e4f
leaq 0x258(%rbx), %rsi
leaq -0x370(%rbp), %r14
movq %r14, %rdi
callq 0x5c1d4
leaq 0x2aae0(%rip), %rdx # 0x8c920
leaq -0x250(%rbp), %rdi
movl $0x1, %ecx
movq %r14, %rsi
callq 0x605b9
jmp 0x61d7e
xorl %eax, %eax
jmp 0x61ddc
| PAIRING_FinalVerify:
mov eax, [rdi]
test al, 20h
jnz short loc_61D48
xor eax, eax
retn
loc_61D48:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 360h
mov rbx, rdi
test rsi, rsi
jnz short loc_61D6D
test al, 10h
jnz loc_61DE8
lea rsi, BLS12_381_Rx
loc_61D6D:
lea rdi, [rbp-250h]
mov edx, 240h
call _memcpy
loc_61D7E:
lea rdi, [rbp-130h]
mov rsi, rdi
call neg_fp6
add rbx, 18h
lea r14, [rbp-250h]
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp12
mov rdi, r14
mov rsi, r14
call final_exp
lea rsi, BLS12_381_Rx
mov edx, 60h ; '`'
mov rdi, r14
call vec_is_equal_16x
mov rbx, rax
lea rdi, [rbp-1F0h]
mov esi, 1E0h
call vec_is_zero_16x
and rax, rbx
loc_61DDC:
add rsp, 360h
pop rbx
pop r14
pop rbp
retn
loc_61DE8:
and eax, 3
cmp eax, 2
jz short loc_61E23
cmp eax, 1
jnz short loc_61E59
lea rsi, [rbx+258h]
lea r14, [rbp-370h]
mov rdi, r14
call POINTonE1_from_Jacobian
lea rsi, BLS12_381_G2
lea rdi, [rbp-250h]
mov ecx, 1
mov rdx, r14
jmp short loc_61E4F
loc_61E23:
lea rsi, [rbx+258h]
lea r14, [rbp-370h]
mov rdi, r14
call POINTonE2_from_Jacobian
lea rdx, BLS12_381_G1
lea rdi, [rbp-250h]
mov ecx, 1
mov rsi, r14
loc_61E4F:
call miller_loop_n
jmp loc_61D7E
loc_61E59:
xor eax, eax
jmp loc_61DDC
| long long PAIRING_FinalVerify(_DWORD *a1, long long a2)
{
long long is_equal_16x; // rbx
int v4; // eax
_BYTE *v5; // rsi
_BYTE *v6; // rdx
_BYTE v7[288]; // [rsp-378h] [rbp-378h] BYREF
_BYTE v8[96]; // [rsp-258h] [rbp-258h] BYREF
long long v9; // [rsp-1F8h] [rbp-1F8h] BYREF
_BYTE v10[312]; // [rsp-138h] [rbp-138h] BYREF
if ( (*a1 & 0x20) == 0 )
return 0LL;
if ( !a2 && (*a1 & 0x10) != 0 )
{
v4 = *a1 & 3;
if ( v4 == 2 )
{
POINTonE2_from_Jacobian((long long)v7, (long long)(a1 + 150));
v6 = &BLS12_381_G1;
v5 = v7;
}
else
{
if ( v4 != 1 )
return 0LL;
POINTonE1_from_Jacobian((long long)v7, (long long)(a1 + 150));
v5 = &BLS12_381_G2;
v6 = v7;
}
miller_loop_n((long long)v8, (long long)v5, (long long)v6, 1LL);
}
else
{
memcpy(v8);
}
neg_fp6(v10, v10);
mul_fp12((long long)v8, (long long)v8, (long long)(a1 + 6));
final_exp((long long)v8, (long long)v8);
is_equal_16x = vec_is_equal_16x(v8, &BLS12_381_Rx, 96LL);
return is_equal_16x & vec_is_zero_16x(&v9, 480LL);
}
| PAIRING_FinalVerify:
MOV EAX,dword ptr [RDI]
TEST AL,0x20
JNZ 0x00161d48
XOR EAX,EAX
RET
LAB_00161d48:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x360
MOV RBX,RDI
TEST RSI,RSI
JNZ 0x00161d6d
TEST AL,0x10
JNZ 0x00161de8
LEA RSI,[0x18ccd8]
LAB_00161d6d:
LEA RDI,[RBP + -0x250]
MOV EDX,0x240
CALL 0x00122090
LAB_00161d7e:
LEA RDI,[RBP + -0x130]
MOV RSI,RDI
CALL 0x001683b9
ADD RBX,0x18
LEA R14,[RBP + -0x250]
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
CALL 0x0015f7d8
MOV RDI,R14
MOV RSI,R14
CALL 0x00160d2e
LEA RSI,[0x18ccd8]
MOV EDX,0x60
MOV RDI,R14
CALL 0x00170980
MOV RBX,RAX
LEA RDI,[RBP + -0x1f0]
MOV ESI,0x1e0
CALL 0x00170940
AND RAX,RBX
LAB_00161ddc:
ADD RSP,0x360
POP RBX
POP R14
POP RBP
RET
LAB_00161de8:
AND EAX,0x3
CMP EAX,0x2
JZ 0x00161e23
CMP EAX,0x1
JNZ 0x00161e59
LEA RSI,[RBX + 0x258]
LEA R14,[RBP + -0x370]
MOV RDI,R14
CALL 0x00159422
LEA RSI,[0x18ca60]
LEA RDI,[RBP + -0x250]
MOV ECX,0x1
MOV RDX,R14
JMP 0x00161e4f
LAB_00161e23:
LEA RSI,[RBX + 0x258]
LEA R14,[RBP + -0x370]
MOV RDI,R14
CALL 0x0015c1d4
LEA RDX,[0x18c920]
LEA RDI,[RBP + -0x250]
MOV ECX,0x1
MOV RSI,R14
LAB_00161e4f:
CALL 0x001605b9
JMP 0x00161d7e
LAB_00161e59:
XOR EAX,EAX
JMP 0x00161ddc
|
ulong PAIRING_FinalVerify(uint *param_1,int8 *param_2)
{
uint uVar1;
ulong uVar2;
ulong uVar3;
int1 *puVar4;
int1 *puVar5;
int1 local_378 [288];
int1 local_258 [96];
int1 local_1f8 [192];
int1 local_138 [288];
uVar1 = *param_1;
if ((uVar1 & 0x20) == 0) {
return 0;
}
if (param_2 == (int8 *)0x0) {
if ((uVar1 & 0x10) != 0) {
if ((uVar1 & 3) == 2) {
puVar5 = local_378;
POINTonE2_from_Jacobian(puVar5,param_1 + 0x96);
puVar4 = BLS12_381_G1;
}
else {
if ((uVar1 & 3) != 1) {
return 0;
}
puVar4 = local_378;
POINTonE1_from_Jacobian(puVar4,param_1 + 0x96);
puVar5 = BLS12_381_G2;
}
miller_loop_n(local_258,puVar5,puVar4,1);
goto LAB_00161d7e;
}
param_2 = &BLS12_381_Rx;
}
memcpy(local_258,param_2,0x240);
LAB_00161d7e:
neg_fp6(local_138,local_138);
mul_fp12(local_258,local_258,param_1 + 6);
final_exp(local_258,local_258);
uVar2 = vec_is_equal_16x(local_258,&BLS12_381_Rx,0x60);
uVar3 = vec_is_zero_16x(local_1f8,0x1e0);
return uVar3 & uVar2;
}
|
|
5,491 | eval_num_suffix_ll | eloqsql/mysys/my_getopt.c | static longlong eval_num_suffix_ll(char *argument,
int *error, char *option_name)
{
char *endchar;
longlong num;
DBUG_ENTER("eval_num_suffix_ll");
*error= 0;
errno= 0;
num= strtoll(argument, &endchar, 10);
if (errno == ERANGE)
{
my_getopt_error_reporter(ERROR_LEVEL,
"Incorrect integer value: '%s'", argument);
*error= 1;
DBUG_RETURN(0);
}
num*= eval_num_suffix(endchar, error);
if (*error)
fprintf(stderr,
"Unknown suffix '%c' used for variable '%s' (value '%s')\n",
*endchar, option_name, argument);
DBUG_RETURN(num);
} | O0 | c | eval_num_suffix_ll:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
callq 0x24040
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movl $0xa, %edx
callq 0x24610
movq %rax, -0x30(%rbp)
callq 0x24040
cmpl $0x22, (%rax)
jne 0x29a18
leaq 0x1ac850(%rip), %rax # 0x1d6240
movq (%rax), %rcx
movq -0x10(%rbp), %rdx
xorl %edi, %edi
leaq 0x56fbb(%rip), %rsi # 0x809bb
movb $0x0, %al
callq *%rcx
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x29a68
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x29a80
imulq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x29a5e
movq 0x1ac5a2(%rip), %rax # 0x1d5fe0
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movsbl (%rax), %edx
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %r8
leaq 0x56f82(%rip), %rsi # 0x809d9
movb $0x0, %al
callq 0x24430
jmp 0x29a60
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| eval_num_suffix_ll:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_18]
mov dword ptr [rax], 0
call ___errno_location
mov dword ptr [rax], 0
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_28]
mov edx, 0Ah
call ___isoc23_strtol
mov [rbp+var_30], rax
call ___errno_location
cmp dword ptr [rax], 22h ; '"'
jnz short loc_29A18
lea rax, my_getopt_error_reporter
mov rcx, [rax]
mov rdx, [rbp+var_10]
xor edi, edi
lea rsi, aIncorrectInteg; "Incorrect integer value: '%s'"
mov al, 0
call rcx
mov rax, [rbp+var_18]
mov dword ptr [rax], 1
mov [rbp+var_8], 0
jmp short loc_29A68
loc_29A18:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
call eval_num_suffix
imul rax, [rbp+var_30]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0
jz short loc_29A5E
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rax, [rbp+var_28]
movsx edx, byte ptr [rax]
mov rcx, [rbp+var_20]
mov r8, [rbp+var_10]
lea rsi, aUnknownSuffixC; "Unknown suffix '%c' used for variable '"...
mov al, 0
call _fprintf
loc_29A5E:
jmp short $+2
loc_29A60:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_29A68:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long eval_num_suffix_ll(const char *a1, _DWORD *a2, const char *a3)
{
long long v4; // [rsp+0h] [rbp-30h]
long long v5; // [rsp+0h] [rbp-30h]
char *v6; // [rsp+8h] [rbp-28h] BYREF
const char *v7; // [rsp+10h] [rbp-20h]
_DWORD *v8; // [rsp+18h] [rbp-18h]
const char *v9; // [rsp+20h] [rbp-10h]
v9 = a1;
v8 = a2;
v7 = a3;
*a2 = 0;
*(_DWORD *)__errno_location() = 0;
v4 = __isoc23_strtol(v9, &v6, 10LL);
if ( *(_DWORD *)__errno_location() == 34 )
{
my_getopt_error_reporter(0, (long long)"Incorrect integer value: '%s'", v9);
*v8 = 1;
return 0LL;
}
else
{
v5 = v4 * eval_num_suffix(v6, v8);
if ( *v8 )
fprintf(stderr, "Unknown suffix '%c' used for variable '%s' (value '%s')\n", (unsigned int)*v6, v7, v9);
return v5;
}
}
| eval_num_suffix_ll:
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 RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x0
CALL 0x00124040
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x28]
MOV EDX,0xa
CALL 0x00124610
MOV qword ptr [RBP + -0x30],RAX
CALL 0x00124040
CMP dword ptr [RAX],0x22
JNZ 0x00129a18
LEA RAX,[0x2d6240]
MOV RCX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
XOR EDI,EDI
LEA RSI,[0x1809bb]
MOV AL,0x0
CALL RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x1
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00129a68
LAB_00129a18:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00129a80
IMUL RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x0
JZ 0x00129a5e
MOV RAX,qword ptr [0x002d5fe0]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EDX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x10]
LEA RSI,[0x1809d9]
MOV AL,0x0
CALL 0x00124430
LAB_00129a5e:
JMP 0x00129a60
LAB_00129a60:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_00129a68:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long eval_num_suffix_ll(int8 param_1,int *param_2,int8 param_3)
{
int *piVar1;
long lVar2;
char *local_30;
int8 local_28;
int *local_20;
int8 local_18;
long local_10;
*param_2 = 0;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
piVar1 = __errno_location();
*piVar1 = 0;
lVar2 = __isoc23_strtol(local_18,&local_30,10);
piVar1 = __errno_location();
if (*piVar1 == 0x22) {
(*(code *)my_getopt_error_reporter)(0,"Incorrect integer value: \'%s\'",local_18);
*local_20 = 1;
local_10 = 0;
}
else {
local_10 = eval_num_suffix(local_30,local_20);
local_10 = local_10 * lVar2;
if (*local_20 != 0) {
fprintf(*(FILE **)PTR_stderr_002d5fe0,
"Unknown suffix \'%c\' used for variable \'%s\' (value \'%s\')\n",
(ulong)(uint)(int)*local_30,local_28,local_18);
}
}
return local_10;
}
|
|
5,492 | 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 0x32760
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 0x00132760
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;
}
|
|
5,493 | my_numchars_utf16 | eloqsql/strings/ctype-ucs2.c | static size_t
my_numchars_utf16(CHARSET_INFO *cs,
const char *b, const char *e)
{
size_t nchars= 0;
for ( ; ; nchars++)
{
size_t charlen= my_ismbchar(cs, b, e);
if (!charlen)
break;
b+= charlen;
}
return nchars;
} | O0 | c | my_numchars_utf16:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x5c690
movl %eax, %eax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x58f5c
jmp 0x58f76
movq -0x28(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x58f3c
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
| my_numchars_utf16:
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], 0
loc_58F3C:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call my_ismbchar_1
mov eax, eax
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jnz short loc_58F5C
jmp short loc_58F76
loc_58F5C:
mov rax, [rbp+var_28]
add rax, [rbp+var_10]
mov [rbp+var_10], rax
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_58F3C
loc_58F76:
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
| long long my_numchars_utf16(long long a1, long long a2, long long a3)
{
unsigned int v3; // eax
long long i; // [rsp+10h] [rbp-20h]
for ( i = 0LL; ; ++i )
{
v3 = my_ismbchar_1(a1, a2, a3);
if ( !v3 )
break;
a2 += v3;
}
return i;
}
| my_numchars_utf16:
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],0x0
LAB_00158f3c:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0015c690
MOV EAX,EAX
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x00158f5c
JMP 0x00158f76
LAB_00158f5c:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00158f3c
LAB_00158f76:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
long my_numchars_utf16(int8 param_1,long param_2,int8 param_3)
{
uint uVar1;
int8 local_28;
int8 local_18;
local_28 = 0;
local_18 = param_2;
while( true ) {
uVar1 = my_ismbchar(param_1,local_18,param_3);
if ((ulong)uVar1 == 0) break;
local_18 = (ulong)uVar1 + local_18;
local_28 = local_28 + 1;
}
return local_28;
}
|
|
5,494 | ImPlot::ShowAxisMetrics(ImPlotPlot const&, ImPlotAxis const&) | zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp | void ShowAxisMetrics(const ImPlotPlot& plot, const ImPlotAxis& axis) {
ImGui::BulletText("Label: %s", axis.LabelOffset == -1 ? "[none]" : plot.GetAxisLabel(axis));
ImGui::BulletText("Flags: 0x%08X", axis.Flags);
ImGui::BulletText("Range: [%f,%f]",axis.Range.Min, axis.Range.Max);
ImGui::BulletText("Pixels: %f", axis.PixelSize());
ImGui::BulletText("Aspect: %f", axis.GetAspect());
ImGui::BulletText(axis.OrthoAxis == nullptr ? "OrtherAxis: NULL" : "OrthoAxis: 0x%08X", axis.OrthoAxis->ID);
ImGui::BulletText("LinkedMin: %p", (void*)axis.LinkedMin);
ImGui::BulletText("LinkedMax: %p", (void*)axis.LinkedMax);
ImGui::BulletText("HasRange: %s", axis.HasRange ? "true" : "false");
ImGui::BulletText("Hovered: %s", axis.Hovered ? "true" : "false");
ImGui::BulletText("Held: %s", axis.Held ? "true" : "false");
if (ImGui::TreeNode("Transform")) {
ImGui::BulletText("PixelMin: %f", axis.PixelMin);
ImGui::BulletText("PixelMax: %f", axis.PixelMax);
ImGui::BulletText("ScaleToPixel: %f", axis.ScaleToPixel);
ImGui::BulletText("ScaleMax: %f", axis.ScaleMax);
ImGui::TreePop();
}
if (ImGui::TreeNode("Ticks")) {
ShowTicksMetrics(axis.Ticker);
ImGui::TreePop();
}
} | O1 | cpp | ImPlot::ShowAxisMetrics(ImPlotPlot const&, ImPlotAxis const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movslq 0x148(%rsi), %rax
movq 0x8f0(%rdi), %rcx
addq %rax, %rcx
cmpq $-0x1, %rax
leaq 0x1d4e36(%rip), %rsi # 0x29b629
cmovneq %rcx, %rsi
leaq 0x1d4e21(%rip), %rdi # 0x29b61f
xorl %eax, %eax
callq 0x256de0
movl 0x4(%rbx), %esi
leaq 0x1e8aac(%rip), %rdi # 0x2af2bb
xorl %eax, %eax
callq 0x256de0
movsd 0x10(%rbx), %xmm0
movsd 0x18(%rbx), %xmm1
leaq 0x1d4e09(%rip), %rdi # 0x29b630
movb $0x2, %al
callq 0x256de0
movss 0x114(%rbx), %xmm0
subss 0x110(%rbx), %xmm0
andps 0x1cdbeb(%rip), %xmm0 # 0x294430
cvtss2sd %xmm0, %xmm0
leaq 0x1d4def(%rip), %rdi # 0x29b63f
movb $0x1, %al
callq 0x256de0
movsd 0x18(%rbx), %xmm0
subsd 0x10(%rbx), %xmm0
movss 0x114(%rbx), %xmm1
subss 0x110(%rbx), %xmm1
andps 0x1cdbb8(%rip), %xmm1 # 0x294430
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
leaq 0x1d4dc3(%rip), %rdi # 0x29b64a
movb $0x1, %al
callq 0x256de0
movq 0x38(%rbx), %rax
testq %rax, %rax
leaq 0x1d4db9(%rip), %rcx # 0x29b655
leaq 0x1d4dc3(%rip), %rdi # 0x29b666
cmoveq %rcx, %rdi
movl (%rax), %esi
xorl %eax, %eax
callq 0x256de0
movq 0xc0(%rbx), %rsi
leaq 0x1d4dba(%rip), %rdi # 0x29b678
xorl %eax, %eax
callq 0x256de0
movq 0xc8(%rbx), %rsi
leaq 0x1d4db3(%rip), %rdi # 0x29b686
xorl %eax, %eax
callq 0x256de0
leaq 0x1c9afc(%rip), %r15 # 0x2903dd
cmpb $0x0, 0x16f(%rbx)
leaq 0x1c9af3(%rip), %r14 # 0x2903e2
movq %r14, %rsi
cmovneq %r15, %rsi
leaq 0x1d4d97(%rip), %rdi # 0x29b694
xorl %eax, %eax
callq 0x256de0
cmpb $0x0, 0x172(%rbx)
movq %r14, %rsi
cmovneq %r15, %rsi
leaq 0x1d4fab(%rip), %rdi # 0x29b8c4
xorl %eax, %eax
callq 0x256de0
cmpb $0x0, 0x173(%rbx)
cmovneq %r15, %r14
leaq 0x1d4d6f(%rip), %rdi # 0x29b6a1
movq %r14, %rsi
xorl %eax, %eax
callq 0x256de0
leaq 0x1d4d67(%rip), %rdi # 0x29b6aa
callq 0x267c28
testb %al, %al
je 0xc69af
xorps %xmm0, %xmm0
cvtss2sd 0x110(%rbx), %xmm0
leaq 0x1d4d56(%rip), %rdi # 0x29b6b4
movb $0x1, %al
callq 0x256de0
xorps %xmm0, %xmm0
cvtss2sd 0x114(%rbx), %xmm0
leaq 0x1d4d4a(%rip), %rdi # 0x29b6c1
movb $0x1, %al
callq 0x256de0
movsd 0x128(%rbx), %xmm0
leaq 0x1d4d41(%rip), %rdi # 0x29b6ce
movb $0x1, %al
callq 0x256de0
movsd 0x120(%rbx), %xmm0
leaq 0x1d4d3c(%rip), %rdi # 0x29b6df
movb $0x1, %al
callq 0x256de0
callq 0x268c0a
leaq 0x1d4d36(%rip), %rdi # 0x29b6ec
callq 0x267c28
testb %al, %al
je 0xc69d5
addq $0x60, %rbx
movq %rbx, %rdi
callq 0xc67a2
popq %rbx
popq %r14
popq %r15
jmp 0x268c0a
popq %rbx
popq %r14
popq %r15
retq
| _ZN6ImPlot15ShowAxisMetricsERK10ImPlotPlotRK10ImPlotAxis:
push r15
push r14
push rbx
mov rbx, rsi
movsxd rax, dword ptr [rsi+148h]
mov rcx, [rdi+8F0h]
add rcx, rax
cmp rax, 0FFFFFFFFFFFFFFFFh
lea rsi, aNone; "[none]"
cmovnz rsi, rcx; char *
lea rdi, aLabelS; "Label: %s"
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
mov esi, [rbx+4]; char *
lea rdi, aSaveflags0x08x+4; this
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
movsd xmm0, qword ptr [rbx+10h]
movsd xmm1, qword ptr [rbx+18h]
lea rdi, aRangeFF; "Range: [%f,%f]"
mov al, 2
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
movss xmm0, dword ptr [rbx+114h]
subss xmm0, dword ptr [rbx+110h]
andps xmm0, cs:xmmword_294430
cvtss2sd xmm0, xmm0
lea rdi, aPixelsF; "Pixels: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
movsd xmm0, qword ptr [rbx+18h]
subsd xmm0, qword ptr [rbx+10h]
movss xmm1, dword ptr [rbx+114h]
subss xmm1, dword ptr [rbx+110h]
andps xmm1, cs:xmmword_294430
cvtss2sd xmm1, xmm1
divsd xmm0, xmm1
lea rdi, aAspectF; "Aspect: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
mov rax, [rbx+38h]
test rax, rax
lea rcx, aOrtheraxisNull; "OrtherAxis: NULL"
lea rdi, aOrthoaxis0x08x; "OrthoAxis: 0x%08X"
cmovz rdi, rcx; this
mov esi, [rax]; char *
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
mov rsi, [rbx+0C0h]; char *
lea rdi, aLinkedminP; "LinkedMin: %p"
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
mov rsi, [rbx+0C8h]; char *
lea rdi, aLinkedmaxP; "LinkedMax: %p"
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
lea r15, aTrue; "true"
cmp byte ptr [rbx+16Fh], 0
lea r14, aFalse; "false"
mov rsi, r14
cmovnz rsi, r15; char *
lea rdi, aHasrangeS; "HasRange: %s"
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
cmp byte ptr [rbx+172h], 0
mov rsi, r14
cmovnz rsi, r15; char *
lea rdi, aLegendhoveredS+6; this
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
cmp byte ptr [rbx+173h], 0
cmovnz r14, r15
lea rdi, aHeldS; "Held: %s"
mov rsi, r14; ImPlotTicker *
xor eax, eax
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
lea rdi, aTransform; "Transform"
call _ZN5ImGui8TreeNodeEPKc; ImGui::TreeNode(char const*)
test al, al
jz short loc_C69AF
xorps xmm0, xmm0
cvtss2sd xmm0, dword ptr [rbx+110h]
lea rdi, aPixelminF; "PixelMin: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
xorps xmm0, xmm0
cvtss2sd xmm0, dword ptr [rbx+114h]
lea rdi, aPixelmaxF; "PixelMax: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
movsd xmm0, qword ptr [rbx+128h]
lea rdi, aScaletopixelF; "ScaleToPixel: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
movsd xmm0, qword ptr [rbx+120h]
lea rdi, aScalemaxF; "ScaleMax: %f"
mov al, 1
call _ZN5ImGui10BulletTextEPKcz; ImGui::BulletText(char const*,...)
call _ZN5ImGui7TreePopEv; ImGui::TreePop(void)
loc_C69AF:
lea rdi, aTicks; "Ticks"
call _ZN5ImGui8TreeNodeEPKc; ImGui::TreeNode(char const*)
test al, al
jz short loc_C69D5
add rbx, 60h ; '`'
mov rdi, rbx; this
call _ZN6ImPlot16ShowTicksMetricsERK12ImPlotTicker; ImPlot::ShowTicksMetrics(ImPlotTicker const&)
pop rbx
pop r14
pop r15
jmp _ZN5ImGui7TreePopEv; ImGui::TreePop(void)
loc_C69D5:
pop rbx
pop r14
pop r15
retn
| long long ImPlot::ShowAxisMetrics(ImPlot *this, const ImPlotPlot *a2, const ImPlotAxis *a3)
{
long long v4; // rax
const char *v5; // rsi
const char *v6; // rsi
unsigned int *v7; // rax
char *v8; // rdi
const char *v9; // r14
const char *v10; // rsi
const char *v11; // rsi
long long result; // rax
v4 = *((int *)a2 + 82);
v5 = "[none]";
if ( v4 != -1 )
v5 = (const char *)(v4 + *((_QWORD *)this + 286));
ImGui::BulletText((ImGui *)"Label: %s", v5, a3);
v6 = (const char *)*((unsigned int *)a2 + 1);
ImGui::BulletText((ImGui *)"Flags: 0x%08X", v6);
ImGui::BulletText((ImGui *)"Range: [%f,%f]", v6, *((double *)a2 + 2), *((double *)a2 + 3));
ImGui::BulletText((ImGui *)"Pixels: %f", v6, fabs(*((float *)a2 + 69) - *((float *)a2 + 68)));
ImGui::BulletText(
(ImGui *)"Aspect: %f",
v6,
(*((double *)a2 + 3) - *((double *)a2 + 2)) / fabs(*((float *)a2 + 69) - *((float *)a2 + 68)));
v7 = (unsigned int *)*((_QWORD *)a2 + 7);
v8 = "OrthoAxis: 0x%08X";
if ( !v7 )
v8 = "OrtherAxis: NULL";
ImGui::BulletText((ImGui *)v8, (const char *)*v7);
ImGui::BulletText((ImGui *)"LinkedMin: %p", *((const char **)a2 + 24));
ImGui::BulletText((ImGui *)"LinkedMax: %p", *((const char **)a2 + 25));
v9 = "false";
v10 = "false";
if ( *((_BYTE *)a2 + 367) )
v10 = "true";
ImGui::BulletText((ImGui *)"HasRange: %s", v10);
v11 = "false";
if ( *((_BYTE *)a2 + 370) )
v11 = "true";
ImGui::BulletText((ImGui *)"Hovered: %s", v11);
if ( *((_BYTE *)a2 + 371) )
v9 = "true";
ImGui::BulletText((ImGui *)"Held: %s", v9);
if ( (unsigned __int8)ImGui::TreeNode((ImGui *)"Transform", v9) )
{
ImGui::BulletText((ImGui *)"PixelMin: %f", v9, *((float *)a2 + 68));
ImGui::BulletText((ImGui *)"PixelMax: %f", v9, *((float *)a2 + 69));
ImGui::BulletText((ImGui *)"ScaleToPixel: %f", v9, *((double *)a2 + 37));
ImGui::BulletText((ImGui *)"ScaleMax: %f", v9, *((double *)a2 + 36));
ImGui::TreePop((ImGui *)"ScaleMax: %f");
}
result = ImGui::TreeNode((ImGui *)"Ticks", v9);
if ( (_BYTE)result )
{
ImPlot::ShowTicksMetrics((const ImPlotPlot *)((char *)a2 + 96), (const ImPlotTicker *)v9);
return ImGui::TreePop((const ImPlotPlot *)((char *)a2 + 96));
}
return result;
}
| ShowAxisMetrics:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOVSXD RAX,dword ptr [RSI + 0x148]
MOV RCX,qword ptr [RDI + 0x8f0]
ADD RCX,RAX
CMP RAX,-0x1
LEA RSI,[0x39b629]
CMOVNZ RSI,RCX
LEA RDI,[0x39b61f]
XOR EAX,EAX
CALL 0x00356de0
MOV ESI,dword ptr [RBX + 0x4]
LEA RDI,[0x3af2bb]
XOR EAX,EAX
CALL 0x00356de0
MOVSD XMM0,qword ptr [RBX + 0x10]
MOVSD XMM1,qword ptr [RBX + 0x18]
LEA RDI,[0x39b630]
MOV AL,0x2
CALL 0x00356de0
MOVSS XMM0,dword ptr [RBX + 0x114]
SUBSS XMM0,dword ptr [RBX + 0x110]
ANDPS XMM0,xmmword ptr [0x00394430]
CVTSS2SD XMM0,XMM0
LEA RDI,[0x39b63f]
MOV AL,0x1
CALL 0x00356de0
MOVSD XMM0,qword ptr [RBX + 0x18]
SUBSD XMM0,qword ptr [RBX + 0x10]
MOVSS XMM1,dword ptr [RBX + 0x114]
SUBSS XMM1,dword ptr [RBX + 0x110]
ANDPS XMM1,xmmword ptr [0x00394430]
CVTSS2SD XMM1,XMM1
DIVSD XMM0,XMM1
LEA RDI,[0x39b64a]
MOV AL,0x1
CALL 0x00356de0
MOV RAX,qword ptr [RBX + 0x38]
TEST RAX,RAX
LEA RCX,[0x39b655]
LEA RDI,[0x39b666]
CMOVZ RDI,RCX
MOV ESI,dword ptr [RAX]
XOR EAX,EAX
CALL 0x00356de0
MOV RSI,qword ptr [RBX + 0xc0]
LEA RDI,[0x39b678]
XOR EAX,EAX
CALL 0x00356de0
MOV RSI,qword ptr [RBX + 0xc8]
LEA RDI,[0x39b686]
XOR EAX,EAX
CALL 0x00356de0
LEA R15,[0x3903dd]
CMP byte ptr [RBX + 0x16f],0x0
LEA R14,[0x3903e2]
MOV RSI,R14
CMOVNZ RSI,R15
LEA RDI,[0x39b694]
XOR EAX,EAX
CALL 0x00356de0
CMP byte ptr [RBX + 0x172],0x0
MOV RSI,R14
CMOVNZ RSI,R15
LEA RDI,[0x39b8c4]
XOR EAX,EAX
CALL 0x00356de0
CMP byte ptr [RBX + 0x173],0x0
CMOVNZ R14,R15
LEA RDI,[0x39b6a1]
MOV RSI,R14
XOR EAX,EAX
CALL 0x00356de0
LEA RDI,[0x39b6aa]
CALL 0x00367c28
TEST AL,AL
JZ 0x001c69af
XORPS XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBX + 0x110]
LEA RDI,[0x39b6b4]
MOV AL,0x1
CALL 0x00356de0
XORPS XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBX + 0x114]
LEA RDI,[0x39b6c1]
MOV AL,0x1
CALL 0x00356de0
MOVSD XMM0,qword ptr [RBX + 0x128]
LEA RDI,[0x39b6ce]
MOV AL,0x1
CALL 0x00356de0
MOVSD XMM0,qword ptr [RBX + 0x120]
LEA RDI,[0x39b6df]
MOV AL,0x1
CALL 0x00356de0
CALL 0x00368c0a
LAB_001c69af:
LEA RDI,[0x39b6ec]
CALL 0x00367c28
TEST AL,AL
JZ 0x001c69d5
ADD RBX,0x60
MOV RDI,RBX
CALL 0x001c67a2
POP RBX
POP R14
POP R15
JMP 0x00368c0a
LAB_001c69d5:
POP RBX
POP R14
POP R15
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* ImPlot::ShowAxisMetrics(ImPlotPlot const&, ImPlotAxis const&) */
void ImPlot::ShowAxisMetrics(ImPlotPlot *param_1,ImPlotAxis *param_2)
{
char cVar1;
char *pcVar2;
char *pcVar3;
pcVar2 = "[none]";
if ((long)*(int *)(param_2 + 0x148) != -1) {
pcVar2 = (char *)(*(long *)(param_1 + 0x8f0) + (long)*(int *)(param_2 + 0x148));
}
ImGui::BulletText("Label: %s",pcVar2);
ImGui::BulletText("Flags: 0x%08X",(ulong)*(uint *)(param_2 + 4));
ImGui::BulletText("Range: [%f,%f]",*(int8 *)(param_2 + 0x10),*(int8 *)(param_2 + 0x18)
);
ImGui::BulletText("Pixels: %f",
(double)(float)((uint)(*(float *)(param_2 + 0x114) - *(float *)(param_2 + 0x110)
) & _DAT_00394430));
ImGui::BulletText("Aspect: %f",
(*(double *)(param_2 + 0x18) - *(double *)(param_2 + 0x10)) /
(double)(float)((uint)(*(float *)(param_2 + 0x114) - *(float *)(param_2 + 0x110)
) & _DAT_00394430));
pcVar2 = "OrthoAxis: 0x%08X";
if (*(uint **)(param_2 + 0x38) == (uint *)0x0) {
pcVar2 = "OrtherAxis: NULL";
}
ImGui::BulletText(pcVar2,(ulong)**(uint **)(param_2 + 0x38));
ImGui::BulletText("LinkedMin: %p",*(int8 *)(param_2 + 0xc0));
ImGui::BulletText("LinkedMax: %p",*(int8 *)(param_2 + 200));
pcVar3 = "false";
pcVar2 = "false";
if (param_2[0x16f] != (ImPlotAxis)0x0) {
pcVar2 = "true";
}
ImGui::BulletText("HasRange: %s",pcVar2);
pcVar2 = "false";
if (param_2[0x172] != (ImPlotAxis)0x0) {
pcVar2 = "true";
}
ImGui::BulletText("Hovered: %s",pcVar2);
if (param_2[0x173] != (ImPlotAxis)0x0) {
pcVar3 = "true";
}
ImGui::BulletText("Held: %s",pcVar3);
cVar1 = ImGui::TreeNode("Transform");
if (cVar1 != '\0') {
ImGui::BulletText("PixelMin: %f",(double)*(float *)(param_2 + 0x110));
ImGui::BulletText("PixelMax: %f",(double)*(float *)(param_2 + 0x114));
ImGui::BulletText("ScaleToPixel: %f",*(int8 *)(param_2 + 0x128));
ImGui::BulletText("ScaleMax: %f",*(int8 *)(param_2 + 0x120));
ImGui::TreePop();
}
cVar1 = ImGui::TreeNode("Ticks");
if (cVar1 != '\0') {
ShowTicksMetrics((ImPlotTicker *)(param_2 + 0x60));
ImGui::TreePop();
return;
}
return;
}
|
|
5,495 | ma_apply_redo_purge_row_head_or_tail | eloqsql/storage/maria/ma_blockrec.c | uint _ma_apply_redo_purge_row_head_or_tail(MARIA_HA *info, LSN lsn,
uint page_type,
const uchar *header)
{
MARIA_SHARE *share= info->s;
pgcache_page_no_t page;
uint rownr, empty_space;
uchar *buff;
int result;
uint error;
MARIA_PINNED_PAGE page_link;
DBUG_ENTER("_ma_apply_redo_purge_row_head_or_tail");
page= page_korr(header);
rownr= dirpos_korr(header+PAGE_STORE_SIZE);
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr));
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
if (!(buff= pagecache_read(share->pagecache, &info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link)))
goto err;
if (lsn_korr(buff) >= lsn)
{
/*
Already applied
Note that in case the page is not anymore a head or tail page
a future redo will fix the bitmap.
*/
check_skipped_lsn(info, lsn_korr(buff), 1, page);
if ((uint) (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == page_type)
{
empty_space= uint2korr(buff+EMPTY_SPACE_OFFSET);
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE,
empty_space))
goto err;
}
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
DBUG_RETURN(0);
}
DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == (uchar) page_type);
if (delete_dir_entry(share, buff, rownr, &empty_space) < 0)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
goto err;
}
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
result= 0;
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
/* This will work even if the page was marked as UNALLOCATED_PAGE */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE, empty_space))
result= my_errno;
DBUG_RETURN(result);
err:
error= my_errno;
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN((my_errno= error));
} | O0 | c | ma_apply_redo_purge_row_head_or_tail:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x56a90
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movzbl 0x5(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x570ef
movq -0x30(%rbp), %rax
movl 0x170(%rax), %ecx
orl $0x181, %ecx # imm = 0x181
movl %ecx, 0x170(%rax)
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x38(%rbp), %rdx
leaq -0x68(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x987a0
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x5714e
jmp 0x57310
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
movq -0x48(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x48(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x48(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
cmpq -0x18(%rbp), %rax
jl 0x5726e
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
movq -0x48(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x48(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x20, %rsi
movq -0x48(%rbp), %rax
movl 0x3(%rax), %eax
orq %rax, %rsi
movq -0x38(%rbp), %rcx
movl $0x1, %edx
callq 0x8f600
movq -0x48(%rbp), %rax
movzbl 0x7(%rax), %eax
andl $0x7, %eax
cmpl -0x1c(%rbp), %eax
jne 0x5722b
movq -0x48(%rbp), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x510c0
cmpb $0x0, %al
jne 0x57201
movl $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
cmpl $0x1, -0x1c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl -0x40(%rbp), %ecx
movsbl %al, %edx
callq 0x60d00
cmpb $0x0, %al
je 0x57229
jmp 0x57310
jmp 0x5722b
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x68(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x98540
movl $0x0, -0x4(%rbp)
jmp 0x57374
jmp 0x57270
jmp 0x57272
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x3c(%rbp), %edx
leaq -0x40(%rbp), %rcx
callq 0x57380
cmpl $0x0, %eax
jge 0x5729b
movq -0x10(%rbp), %rdi
movl $0x7f, %esi
callq 0x371c0
jmp 0x57310
movl $0x6, -0x60(%rbp)
movb $0x1, -0x58(%rbp)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x68(%rbp), %rsi
callq 0xdea60
movl $0x0, -0x4c(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x510c0
cmpb $0x0, %al
jne 0x572d9
movl $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
cmpl $0x1, -0x1c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl -0x40(%rbp), %ecx
movsbl %al, %edx
callq 0x60d00
cmpb $0x0, %al
je 0x57306
callq 0xfa320
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x57308
movl -0x4c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x57374
callq 0xfa320
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x68(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x98540
movq -0x30(%rbp), %rdi
callq 0x447c0
jmp 0x5735c
jmp 0x5735e
movl -0x50(%rbp), %eax
movl %eax, -0x6c(%rbp)
callq 0xfa320
movq %rax, %rcx
movl -0x6c(%rbp), %eax
movl %eax, (%rcx)
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
| _ma_apply_redo_purge_row_head_or_tail:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rdi, [rbp+var_28]
call uint5korr_0
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax+5]
mov [rbp+var_3C], eax
jmp short $+2
loc_570EF:
mov rax, [rbp+var_30]
mov ecx, [rax+170h]
or ecx, 181h
mov [rax+170h], ecx
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rdx, [rbp+var_38]
lea rax, [rbp+var_68]
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
mov [rsp+80h+var_80], 4
mov [rsp+80h+var_78], rax
call pagecache_read
mov [rbp+var_48], rax
cmp rax, 0
jnz short loc_5714E
jmp loc_57310
loc_5714E:
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_48]
mov ecx, [rcx+3]
or rax, rcx
cmp rax, [rbp+var_18]
jl loc_5726E
mov rdi, [rbp+var_10]
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov esi, eax
shl rsi, 20h
mov rax, [rbp+var_48]
mov eax, [rax+3]
or rsi, rax
mov rcx, [rbp+var_38]
mov edx, 1
call check_skipped_lsn
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax+7]
and eax, 7
cmp eax, [rbp+var_1C]
jnz short loc_5722B
mov rax, [rbp+var_48]
movzx eax, word ptr [rax+0Ah]
mov [rbp+var_40], eax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call enough_free_entries_on_page
cmp al, 0
jnz short loc_57201
mov [rbp+var_40], 0
loc_57201:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
cmp [rbp+var_1C], 1
setz al
and al, 1
movzx eax, al
mov ecx, [rbp+var_40]
movsx edx, al
call _ma_bitmap_set
cmp al, 0
jz short loc_57229
jmp loc_57310
loc_57229:
jmp short $+2
loc_5722B:
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_68]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+80h+var_80], 0
mov dword ptr [rsp+80h+var_78], 0
call pagecache_unlock_by_link
mov [rbp+var_4], 0
jmp loc_57374
loc_5726E:
jmp short $+2
loc_57270:
jmp short $+2
loc_57272:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_3C]
lea rcx, [rbp+var_40]
call delete_dir_entry
cmp eax, 0
jge short loc_5729B
mov rdi, [rbp+var_10]
mov esi, 7Fh
call _ma_set_fatal_error
jmp short loc_57310
loc_5729B:
mov [rbp+var_60], 6
mov [rbp+var_58], 1
mov rdi, [rbp+var_10]
add rdi, 2E8h
lea rsi, [rbp+var_68]
call insert_dynamic
mov [rbp+var_4C], 0
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call enough_free_entries_on_page
cmp al, 0
jnz short loc_572D9
mov [rbp+var_40], 0
loc_572D9:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
cmp [rbp+var_1C], 1
setz al
and al, 1
movzx eax, al
mov ecx, [rbp+var_40]
movsx edx, al
call _ma_bitmap_set
cmp al, 0
jz short loc_57306
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4C], eax
loc_57306:
jmp short $+2
loc_57308:
mov eax, [rbp+var_4C]
mov [rbp+var_4], eax
jmp short loc_57374
loc_57310:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_50], eax
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_68]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+80h+var_80], 0
mov dword ptr [rsp+80h+var_78], 0
call pagecache_unlock_by_link
mov rdi, [rbp+var_30]
call _ma_mark_file_crashed
jmp short $+2
loc_5735C:
jmp short $+2
loc_5735E:
mov eax, [rbp+var_50]
mov [rbp+var_6C], eax
call _my_thread_var
mov rcx, rax
mov eax, [rbp+var_6C]
mov [rcx], eax
mov [rbp+var_4], eax
loc_57374:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
| long long ma_apply_redo_purge_row_head_or_tail(_DWORD *a1, signed long long a2, int a3, unsigned int *a4)
{
_DWORD *v4; // rdi
const char *v5; // rsi
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
int v9; // r9d
_DWORD *v10; // rdi
const char *v11; // rsi
const char *v12; // rsi
long long v13; // rdi
unsigned int v15; // [rsp+14h] [rbp-6Ch]
const char *v16; // [rsp+18h] [rbp-68h] BYREF
int v17; // [rsp+20h] [rbp-60h]
char v18; // [rsp+28h] [rbp-58h]
unsigned int v19; // [rsp+30h] [rbp-50h]
unsigned int v20; // [rsp+34h] [rbp-4Ch]
_BYTE *v21; // [rsp+38h] [rbp-48h]
unsigned int v22; // [rsp+40h] [rbp-40h] BYREF
unsigned int v23; // [rsp+44h] [rbp-3Ch]
unsigned long long v24; // [rsp+48h] [rbp-38h]
long long v25; // [rsp+50h] [rbp-30h]
unsigned int *v26; // [rsp+58h] [rbp-28h]
int v27; // [rsp+64h] [rbp-1Ch]
signed long long v28; // [rsp+68h] [rbp-18h]
_DWORD *v29; // [rsp+70h] [rbp-10h]
v29 = a1;
v28 = a2;
v27 = a3;
v26 = a4;
v25 = *(_QWORD *)a1;
v24 = uint5korr_0(a4);
v23 = *((unsigned __int8 *)v26 + 5);
*(_DWORD *)(v25 + 368) |= 0x181u;
v4 = *(_DWORD **)(v25 + 1536);
v5 = (const char *)(v29 + 284);
v21 = (_BYTE *)pagecache_read((_DWORD)v4, (int)v29 + 1136, v24, 0, 0, 1, 4, (long long)&v16);
if ( !v21 )
goto LABEL_15;
if ( (long long)(*(unsigned int *)(v21 + 3) | ((unsigned long long)(((unsigned __int8)v21[2] << 16) | (unsigned int)*(unsigned __int16 *)v21) << 32)) >= v28 )
{
check_skipped_lsn(
v29,
*(unsigned int *)(v21 + 3) | ((unsigned long long)(((unsigned __int8)v21[2] << 16) | (unsigned int)*(unsigned __int16 *)v21) << 32),
1LL,
v24);
if ( (v21[7] & 7) != v27 )
goto LABEL_7;
v22 = *((unsigned __int16 *)v21 + 5);
if ( !enough_free_entries_on_page(v25, v21) )
v22 = 0;
v4 = v29;
v5 = (const char *)v24;
if ( !(unsigned __int8)ma_bitmap_set(v29, v24, v27 == 1, v22) )
{
LABEL_7:
pagecache_unlock_by_link(*(_QWORD *)(v25 + 1536), (_DWORD)v16, 6, 3, 0, 0, 0, 0);
return 0;
}
LABEL_15:
v19 = *(_DWORD *)my_thread_var(v4, v5);
v12 = v16;
pagecache_unlock_by_link(*(_QWORD *)(v25 + 1536), (_DWORD)v16, 6, 3, 0, 0, 0, 0);
v13 = v25;
ma_mark_file_crashed(v25);
v15 = v19;
*(_DWORD *)my_thread_var(v13, v12) = v15;
return v15;
}
if ( (int)delete_dir_entry(v25, v21, v23, &v22) < 0 )
{
v4 = v29;
v5 = (_BYTE *)(&dword_7C + 3);
ma_set_fatal_error(v29, 0x7Fu, v6, v7, v8, v9);
goto LABEL_15;
}
v17 = 6;
v18 = 1;
insert_dynamic(v29 + 186, &v16);
v20 = 0;
if ( !enough_free_entries_on_page(v25, v21) )
v22 = 0;
v10 = v29;
v11 = (const char *)v24;
if ( (unsigned __int8)ma_bitmap_set(v29, v24, v27 == 1, v22) )
return *(unsigned int *)my_thread_var(v10, v11);
return v20;
}
| _ma_apply_redo_purge_row_head_or_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00156a90
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + 0x5]
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001570ef
LAB_001570ef:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x170]
OR ECX,0x181
MOV dword ptr [RAX + 0x170],ECX
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x38]
LEA RAX,[RBP + -0x68]
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001987a0
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JNZ 0x0015714e
JMP 0x00157310
LAB_0015714e:
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x48]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
CMP RAX,qword ptr [RBP + -0x18]
JL 0x0015726e
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV ESI,EAX
SHL RSI,0x20
MOV RAX,qword ptr [RBP + -0x48]
MOV EAX,dword ptr [RAX + 0x3]
OR RSI,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EDX,0x1
CALL 0x0018f600
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX + 0x7]
AND EAX,0x7
CMP EAX,dword ptr [RBP + -0x1c]
JNZ 0x0015722b
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,word ptr [RAX + 0xa]
MOV dword ptr [RBP + -0x40],EAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001510c0
CMP AL,0x0
JNZ 0x00157201
MOV dword ptr [RBP + -0x40],0x0
LAB_00157201:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CMP dword ptr [RBP + -0x1c],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV ECX,dword ptr [RBP + -0x40]
MOVSX EDX,AL
CALL 0x00160d00
CMP AL,0x0
JZ 0x00157229
JMP 0x00157310
LAB_00157229:
JMP 0x0015722b
LAB_0015722b:
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x00198540
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00157374
LAB_0015726e:
JMP 0x00157270
LAB_00157270:
JMP 0x00157272
LAB_00157272:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x3c]
LEA RCX,[RBP + -0x40]
CALL 0x00157380
CMP EAX,0x0
JGE 0x0015729b
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x7f
CALL 0x001371c0
JMP 0x00157310
LAB_0015729b:
MOV dword ptr [RBP + -0x60],0x6
MOV byte ptr [RBP + -0x58],0x1
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x68]
CALL 0x001dea60
MOV dword ptr [RBP + -0x4c],0x0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001510c0
CMP AL,0x0
JNZ 0x001572d9
MOV dword ptr [RBP + -0x40],0x0
LAB_001572d9:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CMP dword ptr [RBP + -0x1c],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV ECX,dword ptr [RBP + -0x40]
MOVSX EDX,AL
CALL 0x00160d00
CMP AL,0x0
JZ 0x00157306
CALL 0x001fa320
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
LAB_00157306:
JMP 0x00157308
LAB_00157308:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00157374
LAB_00157310:
CALL 0x001fa320
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x50],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x00198540
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x001447c0
JMP 0x0015735c
LAB_0015735c:
JMP 0x0015735e
LAB_0015735e:
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x6c],EAX
CALL 0x001fa320
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x4],EAX
LAB_00157374:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
_ma_apply_redo_purge_row_head_or_tail(long *param_1,long param_2,uint param_3,long param_4)
{
int4 uVar1;
char cVar2;
int iVar3;
int4 *puVar4;
int8 *puVar5;
int8 local_70;
int4 local_68;
int1 local_60;
int4 local_58;
int4 local_54;
int3 *local_50;
uint local_48;
uint local_44;
int8 local_40;
long local_38;
long local_30;
uint local_24;
long local_20;
long *local_18;
local_38 = *param_1;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_40 = uint5korr(param_4);
local_44 = (uint)*(byte *)(local_30 + 5);
*(uint *)(local_38 + 0x170) = *(uint *)(local_38 + 0x170) | 0x181;
puVar5 = &local_70;
local_50 = (int3 *)
pagecache_read(*(int8 *)(local_38 + 0x600),local_18 + 0x8e,local_40,0,0,1,4,
puVar5);
if (local_50 != (int3 *)0x0) {
if (local_20 <= (long)(ulong)CONCAT34(*local_50,*(int4 *)((long)local_50 + 3))) {
check_skipped_lsn(local_18,(ulong)CONCAT34(*local_50,*(int4 *)((long)local_50 + 3)),1,
local_40);
if ((*(byte *)((long)local_50 + 7) & 7) == local_24) {
local_48 = (uint)*(ushort *)((long)local_50 + 10);
cVar2 = enough_free_entries_on_page(local_38,local_50);
if (cVar2 == '\0') {
local_48 = 0;
}
cVar2 = _ma_bitmap_set(local_18,local_40,local_24 == 1,local_48);
if (cVar2 != '\0') goto LAB_00157310;
}
pagecache_unlock_by_link
(*(int8 *)(local_38 + 0x600),local_70,6,3,0,0,0,
(ulong)puVar5 & 0xffffffff00000000);
return 0;
}
iVar3 = delete_dir_entry(local_38,local_50,local_44,&local_48);
if (-1 < iVar3) {
local_68 = 6;
local_60 = 1;
insert_dynamic(local_18 + 0x5d,&local_70);
local_54 = 0;
cVar2 = enough_free_entries_on_page(local_38,local_50);
if (cVar2 == '\0') {
local_48 = 0;
}
cVar2 = _ma_bitmap_set(local_18,local_40,local_24 == 1,local_48);
if (cVar2 != '\0') {
puVar4 = (int4 *)_my_thread_var();
local_54 = *puVar4;
}
return local_54;
}
_ma_set_fatal_error(local_18,0x7f);
}
LAB_00157310:
puVar4 = (int4 *)_my_thread_var();
local_58 = *puVar4;
pagecache_unlock_by_link
(*(int8 *)(local_38 + 0x600),local_70,6,3,0,0,0,(ulong)puVar5 & 0xffffffff00000000
);
_ma_mark_file_crashed(local_38);
uVar1 = local_58;
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar1;
return uVar1;
}
|
|
5,496 | check_skipped_lsn | eloqsql/storage/maria/ma_loghandler.c | void check_skipped_lsn(MARIA_HA *info, LSN lsn, my_bool index_file,
pgcache_page_no_t page)
{
if (lsn <= log_descriptor.horizon)
{
DBUG_PRINT("info", ("Page is up to date, skipping redo"));
}
else
{
/* Give error, but don't flood the log */
if (skipped_lsn_err_count++ < MAX_LSN_ERRORS &&
! info->s->redo_error_given++)
{
eprint(tracef, "Table %s has wrong LSN: " LSN_FMT " on page: %llu",
(index_file ? info->s->data_file_name.str :
info->s->index_file_name.str),
LSN_IN_PARTS(lsn), (ulonglong) page);
recovery_found_crashed_tables++;
}
}
} | O3 | c | check_skipped_lsn:
cmpq %rsi, 0xbb2c04(%rip) # 0xbff408
jge 0x4c836
movq %rcx, %r9
movq %rsi, %r8
leaq 0xbb2ff5(%rip), %rax # 0xbff808
movl (%rax), %ecx
leal 0x1(%rcx), %esi
movl %esi, (%rax)
cmpl $0x9, %ecx
ja 0x4c836
movq (%rdi), %rax
movb 0x7eb(%rax), %cl
leal 0x1(%rcx), %esi
movb %sil, 0x7eb(%rax)
testb %cl, %cl
je 0x4c837
retq
pushq %rbp
movq %rsp, %rbp
leaq 0xbb2fb6(%rip), %rax # 0xbff7f8
movq (%rax), %rax
xorl %ecx, %ecx
testb %dl, %dl
sete %cl
movq (%rdi), %rdx
shll $0x4, %ecx
movq 0x5c0(%rdx,%rcx), %rdx
movq %r8, %rcx
shrq $0x20, %rcx
leaq 0x8d6c1(%rip), %rsi # 0xd9f29
movq %rax, %rdi
xorl %eax, %eax
callq 0x506b8
leaq 0xbb2f87(%rip), %rax # 0xbff800
incq (%rax)
popq %rbp
retq
| check_skipped_lsn:
cmp cs:qword_BFF408, rsi
jge short locret_4C836
mov r9, rcx
mov r8, rsi
lea rax, skipped_lsn_err_count
mov ecx, [rax]
lea esi, [rcx+1]
mov [rax], esi
cmp ecx, 9
ja short locret_4C836
mov rax, [rdi]
mov cl, [rax+7EBh]
lea esi, [rcx+1]
mov [rax+7EBh], sil
test cl, cl
jz short loc_4C837
locret_4C836:
retn
loc_4C837:
push rbp
mov rbp, rsp
lea rax, tracef
mov rax, [rax]
xor ecx, ecx
test dl, dl
setz cl
mov rdx, [rdi]
shl ecx, 4
mov rdx, [rdx+rcx+5C0h]
mov rcx, r8
shr rcx, 20h
lea rsi, aTableSHasWrong; "Table %s has wrong LSN: (%u,0x%x) on pa"...
mov rdi, rax
xor eax, eax
call eprint
lea rax, recovery_found_crashed_tables
inc qword ptr [rax]
pop rbp
retn
| _QWORD * check_skipped_lsn(long long a1, long long a2, char a3, int a4)
{
char v4; // bp
_QWORD *result; // rax
unsigned int v7; // ecx
char v8; // cl
if ( qword_BFF408 < a2 )
{
result = &skipped_lsn_err_count;
v7 = skipped_lsn_err_count++;
if ( v7 <= 9 )
{
result = *(_QWORD **)a1;
v8 = *(_BYTE *)(*(_QWORD *)a1 + 2027LL);
*(_BYTE *)(*(_QWORD *)a1 + 2027LL) = v8 + 1;
if ( !v8 )
{
eprint(
tracef,
(unsigned int)"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(_QWORD *)(*(_QWORD *)a1 + 16 * (unsigned int)(a3 == 0) + 1472LL),
HIDWORD(a2),
a2,
a4,
v4);
result = &recovery_found_crashed_tables;
++recovery_found_crashed_tables;
}
}
}
return result;
}
| check_skipped_lsn:
CMP qword ptr [0x00cff408],RSI
JGE 0x0014c836
MOV R9,RCX
MOV R8,RSI
LEA RAX,[0xcff808]
MOV ECX,dword ptr [RAX]
LEA ESI,[RCX + 0x1]
MOV dword ptr [RAX],ESI
CMP ECX,0x9
JA 0x0014c836
MOV RAX,qword ptr [RDI]
MOV CL,byte ptr [RAX + 0x7eb]
LEA ESI,[RCX + 0x1]
MOV byte ptr [RAX + 0x7eb],SIL
TEST CL,CL
JZ 0x0014c837
LAB_0014c836:
RET
LAB_0014c837:
PUSH RBP
MOV RBP,RSP
LEA RAX,[0xcff7f8]
MOV RAX,qword ptr [RAX]
XOR ECX,ECX
TEST DL,DL
SETZ CL
MOV RDX,qword ptr [RDI]
SHL ECX,0x4
MOV RDX,qword ptr [RDX + RCX*0x1 + 0x5c0]
MOV RCX,R8
SHR RCX,0x20
LEA RSI,[0x1d9f29]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001506b8
LEA RAX,[0xcff800]
INC qword ptr [RAX]
POP RBP
RET
|
void check_skipped_lsn(long *param_1,ulong param_2,char param_3,int8 param_4)
{
char cVar1;
bool bVar2;
uint uVar3;
if (((DAT_00cff408 < (long)param_2) &&
(uVar3 = skipped_lsn_err_count + 1, bVar2 = skipped_lsn_err_count < 10,
skipped_lsn_err_count = uVar3, bVar2)) &&
(cVar1 = *(char *)(*param_1 + 0x7eb), *(char *)(*param_1 + 0x7eb) = cVar1 + '\x01',
cVar1 == '\0')) {
eprint(tracef,"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(int8 *)(*param_1 + 0x5c0 + (ulong)(param_3 == '\0') * 0x10),param_2 >> 0x20,
param_2,param_4);
recovery_found_crashed_tables = recovery_found_crashed_tables + 1;
return;
}
return;
}
|
|
5,497 | common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, 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&)) | llama.cpp/common/arg.h | common_arg(
const std::initializer_list<const char *> & args,
const char * value_hint,
const char * value_hint_2,
const std::string & help,
void (*handler)(common_params & params, const std::string &, const std::string &)
) : args(args), value_hint(value_hint), value_hint_2(value_hint_2), help(help), handler_str_str(handler) {} | O3 | c | common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, 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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rsp), %rsi
movl $0x0, (%rsi)
leaq 0x7(%rsp), %rcx
leaq 0x6(%rsp), %r8
movl $0x1, %edx
callq 0x83f90
leaq 0x38(%rbx), %rax
xorl %ecx, %ecx
movq %rcx, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movq %rax, 0x48(%rbx)
movq %rax, 0x50(%rbx)
movq %rcx, 0x58(%rbx)
leaq 0x60(%rbx), %rbp
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x5(%rsp), %rcx
movq %rbp, %rdi
callq 0x84012
movq %r13, 0x78(%rbx)
movq %r12, 0x80(%rbx)
movq $0x0, 0x88(%rbx)
leaq 0x90(%rbx), %rdi
leaq 0xa0(%rbx), %rax
movq %rax, 0x90(%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x2875c
movb $0x0, 0xb0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0xc8(%rbx)
movq $0x0, 0xd0(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x64c62
movq 0x70(%rbx), %rsi
subq %rdi, %rsi
callq 0x20180
jmp 0x64c62
movq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x84058
movq %rbx, %rdi
callq 0x84058
movq %r14, %rdi
callq 0x20ae0
nop
| _ZN10common_argC2ERKSt16initializer_listIPKcES2_S2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvR13common_paramsSD_SD_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_40], r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rsi, [rsp+48h+var_34]
mov dword ptr [rsi], 0
lea rcx, [rsp+48h+var_41]
lea r8, [rsp+48h+var_42]
mov edx, 1
call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EEC2ESt16initializer_listIS0_ERKS2_RKS3_; std::set<llama_example>::set(std::initializer_list<llama_example>,std::less<llama_example> const&,std::allocator<llama_example> const&)
lea rax, [rbx+38h]
xor ecx, ecx
mov [rbx+40h], rcx
xorps xmm0, xmm0
movups xmmword ptr [rbx+30h], xmm0
mov [rbx+48h], rax
mov [rbx+50h], rax
mov [rbx+58h], rcx
lea rbp, [rbx+60h]
mov rsi, [r14]
mov rdx, [r14+8]
lea rcx, [rsp+48h+var_43]
mov rdi, rbp
call _ZNSt6vectorIPKcSaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<char const*>::vector(std::initializer_list<char const*>,std::allocator<char const*> const&)
mov [rbx+78h], r13
mov [rbx+80h], r12
mov qword ptr [rbx+88h], 0
lea rdi, [rbx+90h]
lea rax, [rbx+0A0h]
mov [rbx+90h], rax
mov rsi, [r15]
mov rdx, [r15+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)
mov byte ptr [rbx+0B0h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx+0B8h], xmm0
mov rax, [rsp+48h+var_40]
mov [rbx+0C8h], rax
mov qword ptr [rbx+0D0h], 0
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbp+0]; void *
test rdi, rdi
jz short loc_64C62
mov rsi, [rbx+70h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_64C62
mov r14, rax
loc_64C62:
lea rdi, [rbx+30h]
call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree()
mov rdi, rbx
call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree()
mov rdi, r14
call __Unwind_Resume
| long long common_arg::common_arg(long long a1, _QWORD *a2, long long a3, long long a4, long long a5, long long a6)
{
long long result; // rax
char v10; // [rsp+5h] [rbp-43h] BYREF
char v11; // [rsp+6h] [rbp-42h] BYREF
char v12; // [rsp+7h] [rbp-41h] BYREF
long long v13; // [rsp+8h] [rbp-40h]
_DWORD v14[13]; // [rsp+14h] [rbp-34h] BYREF
v13 = a6;
v14[0] = 0;
std::set<llama_example>::set(a1, v14, 1LL, &v12, &v11);
*(_QWORD *)(a1 + 64) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_QWORD *)(a1 + 72) = a1 + 56;
*(_QWORD *)(a1 + 80) = a1 + 56;
*(_QWORD *)(a1 + 88) = 0LL;
std::vector<char const*>::vector(a1 + 96, *a2, a2[1], &v10);
*(_QWORD *)(a1 + 120) = a3;
*(_QWORD *)(a1 + 128) = a4;
*(_QWORD *)(a1 + 136) = 0LL;
*(_QWORD *)(a1 + 144) = a1 + 160;
std::string::_M_construct<char *>(a1 + 144, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
*(_BYTE *)(a1 + 176) = 0;
*(_OWORD *)(a1 + 184) = 0LL;
result = v13;
*(_QWORD *)(a1 + 200) = v13;
*(_QWORD *)(a1 + 208) = 0LL;
return result;
}
| common_arg:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x14]
MOV dword ptr [RSI],0x0
LEA RCX,[RSP + 0x7]
LEA R8,[RSP + 0x6]
MOV EDX,0x1
CALL 0x00183f90
LEA RAX,[RBX + 0x38]
XOR ECX,ECX
MOV qword ptr [RBX + 0x40],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV qword ptr [RBX + 0x48],RAX
MOV qword ptr [RBX + 0x50],RAX
MOV qword ptr [RBX + 0x58],RCX
LEA RBP,[RBX + 0x60]
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00164bc7:
LEA RCX,[RSP + 0x5]
MOV RDI,RBP
CALL 0x00184012
MOV qword ptr [RBX + 0x78],R13
MOV qword ptr [RBX + 0x80],R12
MOV qword ptr [RBX + 0x88],0x0
LEA RDI,[RBX + 0x90]
LEA RAX,[RBX + 0xa0]
MOV qword ptr [RBX + 0x90],RAX
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LAB_00164c09:
CALL 0x0012875c
LAB_00164c0e:
MOV byte ptr [RBX + 0xb0],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0xc8],RAX
MOV qword ptr [RBX + 0xd0],0x0
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*,
std::__cxx11::string const&, void (*)(common_params&, std::__cxx11::string const&,
std::__cxx11::string const&)) */
void __thiscall
common_arg::common_arg
(common_arg *this,initializer_list *param_1,char *param_2,char *param_3,string *param_4,
_func_void_common_params_ptr_string_ptr_string_ptr *param_5)
{
int1 local_43;
int1 local_42;
int1 local_41;
_func_void_common_params_ptr_string_ptr_string_ptr *local_40;
int4 local_34;
local_34 = 0;
local_40 = param_5;
std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set
(this,&local_34,1,&local_41,&local_42);
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(common_arg **)(this + 0x48) = this + 0x38;
*(common_arg **)(this + 0x50) = this + 0x38;
*(int8 *)(this + 0x58) = 0;
/* try { // try from 00164bc7 to 00164bd3 has its CatchHandler @ 00164c5f */
std::vector<char_const*,std::allocator<char_const*>>::vector
((vector<char_const*,std::allocator<char_const*>> *)(this + 0x60),*(int8 *)param_1
,*(int8 *)(param_1 + 8),&local_43);
*(char **)(this + 0x78) = param_2;
*(char **)(this + 0x80) = param_3;
*(int8 *)(this + 0x88) = 0;
*(common_arg **)(this + 0x90) = this + 0xa0;
/* try { // try from 00164c09 to 00164c0d has its CatchHandler @ 00164c45 */
std::__cxx11::string::_M_construct<char*>
(this + 0x90,*(long *)param_4,*(long *)(param_4 + 8) + *(long *)param_4);
this[0xb0] = (common_arg)0x0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(_func_void_common_params_ptr_string_ptr_string_ptr **)(this + 200) = local_40;
*(int8 *)(this + 0xd0) = 0;
return;
}
|
|
5,498 | usage | eloqsql/libmariadb/unittest/libmariadb/my_test.h | static void usage()
{
printf("Execute test with the following options:\n");
printf("-h hostname\n");
printf("-u username\n");
printf("-p password\n");
printf("-d database\n");
printf("-S socketname\n");
printf("-t force use of TLS\n");
printf("-P port number\n");
printf("? displays this help and exits\n");
} | O0 | c | usage:
pushq %rbp
movq %rsp, %rbp
leaq 0x362ed(%rip), %rdi # 0x4b6f8
movb $0x0, %al
callq 0x13060
leaq 0x36309(%rip), %rdi # 0x4b722
movb $0x0, %al
callq 0x13060
leaq 0x36308(%rip), %rdi # 0x4b72f
movb $0x0, %al
callq 0x13060
leaq 0x36307(%rip), %rdi # 0x4b73c
movb $0x0, %al
callq 0x13060
leaq 0x36306(%rip), %rdi # 0x4b749
movb $0x0, %al
callq 0x13060
leaq 0x36305(%rip), %rdi # 0x4b756
movb $0x0, %al
callq 0x13060
leaq 0x36306(%rip), %rdi # 0x4b765
movb $0x0, %al
callq 0x13060
leaq 0x3630d(%rip), %rdi # 0x4b77a
movb $0x0, %al
callq 0x13060
leaq 0x3630f(%rip), %rdi # 0x4b78a
movb $0x0, %al
callq 0x13060
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| usage:
push rbp
mov rbp, rsp
lea rdi, aExecuteTestWit; "Execute test with the following options"...
mov al, 0
call _printf
lea rdi, aHHostname; "-h hostname\n"
mov al, 0
call _printf
lea rdi, aUUsername; "-u username\n"
mov al, 0
call _printf
lea rdi, aPPassword; "-p password\n"
mov al, 0
call _printf
lea rdi, aDDatabase; "-d database\n"
mov al, 0
call _printf
lea rdi, aSSocketname; "-S socketname\n"
mov al, 0
call _printf
lea rdi, aTForceUseOfTls; "-t force use of TLS\n"
mov al, 0
call _printf
lea rdi, aPPortNumber; "-P port number\n"
mov al, 0
call _printf
lea rdi, aDisplaysThisHe; "? displays this help and exits\n"
mov al, 0
call _printf
pop rbp
retn
| long long usage()
{
printf("Execute test with the following options:\n");
printf("-h hostname\n");
printf("-u username\n");
printf("-p password\n");
printf("-d database\n");
printf("-S socketname\n");
printf("-t force use of TLS\n");
printf("-P port number\n");
return printf("? displays this help and exits\n");
}
| usage:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x14b6f8]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b722]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b72f]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b73c]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b749]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b756]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b765]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b77a]
MOV AL,0x0
CALL 0x00113060
LEA RDI,[0x14b78a]
MOV AL,0x0
CALL 0x00113060
POP RBP
RET
|
void usage(void)
{
printf("Execute test with the following options:\n");
printf("-h hostname\n");
printf("-u username\n");
printf("-p password\n");
printf("-d database\n");
printf("-S socketname\n");
printf("-t force use of TLS\n");
printf("-P port number\n");
printf("? displays this help and exits\n");
return;
}
|
|
5,499 | JS_AddRuntimeFinalizer | bluesky950520[P]quickjs/quickjs.c | int JS_AddRuntimeFinalizer(JSRuntime *rt, JSRuntimeFinalizer *finalizer,
void *arg)
{
JSRuntimeFinalizerState *fs = js_malloc_rt(rt, sizeof(*fs));
if (!fs)
return -1;
fs->next = rt->finalizers;
fs->finalizer = finalizer;
fs->arg = arg;
rt->finalizers = fs;
return 0;
} | O0 | c | JS_AddRuntimeFinalizer:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movl $0x18, %esi
callq 0x27b80
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x29a57
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x29a9c
movq 0x18(%rsp), %rax
movq 0x220(%rax), %rcx
movq (%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
movq %rcx, 0x10(%rax)
movq (%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x220(%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| JS_AddRuntimeFinalizer:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_20], rdx
mov rdi, [rsp+28h+var_10]
mov esi, 18h
call js_malloc_rt
mov [rsp+28h+var_28], rax
cmp [rsp+28h+var_28], 0
jnz short loc_29A57
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp short loc_29A9C
loc_29A57:
mov rax, [rsp+28h+var_10]
mov rcx, [rax+220h]
mov rax, [rsp+28h+var_28]
mov [rax], rcx
mov rcx, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov [rax+8], rcx
mov rcx, [rsp+28h+var_20]
mov rax, [rsp+28h+var_28]
mov [rax+10h], rcx
mov rcx, [rsp+28h+var_28]
mov rax, [rsp+28h+var_10]
mov [rax+220h], rcx
mov [rsp+28h+var_4], 0
loc_29A9C:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long JS_AddRuntimeFinalizer(long long a1, long long a2, long long a3)
{
_QWORD *v4; // [rsp+0h] [rbp-28h]
v4 = (_QWORD *)js_malloc_rt(a1, 24LL);
if ( v4 )
{
*v4 = *(_QWORD *)(a1 + 544);
v4[1] = a2;
v4[2] = a3;
*(_QWORD *)(a1 + 544) = v4;
return 0;
}
else
{
return (unsigned int)-1;
}
}
| JS_AddRuntimeFinalizer:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x8],RDX
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x18
CALL 0x00127b80
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP],0x0
JNZ 0x00129a57
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x00129a9c
LAB_00129a57:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RAX + 0x220]
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x220],RCX
MOV dword ptr [RSP + 0x24],0x0
LAB_00129a9c:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 JS_AddRuntimeFinalizer(long param_1,int8 param_2,int8 param_3)
{
int8 *puVar1;
int4 local_4;
puVar1 = (int8 *)js_malloc_rt(param_1,0x18);
if (puVar1 == (int8 *)0x0) {
local_4 = 0xffffffff;
}
else {
*puVar1 = *(int8 *)(param_1 + 0x220);
puVar1[1] = param_2;
puVar1[2] = param_3;
*(int8 **)(param_1 + 0x220) = puVar1;
local_4 = 0;
}
return local_4;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.