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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
24,600 | ma_read_key_record | eloqsql/storage/maria/ma_key.c | int _ma_read_key_record(MARIA_HA *info, uchar *buf, MARIA_RECORD_POS filepos)
{
fast_ma_writeinfo(info);
if (filepos != HA_OFFSET_ERROR)
{
if (info->lastinx >= 0)
{ /* Read only key */
if (_ma_put_key_in_record(info, (uint)info->lastinx, TRUE, buf))
{
_ma_set_fatal_error(info, HA_ERR_CRASHED);
return -1;
}
info->update|= HA_STATE_AKTIV; /* We should find a record */
return 0;
}
my_errno=HA_ERR_WRONG_INDEX;
}
return(-1); /* Wrong data to read */
} | O0 | c | ma_read_key_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x39c5f
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x3ae00
cmpq $-0x1, -0x20(%rbp)
je 0x39cd2
movq -0x10(%rbp), %rax
cmpl $0x0, 0x62c(%rax)
jl 0x39cc7
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x62c(%rax), %esi
movq -0x18(%rbp), %rcx
movl $0x1, %edx
callq 0x39cf0
cmpl $0x0, %eax
je 0x39cab
movq -0x10(%rbp), %rdi
movl $0x7e, %esi
callq 0x38a40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x39cd9
movq -0x10(%rbp), %rax
movl 0x624(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x624(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x39cd9
callq 0xc0d80
movl $0x7c, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_read_key_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+7B8h], 0
jnz short loc_39C5F
mov rdi, [rbp+var_10]
xor esi, esi
call _ma_writeinfo
loc_39C5F:
cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh
jz short loc_39CD2
mov rax, [rbp+var_10]
cmp dword ptr [rax+62Ch], 0
jl short loc_39CC7
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov esi, [rax+62Ch]
mov rcx, [rbp+var_18]
mov edx, 1
call _ma_put_key_in_record
cmp eax, 0
jz short loc_39CAB
mov rdi, [rbp+var_10]
mov esi, 7Eh ; '~'
call _ma_set_fatal_error
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_39CD9
loc_39CAB:
mov rax, [rbp+var_10]
mov ecx, [rax+624h]
or ecx, 2
mov [rax+624h], ecx
mov [rbp+var_4], 0
jmp short loc_39CD9
loc_39CC7:
call _my_thread_var
mov dword ptr [rax], 7Ch ; '|'
loc_39CD2:
mov [rbp+var_4], 0FFFFFFFFh
loc_39CD9:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long ma_read_key_record(int *a1, long long a2, long long a3)
{
long long v3; // rdx
long long v4; // rcx
long long v5; // r8
int v6; // r9d
if ( !*(_DWORD *)(*(_QWORD *)a1 + 1976LL) )
ma_writeinfo(a1, 0LL);
if ( a3 == -1 )
return (unsigned int)-1;
if ( a1[395] < 0 )
{
*(_DWORD *)my_thread_var() = 124;
return (unsigned int)-1;
}
if ( (unsigned int)ma_put_key_in_record(a1, (unsigned int)a1[395], 1LL, a2) )
{
ma_set_fatal_error(a1, 126, v3, v4, v5, v6);
return (unsigned int)-1;
}
else
{
a1[393] |= 2u;
return 0;
}
}
| _ma_read_key_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x00139c5f
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x0013ae00
LAB_00139c5f:
CMP qword ptr [RBP + -0x20],-0x1
JZ 0x00139cd2
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x62c],0x0
JL 0x00139cc7
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x62c]
MOV RCX,qword ptr [RBP + -0x18]
MOV EDX,0x1
CALL 0x00139cf0
CMP EAX,0x0
JZ 0x00139cab
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x7e
CALL 0x00138a40
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00139cd9
LAB_00139cab:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x624]
OR ECX,0x2
MOV dword ptr [RAX + 0x624],ECX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00139cd9
LAB_00139cc7:
CALL 0x001c0d80
MOV dword ptr [RAX],0x7c
LAB_00139cd2:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_00139cd9:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 _ma_read_key_record(long *param_1,int8 param_2,long param_3)
{
int iVar1;
int4 *puVar2;
if (*(int *)(*param_1 + 0x7b8) == 0) {
_ma_writeinfo(param_1,0);
}
if (param_3 != -1) {
if (-1 < *(int *)((long)param_1 + 0x62c)) {
iVar1 = _ma_put_key_in_record(param_1,*(int4 *)((long)param_1 + 0x62c),1,param_2);
if (iVar1 != 0) {
_ma_set_fatal_error(param_1,0x7e);
return 0xffffffff;
}
*(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) | 2;
return 0;
}
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7c;
}
return 0xffffffff;
}
| |
24,601 | common_embd_similarity_cos(float const*, float const*, int) | monkey531[P]llama/common/common.cpp | float common_embd_similarity_cos(const float * embd1, const float * embd2, int n){
double sum = 0.0;
double sum1 = 0.0;
double sum2 = 0.0;
for (int i = 0; i < n; i++) {
sum += embd1[i] * embd2[i];
sum1 += embd1[i] * embd1[i];
sum2 += embd2[i] * embd2[i];
}
// Handle the case where one or both vectors are zero vectors
if (sum1 == 0.0 || sum2 == 0.0) {
if (sum1 == 0.0 && sum2 == 0.0) {
return 1.0f; // two zero vectors are similar
}
return 0.0f;
}
return sum / (sqrt(sum1) * sqrt(sum2));
} | O3 | cpp | common_embd_similarity_cos(float const*, float const*, int):
subq $0x28, %rsp
testl %edx, %edx
jle 0x857e3
movl %edx, %eax
xorpd %xmm0, %xmm0
xorpd %xmm4, %xmm4
xorl %ecx, %ecx
movss (%rsi,%rcx,4), %xmm3
movss (%rdi,%rcx,4), %xmm1
movaps %xmm1, %xmm2
shufps $0x0, %xmm1, %xmm2 # xmm2 = xmm2[0,0],xmm1[0,0]
unpcklps %xmm3, %xmm1 # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
mulps %xmm2, %xmm1
cvtps2pd %xmm1, %xmm1
addpd %xmm1, %xmm0
mulss %xmm3, %xmm3
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
addsd %xmm1, %xmm4
incq %rcx
cmpq %rcx, %rax
jne 0x85760
xorps %xmm2, %xmm2
movapd %xmm0, %xmm1
cmpeqsd %xmm2, %xmm1
movq %xmm1, %rax
andl $0x1, %eax
movapd %xmm4, %xmm1
cmpeqsd %xmm2, %xmm1
movq %xmm1, %rcx
andl $0x1, %ecx
ucomisd %xmm2, %xmm0
jne 0x857c2
jnp 0x857e7
ucomisd %xmm2, %xmm4
jne 0x857ca
jnp 0x857e7
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movapd %xmm0, 0x10(%rsp)
jb 0x857fb
xorps %xmm2, %xmm2
sqrtsd %xmm0, %xmm2
jmp 0x85814
movb $0x1, %cl
movb $0x1, %al
testb %cl, %al
jne 0x857f1
xorpd %xmm0, %xmm0
jmp 0x85851
movss 0x6d80f(%rip), %xmm0 # 0xf3008
jmp 0x85851
movsd %xmm4, 0x8(%rsp)
callq 0x1b710
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm4
movapd %xmm0, %xmm2
ucomisd %xmm1, %xmm4
jb 0x85823
xorps %xmm0, %xmm0
sqrtsd %xmm4, %xmm0
jmp 0x85838
movapd %xmm4, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x1b710
movsd 0x8(%rsp), %xmm2
movapd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm2
unpckhpd %xmm1, %xmm1 # xmm1 = xmm1[1,1]
divsd %xmm2, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
addq $0x28, %rsp
retq
| _Z26common_embd_similarity_cosPKfS0_i:
sub rsp, 28h
test edx, edx
jle loc_857E3
mov eax, edx
xorpd xmm0, xmm0
xorpd xmm4, xmm4
xor ecx, ecx
loc_85760:
movss xmm3, dword ptr [rsi+rcx*4]
movss xmm1, dword ptr [rdi+rcx*4]
movaps xmm2, xmm1
shufps xmm2, xmm1, 0
unpcklps xmm1, xmm3
mulps xmm1, xmm2
cvtps2pd xmm1, xmm1
addpd xmm0, xmm1
mulss xmm3, xmm3
xorps xmm1, xmm1
cvtss2sd xmm1, xmm3
addsd xmm4, xmm1
inc rcx
cmp rax, rcx
jnz short loc_85760
xorps xmm2, xmm2
movapd xmm1, xmm0
cmpeqsd xmm1, xmm2
movq rax, xmm1
and eax, 1
movapd xmm1, xmm4
cmpeqsd xmm1, xmm2
movq rcx, xmm1
and ecx, 1
ucomisd xmm0, xmm2
jnz short loc_857C2
jnp short loc_857E7
loc_857C2:
ucomisd xmm4, xmm2
jnz short loc_857CA
jnp short loc_857E7
loc_857CA:
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
movapd [rsp+28h+var_18], xmm0
jb short loc_857FB
xorps xmm2, xmm2
sqrtsd xmm2, xmm0
jmp short loc_85814
loc_857E3:
mov cl, 1
mov al, 1
loc_857E7:
test al, cl
jnz short loc_857F1
xorpd xmm0, xmm0
jmp short loc_85851
loc_857F1:
movss xmm0, cs:dword_F3008
jmp short loc_85851
loc_857FB:
movsd [rsp+28h+var_20], xmm4
call _sqrt
xorpd xmm1, xmm1
movsd xmm4, [rsp+28h+var_20]
movapd xmm2, xmm0
loc_85814:
ucomisd xmm4, xmm1
jb short loc_85823
xorps xmm0, xmm0
sqrtsd xmm0, xmm4
jmp short loc_85838
loc_85823:
movapd xmm0, xmm4
movsd [rsp+28h+var_20], xmm2
call _sqrt
movsd xmm2, [rsp+28h+var_20]
loc_85838:
movapd xmm1, [rsp+28h+var_18]
mulsd xmm2, xmm0
unpckhpd xmm1, xmm1
divsd xmm1, xmm2
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
loc_85851:
add rsp, 28h
retn
| float common_embd_similarity_cos(const float *a1, const float *a2, int a3)
{
__m128d v3; // xmm0
__m128d v4; // xmm4
long long i; // rcx
__m128 v6; // xmm3
char v7; // al
char v8; // cl
double v9; // xmm2_8
double v11; // xmm0_8
double v12; // xmm0_8
double v13; // [rsp+8h] [rbp-20h]
__m128d v14; // [rsp+10h] [rbp-18h]
if ( a3 <= 0 )
{
v8 = 1;
v7 = 1;
LABEL_9:
if ( ((unsigned __int8)v8 & (unsigned __int8)v7) != 0 )
return 1.0;
else
return 0.0;
}
v3 = 0LL;
v4 = 0LL;
for ( i = 0LL; i != a3; ++i )
{
v6 = (__m128)LODWORD(a2[i]);
v3 = _mm_add_pd(
v3,
_mm_cvtps_pd(
_mm_mul_ps(
_mm_unpacklo_ps((__m128)LODWORD(a1[i]), v6),
_mm_shuffle_ps((__m128)LODWORD(a1[i]), (__m128)LODWORD(a1[i]), 0))));
v4.m128d_f64[0] = v4.m128d_f64[0] + (float)(v6.m128_f32[0] * v6.m128_f32[0]);
}
v7 = *(_OWORD *)&_mm_cmpeq_sd(v3, (__m128d)0LL) & 1;
v8 = *(_OWORD *)&_mm_cmpeq_sd(v4, (__m128d)0LL) & 1;
if ( v3.m128d_f64[0] == 0.0 || v4.m128d_f64[0] == 0.0 )
goto LABEL_9;
v14 = v3;
if ( v3.m128d_f64[0] < 0.0 )
{
v13 = v4.m128d_f64[0];
v11 = sqrt(v3.m128d_f64[0]);
v4.m128d_f64[0] = v13;
v9 = v11;
}
else
{
v9 = sqrt(v3.m128d_f64[0]);
}
if ( v4.m128d_f64[0] < 0.0 )
v12 = sqrt(v4.m128d_f64[0]);
else
v12 = sqrt(v4.m128d_f64[0]);
return _mm_unpackhi_pd(v14, v14).m128d_f64[0] / (v9 * v12);
}
| common_embd_similarity_cos:
SUB RSP,0x28
TEST EDX,EDX
JLE 0x001857e3
MOV EAX,EDX
XORPD XMM0,XMM0
XORPD XMM4,XMM4
XOR ECX,ECX
LAB_00185760:
MOVSS XMM3,dword ptr [RSI + RCX*0x4]
MOVSS XMM1,dword ptr [RDI + RCX*0x4]
MOVAPS XMM2,XMM1
SHUFPS XMM2,XMM1,0x0
UNPCKLPS XMM1,XMM3
MULPS XMM1,XMM2
CVTPS2PD XMM1,XMM1
ADDPD XMM0,XMM1
MULSS XMM3,XMM3
XORPS XMM1,XMM1
CVTSS2SD XMM1,XMM3
ADDSD XMM4,XMM1
INC RCX
CMP RAX,RCX
JNZ 0x00185760
XORPS XMM2,XMM2
MOVAPD XMM1,XMM0
CMPEQSD XMM1,XMM2
MOVQ RAX,XMM1
AND EAX,0x1
MOVAPD XMM1,XMM4
CMPEQSD XMM1,XMM2
MOVQ RCX,XMM1
AND ECX,0x1
UCOMISD XMM0,XMM2
JNZ 0x001857c2
JNP 0x001857e7
LAB_001857c2:
UCOMISD XMM4,XMM2
JNZ 0x001857ca
JNP 0x001857e7
LAB_001857ca:
XORPD XMM1,XMM1
UCOMISD XMM0,XMM1
MOVAPD xmmword ptr [RSP + 0x10],XMM0
JC 0x001857fb
XORPS XMM2,XMM2
SQRTSD XMM2,XMM0
JMP 0x00185814
LAB_001857e3:
MOV CL,0x1
MOV AL,0x1
LAB_001857e7:
TEST AL,CL
JNZ 0x001857f1
XORPD XMM0,XMM0
JMP 0x00185851
LAB_001857f1:
MOVSS XMM0,dword ptr [0x001f3008]
JMP 0x00185851
LAB_001857fb:
MOVSD qword ptr [RSP + 0x8],XMM4
CALL 0x0011b710
XORPD XMM1,XMM1
MOVSD XMM4,qword ptr [RSP + 0x8]
MOVAPD XMM2,XMM0
LAB_00185814:
UCOMISD XMM4,XMM1
JC 0x00185823
XORPS XMM0,XMM0
SQRTSD XMM0,XMM4
JMP 0x00185838
LAB_00185823:
MOVAPD XMM0,XMM4
MOVSD qword ptr [RSP + 0x8],XMM2
CALL 0x0011b710
MOVSD XMM2,qword ptr [RSP + 0x8]
LAB_00185838:
MOVAPD XMM1,xmmword ptr [RSP + 0x10]
MULSD XMM2,XMM0
UNPCKHPD XMM1,XMM1
DIVSD XMM1,XMM2
XORPS XMM0,XMM0
CVTSD2SS XMM0,XMM1
LAB_00185851:
ADD RSP,0x28
RET
|
/* common_embd_similarity_cos(float const*, float const*, int) */
float common_embd_similarity_cos(float *param_1,float *param_2,int param_3)
{
float fVar1;
int1 auVar2 [16];
double dVar3;
bool bVar4;
bool bVar5;
ulong uVar6;
float fVar7;
double dVar8;
double dVar9;
double dStack_10;
if (param_3 < 1) {
bVar5 = true;
bVar4 = true;
}
else {
dVar8 = 0.0;
dVar3 = 0.0;
dVar9 = 0.0;
uVar6 = 0;
do {
fVar7 = param_2[uVar6];
fVar1 = param_1[uVar6];
dVar8 = dVar8 + (double)(fVar1 * fVar1);
dVar3 = dVar3 + (double)(fVar7 * fVar1);
dVar9 = dVar9 + (double)(fVar7 * fVar7);
uVar6 = uVar6 + 1;
} while ((uint)param_3 != uVar6);
bVar4 = dVar8 == 0.0;
bVar5 = dVar9 == 0.0;
if (((dVar8 != 0.0) || (NAN(dVar8))) && ((dVar9 != 0.0 || (NAN(dVar9))))) {
auVar2._8_4_ = SUB84(dVar3,0);
auVar2._0_8_ = dVar8;
auVar2._12_4_ = (int)((ulong)dVar3 >> 0x20);
dStack_10 = auVar2._8_8_;
if (dVar8 < 0.0) {
dVar8 = sqrt(dVar8);
}
else {
dVar8 = SQRT(dVar8);
}
if (dVar9 < 0.0) {
dVar9 = sqrt(dVar9);
}
else {
dVar9 = SQRT(dVar9);
}
return (float)(dStack_10 / (dVar8 * dVar9));
}
}
fVar7 = DAT_001f3008;
if (!(bool)(bVar4 & bVar5)) {
fVar7 = 0.0;
}
return fVar7;
}
| |
24,602 | bool httplib::detail::process_multipart_ranges_data<httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda0'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(unsigned long, unsigned long)>(httplib::Request const&, 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&, unsigned long, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda0'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(unsigned long, unsigned long)) | hkr04[P]cpp-mcp/common/httplib.h | bool process_multipart_ranges_data(const Request &req,
const std::string &boundary,
const std::string &content_type,
size_t content_length, SToken stoken,
CToken ctoken, Content content) {
for (size_t i = 0; i < req.ranges.size(); i++) {
ctoken("--");
stoken(boundary);
ctoken("\r\n");
if (!content_type.empty()) {
ctoken("Content-Type: ");
stoken(content_type);
ctoken("\r\n");
}
auto offset_and_length =
get_range_offset_and_length(req.ranges[i], content_length);
ctoken("Content-Range: ");
stoken(make_content_range_header_field(offset_and_length, content_length));
ctoken("\r\n");
ctoken("\r\n");
if (!content(offset_and_length.first, offset_and_length.second)) {
return false;
}
ctoken("\r\n");
}
ctoken("--");
stoken(boundary);
ctoken("--");
return true;
} | O2 | c | bool httplib::detail::process_multipart_ranges_data<httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda0'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(unsigned long, unsigned long)>(httplib::Request const&, 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&, unsigned long, httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda0'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), httplib::detail::get_multipart_ranges_data_length(httplib::Request const&, 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&, unsigned long)::'lambda'(unsigned long, unsigned long)):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %rbx
movq %r8, 0x18(%rsp)
movq %rcx, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdi, %rbp
pushq $0x8
popq %r14
xorl %r12d, %r12d
leaq 0x20(%rsp), %r15
movq 0x190(%rbp), %r13
subq 0x188(%rbp), %r13
sarq $0x4, %r13
cmpq %r13, %r12
jae 0x2bf03
movq %r15, %rdi
leaq 0x208d7(%rip), %rsi # 0x4c610
leaq 0x8(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xabb0
movq %r15, %rdi
leaq 0x1fd13(%rip), %rsi # 0x4ba82
leaq 0x8(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq 0x48(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2bdf5
movq %r15, %rdi
leaq 0x20871(%rip), %rsi # 0x4c613
leaq 0x8(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xabb0
movq %r15, %rdi
leaq 0x1fcaa(%rip), %rsi # 0x4ba82
leaq 0x8(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq 0x188(%rbp), %rax
movq -0x8(%rax,%r14), %rcx
movq (%rax,%r14), %rax
subq %rcx, %rax
incq %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r15, %rdi
leaq 0x20803(%rip), %rsi # 0x4c622
leaq 0x7(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x2ae36
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq %r15, %rdi
leaq 0x1fc15(%rip), %rsi # 0x4ba82
leaq 0x7(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq %r15, %rdi
leaq 0x1fbee(%rip), %rsi # 0x4ba82
leaq 0x7(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x90(%rsp), %rdi
callq 0x2bfc2
testb %al, %al
je 0x2bf6c
movq %r15, %rdi
leaq 0x1fba8(%rip), %rsi # 0x4ba82
leaq 0x7(%rsp), %rdx
callq 0xcab2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xabb0
movq %r15, %rdi
callq 0xac20
incq %r12
addq $0x10, %r14
jmp 0x2bd14
leaq 0x20706(%rip), %rsi # 0x4c610
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xcab2
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xabb0
leaq 0x20(%rsp), %rdi
callq 0xac20
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xabb0
leaq 0x206ca(%rip), %rsi # 0x4c610
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xcab2
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xabb0
leaq 0x20(%rsp), %rdi
callq 0xac20
cmpq %r13, %r12
setae %al
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfa5
jmp 0x2bfb6
jmp 0x2bfa5
jmp 0x2bfa5
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xac20
jmp 0x2bfb9
jmp 0x2bfb6
movq %rax, %rbx
movq %rbx, %rdi
callq 0xaac0
nop
| _ZN7httplib6detail29process_multipart_ranges_dataIZNS0_26make_multipart_ranges_dataERKNS_7RequestERNS_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_mRSC_EUlSE_E_ZNS0_26make_multipart_ranges_dataES4_S6_SE_SE_mSF_EUlSE_E0_ZNS0_26make_multipart_ranges_dataES4_S6_SE_SE_mSF_EUlmmE_EEbS4_SE_SE_mT_T0_T1_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, r9
mov [rsp+88h+var_70], r8
mov [rsp+88h+var_38], rcx
mov [rsp+88h+var_40], rdx
mov [rsp+88h+var_48], rsi
mov rbp, rdi
push 8
pop r14
xor r12d, r12d
lea r15, [rsp+88h+var_68]
loc_2BD14:
mov r13, [rbp+190h]
sub r13, [rbp+188h]
sar r13, 4
cmp r12, r13
jnb loc_2BF03
mov rdi, r15
lea rsi, asc_4C610; "--"
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [rsp+88h+var_70]
mov rsi, [rsp+88h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15
lea rsi, asc_4BA80+2; "\r\n"
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [rsp+88h+var_40]
cmp qword ptr [rax+8], 0
jz short loc_2BDF5
mov rdi, r15
lea rsi, aContentType_0; "Content-Type: "
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [rsp+88h+var_70]
mov rsi, [rsp+88h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15
lea rsi, asc_4BA80+2; "\r\n"
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_2BDF5:
mov rax, [rbp+188h]
mov rcx, [rax+r14-8]
mov rax, [rax+r14]
sub rax, rcx
inc rax
mov [rsp+88h+var_80], rcx
mov [rsp+88h+var_78], rax
mov rdi, r15
lea rsi, aContentRange_0; "Content-Range: "
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15
lea rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_38]
call _ZN7httplib6detail31make_content_range_header_fieldB5cxx11ERKSt4pairImmEm; httplib::detail::make_content_range_header_field(std::pair<ulong,ulong> const&,ulong)
mov rdi, [rsp+88h+var_70]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15
lea rsi, asc_4BA80+2; "\r\n"
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15
lea rsi, asc_4BA80+2; "\r\n"
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
lea rdi, [rsp+88h+arg_0]
call _ZZN7httplib6detail26make_multipart_ranges_dataERKNS_7RequestERNS_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_mRSB_ENKUlmmE_clEmm; httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,ulong,std::string&)::{lambda(ulong,ulong)#1}::operator()(ulong,ulong)
test al, al
jz loc_2BF6C
mov rdi, r15
lea rsi, asc_4BA80+2; "\r\n"
lea rdx, [rsp+88h+var_81]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
inc r12
add r14, 10h
jmp loc_2BD14
loc_2BF03:
lea rsi, asc_4C610; "--"
lea rdi, [rsp+88h+var_68]
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+88h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [rsp+88h+var_70]
mov rsi, [rsp+88h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rsi, asc_4C610; "--"
lea rdi, [rsp+88h+var_68]
lea rdx, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+88h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+88h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_2BF6C:
cmp r12, r13
setnb al
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short loc_2BFA5
jmp short loc_2BFB6
jmp short loc_2BFA5
jmp short $+2
loc_2BFA5:
mov rbx, rax
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_2BFB9
jmp short $+2
loc_2BFB6:
mov rbx, rax
loc_2BFB9:
mov rdi, rbx
call __Unwind_Resume
| bool httplib::detail::process_multipart_ranges_data<httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,unsigned long,std::string&)::{lambda(std::string const&)#1},httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,unsigned long,std::string&)::{lambda(std::string const&)#2},httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,unsigned long,std::string&)::{lambda(unsigned long,unsigned long)#1}>(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
char a7)
{
long long v8; // r14
unsigned long long i; // r12
unsigned long long v10; // r13
long long v11; // rax
long long v12; // rcx
long long v13; // rax
int v14; // ecx
int v15; // r8d
int v16; // r9d
char v18; // [rsp+0h] [rbp-88h]
long long v19; // [rsp+8h] [rbp-80h] BYREF
long long v20; // [rsp+10h] [rbp-78h]
long long v21; // [rsp+18h] [rbp-70h]
_QWORD v22[4]; // [rsp+20h] [rbp-68h] BYREF
long long v23; // [rsp+40h] [rbp-48h]
long long v24; // [rsp+48h] [rbp-40h]
long long v25; // [rsp+50h] [rbp-38h]
v21 = a5;
v25 = a4;
v24 = a3;
v23 = a2;
v8 = 8LL;
for ( i = 0LL; ; ++i )
{
v10 = (long long)(*(_QWORD *)(a1 + 400) - *(_QWORD *)(a1 + 392)) >> 4;
if ( i >= v10 )
break;
std::string::basic_string<std::allocator<char>>(v22, (long long)"--");
std::string::append(a6, v22);
std::string::~string(v22);
std::string::append(v21, v23);
std::string::basic_string<std::allocator<char>>(v22, (long long)"\r\n");
std::string::append(a6, v22);
std::string::~string(v22);
if ( *(_QWORD *)(v24 + 8) )
{
std::string::basic_string<std::allocator<char>>(v22, (long long)"Content-Type: ");
std::string::append(a6, v22);
std::string::~string(v22);
std::string::append(v21, v24);
std::string::basic_string<std::allocator<char>>(v22, (long long)"\r\n");
std::string::append(a6, v22);
std::string::~string(v22);
}
v11 = *(_QWORD *)(a1 + 392);
v12 = *(_QWORD *)(v11 + v8 - 8);
v13 = *(_QWORD *)(v11 + v8) - v12 + 1;
v19 = v12;
v20 = v13;
std::string::basic_string<std::allocator<char>>(v22, (long long)"Content-Range: ");
std::string::append(a6, v22);
std::string::~string(v22);
httplib::detail::make_content_range_header_field[abi:cxx11](v22, &v19, v25);
std::string::append(v21, v22);
std::string::~string(v22);
std::string::basic_string<std::allocator<char>>(v22, (long long)"\r\n");
std::string::append(a6, v22);
std::string::~string(v22);
std::string::basic_string<std::allocator<char>>(v22, (long long)"\r\n");
std::string::append(a6, v22);
std::string::~string(v22);
if ( !(unsigned __int8)httplib::detail::make_multipart_ranges_data(httplib::Request const&,httplib::Response &,std::string const&,std::string const&,unsigned long,std::string&)::{lambda(unsigned long,unsigned long)#1}::operator()(
(unsigned int)&a7,
v19,
v20,
v14,
v15,
v16,
v18) )
return i >= v10;
std::string::basic_string<std::allocator<char>>(v22, (long long)"\r\n");
std::string::append(a6, v22);
std::string::~string(v22);
v8 += 16LL;
}
std::string::basic_string<std::allocator<char>>(v22, (long long)"--");
std::string::append(a6, v22);
std::string::~string(v22);
std::string::append(v21, v23);
std::string::basic_string<std::allocator<char>>(v22, (long long)"--");
std::string::append(a6, v22);
std::string::~string(v22);
return i >= v10;
}
| process_multipart_ranges_data<httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::{lambda(std::__cxx11::string_const&)#1},httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::{lambda(std::__cxx11::string_const&)#2},httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::{lambda(unsigned_long,unsigned_long)#1}>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,R9
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RSP + 0x40],RSI
MOV RBP,RDI
PUSH 0x8
POP R14
XOR R12D,R12D
LEA R15,[RSP + 0x20]
LAB_0012bd14:
MOV R13,qword ptr [RBP + 0x190]
SUB R13,qword ptr [RBP + 0x188]
SAR R13,0x4
CMP R12,R13
JNC 0x0012bf03
LAB_0012bd2f:
MOV RDI,R15
LEA RSI,[0x14c610]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bd43:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
LAB_0012bd4e:
MOV RDI,R15
CALL 0x0010ac20
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x0010abb0
LAB_0012bd65:
MOV RDI,R15
LEA RSI,[0x14ba82]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bd79:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
MOV RDI,R15
CALL 0x0010ac20
MOV RAX,qword ptr [RSP + 0x48]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0012bdf5
LAB_0012bd98:
MOV RDI,R15
LEA RSI,[0x14c613]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bdac:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
LAB_0012bdb7:
MOV RDI,R15
CALL 0x0010ac20
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x0010abb0
LAB_0012bdce:
MOV RDI,R15
LEA RSI,[0x14ba82]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bde2:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
MOV RDI,R15
CALL 0x0010ac20
LAB_0012bdf5:
MOV RAX,qword ptr [RBP + 0x188]
MOV RCX,qword ptr [RAX + R14*0x1 + -0x8]
MOV RAX,qword ptr [RAX + R14*0x1]
SUB RAX,RCX
INC RAX
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP + 0x10],RAX
LAB_0012be15:
MOV RDI,R15
LEA RSI,[0x14c622]
LEA RDX,[RSP + 0x7]
CALL 0x0010cab2
LAB_0012be29:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
LAB_0012be34:
MOV RDI,R15
CALL 0x0010ac20
MOV RDI,R15
LEA RSI,[RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x50]
CALL 0x0012ae36
LAB_0012be4e:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,R15
CALL 0x0010abb0
MOV RDI,R15
CALL 0x0010ac20
LAB_0012be63:
MOV RDI,R15
LEA RSI,[0x14ba82]
LEA RDX,[RSP + 0x7]
CALL 0x0010cab2
LAB_0012be77:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
MOV RDI,R15
CALL 0x0010ac20
LAB_0012be8a:
MOV RDI,R15
LEA RSI,[0x14ba82]
LEA RDX,[RSP + 0x7]
CALL 0x0010cab2
LAB_0012be9e:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
LAB_0012bea9:
MOV RDI,R15
CALL 0x0010ac20
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x90]
CALL 0x0012bfc2
TEST AL,AL
JZ 0x0012bf6c
LAB_0012bed0:
MOV RDI,R15
LEA RSI,[0x14ba82]
LEA RDX,[RSP + 0x7]
CALL 0x0010cab2
LAB_0012bee4:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010abb0
MOV RDI,R15
CALL 0x0010ac20
INC R12
ADD R14,0x10
JMP 0x0012bd14
LAB_0012bf03:
LEA RSI,[0x14c610]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bf19:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0010abb0
LAB_0012bf26:
LEA RDI,[RSP + 0x20]
CALL 0x0010ac20
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x0010abb0
LAB_0012bf3f:
LEA RSI,[0x14c610]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x8]
CALL 0x0010cab2
LAB_0012bf55:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0010abb0
LAB_0012bf62:
LEA RDI,[RSP + 0x20]
CALL 0x0010ac20
LAB_0012bf6c:
CMP R12,R13
SETNC AL
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* bool
httplib::detail::process_multipart_ranges_data<httplib::detail::make_multipart_ranges_data(httplib::Request
const&, httplib::Response&, std::__cxx11::string const&, std::__cxx11::string const&, unsigned
long, std::__cxx11::string&)::{lambda(std::__cxx11::string const&)#1},
httplib::detail::make_multipart_ranges_data(httplib::Request const&, httplib::Response&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
std::__cxx11::string&)::{lambda(std::__cxx11::string const&)#2},
httplib::detail::make_multipart_ranges_data(httplib::Request const&, httplib::Response&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
std::__cxx11::string&)::{lambda(unsigned long, unsigned long)#1}>(httplib::Request const&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
httplib::detail::make_multipart_ranges_data(httplib::Request const&, httplib::Response&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
std::__cxx11::string&)::{lambda(std::__cxx11::string const&)#1},
httplib::detail::make_multipart_ranges_data(httplib::Request const&, httplib::Response&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
std::__cxx11::string&)::{lambda(std::__cxx11::string const&)#2},
httplib::detail::make_multipart_ranges_data(httplib::Request const&, httplib::Response&,
std::__cxx11::string const&, std::__cxx11::string const&, unsigned long,
std::__cxx11::string&)::{lambda(unsigned long, unsigned long)#1}) */
bool httplib::detail::
process_multipart_ranges_data<httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::_lambda(std::__cxx11::string_const&)_1_,httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::_lambda(std::__cxx11::string_const&)_2_,httplib::detail::make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)::_lambda(unsigned_long,unsigned_long)_1_>
(long param_1,int8 param_2,long param_3,ulong param_4,string *param_5,
string *param_6)
{
char cVar1;
ulong uVar2;
ulong uVar3;
long lVar4;
allocator local_81;
ulong local_80;
long local_78;
string *local_70;
string local_68 [32];
int8 local_48;
long local_40;
ulong local_38;
lVar4 = 8;
local_70 = param_5;
local_48 = param_2;
local_40 = param_3;
local_38 = param_4;
for (uVar2 = 0; uVar3 = *(long *)(param_1 + 400) - *(long *)(param_1 + 0x188) >> 4, uVar2 < uVar3;
uVar2 = uVar2 + 1) {
/* try { // try from 0012bd2f to 0012bd42 has its CatchHandler @ 0012bfb4 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"--",(allocator *)&local_80);
/* try { // try from 0012bd43 to 0012bd4d has its CatchHandler @ 0012bf9b */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::append(local_70);
/* try { // try from 0012bd65 to 0012bd78 has its CatchHandler @ 0012bfb6 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"\r\n",(allocator *)&local_80);
/* try { // try from 0012bd79 to 0012bd83 has its CatchHandler @ 0012bf9d */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
if (*(long *)(local_40 + 8) != 0) {
/* try { // try from 0012bd98 to 0012bdab has its CatchHandler @ 0012bf8f */
std::__cxx11::string::string<std::allocator<char>>
(local_68,"Content-Type: ",(allocator *)&local_80);
/* try { // try from 0012bdac to 0012bdb6 has its CatchHandler @ 0012bf8d */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::append(local_70);
/* try { // try from 0012bdce to 0012bde1 has its CatchHandler @ 0012bf8b */
std::__cxx11::string::string<std::allocator<char>>(local_68,"\r\n",(allocator *)&local_80);
/* try { // try from 0012bde2 to 0012bdec has its CatchHandler @ 0012bf89 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
}
local_80 = *(ulong *)(*(long *)(param_1 + 0x188) + -8 + lVar4);
local_78 = (*(long *)(*(long *)(param_1 + 0x188) + lVar4) - local_80) + 1;
/* try { // try from 0012be15 to 0012be28 has its CatchHandler @ 0012bf9f */
std::__cxx11::string::string<std::allocator<char>>(local_68,"Content-Range: ",&local_81);
/* try { // try from 0012be29 to 0012be33 has its CatchHandler @ 0012bf95 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
make_content_range_header_field_abi_cxx11_((detail *)local_68,(pair *)&local_80,local_38);
/* try { // try from 0012be4e to 0012be5a has its CatchHandler @ 0012bfa1 */
std::__cxx11::string::append(local_70);
std::__cxx11::string::~string(local_68);
/* try { // try from 0012be63 to 0012be76 has its CatchHandler @ 0012bf97 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"\r\n",&local_81);
/* try { // try from 0012be77 to 0012be81 has its CatchHandler @ 0012bfa3 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
/* try { // try from 0012be8a to 0012be9d has its CatchHandler @ 0012bf99 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"\r\n",&local_81);
/* try { // try from 0012be9e to 0012bea8 has its CatchHandler @ 0012bfa5 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
cVar1 = make_multipart_ranges_data(httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&,unsigned_long,std::__cxx11::string&)
::{lambda(unsigned_long,unsigned_long)#1}::operator()((ulong)&stack0x00000008,local_80);
if (cVar1 == '\0') goto LAB_0012bf6c;
/* try { // try from 0012bed0 to 0012bee3 has its CatchHandler @ 0012bf91 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"\r\n",&local_81);
/* try { // try from 0012bee4 to 0012beee has its CatchHandler @ 0012bf93 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
lVar4 = lVar4 + 0x10;
}
/* try { // try from 0012bf03 to 0012bf18 has its CatchHandler @ 0012bf87 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"--",(allocator *)&local_80);
/* try { // try from 0012bf19 to 0012bf25 has its CatchHandler @ 0012bf85 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::append(local_70);
/* try { // try from 0012bf3f to 0012bf54 has its CatchHandler @ 0012bf83 */
std::__cxx11::string::string<std::allocator<char>>(local_68,"--",(allocator *)&local_80);
/* try { // try from 0012bf55 to 0012bf61 has its CatchHandler @ 0012bf81 */
std::__cxx11::string::append(param_6);
std::__cxx11::string::~string(local_68);
LAB_0012bf6c:
return uVar3 <= uVar2;
}
| |
24,603 | JS_AddIntrinsicMapSet | bluesky950520[P]quickjs/quickjs.c | void JS_AddIntrinsicMapSet(JSContext *ctx)
{
int i;
JSValue obj1;
char buf[ATOM_GET_STR_BUF_SIZE];
for(i = 0; i < 4; i++) {
const char *name = JS_AtomGetStr(ctx, buf, sizeof(buf),
JS_ATOM_Map + i);
int class_id = JS_CLASS_MAP + i;
ctx->class_proto[class_id] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[class_id],
js_map_proto_funcs_ptr[i],
js_map_proto_funcs_count[i]);
obj1 = JS_NewCFunctionMagic(ctx, js_map_constructor, name, 0,
JS_CFUNC_constructor_magic, i);
if (class_id == JS_CLASS_MAP)
JS_SetPropertyFunctionList(ctx, obj1, js_map_funcs, countof(js_map_funcs));
else if (class_id == JS_CLASS_SET)
JS_SetPropertyFunctionList(ctx, obj1, js_set_funcs, countof(js_set_funcs));
JS_NewGlobalCConstructor2(ctx, obj1, name, ctx->class_proto[class_id]);
}
for(i = 0; i < 2; i++) {
ctx->class_proto[JS_CLASS_MAP_ITERATOR + i] =
JS_NewObjectProto(ctx, ctx->class_proto[JS_CLASS_ITERATOR]);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_MAP_ITERATOR + i],
js_map_proto_funcs_ptr[i + 4],
js_map_proto_funcs_count[i + 4]);
}
} | O0 | c | JS_AddIntrinsicMapSet:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movl $0x0, 0xac(%rsp)
cmpl $0x4, 0xac(%rsp)
jge 0x26589
movq 0xb0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl 0xac(%rsp), %ecx
addl $0xb4, %ecx
movl $0x40, %edx
callq 0x52b00
movq %rax, 0x48(%rsp)
movl 0xac(%rsp), %eax
addl $0x23, %eax
movl %eax, 0x44(%rsp)
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movslq 0x44(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0xb0(%rsp), %rdi
callq 0x2a570
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq 0x38(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movslq 0x44(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq 0xac(%rsp), %rdx
leaq 0x10a925(%rip), %rcx # 0x130d80
movq (%rcx,%rdx,8), %rcx
movslq 0xac(%rsp), %rsi
leaq 0xe6502(%rip), %rdx # 0x10c970
movzbl (%rdx,%rsi), %r8d
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x4cb00
movq 0xb0(%rsp), %rdi
movq 0x48(%rsp), %rdx
movl 0xac(%rsp), %r9d
leaq 0x2c715(%rip), %rsi # 0x52bb0
xorl %ecx, %ecx
movl $0x3, %r8d
callq 0x52b40
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0xa0(%rsp)
cmpl $0x23, 0x44(%rsp)
jne 0x264ff
movq 0xb0(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
leaq 0x10c12e(%rip), %rcx # 0x132620
movl $0x2, %r8d
callq 0x4cb00
jmp 0x26532
cmpl $0x24, 0x44(%rsp)
jne 0x26530
movq 0xb0(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
leaq 0x10c13b(%rip), %rcx # 0x132660
movl $0x1, %r8d
callq 0x4cb00
jmp 0x26532
movq 0xb0(%rsp), %rdi
movq 0x48(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movslq 0x44(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq (%rax), %r8
movq 0x8(%rax), %r9
callq 0x535e0
movl 0xac(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xac(%rsp)
jmp 0x2639a
movl $0x0, 0xac(%rsp)
cmpl $0x2, 0xac(%rsp)
jge 0x2668a
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movl 0xac(%rsp), %ecx
addl $0x2a, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, (%rsp)
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x270(%rax), %rsi
movq 0x278(%rax), %rdx
callq 0x2a4d0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rax
movl 0xac(%rsp), %ecx
addl $0x2a, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0xac(%rsp), %ecx
addl $0x4, %ecx
movslq %ecx, %rdx
leaq 0x10a735(%rip), %rcx # 0x130d80
movq (%rcx,%rdx,8), %rcx
movl 0xac(%rsp), %edx
addl $0x4, %edx
movslq %edx, %rsi
leaq 0xe630d(%rip), %rdx # 0x10c970
movzbl (%rdx,%rsi), %r8d
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x4cb00
movl 0xac(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xac(%rsp)
jmp 0x26594
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
| JS_AddIntrinsicMapSet:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_C], 0
loc_2639A:
cmp [rsp+0B8h+var_C], 4
jge loc_26589
mov rdi, [rsp+0B8h+var_8]
lea rsi, [rsp+0B8h+var_68]
mov ecx, [rsp+0B8h+var_C]
add ecx, 0B4h
mov edx, 40h ; '@'
call JS_AtomGetStr
mov [rsp+0B8h+var_70], rax
mov eax, [rsp+0B8h+var_C]
add eax, 23h ; '#'
mov [rsp+0B8h+var_74], eax
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
movsxd rcx, [rsp+0B8h+var_74]
shl rcx, 4
add rax, rcx
mov [rsp+0B8h+var_B0], rax
mov rdi, [rsp+0B8h+var_8]
call JS_NewObject
mov rcx, rax
mov rax, [rsp+0B8h+var_B0]
mov [rsp+0B8h+var_88], rcx
mov [rsp+0B8h+var_80], rdx
mov rcx, [rsp+0B8h+var_88]
mov [rax], rcx
mov rcx, [rsp+0B8h+var_80]
mov [rax+8], rcx
mov rdi, [rsp+0B8h+var_8]
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
movsxd rcx, [rsp+0B8h+var_74]
shl rcx, 4
add rax, rcx
movsxd rdx, [rsp+0B8h+var_C]
lea rcx, js_map_proto_funcs_ptr
mov rcx, [rcx+rdx*8]
movsxd rsi, [rsp+0B8h+var_C]
lea rdx, js_map_proto_funcs_count
movzx r8d, byte ptr [rdx+rsi]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_SetPropertyFunctionList
mov rdi, [rsp+0B8h+var_8]
mov rdx, [rsp+0B8h+var_70]
mov r9d, [rsp+0B8h+var_C]
lea rsi, js_map_constructor
xor ecx, ecx
mov r8d, 3
call JS_NewCFunctionMagic
mov [rsp+0B8h+var_98], rax
mov [rsp+0B8h+var_90], rdx
mov rax, [rsp+0B8h+var_98]
mov [rsp+0B8h+var_20], rax
mov rax, [rsp+0B8h+var_90]
mov [rsp+0B8h+var_18], rax
cmp [rsp+0B8h+var_74], 23h ; '#'
jnz short loc_264FF
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
lea rcx, js_map_funcs
mov r8d, 2
call JS_SetPropertyFunctionList
jmp short loc_26532
loc_264FF:
cmp [rsp+0B8h+var_74], 24h ; '$'
jnz short loc_26530
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
lea rcx, js_set_funcs
mov r8d, 1
call JS_SetPropertyFunctionList
loc_26530:
jmp short $+2
loc_26532:
mov rdi, [rsp+0B8h+var_8]
mov rcx, [rsp+0B8h+var_70]
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
movsxd rdx, [rsp+0B8h+var_74]
shl rdx, 4
add rax, rdx
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
mov r8, [rax]
mov r9, [rax+8]
call JS_NewGlobalCConstructor2
mov eax, [rsp+0B8h+var_C]
add eax, 1
mov [rsp+0B8h+var_C], eax
jmp loc_2639A
loc_26589:
mov [rsp+0B8h+var_C], 0
loc_26594:
cmp [rsp+0B8h+var_C], 2
jge loc_2668A
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
mov ecx, [rsp+0B8h+var_C]
add ecx, 2Ah ; '*'
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov [rsp+0B8h+var_B8], rax
mov rdi, [rsp+0B8h+var_8]
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
mov rsi, [rax+270h]
mov rdx, [rax+278h]
call JS_NewObjectProto
mov rcx, rax
mov rax, [rsp+0B8h+var_B8]
mov [rsp+0B8h+var_A8], rcx
mov [rsp+0B8h+var_A0], rdx
mov rcx, [rsp+0B8h+var_A8]
mov [rax], rcx
mov rcx, [rsp+0B8h+var_A0]
mov [rax+8], rcx
mov rdi, [rsp+0B8h+var_8]
mov rax, [rsp+0B8h+var_8]
mov rax, [rax+40h]
mov ecx, [rsp+0B8h+var_C]
add ecx, 2Ah ; '*'
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov ecx, [rsp+0B8h+var_C]
add ecx, 4
movsxd rdx, ecx
lea rcx, js_map_proto_funcs_ptr
mov rcx, [rcx+rdx*8]
mov edx, [rsp+0B8h+var_C]
add edx, 4
movsxd rsi, edx
lea rdx, js_map_proto_funcs_count
movzx r8d, byte ptr [rdx+rsi]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_SetPropertyFunctionList
mov eax, [rsp+0B8h+var_C]
add eax, 1
mov [rsp+0B8h+var_C], eax
jmp loc_26594
loc_2668A:
add rsp, 0B8h
retn
| void JS_AddIntrinsicMapSet(long long a1)
{
long long v1; // rdx
_QWORD *v2; // rax
long long v3; // rdx
_QWORD *v4; // rax
long long v5; // rdx
_QWORD *v6; // rax
_QWORD *v7; // [rsp+0h] [rbp-B8h]
_QWORD *v8; // [rsp+8h] [rbp-B0h]
int v9; // [rsp+44h] [rbp-74h]
long long Str; // [rsp+48h] [rbp-70h]
_BYTE v11[72]; // [rsp+50h] [rbp-68h] BYREF
long long v12; // [rsp+98h] [rbp-20h]
long long v13; // [rsp+A0h] [rbp-18h]
int i; // [rsp+ACh] [rbp-Ch]
long long v15; // [rsp+B0h] [rbp-8h]
v15 = a1;
for ( i = 0; i < 4; ++i )
{
Str = JS_AtomGetStr(v15, v11, 64LL, (unsigned int)(i + 180));
v9 = i + 35;
v8 = (_QWORD *)(16LL * (i + 35) + *(_QWORD *)(v15 + 64));
*v8 = JS_NewObject(v15);
v8[1] = v1;
v2 = (_QWORD *)(16LL * v9 + *(_QWORD *)(v15 + 64));
JS_SetPropertyFunctionList(v15, *v2, v2[1], (&js_map_proto_funcs_ptr)[i], js_map_proto_funcs_count[i]);
v12 = JS_NewCFunctionMagic(v15, js_map_constructor, Str, 0LL, 3LL, (unsigned int)i);
v13 = v3;
if ( v9 == 35 )
{
JS_SetPropertyFunctionList(v15, v12, v13, &js_map_funcs, 2LL);
}
else if ( v9 == 36 )
{
JS_SetPropertyFunctionList(v15, v12, v13, &js_set_funcs, 1LL);
}
v4 = (_QWORD *)(16LL * v9 + *(_QWORD *)(v15 + 64));
JS_NewGlobalCConstructor2(v15, v12, v13, Str, *v4, v4[1]);
}
for ( i = 0; i < 2; ++i )
{
v7 = (_QWORD *)(16LL * (i + 42) + *(_QWORD *)(v15 + 64));
*v7 = JS_NewObjectProto(v15, *(_QWORD *)(*(_QWORD *)(v15 + 64) + 624LL), *(_QWORD *)(*(_QWORD *)(v15 + 64) + 632LL));
v7[1] = v5;
v6 = (_QWORD *)(16LL * (i + 42) + *(_QWORD *)(v15 + 64));
JS_SetPropertyFunctionList(v15, *v6, v6[1], (&js_map_proto_funcs_ptr)[i + 4], js_map_proto_funcs_count[i + 4]);
}
}
| JS_AddIntrinsicMapSet:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV dword ptr [RSP + 0xac],0x0
LAB_0012639a:
CMP dword ptr [RSP + 0xac],0x4
JGE 0x00126589
MOV RDI,qword ptr [RSP + 0xb0]
LEA RSI,[RSP + 0x50]
MOV ECX,dword ptr [RSP + 0xac]
ADD ECX,0xb4
MOV EDX,0x40
CALL 0x00152b00
MOV qword ptr [RSP + 0x48],RAX
MOV EAX,dword ptr [RSP + 0xac]
ADD EAX,0x23
MOV dword ptr [RSP + 0x44],EAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x44]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x0012a570
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x30],RCX
MOV qword ptr [RSP + 0x38],RDX
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x44]
SHL RCX,0x4
ADD RAX,RCX
MOVSXD RDX,dword ptr [RSP + 0xac]
LEA RCX,[0x230d80]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOVSXD RSI,dword ptr [RSP + 0xac]
LEA RDX,[0x20c970]
MOVZX R8D,byte ptr [RDX + RSI*0x1]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x0014cb00
MOV RDI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0x48]
MOV R9D,dword ptr [RSP + 0xac]
LEA RSI,[0x152bb0]
XOR ECX,ECX
MOV R8D,0x3
CALL 0x00152b40
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0xa0],RAX
CMP dword ptr [RSP + 0x44],0x23
JNZ 0x001264ff
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
LEA RCX,[0x232620]
MOV R8D,0x2
CALL 0x0014cb00
JMP 0x00126532
LAB_001264ff:
CMP dword ptr [RSP + 0x44],0x24
JNZ 0x00126530
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
LEA RCX,[0x232660]
MOV R8D,0x1
CALL 0x0014cb00
LAB_00126530:
JMP 0x00126532
LAB_00126532:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RDX,dword ptr [RSP + 0x44]
SHL RDX,0x4
ADD RAX,RDX
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
MOV R8,qword ptr [RAX]
MOV R9,qword ptr [RAX + 0x8]
CALL 0x001535e0
MOV EAX,dword ptr [RSP + 0xac]
ADD EAX,0x1
MOV dword ptr [RSP + 0xac],EAX
JMP 0x0012639a
LAB_00126589:
MOV dword ptr [RSP + 0xac],0x0
LAB_00126594:
CMP dword ptr [RSP + 0xac],0x2
JGE 0x0012668a
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RSP + 0xac]
ADD ECX,0x2a
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x270]
MOV RDX,qword ptr [RAX + 0x278]
CALL 0x0012a4d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x18],RDX
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RSP + 0xac]
ADD ECX,0x2a
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV ECX,dword ptr [RSP + 0xac]
ADD ECX,0x4
MOVSXD RDX,ECX
LEA RCX,[0x230d80]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV EDX,dword ptr [RSP + 0xac]
ADD EDX,0x4
MOVSXD RSI,EDX
LEA RDX,[0x20c970]
MOVZX R8D,byte ptr [RDX + RSI*0x1]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x0014cb00
MOV EAX,dword ptr [RSP + 0xac]
ADD EAX,0x1
MOV dword ptr [RSP + 0xac],EAX
JMP 0x00126594
LAB_0012668a:
ADD RSP,0xb8
RET
|
void JS_AddIntrinsicMapSet(long param_1)
{
long lVar1;
int iVar2;
int8 uVar3;
int8 *puVar4;
int1 auVar5 [16];
int1 local_68 [72];
int1 local_20 [16];
int local_c;
long local_8;
local_8 = param_1;
for (local_c = 0; local_c < 4; local_c = local_c + 1) {
uVar3 = JS_AtomGetStr(local_8,local_68,0x40,local_c + 0xb4);
iVar2 = local_c + 0x23;
lVar1 = *(long *)(local_8 + 0x40);
auVar5 = JS_NewObject(local_8);
*(int1 (*) [16])(lVar1 + (long)iVar2 * 0x10) = auVar5;
puVar4 = (int8 *)(*(long *)(local_8 + 0x40) + (long)iVar2 * 0x10);
JS_SetPropertyFunctionList
(local_8,*puVar4,puVar4[1],*(int8 *)(js_map_proto_funcs_ptr + (long)local_c * 8)
,*(int1 *)((long)&js_map_proto_funcs_count + (long)local_c));
auVar5 = JS_NewCFunctionMagic(local_8,js_map_constructor,uVar3,0,3,local_c);
local_20 = auVar5;
if (iVar2 == 0x23) {
JS_SetPropertyFunctionList(local_8,auVar5._0_8_,auVar5._8_8_,js_map_funcs,2);
}
else if (iVar2 == 0x24) {
JS_SetPropertyFunctionList(local_8,auVar5._0_8_,auVar5._8_8_,js_set_funcs,1);
}
puVar4 = (int8 *)(*(long *)(local_8 + 0x40) + (long)iVar2 * 0x10);
JS_NewGlobalCConstructor2(local_8,local_20._0_8_,local_20._8_8_,uVar3,*puVar4,puVar4[1]);
}
for (local_c = 0; local_c < 2; local_c = local_c + 1) {
lVar1 = *(long *)(local_8 + 0x40);
iVar2 = local_c + 0x2a;
auVar5 = JS_NewObjectProto(local_8,*(int8 *)(*(long *)(local_8 + 0x40) + 0x270),
*(int8 *)(*(long *)(local_8 + 0x40) + 0x278));
*(int1 (*) [16])(lVar1 + (long)iVar2 * 0x10) = auVar5;
puVar4 = (int8 *)(*(long *)(local_8 + 0x40) + (long)(local_c + 0x2a) * 0x10);
JS_SetPropertyFunctionList
(local_8,*puVar4,puVar4[1],
*(int8 *)(js_map_proto_funcs_ptr + (long)(local_c + 4) * 8),
*(int1 *)((long)&js_map_proto_funcs_count + (long)(local_c + 4)));
}
return;
}
| |
24,604 | JS_AddIntrinsicMapSet | bluesky950520[P]quickjs/quickjs.c | void JS_AddIntrinsicMapSet(JSContext *ctx)
{
int i;
JSValue obj1;
char buf[ATOM_GET_STR_BUF_SIZE];
for(i = 0; i < 4; i++) {
const char *name = JS_AtomGetStr(ctx, buf, sizeof(buf),
JS_ATOM_Map + i);
int class_id = JS_CLASS_MAP + i;
ctx->class_proto[class_id] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[class_id],
js_map_proto_funcs_ptr[i],
js_map_proto_funcs_count[i]);
obj1 = JS_NewCFunctionMagic(ctx, js_map_constructor, name, 0,
JS_CFUNC_constructor_magic, i);
if (class_id == JS_CLASS_MAP)
JS_SetPropertyFunctionList(ctx, obj1, js_map_funcs, countof(js_map_funcs));
else if (class_id == JS_CLASS_SET)
JS_SetPropertyFunctionList(ctx, obj1, js_set_funcs, countof(js_set_funcs));
JS_NewGlobalCConstructor2(ctx, obj1, name, ctx->class_proto[class_id]);
}
for(i = 0; i < 2; i++) {
ctx->class_proto[JS_CLASS_MAP_ITERATOR + i] =
JS_NewObjectProto(ctx, ctx->class_proto[JS_CLASS_ITERATOR]);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_MAP_ITERATOR + i],
js_map_proto_funcs_ptr[i + 4],
js_map_proto_funcs_count[i + 4]);
}
} | O1 | c | JS_AddIntrinsicMapSet:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x48(%rdi), %rax
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x18(%rbx), %rdi
movl %ebp, %edx
orl $0xb4, %edx
leaq 0x20(%rsp), %rsi
callq 0x221f0
movq %rax, %r13
movq 0x40(%rbx), %r14
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x20f05
movq %rax, 0x230(%r14,%r15,2)
movq %rdx, 0x238(%r14,%r15,2)
movq 0x40(%rbx), %rax
leaq 0xa9063(%rip), %rcx # 0xc7cb0
movq (%r15,%rcx), %rcx
leaq 0x7ebfc(%rip), %rdx # 0x9d854
movzbl (%rbp,%rdx), %r8d
movq 0x230(%rax,%r15,2), %rsi
movq 0x238(%rax,%r15,2), %rdx
movq %rbx, %rdi
callq 0x32c67
movq 0x18(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
leaq 0x16e80(%rip), %rsi # 0x35b0c
movq %r13, %rdx
xorl %ecx, %ecx
movl $0x3, %r8d
movl %ebp, %r9d
callq 0x21006
movq %rax, %r12
movq %rdx, %r14
testq %r15, %r15
je 0x1ecc8
cmpq $0x8, %r15
jne 0x1ece3
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
leaq 0xaa8c0(%rip), %rcx # 0xc9580
movl $0x1, %r8d
jmp 0x1ecde
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
leaq 0xaa868(%rip), %rcx # 0xc9540
movl $0x2, %r8d
callq 0x32c67
movq 0x40(%rbx), %rax
movq 0x230(%rax,%r15,2), %r8
movq 0x238(%rax,%r15,2), %r9
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x361aa
incq %rbp
addq $0x8, %r15
cmpq $0x20, %r15
jne 0x1ec00
leaq 0x7eb38(%rip), %r14 # 0x9d858
xorl %r15d, %r15d
leaq 0xa8f86(%rip), %r13 # 0xc7cb0
movq 0x40(%rbx), %r12
movq 0x270(%r12), %rsi
movq 0x278(%r12), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x20f05
movq %rax, 0x2a0(%r12,%r15,2)
movq %rdx, 0x2a8(%r12,%r15,2)
movq 0x40(%rbx), %rax
movq 0x20(%r15,%r13), %rcx
movzbl (%r14), %r8d
movq 0x2a0(%rax,%r15,2), %rsi
movq 0x2a8(%rax,%r15,2), %rdx
movq %rbx, %rdi
callq 0x32c67
addq $0x8, %r15
incq %r14
cmpq $0x8, %r15
je 0x1ed2a
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_AddIntrinsicMapSet:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbx, rdi
lea rax, [rdi+48h]
mov [rsp+98h+var_80], rax
xor r15d, r15d
xor ebp, ebp
loc_1EC00:
mov rdi, [rbx+18h]
mov edx, ebp
or edx, 0B4h
lea rsi, [rsp+98h+var_78]
call JS_AtomGetStrRT
mov r13, rax
mov r14, [rbx+40h]
mov rsi, [r14+10h]
mov rdx, [r14+18h]
mov rdi, rbx
mov ecx, 1
call JS_NewObjectProtoClass
mov [r14+r15*2+230h], rax
mov [r14+r15*2+238h], rdx
mov rax, [rbx+40h]
lea rcx, js_map_proto_funcs_ptr
mov rcx, [r15+rcx]
lea rdx, js_map_proto_funcs_count
movzx r8d, byte ptr [rbp+rdx+0]
mov rsi, [rax+r15*2+230h]
mov rdx, [rax+r15*2+238h]
mov rdi, rbx
call JS_SetPropertyFunctionList
mov rax, [rsp+98h+var_80]
movups xmm0, xmmword ptr [rax]
movups [rsp+98h+var_98], xmm0
mov rdi, rbx
lea rsi, js_map_constructor
mov rdx, r13
xor ecx, ecx
mov r8d, 3
mov r9d, ebp
call JS_NewCFunction3
mov r12, rax
mov r14, rdx
test r15, r15
jz short loc_1ECC8
cmp r15, 8
jnz short loc_1ECE3
mov rdi, rbx
mov rsi, r12
mov rdx, r14
lea rcx, js_set_funcs
mov r8d, 1
jmp short loc_1ECDE
loc_1ECC8:
mov rdi, rbx
mov rsi, r12
mov rdx, r14
lea rcx, js_map_funcs
mov r8d, 2
loc_1ECDE:
call JS_SetPropertyFunctionList
loc_1ECE3:
mov rax, [rbx+40h]
mov r8, [rax+r15*2+230h]
mov r9, [rax+r15*2+238h]
mov rdi, rbx
mov rsi, r12
mov rdx, r14
mov rcx, r13
call JS_NewGlobalCConstructor2
inc rbp
add r15, 8
cmp r15, 20h ; ' '
jnz loc_1EC00
lea r14, unk_9D858
xor r15d, r15d
lea r13, js_map_proto_funcs_ptr
loc_1ED2A:
mov r12, [rbx+40h]
mov rsi, [r12+270h]
mov rdx, [r12+278h]
mov rdi, rbx
mov ecx, 1
call JS_NewObjectProtoClass
mov [r12+r15*2+2A0h], rax
mov [r12+r15*2+2A8h], rdx
mov rax, [rbx+40h]
mov rcx, [r15+r13+20h]
movzx r8d, byte ptr [r14]
mov rsi, [rax+r15*2+2A0h]
mov rdx, [rax+r15*2+2A8h]
mov rdi, rbx
call JS_SetPropertyFunctionList
add r15, 8
inc r14
cmp r15, 8
jz short loc_1ED2A
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long JS_AddIntrinsicMapSet(_QWORD *a1)
{
unsigned long long v2; // r15
long long v3; // rbp
long long StrRT; // r13
long long v5; // r14
long long v6; // rdx
long long v7; // rax
long long v8; // rdx
long long v9; // r12
long long v10; // r14
_QWORD *v11; // rdi
long long v12; // rsi
char **v13; // rcx
long long v14; // r8
unsigned __int8 *v15; // r14
unsigned long long v16; // r15
long long v17; // r12
long long v18; // rdx
long long result; // rax
long long *v20; // [rsp+18h] [rbp-80h]
char v21[120]; // [rsp+20h] [rbp-78h] BYREF
v20 = a1 + 9;
v2 = 0LL;
v3 = 0LL;
do
{
StrRT = JS_AtomGetStrRT(a1[3], v21, (unsigned int)v3 | 0xB4);
v5 = a1[8];
*(_QWORD *)(v5 + 2 * v2 + 560) = JS_NewObjectProtoClass(a1, *(_QWORD *)(v5 + 16), *(_QWORD *)(v5 + 24), 1LL);
*(_QWORD *)(v5 + 2 * v2 + 568) = v6;
JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(a1[8] + 2 * v2 + 560),
*(_QWORD *)(a1[8] + 2 * v2 + 568),
(&js_map_proto_funcs_ptr)[v2 / 8],
js_map_proto_funcs_count[v3]);
v7 = JS_NewCFunction3((_DWORD)a1, (unsigned int)js_map_constructor, StrRT, 0, 3, v3, *v20, v20[1]);
v9 = v7;
v10 = v8;
if ( v2 )
{
if ( v2 != 8 )
goto LABEL_7;
v11 = a1;
v12 = v7;
v13 = &js_set_funcs;
v14 = 1LL;
}
else
{
v11 = a1;
v12 = v7;
v13 = &js_map_funcs;
v14 = 2LL;
}
JS_SetPropertyFunctionList(v11, v12, v8, v13, v14);
LABEL_7:
JS_NewGlobalCConstructor2(a1, v9, v10, StrRT, *(_QWORD *)(a1[8] + 2 * v2 + 560), *(_QWORD *)(a1[8] + 2 * v2 + 568));
++v3;
v2 += 8LL;
}
while ( v2 != 32 );
v15 = (unsigned __int8 *)&unk_9D858;
v16 = 0LL;
do
{
v17 = a1[8];
*(_QWORD *)(v17 + 2 * v16 + 672) = JS_NewObjectProtoClass(a1, *(_QWORD *)(v17 + 624), *(_QWORD *)(v17 + 632), 1LL);
*(_QWORD *)(v17 + 2 * v16 + 680) = v18;
result = JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(a1[8] + 2 * v16 + 672),
*(_QWORD *)(a1[8] + 2 * v16 + 680),
(&js_map_proto_funcs_ptr)[v16 / 8 + 4],
*v15);
v16 += 8LL;
++v15;
}
while ( v16 == 8 );
return result;
}
| |||
24,605 | OpenSubdiv::v3_6_0::Far::PatchTableBuilder::allocateFVarChannels() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp | void
PatchTableBuilder::allocateFVarChannels() {
int npatches = _table->GetNumPatchesTotal();
_table->allocateFVarPatchChannels((int)_fvarChannelIndices.size());
// Initialize each channel
for (int fvc=0; fvc<(int)_fvarChannelIndices.size(); ++fvc) {
int refinerChannel = _fvarChannelIndices[fvc];
Sdc::Options::FVarLinearInterpolation interpolation =
_refiner.GetFVarLinearInterpolation(refinerChannel);
_table->setFVarPatchChannelLinearInterpolation(interpolation, fvc);
PatchDescriptor::Type regPatchType = _patchBuilder->GetLinearPatchType();
PatchDescriptor::Type irregPatchType = regPatchType;
if (_buildUniformLinear) {
if (_options.triangulateQuads) {
regPatchType = PatchDescriptor::TRIANGLES;
irregPatchType = regPatchType;
}
} else {
if (!isFVarChannelLinear(fvc)) {
regPatchType = _patchBuilder->GetRegularPatchType();
irregPatchType = _patchBuilder->GetIrregularPatchType();
}
}
_table->allocateFVarPatchChannelValues(
PatchDescriptor(regPatchType), PatchDescriptor(irregPatchType),
npatches, fvc);
}
} | O1 | cpp | OpenSubdiv::v3_6_0::Far::PatchTableBuilder::allocateFVarChannels():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x3c4c0
movl %eax, %ebp
movq 0x30(%rbx), %rdi
movq 0xb0(%rbx), %rsi
subq 0xa8(%rbx), %rsi
shrq $0x2, %rsi
callq 0x39720
movq 0xa8(%rbx), %rax
movq 0xb0(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x6c3df
xorl %r14d, %r14d
leaq 0x4(%rsp), %r15
movq %rsp, %r12
movl (%rax,%r14,4), %esi
movq (%rbx), %rax
movq 0x30(%rax), %rax
movq (%rax), %rdi
callq 0x39230
movzbl %ah, %esi
movq 0x30(%rbx), %rdi
movl %r14d, %edx
callq 0x394f0
movq 0x38(%rbx), %rax
movl 0x34(%rax), %r13d
cmpb $0x0, 0x28(%rbx)
js 0x6c38f
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3b290
movl %r13d, %ecx
testb %al, %al
jne 0x6c39f
movq 0x38(%rbx), %rax
movl 0x28(%rax), %r13d
movl 0x2c(%rax), %ecx
jmp 0x6c39f
testb $0x8, 0x8(%rbx)
movl $0x4, %eax
cmovnel %eax, %r13d
movl %r13d, %ecx
movq 0x30(%rbx), %rdi
movl %r13d, 0x4(%rsp)
movl %ecx, (%rsp)
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movl %r14d, %r8d
callq 0x3b800
incq %r14
movq 0xa8(%rbx), %rax
movq 0xb0(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jl 0x6c340
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder20allocateFVarChannelsEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+30h]; this
call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable18GetNumPatchesTotalEv; OpenSubdiv::v3_6_0::Far::PatchTable::GetNumPatchesTotal(void)
mov ebp, eax
mov rdi, [rbx+30h]; this
mov rsi, [rbx+0B0h]
sub rsi, [rbx+0A8h]
shr rsi, 2; int
call __ZN10OpenSubdiv6v3_6_03Far10PatchTable25allocateFVarPatchChannelsEi; OpenSubdiv::v3_6_0::Far::PatchTable::allocateFVarPatchChannels(int)
mov rax, [rbx+0A8h]
mov rcx, [rbx+0B0h]
sub rcx, rax
shr rcx, 2
test ecx, ecx
jle loc_6C3DF
xor r14d, r14d
lea r15, [rsp+38h+var_34]
mov r12, rsp
loc_6C340:
mov esi, [rax+r14*4]; int
mov rax, [rbx]
mov rax, [rax+30h]
mov rdi, [rax]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level14getFVarOptionsEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFVarOptions(int)
movzx esi, ah
mov rdi, [rbx+30h]
mov edx, r14d
call __ZN10OpenSubdiv6v3_6_03Far10PatchTable38setFVarPatchChannelLinearInterpolationENS0_3Sdc7Options23FVarLinearInterpolationEi; OpenSubdiv::v3_6_0::Far::PatchTable::setFVarPatchChannelLinearInterpolation(OpenSubdiv::v3_6_0::Sdc::Options::FVarLinearInterpolation,int)
mov rax, [rbx+38h]
mov r13d, [rax+34h]
cmp byte ptr [rbx+28h], 0
js short loc_6C38F
mov rdi, rbx; this
mov esi, r14d; int
call __ZNK10OpenSubdiv6v3_6_03Far17PatchTableBuilder19isFVarChannelLinearEi; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::isFVarChannelLinear(int)
mov ecx, r13d
test al, al
jnz short loc_6C39F
mov rax, [rbx+38h]
mov r13d, [rax+28h]
mov ecx, [rax+2Ch]
jmp short loc_6C39F
loc_6C38F:
test byte ptr [rbx+8], 8
mov eax, 4
cmovnz r13d, eax
mov ecx, r13d
loc_6C39F:
mov rdi, [rbx+30h]
mov [rsp+38h+var_34], r13d
mov [rsp+38h+var_38], ecx
mov rsi, r15
mov rdx, r12
mov ecx, ebp
mov r8d, r14d
call __ZN10OpenSubdiv6v3_6_03Far10PatchTable30allocateFVarPatchChannelValuesENS1_15PatchDescriptorES3_ii; OpenSubdiv::v3_6_0::Far::PatchTable::allocateFVarPatchChannelValues(OpenSubdiv::v3_6_0::Far::PatchDescriptor,OpenSubdiv::v3_6_0::Far::PatchDescriptor,int,int)
inc r14
mov rax, [rbx+0A8h]
mov rcx, [rbx+0B0h]
sub rcx, rax
shr rcx, 2
movsxd rcx, ecx
cmp r14, rcx
jl loc_6C340
loc_6C3DF:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| OpenSubdiv::v3_6_0::Far::PatchTable * OpenSubdiv::v3_6_0::Far::PatchTableBuilder::allocateFVarChannels(
OpenSubdiv::v3_6_0::Far::PatchTable **this)
{
long long v1; // rax
unsigned int NumPatchesTotal; // ebp
OpenSubdiv::v3_6_0::Far::PatchTable *result; // rax
long long v5; // r14
long long FVarOptions; // rax
int v7; // r13d
char isFVarChannelLinear; // al
int v9; // ecx
OpenSubdiv::v3_6_0::Far::PatchTable *v10; // rax
OpenSubdiv::v3_6_0::Far::PatchTable *v11; // rdi
_QWORD v12[7]; // [rsp+0h] [rbp-38h] BYREF
v12[0] = v1;
NumPatchesTotal = OpenSubdiv::v3_6_0::Far::PatchTable::GetNumPatchesTotal(this[6]);
OpenSubdiv::v3_6_0::Far::PatchTable::allocateFVarPatchChannels(this[6], (unsigned long long)(this[22] - this[21]) >> 2);
result = this[21];
if ( (int)((unsigned long long)(this[22] - result) >> 2) > 0 )
{
v5 = 0LL;
do
{
FVarOptions = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFVarOptions(
**((OpenSubdiv::v3_6_0::Vtr::internal::Level ***)*this + 6),
*((_DWORD *)result + v5));
OpenSubdiv::v3_6_0::Far::PatchTable::setFVarPatchChannelLinearInterpolation(
(long long)this[6],
BYTE1(FVarOptions),
v5);
v7 = *((_DWORD *)this[7] + 13);
if ( *((char *)this + 40) < 0 )
{
if ( ((_BYTE)this[1] & 8) != 0 )
v7 = 4;
v9 = v7;
}
else
{
isFVarChannelLinear = OpenSubdiv::v3_6_0::Far::PatchTableBuilder::isFVarChannelLinear(
(OpenSubdiv::v3_6_0::Far::PatchTableBuilder *)this,
v5);
v9 = v7;
if ( !isFVarChannelLinear )
{
v10 = this[7];
v7 = *((_DWORD *)v10 + 10);
v9 = *((_DWORD *)v10 + 11);
}
}
v11 = this[6];
v12[0] = __PAIR64__(v7, v9);
OpenSubdiv::v3_6_0::Far::PatchTable::allocateFVarPatchChannelValues(
v11,
(char *)v12 + 4,
v12,
NumPatchesTotal,
(unsigned int)v5++);
result = this[21];
}
while ( v5 < (int)((unsigned long long)(this[22] - result) >> 2) );
}
return result;
}
| allocateFVarChannels:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x30]
CALL 0x0013c4c0
MOV EBP,EAX
MOV RDI,qword ptr [RBX + 0x30]
MOV RSI,qword ptr [RBX + 0xb0]
SUB RSI,qword ptr [RBX + 0xa8]
SHR RSI,0x2
CALL 0x00139720
MOV RAX,qword ptr [RBX + 0xa8]
MOV RCX,qword ptr [RBX + 0xb0]
SUB RCX,RAX
SHR RCX,0x2
TEST ECX,ECX
JLE 0x0016c3df
XOR R14D,R14D
LEA R15,[RSP + 0x4]
MOV R12,RSP
LAB_0016c340:
MOV ESI,dword ptr [RAX + R14*0x4]
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RAX]
CALL 0x00139230
MOVZX ESI,AH
MOV RDI,qword ptr [RBX + 0x30]
MOV EDX,R14D
CALL 0x001394f0
MOV RAX,qword ptr [RBX + 0x38]
MOV R13D,dword ptr [RAX + 0x34]
CMP byte ptr [RBX + 0x28],0x0
JS 0x0016c38f
MOV RDI,RBX
MOV ESI,R14D
CALL 0x0013b290
MOV ECX,R13D
TEST AL,AL
JNZ 0x0016c39f
MOV RAX,qword ptr [RBX + 0x38]
MOV R13D,dword ptr [RAX + 0x28]
MOV ECX,dword ptr [RAX + 0x2c]
JMP 0x0016c39f
LAB_0016c38f:
TEST byte ptr [RBX + 0x8],0x8
MOV EAX,0x4
CMOVNZ R13D,EAX
MOV ECX,R13D
LAB_0016c39f:
MOV RDI,qword ptr [RBX + 0x30]
MOV dword ptr [RSP + 0x4],R13D
MOV dword ptr [RSP],ECX
MOV RSI,R15
MOV RDX,R12
MOV ECX,EBP
MOV R8D,R14D
CALL 0x0013b800
INC R14
MOV RAX,qword ptr [RBX + 0xa8]
MOV RCX,qword ptr [RBX + 0xb0]
SUB RCX,RAX
SHR RCX,0x2
MOVSXD RCX,ECX
CMP R14,RCX
JL 0x0016c340
LAB_0016c3df:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::allocateFVarChannels() */
void __thiscall
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::allocateFVarChannels(PatchTableBuilder *this)
{
char cVar1;
int4 uVar2;
int1 extraout_AH;
int8 in_RAX;
long lVar3;
int4 uVar4;
int4 uVar5;
ulong uVar6;
int8 local_38;
local_38 = in_RAX;
uVar2 = PatchTable::GetNumPatchesTotal(*(PatchTable **)(this + 0x30));
PatchTable::allocateFVarPatchChannels
(*(PatchTable **)(this + 0x30),
(int)((ulong)(*(long *)(this + 0xb0) - *(long *)(this + 0xa8)) >> 2));
lVar3 = *(long *)(this + 0xa8);
if (0 < (int)((ulong)(*(long *)(this + 0xb0) - lVar3) >> 2)) {
uVar6 = 0;
do {
Vtr::internal::Level::getFVarOptions
((Level *)**(int8 **)(*(long *)this + 0x30),*(int *)(lVar3 + uVar6 * 4));
PatchTable::setFVarPatchChannelLinearInterpolation
(*(PatchTable **)(this + 0x30),extraout_AH,uVar6 & 0xffffffff);
uVar5 = *(int4 *)(*(long *)(this + 0x38) + 0x34);
uVar4 = uVar5;
if ((char)this[0x28] < '\0') {
if (((byte)this[8] & 8) != 0) {
uVar5 = 4;
uVar4 = uVar5;
}
}
else {
cVar1 = isFVarChannelLinear(this,(int)uVar6);
if (cVar1 == '\0') {
uVar5 = *(int4 *)(*(long *)(this + 0x38) + 0x28);
uVar4 = *(int4 *)(*(long *)(this + 0x38) + 0x2c);
}
}
local_38 = CONCAT44(uVar5,uVar4);
PatchTable::allocateFVarPatchChannelValues
(*(PatchTable **)(this + 0x30),(long)&local_38 + 4,&local_38,uVar2,
uVar6 & 0xffffffff);
uVar6 = uVar6 + 1;
lVar3 = *(long *)(this + 0xa8);
} while ((long)uVar6 < (long)(int)((ulong)(*(long *)(this + 0xb0) - lVar3) >> 2));
}
return;
}
| |
24,606 | delete_dynamic_with_callback | eloqsql/mysys/array.c | void delete_dynamic_with_callback(DYNAMIC_ARRAY *array, FREE_FUNC f) {
uint i;
char *ptr= (char*) array->buffer;
for (i= 0; i < array->elements; i++, ptr+= array->size_of_element) {
f(ptr);
}
delete_dynamic(array);
} | O3 | c | delete_dynamic_with_callback:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
je 0x5b00a
movq %rsi, %r14
movq (%rbx), %r15
xorl %r12d, %r12d
movq %r15, %rdi
callq *%r14
incl %r12d
movl 0x14(%rbx), %eax
addq %rax, %r15
cmpl 0x8(%rbx), %r12d
jb 0x5aff5
testb $0x1, 0x21(%rbx)
jne 0x5b01d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5b01d
callq 0x5a126
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| delete_dynamic_with_callback:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
cmp dword ptr [rdi+8], 0
jz short loc_5B00A
mov r14, rsi
mov r15, [rbx]
xor r12d, r12d
loc_5AFF5:
mov rdi, r15
call r14
inc r12d
mov eax, [rbx+14h]
add r15, rax
cmp r12d, [rbx+8]
jb short loc_5AFF5
loc_5B00A:
test byte ptr [rbx+21h], 1
jnz short loc_5B01D
mov rdi, [rbx]
test rdi, rdi
jz short loc_5B01D
call my_free
loc_5B01D:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long delete_dynamic_with_callback(long long a1, void ( *a2)(long long))
{
long long v2; // r15
unsigned int v3; // r12d
long long result; // rax
if ( *(_DWORD *)(a1 + 8) )
{
v2 = *(_QWORD *)a1;
v3 = 0;
do
{
a2(v2);
++v3;
result = *(unsigned int *)(a1 + 20);
v2 += result;
}
while ( v3 < *(_DWORD *)(a1 + 8) );
}
if ( (*(_BYTE *)(a1 + 33) & 1) == 0 && *(_QWORD *)a1 )
result = my_free(*(_QWORD *)a1);
*(_OWORD *)a1 = 0LL;
return result;
}
| delete_dynamic_with_callback:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
CMP dword ptr [RDI + 0x8],0x0
JZ 0x0015b00a
MOV R14,RSI
MOV R15,qword ptr [RBX]
XOR R12D,R12D
LAB_0015aff5:
MOV RDI,R15
CALL R14
INC R12D
MOV EAX,dword ptr [RBX + 0x14]
ADD R15,RAX
CMP R12D,dword ptr [RBX + 0x8]
JC 0x0015aff5
LAB_0015b00a:
TEST byte ptr [RBX + 0x21],0x1
JNZ 0x0015b01d
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x0015b01d
CALL 0x0015a126
LAB_0015b01d:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void delete_dynamic_with_callback(long *param_1,code *param_2)
{
uint uVar1;
long lVar2;
if ((int)param_1[1] != 0) {
lVar2 = *param_1;
uVar1 = 0;
do {
(*param_2)(lVar2);
uVar1 = uVar1 + 1;
lVar2 = lVar2 + (ulong)*(uint *)((long)param_1 + 0x14);
} while (uVar1 < *(uint *)(param_1 + 1));
}
if (((*(byte *)((long)param_1 + 0x21) & 1) == 0) && (*param_1 != 0)) {
my_free();
}
*param_1 = 0;
param_1[1] = 0;
return;
}
| |
24,607 | ftxui::operator|=(std::shared_ptr<ftxui::ComponentBase>&, std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/util.cpp | Component& operator|=(Component& component, ElementDecorator decorator) {
component = component | decorator; // NOLINT
return component;
} | O3 | cpp | ftxui::operator|=(std::shared_ptr<ftxui::ComponentBase>&, std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>):
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq %rax, (%rsp)
movq 0x8(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x33acb
movq 0x254f3(%rip), %rcx # 0x58fb0
cmpb $0x0, (%rcx)
je 0x33ac7
incl 0x8(%rax)
jmp 0x33acb
lock
incl 0x8(%rax)
leaq 0x20(%rsp), %rdi
callq 0x260c4
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
callq 0x3389f
movaps 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0x33b14
callq 0x14af8
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x33b14
callq 0x14af8
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x33b2d
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x33b3c
callq 0x14af8
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
retq
jmp 0x33b65
movq %rax, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x33b70
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x33b70
movq %rax, %rdi
callq 0x1049a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x33b7f
callq 0x14af8
movq %rbx, %rdi
callq 0xb780
nop
| _ZN5ftxuioRERSt10shared_ptrINS_13ComponentBaseEESt8functionIFS0_INS_4NodeEES6_EE:
push rbx
sub rsp, 40h
mov rbx, rdi
mov rax, [rdi]
mov [rsp+48h+var_48], rax
mov rax, [rdi+8]
mov [rsp+48h+var_40], rax
test rax, rax
jz short loc_33ACB
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_33AC7
inc dword ptr [rax+8]
jmp short loc_33ACB
loc_33AC7:
lock inc dword ptr [rax+8]
loc_33ACB:
lea rdi, [rsp+48h+var_28]
call _ZNSt8functionIFSt10shared_ptrIN5ftxui4NodeEES3_EEC2ERKS5_; std::function<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>)>::function(std::function<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>)> const&)
lea rdi, [rsp+48h+var_38]
mov rsi, rsp
lea rdx, [rsp+48h+var_28]
call _ZN5ftxuiorESt10shared_ptrINS_13ComponentBaseEESt8functionIFS0_INS_4NodeEES5_EE; ftxui::operator|(std::shared_ptr<ftxui::ComponentBase>,std::function<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>)>)
movaps xmm0, [rsp+48h+var_38]
xorps xmm1, xmm1
movaps [rsp+48h+var_38], xmm1
mov rdi, [rbx+8]
movups xmmword ptr [rbx], xmm0
test rdi, rdi
jz short loc_33B14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
mov rdi, qword ptr [rsp+48h+var_38+8]
test rdi, rdi
jz short loc_33B14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_33B14:
mov rax, [rsp+48h+var_18]
test rax, rax
jz short loc_33B2D
lea rdi, [rsp+48h+var_28]
mov rsi, rdi
mov edx, 3
call rax
loc_33B2D:
mov rdi, [rsp+48h+var_40]
test rdi, rdi
jz short loc_33B3C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_33B3C:
mov rax, rbx
add rsp, 40h
pop rbx
retn
jmp short loc_33B65
mov rbx, rax
mov rax, [rsp+48h+var_18]
test rax, rax
jz short loc_33B70
lea rdi, [rsp+48h+var_28]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_33B70
loc_33B65:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
loc_33B70:
mov rdi, [rsp+48h+var_40]
test rdi, rdi
jz short loc_33B7F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_33B7F:
mov rdi, rbx
call __Unwind_Resume
| long long * ftxui::operator|=(long long *a1, long long a2)
{
volatile signed __int32 *v3; // rax
__int128 v4; // xmm0
volatile signed __int32 *v5; // rdi
long long v7; // [rsp+0h] [rbp-48h] BYREF
volatile signed __int32 *v8; // [rsp+8h] [rbp-40h]
__int128 v9; // [rsp+10h] [rbp-38h] BYREF
__int128 v10; // [rsp+20h] [rbp-28h] BYREF
void ( *v11)(__int128 *, __int128 *, long long); // [rsp+30h] [rbp-18h]
v7 = *a1;
v3 = (volatile signed __int32 *)a1[1];
v8 = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v3 + 2);
else
_InterlockedIncrement(v3 + 2);
}
std::function<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>)>::function(&v10, a2);
ftxui::operator|((long long)&v9, &v7, (long long)&v10);
v4 = v9;
v9 = 0LL;
v5 = (volatile signed __int32 *)a1[1];
*(_OWORD *)a1 = v4;
if ( v5 )
{
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v5);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1));
}
if ( v11 )
v11(&v10, &v10, 3LL);
if ( v8 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8);
return a1;
}
| operator|=:
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RDI + 0x8]
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x00133acb
MOV RCX,qword ptr [0x00158fb0]
CMP byte ptr [RCX],0x0
JZ 0x00133ac7
INC dword ptr [RAX + 0x8]
JMP 0x00133acb
LAB_00133ac7:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00133acb:
LEA RDI,[RSP + 0x20]
CALL 0x001260c4
LAB_00133ad5:
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0013389f
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
XORPS XMM1,XMM1
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOV RDI,qword ptr [RBX + 0x8]
MOVUPS xmmword ptr [RBX],XMM0
TEST RDI,RDI
JZ 0x00133b14
CALL 0x00114af8
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x00133b14
CALL 0x00114af8
LAB_00133b14:
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JZ 0x00133b2d
LAB_00133b1e:
LEA RDI,[RSP + 0x20]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00133b2d:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00133b3c
CALL 0x00114af8
LAB_00133b3c:
MOV RAX,RBX
ADD RSP,0x40
POP RBX
RET
|
/* ftxui::TEMPNAMEPLACEHOLDERVALUE(std::shared_ptr<ftxui::ComponentBase>&,
std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>) */
int8 * ftxui::operator|=(int8 *param_1,function *param_2)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this;
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int8 local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
int8 local_38;
int8 uStack_30;
function<std::shared_ptr<ftxui::Node>(std::shared_ptr<ftxui::Node>)> local_28 [16];
code *local_18;
local_48 = *param_1;
local_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)param_1[1];
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00158fb0 == '\0') {
LOCK();
*(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_40 + 8) = *(int *)(local_40 + 8) + 1;
}
}
/* try { // try from 00133acb to 00133ad4 has its CatchHandler @ 00133b6d */
std::function<std::shared_ptr<ftxui::Node>(std::shared_ptr<ftxui::Node>)>::function
(local_28,param_2);
/* try { // try from 00133ad5 to 00133ae6 has its CatchHandler @ 00133b47 */
operator|((ftxui *)&local_38,&local_48,local_28);
uVar1 = (int4)local_38;
uVar2 = local_38._4_4_;
uVar3 = (int4)uStack_30;
uVar4 = uStack_30._4_4_;
local_38 = 0;
uStack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
this = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)param_1[1];
*(int4 *)param_1 = uVar1;
*(int4 *)((long)param_1 + 4) = uVar2;
*(int4 *)(param_1 + 1) = uVar3;
*(int4 *)((long)param_1 + 0xc) = uVar4;
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this);
if (uStack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(uStack_30);
}
}
if (local_18 != (code *)0x0) {
/* try { // try from 00133b1e to 00133b2c has its CatchHandler @ 00133b45 */
(*local_18)(local_28,local_28,3);
}
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
return param_1;
}
| |
24,608 | cli::value_base<cli::integer>::get_option_help(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, cli::option_map&) const | msxemulator/build_O3/_deps/picotool-src/cli.h | bool get_option_help(string major_group, string minor_group, option_map &options) const override {
if (this->doc().empty()) {
return false;
}
options.add(major_group, minor_group, string("<") + this->_name + ">", this->doc());
return true;
} | O3 | c | cli::value_base<cli::integer>::get_option_help(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, cli::option_map&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r14
movq %rdx, 0x40(%rsp)
movq %rsi, %r15
movq %rdi, %r12
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x68(%rdi), %rsi
movq 0x70(%rdi), %rdx
addq %rsi, %rdx
movq %rsp, %r13
movq %r13, %rdi
callq 0x1d410
movq (%r13), %rdi
movq 0x8(%r13), %rbx
cmpq %rbp, %rdi
je 0x56fba
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf470
testq %rbx, %rbx
je 0x5712b
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x4d01d(%rip), %rsi # 0xa3ff0
leaq 0x4d017(%rip), %rdx # 0xa3ff1
leaq 0x48(%rsp), %r13
movq %r13, %rdi
callq 0x5c00c
movq 0x48(%r12), %rsi
movq 0x50(%r12), %rdx
movq %r13, %rdi
callq 0xf170
leaq 0x30(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x57020
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x57026
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4ef5f(%rip), %rsi # 0xa5fa8
callq 0xf830
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5706f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x57076
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x68(%r12), %rsi
movq 0x70(%r12), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x1d410
movq %rsp, %rcx
leaq 0x68(%rsp), %r8
movq %r14, %rdi
movq %r15, %rsi
movq 0x40(%rsp), %rdx
callq 0x4c1c6
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x570dd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xf470
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x570f3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf470
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5710f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf470
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5712b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xf470
testq %rbx, %rbx
setne %al
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x57162
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xf470
jmp 0x57162
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x5717d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf470
jmp 0x5717d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5719e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf470
jmp 0x5719e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x571ba
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rdi
callq 0xf7d0
| _ZNK3cli10value_baseI9family_idE15get_option_helpENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RNS_10option_mapE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r14, rcx
mov [rsp+0B8h+var_78], rdx
mov r15, rsi
mov r12, rdi
lea rbp, [rsp+0B8h+var_A8]
mov [rbp-10h], rbp
mov rsi, [rdi+68h]
mov rdx, [rdi+70h]
add rdx, rsi
mov r13, rsp
mov rdi, r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rdi, [r13+0]; void *
mov rbx, [r13+8]
cmp rdi, rbp
jz short loc_56FBA
mov rsi, [rsp+0B8h+var_A8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_56FBA:
test rbx, rbx
jz loc_5712B
lea rax, [rsp+0B8h+var_60]
mov [rax-10h], rax
lea rsi, aMissing+8; "<"
lea rdx, aMissing+9; ""
lea r13, [rsp+0B8h+var_70]
mov rdi, r13
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, [r12+48h]
mov rdx, [r12+50h]
mov rdi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rsi, [rsp+0B8h+var_88]
mov [rsi-10h], rsi
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_57020
mov [rsp+0B8h+var_98], rdx
mov rdx, [rcx]
mov [rsp+0B8h+var_88], rdx
jmp short loc_57026
loc_57020:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_57026:
mov rdx, [rax+8]
lea rdi, [rsp+0B8h+var_98]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, asc_A5FA7+1; ">"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov [rsp+0B8h+var_B8], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_5706F
mov [rsp+0B8h+var_B8], rdx
mov rdx, [rcx]
mov [rsp+0B8h+var_A8], rdx
jmp short loc_57076
loc_5706F:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_57076:
mov rdx, [rax+8]
mov [rsp+0B8h+var_B0], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea r13, [rsp+0B8h+var_40]
mov [r13-10h], r13
mov rsi, [r12+68h]
mov rdx, [r12+70h]
add rdx, rsi
lea rdi, [rsp+0B8h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rcx, rsp
lea r8, [rsp+0B8h+var_50]
mov rdi, r14
mov rsi, r15
mov rdx, [rsp+0B8h+var_78]
call _ZN3cli10option_map3addERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_; cli::option_map::add(std::string const&,std::string const&,std::string const&,std::string const&)
mov rdi, [rsp+0B8h+var_50]; void *
cmp rdi, r13
jz short loc_570DD
mov rsi, [rsp+0B8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_570DD:
mov rdi, [rsp+0B8h+var_B8]; void *
cmp rdi, rbp
jz short loc_570F3
mov rsi, [rsp+0B8h+var_A8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_570F3:
mov rdi, [rsp+0B8h+var_98]; void *
lea rax, [rsp+0B8h+var_88]
cmp rdi, rax
jz short loc_5710F
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5710F:
mov rdi, [rsp+0B8h+var_70]; void *
lea rax, [rsp+0B8h+var_60]
cmp rdi, rax
jz short loc_5712B
mov rsi, [rsp+0B8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5712B:
test rbx, rbx
setnz al
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_60]; void *
cmp rdi, r13
jz short loc_57162
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_57162
mov rbx, rax
loc_57162:
mov rdi, [rsp+0]; void *
cmp rdi, rbp
jz short loc_5717D
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5717D
mov rbx, rax
loc_5717D:
mov rdi, [rsp+arg_18]; void *
lea rax, [rsp+arg_28]
cmp rdi, rax
jz short loc_5719E
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5719E
mov rbx, rax
loc_5719E:
mov rdi, [rsp+arg_40]; void *
lea rax, [rsp+arg_50]
cmp rdi, rax
jz short loc_571BA
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_571BA:
mov rdi, rbx
call __Unwind_Resume
| bool cli::value_base<family_id>::get_option_help(long long a1, long long a2, long long a3, long long a4)
{
long long v5; // rbx
long long v6; // rax
__int128 *v7; // rcx
long long v8; // rax
__int128 *v9; // rcx
void *v11; // [rsp+0h] [rbp-B8h] BYREF
long long v12; // [rsp+8h] [rbp-B0h]
__int128 v13; // [rsp+10h] [rbp-A8h] BYREF
void *v14[2]; // [rsp+20h] [rbp-98h] BYREF
__int128 v15; // [rsp+30h] [rbp-88h] BYREF
long long v16; // [rsp+40h] [rbp-78h]
void *v17[2]; // [rsp+48h] [rbp-70h] BYREF
_QWORD v18[2]; // [rsp+58h] [rbp-60h] BYREF
void *v19[2]; // [rsp+68h] [rbp-50h] BYREF
_QWORD v20[8]; // [rsp+78h] [rbp-40h] BYREF
v16 = a3;
v11 = &v13;
std::string::_M_construct<char *>((long long)&v11, *(_BYTE **)(a1 + 104), *(_QWORD *)(a1 + 104) + *(_QWORD *)(a1 + 112));
v5 = v12;
if ( v11 != &v13 )
operator delete(v11, v13 + 1);
if ( v5 )
{
v17[0] = v18;
std::string::_M_construct<char const*>(v17, "<", "");
v6 = std::string::_M_append(v17, *(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 80));
v14[0] = &v15;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v15 = *v7;
}
else
{
v14[0] = *(void **)v6;
*(_QWORD *)&v15 = *(_QWORD *)v7;
}
v14[1] = *(void **)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
v8 = std::string::append(v14, ">");
v11 = &v13;
v9 = (__int128 *)(v8 + 16);
if ( *(_QWORD *)v8 == v8 + 16 )
{
v13 = *v9;
}
else
{
v11 = *(void **)v8;
*(_QWORD *)&v13 = *(_QWORD *)v9;
}
v12 = *(_QWORD *)(v8 + 8);
*(_QWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = 0LL;
*(_BYTE *)(v8 + 16) = 0;
v19[0] = v20;
std::string::_M_construct<char *>(
(long long)v19,
*(_BYTE **)(a1 + 104),
*(_QWORD *)(a1 + 104) + *(_QWORD *)(a1 + 112));
cli::option_map::add(a4, a2, v16, (long long)&v11, (long long)v19);
if ( v19[0] != v20 )
operator delete(v19[0], v20[0] + 1LL);
if ( v11 != &v13 )
operator delete(v11, v13 + 1);
if ( v14[0] != &v15 )
operator delete(v14[0], v15 + 1);
if ( v17[0] != v18 )
operator delete(v17[0], v18[0] + 1LL);
}
return v5 != 0;
}
| get_option_help:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RCX
MOV qword ptr [RSP + 0x40],RDX
MOV R15,RSI
MOV R12,RDI
LEA RBP,[RSP + 0x10]
MOV qword ptr [RBP + -0x10],RBP
MOV RSI,qword ptr [RDI + 0x68]
MOV RDX,qword ptr [RDI + 0x70]
ADD RDX,RSI
MOV R13,RSP
MOV RDI,R13
CALL 0x0011d410
MOV RDI,qword ptr [R13]
MOV RBX,qword ptr [R13 + 0x8]
CMP RDI,RBP
JZ 0x00156fba
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010f470
LAB_00156fba:
TEST RBX,RBX
JZ 0x0015712b
LEA RAX,[RSP + 0x58]
MOV qword ptr [RAX + -0x10],RAX
LEA RSI,[0x1a3ff0]
LEA RDX,[0x1a3ff1]
LEA R13,[RSP + 0x48]
MOV RDI,R13
CALL 0x0015c00c
MOV RSI,qword ptr [R12 + 0x48]
MOV RDX,qword ptr [R12 + 0x50]
LAB_00156ff1:
MOV RDI,R13
CALL 0x0010f170
LEA RSI,[RSP + 0x30]
MOV qword ptr [RSI + -0x10],RSI
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00157020
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x00157026
LAB_00157020:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_00157026:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x20]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00157042:
LEA RSI,[0x1a5fa8]
CALL 0x0010f830
MOV qword ptr [RSP],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0015706f
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x00157076
LAB_0015706f:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_00157076:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA R13,[RSP + 0x78]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [R12 + 0x68]
MOV RDX,qword ptr [R12 + 0x70]
ADD RDX,RSI
LAB_001570a4:
LEA RDI,[RSP + 0x68]
CALL 0x0011d410
LAB_001570ae:
MOV RCX,RSP
LEA R8,[RSP + 0x68]
MOV RDI,R14
MOV RSI,R15
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x0014c1c6
LAB_001570c6:
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R13
JZ 0x001570dd
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0010f470
LAB_001570dd:
MOV RDI,qword ptr [RSP]
CMP RDI,RBP
JZ 0x001570f3
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010f470
LAB_001570f3:
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0015710f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0010f470
LAB_0015710f:
MOV RDI,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x58]
CMP RDI,RAX
JZ 0x0015712b
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0010f470
LAB_0015712b:
TEST RBX,RBX
SETNZ AL
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* cli::value_base<family_id>::get_option_help(std::__cxx11::string, std::__cxx11::string,
cli::option_map&) const */
bool __thiscall
cli::value_base<family_id>::get_option_help
(value_base<family_id> *this,string *param_2,string *param_3,option_map *param_4)
{
long lVar1;
long *plVar2;
long *plVar3;
long *local_b8;
long local_b0;
long local_a8;
int4 uStack_a0;
int4 uStack_9c;
long *local_98;
long local_90;
long local_88;
long lStack_80;
string *local_78;
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
local_b8 = &local_a8;
local_78 = param_3;
std::__cxx11::string::_M_construct<char*>
(&local_b8,*(long *)(this + 0x68),*(long *)(this + 0x70) + *(long *)(this + 0x68));
lVar1 = local_b0;
if (local_b8 != &local_a8) {
operator_delete(local_b8,local_a8 + 1);
}
if (local_b0 != 0) {
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char_const*>((string *)local_70,"<","");
/* try { // try from 00156ff1 to 00156ff8 has its CatchHandler @ 0015719b */
plVar2 = (long *)std::__cxx11::string::_M_append((char *)local_70,*(ulong *)(this + 0x48));
local_98 = &local_88;
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_88 = *plVar3;
lStack_80 = plVar2[3];
}
else {
local_88 = *plVar3;
local_98 = (long *)*plVar2;
}
local_90 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 00157042 to 0015704d has its CatchHandler @ 0015717a */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_98);
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_a8 = *plVar3;
uStack_a0 = (int4)plVar2[3];
uStack_9c = *(int4 *)((long)plVar2 + 0x1c);
local_b8 = &local_a8;
}
else {
local_a8 = *plVar3;
local_b8 = (long *)*plVar2;
}
local_b0 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 001570a4 to 001570ad has its CatchHandler @ 0015715f */
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char*>
(local_50,*(long *)(this + 0x68),*(long *)(this + 0x70) + *(long *)(this + 0x68));
/* try { // try from 001570ae to 001570c5 has its CatchHandler @ 00157143 */
option_map::add(param_4,param_2,local_78,(string *)&local_b8,(string *)local_50);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (local_b8 != &local_a8) {
operator_delete(local_b8,local_a8 + 1);
}
if (local_98 != &local_88) {
operator_delete(local_98,local_88 + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
}
return lVar1 != 0;
}
| |
24,609 | string_strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | std::string string_strip(const std::string & str) {
size_t start = 0;
size_t end = str.size();
while (start < end && std::isspace(str[start])) {
start++;
}
while (end > start && std::isspace(str[end - 1])) {
end--;
}
return str.substr(start, end - start);
} | O3 | cpp | string_strip(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
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rbp
movq 0x8(%rsi), %r13
xorl %r15d, %r15d
testq %r13, %r13
je 0x518e7
movsbl (%rbp,%r15), %edi
callq 0x190c0
testl %eax, %eax
je 0x518e7
incq %r15
cmpq %r15, %r13
jne 0x518cd
movq %r13, %r15
cmpq %r13, %r15
movq %r13, %r12
cmovbq %r15, %r12
cmpq %r15, %r13
jbe 0x5190e
movsbl -0x1(%rbp,%r13), %edi
decq %r13
callq 0x190c0
testl %eax, %eax
jne 0x518f1
incq %r13
movq %r13, %r12
subq %r15, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x19720
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z12string_stripRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rbp, [rsi]
mov r13, [rsi+8]
xor r15d, r15d
test r13, r13
jz short loc_518E7
loc_518CD:
movsx edi, byte ptr [rbp+r15+0]
call _isspace
test eax, eax
jz short loc_518E7
inc r15
cmp r13, r15
jnz short loc_518CD
mov r15, r13
loc_518E7:
cmp r15, r13
mov r12, r13
cmovb r12, r15
loc_518F1:
cmp r13, r15
jbe short loc_5190E
movsx edi, byte ptr [rbp+r13-1]
dec r13
call _isspace
test eax, eax
jnz short loc_518F1
inc r13
mov r12, r13
loc_5190E:
sub r12, r15
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long string_strip(long long a1, long long *a2)
{
long long v3; // rbp
unsigned long long v4; // r13
unsigned long long v5; // r15
unsigned long long v6; // r12
long long v7; // rdi
v3 = *a2;
v4 = a2[1];
v5 = 0LL;
if ( v4 )
{
while ( (unsigned int)isspace((unsigned int)*(char *)(v3 + v5)) )
{
if ( v4 == ++v5 )
{
v5 = v4;
break;
}
}
}
v6 = v4;
if ( v5 < v4 )
v6 = v5;
while ( v4 > v5 )
{
v7 = (unsigned int)*(char *)(v3 + v4-- - 1);
if ( !(unsigned int)isspace(v7) )
{
v6 = v4 + 1;
break;
}
}
std::string::substr(a1, a2, v5, v6 - v5);
return a1;
}
| string_strip:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RBP,qword ptr [RSI]
MOV R13,qword ptr [RSI + 0x8]
XOR R15D,R15D
TEST R13,R13
JZ 0x001518e7
LAB_001518cd:
MOVSX EDI,byte ptr [RBP + R15*0x1]
CALL 0x001190c0
TEST EAX,EAX
JZ 0x001518e7
INC R15
CMP R13,R15
JNZ 0x001518cd
MOV R15,R13
LAB_001518e7:
CMP R15,R13
MOV R12,R13
CMOVC R12,R15
LAB_001518f1:
CMP R13,R15
JBE 0x0015190e
MOVSX EDI,byte ptr [RBP + R13*0x1 + -0x1]
DEC R13
CALL 0x001190c0
TEST EAX,EAX
JNZ 0x001518f1
INC R13
MOV R12,R13
LAB_0015190e:
SUB R12,R15
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,R12
CALL 0x00119720
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_strip(std::__cxx11::string const&) */
string * string_strip(string *param_1)
{
char *pcVar1;
long lVar2;
int iVar3;
long *in_RSI;
ulong uVar4;
ulong uVar5;
ulong uVar6;
lVar2 = *in_RSI;
uVar4 = in_RSI[1];
uVar5 = 0;
uVar6 = uVar5;
if (uVar4 != 0) {
do {
iVar3 = isspace((int)*(char *)(lVar2 + uVar5));
uVar6 = uVar5;
if (iVar3 == 0) break;
uVar5 = uVar5 + 1;
uVar6 = uVar4;
} while (uVar4 != uVar5);
}
do {
if (uVar4 <= uVar6) break;
pcVar1 = (char *)(lVar2 + -1 + uVar4);
uVar4 = uVar4 - 1;
iVar3 = isspace((int)*pcVar1);
} while (iVar3 != 0);
std::__cxx11::string::substr((ulong)param_1,(ulong)in_RSI);
return param_1;
}
| |
24,610 | ftxui::(anonymous namespace)::InputBase::Text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/input.cpp | Element Text(const std::string& input) {
if (!password()) {
return text(input);
}
std::string out;
out.reserve(10 + input.size() * 3 / 2);
for (size_t i = 0; i < input.size(); ++i) {
out += "•";
}
return text(out);
} | O2 | cpp | ftxui::(anonymous namespace)::InputBase::Text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x98(%rsi), %rdi
callq 0x263c8
cmpb $0x0, (%rax)
je 0x25ace
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
imulq $0x3, 0x8(%r14), %rsi
shrq %rsi
addq $0xa, %rsi
movq %rsp, %rdi
callq 0xc720
xorl %r13d, %r13d
leaq 0xee31(%rip), %r15 # 0x348e6
movq %rsp, %r12
cmpq 0x8(%r14), %r13
jae 0x25af0
movq %r12, %rdi
movq %r15, %rsi
callq 0xc860
incq %r13
jmp 0x25ab8
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xc610
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ff8c
leaq 0x40(%rsp), %rdi
jmp 0x25b17
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0xc610
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1ff8c
leaq 0x20(%rsp), %rdi
callq 0xc8c8
movq %rsp, %rdi
callq 0xc8c8
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xc8c8
jmp 0x25b4b
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x25b4e
jmp 0x25b48
movq %rax, %rbx
movq %rsp, %rdi
callq 0xc8c8
movq %rbx, %rdi
callq 0xc7f0
nop
| _ZN5ftxui12_GLOBAL__N_19InputBase4TextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 60h
mov r14, rdx
mov rbx, rdi
lea rdi, [rsi+98h]
call _ZN5ftxui3RefIbE7AddressEv; ftxui::Ref<bool>::Address(void)
cmp byte ptr [rax], 0
jz short loc_25ACE
lea rax, [rsp+88h+var_78]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
imul rsi, [r14+8], 3
shr rsi, 1
add rsi, 0Ah
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
xor r13d, r13d
lea r15, unk_348E6
mov r12, rsp
loc_25AB8:
cmp r13, [r14+8]
jnb short loc_25AF0
mov rdi, r12
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
inc r13
jmp short loc_25AB8
loc_25ACE:
lea r15, [rsp+88h+var_48]
mov rdi, r15
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov rdi, rbx
mov rsi, r15
call _ZN5ftxui4textENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; ftxui::text(std::string)
lea rdi, [rsp+88h+var_48]
jmp short loc_25B17
loc_25AF0:
lea rdi, [rsp+88h+var_68]
mov rsi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rsi, [rsp+88h+var_68]
mov rdi, rbx
call _ZN5ftxui4textENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; ftxui::text(std::string)
lea rdi, [rsp+88h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rsp; void *
loc_25B17:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 60h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_25B4B
mov rbx, rax
lea rdi, [rsp+arg_38]
jmp short loc_25B4E
jmp short $+2
loc_25B48:
mov rbx, rax
loc_25B4B:
mov rdi, rsp; void *
loc_25B4E:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| _OWORD * ftxui::`anonymous namespace'::InputBase::Text(_OWORD *a1, long long a2, long long a3)
{
unsigned long long i; // r13
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
_BYTE *v10; // rdi
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
_QWORD v16[2]; // [rsp+0h] [rbp-88h] BYREF
char v17; // [rsp+10h] [rbp-78h] BYREF
_BYTE v18[32]; // [rsp+20h] [rbp-68h] BYREF
_BYTE v19[72]; // [rsp+40h] [rbp-48h] BYREF
if ( *(_BYTE *)ftxui::Ref<bool>::Address(a2 + 152) )
{
v16[0] = &v17;
v16[1] = 0LL;
v17 = 0;
std::string::reserve(v16, ((unsigned long long)(3LL * *(_QWORD *)(a3 + 8)) >> 1) + 10);
for ( i = 0LL; i < *(_QWORD *)(a3 + 8); ++i )
std::string::append(v16, &unk_348E6);
std::string::basic_string(v18, v16);
ftxui::text(a1, (int)v18, v11, v12, v13, v14);
std::string::~string(v18);
v10 = v16;
}
else
{
std::string::basic_string(v19, a3);
ftxui::text(a1, (int)v19, v6, v7, v8, v9);
v10 = v19;
}
std::string::~string(v10);
return a1;
}
| Text:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x60
MOV R14,RDX
MOV RBX,RDI
LEA RDI,[RSI + 0x98]
CALL 0x001263c8
CMP byte ptr [RAX],0x0
JZ 0x00125ace
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
IMUL RSI,qword ptr [R14 + 0x8],0x3
SHR RSI,0x1
ADD RSI,0xa
LAB_00125aa3:
MOV RDI,RSP
CALL 0x0010c720
XOR R13D,R13D
LEA R15,[0x1348e6]
MOV R12,RSP
LAB_00125ab8:
CMP R13,qword ptr [R14 + 0x8]
JNC 0x00125af0
LAB_00125abe:
MOV RDI,R12
MOV RSI,R15
CALL 0x0010c860
LAB_00125ac9:
INC R13
JMP 0x00125ab8
LAB_00125ace:
LEA R15,[RSP + 0x40]
MOV RDI,R15
MOV RSI,R14
CALL 0x0010c610
LAB_00125ade:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011ff8c
LEA RDI,[RSP + 0x40]
JMP 0x00125b17
LAB_00125af0:
LEA RDI,[RSP + 0x20]
MOV RSI,RSP
CALL 0x0010c610
LAB_00125afd:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011ff8c
LAB_00125b0a:
LEA RDI,[RSP + 0x20]
CALL 0x0010c8c8
MOV RDI,RSP
LAB_00125b17:
CALL 0x0010c8c8
MOV RAX,RBX
ADD RSP,0x60
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* ftxui::(anonymous namespace)::InputBase::Text(std::__cxx11::string const&) */
string * ftxui::(anonymous_namespace)::InputBase::Text(string *param_1)
{
char *pcVar1;
string *in_RDX;
long in_RSI;
string *this;
ulong uVar2;
int1 *local_88;
int8 local_80;
int1 local_78 [16];
string local_68 [32];
string local_48 [32];
this = (string *)&local_88;
pcVar1 = (char *)Ref<bool>::Address((Ref<bool> *)(in_RSI + 0x98));
if (*pcVar1 == '\0') {
std::__cxx11::string::string(local_48,in_RDX);
/* try { // try from 00125ade to 00125ae8 has its CatchHandler @ 00125b3c */
text(param_1,local_48);
this = local_48;
}
else {
local_88 = local_78;
local_80 = 0;
local_78[0] = 0;
/* try { // try from 00125aa3 to 00125aaa has its CatchHandler @ 00125b46 */
std::__cxx11::string::reserve((ulong)&local_88);
for (uVar2 = 0; uVar2 < *(ulong *)(in_RDX + 8); uVar2 = uVar2 + 1) {
/* try { // try from 00125abe to 00125ac8 has its CatchHandler @ 00125b48 */
std::__cxx11::string::append((char *)&local_88);
}
/* try { // try from 00125af0 to 00125afc has its CatchHandler @ 00125b46 */
std::__cxx11::string::string(local_68,(string *)&local_88);
/* try { // try from 00125afd to 00125b09 has its CatchHandler @ 00125b2d */
text(param_1,local_68);
std::__cxx11::string::~string(local_68);
}
std::__cxx11::string::~string(this);
return param_1;
}
| |
24,611 | ma_crypt_post_write_hook | eloqsql/storage/maria/ma_crypt.c | static void ma_crypt_post_write_hook(int res,
PAGECACHE_IO_HOOK_ARGS *args)
{
if (args->crypt_buf != NULL)
{
uchar *tmp= args->page;
args->page= args->crypt_buf;
args->crypt_buf= NULL;
my_free(tmp);
}
maria_page_write_failure(res, args);
} | O0 | c | ma_crypt_post_write_hook:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x8b779
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x18(%rbp), %rdi
callq 0xfc3a0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x435d0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ma_crypt_post_write_hook:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jz short loc_8B779
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov rdi, [rbp+var_18]
call my_free
loc_8B779:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call maria_page_write_failure
add rsp, 20h
pop rbp
retn
| long long ma_crypt_post_write_hook(int a1, long long *a2)
{
long long v3; // [rsp+8h] [rbp-18h]
if ( a2[3] )
{
v3 = *a2;
*a2 = a2[3];
a2[3] = 0LL;
my_free(v3);
}
return maria_page_write_failure(a1, (long long)a2);
}
| ma_crypt_post_write_hook:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0018b779
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001fc3a0
LAB_0018b779:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001435d0
ADD RSP,0x20
POP RBP
RET
|
void ma_crypt_post_write_hook(int4 param_1,int8 *param_2)
{
int8 uVar1;
if (param_2[3] != 0) {
uVar1 = *param_2;
*param_2 = param_2[3];
param_2[3] = 0;
my_free(uVar1);
}
maria_page_write_failure(param_1,param_2);
return;
}
| |
24,612 | minja::Parser::parseParameters[abi:cxx11]() | monkey531[P]llama/common/minja.hpp | Expression::Parameters parseParameters() {
consumeSpaces();
if (consumeToken("(").empty()) throw std::runtime_error("Expected opening parenthesis in param list");
Expression::Parameters result;
while (it != end) {
if (!consumeToken(")").empty()) {
return result;
}
auto expr = parseExpression();
if (!expr) throw std::runtime_error("Expected expression in call args");
if (auto ident = dynamic_cast<VariableExpr*>(expr.get())) {
if (!consumeToken("=").empty()) {
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected expression in for named arg");
result.emplace_back(ident->get_name(), std::move(value));
} else {
result.emplace_back(ident->get_name(), nullptr);
}
} else {
result.emplace_back(std::string(), std::move(expr));
}
if (consumeToken(",").empty()) {
if (consumeToken(")").empty()) {
throw std::runtime_error("Expected closing parenthesis in call args");
}
return result;
}
}
throw std::runtime_error("Expected closing parenthesis in call args");
} | O2 | cpp | minja::Parser::parseParameters[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x6493c
leaq 0x5851a(%rip), %rsi # 0xbc7ea
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x29c20
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r12, %rsi
callq 0x6403e
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x24348
leaq 0x40(%rsp), %rdi
callq 0x24348
testq %rbx, %rbx
je 0x64626
movq 0x8(%rsp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x60(%rsp)
leaq 0x40(%rsp), %rbp
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r14
pushq $0x1
popq %rbx
movq 0x20(%r12), %rax
cmpq 0x18(%r12), %rax
je 0x64578
movq %rbp, %rdi
leaq 0x58149(%rip), %rsi # 0xbc4a3
movq %r15, %rdx
callq 0x29c20
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movl %ebx, %ecx
callq 0x6403e
movq 0x28(%rsp), %r13
movq %r14, %rdi
callq 0x24348
movq %rbp, %rdi
callq 0x24348
testq %r13, %r13
jne 0x64564
movq %r15, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0x6384c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x645aa
leaq 0x9bfce(%rip), %rsi # 0x100380
leaq 0x9c3ef(%rip), %rdx # 0x1007a8
xorl %ecx, %ecx
callq 0x23a80
testq %rax, %rax
je 0x6445b
movq %rax, %r13
movq %rbp, %rdi
leaq 0x53750(%rip), %rsi # 0xb7b26
leaq 0x7(%rsp), %rdx
callq 0x29c20
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movl %ebx, %ecx
callq 0x6403e
movq 0x28(%rsp), %r15
movq %r14, %rdi
callq 0x24348
movq %rbp, %rdi
callq 0x24348
testq %r15, %r15
je 0x64482
movq %rbp, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0x6384c
cmpq $0x0, 0x40(%rsp)
leaq 0x10(%rsp), %r15
je 0x645c6
addq $0x20, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x23cd0
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x6e776
movq %r14, %rdi
callq 0x24348
leaq 0x48(%rsp), %rdi
callq 0x2adb8
jmp 0x644b4
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x6e776
jmp 0x644ac
addq $0x20, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x23cd0
andq $0x0, 0x40(%rsp)
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x74f38
leaq 0x10(%rsp), %r15
movq %r14, %rdi
callq 0x24348
movq %rbp, %rdi
leaq 0x53a0c(%rip), %rsi # 0xb7eca
leaq 0x7(%rsp), %rdx
callq 0x29c20
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movl %ebx, %ecx
callq 0x6403e
movq 0x28(%rsp), %r13
movq %r14, %rdi
callq 0x24348
movq %rbp, %rdi
callq 0x24348
testq %r13, %r13
jne 0x64540
movq %rbp, %rdi
leaq 0x57fa7(%rip), %rsi # 0xbc4a3
leaq 0x7(%rsp), %rdx
callq 0x29c20
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movl %ebx, %ecx
callq 0x6403e
movq 0x28(%rsp), %r15
movq %r14, %rdi
callq 0x24348
movq %rbp, %rdi
callq 0x24348
movb $0x1, %al
movq %rax, 0x60(%rsp)
testq %r15, %r15
leaq 0x10(%rsp), %r15
je 0x645f6
leaq 0x18(%rsp), %rdi
callq 0x2adb8
testq %r13, %r13
jne 0x64340
testb $0x1, 0x60(%rsp)
jne 0x64564
movq 0x8(%rsp), %rdi
callq 0x64782
movq 0x8(%rsp), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x53cfe(%rip), %rsi # 0xb8288
movq %rax, %rdi
callq 0x23360
movq 0x9da4f(%rip), %rsi # 0x101fe8
movq 0x9d9a8(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
jmp 0x645f6
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x53c86(%rip), %rsi # 0xb8242
movq %rax, %rdi
callq 0x23360
jmp 0x64610
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x53c8b(%rip), %rsi # 0xb8263
movq %rax, %rdi
callq 0x23360
movq 0x9da01(%rip), %rsi # 0x101fe8
movq 0x9d95a(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x53c80(%rip), %rsi # 0xb8288
movq %rax, %rdi
callq 0x23360
movq 0x9d9d1(%rip), %rsi # 0x101fe8
movq 0x9d92a(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x5412a(%rip), %rsi # 0xb8762
movq %rax, %rdi
callq 0x23360
movq 0x9d9a1(%rip), %rsi # 0x101fe8
movq 0x9d8fa(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x64721
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x24348
jmp 0x64721
movq %rax, %rbx
jmp 0x64721
jmp 0x646c3
jmp 0x646b4
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x646b7
jmp 0x64697
jmp 0x646f6
jmp 0x646f6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x646ef
jmp 0x646e7
jmp 0x646f6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x24348
jmp 0x646b7
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x2adb8
jmp 0x646f9
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x646f9
jmp 0x64705
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x64717
jmp 0x646f6
jmp 0x646e7
jmp 0x646f6
jmp 0x64705
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x24348
jmp 0x646f9
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2adb8
jmp 0x64717
movq %rax, %rbx
jmp 0x64717
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x24348
movq 0x8(%rsp), %rdi
callq 0x64782
movq %rbx, %rdi
callq 0x240e0
| _ZN5minja6Parser15parseParametersB5cxx11Ev:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r12, rsi
mov [rsp+98h+var_90], rdi
push 1
pop rsi
mov rdi, r12
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
lea rsi, asc_BC7E5+5; "("
lea rdi, [rsp+98h+var_58]
lea rdx, [rsp+98h+lpsrc]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+98h+var_78]
lea rdx, [rsp+98h+var_58]
push 1
pop rcx
mov rsi, r12
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+98h+var_78]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+98h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_64626
mov rax, [rsp+98h+var_90]
and qword ptr [rax+10h], 0
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov [rsp+98h+var_38], 0
lea rbp, [rsp+98h+var_58]
lea r15, [rsp+98h+lpsrc]
lea r14, [rsp+98h+var_78]
push 1
pop rbx
loc_64340:
mov rax, [r12+20h]
cmp rax, [r12+18h]
jz loc_64578
mov rdi, rbp
lea rsi, a09401910201912+51h; ")"
mov rdx, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14
mov rsi, r12
mov rdx, rbp
mov ecx, ebx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r13, [rsp+98h+var_70]
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r13, r13
jnz loc_64564
mov rdi, r15; this
mov rsi, r12; bool
mov edx, ebx
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rdi, [rsp+98h+lpsrc]; lpsrc
test rdi, rdi
jz loc_645AA
lea rsi, _ZTIN5minja10ExpressionE; lpstype
lea rdx, _ZTIN5minja12VariableExprE; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz loc_6445B
mov r13, rax
mov rdi, rbp
lea rsi, asc_B7B25+1; "="
lea rdx, [rsp+98h+var_91]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14
mov rsi, r12
mov rdx, rbp
mov ecx, ebx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r15, [rsp+98h+var_70]
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15, r15
jz short loc_64482
mov rdi, rbp; this
mov rsi, r12; bool
mov edx, ebx
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
cmp [rsp+98h+var_58], 0
lea r15, [rsp+98h+lpsrc]
jz loc_645C6
add r13, 20h ; ' '
mov rdi, r14
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rsp+98h+var_90]
mov rsi, r14
mov rdx, rbp
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE12emplace_backIJS6_SA_EEERSB_DpOT_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(std::string,std::shared_ptr<minja::Expression> &&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+98h+var_50]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_644B4
loc_6445B:
lea rax, [rsp+98h+var_68]
mov [rsp+98h+var_78], rax
and [rsp+98h+var_70], 0
mov [rsp+98h+var_68], 0
mov rdi, [rsp+98h+var_90]
mov rsi, r14
mov rdx, r15
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE12emplace_backIJS6_SA_EEERSB_DpOT_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(std::string,std::shared_ptr<minja::Expression> &&)
jmp short loc_644AC
loc_64482:
add r13, 20h ; ' '
mov rdi, r14
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
and [rsp+98h+var_58], 0
mov rdi, [rsp+98h+var_90]
mov rsi, r14
mov rdx, rbp
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE12emplace_backIJS6_DnEEERSB_DpOT_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,decltype(nullptr)>(std::string,decltype(nullptr) &&)
lea r15, [rsp+98h+lpsrc]
loc_644AC:
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_644B4:
mov rdi, rbp
lea rsi, asc_B7ECA; ","
lea rdx, [rsp+98h+var_91]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14
mov rsi, r12
mov rdx, rbp
mov ecx, ebx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r13, [rsp+98h+var_70]
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r13, r13
jnz short loc_64540
mov rdi, rbp
lea rsi, a09401910201912+51h; ")"
lea rdx, [rsp+98h+var_91]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14
mov rsi, r12
mov rdx, rbp
mov ecx, ebx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r15, [rsp+98h+var_70]
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov al, 1
mov [rsp+98h+var_38], rax
test r15, r15
lea r15, [rsp+98h+lpsrc]
jz loc_645F6
loc_64540:
lea rdi, [rsp+98h+var_80]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
test r13, r13
jnz loc_64340
test byte ptr [rsp+98h+var_38], 1
jnz short loc_64564
mov rdi, [rsp+98h+var_90]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
loc_64564:
mov rax, [rsp+98h+var_90]
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_64578:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_645F6
loc_645AA:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_0; "Expected expression in call args"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_64610
loc_645C6:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_1; "Expected expression in for named arg"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_645F6:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_64610:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_64626:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedOpenin; "Expected opening parenthesis in param l"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_64721
mov rbx, rax
lea rdi, [rsp+98h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_64721
mov rbx, rax
jmp loc_64721
jmp short loc_646C3
jmp short loc_646B4
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_646B7
jmp short loc_64697
jmp short loc_646F6
jmp short loc_646F6
loc_64697:
mov rbx, rax
lea rdi, [rsp+98h+var_78]
jmp short loc_646EF
jmp short loc_646E7
jmp short loc_646F6
mov rbx, rax
lea rdi, [rsp+98h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_646B7
loc_646B4:
mov rbx, rax
loc_646B7:
lea rdi, [rsp+98h+var_50]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_646F9
loc_646C3:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_646F9
jmp short loc_64705
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_64717
jmp short loc_646F6
jmp short loc_646E7
jmp short loc_646F6
jmp short loc_64705
loc_646E7:
mov rbx, rax
lea rdi, [rsp+98h+var_58]; void *
loc_646EF:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_646F9
loc_646F6:
mov rbx, rax
loc_646F9:
lea rdi, [rsp+98h+var_80]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_64717
loc_64705:
mov rbx, rax
jmp short loc_64717
mov rbx, rax
lea rdi, [rsp+98h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_64717:
mov rdi, [rsp+98h+var_90]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
loc_64721:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Parser::parseParameters[abi:cxx11](long long a1, _QWORD *a2)
{
long long v2; // rbx
long long v3; // r13
char *v4; // rax
char *v5; // r13
long long v6; // r15
long long v7; // r13
long long v8; // r15
long long v9; // rax
std::runtime_error *v11; // r14
std::runtime_error *v12; // r14
std::runtime_error *v13; // r14
std::runtime_error *exception; // r14
void *lpsrc; // [rsp+10h] [rbp-88h] BYREF
long long v16; // [rsp+18h] [rbp-80h] BYREF
char *v17; // [rsp+20h] [rbp-78h] BYREF
long long v18; // [rsp+28h] [rbp-70h]
char v19; // [rsp+30h] [rbp-68h] BYREF
long long v20; // [rsp+40h] [rbp-58h] BYREF
long long v21[3]; // [rsp+48h] [rbp-50h] BYREF
long long v22; // [rsp+60h] [rbp-38h]
minja::Parser::consumeSpaces(a2, 1LL);
std::string::basic_string<std::allocator<char>>(&v20, (long long)"(");
minja::Parser::consumeToken(&v17, (long long)a2, &v20, 1u);
v2 = v18;
std::string::~string(&v17);
std::string::~string(&v20);
if ( !v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected opening parenthesis in param list");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
*(_QWORD *)(a1 + 16) = 0LL;
*(_OWORD *)a1 = 0LL;
v22 = 0LL;
do
{
if ( a2[4] == a2[3] )
{
v11 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v11, "Expected closing parenthesis in call args");
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string<std::allocator<char>>(&v20, (long long)")");
minja::Parser::consumeToken(&v17, (long long)a2, &v20, 1u);
v3 = v18;
std::string::~string(&v17);
std::string::~string(&v20);
if ( v3 )
return a1;
minja::Parser::parseExpression((minja::Parser *)&lpsrc, a2, 1);
if ( !lpsrc )
{
v12 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v12, "Expected expression in call args");
goto LABEL_23;
}
v4 = (char *)__dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'minja::Expression,
(const struct __class_type_info *)&`typeinfo for'minja::VariableExpr,
0LL);
if ( !v4 )
{
v17 = &v19;
v18 = 0LL;
v19 = 0;
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(
a1,
&v17,
&lpsrc);
LABEL_12:
std::string::~string(&v17);
goto LABEL_13;
}
v5 = v4;
std::string::basic_string<std::allocator<char>>(&v20, (long long)"=");
minja::Parser::consumeToken(&v17, (long long)a2, &v20, 1u);
v6 = v18;
std::string::~string(&v17);
std::string::~string(&v20);
if ( !v6 )
{
std::string::basic_string(&v17, v5 + 32);
v20 = 0LL;
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,decltype(nullptr)>(
a1,
&v17,
&v20);
goto LABEL_12;
}
minja::Parser::parseExpression((minja::Parser *)&v20, a2, 1);
if ( !v20 )
{
v13 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v13, "Expected expression in for named arg");
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string(&v17, v5 + 32);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(
a1,
&v17,
&v20);
std::string::~string(&v17);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v21);
LABEL_13:
std::string::basic_string<std::allocator<char>>(&v20, (long long)",");
minja::Parser::consumeToken(&v17, (long long)a2, &v20, 1u);
v7 = v18;
std::string::~string(&v17);
std::string::~string(&v20);
if ( !v7 )
{
std::string::basic_string<std::allocator<char>>(&v20, (long long)")");
minja::Parser::consumeToken(&v17, (long long)a2, &v20, 1u);
v8 = v18;
std::string::~string(&v17);
std::string::~string(&v20);
LOBYTE(v9) = 1;
v22 = v9;
if ( !v8 )
{
v12 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v12, "Expected closing parenthesis in call args");
LABEL_23:
__cxa_throw(
v12,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v16);
}
while ( v7 );
if ( (v22 & 1) == 0 )
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector(a1);
return a1;
}
| parseParameters[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R12,RSI
MOV qword ptr [RSP + 0x8],RDI
PUSH 0x1
POP RSI
MOV RDI,R12
CALL 0x0016493c
LAB_001642c9:
LEA RSI,[0x1bc7ea]
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x10]
CALL 0x00129c20
LAB_001642df:
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x40]
PUSH 0x1
POP RCX
MOV RSI,R12
CALL 0x0016403e
LEA RDI,[RSP + 0x20]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00124348
LEA RDI,[RSP + 0x40]
CALL 0x00124348
TEST RBX,RBX
JZ 0x00164626
MOV RAX,qword ptr [RSP + 0x8]
AND qword ptr [RAX + 0x10],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RSP + 0x60],0x0
LEA RBP,[RSP + 0x40]
LEA R15,[RSP + 0x10]
LEA R14,[RSP + 0x20]
PUSH 0x1
POP RBX
LAB_00164340:
MOV RAX,qword ptr [R12 + 0x20]
CMP RAX,qword ptr [R12 + 0x18]
JZ 0x00164578
LAB_00164350:
MOV RDI,RBP
LEA RSI,[0x1bc4a3]
MOV RDX,R15
CALL 0x00129c20
LAB_00164362:
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBP
MOV ECX,EBX
CALL 0x0016403e
MOV R13,qword ptr [RSP + 0x28]
MOV RDI,R14
CALL 0x00124348
MOV RDI,RBP
CALL 0x00124348
TEST R13,R13
JNZ 0x00164564
LAB_00164390:
MOV RDI,R15
MOV RSI,R12
MOV EDX,EBX
CALL 0x0016384c
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001645aa
LEA RSI,[0x200380]
LEA RDX,[0x2007a8]
XOR ECX,ECX
CALL 0x00123a80
TEST RAX,RAX
JZ 0x0016445b
LAB_001643c9:
MOV R13,RAX
MOV RDI,RBP
LEA RSI,[0x1b7b26]
LEA RDX,[RSP + 0x7]
CALL 0x00129c20
LAB_001643e0:
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBP
MOV ECX,EBX
CALL 0x0016403e
MOV R15,qword ptr [RSP + 0x28]
MOV RDI,R14
CALL 0x00124348
MOV RDI,RBP
CALL 0x00124348
TEST R15,R15
JZ 0x00164482
LAB_0016440a:
MOV RDI,RBP
MOV RSI,R12
MOV EDX,EBX
CALL 0x0016384c
CMP qword ptr [RSP + 0x40],0x0
LEA R15,[RSP + 0x10]
JZ 0x001645c6
ADD R13,0x20
LAB_0016442c:
MOV RDI,R14
MOV RSI,R13
CALL 0x00123cd0
LAB_00164437:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R14
MOV RDX,RBP
CALL 0x0016e776
MOV RDI,R14
CALL 0x00124348
LEA RDI,[RSP + 0x48]
CALL 0x0012adb8
JMP 0x001644b4
LAB_0016445b:
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],RAX
AND qword ptr [RSP + 0x28],0x0
MOV byte ptr [RSP + 0x30],0x0
LAB_00164470:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R14
MOV RDX,R15
CALL 0x0016e776
JMP 0x001644ac
LAB_00164482:
ADD R13,0x20
LAB_00164486:
MOV RDI,R14
MOV RSI,R13
CALL 0x00123cd0
AND qword ptr [RSP + 0x40],0x0
LAB_00164497:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R14
MOV RDX,RBP
CALL 0x00174f38
LEA R15,[RSP + 0x10]
LAB_001644ac:
MOV RDI,R14
CALL 0x00124348
LAB_001644b4:
MOV RDI,RBP
LEA RSI,[0x1b7eca]
LEA RDX,[RSP + 0x7]
CALL 0x00129c20
LAB_001644c8:
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBP
MOV ECX,EBX
CALL 0x0016403e
MOV R13,qword ptr [RSP + 0x28]
MOV RDI,R14
CALL 0x00124348
MOV RDI,RBP
CALL 0x00124348
TEST R13,R13
JNZ 0x00164540
LAB_001644f2:
MOV RDI,RBP
LEA RSI,[0x1bc4a3]
LEA RDX,[RSP + 0x7]
CALL 0x00129c20
LAB_00164506:
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBP
MOV ECX,EBX
CALL 0x0016403e
LAB_00164516:
MOV R15,qword ptr [RSP + 0x28]
MOV RDI,R14
CALL 0x00124348
MOV RDI,RBP
CALL 0x00124348
MOV AL,0x1
MOV qword ptr [RSP + 0x60],RAX
TEST R15,R15
LEA R15,[RSP + 0x10]
JZ 0x001645f6
LAB_00164540:
LEA RDI,[RSP + 0x18]
CALL 0x0012adb8
TEST R13,R13
JNZ 0x00164340
TEST byte ptr [RSP + 0x60],0x1
JNZ 0x00164564
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00164782
LAB_00164564:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00164578:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_00164583:
LEA RSI,[0x1b8288]
MOV RDI,RAX
CALL 0x00123360
LAB_00164592:
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
LAB_001645aa:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_001645b5:
LEA RSI,[0x1b8242]
MOV RDI,RAX
CALL 0x00123360
LAB_001645c4:
JMP 0x00164610
LAB_001645c6:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_001645d1:
LEA RSI,[0x1b8263]
MOV RDI,RAX
CALL 0x00123360
LAB_001645e0:
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
LAB_001645f6:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_00164601:
LEA RSI,[0x1b8288]
MOV RDI,RAX
CALL 0x00123360
LAB_00164610:
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
LAB_00164626:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_00164631:
LEA RSI,[0x1b8762]
MOV RDI,RAX
CALL 0x00123360
LAB_00164640:
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
|
/* minja::Parser::parseParameters[abi:cxx11]() */
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
* minja::Parser::parseParameters_abi_cxx11_(void)
{
long lVar1;
long lVar2;
int8 uVar3;
runtime_error *prVar4;
long in_RSI;
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
*in_RDI;
allocator local_91;
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
*local_90;
long local_88;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_80 [8];
int1 *local_78;
long local_70;
int1 local_68 [16];
long local_58;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_50 [24];
ulong local_38;
local_90 = in_RDI;
consumeSpaces();
/* try { // try from 001642c9 to 001642de has its CatchHandler @ 00164678 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_58,"(",(allocator *)&local_88)
;
/* try { // try from 001642df to 001642f3 has its CatchHandler @ 00164666 */
consumeToken(&local_78);
lVar2 = local_70;
std::__cxx11::string::~string((string *)&local_78);
std::__cxx11::string::~string((string *)&local_58);
if (lVar2 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00164631 to 0016463f has its CatchHandler @ 00164656 */
std::runtime_error::runtime_error(prVar4,"Expected opening parenthesis in param list");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
*(int8 *)(local_90 + 0x10) = 0;
*(int8 *)local_90 = 0;
*(int8 *)(local_90 + 8) = 0;
local_38 = 0;
do {
if (*(long *)(in_RSI + 0x20) == *(long *)(in_RSI + 0x18)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00164583 to 00164591 has its CatchHandler @ 001646d2 */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
/* try { // try from 00164592 to 001645a7 has its CatchHandler @ 001646d0 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
/* try { // try from 00164350 to 00164361 has its CatchHandler @ 00164705 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_58,")",(allocator *)&local_88);
/* try { // try from 00164362 to 00164371 has its CatchHandler @ 0016470a */
consumeToken((string *)&local_78);
lVar2 = local_70;
std::__cxx11::string::~string((string *)&local_78);
std::__cxx11::string::~string((string *)&local_58);
if (lVar2 != 0) {
return local_90;
}
/* try { // try from 00164390 to 0016439c has its CatchHandler @ 001646e5 */
parseExpression(SUB81((allocator *)&local_88,0));
if (local_88 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001645b5 to 001645c3 has its CatchHandler @ 001646c3 */
std::runtime_error::runtime_error(prVar4,"Expected expression in call args");
goto LAB_00164610;
}
lVar2 = __dynamic_cast(local_88,&Expression::typeinfo,&VariableExpr::typeinfo,0);
if (lVar2 == 0) {
local_78 = local_68;
local_70 = 0;
local_68[0] = 0;
/* try { // try from 00164470 to 0016447f has its CatchHandler @ 00164697 */
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::emplace_back<std::__cxx11::string,std::shared_ptr<minja::Expression>>
(local_90,(string *)&local_78,(allocator *)&local_88);
LAB_001644ac:
std::__cxx11::string::~string((string *)&local_78);
}
else {
/* try { // try from 001643c9 to 001643df has its CatchHandler @ 001646df */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_58,"=",&local_91);
/* try { // try from 001643e0 to 001643ef has its CatchHandler @ 001646e1 */
consumeToken((string *)&local_78);
lVar1 = local_70;
std::__cxx11::string::~string((string *)&local_78);
std::__cxx11::string::~string((string *)&local_58);
if (lVar1 == 0) {
/* try { // try from 00164486 to 00164490 has its CatchHandler @ 00164693 */
std::__cxx11::string::string((string *)&local_78,(string *)(lVar2 + 0x20));
local_58 = 0;
/* try { // try from 00164497 to 001644a6 has its CatchHandler @ 00164691 */
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::emplace_back<std::__cxx11::string,decltype(nullptr)>
(local_90,(string *)&local_78,(_func_decltype_nullptr **)&local_58);
goto LAB_001644ac;
}
/* try { // try from 0016440a to 00164416 has its CatchHandler @ 001646a3 */
parseExpression(SUB81((string *)&local_58,0));
if (local_58 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001645d1 to 001645df has its CatchHandler @ 00164684 */
std::runtime_error::runtime_error(prVar4,"Expected expression in for named arg");
/* try { // try from 001645e0 to 001645f5 has its CatchHandler @ 00164682 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
/* try { // try from 0016442c to 00164436 has its CatchHandler @ 001646b4 */
std::__cxx11::string::string((string *)&local_78,(string *)(lVar2 + 0x20));
/* try { // try from 00164437 to 00164446 has its CatchHandler @ 001646a5 */
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::emplace_back<std::__cxx11::string,std::shared_ptr<minja::Expression>>
(local_90,(string *)&local_78,(string *)&local_58);
std::__cxx11::string::~string((string *)&local_78);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_50);
}
/* try { // try from 001644b4 to 001644c7 has its CatchHandler @ 001646f6 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_58,",",&local_91);
/* try { // try from 001644c8 to 001644d7 has its CatchHandler @ 001646e7 */
consumeToken((string *)&local_78);
lVar2 = local_70;
std::__cxx11::string::~string((string *)&local_78);
std::__cxx11::string::~string((string *)&local_58);
if (lVar2 == 0) {
/* try { // try from 001644f2 to 00164505 has its CatchHandler @ 00164695 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_58,")",&local_91);
/* try { // try from 00164506 to 00164515 has its CatchHandler @ 001646a1 */
consumeToken((string *)&local_78);
lVar1 = local_70;
std::__cxx11::string::~string((string *)&local_78);
uVar3 = std::__cxx11::string::~string((string *)&local_58);
local_38 = CONCAT71((int7)((ulong)uVar3 >> 8),1);
if (lVar1 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00164601 to 0016460f has its CatchHandler @ 00164680 */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
LAB_00164610:
/* try { // try from 00164610 to 00164625 has its CatchHandler @ 001646e3 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_80);
if (lVar2 == 0) {
if ((local_38 & 1) == 0) {
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::~vector(local_90);
}
return local_90;
}
} while( true );
}
| |
24,613 | void memory_access::read_into_vector<unsigned int>(unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int>>&, bool) | msxemulator/build_O3/_deps/picotool-src/main.cpp | void read_into_vector(uint32_t addr, unsigned int count, vector<T> &v, bool zero_fill = false) {
vector<typename raw_type_mapping<T>::access_type> buffer(count);
if (count) read(addr, (uint8_t *)buffer.data(), count * sizeof(typename raw_type_mapping<T>::access_type), zero_fill);
v.clear();
v.reserve(count);
for(const auto &e : buffer) {
v.push_back(e);
}
} | O3 | cpp | void memory_access::read_into_vector<unsigned int>(unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int>>&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r15d
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %r13
movl %edx, %r14d
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0x60062
testl %ebp, %ebp
je 0x38fea
movq 0x10(%rsp), %rdx
shll $0x2, %ebp
movq (%r13), %rax
movzbl %r15b, %r8d
movq %r13, %rdi
movl %r12d, %esi
movl %ebp, %ecx
callq *0x8(%rax)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x38ff7
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5533c
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r15
cmpq %r15, %r14
je 0x39043
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3902a
movl (%r14), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x39035
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5c524
addq $0x4, %r14
cmpq %r15, %r14
jne 0x39011
movq 0x10(%rsp), %r14
testq %r14, %r14
je 0x39058
movq 0x20(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0xf470
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x39069
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x39083
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
movq %rbx, %rdi
callq 0xf7d0
nop
| _ZN13memory_access16read_into_vectorIjEEvjjRSt6vectorIT_SaIS2_EEb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15d, r8d
mov rbx, rcx
mov ebp, edx
mov r12d, esi
mov r13, rdi
mov r14d, edx
lea rdi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_49]
mov rsi, r14
call _ZNSt6vectorIjSaIjEEC2EmRKS0_; std::vector<uint>::vector(ulong,std::allocator<uint> const&)
test ebp, ebp
jz short loc_38FEA
mov rdx, [rsp+58h+var_48]
shl ebp, 2
mov rax, [r13+0]
movzx r8d, r15b
mov rdi, r13
mov esi, r12d
mov ecx, ebp
call qword ptr [rax+8]
loc_38FEA:
mov rax, [rbx]
cmp [rbx+8], rax
jz short loc_38FF7
mov [rbx+8], rax
loc_38FF7:
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorIjSaIjEE7reserveEm; std::vector<uint>::reserve(ulong)
mov r14, [rsp+58h+var_48]
mov r15, [rsp+58h+var_40]
cmp r14, r15
jz short loc_39043
loc_39011:
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_3902A
mov eax, [r14]
mov [rsi], eax
add rsi, 4
mov [rbx+8], rsi
jmp short loc_39035
loc_3902A:
mov rdi, rbx
mov rdx, r14
call _ZNSt6vectorIjSaIjEE17_M_realloc_insertIJRKjEEEvN9__gnu_cxx17__normal_iteratorIPjS1_EEDpOT_; std::vector<uint>::_M_realloc_insert<uint const&>(__gnu_cxx::__normal_iterator<uint *,std::vector<uint>>,uint const&)
loc_39035:
add r14, 4
cmp r14, r15
jnz short loc_39011
mov r14, [rsp+58h+var_48]
loc_39043:
test r14, r14
jz short loc_39058
mov rsi, [rsp+58h+var_38]
sub rsi, r14; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_39058:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_39069:
mov rbx, rax
mov rdi, [rsp+arg_8]; void *
test rdi, rdi
jz short loc_39083
mov rsi, [rsp+arg_18]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_39083:
mov rdi, rbx
call __Unwind_Resume
| void memory_access::read_into_vector<unsigned int>(
long long a1,
unsigned int a2,
unsigned int a3,
_QWORD *a4,
unsigned __int8 a5)
{
long long v8; // r14
_DWORD *v9; // r14
_DWORD *v10; // r15
_DWORD *v11; // rsi
char v12; // [rsp+Fh] [rbp-49h] BYREF
void *v13; // [rsp+10h] [rbp-48h] BYREF
_DWORD *v14; // [rsp+18h] [rbp-40h]
long long v15; // [rsp+20h] [rbp-38h]
v8 = a3;
std::vector<unsigned int>::vector(&v13, a3, &v12);
if ( a3 )
(*(void ( **)(long long, _QWORD, void *, _QWORD, _QWORD))(*(_QWORD *)a1 + 8LL))(a1, a2, v13, 4 * a3, a5);
if ( a4[1] != *a4 )
a4[1] = *a4;
std::vector<unsigned int>::reserve(a4, v8);
v9 = v13;
v10 = v14;
if ( v13 != v14 )
{
do
{
v11 = (_DWORD *)a4[1];
if ( v11 == (_DWORD *)a4[2] )
{
std::vector<unsigned int>::_M_realloc_insert<unsigned int const&>(a4, v11, v9);
}
else
{
*v11 = *v9;
a4[1] = v11 + 1;
}
++v9;
}
while ( v9 != v10 );
v9 = v13;
}
if ( v9 )
operator delete(v9, v15 - (_QWORD)v9);
}
| read_into_vector<unsigned_int>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15D,R8D
MOV RBX,RCX
MOV EBP,EDX
MOV R12D,ESI
MOV R13,RDI
MOV R14D,EDX
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
MOV RSI,R14
CALL 0x00160062
TEST EBP,EBP
JZ 0x00138fea
MOV RDX,qword ptr [RSP + 0x10]
SHL EBP,0x2
MOV RAX,qword ptr [R13]
LAB_00138fdb:
MOVZX R8D,R15B
MOV RDI,R13
MOV ESI,R12D
MOV ECX,EBP
CALL qword ptr [RAX + 0x8]
LAB_00138fea:
MOV RAX,qword ptr [RBX]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00138ff7
MOV qword ptr [RBX + 0x8],RAX
LAB_00138ff7:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015533c
MOV R14,qword ptr [RSP + 0x10]
MOV R15,qword ptr [RSP + 0x18]
CMP R14,R15
JZ 0x00139043
LAB_00139011:
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x0013902a
MOV EAX,dword ptr [R14]
MOV dword ptr [RSI],EAX
ADD RSI,0x4
MOV qword ptr [RBX + 0x8],RSI
JMP 0x00139035
LAB_0013902a:
MOV RDI,RBX
MOV RDX,R14
CALL 0x0015c524
LAB_00139035:
ADD R14,0x4
CMP R14,R15
JNZ 0x00139011
MOV R14,qword ptr [RSP + 0x10]
LAB_00139043:
TEST R14,R14
JZ 0x00139058
MOV RSI,qword ptr [RSP + 0x20]
SUB RSI,R14
MOV RDI,R14
CALL 0x0010f470
LAB_00139058:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* void memory_access::read_into_vector<unsigned int>(unsigned int, unsigned int,
std::vector<unsigned int, std::allocator<unsigned int> >&, bool) */
void __thiscall
memory_access::read_into_vector<unsigned_int>
(memory_access *this,uint param_1,uint param_2,vector *param_3,bool param_4)
{
int4 *puVar1;
int4 *puVar2;
int4 *local_48;
int4 *local_40;
long local_38;
std::vector<unsigned_int,std::allocator<unsigned_int>>::vector
((ulong)&local_48,(allocator *)(ulong)param_2);
if (param_2 != 0) {
/* try { // try from 00138fdb to 00139001 has its CatchHandler @ 00139067 */
(**(code **)(*(long *)this + 8))(this,param_1,local_48,param_2 << 2,param_4);
}
if (*(long *)(param_3 + 8) != *(long *)param_3) {
*(long *)(param_3 + 8) = *(long *)param_3;
}
std::vector<unsigned_int,std::allocator<unsigned_int>>::reserve
((vector<unsigned_int,std::allocator<unsigned_int>> *)param_3,(ulong)param_2);
for (puVar2 = local_48; puVar2 != local_40; puVar2 = puVar2 + 1) {
puVar1 = *(int4 **)(param_3 + 8);
if (puVar1 == *(int4 **)(param_3 + 0x10)) {
/* try { // try from 0013902a to 00139034 has its CatchHandler @ 00139069 */
std::vector<unsigned_int,std::allocator<unsigned_int>>::_M_realloc_insert<unsigned_int_const&>
((vector<unsigned_int,std::allocator<unsigned_int>> *)param_3,puVar1,puVar2);
}
else {
*puVar1 = *puVar2;
*(int4 **)(param_3 + 8) = puVar1 + 1;
}
}
if (local_48 != (int4 *)0x0) {
operator_delete(local_48,local_38 - (long)local_48);
}
return;
}
| |
24,614 | mysql_find_charset_nr | eloqsql/libmariadb/libmariadb/ma_charset.c | const MARIADB_CHARSET_INFO * mysql_find_charset_nr(unsigned int charsetnr)
{
const MARIADB_CHARSET_INFO * c = mariadb_compiled_charsets;
if (my_collation_id_is_uca1400(charsetnr))
charsetnr= my_uca1400_collation_id_uca400_compat(charsetnr);
do {
if (c->nr == charsetnr) {
return(c);
}
++c;
} while (c[0].nr != 0);
return(NULL);
} | O3 | c | mysql_find_charset_nr:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
andl $0xfffff800, %eax # imm = 0xFFFFF800
cmpl $0x800, %eax # imm = 0x800
jne 0x32eeb
movl %edi, %eax
andl $0xf8, %eax
leaq 0x1875a(%rip), %rcx # 0x4b600
cmpq $0x0, 0x8(%rcx,%rax,4)
je 0x32eeb
movl %edi, %edx
shrl $0x8, %edx
andl $0x7, %edx
cmpl $0x4, %edx
ja 0x32eeb
leaq (%rcx,%rax,4), %rax
leaq 0x9472(%rip), %rcx # 0x3c338
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movzwl 0x10(%rax), %edi
jmp 0x32eeb
movzwl 0x18(%rax), %edi
jmp 0x32eeb
movzwl 0x14(%rax), %edi
jmp 0x32eeb
movzwl 0x16(%rax), %edi
jmp 0x32eeb
movzwl 0x12(%rax), %edi
leaq 0x11d4e(%rip), %rax # 0x44c40
movl $0x1, %ecx
cmpl %edi, %ecx
je 0x32f08
movl 0x48(%rax), %ecx
addq $0x48, %rax
testl %ecx, %ecx
jne 0x32ef7
xorl %eax, %eax
popq %rbp
retq
| mysql_find_charset_nr:
push rbp
mov rbp, rsp
mov eax, edi
and eax, 0FFFFF800h
cmp eax, 800h
jnz short def_32ECD; jumptable 0000000000032ECD default case
mov eax, edi
and eax, 0F8h
lea rcx, my_uca1400_collation_definitions
cmp qword ptr [rcx+rax*4+8], 0
jz short def_32ECD; jumptable 0000000000032ECD default case
mov edx, edi
shr edx, 8
and edx, 7
cmp edx, 4; switch 5 cases
ja short def_32ECD; jumptable 0000000000032ECD default case
lea rax, [rcx+rax*4]
lea rcx, jpt_32ECD
movsxd rdx, ds:(jpt_32ECD - 3C338h)[rcx+rdx*4]
add rdx, rcx
jmp rdx; switch jump
loc_32ECF:
movzx edi, word ptr [rax+10h]; jumptable 0000000000032ECD case 0
jmp short def_32ECD; jumptable 0000000000032ECD default case
loc_32ED5:
movzx edi, word ptr [rax+18h]; jumptable 0000000000032ECD case 4
jmp short def_32ECD; jumptable 0000000000032ECD default case
loc_32EDB:
movzx edi, word ptr [rax+14h]; jumptable 0000000000032ECD case 2
jmp short def_32ECD; jumptable 0000000000032ECD default case
loc_32EE1:
movzx edi, word ptr [rax+16h]; jumptable 0000000000032ECD case 3
jmp short def_32ECD; jumptable 0000000000032ECD default case
loc_32EE7:
movzx edi, word ptr [rax+12h]; jumptable 0000000000032ECD case 1
def_32ECD:
lea rax, mariadb_compiled_charsets; jumptable 0000000000032ECD default case
mov ecx, 1
loc_32EF7:
cmp ecx, edi
jz short loc_32F08
mov ecx, [rax+48h]
add rax, 48h ; 'H'
test ecx, ecx
jnz short loc_32EF7
xor eax, eax
loc_32F08:
pop rbp
retn
| _DWORD * mysql_find_charset_nr(unsigned int a1)
{
long long v1; // rax
unsigned __int16 *v2; // rax
_DWORD *result; // rax
int v4; // ecx
if ( (a1 & 0xFFFFF800) == 0x800 )
{
v1 = (unsigned __int8)a1 & 0xF8;
if ( *(_UNKNOWN **)((char *)&my_uca1400_collation_definitions + 4 * v1 + 8) )
{
v2 = (unsigned __int16 *)&my_uca1400_collation_definitions + 2 * v1;
switch ( (a1 >> 8) & 7 )
{
case 0u:
a1 = v2[8];
break;
case 1u:
a1 = v2[9];
break;
case 2u:
a1 = v2[10];
break;
case 3u:
a1 = v2[11];
break;
case 4u:
a1 = v2[12];
break;
default:
break;
}
}
}
result = &mariadb_compiled_charsets;
v4 = 1;
while ( v4 != a1 )
{
v4 = result[18];
result += 18;
if ( !v4 )
return 0LL;
}
return result;
}
| mysql_find_charset_nr:
PUSH RBP
MOV RBP,RSP
MOV EAX,EDI
AND EAX,0xfffff800
CMP EAX,0x800
JNZ 0x00132eeb
MOV EAX,EDI
AND EAX,0xf8
LEA RCX,[0x14b600]
CMP qword ptr [RCX + RAX*0x4 + 0x8],0x0
JZ 0x00132eeb
MOV EDX,EDI
SHR EDX,0x8
AND EDX,0x7
CMP EDX,0x4
JA 0x00132eeb
LEA RAX,[RCX + RAX*0x4]
LEA RCX,[0x13c338]
MOVSXD RDX,dword ptr [RCX + RDX*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_0:
MOVZX EDI,word ptr [RAX + 0x10]
JMP 0x00132eeb
caseD_4:
MOVZX EDI,word ptr [RAX + 0x18]
JMP 0x00132eeb
caseD_2:
MOVZX EDI,word ptr [RAX + 0x14]
JMP 0x00132eeb
caseD_3:
MOVZX EDI,word ptr [RAX + 0x16]
JMP 0x00132eeb
caseD_1:
MOVZX EDI,word ptr [RAX + 0x12]
LAB_00132eeb:
LEA RAX,[0x144c40]
MOV ECX,0x1
LAB_00132ef7:
CMP ECX,EDI
JZ 0x00132f08
MOV ECX,dword ptr [RAX + 0x48]
ADD RAX,0x48
TEST ECX,ECX
JNZ 0x00132ef7
XOR EAX,EAX
LAB_00132f08:
POP RBP
RET
|
int4 * mysql_find_charset_nr(uint param_1)
{
long lVar1;
int4 *puVar2;
uint uVar3;
if ((((param_1 & 0xfffff800) == 0x800) &&
(*(long *)(my_uca1400_collation_definitions + (ulong)(param_1 & 0xf8) * 4 + 8) != 0)) &&
(uVar3 = param_1 >> 8 & 7, uVar3 < 5)) {
lVar1 = (ulong)(param_1 & 0xf8) * 4;
switch(uVar3) {
case 0:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x10);
break;
case 1:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x12);
break;
case 2:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x14);
break;
case 3:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x16);
break;
case 4:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x18);
}
}
puVar2 = &mariadb_compiled_charsets;
uVar3 = 1;
do {
if (uVar3 == param_1) {
return puVar2;
}
uVar3 = puVar2[0x12];
puVar2 = puVar2 + 0x12;
} while (uVar3 != 0);
return (int4 *)0x0;
}
| |
24,615 | void ImPlot::PlotBars<short>(char const*, short const*, int, double, double, int, int, int) | zkingston[P]unknot/build_O1/_deps/implot-src/implot_items.cpp | void PlotBars(const char* label_id, const T* values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
if (ImHasFlag(flags, ImPlotBarsFlags_Horizontal)) {
GetterXY<IndexerIdx<T>,IndexerLin> getter1(IndexerIdx<T>(values,count,offset,stride),IndexerLin(1.0,shift),count);
GetterXY<IndexerConst,IndexerLin> getter2(IndexerConst(0),IndexerLin(1.0,shift),count);
PlotBarsHEx(label_id, getter1, getter2, bar_size, flags);
}
else {
GetterXY<IndexerLin,IndexerIdx<T>> getter1(IndexerLin(1.0,shift),IndexerIdx<T>(values,count,offset,stride),count);
GetterXY<IndexerLin,IndexerConst> getter2(IndexerLin(1.0,shift),IndexerConst(0),count);
PlotBarsVEx(label_id, getter1, getter2, bar_size, flags);
}
} | O1 | cpp | void ImPlot::PlotBars<short>(char const*, short const*, int, double, double, int, int, int):
subq $0x98, %rsp
movl %r8d, %eax
movl %edx, %r8d
btl $0xa, %ecx
jb 0xd74e2
testl %r8d, %r8d
je 0xd74f5
cltd
idivl %r8d
leal (%rdx,%r8), %eax
cltd
idivl %r8d
jmp 0xd74f7
testl %r8d, %r8d
je 0xd7559
cltd
idivl %r8d
leal (%rdx,%r8), %eax
cltd
idivl %r8d
jmp 0xd755b
xorl %edx, %edx
movabsq $0x3ff0000000000000, %r10 # imm = 0x3FF0000000000000
leaq 0x40(%rsp), %rax
movq %r10, (%rax)
movsd %xmm1, 0x8(%rax)
movq %rsi, 0x10(%rax)
movl %r8d, 0x18(%rax)
movl %edx, 0x1c(%rax)
movl %r9d, 0x20(%rax)
movl %r8d, 0x28(%rax)
movq %r10, 0x20(%rsp)
movsd %xmm1, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movl %r8d, 0x38(%rsp)
movups 0x20(%rsp), %xmm1
movups 0x30(%rsp), %xmm2
movups %xmm2, 0x10(%rsp)
movups %xmm1, (%rsp)
movq %rax, %rsi
movl %ecx, %edx
callq 0xd76b9
jmp 0xd75a8
xorl %edx, %edx
leaq 0x40(%rsp), %rax
movq %rsi, (%rax)
movl %r8d, 0x8(%rax)
movl %edx, 0xc(%rax)
movl %r9d, 0x10(%rax)
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movq %rdx, 0x18(%rax)
movsd %xmm1, 0x20(%rax)
movl %r8d, 0x28(%rax)
xorps %xmm2, %xmm2
movhps 0x1b7ae9(%rip), %xmm2 # xmm2 = xmm2[0,1],mem[0,1]
leaq 0x70(%rsp), %rdx
movaps %xmm2, (%rdx)
movsd %xmm1, 0x10(%rdx)
movl %r8d, 0x18(%rdx)
movq %rax, %rsi
callq 0xd75b0
addq $0x98, %rsp
retq
| _ZN6ImPlot8PlotBarsIiEEvPKcPKT_iddiii:
sub rsp, 98h
mov eax, r8d
mov r8d, edx
bt ecx, 0Ah
jb short loc_D74E2
test r8d, r8d
jz short loc_D74F5
cdq
idiv r8d
lea eax, [rdx+r8]
cdq
idiv r8d
jmp short loc_D74F7
loc_D74E2:
test r8d, r8d
jz short loc_D7559
cdq
idiv r8d
lea eax, [rdx+r8]
cdq
idiv r8d
jmp short loc_D755B
loc_D74F5:
xor edx, edx
loc_D74F7:
mov r10, 3FF0000000000000h
lea rax, [rsp+98h+var_58]
mov [rax], r10
movsd qword ptr [rax+8], xmm1
mov [rax+10h], rsi
mov [rax+18h], r8d
mov [rax+1Ch], edx
mov [rax+20h], r9d
mov [rax+28h], r8d
mov qword ptr [rsp+98h+var_78], r10
movsd qword ptr [rsp+98h+var_78+8], xmm1
mov qword ptr [rsp+98h+var_68], 0
mov dword ptr [rsp+98h+var_68+8], r8d
movups xmm1, [rsp+98h+var_78]
movups xmm2, [rsp+98h+var_68]
movups [rsp+98h+var_88], xmm2
movups [rsp+98h+var_98], xmm1
mov rsi, rax
mov edx, ecx
call _ZN6ImPlot11PlotBarsVExINS_8GetterXYINS_10IndexerLinENS_10IndexerIdxIiEEEENS1_IS2_NS_12IndexerConstEEEEEvPKcRKT_T0_di; ImPlot::PlotBarsVEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<int>>,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerConst>>(char const*,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<int>> const&,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerConst>,double,int)
jmp short loc_D75A8
loc_D7559:
xor edx, edx
loc_D755B:
lea rax, [rsp+98h+var_58]
mov [rax], rsi
mov [rax+8], r8d
mov [rax+0Ch], edx
mov [rax+10h], r9d
mov rdx, 3FF0000000000000h
mov [rax+18h], rdx
movsd qword ptr [rax+20h], xmm1
mov [rax+28h], r8d
xorps xmm2, xmm2
movhps xmm2, cs:qword_28F078
lea rdx, [rsp+98h+var_28]
movaps xmmword ptr [rdx], xmm2
movsd qword ptr [rdx+10h], xmm1
mov [rdx+18h], r8d
mov rsi, rax
call _ZN6ImPlot11PlotBarsHExINS_8GetterXYINS_10IndexerIdxIiEENS_10IndexerLinEEENS1_INS_12IndexerConstES4_EEEEvPKcRKT_RKT0_di; ImPlot::PlotBarsHEx<ImPlot::GetterXY<ImPlot::IndexerIdx<int>,ImPlot::IndexerLin>,ImPlot::GetterXY<ImPlot::IndexerConst,ImPlot::IndexerLin>>(char const*,ImPlot::GetterXY<ImPlot::IndexerIdx<int>,ImPlot::IndexerLin> const&,ImPlot::GetterXY<ImPlot::IndexerConst,ImPlot::IndexerLin> const&,double,int)
loc_D75A8:
add rsp, 98h
retn
| long long ImPlot::PlotBars<int>(
long long a1,
long long a2,
signed int a3,
long long a4,
int a5,
long long a6,
double a7,
double a8)
{
long long v9; // r8
int v10; // edx
int v11; // edx
long long v13; // [rsp+40h] [rbp-58h] BYREF
unsigned long long v14; // [rsp+48h] [rbp-50h]
long long v15; // [rsp+50h] [rbp-48h]
unsigned long long v16; // [rsp+58h] [rbp-40h]
double v17; // [rsp+60h] [rbp-38h]
int v18; // [rsp+68h] [rbp-30h]
__m128 v19; // [rsp+70h] [rbp-28h]
double v20; // [rsp+80h] [rbp-18h]
int v21; // [rsp+88h] [rbp-10h]
v9 = (unsigned int)a3;
if ( (a4 & 0x400) != 0 )
{
if ( a3 )
v11 = (a5 % a3 + a3) % a3;
else
v11 = 0;
v13 = a2;
v14 = __PAIR64__(v11, v9);
LODWORD(v15) = a6;
v16 = 0x3FF0000000000000LL;
v17 = a8;
v18 = v9;
v19 = _mm_loadh_ps((const double *)&qword_28F078);
v20 = a8;
v21 = v9;
return ImPlot::PlotBarsHEx<ImPlot::GetterXY<ImPlot::IndexerIdx<int>,ImPlot::IndexerLin>,ImPlot::GetterXY<ImPlot::IndexerConst,ImPlot::IndexerLin>>(
a1,
&v13);
}
else
{
if ( a3 )
v10 = (a5 % a3 + a3) % a3;
else
v10 = 0;
v13 = 0x3FF0000000000000LL;
v14 = *(_QWORD *)&a8;
v15 = a2;
v16 = __PAIR64__(v10, v9);
LODWORD(v17) = a6;
v18 = v9;
return ((long long ( *)(long long, long long *, _QWORD, long long, long long, long long, long long, _QWORD, _QWORD, _DWORD, long long, _QWORD, _QWORD, _DWORD))ImPlot::PlotBarsVEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<int>>,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerConst>>)(
a1,
&v13,
(unsigned int)a4,
a4,
v9,
a6,
0x3FF0000000000000LL,
*(_QWORD *)&a8,
0LL,
v9,
0x3FF0000000000000LL,
*(_QWORD *)&a8,
0LL,
v9);
}
}
| PlotBars<int>:
SUB RSP,0x98
MOV EAX,R8D
MOV R8D,EDX
BT ECX,0xa
JC 0x001d74e2
TEST R8D,R8D
JZ 0x001d74f5
CDQ
IDIV R8D
LEA EAX,[RDX + R8*0x1]
CDQ
IDIV R8D
JMP 0x001d74f7
LAB_001d74e2:
TEST R8D,R8D
JZ 0x001d7559
CDQ
IDIV R8D
LEA EAX,[RDX + R8*0x1]
CDQ
IDIV R8D
JMP 0x001d755b
LAB_001d74f5:
XOR EDX,EDX
LAB_001d74f7:
MOV R10,0x3ff0000000000000
LEA RAX,[RSP + 0x40]
MOV qword ptr [RAX],R10
MOVSD qword ptr [RAX + 0x8],XMM1
MOV qword ptr [RAX + 0x10],RSI
MOV dword ptr [RAX + 0x18],R8D
MOV dword ptr [RAX + 0x1c],EDX
MOV dword ptr [RAX + 0x20],R9D
MOV dword ptr [RAX + 0x28],R8D
MOV qword ptr [RSP + 0x20],R10
MOVSD qword ptr [RSP + 0x28],XMM1
MOV qword ptr [RSP + 0x30],0x0
MOV dword ptr [RSP + 0x38],R8D
MOVUPS XMM1,xmmword ptr [RSP + 0x20]
MOVUPS XMM2,xmmword ptr [RSP + 0x30]
MOVUPS xmmword ptr [RSP + 0x10],XMM2
MOVUPS xmmword ptr [RSP],XMM1
MOV RSI,RAX
MOV EDX,ECX
CALL 0x001d76b9
JMP 0x001d75a8
LAB_001d7559:
XOR EDX,EDX
LAB_001d755b:
LEA RAX,[RSP + 0x40]
MOV qword ptr [RAX],RSI
MOV dword ptr [RAX + 0x8],R8D
MOV dword ptr [RAX + 0xc],EDX
MOV dword ptr [RAX + 0x10],R9D
MOV RDX,0x3ff0000000000000
MOV qword ptr [RAX + 0x18],RDX
MOVSD qword ptr [RAX + 0x20],XMM1
MOV dword ptr [RAX + 0x28],R8D
XORPS XMM2,XMM2
MOVHPS XMM2,qword ptr [0x0038f078]
LEA RDX,[RSP + 0x70]
MOVAPS xmmword ptr [RDX],XMM2
MOVSD qword ptr [RDX + 0x10],XMM1
MOV dword ptr [RDX + 0x18],R8D
MOV RSI,RAX
CALL 0x001d75b0
LAB_001d75a8:
ADD RSP,0x98
RET
|
/* void ImPlot::PlotBars<int>(char const*, int const*, int, double, double, int, int, int) */
void ImPlot::PlotBars<int>
(char *param_1,int *param_2,int param_3,double param_4,double param_5,int param_6,
int param_7,int param_8)
{
int iVar1;
int *local_58;
int8 local_50;
int *local_48;
int8 local_40;
double local_38;
int local_30;
int8 local_28;
int8 uStack_20;
double local_18;
int local_10;
local_30 = param_3;
if (((uint)param_6 >> 10 & 1) == 0) {
if (param_3 == 0) {
iVar1 = 0;
}
else {
iVar1 = (param_7 % param_3 + param_3) % param_3;
}
local_58 = (int *)0x3ff0000000000000;
local_40 = CONCAT44(iVar1,param_3);
local_38 = (double)CONCAT44(local_38._4_4_,param_8);
local_50 = param_5;
local_48 = param_2;
PlotBarsVEx<ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerIdx<int>>,ImPlot::GetterXY<ImPlot::IndexerLin,ImPlot::IndexerConst>>
(param_1,&local_58,param_6);
}
else {
if (param_3 == 0) {
iVar1 = 0;
}
else {
iVar1 = (param_7 % param_3 + param_3) % param_3;
}
local_50 = (double)CONCAT44(iVar1,param_3);
local_48 = (int *)CONCAT44(local_48._4_4_,param_8);
local_40 = 0x3ff0000000000000;
local_28 = 0;
uStack_20 = DAT_0038f078;
local_58 = param_2;
local_38 = param_5;
local_18 = param_5;
local_10 = param_3;
PlotBarsHEx<ImPlot::GetterXY<ImPlot::IndexerIdx<int>,ImPlot::IndexerLin>,ImPlot::GetterXY<ImPlot::IndexerConst,ImPlot::IndexerLin>>
(param_1,(GetterXY *)&local_58,(GetterXY *)&local_28,param_4,param_6);
}
return;
}
| |
24,616 | unpack_filename | eloqsql/mysys/mf_pack.c | size_t unpack_filename(char * to, const char *from)
{
size_t length, n_length, buff_length;
char buff[FN_REFLEN + 1];
DBUG_ENTER("unpack_filename");
length=dirname_part(buff, from, &buff_length);/* copy & convert dirname */
n_length=unpack_dirname(buff,buff);
if (n_length+strlen(from+length) < FN_REFLEN)
{
(void) strmov(buff+n_length,from+length);
length= system_filename(to,buff); /* Fix to usably filename */
}
else
length= system_filename(to,from); /* Fix to usably filename */
DBUG_RETURN(length);
} | O3 | c | unpack_filename:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x230(%rbp), %r12
leaq -0x238(%rbp), %rdx
movq %r12, %rdi
callq 0x2e9c9
movq %rax, %r15
movq %r12, %rdi
movq %r12, %rsi
callq 0x2f3e6
movq %rax, %r12
addq %r14, %r15
movq %r15, %rdi
callq 0x24130
addq %r12, %rax
cmpq $0x1ff, %rax # imm = 0x1FF
ja 0x2f608
leaq (%r12,%rbp), %rdi
addq $-0x230, %rdi # imm = 0xFDD0
movq %r15, %rsi
callq 0x242a0
leaq -0x230(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
jmp 0x2f613
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5f400
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x2f63a
subq %rbx, %rax
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x24380
nop
| unpack_filename:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 220h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea r12, [rbp+var_230]
lea rdx, [rbp+var_238]
mov rdi, r12
call dirname_part
mov r15, rax
mov rdi, r12
mov rsi, r12
call unpack_dirname
mov r12, rax
add r15, r14
mov rdi, r15
call _strlen
add rax, r12
cmp rax, 1FFh
ja short loc_2F608
lea rdi, [r12+rbp]
add rdi, 0FFFFFFFFFFFFFDD0h
mov rsi, r15
call _strcpy
lea rsi, [rbp+var_230]
mov edx, 1FFh
mov rdi, rbx
jmp short loc_2F613
loc_2F608:
mov edx, 1FFh
mov rdi, rbx
mov rsi, r14
loc_2F613:
call strmake
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_2F63A
sub rax, rbx
add rsp, 220h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2F63A:
call ___stack_chk_fail
| long long unpack_filename(long long a1, _BYTE *a2)
{
long long v2; // r15
long long v3; // r12
_BYTE *v4; // r15
long long v6; // [rsp+8h] [rbp-238h] BYREF
_BYTE v7[520]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v8; // [rsp+218h] [rbp-28h]
v8 = __readfsqword(0x28u);
v2 = dirname_part((long long)v7, a2, &v6);
v3 = unpack_dirname((long long)v7, v7);
v4 = &a2[v2];
if ( (unsigned long long)(v3 + strlen(v4)) <= 0x1FF )
{
strcpy(&v7[v3], v4);
a2 = v7;
}
return strmake(a1, a2, 511LL) - a1;
}
| unpack_filename:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x220
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA R12,[RBP + -0x230]
LEA RDX,[RBP + -0x238]
MOV RDI,R12
CALL 0x0012e9c9
MOV R15,RAX
MOV RDI,R12
MOV RSI,R12
CALL 0x0012f3e6
MOV R12,RAX
ADD R15,R14
MOV RDI,R15
CALL 0x00124130
ADD RAX,R12
CMP RAX,0x1ff
JA 0x0012f608
LEA RDI,[R12 + RBP*0x1]
ADD RDI,-0x230
MOV RSI,R15
CALL 0x001242a0
LEA RSI,[RBP + -0x230]
MOV EDX,0x1ff
MOV RDI,RBX
JMP 0x0012f613
LAB_0012f608:
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,R14
LAB_0012f613:
CALL 0x0015f400
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x0012f63a
SUB RAX,RBX
ADD RSP,0x220
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012f63a:
CALL 0x00124380
|
long unpack_filename(long param_1,char *param_2)
{
long lVar1;
long lVar2;
size_t sVar3;
long in_FS_OFFSET;
int1 local_240 [8];
char local_238 [520];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = dirname_part(local_238,param_2,local_240);
lVar2 = unpack_dirname(local_238,local_238);
sVar3 = strlen(param_2 + lVar1);
if (sVar3 + lVar2 < 0x200) {
strcpy(local_238 + lVar2,param_2 + lVar1);
param_2 = local_238;
}
lVar1 = strmake(param_1,param_2,0x1ff);
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar1 - param_1;
}
| |
24,617 | blst_fp_from_uint64 | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/exports.c | void blst_fp_from_uint64(vec384 ret, const unsigned long long a[6])
{
const union {
long one;
char little;
} is_endian = { 1 };
if (sizeof(limb_t) == 4 && !is_endian.little) {
int i;
for (i = 0; i < 6; i++) {
unsigned long long limb = a[i];
ret[2*i] = (limb_t)limb;
ret[2*i+1] = (limb_t)(limb >> 32);
}
a = (const unsigned long long *)ret;
}
mul_fp(ret, (const limb_t *)a, BLS12_381_RR);
} | O3 | c | blst_fp_from_uint64:
pushq %rbp
movq %rsp, %rbp
leaq 0x27476(%rip), %rdx # 0x8ab90
leaq 0x271ef(%rip), %rcx # 0x8a910
movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD
popq %rbp
jmp 0x72e60
| blst_fp_from_uint64:
push rbp
mov rbp, rsp
lea rdx, BLS12_381_RR
lea rcx, BLS12_381_P
mov r8, 89F3FFFCFFFCFFFDh
pop rbp
jmp mul_mont_384
| long long blst_fp_from_uint64(long long a1, long long a2)
{
return mul_mont_384(a1, a2, &BLS12_381_RR, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
}
| blst_fp_from_uint64:
PUSH RBP
MOV RBP,RSP
LEA RDX,[0x18ab90]
LEA RCX,[0x18a910]
MOV R8,-0x760c000300030003
POP RBP
JMP 0x00172e60
|
void blst_fp_from_uint64(int8 param_1,int8 param_2)
{
mul_mont_384(param_1,param_2,BLS12_381_RR,BLS12_381_P,0x89f3fffcfffcfffd);
return;
}
| |
24,618 | translog_write_record | eloqsql/storage/maria/ma_loghandler.c | my_bool translog_write_record(LSN *lsn,
enum translog_record_type type,
TRN *trn, MARIA_HA *tbl_info,
translog_size_t rec_len,
uint part_no,
LEX_CUSTRING *parts_data,
uchar *store_share_id,
void *hook_arg)
{
struct st_translog_parts parts;
LEX_CUSTRING *part;
int rc;
uint short_trid= trn->short_id;
DBUG_ENTER("translog_write_record");
DBUG_PRINT("enter", ("type: %u (%s) ShortTrID: %u rec_len: %lu",
(uint) type, log_record_type_descriptor[type].name,
(uint) short_trid, (ulong) rec_len));
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
DBUG_ASSERT(type != 0);
DBUG_SLOW_ASSERT((uint)type <= max_allowed_translog_type);
if (unlikely(translog_status != TRANSLOG_OK))
{
DBUG_PRINT("error", ("Transaction log is write protected"));
DBUG_RETURN(1);
}
if (tbl_info && type != LOGREC_FILE_ID)
{
MARIA_SHARE *share= tbl_info->s;
DBUG_ASSERT(share->now_transactional);
if (unlikely(share->id == 0))
{
/*
First log write for this MARIA_SHARE; give it a short id.
When the lock manager is enabled and needs a short id, it should be
assigned in the lock manager (because row locks will be taken before
log records are written; for example SELECT FOR UPDATE takes locks but
writes no log record.
*/
if (unlikely(translog_assign_id_to_share(tbl_info, trn)))
DBUG_RETURN(1);
}
fileid_store(store_share_id, share->id);
}
if (unlikely(!(trn->first_undo_lsn & TRANSACTION_LOGGED_LONG_ID)))
{
LSN dummy_lsn;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1];
uchar log_data[6];
DBUG_ASSERT(trn->undo_lsn == LSN_IMPOSSIBLE);
int6store(log_data, trn->trid);
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data);
trn->first_undo_lsn|= TRANSACTION_LOGGED_LONG_ID; /* no recursion */
if (unlikely(translog_write_record(&dummy_lsn, LOGREC_LONG_TRANSACTION_ID,
trn, NULL, sizeof(log_data),
sizeof(log_array)/sizeof(log_array[0]),
log_array, NULL, NULL)))
DBUG_RETURN(1);
}
parts.parts= parts_data;
/* count parts if they are not counted by upper level */
if (part_no == 0)
{
for (part_no= TRANSLOG_INTERNAL_PARTS;
parts_data[part_no].length != 0;
part_no++);
}
parts.elements= part_no;
parts.current= TRANSLOG_INTERNAL_PARTS;
/* clear TRANSLOG_INTERNAL_PARTS */
compile_time_assert(TRANSLOG_INTERNAL_PARTS != 0);
parts_data[0].str= 0;
parts_data[0].length= 0;
/* count length of the record */
if (rec_len == 0)
{
for(part= parts_data + TRANSLOG_INTERNAL_PARTS;\
part < parts_data + part_no;
part++)
{
rec_len+= (translog_size_t) part->length;
}
}
parts.record_length= rec_len;
#ifndef DBUG_OFF
{
uint i;
size_t len= 0;
#ifdef HAVE_valgrind
ha_checksum checksum= 0;
#endif
for (i= TRANSLOG_INTERNAL_PARTS; i < part_no; i++)
{
#ifdef HAVE_valgrind
/* Find unitialized bytes early */
checksum+= my_checksum(checksum, parts_data[i].str,
parts_data[i].length);
#endif
len+= parts_data[i].length;
}
DBUG_ASSERT(len == rec_len);
}
#endif
/*
Start total_record_length from record_length then overhead will
be add
*/
parts.total_record_length= parts.record_length;
DBUG_PRINT("info", ("record length: %lu", (ulong) parts.record_length));
/* process this parts */
if (!(rc= (log_record_type_descriptor[type].prewrite_hook &&
(*log_record_type_descriptor[type].prewrite_hook)(type, trn,
tbl_info,
hook_arg))))
{
switch (log_record_type_descriptor[type].rclass) {
case LOGRECTYPE_VARIABLE_LENGTH:
rc= translog_write_variable_record(lsn, type, tbl_info,
short_trid, &parts, trn, hook_arg);
break;
case LOGRECTYPE_PSEUDOFIXEDLENGTH:
case LOGRECTYPE_FIXEDLENGTH:
rc= translog_write_fixed_record(lsn, type, tbl_info,
short_trid, &parts, trn, hook_arg);
break;
case LOGRECTYPE_NOT_ALLOWED:
default:
DBUG_ASSERT(0);
rc= 1;
}
}
DBUG_PRINT("info", ("LSN: " LSN_FMT, LSN_IN_PARTS(*lsn)));
DBUG_RETURN(rc);
} | O0 | c | translog_write_record:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movl %esi, -0x1c(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl %r8d, -0x34(%rbp)
movl %r9d, -0x38(%rbp)
movq -0x28(%rbp), %rax
movzwl 0xac(%rax), %eax
movl %eax, -0x60(%rbp)
jmp 0x3030b
jmp 0x3030d
jmp 0x3030f
jmp 0x30311
jmp 0x30313
jmp 0x30315
jmp 0x30317
cmpl $0x1, 0x44e862(%rip) # 0x47eb80
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x30348
jmp 0x3033b
jmp 0x3033d
jmp 0x3033f
movb $0x1, -0xf(%rbp)
jmp 0x306c7
cmpq $0x0, -0x30(%rbp)
je 0x303de
cmpl $0x23, -0x1c(%rbp)
je 0x303de
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x3036a
movq -0x68(%rbp), %rax
movzwl 0x620(%rax), %eax
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x303c0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x30700
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x303be
jmp 0x303b5
movb $0x1, -0xf(%rbp)
jmp 0x306c7
jmp 0x303c0
jmp 0x303c2
movq 0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
movw 0x620(%rax), %cx
movq -0x70(%rbp), %rax
movw %cx, (%rax)
jmp 0x303de
movq -0x28(%rbp), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
andq 0xa0(%rcx), %rax
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x304e8
jmp 0x3041a
jmp 0x3041c
jmp 0x3041e
leaq -0xe(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rax
movq 0x78(%rax), %rax
movl %eax, %ecx
movq -0xb8(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movq 0x78(%rax), %rax
shrq $0x20, %rax
movw %ax, %cx
movq -0xb8(%rbp), %rax
movw %cx, 0x4(%rax)
leaq -0xe(%rbp), %rax
movq %rax, -0x90(%rbp)
movq $0x6, -0x88(%rbp)
movq -0x28(%rbp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq 0xa0(%rax), %rcx
movq %rcx, 0xa0(%rax)
movq -0x28(%rbp), %rdx
leaq -0xb0(%rbp), %rax
leaq -0x78(%rbp), %rdi
movl $0x24, %esi
xorl %ecx, %ecx
movl $0x6, %r8d
movl $0x3, %r9d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x302c0
movsbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x304e6
jmp 0x304dd
movb $0x1, -0xf(%rbp)
jmp 0x306c7
jmp 0x304e8
movq 0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x38(%rbp)
jne 0x30521
movl $0x2, -0x38(%rbp)
movq 0x10(%rbp), %rax
movl -0x38(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
je 0x3051f
jmp 0x30514
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x304fd
jmp 0x30521
movl -0x38(%rbp), %eax
movl %eax, -0x44(%rbp)
movl $0x2, -0x48(%rbp)
jmp 0x30530
movq 0x10(%rbp), %rax
movq $0x0, (%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
cmpl $0x0, -0x34(%rbp)
jne 0x3058e
movq 0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq 0x10(%rbp), %rcx
movl -0x38(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x3058c
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x58(%rbp)
jmp 0x30559
jmp 0x3058e
movl -0x34(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x3059c
movl -0x1c(%rbp), %eax
leaq 0x44e5ea(%rip), %rcx # 0x47eb90
imulq $0x48, %rax, %rax
addq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, 0x8(%rcx)
movb %al, -0xb9(%rbp)
je 0x305f3
movl -0x1c(%rbp), %eax
movl %eax, %ecx
leaq 0x44e5c8(%rip), %rax # 0x47eb90
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl -0x1c(%rbp), %edi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x20(%rbp), %rcx
callq *%rax
movsbl %al, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x5c(%rbp)
testb $0x1, %al
jne 0x306bb
movl -0x1c(%rbp), %eax
leaq (%rax,%rax,8), %rcx
leaq 0x44e576(%rip), %rax # 0x47eb90
movl (%rax,%rcx,8), %eax
movl %eax, -0xc0(%rbp)
testl %eax, %eax
je 0x306ac
jmp 0x3062d
movl -0xc0(%rbp), %eax
subl $0x1, %eax
je 0x3064a
jmp 0x3063a
movl -0xc0(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x3067b
jmp 0x306ae
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x30(%rbp), %rdx
movl -0x60(%rbp), %eax
movw %ax, %cx
movq -0x28(%rbp), %r9
movq 0x20(%rbp), %rax
leaq -0x50(%rbp), %r8
movzwl %cx, %ecx
movq %rax, (%rsp)
callq 0x30950
movsbl %al, %eax
movl %eax, -0x5c(%rbp)
jmp 0x306b9
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x30(%rbp), %rdx
movl -0x60(%rbp), %eax
movw %ax, %cx
movq -0x28(%rbp), %r9
movq 0x20(%rbp), %rax
leaq -0x50(%rbp), %r8
movzwl %cx, %ecx
movq %rax, (%rsp)
callq 0x30be0
movsbl %al, %eax
movl %eax, -0x5c(%rbp)
jmp 0x306b9
jmp 0x306ae
jmp 0x306b0
jmp 0x306b2
movl $0x1, -0x5c(%rbp)
jmp 0x306bb
jmp 0x306bd
jmp 0x306bf
jmp 0x306c1
movl -0x5c(%rbp), %eax
movb %al, -0xf(%rbp)
movb -0xf(%rbp), %al
movb %al, -0xc1(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x306f1
movb -0xc1(%rbp), %al
addq $0xe0, %rsp
popq %rbp
retq
callq 0x2a250
nopw %cs:(%rax,%rax)
| translog_write_record:
push rbp
mov rbp, rsp
sub rsp, 0E0h
mov rax, [rbp+arg_10]
mov rax, [rbp+arg_8]
mov rax, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_18], rdi
mov [rbp+var_1C], esi
mov [rbp+var_28], rdx
mov [rbp+var_30], rcx
mov [rbp+var_34], r8d
mov [rbp+var_38], r9d
mov rax, [rbp+var_28]
movzx eax, word ptr [rax+0ACh]
mov [rbp+var_60], eax
jmp short $+2
loc_3030B:
jmp short $+2
loc_3030D:
jmp short $+2
loc_3030F:
jmp short $+2
loc_30311:
jmp short $+2
loc_30313:
jmp short $+2
loc_30315:
jmp short $+2
loc_30317:
cmp cs:translog_status, 1
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_30348
jmp short $+2
loc_3033B:
jmp short $+2
loc_3033D:
jmp short $+2
loc_3033F:
mov [rbp+var_F], 1
jmp loc_306C7
loc_30348:
cmp [rbp+var_30], 0
jz loc_303DE
cmp [rbp+var_1C], 23h ; '#'
jz loc_303DE
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_68], rax
jmp short $+2
loc_3036A:
mov rax, [rbp+var_68]
movzx eax, word ptr [rax+620h]
cmp eax, 0
setz 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_303C0
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_28]
call translog_assign_id_to_share
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_303BE
jmp short $+2
loc_303B5:
mov [rbp+var_F], 1
jmp loc_306C7
loc_303BE:
jmp short $+2
loc_303C0:
jmp short $+2
loc_303C2:
mov rax, [rbp+arg_8]
mov [rbp+var_70], rax
mov rax, [rbp+var_68]
mov cx, [rax+620h]
mov rax, [rbp+var_70]
mov [rax], cx
jmp short $+2
loc_303DE:
mov rcx, [rbp+var_28]
mov rax, 8000000000000000h
and rax, [rcx+0A0h]
cmp rax, 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_304E8
jmp short $+2
loc_3041A:
jmp short $+2
loc_3041C:
jmp short $+2
loc_3041E:
lea rax, [rbp+var_E]
mov [rbp+var_B8], rax
mov rax, [rbp+var_28]
mov rax, [rax+78h]
mov ecx, eax
mov rax, [rbp+var_B8]
mov [rax], ecx
mov rax, [rbp+var_28]
mov rax, [rax+78h]
shr rax, 20h
mov cx, ax
mov rax, [rbp+var_B8]
mov [rax+4], cx
lea rax, [rbp+var_E]
mov [rbp+var_90], rax
mov [rbp+var_88], 6
mov rax, [rbp+var_28]
mov rcx, 8000000000000000h
or rcx, [rax+0A0h]
mov [rax+0A0h], rcx
mov rdx, [rbp+var_28]
lea rax, [rbp+var_B0]
lea rdi, [rbp+var_78]
mov esi, 24h ; '$'
xor ecx, ecx
mov r8d, 6
mov r9d, 3
mov [rsp+0E0h+var_E0], rax
mov [rsp+0E0h+var_D8], 0
mov [rsp+0E0h+var_D0], 0
call translog_write_record
movsx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_304E6
jmp short $+2
loc_304DD:
mov [rbp+var_F], 1
jmp loc_306C7
loc_304E6:
jmp short $+2
loc_304E8:
mov rax, [rbp+arg_0]
mov [rbp+var_40], rax
cmp [rbp+var_38], 0
jnz short loc_30521
mov [rbp+var_38], 2
loc_304FD:
mov rax, [rbp+arg_0]
mov ecx, [rbp+var_38]
shl rcx, 4
add rax, rcx
cmp qword ptr [rax+8], 0
jz short loc_3051F
jmp short $+2
loc_30514:
mov eax, [rbp+var_38]
add eax, 1
mov [rbp+var_38], eax
jmp short loc_304FD
loc_3051F:
jmp short $+2
loc_30521:
mov eax, [rbp+var_38]
mov [rbp+var_44], eax
mov [rbp+var_48], 2
jmp short $+2
loc_30530:
mov rax, [rbp+arg_0]
mov qword ptr [rax], 0
mov rax, [rbp+arg_0]
mov qword ptr [rax+8], 0
cmp [rbp+var_34], 0
jnz short loc_3058E
mov rax, [rbp+arg_0]
add rax, 20h ; ' '
mov [rbp+var_58], rax
loc_30559:
mov rax, [rbp+var_58]
mov rcx, [rbp+arg_0]
mov edx, [rbp+var_38]
shl rdx, 4
add rcx, rdx
cmp rax, rcx
jnb short loc_3058C
mov rax, [rbp+var_58]
mov rax, [rax+8]
add eax, [rbp+var_34]
mov [rbp+var_34], eax
mov rax, [rbp+var_58]
add rax, 10h
mov [rbp+var_58], rax
jmp short loc_30559
loc_3058C:
jmp short $+2
loc_3058E:
mov eax, [rbp+var_34]
mov [rbp+var_50], eax
mov eax, [rbp+var_50]
mov [rbp+var_4C], eax
jmp short $+2
loc_3059C:
mov eax, [rbp+var_1C]
lea rcx, log_record_type_descriptor
imul rax, 48h ; 'H'
add rcx, rax
xor eax, eax
cmp qword ptr [rcx+8], 0
mov [rbp+var_B9], al
jz short loc_305F3
mov eax, [rbp+var_1C]
mov ecx, eax
lea rax, log_record_type_descriptor
imul rcx, 48h ; 'H'
add rax, rcx
mov rax, [rax+8]
mov edi, [rbp+var_1C]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
mov rcx, [rbp+arg_10]
call rax
movsx eax, al
cmp eax, 0
setnz al
mov [rbp+var_B9], al
loc_305F3:
mov al, [rbp+var_B9]
mov cl, al
and cl, 1
movzx ecx, cl
mov [rbp+var_5C], ecx
test al, 1
jnz loc_306BB
mov eax, [rbp+var_1C]
lea rcx, [rax+rax*8]
lea rax, log_record_type_descriptor
mov eax, [rax+rcx*8]
mov [rbp+var_C0], eax
test eax, eax
jz loc_306AC
jmp short $+2
loc_3062D:
mov eax, [rbp+var_C0]
sub eax, 1
jz short loc_3064A
jmp short $+2
loc_3063A:
mov eax, [rbp+var_C0]
add eax, 0FFFFFFFEh
sub eax, 2
jb short loc_3067B
jmp short loc_306AE
loc_3064A:
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov rdx, [rbp+var_30]
mov eax, [rbp+var_60]
mov cx, ax
mov r9, [rbp+var_28]
mov rax, [rbp+arg_10]
lea r8, [rbp+var_50]
movzx ecx, cx
mov [rsp+0E0h+var_E0], rax
call translog_write_variable_record
movsx eax, al
mov [rbp+var_5C], eax
jmp short loc_306B9
loc_3067B:
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov rdx, [rbp+var_30]
mov eax, [rbp+var_60]
mov cx, ax
mov r9, [rbp+var_28]
mov rax, [rbp+arg_10]
lea r8, [rbp+var_50]
movzx ecx, cx
mov [rsp+0E0h+var_E0], rax
call translog_write_fixed_record
movsx eax, al
mov [rbp+var_5C], eax
jmp short loc_306B9
loc_306AC:
jmp short $+2
loc_306AE:
jmp short $+2
loc_306B0:
jmp short $+2
loc_306B2:
mov [rbp+var_5C], 1
loc_306B9:
jmp short $+2
loc_306BB:
jmp short $+2
loc_306BD:
jmp short $+2
loc_306BF:
jmp short $+2
loc_306C1:
mov eax, [rbp+var_5C]
mov [rbp+var_F], al
loc_306C7:
mov al, [rbp+var_F]
mov [rbp+var_C1], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_306F1
mov al, [rbp+var_C1]
add rsp, 0E0h
pop rbp
retn
loc_306F1:
call ___stack_chk_fail
| char translog_write_record(
long long a1,
unsigned int a2,
long long a3,
long long *a4,
int a5,
unsigned int a6,
_QWORD *a7,
_WORD *a8,
long long a9)
{
int v10; // [rsp+20h] [rbp-C0h]
bool v11; // [rsp+27h] [rbp-B9h]
_BYTE v12[32]; // [rsp+30h] [rbp-B0h] BYREF
int *v13; // [rsp+50h] [rbp-90h]
long long v14; // [rsp+58h] [rbp-88h]
char v15; // [rsp+68h] [rbp-78h] BYREF
_WORD *v16; // [rsp+70h] [rbp-70h]
long long v17; // [rsp+78h] [rbp-68h]
int v18; // [rsp+80h] [rbp-60h]
int v19; // [rsp+84h] [rbp-5Ch]
_QWORD *j; // [rsp+88h] [rbp-58h]
_DWORD v21[4]; // [rsp+90h] [rbp-50h] BYREF
_QWORD *v22; // [rsp+A0h] [rbp-40h]
unsigned int i; // [rsp+A8h] [rbp-38h]
int v24; // [rsp+ACh] [rbp-34h]
long long *v25; // [rsp+B0h] [rbp-30h]
long long v26; // [rsp+B8h] [rbp-28h]
unsigned int v27; // [rsp+C4h] [rbp-1Ch]
long long v28; // [rsp+C8h] [rbp-18h]
int v30; // [rsp+D2h] [rbp-Eh] BYREF
__int16 v31; // [rsp+D6h] [rbp-Ah]
unsigned long long v32; // [rsp+D8h] [rbp-8h]
v32 = __readfsqword(0x28u);
v28 = a1;
v27 = a2;
v26 = a3;
v25 = a4;
v24 = a5;
i = a6;
v18 = *(unsigned __int16 *)(a3 + 172);
if ( translog_status == 1 )
{
if ( v25 && v27 != 35 )
{
v17 = *v25;
if ( !*(_WORD *)(v17 + 1568) && (unsigned int)translog_assign_id_to_share(v25, v26) )
return 1;
v16 = a8;
*a8 = *(_WORD *)(v17 + 1568);
}
if ( *(long long *)(v26 + 160) >= 0 )
{
v30 = *(_QWORD *)(v26 + 120);
v31 = WORD2(*(_QWORD *)(v26 + 120));
v13 = &v30;
v14 = 6LL;
*(_QWORD *)(v26 + 160) |= 0x8000000000000000LL;
if ( (unsigned __int8)translog_write_record((unsigned int)&v15, 36, v26, 0, 6, 3, (long long)v12, 0LL, 0LL) )
return 1;
}
v22 = a7;
if ( !i )
{
for ( i = 2; a7[2 * i + 1]; ++i )
;
}
v21[3] = i;
v21[2] = 2;
*a7 = 0LL;
a7[1] = 0LL;
if ( !v24 )
{
for ( j = a7 + 4; j < &a7[2 * i]; j += 2 )
v24 += j[1];
}
v21[0] = v24;
v21[1] = v24;
v11 = 0;
if ( *(_QWORD *)&log_record_type_descriptor[18 * v27 + 2] )
v11 = (*(char ( **)(_QWORD, long long, long long *, long long))&log_record_type_descriptor[18 * v27 + 2])(
v27,
v26,
v25,
a9) != 0;
v19 = v11;
if ( !v11 )
{
v10 = log_record_type_descriptor[18 * v27];
if ( !v10 )
return 1;
if ( v10 == 1 )
{
return translog_write_variable_record(v28, v27, (_DWORD)v25, (unsigned __int16)v18, (unsigned int)v21, v26, a9);
}
else
{
if ( (unsigned int)(v10 - 2) >= 2 )
return 1;
return translog_write_fixed_record(v28, v27, (_DWORD)v25, (unsigned __int16)v18, (unsigned int)v21, v26, a9);
}
}
return v19;
}
return 1;
}
| translog_write_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
MOV RAX,qword ptr [RBP + 0x20]
MOV RAX,qword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x18],RDI
MOV dword ptr [RBP + -0x1c],ESI
MOV qword ptr [RBP + -0x28],RDX
MOV qword ptr [RBP + -0x30],RCX
MOV dword ptr [RBP + -0x34],R8D
MOV dword ptr [RBP + -0x38],R9D
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,word ptr [RAX + 0xac]
MOV dword ptr [RBP + -0x60],EAX
JMP 0x0013030b
LAB_0013030b:
JMP 0x0013030d
LAB_0013030d:
JMP 0x0013030f
LAB_0013030f:
JMP 0x00130311
LAB_00130311:
JMP 0x00130313
LAB_00130313:
JMP 0x00130315
LAB_00130315:
JMP 0x00130317
LAB_00130317:
CMP dword ptr [0x0057eb80],0x1
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00130348
JMP 0x0013033b
LAB_0013033b:
JMP 0x0013033d
LAB_0013033d:
JMP 0x0013033f
LAB_0013033f:
MOV byte ptr [RBP + -0xf],0x1
JMP 0x001306c7
LAB_00130348:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001303de
CMP dword ptr [RBP + -0x1c],0x23
JZ 0x001303de
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0013036a
LAB_0013036a:
MOV RAX,qword ptr [RBP + -0x68]
MOVZX EAX,word ptr [RAX + 0x620]
CMP EAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001303c0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00130700
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001303be
JMP 0x001303b5
LAB_001303b5:
MOV byte ptr [RBP + -0xf],0x1
JMP 0x001306c7
LAB_001303be:
JMP 0x001303c0
LAB_001303c0:
JMP 0x001303c2
LAB_001303c2:
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV CX,word ptr [RAX + 0x620]
MOV RAX,qword ptr [RBP + -0x70]
MOV word ptr [RAX],CX
JMP 0x001303de
LAB_001303de:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,-0x8000000000000000
AND RAX,qword ptr [RCX + 0xa0]
CMP RAX,0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001304e8
JMP 0x0013041a
LAB_0013041a:
JMP 0x0013041c
LAB_0013041c:
JMP 0x0013041e
LAB_0013041e:
LEA RAX,[RBP + -0xe]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xb8]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x78]
SHR RAX,0x20
MOV CX,AX
MOV RAX,qword ptr [RBP + -0xb8]
MOV word ptr [RAX + 0x4],CX
LEA RAX,[RBP + -0xe]
MOV qword ptr [RBP + -0x90],RAX
MOV qword ptr [RBP + -0x88],0x6
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,-0x8000000000000000
OR RCX,qword ptr [RAX + 0xa0]
MOV qword ptr [RAX + 0xa0],RCX
MOV RDX,qword ptr [RBP + -0x28]
LEA RAX,[RBP + -0xb0]
LEA RDI,[RBP + -0x78]
MOV ESI,0x24
XOR ECX,ECX
MOV R8D,0x6
MOV R9D,0x3
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
CALL 0x001302c0
MOVSX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001304e6
JMP 0x001304dd
LAB_001304dd:
MOV byte ptr [RBP + -0xf],0x1
JMP 0x001306c7
LAB_001304e6:
JMP 0x001304e8
LAB_001304e8:
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x40],RAX
CMP dword ptr [RBP + -0x38],0x0
JNZ 0x00130521
MOV dword ptr [RBP + -0x38],0x2
LAB_001304fd:
MOV RAX,qword ptr [RBP + 0x10]
MOV ECX,dword ptr [RBP + -0x38]
SHL RCX,0x4
ADD RAX,RCX
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0013051f
JMP 0x00130514
LAB_00130514:
MOV EAX,dword ptr [RBP + -0x38]
ADD EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
JMP 0x001304fd
LAB_0013051f:
JMP 0x00130521
LAB_00130521:
MOV EAX,dword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x44],EAX
MOV dword ptr [RBP + -0x48],0x2
JMP 0x00130530
LAB_00130530:
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],0x0
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0013058e
MOV RAX,qword ptr [RBP + 0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x58],RAX
LAB_00130559:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + 0x10]
MOV EDX,dword ptr [RBP + -0x38]
SHL RDX,0x4
ADD RCX,RDX
CMP RAX,RCX
JNC 0x0013058c
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x8]
ADD EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x10
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00130559
LAB_0013058c:
JMP 0x0013058e
LAB_0013058e:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x50],EAX
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0013059c
LAB_0013059c:
MOV EAX,dword ptr [RBP + -0x1c]
LEA RCX,[0x57eb90]
IMUL RAX,RAX,0x48
ADD RCX,RAX
XOR EAX,EAX
CMP qword ptr [RCX + 0x8],0x0
MOV byte ptr [RBP + -0xb9],AL
JZ 0x001305f3
MOV EAX,dword ptr [RBP + -0x1c]
MOV ECX,EAX
LEA RAX,[0x57eb90]
IMUL RCX,RCX,0x48
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV EDI,dword ptr [RBP + -0x1c]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + 0x20]
CALL RAX
MOVSX EAX,AL
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0xb9],AL
LAB_001305f3:
MOV AL,byte ptr [RBP + -0xb9]
MOV CL,AL
AND CL,0x1
MOVZX ECX,CL
MOV dword ptr [RBP + -0x5c],ECX
TEST AL,0x1
JNZ 0x001306bb
MOV EAX,dword ptr [RBP + -0x1c]
LEA RCX,[RAX + RAX*0x8]
LEA RAX,[0x57eb90]
MOV EAX,dword ptr [RAX + RCX*0x8]
MOV dword ptr [RBP + -0xc0],EAX
TEST EAX,EAX
JZ 0x001306ac
JMP 0x0013062d
LAB_0013062d:
MOV EAX,dword ptr [RBP + -0xc0]
SUB EAX,0x1
JZ 0x0013064a
JMP 0x0013063a
LAB_0013063a:
MOV EAX,dword ptr [RBP + -0xc0]
ADD EAX,-0x2
SUB EAX,0x2
JC 0x0013067b
JMP 0x001306ae
LAB_0013064a:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x60]
MOV CX,AX
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x20]
LEA R8,[RBP + -0x50]
MOVZX ECX,CX
MOV qword ptr [RSP],RAX
CALL 0x00130950
MOVSX EAX,AL
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x001306b9
LAB_0013067b:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x60]
MOV CX,AX
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x20]
LEA R8,[RBP + -0x50]
MOVZX ECX,CX
MOV qword ptr [RSP],RAX
CALL 0x00130be0
MOVSX EAX,AL
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x001306b9
LAB_001306ac:
JMP 0x001306ae
LAB_001306ae:
JMP 0x001306b0
LAB_001306b0:
JMP 0x001306b2
LAB_001306b2:
MOV dword ptr [RBP + -0x5c],0x1
LAB_001306b9:
JMP 0x001306bb
LAB_001306bb:
JMP 0x001306bd
LAB_001306bd:
JMP 0x001306bf
LAB_001306bf:
JMP 0x001306c1
LAB_001306c1:
MOV EAX,dword ptr [RBP + -0x5c]
MOV byte ptr [RBP + -0xf],AL
LAB_001306c7:
MOV AL,byte ptr [RBP + -0xf]
MOV byte ptr [RBP + -0xc1],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001306f1
MOV AL,byte ptr [RBP + -0xc1]
ADD RSP,0xe0
POP RBP
RET
LAB_001306f1:
CALL 0x0012a250
|
int8
translog_write_record
(int8 param_1,uint param_2,long param_3,long *param_4,int param_5,uint param_6,
int8 *param_7,int2 *param_8,int8 param_9)
{
char cVar1;
int iVar2;
long in_FS_OFFSET;
bool local_c1;
int1 local_b8 [32];
int4 *local_98;
int8 local_90;
int1 local_80 [8];
int2 *local_78;
long local_70;
uint local_68;
uint local_64;
int8 *local_60;
int local_58;
int local_54;
int4 local_50;
uint local_4c;
int8 *local_48;
uint local_40;
int local_3c;
long *local_38;
long local_30;
uint local_24;
int8 local_20;
int1 local_17;
int4 local_16;
int2 local_12;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_68 = (uint)*(ushort *)(param_3 + 0xac);
local_40 = param_6;
local_3c = param_5;
local_38 = param_4;
local_30 = param_3;
local_24 = param_2;
local_20 = param_1;
if (translog_status != 1) {
local_17 = 1;
goto LAB_001306c7;
}
if ((param_4 != (long *)0x0) && (param_2 != 0x23)) {
local_70 = *param_4;
if ((*(short *)(local_70 + 0x620) == 0) &&
(iVar2 = translog_assign_id_to_share(param_4,param_3), iVar2 != 0)) {
local_17 = 1;
goto LAB_001306c7;
}
local_78 = param_8;
*param_8 = *(int2 *)(local_70 + 0x620);
}
if ((*(ulong *)(local_30 + 0xa0) & 0x8000000000000000) == 0) {
local_16 = (int4)*(int8 *)(local_30 + 0x78);
local_12 = (int2)((ulong)*(int8 *)(local_30 + 0x78) >> 0x20);
local_98 = &local_16;
local_90 = 6;
*(ulong *)(local_30 + 0xa0) = *(ulong *)(local_30 + 0xa0) | 0x8000000000000000;
cVar1 = translog_write_record(local_80,0x24,local_30,0,6,3,local_b8,0,0);
if (cVar1 != '\0') {
local_17 = 1;
goto LAB_001306c7;
}
}
local_48 = param_7;
if (local_40 == 0) {
local_40 = 2;
while (param_7[(ulong)local_40 * 2 + 1] != 0) {
local_40 = local_40 + 1;
}
}
local_4c = local_40;
local_50 = 2;
*param_7 = 0;
param_7[1] = 0;
if (local_3c == 0) {
for (local_60 = param_7 + 4; local_60 < param_7 + (ulong)local_40 * 2; local_60 = local_60 + 2)
{
local_3c = (int)local_60[1] + local_3c;
}
}
local_58 = local_3c;
local_54 = local_3c;
local_c1 = false;
if (*(long *)(log_record_type_descriptor + (ulong)local_24 * 0x48 + 8) != 0) {
cVar1 = (**(code **)(log_record_type_descriptor + (ulong)local_24 * 0x48 + 8))
(local_24,local_30,local_38,param_9);
local_c1 = cVar1 != '\0';
}
local_64 = (uint)local_c1;
if (local_c1 == false) {
iVar2 = *(int *)(log_record_type_descriptor + (ulong)local_24 * 0x48);
if (iVar2 == 0) {
LAB_001306b2:
local_64 = 1;
}
else if (iVar2 == 1) {
cVar1 = translog_write_variable_record
(local_20,local_24,local_38,(short)local_68,&local_58,local_30,param_9);
local_64 = (uint)cVar1;
}
else {
if (1 < iVar2 - 2U) goto LAB_001306b2;
cVar1 = translog_write_fixed_record
(local_20,local_24,local_38,(short)local_68,&local_58,local_30,param_9);
local_64 = (uint)cVar1;
}
}
local_17 = (int1)local_64;
LAB_001306c7:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_17);
}
| |
24,619 | copy_decode_table | eloqsql/storage/maria/ma_packrec.c | static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the uchar value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the uchar value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
} | O3 | c | copy_decode_table:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %eax
movq %rdi, %rbx
movzwl (%r14), %ecx
movl %eax, %r15d
addl $0x2, %eax
testw %cx, %cx
js 0x4724e
movw $0x2, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x47212
jmp 0x47253
movw %cx, (%rbx,%r15,2)
movzwl 0x2(%r14), %ecx
testw %cx, %cx
js 0x4727a
addq $0x2, %r14
movl %r15d, %ecx
notl %ecx
addl %eax, %ecx
incl %r15d
movw %cx, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %r14
jmp 0x47224
incl %r15d
movw %cx, (%rbx,%r15,2)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| copy_decode_table:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov eax, esi
mov rbx, rdi
loc_47224:
movzx ecx, word ptr [r14]
mov r15d, eax
add eax, 2
test cx, cx
js short loc_4724E
mov word ptr [rbx+r15*2], 2
movzx ecx, word ptr [r14]
lea rdx, [r14+rcx*2]
mov rdi, rbx
mov esi, eax
call copy_decode_table
jmp short loc_47253
loc_4724E:
mov [rbx+r15*2], cx
loc_47253:
movzx ecx, word ptr [r14+2]
test cx, cx
js short loc_4727A
add r14, 2
mov ecx, r15d
not ecx
add ecx, eax
inc r15d
mov [rbx+r15*2], cx
movzx ecx, word ptr [r14]
lea r14, [r14+rcx*2]
jmp short loc_47224
loc_4727A:
inc r15d
mov [rbx+r15*2], cx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long copy_decode_table(long long a1, int a2, unsigned __int16 *a3)
{
long long result; // rax
long long v5; // r15
__int16 v6; // cx
LODWORD(result) = a2;
while ( 1 )
{
v5 = (unsigned int)result;
result = (unsigned int)(result + 2);
if ( (*a3 & 0x8000u) != 0 )
{
*(_WORD *)(a1 + 2 * v5) = *a3;
}
else
{
*(_WORD *)(a1 + 2 * v5) = 2;
result = copy_decode_table(a1, (unsigned int)result, &a3[*a3]);
}
v6 = a3[1];
if ( v6 < 0 )
break;
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = result + ~(_WORD)v5;
a3 += a3[1] + 1;
}
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = v6;
return result;
}
| copy_decode_table:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EAX,ESI
MOV RBX,RDI
LAB_00147224:
MOVZX ECX,word ptr [R14]
MOV R15D,EAX
ADD EAX,0x2
TEST CX,CX
JS 0x0014724e
MOV word ptr [RBX + R15*0x2],0x2
MOVZX ECX,word ptr [R14]
LEA RDX,[R14 + RCX*0x2]
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00147212
JMP 0x00147253
LAB_0014724e:
MOV word ptr [RBX + R15*0x2],CX
LAB_00147253:
MOVZX ECX,word ptr [R14 + 0x2]
TEST CX,CX
JS 0x0014727a
ADD R14,0x2
MOV ECX,R15D
NOT ECX
ADD ECX,EAX
INC R15D
MOV word ptr [RBX + R15*0x2],CX
MOVZX ECX,word ptr [R14]
LEA R14,[R14 + RCX*0x2]
JMP 0x00147224
LAB_0014727a:
INC R15D
MOV word ptr [RBX + R15*0x2],CX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
uint uVar1;
while( true ) {
uVar1 = param_2 + 2;
if ((short)*param_3 < 0) {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
}
else {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
uVar1 = copy_decode_table(param_1,uVar1,param_3 + *param_3);
}
if ((short)param_3[1] < 0) break;
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = ~(ushort)param_2 + (short)uVar1;
param_3 = param_3 + 1 + param_3[1];
param_2 = uVar1;
}
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = param_3[1];
return;
}
| |
24,620 | POINTonE1_Uncompress_BE | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e1.c | static limb_t POINTonE1_Uncompress_BE(POINTonE1_affine *out,
const unsigned char in[48])
{
POINTonE1_affine ret;
vec384 temp;
limbs_from_be_bytes(ret.X, in, sizeof(ret.X));
/* clear top 3 bits in case caller was conveying some information there */
ret.X[sizeof(ret.X)/sizeof(limb_t)-1] &= ((limb_t)0-1) >> 3;
add_fp(temp, ret.X, ZERO_384); /* less than modulus? */
if (!vec_is_equal(temp, ret.X, sizeof(temp)))
return (limb_t)0 - BLST_BAD_ENCODING;
mul_fp(ret.X, ret.X, BLS12_381_RR);
sqr_fp(ret.Y, ret.X);
mul_fp(ret.Y, ret.Y, ret.X);
add_fp(ret.Y, ret.Y, B_E1); /* X^3 + B */
if (!sqrt_fp(ret.Y, ret.Y))
return (limb_t)0 - BLST_POINT_NOT_ON_CURVE;
vec_copy(out, &ret, sizeof(ret));
return sgn0_pty_mont_384(out->Y, BLS12_381_P, p0);
} | O0 | c | POINTonE1_Uncompress_BE:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x78(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x30, %edx
callq 0xb6350
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
andq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq 0x300bf(%rip), %rdx # 0xe84a8
addq $0x30, %rdx
callq 0xafde0
leaq -0xb0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movl $0x30, %edx
callq 0xab4c0
cmpq $0x0, %rax
jne 0xb841a
movq $-0x1, -0x8(%rbp)
jmp 0xb84cd
leaq -0x78(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq 0x302c7(%rip), %rdx # 0xe86f0
callq 0xb6080
leaq -0x78(%rbp), %rdi
addq $0x30, %rdi
leaq -0x78(%rbp), %rsi
callq 0xb2560
leaq -0x78(%rbp), %rdi
addq $0x30, %rdi
leaq -0x78(%rbp), %rsi
addq $0x30, %rsi
leaq -0x78(%rbp), %rdx
callq 0xb6080
leaq -0x78(%rbp), %rdi
addq $0x30, %rdi
leaq -0x78(%rbp), %rsi
addq $0x30, %rsi
leaq 0x30321(%rip), %rdx # 0xe8790
callq 0xafde0
leaq -0x78(%rbp), %rdi
addq $0x30, %rdi
leaq -0x78(%rbp), %rsi
addq $0x30, %rsi
callq 0xb22a0
cmpq $0x0, %rax
jne 0xb8499
movq $-0x2, -0x8(%rbp)
jmp 0xb84cd
movq -0x10(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movl $0x60, %edx
callq 0xa8ad0
movq -0x10(%rbp), %rdi
addq $0x30, %rdi
leaq 0x2ffb6(%rip), %rsi # 0xe8470
movabsq $-0x760c000300030003, %rdx # imm = 0x89F3FFFCFFFCFFFD
callq 0xcb340
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| POINTonE1_Uncompress_BE:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
lea rdi, [rbp+var_78]
mov rsi, [rbp+var_18]
mov edx, 30h ; '0'
call limbs_from_be_bytes
mov rax, 1FFFFFFFFFFFFFFFh
and rax, [rbp+var_50]
mov [rbp+var_50], rax
lea rdi, [rbp+var_B0]
lea rsi, [rbp+var_78]
lea rdx, BLS12_381_Rx
add rdx, 30h ; '0'
call add_fp
lea rdi, [rbp+var_B0]
lea rsi, [rbp+var_78]
mov edx, 30h ; '0'
call vec_is_equal
cmp rax, 0
jnz short loc_B841A
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_B84CD
loc_B841A:
lea rdi, [rbp+var_78]
lea rsi, [rbp+var_78]
lea rdx, BLS12_381_RR
call mul_fp
lea rdi, [rbp+var_78]
add rdi, 30h ; '0'
lea rsi, [rbp+var_78]
call sqr_fp
lea rdi, [rbp+var_78]
add rdi, 30h ; '0'
lea rsi, [rbp+var_78]
add rsi, 30h ; '0'
lea rdx, [rbp+var_78]
call mul_fp
lea rdi, [rbp+var_78]
add rdi, 30h ; '0'
lea rsi, [rbp+var_78]
add rsi, 30h ; '0'
lea rdx, B_E1
call add_fp
lea rdi, [rbp+var_78]
add rdi, 30h ; '0'
lea rsi, [rbp+var_78]
add rsi, 30h ; '0'
call sqrt_fp
cmp rax, 0
jnz short loc_B8499
mov [rbp+var_8], 0FFFFFFFFFFFFFFFEh
jmp short loc_B84CD
loc_B8499:
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_78]
mov edx, 60h ; '`'
call vec_copy
mov rdi, [rbp+var_10]
add rdi, 30h ; '0'
lea rsi, BLS12_381_P
mov rdx, 89F3FFFCFFFCFFFDh
call sgn0_pty_mont_384
mov [rbp+var_8], rax
loc_B84CD:
mov rax, [rbp+var_8]
add rsp, 0B0h
pop rbp
retn
| long long POINTonE1_Uncompress_BE(long long a1, unsigned __int8 *a2)
{
_BYTE v3[56]; // [rsp+0h] [rbp-B0h] BYREF
_BYTE v4[40]; // [rsp+38h] [rbp-78h] BYREF
long long v5; // [rsp+60h] [rbp-50h]
_QWORD v6[7]; // [rsp+68h] [rbp-48h] BYREF
long long v7; // [rsp+A0h] [rbp-10h]
v7 = a1;
v6[6] = a2;
limbs_from_be_bytes((long long)v4, a2, 0x30uLL);
v5 &= 0x1FFFFFFFFFFFFFFFuLL;
add_fp((long long)v3, (long long)v4, (long long)&BLS12_381_Rx + 48);
if ( !vec_is_equal((long long)v3, (long long)v4, 0x30uLL) )
return -1LL;
mul_fp((long long)v4, (long long)v4, (long long)&BLS12_381_RR);
sqr_fp((long long)v6, (long long)v4);
mul_fp((long long)v6, (long long)v6, (long long)v4);
add_fp((long long)v6, (long long)v6, (long long)&B_E1);
if ( !sqrt_fp((long long)v6, (long long)v6) )
return -2LL;
vec_copy(v7, (long long)v4, 0x60uLL);
return sgn0_pty_mont_384(v7 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
}
| POINTonE1_Uncompress_BE:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LEA RDI,[RBP + -0x78]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0x30
CALL 0x001b6350
MOV RAX,0x1fffffffffffffff
AND RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
LEA RDI,[RBP + -0xb0]
LEA RSI,[RBP + -0x78]
LEA RDX,[0x1e84a8]
ADD RDX,0x30
CALL 0x001afde0
LEA RDI,[RBP + -0xb0]
LEA RSI,[RBP + -0x78]
MOV EDX,0x30
CALL 0x001ab4c0
CMP RAX,0x0
JNZ 0x001b841a
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001b84cd
LAB_001b841a:
LEA RDI,[RBP + -0x78]
LEA RSI,[RBP + -0x78]
LEA RDX,[0x1e86f0]
CALL 0x001b6080
LEA RDI,[RBP + -0x78]
ADD RDI,0x30
LEA RSI,[RBP + -0x78]
CALL 0x001b2560
LEA RDI,[RBP + -0x78]
ADD RDI,0x30
LEA RSI,[RBP + -0x78]
ADD RSI,0x30
LEA RDX,[RBP + -0x78]
CALL 0x001b6080
LEA RDI,[RBP + -0x78]
ADD RDI,0x30
LEA RSI,[RBP + -0x78]
ADD RSI,0x30
LEA RDX,[0x1e8790]
CALL 0x001afde0
LEA RDI,[RBP + -0x78]
ADD RDI,0x30
LEA RSI,[RBP + -0x78]
ADD RSI,0x30
CALL 0x001b22a0
CMP RAX,0x0
JNZ 0x001b8499
MOV qword ptr [RBP + -0x8],-0x2
JMP 0x001b84cd
LAB_001b8499:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x78]
MOV EDX,0x60
CALL 0x001a8ad0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x30
LEA RSI,[0x1e8470]
MOV RDX,-0x760c000300030003
CALL 0x001cb340
MOV qword ptr [RBP + -0x8],RAX
LAB_001b84cd:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xb0
POP RBP
RET
|
int8 POINTonE1_Uncompress_BE(long param_1,int8 param_2)
{
long lVar1;
int1 local_b8 [56];
int1 local_80 [40];
ulong local_58;
int1 auStack_50 [48];
int8 local_20;
long local_18;
int8 local_10;
local_20 = param_2;
local_18 = param_1;
limbs_from_be_bytes(local_80,param_2,0x30);
local_58 = local_58 & 0x1fffffffffffffff;
add_fp(local_b8,local_80,0x1e84d8);
lVar1 = vec_is_equal(local_b8,local_80,0x30);
if (lVar1 == 0) {
local_10 = 0xffffffffffffffff;
}
else {
mul_fp(local_80,local_80,BLS12_381_RR);
sqr_fp(auStack_50,local_80);
mul_fp(auStack_50,auStack_50,local_80);
add_fp(auStack_50,auStack_50,B_E1);
lVar1 = sqrt_fp(auStack_50,auStack_50);
if (lVar1 == 0) {
local_10 = 0xfffffffffffffffe;
}
else {
vec_copy(local_18,local_80,0x60);
local_10 = sgn0_pty_mont_384(local_18 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd);
}
}
return local_10;
}
| |
24,621 | check_and_set_lsn | eloqsql/storage/maria/ma_pagecache.c | static void check_and_set_lsn(PAGECACHE *pagecache,
LSN lsn, PAGECACHE_BLOCK_LINK *block)
{
LSN old;
DBUG_ENTER("check_and_set_lsn");
/*
In recovery, we can _ma_unpin_all_pages() to put a LSN on page, though
page would be PAGECACHE_PLAIN_PAGE (transactionality temporarily disabled
to not log REDOs).
*/
DBUG_ASSERT((block->type == PAGECACHE_LSN_PAGE) || maria_in_recovery);
old= lsn_korr(block->buffer);
DBUG_PRINT("info", ("old lsn: " LSN_FMT " new lsn: " LSN_FMT,
LSN_IN_PARTS(old), LSN_IN_PARTS(lsn)));
if (cmp_translog_addr(lsn, old) > 0)
{
DBUG_ASSERT(block->type != PAGECACHE_READ_UNKNOWN_PAGE);
lsn_store(block->buffer, lsn);
/* we stored LSN in page so we dirtied it */
if (!(block->status & PCBLOCK_CHANGED))
link_to_changed_list(pagecache, block);
}
DBUG_VOID_RETURN;
} | O3 | c | check_and_set_lsn:
pushq %rbp
movq %rsp, %rbp
movq 0x30(%rdx), %rax
movzwl (%rax), %ecx
shlq $0x20, %rcx
movzbl 0x2(%rax), %r8d
shlq $0x30, %r8
orq %rcx, %r8
movl 0x3(%rax), %ecx
orq %r8, %rcx
cmpq %rsi, %rcx
jge 0x31ad5
movq %rsi, %rcx
shrq $0x20, %rcx
movb %cl, (%rax)
movq %rsi, %rax
shrq $0x28, %rax
movq 0x30(%rdx), %rcx
movb %al, 0x1(%rcx)
movq %rsi, %rax
shrq $0x30, %rax
movq 0x30(%rdx), %rcx
movb %al, 0x2(%rcx)
movq 0x30(%rdx), %rax
movl %esi, 0x3(%rax)
testb $0x20, 0x74(%rdx)
jne 0x31ad5
leaq 0x10(%rdx), %rax
movq 0x10(%rdx), %rsi
movq 0x18(%rdx), %rcx
testq %rsi, %rsi
je 0x31a90
movq %rcx, 0x18(%rsi)
movq (%rax), %rsi
jmp 0x31a92
xorl %esi, %esi
movq %rsi, (%rcx)
movq 0x128(%rdi), %rcx
movq 0x20(%rdx), %rsi
movl 0x28(%rdi), %r8d
decl %r8d
andl 0x28(%rsi), %r8d
leaq (%rcx,%r8,8), %rcx
movq %rcx, 0x18(%rdx)
movq (%rcx), %rsi
movq %rsi, 0x10(%rdx)
testq %rsi, %rsi
je 0x31ac3
movq %rax, 0x18(%rsi)
movq %rdx, (%rcx)
orb $0x20, 0x74(%rdx)
incq 0x58(%rdi)
incq 0x168(%rdi)
popq %rbp
retq
| check_and_set_lsn:
push rbp
mov rbp, rsp
mov rax, [rdx+30h]
movzx ecx, word ptr [rax]
shl rcx, 20h
movzx r8d, byte ptr [rax+2]
shl r8, 30h
or r8, rcx
mov ecx, [rax+3]
or rcx, r8
cmp rcx, rsi
jge loc_31AD5
mov rcx, rsi
shr rcx, 20h
mov [rax], cl
mov rax, rsi
shr rax, 28h
mov rcx, [rdx+30h]
mov [rcx+1], al
mov rax, rsi
shr rax, 30h
mov rcx, [rdx+30h]
mov [rcx+2], al
mov rax, [rdx+30h]
mov [rax+3], esi
test byte ptr [rdx+74h], 20h
jnz short loc_31AD5
lea rax, [rdx+10h]
mov rsi, [rdx+10h]
mov rcx, [rdx+18h]
test rsi, rsi
jz short loc_31A90
mov [rsi+18h], rcx
mov rsi, [rax]
jmp short loc_31A92
loc_31A90:
xor esi, esi
loc_31A92:
mov [rcx], rsi
mov rcx, [rdi+128h]
mov rsi, [rdx+20h]
mov r8d, [rdi+28h]
dec r8d
and r8d, [rsi+28h]
lea rcx, [rcx+r8*8]
mov [rdx+18h], rcx
mov rsi, [rcx]
mov [rdx+10h], rsi
test rsi, rsi
jz short loc_31AC3
mov [rsi+18h], rax
loc_31AC3:
mov [rcx], rdx
or byte ptr [rdx+74h], 20h
inc qword ptr [rdi+58h]
inc qword ptr [rdi+168h]
loc_31AD5:
pop rbp
retn
| unsigned __int16 * check_and_set_lsn(long long a1, signed long long a2, long long a3)
{
unsigned __int16 *result; // rax
long long v4; // rsi
_QWORD *v5; // rcx
long long v6; // rsi
long long *v7; // rcx
long long v8; // rsi
result = *(unsigned __int16 **)(a3 + 48);
if ( (long long)(((unsigned long long)*result << 32) | ((unsigned long long)*((unsigned __int8 *)result + 2) << 48) | *(unsigned int *)((char *)result + 3)) < a2 )
{
*(_BYTE *)result = BYTE4(a2);
*(_BYTE *)(*(_QWORD *)(a3 + 48) + 1LL) = BYTE5(a2);
*(_BYTE *)(*(_QWORD *)(a3 + 48) + 2LL) = BYTE6(a2);
result = *(unsigned __int16 **)(a3 + 48);
*(_DWORD *)((char *)result + 3) = a2;
if ( (*(_BYTE *)(a3 + 116) & 0x20) == 0 )
{
result = (unsigned __int16 *)(a3 + 16);
v4 = *(_QWORD *)(a3 + 16);
v5 = *(_QWORD **)(a3 + 24);
if ( v4 )
{
*(_QWORD *)(v4 + 24) = v5;
v6 = *(_QWORD *)result;
}
else
{
v6 = 0LL;
}
*v5 = v6;
v7 = (long long *)(*(_QWORD *)(a1 + 296)
+ 8LL * (*(_DWORD *)(*(_QWORD *)(a3 + 32) + 40LL) & (unsigned int)(*(_DWORD *)(a1 + 40) - 1)));
*(_QWORD *)(a3 + 24) = v7;
v8 = *v7;
*(_QWORD *)(a3 + 16) = *v7;
if ( v8 )
*(_QWORD *)(v8 + 24) = result;
*v7 = a3;
*(_BYTE *)(a3 + 116) |= 0x20u;
++*(_QWORD *)(a1 + 88);
++*(_QWORD *)(a1 + 360);
}
}
return result;
}
| check_and_set_lsn:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDX + 0x30]
MOVZX ECX,word ptr [RAX]
SHL RCX,0x20
MOVZX R8D,byte ptr [RAX + 0x2]
SHL R8,0x30
OR R8,RCX
MOV ECX,dword ptr [RAX + 0x3]
OR RCX,R8
CMP RCX,RSI
JGE 0x00131ad5
MOV RCX,RSI
SHR RCX,0x20
MOV byte ptr [RAX],CL
MOV RAX,RSI
SHR RAX,0x28
MOV RCX,qword ptr [RDX + 0x30]
MOV byte ptr [RCX + 0x1],AL
MOV RAX,RSI
SHR RAX,0x30
MOV RCX,qword ptr [RDX + 0x30]
MOV byte ptr [RCX + 0x2],AL
MOV RAX,qword ptr [RDX + 0x30]
MOV dword ptr [RAX + 0x3],ESI
TEST byte ptr [RDX + 0x74],0x20
JNZ 0x00131ad5
LEA RAX,[RDX + 0x10]
MOV RSI,qword ptr [RDX + 0x10]
MOV RCX,qword ptr [RDX + 0x18]
TEST RSI,RSI
JZ 0x00131a90
MOV qword ptr [RSI + 0x18],RCX
MOV RSI,qword ptr [RAX]
JMP 0x00131a92
LAB_00131a90:
XOR ESI,ESI
LAB_00131a92:
MOV qword ptr [RCX],RSI
MOV RCX,qword ptr [RDI + 0x128]
MOV RSI,qword ptr [RDX + 0x20]
MOV R8D,dword ptr [RDI + 0x28]
DEC R8D
AND R8D,dword ptr [RSI + 0x28]
LEA RCX,[RCX + R8*0x8]
MOV qword ptr [RDX + 0x18],RCX
MOV RSI,qword ptr [RCX]
MOV qword ptr [RDX + 0x10],RSI
TEST RSI,RSI
JZ 0x00131ac3
MOV qword ptr [RSI + 0x18],RAX
LAB_00131ac3:
MOV qword ptr [RCX],RDX
OR byte ptr [RDX + 0x74],0x20
INC qword ptr [RDI + 0x58]
INC qword ptr [RDI + 0x168]
LAB_00131ad5:
POP RBP
RET
|
void check_and_set_lsn(long param_1,long param_2,long param_3)
{
long *plVar1;
ushort *puVar2;
int8 *puVar3;
long lVar4;
int8 uVar5;
puVar2 = *(ushort **)(param_3 + 0x30);
if ((long)((ulong)*(uint *)((long)puVar2 + 3) |
(ulong)(byte)puVar2[1] << 0x30 | (ulong)*puVar2 << 0x20) < param_2) {
*(char *)puVar2 = (char)((ulong)param_2 >> 0x20);
*(char *)(*(long *)(param_3 + 0x30) + 1) = (char)((ulong)param_2 >> 0x28);
*(char *)(*(long *)(param_3 + 0x30) + 2) = (char)((ulong)param_2 >> 0x30);
*(int *)(*(long *)(param_3 + 0x30) + 3) = (int)param_2;
if ((*(byte *)(param_3 + 0x74) & 0x20) == 0) {
puVar3 = *(int8 **)(param_3 + 0x18);
if (*(long *)(param_3 + 0x10) == 0) {
uVar5 = 0;
}
else {
*(int8 **)(*(long *)(param_3 + 0x10) + 0x18) = puVar3;
uVar5 = *(int8 *)(param_3 + 0x10);
}
*puVar3 = uVar5;
plVar1 = (long *)(*(long *)(param_1 + 0x128) +
(ulong)(*(int *)(param_1 + 0x28) - 1U &
*(uint *)(*(long *)(param_3 + 0x20) + 0x28)) * 8);
*(long **)(param_3 + 0x18) = plVar1;
lVar4 = *plVar1;
*(long *)(param_3 + 0x10) = lVar4;
if (lVar4 != 0) {
*(int8 **)(lVar4 + 0x18) = (int8 *)(param_3 + 0x10);
}
*plVar1 = param_3;
*(byte *)(param_3 + 0x74) = *(byte *)(param_3 + 0x74) | 0x20;
*(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1;
*(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + 1;
}
}
return;
}
| |
24,622 | my_uca_generate_pages | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_generate_pages(MY_CHARSET_LOADER *loader,
MY_UCA_WEIGHT_LEVEL *dst,
const MY_UCA_WEIGHT_LEVEL *src,
uint npages)
{
uint page;
for (page= 0; page < npages; page++)
{
if (dst->weights[page])
{
/* A page with explicit weights with no special rules */
continue;
}
if (!dst->lengths[page])
{
/*
A page with implicit weights with no special rules.
Keep dst->weights[page]==NULL and dst->lengths[page]==0.
Weights for this page will be generated at run time algorithmically,
using my_uca_scanner_next_implicit().
*/
continue;
}
/* Found a page with some special rules. */
if (my_uca_generate_page(loader, dst, src, page))
return TRUE;
}
return FALSE;
} | O0 | c | my_uca_generate_pages:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x56298
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x28(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x5625a
jmp 0x5628d
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x28(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
jne 0x5626d
jmp 0x5628d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x28(%rbp), %ecx
callq 0x56600
cmpb $0x0, %al
je 0x5628b
movb $0x1, -0x1(%rbp)
jmp 0x5629c
jmp 0x5628d
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5623e
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_generate_pages:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], 0
loc_5623E:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_24]
jnb short loc_56298
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov ecx, [rbp+var_28]
cmp qword ptr [rax+rcx*8], 0
jz short loc_5625A
jmp short loc_5628D
loc_5625A:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov ecx, [rbp+var_28]
cmp byte ptr [rax+rcx], 0
jnz short loc_5626D
jmp short loc_5628D
loc_5626D:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_28]
call my_uca_generate_page
cmp al, 0
jz short loc_5628B
mov [rbp+var_1], 1
jmp short loc_5629C
loc_5628B:
jmp short $+2
loc_5628D:
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp short loc_5623E
loc_56298:
mov [rbp+var_1], 0
loc_5629C:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_generate_pages(long long a1, long long a2, long long a3, unsigned int a4)
{
unsigned int i; // [rsp+8h] [rbp-28h]
for ( i = 0; i < a4; ++i )
{
if ( !*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * i)
&& *(_BYTE *)(*(_QWORD *)(a2 + 8) + i)
&& (unsigned __int8)my_uca_generate_page(a1, a2, a3, i) )
{
return 1;
}
}
return 0;
}
| my_uca_generate_pages:
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 dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],0x0
LAB_0015623e:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x00156298
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x28]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x0015625a
JMP 0x0015628d
LAB_0015625a:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x28]
CMP byte ptr [RAX + RCX*0x1],0x0
JNZ 0x0015626d
JMP 0x0015628d
LAB_0015626d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x28]
CALL 0x00156600
CMP AL,0x0
JZ 0x0015628b
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015629c
LAB_0015628b:
JMP 0x0015628d
LAB_0015628d:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0015623e
LAB_00156298:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015629c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_generate_pages(int8 param_1,long param_2,int8 param_3,uint param_4)
{
char cVar1;
uint local_30;
local_30 = 0;
while( true ) {
if (param_4 <= local_30) {
return 0;
}
if (((*(long *)(*(long *)(param_2 + 0x10) + (ulong)local_30 * 8) == 0) &&
(*(char *)(*(long *)(param_2 + 8) + (ulong)local_30) != '\0')) &&
(cVar1 = my_uca_generate_page(param_1,param_2,param_3,local_30), cVar1 != '\0')) break;
local_30 = local_30 + 1;
}
return 1;
}
| |
24,623 | test_connect | eloqsql/libmariadb/unittest/libmariadb/my_test.h | MYSQL *test_connect(struct my_tests_st *test)
{
MYSQL *mysql;
int i= 0, rc;
int timeout= 10;
my_bool truncation_report= 1;
if (!(mysql = mysql_init(NULL))) {
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(mysql, MYSQL_REPORT_DATA_TRUNCATION, &truncation_report);
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout);
if (plugindir)
mysql_options(mysql, MYSQL_PLUGIN_DIR, plugindir);
/* option handling */
if (test && test->options) {
while (test->options[i].option)
{
if (mysql_options(mysql, test->options[i].option, test->options[i].value)) {
diag("Couldn't set option %d. Error (%d) %s", test->options[i].option,
mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
i++;
}
}
if (!(my_test_connect(mysql, hostname, username, password,
schema, port, socketname, (test) ? test->connect_flags:0)))
{
diag("Couldn't establish connection to server %s. Error (%d): %s",
hostname, mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
/* Clear sql_mode when establishing a new connection. */
rc= mysql_query(mysql, "SET sql_mode=''");
if (rc)
{
diag("Error (%d): %s (%d) in %s line %d", rc, mysql_error(mysql),
mysql_errno(mysql), __FILE__, __LINE__);
return(NULL);
}
return(mysql);
} | O3 | c | test_connect:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0xa, -0x20(%rbp)
movb $0x1, -0x19(%rbp)
xorl %edi, %edi
callq 0x29915
testq %rax, %rax
je 0x151ff
movq %rax, %rbx
leaq -0x19(%rbp), %rdx
movq %rax, %rdi
movl $0x13, %esi
callq 0x2db81
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2db81
movq 0x4ddc1(%rip), %rdx # 0x62e58
testq %rdx, %rdx
je 0x150a9
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2db81
testq %r14, %r14
je 0x150f0
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x150ea
movl (%rax), %esi
testl %esi, %esi
je 0x150ea
movl $0x10, %r15d
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x2db81
testl %eax, %eax
jne 0x151b4
movq 0x20(%r14), %rax
movl (%rax,%r15), %esi
addq %r15, %rax
addq $0x10, %r15
testl %esi, %esi
jne 0x150c3
movq 0x18(%r14), %rax
jmp 0x150f2
xorl %eax, %eax
movq 0x4dd27(%rip), %rsi # 0x62e20
movq 0x4dd28(%rip), %rdx # 0x62e28
movq 0x4dd29(%rip), %rcx # 0x62e30
movq 0x4dd2a(%rip), %r8 # 0x62e38
movl 0x4dd2b(%rip), %r9d # 0x62e40
movq %rbx, %rdi
pushq %rax
pushq 0x4dd29(%rip) # 0x62e48
callq 0x1520d
addq $0x10, %rsp
testq %rax, %rax
je 0x15181
leaq 0x31345(%rip), %rsi # 0x46479
movq %rbx, %rdi
callq 0x2bbf9
testl %eax, %eax
je 0x151f1
movl %eax, %r14d
movq %rbx, %rdi
callq 0x2dc72
movq %rax, %r15
movq %rbx, %rdi
callq 0x2dc5d
leaq 0x311c4(%rip), %rdi # 0x46325
leaq 0x310a0(%rip), %r8 # 0x46208
xorl %ebx, %ebx
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x22a, %r9d # imm = 0x22A
xorl %eax, %eax
callq 0x264ef
jmp 0x151f1
movq 0x4dc98(%rip), %r14 # 0x62e20
movq %rbx, %rdi
callq 0x2dc5d
movl %eax, %r15d
movq %rbx, %rdi
callq 0x2dc72
leaq 0x3129c(%rip), %rdi # 0x4643e
movq %r14, %rsi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x264ef
jmp 0x151e7
movq 0x20(%r14), %rax
movl -0x10(%rax,%r15), %r14d
movq %rbx, %rdi
callq 0x2dc5d
movl %eax, %r15d
movq %rbx, %rdi
callq 0x2dc72
leaq 0x31241(%rip), %rdi # 0x46418
movl %r14d, %esi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x264ef
movq %rbx, %rdi
callq 0x2b66c
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x311e2(%rip), %rdi # 0x463e8
xorl %eax, %eax
callq 0x26438
| test_connect:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdi
mov [rbp+var_20], 0Ah
mov [rbp+var_19], 1
xor edi, edi
call mysql_init
test rax, rax
jz loc_151FF
mov rbx, rax
lea rdx, [rbp+var_19]
mov rdi, rax
mov esi, 13h
call mysql_options
lea rdx, [rbp+var_20]
mov rdi, rbx
xor esi, esi
call mysql_options
mov rdx, cs:plugindir
test rdx, rdx
jz short loc_150A9
mov rdi, rbx
mov esi, 16h
call mysql_options
loc_150A9:
test r14, r14
jz short loc_150F0
mov rax, [r14+20h]
test rax, rax
jz short loc_150EA
mov esi, [rax]
test esi, esi
jz short loc_150EA
mov r15d, 10h
loc_150C3:
mov rdx, [rax+8]
mov rdi, rbx
call mysql_options
test eax, eax
jnz loc_151B4
mov rax, [r14+20h]
mov esi, [rax+r15]
add rax, r15
add r15, 10h
test esi, esi
jnz short loc_150C3
loc_150EA:
mov rax, [r14+18h]
jmp short loc_150F2
loc_150F0:
xor eax, eax
loc_150F2:
mov rsi, cs:hostname
mov rdx, cs:username
mov rcx, cs:password
mov r8, cs:schema
mov r9d, cs:port
mov rdi, rbx
push rax
push cs:socketname
call my_test_connect
add rsp, 10h
test rax, rax
jz short loc_15181
lea rsi, aSetSqlMode; "SET sql_mode=''"
mov rdi, rbx
call mysql_query
test eax, eax
jz loc_151F1
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
xor ebx, ebx
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 22Ah
xor eax, eax
call diag
jmp short loc_151F1
loc_15181:
mov r14, cs:hostname
mov rdi, rbx
call mysql_errno
mov r15d, eax
mov rdi, rbx
call mysql_error
lea rdi, aCouldnTEstabli; "Couldn't establish connection to server"...
mov rsi, r14
mov edx, r15d
mov rcx, rax
xor eax, eax
call diag
jmp short loc_151E7
loc_151B4:
mov rax, [r14+20h]
mov r14d, [rax+r15-10h]
mov rdi, rbx
call mysql_errno
mov r15d, eax
mov rdi, rbx
call mysql_error
lea rdi, aCouldnTSetOpti; "Couldn't set option %d. Error (%d) %s"
mov esi, r14d
mov edx, r15d
mov rcx, rax
xor eax, eax
call diag
loc_151E7:
mov rdi, rbx
call mysql_close
xor ebx, ebx
loc_151F1:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_151FF:
lea rdi, aNotEnoughMemor; "Not enough memory available - mysql_ini"...
xor eax, eax
call BAIL_OUT
| long long test_connect(long long a1, int a2)
{
long long v2; // rax
long long v3; // rax
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rbx
unsigned int *v9; // rax
long long v10; // rsi
long long v11; // r15
long long v12; // rax
long long v13; // rax
int v14; // eax
int v15; // r14d
int v16; // r15d
int v17; // eax
int v18; // r14d
int v19; // r15d
int v20; // eax
int v21; // r8d
int v22; // r9d
int v23; // r14d
int v24; // r15d
int v25; // eax
int v26; // r8d
int v27; // r9d
int v29; // [rsp+0h] [rbp-20h] BYREF
int v30; // [rsp+4h] [rbp-1Ch] BYREF
v30 = HIDWORD(v2);
v29 = 10;
HIBYTE(v30) = 1;
v3 = mysql_init(0LL);
if ( !v3 )
BAIL_OUT((unsigned int)"Not enough memory available - mysql_init failed", a2, v4, v5, v6, v7, v29);
v8 = v3;
mysql_options(v3, 19LL, (char *)&v30 + 3);
mysql_options(v8, 0LL, &v29);
if ( plugindir )
mysql_options(v8, 22LL, plugindir);
if ( a1 )
{
v9 = *(unsigned int **)(a1 + 32);
if ( v9 )
{
v10 = *v9;
if ( (_DWORD)v10 )
{
v11 = 16LL;
while ( !(unsigned int)mysql_options(v8, v10, *((_QWORD *)v9 + 1)) )
{
v12 = *(_QWORD *)(a1 + 32);
v10 = *(unsigned int *)(v12 + v11);
v9 = (unsigned int *)(v11 + v12);
v11 += 16LL;
if ( !(_DWORD)v10 )
goto LABEL_10;
}
v23 = *(_DWORD *)(*(_QWORD *)(a1 + 32) + v11 - 16);
v24 = mysql_errno(v8);
v25 = mysql_error(v8);
diag((unsigned int)"Couldn't set option %d. Error (%d) %s", v23, v24, v25, v26, v27);
goto LABEL_17;
}
}
LABEL_10:
v13 = *(_QWORD *)(a1 + 24);
}
else
{
v13 = 0LL;
}
if ( !my_test_connect(v8, hostname, username, password, schema, port, socketname, v13) )
{
v18 = hostname;
v19 = mysql_errno(v8);
v20 = mysql_error(v8);
diag((unsigned int)"Couldn't establish connection to server %s. Error (%d): %s", v18, v19, v20, v21, v22);
LABEL_17:
mysql_close(v8);
return 0LL;
}
v14 = mysql_query(v8, "SET sql_mode=''");
if ( v14 )
{
v15 = v14;
v16 = mysql_error(v8);
v17 = mysql_errno(v8);
v8 = 0LL;
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v15,
v16,
v17,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
554);
}
return v8;
}
| test_connect:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV dword ptr [RBP + -0x20],0xa
MOV byte ptr [RBP + -0x19],0x1
XOR EDI,EDI
CALL 0x00129915
TEST RAX,RAX
JZ 0x001151ff
MOV RBX,RAX
LEA RDX,[RBP + -0x19]
MOV RDI,RAX
MOV ESI,0x13
CALL 0x0012db81
LEA RDX,[RBP + -0x20]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0012db81
MOV RDX,qword ptr [0x00162e58]
TEST RDX,RDX
JZ 0x001150a9
MOV RDI,RBX
MOV ESI,0x16
CALL 0x0012db81
LAB_001150a9:
TEST R14,R14
JZ 0x001150f0
MOV RAX,qword ptr [R14 + 0x20]
TEST RAX,RAX
JZ 0x001150ea
MOV ESI,dword ptr [RAX]
TEST ESI,ESI
JZ 0x001150ea
MOV R15D,0x10
LAB_001150c3:
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x0012db81
TEST EAX,EAX
JNZ 0x001151b4
MOV RAX,qword ptr [R14 + 0x20]
MOV ESI,dword ptr [RAX + R15*0x1]
ADD RAX,R15
ADD R15,0x10
TEST ESI,ESI
JNZ 0x001150c3
LAB_001150ea:
MOV RAX,qword ptr [R14 + 0x18]
JMP 0x001150f2
LAB_001150f0:
XOR EAX,EAX
LAB_001150f2:
MOV RSI,qword ptr [0x00162e20]
MOV RDX,qword ptr [0x00162e28]
MOV RCX,qword ptr [0x00162e30]
MOV R8,qword ptr [0x00162e38]
MOV R9D,dword ptr [0x00162e40]
MOV RDI,RBX
PUSH RAX
PUSH qword ptr [0x00162e48]
CALL 0x0011520d
ADD RSP,0x10
TEST RAX,RAX
JZ 0x00115181
LEA RSI,[0x146479]
MOV RDI,RBX
CALL 0x0012bbf9
TEST EAX,EAX
JZ 0x001151f1
MOV R14D,EAX
MOV RDI,RBX
CALL 0x0012dc72
MOV R15,RAX
MOV RDI,RBX
CALL 0x0012dc5d
LEA RDI,[0x146325]
LEA R8,[0x146208]
XOR EBX,EBX
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x22a
XOR EAX,EAX
CALL 0x001264ef
JMP 0x001151f1
LAB_00115181:
MOV R14,qword ptr [0x00162e20]
MOV RDI,RBX
CALL 0x0012dc5d
MOV R15D,EAX
MOV RDI,RBX
CALL 0x0012dc72
LEA RDI,[0x14643e]
MOV RSI,R14
MOV EDX,R15D
MOV RCX,RAX
XOR EAX,EAX
CALL 0x001264ef
JMP 0x001151e7
LAB_001151b4:
MOV RAX,qword ptr [R14 + 0x20]
MOV R14D,dword ptr [RAX + R15*0x1 + -0x10]
MOV RDI,RBX
CALL 0x0012dc5d
MOV R15D,EAX
MOV RDI,RBX
CALL 0x0012dc72
LEA RDI,[0x146418]
MOV ESI,R14D
MOV EDX,R15D
MOV RCX,RAX
XOR EAX,EAX
CALL 0x001264ef
LAB_001151e7:
MOV RDI,RBX
CALL 0x0012b66c
XOR EBX,EBX
LAB_001151f1:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001151ff:
LEA RDI,[0x1463e8]
XOR EAX,EAX
CALL 0x00126438
|
long test_connect(long param_1)
{
int iVar1;
int4 uVar2;
int4 uVar3;
int8 in_RAX;
long lVar4;
int *piVar5;
int8 uVar6;
int8 uVar7;
long lVar8;
int4 local_28;
int4 uStack_24;
_local_28 = CONCAT44((int)((ulong)in_RAX >> 0x20),10);
_local_28 = CONCAT17(1,_local_28);
lVar4 = mysql_init(0);
if (lVar4 == 0) {
/* WARNING: Subroutine does not return */
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(lVar4,0x13,(long)&uStack_24 + 3);
mysql_options(lVar4,0,&local_28);
if (plugindir != 0) {
mysql_options(lVar4,0x16);
}
if (param_1 == 0) {
uVar6 = 0;
}
else {
piVar5 = *(int **)(param_1 + 0x20);
if ((piVar5 != (int *)0x0) && (iVar1 = *piVar5, iVar1 != 0)) {
lVar8 = 0x10;
do {
iVar1 = mysql_options(lVar4,iVar1,*(int8 *)(piVar5 + 2));
if (iVar1 != 0) {
uVar2 = *(int4 *)(*(long *)(param_1 + 0x20) + -0x10 + lVar8);
uVar3 = mysql_errno(lVar4);
uVar6 = mysql_error(lVar4);
diag("Couldn\'t set option %d. Error (%d) %s",uVar2,uVar3,uVar6);
goto LAB_001151e7;
}
iVar1 = *(int *)(*(long *)(param_1 + 0x20) + lVar8);
piVar5 = (int *)(*(long *)(param_1 + 0x20) + lVar8);
lVar8 = lVar8 + 0x10;
} while (iVar1 != 0);
}
uVar6 = *(int8 *)(param_1 + 0x18);
}
lVar8 = my_test_connect(lVar4,hostname,username,password,schema,port,socketname,uVar6);
uVar6 = hostname;
if (lVar8 == 0) {
uVar2 = mysql_errno(lVar4);
uVar7 = mysql_error(lVar4);
diag("Couldn\'t establish connection to server %s. Error (%d): %s",uVar6,uVar2,uVar7);
LAB_001151e7:
mysql_close(lVar4);
lVar4 = 0;
}
else {
iVar1 = mysql_query(lVar4,"SET sql_mode=\'\'");
if (iVar1 != 0) {
uVar6 = mysql_error(lVar4);
uVar2 = mysql_errno(lVar4);
lVar4 = 0;
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar6,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x22a
);
}
}
return lVar4;
}
| |
24,624 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O3 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp # imm = 0x1010
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x1030(%rbp), %rsi
movq %r14, %rdi
callq 0x294c0
testq %rax, %rax
je 0xa0e15
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd710c
xorl %eax, %eax
jmp 0xa0e64
callq 0x29790
movl (%rax), %r12d
callq 0xa1ac2
movl %r12d, (%rax)
testb $0x10, %r15b
je 0xa0e43
callq 0xa1ac2
movl (%rax), %ecx
movl $0x1a, %edi
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x9dfd3
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa8b3c
callq 0xa1ac2
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
leal -0x1(,%rcx,2), %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0xa0e83
addq $0x1010, %rsp # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
| my_realpath:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 1010h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rsi, [rbp+var_1030]
mov rdi, r14
call _realpath
test rax, rax
jz short loc_A0E15
mov edx, 1FFh
mov rdi, rbx
mov rsi, rax
call strmake
xor eax, eax
jmp short loc_A0E64
loc_A0E15:
call ___errno_location
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test r15b, 10h
jz short loc_A0E43
call _my_thread_var
mov ecx, [rax]
mov edi, 1Ah
xor esi, esi
mov rdx, r14
xor eax, eax
call my_error
loc_A0E43:
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_load_path
call _my_thread_var
xor ecx, ecx
cmp dword ptr [rax], 2
setz cl
lea eax, ds:0FFFFFFFFFFFFFFFFh[rcx*2]
loc_A0E64:
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_A0E83
add rsp, 1010h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_A0E83:
call ___stack_chk_fail
| long long my_realpath(long long a1, long long a2, char a3)
{
long long v4; // rax
int v6; // r12d
unsigned int *v7; // rax
_BYTE v8[4104]; // [rsp+0h] [rbp-1030h] BYREF
unsigned long long v9; // [rsp+1008h] [rbp-28h]
v9 = __readfsqword(0x28u);
v4 = realpath(a2, v8);
if ( v4 )
{
strmake(a1, v4, 511LL);
return 0LL;
}
else
{
v6 = *(_DWORD *)__errno_location(a2);
*(_DWORD *)my_thread_var(a2) = v6;
if ( (a3 & 0x10) != 0 )
{
v7 = (unsigned int *)my_thread_var(a2);
my_error(0x1Au, 0LL, a2, *v7);
}
my_load_path(a1, a2, 0LL);
return 2 * (unsigned int)(*(_DWORD *)my_thread_var(a1) == 2) - 1;
}
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1010
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RSI,[RBP + -0x1030]
MOV RDI,R14
CALL 0x001294c0
TEST RAX,RAX
JZ 0x001a0e15
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001d710c
XOR EAX,EAX
JMP 0x001a0e64
LAB_001a0e15:
CALL 0x00129790
MOV R12D,dword ptr [RAX]
CALL 0x001a1ac2
MOV dword ptr [RAX],R12D
TEST R15B,0x10
JZ 0x001a0e43
CALL 0x001a1ac2
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR ESI,ESI
MOV RDX,R14
XOR EAX,EAX
CALL 0x0019dfd3
LAB_001a0e43:
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x001a8b3c
CALL 0x001a1ac2
XOR ECX,ECX
CMP dword ptr [RAX],0x2
SETZ CL
LEA EAX,[-0x1 + RCX*0x2]
LAB_001a0e64:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x001a0e83
ADD RSP,0x1010
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001a0e83:
CALL 0x00129250
|
int my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
char local_1038 [4104];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = realpath(param_2,local_1038);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
iVar1 = (uint)(*piVar3 == 2) * 2 + -1;
}
else {
strmake(param_1,pcVar2,0x1ff);
iVar1 = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
24,625 | ft_parse | eloqsql/storage/myisam/ft_parser.c | int ft_parse(TREE *wtree, uchar *doc, int doclen,
struct st_mysql_ftparser *parser,
MYSQL_FTPARSER_PARAM *param, MEM_ROOT *mem_root)
{
MY_FT_PARSER_PARAM my_param;
DBUG_ENTER("ft_parse");
DBUG_ASSERT(parser);
my_param.wtree= wtree;
my_param.mem_root= mem_root;
param->mysql_parse= ft_parse_internal;
param->mysql_add_word= ft_add_word;
param->mysql_ftparam= &my_param;
param->cs= wtree->custom_arg;
param->doc= (char*) doc;
param->length= doclen;
param->mode= MYSQL_FTPARSER_SIMPLE_MODE;
DBUG_RETURN(parser->parse(param));
} | O0 | c | ft_parse:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
jmp 0xa2621
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
leaq 0x74(%rip), %rcx # 0xa26b0
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
leaq 0x116(%rip), %rcx # 0xa2760
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
leaq -0x40(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0x230(%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x28(%rax)
movl -0x14(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x28(%rbp), %rax
movl $0x0, 0x38(%rax)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rdi
callq *%rax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ft_parse:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
jmp short $+2
loc_A2621:
mov rax, [rbp+var_8]
mov [rbp+var_40], rax
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
lea rcx, ft_parse_internal
mov [rax], rcx
mov rax, [rbp+var_28]
lea rcx, ft_add_word
mov [rax+8], rcx
mov rax, [rbp+var_28]
lea rcx, [rbp+var_40]
mov [rax+18h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+230h]
mov rax, [rbp+var_28]
mov [rax+20h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_28]
mov [rax+28h], rcx
mov ecx, [rbp+var_14]
mov rax, [rbp+var_28]
mov [rax+30h], ecx
mov rax, [rbp+var_28]
mov dword ptr [rax+38h], 0
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rdi, [rbp+var_28]
call rax
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
add rsp, 50h
pop rbp
retn
| long long ft_parse(long long a1, long long a2, int a3, long long a4, _QWORD *a5, long long a6)
{
_QWORD v7[3]; // [rsp+10h] [rbp-40h] BYREF
_QWORD *v8; // [rsp+28h] [rbp-28h]
long long v9; // [rsp+30h] [rbp-20h]
int v10; // [rsp+3Ch] [rbp-14h]
long long v11; // [rsp+40h] [rbp-10h]
long long v12; // [rsp+48h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a4;
v8 = a5;
v7[2] = a6;
v7[0] = a1;
v7[1] = a6;
*a5 = ft_parse_internal;
v8[1] = ft_add_word;
v8[3] = v7;
v8[4] = *(_QWORD *)(v12 + 560);
v8[5] = v11;
*((_DWORD *)v8 + 12) = v10;
*((_DWORD *)v8 + 14) = 0;
return (*(unsigned int ( **)(_QWORD *))(v9 + 8))(v8);
}
| ft_parse:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
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 qword ptr [RBP + -0x30],R9
JMP 0x001a2621
LAB_001a2621:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[0x1a26b0]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[0x1a2760]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[RBP + -0x40]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x230]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x28],RCX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x30],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x38],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + -0x28]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD RSP,0x50
POP RBP
RET
|
int4
ft_parse(long param_1,int8 param_2,int4 param_3,long param_4,int8 *param_5,
int8 param_6)
{
int4 uVar1;
long local_48;
int8 local_40;
int8 local_38;
int8 *local_30;
long local_28;
int4 local_1c;
int8 local_18;
long local_10;
*param_5 = ft_parse_internal;
param_5[1] = ft_add_word;
param_5[3] = &local_48;
param_5[4] = *(int8 *)(param_1 + 0x230);
param_5[5] = param_2;
*(int4 *)(param_5 + 6) = param_3;
*(int4 *)(param_5 + 7) = 0;
local_48 = param_1;
local_40 = param_6;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
uVar1 = (**(code **)(param_4 + 8))(param_5);
return uVar1;
}
| |
24,626 | my_fprintf | eloqsql/strings/my_vsnprintf.c | int my_fprintf(FILE *stream, const char* format, ...)
{
int result;
va_list args;
va_start(args, format);
result= my_vfprintf(stream, format, args);
va_end(args);
return result;
} | O3 | c | my_fprintf:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
leaq -0xd0(%rbp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0xd6fa0
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)
leaq -0x20(%rbp), %rdx
movq %r10, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, (%rdx)
callq 0xd6e64
addq $0xd0, %rsp
popq %rbp
retq
nop
| my_fprintf:
push rbp
mov rbp, rsp
sub rsp, 0D0h
lea r10, [rbp+var_D0]
mov [r10+10h], rdx
mov [r10+18h], rcx
mov [r10+20h], r8
mov [r10+28h], r9
test al, al
jz short loc_D6FA0
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_D6FA0:
lea rdx, [rbp+var_20]
mov [rdx+10h], r10
lea rax, [rbp+arg_0]
mov [rdx+8], rax
mov rax, 3000000010h
mov [rdx], rax
call my_vfprintf
add rsp, 0D0h
pop rbp
retn
| long long my_fprintf(
long long a1,
unsigned __int8 *a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-D0h] BYREF
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v16;
v29[1] = &a15;
v29[0] = 0x3000000010LL;
return my_vfprintf(a1, a2, (unsigned int *)v29);
}
| my_fprintf:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
LEA R10,[RBP + -0xd0]
MOV qword ptr [R10 + 0x10],RDX
MOV qword ptr [R10 + 0x18],RCX
MOV qword ptr [R10 + 0x20],R8
MOV qword ptr [R10 + 0x28],R9
TEST AL,AL
JZ 0x001d6fa0
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_001d6fa0:
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX + 0x10],R10
LEA RAX,[RBP + 0x10]
MOV qword ptr [RDX + 0x8],RAX
MOV RAX,0x3000000010
MOV qword ptr [RDX],RAX
CALL 0x001d6e64
ADD RSP,0xd0
POP RBP
RET
|
void my_fprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int1 local_d8 [16];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
int1 *local_20;
int1 *local_18;
local_18 = local_d8;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_20 = &stack0x00000008;
local_28 = 0x3000000010;
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
my_vfprintf();
return;
}
| |
24,627 | spdlog::details::backtracer::backtracer(spdlog::details::backtracer const&) | AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/details/backtracer-inl.h | SPDLOG_INLINE backtracer::backtracer(const backtracer &other) {
std::lock_guard<std::mutex> lock(other.mutex_);
enabled_ = other.enabled();
messages_ = other.messages_;
} | O3 | c | spdlog::details::backtracer::backtracer(spdlog::details::backtracer const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movq $0x0, 0x60(%rdi)
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x19(%rdi)
movq %rsi, %rdi
callq 0x11350
testl %eax, %eax
jne 0x2c4cf
movb 0x28(%r14), %al
andb $0x1, %al
xchgb %al, 0x28(%rbx)
leaq 0x30(%rbx), %rax
movups 0x30(%r14), %xmm0
movups 0x40(%r14), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x50(%rbx), %rdi
leaq 0x50(%r14), %rsi
callq 0x327c6
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x112d0
movl %eax, %edi
callq 0x114f0
movq %rax, %r15
movq %r14, %rdi
callq 0x112d0
jmp 0x2c4e6
movq %rax, %r15
addq $0x50, %rbx
movq %rbx, %rdi
callq 0x32bcc
movq %r15, %rdi
callq 0x11760
| _ZN6spdlog7details10backtracerC2ERKS1_:
push r15; Alternative name is 'spdlog::details::backtracer::backtracer(spdlog::details::backtracer const&)'
push r14
push rbx
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+30h], xmm0
mov qword ptr [rdi+60h], 0
movups xmmword ptr [rdi], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi+19h], xmm0
mov rdi, rsi
call _pthread_mutex_lock
test eax, eax
jnz short loc_2C4CF
mov al, [r14+28h]
and al, 1
xchg al, [rbx+28h]
lea rax, [rbx+30h]
movups xmm0, xmmword ptr [r14+30h]
movups xmm1, xmmword ptr [r14+40h]
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, [rbx+50h]
lea rsi, [r14+50h]
call _ZNSt6vectorIN6spdlog7details14log_msg_bufferESaIS2_EEaSERKS4_; std::vector<spdlog::details::log_msg_buffer>::operator=(std::vector<spdlog::details::log_msg_buffer> const&)
mov rdi, r14
pop rbx
pop r14
pop r15
jmp _pthread_mutex_unlock
loc_2C4CF:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov r15, rax
mov rdi, r14
call _pthread_mutex_unlock
jmp short loc_2C4E6
mov r15, rax
loc_2C4E6:
add rbx, 50h ; 'P'
mov rdi, rbx
call _ZNSt6vectorIN6spdlog7details14log_msg_bufferESaIS2_EED2Ev; std::vector<spdlog::details::log_msg_buffer>::~vector()
mov rdi, r15
call __Unwind_Resume
| long long spdlog::details::backtracer::backtracer(
spdlog::details::backtracer *this,
const spdlog::details::backtracer *a2)
{
int v2; // eax
__int128 v3; // xmm0
*((_OWORD *)this + 5) = 0LL;
*((_OWORD *)this + 4) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_QWORD *)this + 12) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)((char *)this + 25) = 0LL;
v2 = pthread_mutex_lock(a2);
if ( v2 )
std::__throw_system_error(v2);
*((_BYTE *)this + 40) = *((_BYTE *)a2 + 40) & 1;
v3 = *((_OWORD *)a2 + 3);
*((_OWORD *)this + 4) = *((_OWORD *)a2 + 4);
*((_OWORD *)this + 3) = v3;
std::vector<spdlog::details::log_msg_buffer>::operator=((char *)this + 80, (char *)a2 + 80);
return pthread_mutex_unlock(a2);
}
| backtracer:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RDI + 0x60],0x0
MOVUPS xmmword ptr [RDI],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI + 0x19],XMM0
MOV RDI,RSI
CALL 0x00111350
TEST EAX,EAX
JNZ 0x0012c4cf
MOV AL,byte ptr [R14 + 0x28]
AND AL,0x1
XCHG byte ptr [RBX + 0x28],AL
LEA RAX,[RBX + 0x30]
MOVUPS XMM0,xmmword ptr [R14 + 0x30]
MOVUPS XMM1,xmmword ptr [R14 + 0x40]
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[RBX + 0x50]
LEA RSI,[R14 + 0x50]
LAB_0012c4bd:
CALL 0x001327c6
MOV RDI,R14
POP RBX
POP R14
POP R15
JMP 0x001112d0
LAB_0012c4cf:
MOV EDI,EAX
CALL 0x001114f0
|
/* spdlog::details::backtracer::backtracer(spdlog::details::backtracer const&) */
void __thiscall spdlog::details::backtracer::backtracer(backtracer *this,backtracer *param_1)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int iVar4;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x19) = 0;
*(int8 *)(this + 0x21) = 0;
iVar4 = pthread_mutex_lock((pthread_mutex_t *)param_1);
if (iVar4 == 0) {
LOCK();
this[0x28] = (backtracer)((byte)param_1[0x28] & 1);
UNLOCK();
uVar1 = *(int8 *)(param_1 + 0x30);
uVar2 = *(int8 *)(param_1 + 0x38);
uVar3 = *(int8 *)(param_1 + 0x48);
*(int8 *)(this + 0x40) = *(int8 *)(param_1 + 0x40);
*(int8 *)(this + 0x48) = uVar3;
*(int8 *)(this + 0x30) = uVar1;
*(int8 *)(this + 0x38) = uVar2;
/* try { // try from 0012c4bd to 0012c4c1 has its CatchHandler @ 0012c4d6 */
std::vector<spdlog::details::log_msg_buffer,std::allocator<spdlog::details::log_msg_buffer>>::
operator=((vector<spdlog::details::log_msg_buffer,std::allocator<spdlog::details::log_msg_buffer>>
*)(this + 0x50),(vector *)(param_1 + 0x50));
pthread_mutex_unlock((pthread_mutex_t *)param_1);
return;
}
/* try { // try from 0012c4cf to 0012c4d5 has its CatchHandler @ 0012c4e3 */
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar4);
}
| |
24,628 | bf_divrem | bluesky950520[P]quickjs/libbf.c | int bf_divrem(bf_t *q, bf_t *r, const bf_t *a, const bf_t *b,
limb_t prec, bf_flags_t flags, int rnd_mode)
{
bf_t a1_s, *a1 = &a1_s;
bf_t b1_s, *b1 = &b1_s;
int q_sign, ret;
BOOL is_ceil, is_rndn;
assert(q != a && q != b);
assert(r != a && r != b);
assert(q != r);
if (a->len == 0 || b->len == 0) {
bf_set_zero(q, 0);
if (a->expn == BF_EXP_NAN || b->expn == BF_EXP_NAN) {
bf_set_nan(r);
return 0;
} else if (a->expn == BF_EXP_INF || b->expn == BF_EXP_ZERO) {
bf_set_nan(r);
return BF_ST_INVALID_OP;
} else {
bf_set(r, a);
return bf_round(r, prec, flags);
}
}
q_sign = a->sign ^ b->sign;
is_rndn = (rnd_mode == BF_RNDN || rnd_mode == BF_RNDNA);
switch(rnd_mode) {
default:
case BF_RNDZ:
case BF_RNDN:
case BF_RNDNA:
is_ceil = FALSE;
break;
case BF_RNDD:
is_ceil = q_sign;
break;
case BF_RNDU:
is_ceil = q_sign ^ 1;
break;
case BF_RNDA:
is_ceil = TRUE;
break;
case BF_DIVREM_EUCLIDIAN:
is_ceil = a->sign;
break;
}
a1->expn = a->expn;
a1->tab = a->tab;
a1->len = a->len;
a1->sign = 0;
b1->expn = b->expn;
b1->tab = b->tab;
b1->len = b->len;
b1->sign = 0;
/* XXX: could improve to avoid having a large 'q' */
bf_tdivremu(q, r, a1, b1);
if (bf_is_nan(q) || bf_is_nan(r))
goto fail;
if (r->len != 0) {
if (is_rndn) {
int res;
b1->expn--;
res = bf_cmpu(r, b1);
b1->expn++;
if (res > 0 ||
(res == 0 &&
(rnd_mode == BF_RNDNA ||
get_bit(q->tab, q->len, q->len * LIMB_BITS - q->expn)))) {
goto do_sub_r;
}
} else if (is_ceil) {
do_sub_r:
ret = bf_add_si(q, q, 1, BF_PREC_INF, BF_RNDZ);
ret |= bf_sub(r, r, b1, BF_PREC_INF, BF_RNDZ);
if (ret & BF_ST_MEM_ERROR)
goto fail;
}
}
r->sign ^= a->sign;
q->sign = q_sign;
return bf_round(r, prec, flags);
fail:
bf_set_nan(q);
bf_set_nan(r);
return BF_ST_MEM_ERROR;
} | O1 | c | bf_divrem:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %ebp
movq %r8, 0x20(%rsp)
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq 0x18(%rdx), %rcx
testq %rcx, %rcx
je 0x85f43
movq 0x18(%r13), %rax
testq %rax, %rax
je 0x85f43
movl %ebp, 0xc(%rsp)
movl 0xb0(%rsp), %edi
movl 0x8(%r15), %esi
movl 0x8(%r13), %r9d
xorl %esi, %r9d
xorl %edx, %edx
movq %rdi, 0x18(%rsp)
addl $-0x2, %edi
movl $0x0, %r8d
cmpl $0x4, %edi
ja 0x86025
leaq 0x1b271(%rip), %r8 # 0xa11a0
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
xorl %r8d, %r8d
jmpq *%rdi
movl %r9d, %r8d
jmp 0x86025
cmpq $0x0, 0x18(%r12)
je 0x85f6a
movq (%r12), %rax
movq 0x20(%r12), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r12)
movq $0x0, 0x18(%r12)
leaq 0x1(%r14), %rax
movq %rax, 0x10(%r12)
movl $0x0, 0x8(%r12)
movq 0x10(%r15), %rcx
cmpq %r14, %rcx
je 0x85f8e
movq 0x10(%r13), %rdx
cmpq %r14, %rdx
jne 0x85fc2
cmpq $0x0, 0x18(%rbx)
je 0x85fb0
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
xorl %eax, %eax
jmp 0x861dc
leaq -0x1(%r14), %rsi
cmpq %rsi, %rcx
setne %cl
cmpq %rax, %rdx
setne %al
testb %al, %cl
jne 0x86284
cmpq $0x0, 0x18(%rbx)
je 0x85ffc
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x1, %eax
jmp 0x861dc
movl $0x1, %r8d
jmp 0x86025
movl %r9d, %r8d
xorl $0x1, %r8d
jmp 0x86025
movl %esi, %r8d
movl %r8d, 0x10(%rsp)
movl %r9d, 0x14(%rsp)
movq 0x10(%r15), %rbp
leaq 0x50(%rsp), %rdi
movq %rbp, 0x10(%rdi)
movq 0x20(%r15), %rsi
movq %rsi, 0x20(%rdi)
movq %rcx, 0x18(%rdi)
movl %edx, 0x8(%rdi)
movq 0x10(%r13), %r14
leaq 0x28(%rsp), %rsi
movq %r14, 0x10(%rsi)
movq 0x20(%r13), %rcx
movq %rcx, 0x20(%rsi)
movq %rax, 0x18(%rsi)
movl %edx, 0x8(%rsi)
callq 0x84816
testl %eax, %eax
js 0x86111
subq %r14, %rbp
cmpq $0x2, %rbp
movl $0x1, %ecx
cmovgeq %rbp, %rcx
incq %rcx
leaq 0xf51(%rip), %r9 # 0x86fdf
leaq 0x50(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r12, %rdi
movl $0x1, %r8d
callq 0x86f26
movq 0x18(%r12), %rcx
testq %rcx, %rcx
je 0x860c2
movq %r12, %rdi
xorl %esi, %esi
movl $0x11, %edx
xorl %r8d, %r8d
callq 0x84212
leaq 0x28(%rsp), %rdx
movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rcx
movl $0x1, %r8d
callq 0x85afd
leaq 0xedc(%rip), %r9 # 0x86fc8
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
movq %rbx, %rdx
movq %r13, %rcx
movl $0x1, %r8d
callq 0x86f26
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
jmp 0x86161
movl $0x0, 0x8(%r12)
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
leaq 0x1(%r14), %rax
movq %rax, 0x10(%r12)
cmpq $0x0, 0x18(%r12)
je 0x86154
movq (%r12), %rax
movq 0x20(%r12), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r12)
movq $0x0, 0x18(%r12)
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x84079
movl 0xc(%rsp), %ebp
movq 0x10(%r12), %r13
cmpq %r14, %r13
je 0x86175
cmpq %r14, 0x10(%rbx)
jne 0x861eb
cmpq $0x0, 0x18(%r12)
je 0x8619c
movq (%r12), %rax
movq 0x20(%r12), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r12)
movq $0x0, 0x18(%r12)
movq %r14, 0x10(%r12)
movl $0x0, 0x8(%r12)
cmpq $0x0, 0x18(%rbx)
je 0x861cc
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x18(%rbx)
je 0x86318
testl $0xfffffffb, 0x18(%rsp) # imm = 0xFFFFFFFB
jne 0x862bc
leaq 0x28(%rsp), %r14
movq 0x10(%r14), %rbp
leaq -0x1(%rbp), %rax
movq %rax, 0x10(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84816
movq %rbp, 0x10(%r14)
movl 0xc(%rsp), %ebp
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
testl %eax, %eax
jg 0x862c3
jne 0x86318
cmpl $0x4, 0x18(%rsp)
je 0x862c3
movq 0x18(%r12), %rdx
movq %rdx, %rax
shlq $0x6, %rax
subq %r13, %rax
movq %rax, %rcx
sarq $0x6, %rcx
sets %sil
cmpq %rdx, %rcx
setae %dl
orb %sil, %dl
jne 0x86318
movq 0x20(%r12), %rdx
movq (%rdx,%rcx,8), %rcx
btq %rax, %rcx
jb 0x862c3
jmp 0x86318
movq %rbx, %rdi
movq %r15, %rsi
callq 0x84079
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x85fbb
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movl %ebp, %edx
xorl %r8d, %r8d
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x84212
cmpl $0x0, 0x10(%rsp)
je 0x86318
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %edx
movq %r12, %rdi
movq %r12, %rsi
movl $0x1, %r8d
callq 0x8634c
movl %eax, %r13d
leaq 0xcdb(%rip), %r9 # 0x86fc8
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movq %rbx, %rsi
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0x86f26
orl %r13d, %eax
testb $0x20, %al
jne 0x86175
movl 0x8(%r15), %eax
xorl %eax, 0x8(%rbx)
movl 0x14(%rsp), %eax
movl %eax, 0x8(%r12)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x85fbb
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movl %ebp, %edx
xorl %r8d, %r8d
callq 0x84212
jmp 0x861dc
| bf_divrem:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov ebp, r9d
mov [rsp+0A8h+var_88], r8
mov r13, rcx
mov r15, rdx
mov rbx, rsi
mov r12, rdi
mov r14, 7FFFFFFFFFFFFFFFh
mov rcx, [rdx+18h]
test rcx, rcx
jz short loc_85F43
mov rax, [r13+18h]
test rax, rax
jz short loc_85F43
mov [rsp+0A8h+var_9C], ebp
mov edi, [rsp+0A8h+arg_0]
mov esi, [r15+8]
mov r9d, [r13+8]
xor r9d, esi
xor edx, edx
mov [rsp+0A8h+var_90], rdi
add edi, 0FFFFFFFEh; switch 5 cases
mov r8d, 0
cmp edi, 4
ja def_85F39; jumptable 0000000000085F39 default case, case 4
lea r8, jpt_85F39
movsxd rdi, ds:(jpt_85F39 - 0A11A0h)[r8+rdi*4]
add rdi, r8
xor r8d, r8d
jmp rdi; switch jump
loc_85F3B:
mov r8d, r9d; jumptable 0000000000085F39 case 2
jmp def_85F39; jumptable 0000000000085F39 default case, case 4
loc_85F43:
cmp qword ptr [r12+18h], 0
jz short loc_85F6A
mov rax, [r12]
mov rsi, [r12+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r12+20h], rax
mov qword ptr [r12+18h], 0
loc_85F6A:
lea rax, [r14+1]
mov [r12+10h], rax
mov dword ptr [r12+8], 0
mov rcx, [r15+10h]
cmp rcx, r14
jz short loc_85F8E
mov rdx, [r13+10h]
cmp rdx, r14
jnz short loc_85FC2
loc_85F8E:
cmp qword ptr [rbx+18h], 0
jz short loc_85FB0
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_85FB0:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
loc_85FBB:
xor eax, eax
jmp loc_861DC
loc_85FC2:
lea rsi, [r14-1]
cmp rcx, rsi
setnz cl
cmp rdx, rax
setnz al
test cl, al
jnz loc_86284
cmp qword ptr [rbx+18h], 0
jz short loc_85FFC
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_85FFC:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
mov eax, 1
jmp loc_861DC
loc_86011:
mov r8d, 1; jumptable 0000000000085F39 case 5
jmp short def_85F39; jumptable 0000000000085F39 default case, case 4
loc_86019:
mov r8d, r9d; jumptable 0000000000085F39 case 3
xor r8d, 1
jmp short def_85F39; jumptable 0000000000085F39 default case, case 4
loc_86022:
mov r8d, esi; jumptable 0000000000085F39 case 6
def_85F39:
mov [rsp+0A8h+var_98], r8d; jumptable 0000000000085F39 default case, case 4
mov [rsp+0A8h+var_94], r9d
mov rbp, [r15+10h]
lea rdi, [rsp+0A8h+var_58]
mov [rdi+10h], rbp
mov rsi, [r15+20h]
mov [rdi+20h], rsi
mov [rdi+18h], rcx
mov [rdi+8], edx
mov r14, [r13+10h]
lea rsi, [rsp+0A8h+var_80]
mov [rsi+10h], r14
mov rcx, [r13+20h]
mov [rsi+20h], rcx
mov [rsi+18h], rax
mov [rsi+8], edx
call bf_cmpu
test eax, eax
js loc_86111
sub rbp, r14
cmp rbp, 2
mov ecx, 1
cmovge rcx, rbp
inc rcx
lea r9, __bf_div
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_80]
mov rdi, r12
mov r8d, 1
call bf_op2
mov rcx, [r12+18h]
test rcx, rcx
jz short loc_860C2
mov rdi, r12
xor esi, esi
mov edx, 11h
xor r8d, r8d
call __bf_round
loc_860C2:
lea rdx, [rsp+0A8h+var_80]
mov r13, 3FFFFFFFFFFFFFFFh
mov rdi, rbx
mov rsi, r12
mov rcx, r13
mov r8d, 1
call bf_mul
lea r9, __bf_sub
lea rsi, [rsp+0A8h+var_58]
mov rdi, rbx
mov rdx, rbx
mov rcx, r13
mov r8d, 1
call bf_op2
mov r14, 7FFFFFFFFFFFFFFFh
jmp short loc_86161
loc_86111:
mov dword ptr [r12+8], 0
mov r14, 7FFFFFFFFFFFFFFFh
lea rax, [r14+1]
mov [r12+10h], rax
cmp qword ptr [r12+18h], 0
jz short loc_86154
mov rax, [r12]
mov rsi, [r12+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r12+20h], rax
mov qword ptr [r12+18h], 0
loc_86154:
lea rsi, [rsp+0A8h+var_58]
mov rdi, rbx
call bf_set
loc_86161:
mov ebp, [rsp+0A8h+var_9C]
mov r13, [r12+10h]
cmp r13, r14
jz short loc_86175
cmp [rbx+10h], r14
jnz short loc_861EB
loc_86175:
cmp qword ptr [r12+18h], 0
jz short loc_8619C
mov rax, [r12]
mov rsi, [r12+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r12+20h], rax
mov qword ptr [r12+18h], 0
loc_8619C:
mov [r12+10h], r14
mov dword ptr [r12+8], 0
cmp qword ptr [rbx+18h], 0
jz short loc_861CC
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_861CC:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
mov eax, 20h ; ' '
loc_861DC:
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_861EB:
cmp qword ptr [rbx+18h], 0
jz loc_86318
test dword ptr [rsp+0A8h+var_90], 0FFFFFFFBh
jnz loc_862BC
lea r14, [rsp+0A8h+var_80]
mov rbp, [r14+10h]
lea rax, [rbp-1]
mov [r14+10h], rax
mov rdi, rbx
mov rsi, r14
call bf_cmpu
mov [r14+10h], rbp
mov ebp, [rsp+0A8h+var_9C]
mov r14, 7FFFFFFFFFFFFFFFh
test eax, eax
jg loc_862C3
jnz loc_86318
cmp dword ptr [rsp+0A8h+var_90], 4
jz short loc_862C3
mov rdx, [r12+18h]
mov rax, rdx
shl rax, 6
sub rax, r13
mov rcx, rax
sar rcx, 6
sets sil
cmp rcx, rdx
setnb dl
or dl, sil
jnz loc_86318
mov rdx, [r12+20h]
mov rcx, [rdx+rcx*8]
bt rcx, rax
jb short loc_862C3
jmp loc_86318
loc_86284:
mov rdi, rbx
mov rsi, r15
call bf_set
mov rcx, [rbx+18h]
test rcx, rcx
jz loc_85FBB
mov rdi, rbx
mov rsi, [rsp+0A8h+var_88]
mov edx, ebp
xor r8d, r8d
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bf_round
loc_862BC:
cmp [rsp+0A8h+var_98], 0
jz short loc_86318
loc_862C3:
mov rcx, 3FFFFFFFFFFFFFFFh
mov edx, 1
mov rdi, r12
mov rsi, r12
mov r8d, 1
call bf_add_si
mov r13d, eax
lea r9, __bf_sub
lea rdx, [rsp+0A8h+var_80]
mov rdi, rbx
mov rsi, rbx
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_op2
or eax, r13d
test al, 20h
jnz loc_86175
loc_86318:
mov eax, [r15+8]
xor [rbx+8], eax
mov eax, [rsp+0A8h+var_94]
mov [r12+8], eax
mov rcx, [rbx+18h]
test rcx, rcx
jz loc_85FBB
mov rdi, rbx
mov rsi, [rsp+0A8h+var_88]
mov edx, ebp
xor r8d, r8d
call __bf_round
jmp loc_861DC
| long long bf_divrem(_QWORD **a1, __int128 *a2, long long a3, long long a4, long long a5, unsigned int a6, int a7)
{
long long v11; // rcx
long long v12; // rax
int v13; // esi
int v14; // r8d
long long v15; // rcx
long long v16; // rdx
long long v18; // rbp
long long v19; // r14
long long v20; // rbp
long long v21; // rcx
unsigned long long v22; // rcx
unsigned int v23; // ebp
_QWORD *v24; // r13
long long v25; // rbp
int v26; // eax
long long v27; // rcx
long long v28; // rcx
unsigned long long v29; // rcx
unsigned __int8 v30; // r13
unsigned long long v31; // rcx
int v33; // [rsp+10h] [rbp-98h]
int v34; // [rsp+14h] [rbp-94h]
long long v36; // [rsp+28h] [rbp-80h] BYREF
int v37; // [rsp+30h] [rbp-78h]
long long v38; // [rsp+38h] [rbp-70h]
long long v39; // [rsp+40h] [rbp-68h]
long long v40; // [rsp+48h] [rbp-60h]
long long v41; // [rsp+50h] [rbp-58h] BYREF
int v42; // [rsp+58h] [rbp-50h]
long long v43; // [rsp+60h] [rbp-48h]
long long v44; // [rsp+68h] [rbp-40h]
long long v45; // [rsp+70h] [rbp-38h]
v11 = *(_QWORD *)(a3 + 24);
if ( v11 )
{
v12 = *(_QWORD *)(a4 + 24);
if ( v12 )
{
v13 = *(_DWORD *)(a3 + 8);
v14 = 0;
switch ( a7 )
{
case 2:
v14 = v13 ^ *(_DWORD *)(a4 + 8);
break;
case 3:
v14 = v13 ^ *(_DWORD *)(a4 + 8) ^ 1;
break;
case 5:
v14 = 1;
break;
case 6:
v14 = *(_DWORD *)(a3 + 8);
break;
default:
break;
}
v33 = v14;
v34 = v13 ^ *(_DWORD *)(a4 + 8);
v18 = *(_QWORD *)(a3 + 16);
v43 = v18;
v45 = *(_QWORD *)(a3 + 32);
v44 = v11;
v42 = 0;
v19 = *(_QWORD *)(a4 + 16);
v38 = v19;
v40 = *(_QWORD *)(a4 + 32);
v39 = v12;
v37 = 0;
if ( (int)bf_cmpu(&v41, &v36) < 0 )
{
*((_DWORD *)a1 + 2) = 0;
a1[2] = (_QWORD *)0x8000000000000000LL;
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
bf_set(a2, (long long)&v41);
}
else
{
v20 = v18 - v19;
v21 = 1LL;
if ( v20 >= 2 )
v21 = v20;
bf_op2(a1, &v41, &v36, v21 + 1, 1LL, _bf_div);
v22 = (unsigned long long)a1[3];
if ( v22 )
_bf_round((long long)a1, 0LL, 17LL, v22, 0);
bf_mul(a2, (long long)a1, (long long)&v36, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_op2(a2, &v41, a2, 0x3FFFFFFFFFFFFFFFLL, 1LL, _bf_sub);
}
v23 = a6;
v24 = a1[2];
if ( v24 == (_QWORD *)0x7FFFFFFFFFFFFFFFLL || *((_QWORD *)a2 + 2) == 0x7FFFFFFFFFFFFFFFLL )
goto LABEL_31;
if ( !*((_QWORD *)a2 + 3) )
goto LABEL_48;
if ( (a7 & 0xFFFFFFFB) != 0 )
{
if ( !v33 )
goto LABEL_48;
}
else
{
v25 = v38--;
v26 = bf_cmpu(a2, &v36);
v38 = v25;
v23 = a6;
if ( v26 <= 0 )
{
if ( v26
|| a7 != 4
&& ((v27 = (long long)(((_QWORD)a1[3] << 6) - (_QWORD)v24) >> 6, v27 < 0 || v27 >= (unsigned long long)a1[3])
|| (v28 = a1[4][v27], !_bittest64(&v28, ((_QWORD)a1[3] << 6) - (_QWORD)v24))) )
{
LABEL_48:
*((_DWORD *)a2 + 2) ^= *(_DWORD *)(a3 + 8);
*((_DWORD *)a1 + 2) = v34;
v31 = *((_QWORD *)a2 + 3);
if ( v31 )
return _bf_round((long long)a2, a5, v23, v31, 0);
return 0LL;
}
}
}
v30 = bf_add_si(a1, a1, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( ((v30 | (unsigned __int8)bf_op2(a2, a2, &v36, 0x3FFFFFFFFFFFFFFFLL, 1LL, _bf_sub)) & 0x20) != 0 )
{
LABEL_31:
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 32LL;
}
goto LABEL_48;
}
}
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x8000000000000000LL;
*((_DWORD *)a1 + 2) = 0;
v15 = *(_QWORD *)(a3 + 16);
if ( v15 == 0x7FFFFFFFFFFFFFFFLL || (v16 = *(_QWORD *)(a4 + 16), v16 == 0x7FFFFFFFFFFFFFFFLL) )
{
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 0LL;
}
if ( v16 != 0x8000000000000000LL && v15 != 0x7FFFFFFFFFFFFFFELL )
{
bf_set(a2, a3);
v29 = *((_QWORD *)a2 + 3);
if ( v29 )
return _bf_round((long long)a2, a5, a6, v29, 0);
return 0LL;
}
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 1LL;
}
| bf_divrem:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV EBP,R9D
MOV qword ptr [RSP + 0x20],R8
MOV R13,RCX
MOV R15,RDX
MOV RBX,RSI
MOV R12,RDI
MOV R14,0x7fffffffffffffff
MOV RCX,qword ptr [RDX + 0x18]
TEST RCX,RCX
JZ 0x00185f43
MOV RAX,qword ptr [R13 + 0x18]
TEST RAX,RAX
JZ 0x00185f43
MOV dword ptr [RSP + 0xc],EBP
MOV EDI,dword ptr [RSP + 0xb0]
MOV ESI,dword ptr [R15 + 0x8]
MOV R9D,dword ptr [R13 + 0x8]
XOR R9D,ESI
XOR EDX,EDX
MOV qword ptr [RSP + 0x18],RDI
ADD EDI,-0x2
MOV R8D,0x0
CMP EDI,0x4
JA 0x00186025
LEA R8,[0x1a11a0]
MOVSXD RDI,dword ptr [R8 + RDI*0x4]
ADD RDI,R8
XOR R8D,R8D
switchD:
JMP RDI
caseD_2:
MOV R8D,R9D
JMP 0x00186025
LAB_00185f43:
CMP qword ptr [R12 + 0x18],0x0
JZ 0x00185f6a
MOV RAX,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R12 + 0x20],RAX
MOV qword ptr [R12 + 0x18],0x0
LAB_00185f6a:
LEA RAX,[R14 + 0x1]
MOV qword ptr [R12 + 0x10],RAX
MOV dword ptr [R12 + 0x8],0x0
MOV RCX,qword ptr [R15 + 0x10]
CMP RCX,R14
JZ 0x00185f8e
MOV RDX,qword ptr [R13 + 0x10]
CMP RDX,R14
JNZ 0x00185fc2
LAB_00185f8e:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00185fb0
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00185fb0:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
LAB_00185fbb:
XOR EAX,EAX
JMP 0x001861dc
LAB_00185fc2:
LEA RSI,[R14 + -0x1]
CMP RCX,RSI
SETNZ CL
CMP RDX,RAX
SETNZ AL
TEST CL,AL
JNZ 0x00186284
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00185ffc
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00185ffc:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x1
JMP 0x001861dc
caseD_5:
MOV R8D,0x1
JMP 0x00186025
caseD_3:
MOV R8D,R9D
XOR R8D,0x1
JMP 0x00186025
caseD_6:
MOV R8D,ESI
caseD_4:
MOV dword ptr [RSP + 0x10],R8D
MOV dword ptr [RSP + 0x14],R9D
MOV RBP,qword ptr [R15 + 0x10]
LEA RDI,[RSP + 0x50]
MOV qword ptr [RDI + 0x10],RBP
MOV RSI,qword ptr [R15 + 0x20]
MOV qword ptr [RDI + 0x20],RSI
MOV qword ptr [RDI + 0x18],RCX
MOV dword ptr [RDI + 0x8],EDX
MOV R14,qword ptr [R13 + 0x10]
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSI + 0x10],R14
MOV RCX,qword ptr [R13 + 0x20]
MOV qword ptr [RSI + 0x20],RCX
MOV qword ptr [RSI + 0x18],RAX
MOV dword ptr [RSI + 0x8],EDX
CALL 0x00184816
TEST EAX,EAX
JS 0x00186111
SUB RBP,R14
CMP RBP,0x2
MOV ECX,0x1
CMOVGE RCX,RBP
INC RCX
LEA R9,[0x186fdf]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x28]
MOV RDI,R12
MOV R8D,0x1
CALL 0x00186f26
MOV RCX,qword ptr [R12 + 0x18]
TEST RCX,RCX
JZ 0x001860c2
MOV RDI,R12
XOR ESI,ESI
MOV EDX,0x11
XOR R8D,R8D
CALL 0x00184212
LAB_001860c2:
LEA RDX,[RSP + 0x28]
MOV R13,0x3fffffffffffffff
MOV RDI,RBX
MOV RSI,R12
MOV RCX,R13
MOV R8D,0x1
CALL 0x00185afd
LEA R9,[0x186fc8]
LEA RSI,[RSP + 0x50]
MOV RDI,RBX
MOV RDX,RBX
MOV RCX,R13
MOV R8D,0x1
CALL 0x00186f26
MOV R14,0x7fffffffffffffff
JMP 0x00186161
LAB_00186111:
MOV dword ptr [R12 + 0x8],0x0
MOV R14,0x7fffffffffffffff
LEA RAX,[R14 + 0x1]
MOV qword ptr [R12 + 0x10],RAX
CMP qword ptr [R12 + 0x18],0x0
JZ 0x00186154
MOV RAX,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R12 + 0x20],RAX
MOV qword ptr [R12 + 0x18],0x0
LAB_00186154:
LEA RSI,[RSP + 0x50]
MOV RDI,RBX
CALL 0x00184079
LAB_00186161:
MOV EBP,dword ptr [RSP + 0xc]
MOV R13,qword ptr [R12 + 0x10]
CMP R13,R14
JZ 0x00186175
CMP qword ptr [RBX + 0x10],R14
JNZ 0x001861eb
LAB_00186175:
CMP qword ptr [R12 + 0x18],0x0
JZ 0x0018619c
MOV RAX,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R12 + 0x20],RAX
MOV qword ptr [R12 + 0x18],0x0
LAB_0018619c:
MOV qword ptr [R12 + 0x10],R14
MOV dword ptr [R12 + 0x8],0x0
CMP qword ptr [RBX + 0x18],0x0
JZ 0x001861cc
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_001861cc:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x20
LAB_001861dc:
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001861eb:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00186318
TEST dword ptr [RSP + 0x18],0xfffffffb
JNZ 0x001862bc
LEA R14,[RSP + 0x28]
MOV RBP,qword ptr [R14 + 0x10]
LEA RAX,[RBP + -0x1]
MOV qword ptr [R14 + 0x10],RAX
MOV RDI,RBX
MOV RSI,R14
CALL 0x00184816
MOV qword ptr [R14 + 0x10],RBP
MOV EBP,dword ptr [RSP + 0xc]
MOV R14,0x7fffffffffffffff
TEST EAX,EAX
JG 0x001862c3
JNZ 0x00186318
CMP dword ptr [RSP + 0x18],0x4
JZ 0x001862c3
MOV RDX,qword ptr [R12 + 0x18]
MOV RAX,RDX
SHL RAX,0x6
SUB RAX,R13
MOV RCX,RAX
SAR RCX,0x6
SETS SIL
CMP RCX,RDX
SETNC DL
OR DL,SIL
JNZ 0x00186318
MOV RDX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [RDX + RCX*0x8]
BT RCX,RAX
JC 0x001862c3
JMP 0x00186318
LAB_00186284:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00184079
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x00185fbb
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV EDX,EBP
XOR R8D,R8D
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00184212
LAB_001862bc:
CMP dword ptr [RSP + 0x10],0x0
JZ 0x00186318
LAB_001862c3:
MOV RCX,0x3fffffffffffffff
MOV EDX,0x1
MOV RDI,R12
MOV RSI,R12
MOV R8D,0x1
CALL 0x0018634c
MOV R13D,EAX
LEA R9,[0x186fc8]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x00186f26
OR EAX,R13D
TEST AL,0x20
JNZ 0x00186175
LAB_00186318:
MOV EAX,dword ptr [R15 + 0x8]
XOR dword ptr [RBX + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [R12 + 0x8],EAX
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x00185fbb
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV EDX,EBP
XOR R8D,R8D
CALL 0x00184212
JMP 0x001861dc
|
int8
bf_divrem(long *param_1,long *param_2,long param_3,long param_4,int8 param_5,
int4 param_6,uint param_7)
{
int iVar1;
uint uVar2;
uint uVar3;
ulong uVar4;
int8 uVar5;
long lVar6;
ulong uVar7;
long lVar8;
uint uVar9;
int1 local_80 [8];
int4 local_78;
long local_70;
long local_68;
int8 local_60;
int1 local_58 [8];
int4 local_50;
long local_48;
long local_40;
int8 local_38;
local_40 = *(long *)(param_3 + 0x18);
if ((local_40 == 0) || (local_68 = *(long *)(param_4 + 0x18), local_68 == 0)) {
if (param_1[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar8;
param_1[3] = 0;
}
param_1[2] = -0x8000000000000000;
*(int4 *)(param_1 + 1) = 0;
if ((*(long *)(param_3 + 0x10) == 0x7fffffffffffffff) ||
(*(long *)(param_4 + 0x10) == 0x7fffffffffffffff)) {
if (param_2[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar8;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
return 0;
}
if (*(long *)(param_3 + 0x10) == 0x7ffffffffffffffe ||
*(long *)(param_4 + 0x10) == -0x8000000000000000) {
if (param_2[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar8;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
return 1;
}
bf_set(param_2,param_3);
if (param_2[3] == 0) {
return 0;
}
uVar5 = __bf_round(param_2,param_5,param_6,param_2[3],0);
return uVar5;
}
uVar9 = *(uint *)(param_4 + 8) ^ *(uint *)(param_3 + 8);
uVar2 = 0;
switch(param_7) {
case 2:
uVar2 = uVar9;
break;
case 3:
uVar2 = uVar9 ^ 1;
break;
case 5:
uVar2 = 1;
break;
case 6:
uVar2 = *(uint *)(param_3 + 8);
}
lVar8 = *(long *)(param_3 + 0x10);
local_38 = *(int8 *)(param_3 + 0x20);
local_50 = 0;
lVar6 = *(long *)(param_4 + 0x10);
local_60 = *(int8 *)(param_4 + 0x20);
local_78 = 0;
local_70 = lVar6;
local_48 = lVar8;
iVar1 = bf_cmpu();
if (iVar1 < 0) {
*(int4 *)(param_1 + 1) = 0;
param_1[2] = -0x8000000000000000;
if (param_1[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar8;
param_1[3] = 0;
}
bf_set(param_2,local_58);
}
else {
lVar8 = lVar8 - lVar6;
lVar6 = 1;
if (1 < lVar8) {
lVar6 = lVar8;
}
bf_op2(param_1,local_58,local_80,lVar6 + 1,1,__bf_div);
if (param_1[3] != 0) {
__bf_round(param_1,0,0x11,param_1[3],0);
}
bf_mul(param_2,param_1,local_80,0x3fffffffffffffff,1);
bf_op2(param_2,local_58,param_2,0x3fffffffffffffff,1,__bf_sub);
}
lVar6 = local_70;
lVar8 = param_1[2];
if ((lVar8 != 0x7fffffffffffffff) && (param_2[2] != 0x7fffffffffffffff)) {
local_70 = lVar6;
if (param_2[3] != 0) {
if ((param_7 & 0xfffffffb) == 0) {
local_70 = local_70 + -1;
iVar1 = bf_cmpu(param_2,local_80);
if (iVar1 < 1) {
local_70 = lVar6;
if (iVar1 != 0) goto LAB_00186318;
if (param_7 != 4) {
uVar4 = param_1[3] * 0x40 - lVar8;
uVar7 = (long)uVar4 >> 6;
if (((ulong)param_1[3] <= uVar7 || (long)uVar7 < 0) ||
((*(ulong *)(param_1[4] + uVar7 * 8) >> (uVar4 & 0x3f) & 1) == 0)) goto LAB_00186318;
}
}
}
else if (uVar2 == 0) goto LAB_00186318;
local_70 = lVar6;
uVar2 = bf_add_si(param_1,param_1,1,0x3fffffffffffffff,1);
uVar3 = bf_op2(param_2,param_2,local_80,0x3fffffffffffffff,1,__bf_sub);
if (((uVar3 | uVar2) & 0x20) != 0) goto LAB_00186175;
}
LAB_00186318:
*(uint *)(param_2 + 1) = *(uint *)(param_2 + 1) ^ *(uint *)(param_3 + 8);
*(uint *)(param_1 + 1) = uVar9;
if (param_2[3] == 0) {
return 0;
}
uVar5 = __bf_round(param_2,param_5,param_6,param_2[3],0);
return uVar5;
}
LAB_00186175:
if (param_1[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar8;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
if (param_2[3] != 0) {
lVar8 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar8;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
return 0x20;
}
| |
24,629 | bf_divrem | bluesky950520[P]quickjs/libbf.c | int bf_divrem(bf_t *q, bf_t *r, const bf_t *a, const bf_t *b,
limb_t prec, bf_flags_t flags, int rnd_mode)
{
bf_t a1_s, *a1 = &a1_s;
bf_t b1_s, *b1 = &b1_s;
int q_sign, ret;
BOOL is_ceil, is_rndn;
assert(q != a && q != b);
assert(r != a && r != b);
assert(q != r);
if (a->len == 0 || b->len == 0) {
bf_set_zero(q, 0);
if (a->expn == BF_EXP_NAN || b->expn == BF_EXP_NAN) {
bf_set_nan(r);
return 0;
} else if (a->expn == BF_EXP_INF || b->expn == BF_EXP_ZERO) {
bf_set_nan(r);
return BF_ST_INVALID_OP;
} else {
bf_set(r, a);
return bf_round(r, prec, flags);
}
}
q_sign = a->sign ^ b->sign;
is_rndn = (rnd_mode == BF_RNDN || rnd_mode == BF_RNDNA);
switch(rnd_mode) {
default:
case BF_RNDZ:
case BF_RNDN:
case BF_RNDNA:
is_ceil = FALSE;
break;
case BF_RNDD:
is_ceil = q_sign;
break;
case BF_RNDU:
is_ceil = q_sign ^ 1;
break;
case BF_RNDA:
is_ceil = TRUE;
break;
case BF_DIVREM_EUCLIDIAN:
is_ceil = a->sign;
break;
}
a1->expn = a->expn;
a1->tab = a->tab;
a1->len = a->len;
a1->sign = 0;
b1->expn = b->expn;
b1->tab = b->tab;
b1->len = b->len;
b1->sign = 0;
/* XXX: could improve to avoid having a large 'q' */
bf_tdivremu(q, r, a1, b1);
if (bf_is_nan(q) || bf_is_nan(r))
goto fail;
if (r->len != 0) {
if (is_rndn) {
int res;
b1->expn--;
res = bf_cmpu(r, b1);
b1->expn++;
if (res > 0 ||
(res == 0 &&
(rnd_mode == BF_RNDNA ||
get_bit(q->tab, q->len, q->len * LIMB_BITS - q->expn)))) {
goto do_sub_r;
}
} else if (is_ceil) {
do_sub_r:
ret = bf_add_si(q, q, 1, BF_PREC_INF, BF_RNDZ);
ret |= bf_sub(r, r, b1, BF_PREC_INF, BF_RNDZ);
if (ret & BF_ST_MEM_ERROR)
goto fail;
}
}
r->sign ^= a->sign;
q->sign = q_sign;
return bf_round(r, prec, flags);
fail:
bf_set_nan(q);
bf_set_nan(r);
return BF_ST_MEM_ERROR;
} | O3 | c | bf_divrem:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %ebp
movq %r8, 0x18(%rsp)
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq 0x18(%rdx), %rcx
testq %rcx, %rcx
je 0x8897b
movq 0x18(%r13), %rax
testq %rax, %rax
je 0x8897b
movl %ebp, 0x8(%rsp)
movl 0xb0(%rsp), %edi
movl 0x8(%r12), %esi
movl 0x8(%r13), %r9d
xorl %esi, %r9d
xorl %edx, %edx
movq %rdi, 0x10(%rsp)
addl $-0x2, %edi
movl $0x0, %r8d
cmpl $0x4, %edi
ja 0x88a57
leaq 0x1b7e9(%rip), %r8 # 0xa4150
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
xorl %r8d, %r8d
jmpq *%rdi
movl %r9d, %r8d
jmp 0x88a57
cmpq $0x0, 0x18(%r15)
je 0x8899d
movq (%r15), %rax
movq 0x20(%r15), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r15)
movq $0x0, 0x18(%r15)
leaq 0x1(%r14), %rax
movq %rax, 0x10(%r15)
movl $0x0, 0x8(%r15)
movq 0x10(%r12), %rcx
cmpq %r14, %rcx
je 0x889c0
movq 0x10(%r13), %rdx
cmpq %r14, %rdx
jne 0x889f4
cmpq $0x0, 0x18(%rbx)
je 0x889e2
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
xorl %eax, %eax
jmp 0x88c00
leaq -0x1(%r14), %rsi
cmpq %rsi, %rcx
setne %cl
cmpq %rax, %rdx
setne %al
testb %al, %cl
jne 0x88cbe
cmpq $0x0, 0x18(%rbx)
je 0x88a2e
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x1, %eax
jmp 0x88c00
movl $0x1, %r8d
jmp 0x88a57
movl %r9d, %r8d
xorl $0x1, %r8d
jmp 0x88a57
movl %esi, %r8d
movl %r8d, 0xc(%rsp)
movl %r9d, 0x4(%rsp)
movq 0x10(%r12), %rbp
leaq 0x50(%rsp), %rdi
movq %rbp, 0x10(%rdi)
movq 0x20(%r12), %rsi
movq %rsi, 0x20(%rdi)
movq %rcx, 0x18(%rdi)
movl %edx, 0x8(%rdi)
movq 0x10(%r13), %r14
leaq 0x28(%rsp), %rsi
movq %r14, 0x10(%rsi)
movq 0x20(%r13), %rcx
movq %rcx, 0x20(%rsi)
movq %rax, 0x18(%rsi)
movl %edx, 0x8(%rsi)
callq 0x87224
testl %eax, %eax
js 0x88b44
subq %r14, %rbp
cmpq $0x2, %rbp
movl $0x1, %ecx
cmovgeq %rbp, %rcx
incq %rcx
leaq 0xff4(%rip), %r9 # 0x89ab6
leaq 0x50(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
movl $0x1, %r8d
callq 0x899fd
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0x88af5
movq %r15, %rdi
xorl %esi, %esi
movl $0x11, %edx
xorl %r8d, %r8d
callq 0x86c43
leaq 0x28(%rsp), %rdx
movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rcx
movl $0x1, %r8d
callq 0x8853c
leaq 0xf80(%rip), %r9 # 0x89a9f
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
movq %rbx, %rdx
movq %r13, %rcx
movl $0x1, %r8d
callq 0x899fd
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
jmp 0x88b8d
movl $0x0, 0x8(%r15)
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
leaq 0x1(%r14), %rax
movq %rax, 0x10(%r15)
cmpq $0x0, 0x18(%r15)
je 0x88b80
movq (%r15), %rax
movq 0x20(%r15), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r15)
movq $0x0, 0x18(%r15)
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x86a9a
movl 0x8(%rsp), %ebp
movq 0x10(%r15), %r13
cmpq %r14, %r13
je 0x88ba0
cmpq %r14, 0x10(%rbx)
jne 0x88c0f
cmpq $0x0, 0x18(%r15)
je 0x88bc2
movq (%r15), %rax
movq 0x20(%r15), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r15)
movq $0x0, 0x18(%r15)
movq %r14, 0x10(%r15)
movl $0x0, 0x8(%r15)
cmpq $0x0, 0x18(%rbx)
je 0x88bf0
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x88cf6
movq %rax, 0x20(%rsp)
testl $0xfffffffb, 0x10(%rsp) # imm = 0xFFFFFFFB
jne 0x88d0b
leaq 0x28(%rsp), %r14
movq 0x10(%r14), %rbp
leaq -0x1(%rbp), %rax
movq %rax, 0x10(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x87224
movq %rbp, 0x10(%r14)
movl 0x8(%rsp), %ebp
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
testl %eax, %eax
jg 0x88d12
jne 0x88ca4
cmpl $0x4, 0x10(%rsp)
je 0x88d12
movq 0x18(%r15), %rdx
movq %rdx, %rax
shlq $0x6, %rax
subq %r13, %rax
movq %rax, %rcx
sarq $0x6, %rcx
sets %sil
cmpq %rdx, %rcx
setae %dl
orb %sil, %dl
jne 0x88ca4
movq 0x20(%r15), %rdx
movq (%rdx,%rcx,8), %rcx
btq %rax, %rcx
jb 0x88d12
movl 0x8(%r12), %eax
xorl %eax, 0x8(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%r15)
movq 0x20(%rsp), %rcx
jmp 0x88d84
movq %rbx, %rdi
movq %r12, %rsi
callq 0x86a9a
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x889ed
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %ebp, %edx
xorl %r8d, %r8d
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x86c43
movl 0x8(%r12), %eax
xorl %eax, 0x8(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%r15)
jmp 0x889ed
cmpl $0x0, 0xc(%rsp)
je 0x88ca4
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %edx
movq %r15, %rdi
movq %r15, %rsi
movl $0x1, %r8d
callq 0x88d9b
movl %eax, %r13d
leaq 0xd63(%rip), %r9 # 0x89a9f
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movq %rbx, %rsi
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0x899fd
orl %r13d, %eax
testb $0x20, %al
jne 0x88ba0
movq 0x18(%rbx), %rcx
movl 0x8(%r12), %eax
xorl %eax, 0x8(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%r15)
testq %rcx, %rcx
je 0x889ed
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %ebp, %edx
xorl %r8d, %r8d
callq 0x86c43
jmp 0x88c00
| bf_divrem:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov ebp, r9d
mov [rsp+0A8h+var_90], r8
mov r13, rcx
mov r12, rdx
mov rbx, rsi
mov r15, rdi
mov r14, 7FFFFFFFFFFFFFFFh
mov rcx, [rdx+18h]
test rcx, rcx
jz short loc_8897B
mov rax, [r13+18h]
test rax, rax
jz short loc_8897B
mov [rsp+0A8h+var_A0], ebp
mov edi, [rsp+0A8h+arg_0]
mov esi, [r12+8]
mov r9d, [r13+8]
xor r9d, esi
xor edx, edx
mov [rsp+0A8h+var_98], rdi
add edi, 0FFFFFFFEh; switch 5 cases
mov r8d, 0
cmp edi, 4
ja def_88971; jumptable 0000000000088971 default case, case 4
lea r8, jpt_88971
movsxd rdi, ds:(jpt_88971 - 0A4150h)[r8+rdi*4]
add rdi, r8
xor r8d, r8d
jmp rdi; switch jump
loc_88973:
mov r8d, r9d; jumptable 0000000000088971 case 2
jmp def_88971; jumptable 0000000000088971 default case, case 4
loc_8897B:
cmp qword ptr [r15+18h], 0
jz short loc_8899D
mov rax, [r15]
mov rsi, [r15+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r15+20h], rax
mov qword ptr [r15+18h], 0
loc_8899D:
lea rax, [r14+1]
mov [r15+10h], rax
mov dword ptr [r15+8], 0
mov rcx, [r12+10h]
cmp rcx, r14
jz short loc_889C0
mov rdx, [r13+10h]
cmp rdx, r14
jnz short loc_889F4
loc_889C0:
cmp qword ptr [rbx+18h], 0
jz short loc_889E2
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_889E2:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
loc_889ED:
xor eax, eax
jmp loc_88C00
loc_889F4:
lea rsi, [r14-1]
cmp rcx, rsi
setnz cl
cmp rdx, rax
setnz al
test cl, al
jnz loc_88CBE
cmp qword ptr [rbx+18h], 0
jz short loc_88A2E
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_88A2E:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
mov eax, 1
jmp loc_88C00
loc_88A43:
mov r8d, 1; jumptable 0000000000088971 case 5
jmp short def_88971; jumptable 0000000000088971 default case, case 4
loc_88A4B:
mov r8d, r9d; jumptable 0000000000088971 case 3
xor r8d, 1
jmp short def_88971; jumptable 0000000000088971 default case, case 4
loc_88A54:
mov r8d, esi; jumptable 0000000000088971 case 6
def_88971:
mov [rsp+0A8h+var_9C], r8d; jumptable 0000000000088971 default case, case 4
mov [rsp+0A8h+var_A4], r9d
mov rbp, [r12+10h]
lea rdi, [rsp+0A8h+var_58]
mov [rdi+10h], rbp
mov rsi, [r12+20h]
mov [rdi+20h], rsi
mov [rdi+18h], rcx
mov [rdi+8], edx
mov r14, [r13+10h]
lea rsi, [rsp+0A8h+var_80]
mov [rsi+10h], r14
mov rcx, [r13+20h]
mov [rsi+20h], rcx
mov [rsi+18h], rax
mov [rsi+8], edx
call bf_cmpu
test eax, eax
js loc_88B44
sub rbp, r14
cmp rbp, 2
mov ecx, 1
cmovge rcx, rbp
inc rcx
lea r9, __bf_div
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_80]
mov rdi, r15
mov r8d, 1
call bf_op2
mov rcx, [r15+18h]
test rcx, rcx
jz short loc_88AF5
mov rdi, r15
xor esi, esi
mov edx, 11h
xor r8d, r8d
call __bf_round
loc_88AF5:
lea rdx, [rsp+0A8h+var_80]
mov r13, 3FFFFFFFFFFFFFFFh
mov rdi, rbx
mov rsi, r15
mov rcx, r13
mov r8d, 1
call bf_mul
lea r9, __bf_sub
lea rsi, [rsp+0A8h+var_58]
mov rdi, rbx
mov rdx, rbx
mov rcx, r13
mov r8d, 1
call bf_op2
mov r14, 7FFFFFFFFFFFFFFFh
jmp short loc_88B8D
loc_88B44:
mov dword ptr [r15+8], 0
mov r14, 7FFFFFFFFFFFFFFFh
lea rax, [r14+1]
mov [r15+10h], rax
cmp qword ptr [r15+18h], 0
jz short loc_88B80
mov rax, [r15]
mov rsi, [r15+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r15+20h], rax
mov qword ptr [r15+18h], 0
loc_88B80:
lea rsi, [rsp+0A8h+var_58]
mov rdi, rbx
call bf_set
loc_88B8D:
mov ebp, [rsp+0A8h+var_A0]
mov r13, [r15+10h]
cmp r13, r14
jz short loc_88BA0
cmp [rbx+10h], r14
jnz short loc_88C0F
loc_88BA0:
cmp qword ptr [r15+18h], 0
jz short loc_88BC2
mov rax, [r15]
mov rsi, [r15+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r15+20h], rax
mov qword ptr [r15+18h], 0
loc_88BC2:
mov [r15+10h], r14
mov dword ptr [r15+8], 0
cmp qword ptr [rbx+18h], 0
jz short loc_88BF0
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_88BF0:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
mov eax, 20h ; ' '
loc_88C00:
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_88C0F:
mov rax, [rbx+18h]
test rax, rax
jz loc_88CF6
mov [rsp+0A8h+var_88], rax
test dword ptr [rsp+0A8h+var_98], 0FFFFFFFBh
jnz loc_88D0B
lea r14, [rsp+0A8h+var_80]
mov rbp, [r14+10h]
lea rax, [rbp-1]
mov [r14+10h], rax
mov rdi, rbx
mov rsi, r14
call bf_cmpu
mov [r14+10h], rbp
mov ebp, [rsp+0A8h+var_A0]
mov r14, 7FFFFFFFFFFFFFFFh
test eax, eax
jg loc_88D12
jnz short loc_88CA4
cmp dword ptr [rsp+0A8h+var_98], 4
jz loc_88D12
mov rdx, [r15+18h]
mov rax, rdx
shl rax, 6
sub rax, r13
mov rcx, rax
sar rcx, 6
sets sil
cmp rcx, rdx
setnb dl
or dl, sil
jnz short loc_88CA4
mov rdx, [r15+20h]
mov rcx, [rdx+rcx*8]
bt rcx, rax
jb short loc_88D12
loc_88CA4:
mov eax, [r12+8]
xor [rbx+8], eax
mov eax, [rsp+0A8h+var_A4]
mov [r15+8], eax
mov rcx, [rsp+0A8h+var_88]
jmp loc_88D84
loc_88CBE:
mov rdi, rbx
mov rsi, r12
call bf_set
mov rcx, [rbx+18h]
test rcx, rcx
jz loc_889ED
mov rdi, rbx
mov rsi, [rsp+0A8h+var_90]
mov edx, ebp
xor r8d, r8d
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bf_round
loc_88CF6:
mov eax, [r12+8]
xor [rbx+8], eax
mov eax, [rsp+0A8h+var_A4]
mov [r15+8], eax
jmp loc_889ED
loc_88D0B:
cmp [rsp+0A8h+var_9C], 0
jz short loc_88CA4
loc_88D12:
mov rcx, 3FFFFFFFFFFFFFFFh
mov edx, 1
mov rdi, r15
mov rsi, r15
mov r8d, 1
call bf_add_si
mov r13d, eax
lea r9, __bf_sub
lea rdx, [rsp+0A8h+var_80]
mov rdi, rbx
mov rsi, rbx
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_op2
or eax, r13d
test al, 20h
jnz loc_88BA0
mov rcx, [rbx+18h]
mov eax, [r12+8]
xor [rbx+8], eax
mov eax, [rsp+0A8h+var_A4]
mov [r15+8], eax
test rcx, rcx
jz loc_889ED
loc_88D84:
mov rdi, rbx
mov rsi, [rsp+0A8h+var_90]
mov edx, ebp
xor r8d, r8d
call __bf_round
jmp loc_88C00
| long long bf_divrem(_QWORD **a1, __int128 *a2, long long a3, long long a4, long long a5, unsigned int a6, int a7)
{
long long v11; // rcx
long long v12; // rax
int v13; // esi
int v14; // r8d
long long v15; // rcx
long long v16; // rdx
long long v18; // rbp
long long v19; // r14
long long v20; // rbp
long long v21; // rcx
unsigned long long v22; // rcx
unsigned int v23; // ebp
_QWORD *v24; // r13
long long v25; // rbp
int v26; // eax
long long v27; // rcx
long long v28; // rcx
unsigned long long v29; // rcx
unsigned long long v30; // rcx
unsigned __int8 v31; // r13
int v32; // [rsp+4h] [rbp-A4h]
int v34; // [rsp+Ch] [rbp-9Ch]
_QWORD *v36; // [rsp+20h] [rbp-88h]
long long v37; // [rsp+28h] [rbp-80h] BYREF
int v38; // [rsp+30h] [rbp-78h]
long long v39; // [rsp+38h] [rbp-70h]
long long v40; // [rsp+40h] [rbp-68h]
long long v41; // [rsp+48h] [rbp-60h]
long long v42; // [rsp+50h] [rbp-58h] BYREF
int v43; // [rsp+58h] [rbp-50h]
long long v44; // [rsp+60h] [rbp-48h]
long long v45; // [rsp+68h] [rbp-40h]
long long v46; // [rsp+70h] [rbp-38h]
v11 = *(_QWORD *)(a3 + 24);
if ( v11 )
{
v12 = *(_QWORD *)(a4 + 24);
if ( v12 )
{
v13 = *(_DWORD *)(a3 + 8);
v14 = 0;
switch ( a7 )
{
case 2:
v14 = v13 ^ *(_DWORD *)(a4 + 8);
break;
case 3:
v14 = v13 ^ *(_DWORD *)(a4 + 8) ^ 1;
break;
case 5:
v14 = 1;
break;
case 6:
v14 = *(_DWORD *)(a3 + 8);
break;
default:
break;
}
v34 = v14;
v32 = v13 ^ *(_DWORD *)(a4 + 8);
v18 = *(_QWORD *)(a3 + 16);
v44 = v18;
v46 = *(_QWORD *)(a3 + 32);
v45 = v11;
v43 = 0;
v19 = *(_QWORD *)(a4 + 16);
v39 = v19;
v41 = *(_QWORD *)(a4 + 32);
v40 = v12;
v38 = 0;
if ( (int)bf_cmpu(&v42, &v37) < 0 )
{
*((_DWORD *)a1 + 2) = 0;
a1[2] = (_QWORD *)0x8000000000000000LL;
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
bf_set(a2, (long long)&v42);
}
else
{
v20 = v18 - v19;
v21 = 1LL;
if ( v20 >= 2 )
v21 = v20;
bf_op2(a1, &v42, &v37, v21 + 1, 1LL, _bf_div);
v22 = (unsigned long long)a1[3];
if ( v22 )
_bf_round(a1, 0LL, 0x11u, v22, 0);
bf_mul(a2, (long long)a1, (long long)&v37, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_op2(a2, &v42, a2, 0x3FFFFFFFFFFFFFFFLL, 1LL, _bf_sub);
}
v23 = a6;
v24 = a1[2];
if ( v24 == (_QWORD *)0x7FFFFFFFFFFFFFFFLL || *((_QWORD *)a2 + 2) == 0x7FFFFFFFFFFFFFFFLL )
goto LABEL_31;
if ( *((_QWORD *)a2 + 3) )
{
v36 = (_QWORD *)*((_QWORD *)a2 + 3);
if ( (a7 & 0xFFFFFFFB) != 0 )
{
if ( !v34 )
{
LABEL_43:
*((_DWORD *)a2 + 2) ^= *(_DWORD *)(a3 + 8);
*((_DWORD *)a1 + 2) = v32;
v29 = (unsigned long long)v36;
return _bf_round((_QWORD **)a2, a5, v23, v29, 0);
}
}
else
{
v25 = v39--;
v26 = bf_cmpu(a2, &v37);
v39 = v25;
v23 = a6;
if ( v26 <= 0 )
{
if ( v26 )
goto LABEL_43;
if ( a7 != 4 )
{
v27 = (long long)(((_QWORD)a1[3] << 6) - (_QWORD)v24) >> 6;
if ( v27 < 0 || v27 >= (unsigned long long)a1[3] )
goto LABEL_43;
v28 = a1[4][v27];
if ( !_bittest64(&v28, ((_QWORD)a1[3] << 6) - (_QWORD)v24) )
goto LABEL_43;
}
}
}
v31 = bf_add_si(a1, a1, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( ((v31 | (unsigned __int8)bf_op2(a2, a2, &v37, 0x3FFFFFFFFFFFFFFFLL, 1LL, _bf_sub)) & 0x20) != 0 )
{
LABEL_31:
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 32LL;
}
v29 = *((_QWORD *)a2 + 3);
*((_DWORD *)a2 + 2) ^= *(_DWORD *)(a3 + 8);
*((_DWORD *)a1 + 2) = v32;
if ( v29 )
return _bf_round((_QWORD **)a2, a5, v23, v29, 0);
}
else
{
*((_DWORD *)a2 + 2) ^= *(_DWORD *)(a3 + 8);
*((_DWORD *)a1 + 2) = v32;
}
return 0LL;
}
}
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x8000000000000000LL;
*((_DWORD *)a1 + 2) = 0;
v15 = *(_QWORD *)(a3 + 16);
if ( v15 == 0x7FFFFFFFFFFFFFFFLL || (v16 = *(_QWORD *)(a4 + 16), v16 == 0x7FFFFFFFFFFFFFFFLL) )
{
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 0LL;
}
if ( v16 != 0x8000000000000000LL && v15 != 0x7FFFFFFFFFFFFFFELL )
{
bf_set(a2, a3);
v30 = *((_QWORD *)a2 + 3);
if ( v30 )
return _bf_round((_QWORD **)a2, a5, a6, v30, 0);
return 0LL;
}
if ( *((_QWORD *)a2 + 3) )
{
*((_QWORD *)a2 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a2 + 8LL))(
**(_QWORD **)a2,
*((_QWORD *)a2 + 4),
0LL);
*((_QWORD *)a2 + 3) = 0LL;
}
*((_QWORD *)a2 + 2) = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a2 + 2) = 0;
return 1LL;
}
| bf_divrem:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV EBP,R9D
MOV qword ptr [RSP + 0x18],R8
MOV R13,RCX
MOV R12,RDX
MOV RBX,RSI
MOV R15,RDI
MOV R14,0x7fffffffffffffff
MOV RCX,qword ptr [RDX + 0x18]
TEST RCX,RCX
JZ 0x0018897b
MOV RAX,qword ptr [R13 + 0x18]
TEST RAX,RAX
JZ 0x0018897b
MOV dword ptr [RSP + 0x8],EBP
MOV EDI,dword ptr [RSP + 0xb0]
MOV ESI,dword ptr [R12 + 0x8]
MOV R9D,dword ptr [R13 + 0x8]
XOR R9D,ESI
XOR EDX,EDX
MOV qword ptr [RSP + 0x10],RDI
ADD EDI,-0x2
MOV R8D,0x0
CMP EDI,0x4
JA 0x00188a57
LEA R8,[0x1a4150]
MOVSXD RDI,dword ptr [R8 + RDI*0x4]
ADD RDI,R8
XOR R8D,R8D
switchD:
JMP RDI
caseD_2:
MOV R8D,R9D
JMP 0x00188a57
LAB_0018897b:
CMP qword ptr [R15 + 0x18],0x0
JZ 0x0018899d
MOV RAX,qword ptr [R15]
MOV RSI,qword ptr [R15 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R15 + 0x20],RAX
MOV qword ptr [R15 + 0x18],0x0
LAB_0018899d:
LEA RAX,[R14 + 0x1]
MOV qword ptr [R15 + 0x10],RAX
MOV dword ptr [R15 + 0x8],0x0
MOV RCX,qword ptr [R12 + 0x10]
CMP RCX,R14
JZ 0x001889c0
MOV RDX,qword ptr [R13 + 0x10]
CMP RDX,R14
JNZ 0x001889f4
LAB_001889c0:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x001889e2
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_001889e2:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
LAB_001889ed:
XOR EAX,EAX
JMP 0x00188c00
LAB_001889f4:
LEA RSI,[R14 + -0x1]
CMP RCX,RSI
SETNZ CL
CMP RDX,RAX
SETNZ AL
TEST CL,AL
JNZ 0x00188cbe
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00188a2e
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00188a2e:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x1
JMP 0x00188c00
caseD_5:
MOV R8D,0x1
JMP 0x00188a57
caseD_3:
MOV R8D,R9D
XOR R8D,0x1
JMP 0x00188a57
caseD_6:
MOV R8D,ESI
caseD_4:
MOV dword ptr [RSP + 0xc],R8D
MOV dword ptr [RSP + 0x4],R9D
MOV RBP,qword ptr [R12 + 0x10]
LEA RDI,[RSP + 0x50]
MOV qword ptr [RDI + 0x10],RBP
MOV RSI,qword ptr [R12 + 0x20]
MOV qword ptr [RDI + 0x20],RSI
MOV qword ptr [RDI + 0x18],RCX
MOV dword ptr [RDI + 0x8],EDX
MOV R14,qword ptr [R13 + 0x10]
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSI + 0x10],R14
MOV RCX,qword ptr [R13 + 0x20]
MOV qword ptr [RSI + 0x20],RCX
MOV qword ptr [RSI + 0x18],RAX
MOV dword ptr [RSI + 0x8],EDX
CALL 0x00187224
TEST EAX,EAX
JS 0x00188b44
SUB RBP,R14
CMP RBP,0x2
MOV ECX,0x1
CMOVGE RCX,RBP
INC RCX
LEA R9,[0x189ab6]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x28]
MOV RDI,R15
MOV R8D,0x1
CALL 0x001899fd
MOV RCX,qword ptr [R15 + 0x18]
TEST RCX,RCX
JZ 0x00188af5
MOV RDI,R15
XOR ESI,ESI
MOV EDX,0x11
XOR R8D,R8D
CALL 0x00186c43
LAB_00188af5:
LEA RDX,[RSP + 0x28]
MOV R13,0x3fffffffffffffff
MOV RDI,RBX
MOV RSI,R15
MOV RCX,R13
MOV R8D,0x1
CALL 0x0018853c
LEA R9,[0x189a9f]
LEA RSI,[RSP + 0x50]
MOV RDI,RBX
MOV RDX,RBX
MOV RCX,R13
MOV R8D,0x1
CALL 0x001899fd
MOV R14,0x7fffffffffffffff
JMP 0x00188b8d
LAB_00188b44:
MOV dword ptr [R15 + 0x8],0x0
MOV R14,0x7fffffffffffffff
LEA RAX,[R14 + 0x1]
MOV qword ptr [R15 + 0x10],RAX
CMP qword ptr [R15 + 0x18],0x0
JZ 0x00188b80
MOV RAX,qword ptr [R15]
MOV RSI,qword ptr [R15 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R15 + 0x20],RAX
MOV qword ptr [R15 + 0x18],0x0
LAB_00188b80:
LEA RSI,[RSP + 0x50]
MOV RDI,RBX
CALL 0x00186a9a
LAB_00188b8d:
MOV EBP,dword ptr [RSP + 0x8]
MOV R13,qword ptr [R15 + 0x10]
CMP R13,R14
JZ 0x00188ba0
CMP qword ptr [RBX + 0x10],R14
JNZ 0x00188c0f
LAB_00188ba0:
CMP qword ptr [R15 + 0x18],0x0
JZ 0x00188bc2
MOV RAX,qword ptr [R15]
MOV RSI,qword ptr [R15 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R15 + 0x20],RAX
MOV qword ptr [R15 + 0x18],0x0
LAB_00188bc2:
MOV qword ptr [R15 + 0x10],R14
MOV dword ptr [R15 + 0x8],0x0
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00188bf0
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00188bf0:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x20
LAB_00188c00:
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00188c0f:
MOV RAX,qword ptr [RBX + 0x18]
TEST RAX,RAX
JZ 0x00188cf6
MOV qword ptr [RSP + 0x20],RAX
TEST dword ptr [RSP + 0x10],0xfffffffb
JNZ 0x00188d0b
LEA R14,[RSP + 0x28]
MOV RBP,qword ptr [R14 + 0x10]
LEA RAX,[RBP + -0x1]
MOV qword ptr [R14 + 0x10],RAX
MOV RDI,RBX
MOV RSI,R14
CALL 0x00187224
MOV qword ptr [R14 + 0x10],RBP
MOV EBP,dword ptr [RSP + 0x8]
MOV R14,0x7fffffffffffffff
TEST EAX,EAX
JG 0x00188d12
JNZ 0x00188ca4
CMP dword ptr [RSP + 0x10],0x4
JZ 0x00188d12
MOV RDX,qword ptr [R15 + 0x18]
MOV RAX,RDX
SHL RAX,0x6
SUB RAX,R13
MOV RCX,RAX
SAR RCX,0x6
SETS SIL
CMP RCX,RDX
SETNC DL
OR DL,SIL
JNZ 0x00188ca4
MOV RDX,qword ptr [R15 + 0x20]
MOV RCX,qword ptr [RDX + RCX*0x8]
BT RCX,RAX
JC 0x00188d12
LAB_00188ca4:
MOV EAX,dword ptr [R12 + 0x8]
XOR dword ptr [RBX + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x8],EAX
MOV RCX,qword ptr [RSP + 0x20]
JMP 0x00188d84
LAB_00188cbe:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00186a9a
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x001889ed
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x18]
MOV EDX,EBP
XOR R8D,R8D
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00186c43
LAB_00188cf6:
MOV EAX,dword ptr [R12 + 0x8]
XOR dword ptr [RBX + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x8],EAX
JMP 0x001889ed
LAB_00188d0b:
CMP dword ptr [RSP + 0xc],0x0
JZ 0x00188ca4
LAB_00188d12:
MOV RCX,0x3fffffffffffffff
MOV EDX,0x1
MOV RDI,R15
MOV RSI,R15
MOV R8D,0x1
CALL 0x00188d9b
MOV R13D,EAX
LEA R9,[0x189a9f]
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x001899fd
OR EAX,R13D
TEST AL,0x20
JNZ 0x00188ba0
MOV RCX,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [R12 + 0x8]
XOR dword ptr [RBX + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x8],EAX
TEST RCX,RCX
JZ 0x001889ed
LAB_00188d84:
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x18]
MOV EDX,EBP
XOR R8D,R8D
CALL 0x00186c43
JMP 0x00188c00
|
int8
bf_divrem(long *param_1,long *param_2,long param_3,long param_4,int8 param_5,
int4 param_6,uint param_7)
{
int iVar1;
uint uVar2;
uint uVar3;
int8 uVar4;
ulong uVar5;
long lVar6;
ulong uVar7;
long lVar8;
long lVar9;
uint uVar10;
int1 local_80 [8];
int4 local_78;
long local_70;
long local_68;
int8 local_60;
int1 local_58 [8];
int4 local_50;
long local_48;
long local_40;
int8 local_38;
local_40 = *(long *)(param_3 + 0x18);
if ((local_40 == 0) || (local_68 = *(long *)(param_4 + 0x18), local_68 == 0)) {
if (param_1[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar9;
param_1[3] = 0;
}
param_1[2] = -0x8000000000000000;
*(int4 *)(param_1 + 1) = 0;
if ((*(long *)(param_3 + 0x10) == 0x7fffffffffffffff) ||
(*(long *)(param_4 + 0x10) == 0x7fffffffffffffff)) {
if (param_2[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar9;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
return 0;
}
if (*(long *)(param_3 + 0x10) == 0x7ffffffffffffffe ||
*(long *)(param_4 + 0x10) == -0x8000000000000000) {
if (param_2[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar9;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
return 1;
}
bf_set(param_2,param_3);
if (param_2[3] == 0) {
return 0;
}
uVar4 = __bf_round(param_2,param_5,param_6,param_2[3],0);
return uVar4;
}
uVar10 = *(uint *)(param_4 + 8) ^ *(uint *)(param_3 + 8);
uVar2 = 0;
switch(param_7) {
case 2:
uVar2 = uVar10;
break;
case 3:
uVar2 = uVar10 ^ 1;
break;
case 5:
uVar2 = 1;
break;
case 6:
uVar2 = *(uint *)(param_3 + 8);
}
lVar9 = *(long *)(param_3 + 0x10);
local_38 = *(int8 *)(param_3 + 0x20);
local_50 = 0;
lVar6 = *(long *)(param_4 + 0x10);
local_60 = *(int8 *)(param_4 + 0x20);
local_78 = 0;
local_70 = lVar6;
local_48 = lVar9;
iVar1 = bf_cmpu();
if (iVar1 < 0) {
*(int4 *)(param_1 + 1) = 0;
param_1[2] = -0x8000000000000000;
if (param_1[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar9;
param_1[3] = 0;
}
bf_set(param_2,local_58);
}
else {
lVar9 = lVar9 - lVar6;
lVar6 = 1;
if (1 < lVar9) {
lVar6 = lVar9;
}
bf_op2(param_1,local_58,local_80,lVar6 + 1,1,__bf_div);
if (param_1[3] != 0) {
__bf_round(param_1,0,0x11,param_1[3],0);
}
bf_mul(param_2,param_1,local_80,0x3fffffffffffffff,1);
bf_op2(param_2,local_58,param_2,0x3fffffffffffffff,1,__bf_sub);
}
lVar6 = local_70;
lVar9 = param_1[2];
if ((lVar9 == 0x7fffffffffffffff) || (param_2[2] == 0x7fffffffffffffff)) {
LAB_00188ba0:
if (param_1[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar9;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
if (param_2[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_2)[1])(*(int8 *)*param_2,param_2[4],0);
param_2[4] = lVar9;
param_2[3] = 0;
}
param_2[2] = 0x7fffffffffffffff;
*(int4 *)(param_2 + 1) = 0;
uVar4 = 0x20;
}
else {
lVar8 = param_2[3];
if (lVar8 == 0) {
*(uint *)(param_2 + 1) = *(uint *)(param_2 + 1) ^ *(uint *)(param_3 + 8);
*(uint *)(param_1 + 1) = uVar10;
return 0;
}
if ((param_7 & 0xfffffffb) == 0) {
local_70 = local_70 + -1;
iVar1 = bf_cmpu(param_2,local_80);
if (0 < iVar1) goto LAB_00188d12;
if (iVar1 == 0) {
if (param_7 != 4) {
uVar5 = param_1[3] * 0x40 - lVar9;
uVar7 = (long)uVar5 >> 6;
if (((ulong)param_1[3] <= uVar7 || (long)uVar7 < 0) ||
((*(ulong *)(param_1[4] + uVar7 * 8) >> (uVar5 & 0x3f) & 1) == 0)) goto LAB_00188ca4;
}
goto LAB_00188d12;
}
LAB_00188ca4:
*(uint *)(param_2 + 1) = *(uint *)(param_2 + 1) ^ *(uint *)(param_3 + 8);
*(uint *)(param_1 + 1) = uVar10;
local_70 = lVar6;
}
else {
if (uVar2 == 0) goto LAB_00188ca4;
LAB_00188d12:
local_70 = lVar6;
uVar2 = bf_add_si(param_1,param_1,1,0x3fffffffffffffff,1);
uVar3 = bf_op2(param_2,param_2,local_80,0x3fffffffffffffff,1,__bf_sub);
if (((uVar3 | uVar2) & 0x20) != 0) goto LAB_00188ba0;
lVar8 = param_2[3];
*(uint *)(param_2 + 1) = *(uint *)(param_2 + 1) ^ *(uint *)(param_3 + 8);
*(uint *)(param_1 + 1) = uVar10;
if (lVar8 == 0) {
return 0;
}
}
uVar4 = __bf_round(param_2,param_5,param_6,lVar8,0);
}
return uVar4;
}
| |
24,630 | minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/./minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
auto result = Value::object();
for (const auto& [key, value] : elements) {
if (!key) throw std::runtime_error("Dict key is null");
if (!value) throw std::runtime_error("Dict value is null");
result.set(key->evaluate(context), value->evaluate(context));
}
return result;
} | O2 | cpp | minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x48634
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4a92c
leaq 0x10(%rsp), %rdi
callq 0x2eeb2
movq 0x20(%r15), %r13
movq 0x28(%r15), %rbp
leaq 0x68(%rsp), %r15
leaq 0x18(%rsp), %r12
cmpq %rbp, %r13
je 0x4a70d
movq (%r13), %rsi
testq %rsi, %rsi
je 0x4a722
cmpq $0x0, 0x10(%r13)
je 0x4a73e
movq %r15, %rdi
movq %r14, %rdx
callq 0x3b08c
movq 0x10(%r13), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x3b08c
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4a7e6
movq %r12, %rdi
callq 0x3b31c
movq %r15, %rdi
callq 0x3b31c
addq $0x20, %r13
jmp 0x4a6ba
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r15
leaq 0x53a95(%rip), %rsi # 0x9e1c9
movq %rax, %rdi
callq 0x20280
jmp 0x4a758
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r15
leaq 0x53a8a(%rip), %rsi # 0x9e1da
movq %rax, %rdi
callq 0x20280
movq 0x97889(%rip), %rsi # 0xe1fe8
movq 0x9780a(%rip), %rdx # 0xe1f70
movq %r15, %rdi
callq 0x20b30
jmp 0x4a770
movq %rax, %r14
movq %r15, %rdi
callq 0x20520
jmp 0x4a7a0
movq %rax, %r14
jmp 0x4a78f
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3b31c
leaq 0x68(%rsp), %rdi
callq 0x3b31c
jmp 0x4a7a0
jmp 0x4a79d
movq %rax, %r14
movq %rbx, %rdi
callq 0x3b31c
movq %r14, %rdi
callq 0x20b90
| _ZNK5minja8DictExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rsp+0E8h+var_E0]
mov rdi, r12
call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>()
mov rdi, rbx
mov rsi, r12
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
lea rdi, [rsp+0E8h+var_D8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov r13, [r15+20h]
mov rbp, [r15+28h]
lea r15, [rsp+0E8h+var_80]
lea r12, [rsp+0E8h+var_D0]
loc_4A6BA:
cmp r13, rbp
jz short loc_4A70D
mov rsi, [r13+0]
test rsi, rsi
jz short loc_4A722
cmp qword ptr [r13+10h], 0
jz short loc_4A73E
mov rdi, r15
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rsi, [r13+10h]
mov rdi, r12
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, rbx; this
mov rsi, r15; minja::Value *
mov rdx, r12; minja::Value *
call _ZN5minja5Value3setERKS0_S2_; minja::Value::set(minja::Value const&,minja::Value const&)
mov rdi, r12; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
add r13, 20h ; ' '
jmp short loc_4A6BA
loc_4A70D:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4A722:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictKeyIsNull; "Dict key is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_4A758
loc_4A73E:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictValueIsNul; "Dict value is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_4A758:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short $+2
loc_4A770:
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_4A7A0
mov r14, rax
jmp short loc_4A78F
mov r14, rax
lea rdi, [rsp+0E8h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_4A78F:
lea rdi, [rsp+0E8h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_4A7A0
jmp short $+2
loc_4A79D:
mov r14, rax
loc_4A7A0:
mov rdi, rbx; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r14
call __Unwind_Resume
| minja::Value * minja::DictExpr::do_evaluate(minja::Value *this, long long a2)
{
void (****v2)(void); // r13
void (****v3)(void); // rbp
std::runtime_error *exception; // r15
_BYTE v6[8]; // [rsp+8h] [rbp-E0h] BYREF
long long v7; // [rsp+10h] [rbp-D8h] BYREF
_BYTE v8[80]; // [rsp+18h] [rbp-D0h] BYREF
_BYTE v9[128]; // [rsp+68h] [rbp-80h] BYREF
std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>((long long)v6);
minja::Value::Value(this, v6);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7);
v2 = *(void (*****)(void))(a2 + 32);
v3 = *(void (*****)(void))(a2 + 40);
while ( v2 != v3 )
{
if ( !*v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict key is null");
goto LABEL_9;
}
if ( !v2[2] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict value is null");
LABEL_9:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v9, *v2);
minja::Expression::evaluate((long long)v8, v2[2]);
minja::Value::set(this, (const minja::Value *)v9, (const minja::Value *)v8);
minja::Value::~Value((minja::Value *)v8);
minja::Value::~Value((minja::Value *)v9);
v2 += 4;
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RSP + 0x8]
MOV RDI,R12
CALL 0x00148634
MOV RDI,RBX
MOV RSI,R12
CALL 0x0014a92c
LEA RDI,[RSP + 0x10]
CALL 0x0012eeb2
MOV R13,qword ptr [R15 + 0x20]
MOV RBP,qword ptr [R15 + 0x28]
LEA R15,[RSP + 0x68]
LEA R12,[RSP + 0x18]
LAB_0014a6ba:
CMP R13,RBP
JZ 0x0014a70d
MOV RSI,qword ptr [R13]
TEST RSI,RSI
JZ 0x0014a722
CMP qword ptr [R13 + 0x10],0x0
JZ 0x0014a73e
LAB_0014a6cf:
MOV RDI,R15
MOV RDX,R14
CALL 0x0013b08c
MOV RSI,qword ptr [R13 + 0x10]
LAB_0014a6de:
MOV RDI,R12
MOV RDX,R14
CALL 0x0013b08c
LAB_0014a6e9:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
CALL 0x0014a7e6
LAB_0014a6f7:
MOV RDI,R12
CALL 0x0013b31c
MOV RDI,R15
CALL 0x0013b31c
ADD R13,0x20
JMP 0x0014a6ba
LAB_0014a70d:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014a722:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R15,RAX
LAB_0014a72d:
LEA RSI,[0x19e1c9]
MOV RDI,RAX
CALL 0x00120280
LAB_0014a73c:
JMP 0x0014a758
LAB_0014a73e:
PUSH 0x10
POP RDI
CALL 0x00120390
MOV R15,RAX
LAB_0014a749:
LEA RSI,[0x19e1da]
MOV RDI,RAX
CALL 0x00120280
LAB_0014a758:
MOV RSI,qword ptr [0x001e1fe8]
MOV RDX,qword ptr [0x001e1f70]
MOV RDI,R15
CALL 0x00120b30
|
/* minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
DictExpr * __thiscall minja::DictExpr::do_evaluate(DictExpr *this,shared_ptr *param_1)
{
int8 *puVar1;
runtime_error *this_00;
int8 *puVar2;
shared_ptr local_e0 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_d8 [8];
Expression local_d0 [80];
Expression local_80 [80];
std::
make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>
();
Value::Value((Value *)this,local_e0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_d8);
puVar2 = *(int8 **)(param_1 + 0x20);
puVar1 = *(int8 **)(param_1 + 0x28);
while( true ) {
if (puVar2 == puVar1) {
return this;
}
if ((shared_ptr *)*puVar2 == (shared_ptr *)0x0) break;
if (puVar2[2] == 0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014a749 to 0014a757 has its CatchHandler @ 0014a76e */
std::runtime_error::runtime_error(this_00,"Dict value is null");
goto LAB_0014a758;
}
/* try { // try from 0014a6cf to 0014a6d9 has its CatchHandler @ 0014a79d */
Expression::evaluate(local_80,(shared_ptr *)*puVar2);
/* try { // try from 0014a6de to 0014a6e8 has its CatchHandler @ 0014a77d */
Expression::evaluate(local_d0,(shared_ptr *)puVar2[2]);
/* try { // try from 0014a6e9 to 0014a6f6 has its CatchHandler @ 0014a782 */
Value::set((Value *)this,(Value *)local_80,(Value *)local_d0);
Value::~Value((Value *)local_d0);
Value::~Value((Value *)local_80);
puVar2 = puVar2 + 4;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014a72d to 0014a73b has its CatchHandler @ 0014a770 */
std::runtime_error::runtime_error(this_00,"Dict key is null");
LAB_0014a758:
/* try { // try from 0014a758 to 0014a76d has its CatchHandler @ 0014a79b */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001e1fe8,PTR__runtime_error_001e1f70);
}
| |
24,631 | pagecache_fwrite | eloqsql/storage/maria/ma_pagecache.c | static my_bool pagecache_fwrite(PAGECACHE *pagecache,
PAGECACHE_FILE *filedesc,
uchar *buffer,
pgcache_page_no_t pageno,
enum pagecache_page_type type
__attribute__((unused)),
myf flags)
{
int res;
PAGECACHE_IO_HOOK_ARGS args;
DBUG_ENTER("pagecache_fwrite");
DBUG_ASSERT(type != PAGECACHE_READ_UNKNOWN_PAGE);
#ifdef EXTRA_DEBUG_BITMAP
/*
This code is very good when debugging changes in bitmaps or dirty lists
The above define should be defined for all Aria files if you want to
debug either of the above issues.
*/
if (pagecache->extra_debug)
{
char buff[80];
uint len= my_sprintf(buff,
(buff, "fwrite: fd: %d id: %u page: %llu",
filedesc->file,
_ma_file_callback_to_id(filedesc->callback_data),
pageno));
(void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY,
(uchar*) buff, len);
}
#endif
/* initialize hooks args */
args.page= buffer;
args.pageno= pageno;
args.data= filedesc->callback_data;
/* Todo: Integrate this with write_callback so we have only one callback */
if ((*filedesc->flush_log_callback)(&args))
DBUG_RETURN(1);
DBUG_PRINT("info", ("pre_write_hook:%p data: %p",
filedesc->pre_write_hook,
filedesc->callback_data));
if ((*filedesc->pre_write_hook)(&args))
{
DBUG_PRINT("error", ("write callback problem"));
DBUG_RETURN(1);
}
#if __has_feature(memory_sanitizer) /* FIXME: encryption.aria_tiny etc. fail */
/* FIXME: ENGINE=Aria occasionally writes uninitialized data */
__msan_unpoison(args.page, pagecache->block_size);
#endif
res= (int)my_pwrite(filedesc->file, args.page, pagecache->block_size,
((my_off_t) pageno << pagecache->shift), flags);
(*filedesc->post_write_hook)(res, &args);
DBUG_RETURN(res);
} | O0 | c | pagecache_fwrite:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
jmp 0xb69a2
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
leaq -0x60(%rbp), %rdi
callq *0x38(%rax)
cmpb $0x0, %al
je 0xb69d5
jmp 0xb69cf
movb $0x1, -0x1(%rbp)
jmp 0xb6a42
jmp 0xb69d7
jmp 0xb69d9
movq -0x18(%rbp), %rax
leaq -0x60(%rbp), %rdi
callq *0x28(%rax)
cmpb $0x0, %al
je 0xb69f4
jmp 0xb69ea
jmp 0xb69ec
jmp 0xb69ee
movb $0x1, -0x1(%rbp)
jmp 0xb6a42
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x60(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movl %eax, %edx
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x190(%rcx), %ecx
shlq %cl, %rax
movq %rax, %rcx
movq -0x38(%rbp), %r8
callq 0x127770
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x3c(%rbp), %edi
leaq -0x60(%rbp), %rsi
callq *%rax
movl -0x3c(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pagecache_fwrite:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov [rbp+var_38], r9
jmp short $+2
loc_B69A2:
mov rax, [rbp+var_20]
mov [rbp+var_60], rax
mov rax, [rbp+var_28]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov rax, [rax+40h]
mov [rbp+var_50], rax
mov rax, [rbp+var_18]
lea rdi, [rbp+var_60]
call qword ptr [rax+38h]
cmp al, 0
jz short loc_B69D5
jmp short $+2
loc_B69CF:
mov [rbp+var_1], 1
jmp short loc_B6A42
loc_B69D5:
jmp short $+2
loc_B69D7:
jmp short $+2
loc_B69D9:
mov rax, [rbp+var_18]
lea rdi, [rbp+var_60]
call qword ptr [rax+28h]
cmp al, 0
jz short loc_B69F4
jmp short $+2
loc_B69EA:
jmp short $+2
loc_B69EC:
jmp short $+2
loc_B69EE:
mov [rbp+var_1], 1
jmp short loc_B6A42
loc_B69F4:
mov rax, [rbp+var_18]
mov edi, [rax+10h]
mov rsi, [rbp+var_60]
mov rax, [rbp+var_10]
mov eax, [rax+80h]
mov edx, eax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
mov ecx, [rcx+190h]
shl rax, cl
mov rcx, rax
mov r8, [rbp+var_38]
call my_pwrite
mov [rbp+var_3C], eax
mov rax, [rbp+var_18]
mov rax, [rax+30h]
mov edi, [rbp+var_3C]
lea rsi, [rbp+var_60]
call rax
mov eax, [rbp+var_3C]
mov [rbp+var_1], al
loc_B6A42:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
| char pagecache_fwrite(long long a1, long long a2, long long a3, long long a4, int a5, long long a6)
{
_QWORD v7[4]; // [rsp+0h] [rbp-60h] BYREF
unsigned int v8; // [rsp+24h] [rbp-3Ch]
long long v9; // [rsp+28h] [rbp-38h]
int v10; // [rsp+34h] [rbp-2Ch]
long long v11; // [rsp+38h] [rbp-28h]
long long v12; // [rsp+40h] [rbp-20h]
long long v13; // [rsp+48h] [rbp-18h]
long long v14; // [rsp+50h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
v9 = a6;
v7[0] = a3;
v7[1] = a4;
v7[2] = *(_QWORD *)(a2 + 64);
if ( (*(unsigned __int8 ( **)(_QWORD *))(a2 + 56))(v7) )
return 1;
if ( (*(unsigned __int8 ( **)(_QWORD *))(v13 + 40))(v7) )
return 1;
v8 = my_pwrite(*(unsigned int *)(v13 + 16), v7[0], *(unsigned int *)(v14 + 128), v11 << *(_DWORD *)(v14 + 400), v9);
(*(void ( **)(_QWORD, _QWORD *))(v13 + 48))(v8, v7);
return v8;
}
| pagecache_fwrite:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
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 + -0x2c],R8D
MOV qword ptr [RBP + -0x38],R9
JMP 0x001b69a2
LAB_001b69a2:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x60]
CALL qword ptr [RAX + 0x38]
CMP AL,0x0
JZ 0x001b69d5
JMP 0x001b69cf
LAB_001b69cf:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001b6a42
LAB_001b69d5:
JMP 0x001b69d7
LAB_001b69d7:
JMP 0x001b69d9
LAB_001b69d9:
MOV RAX,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x60]
CALL qword ptr [RAX + 0x28]
CMP AL,0x0
JZ 0x001b69f4
JMP 0x001b69ea
LAB_001b69ea:
JMP 0x001b69ec
LAB_001b69ec:
JMP 0x001b69ee
LAB_001b69ee:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001b6a42
LAB_001b69f4:
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,dword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x80]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x190]
SHL RAX,CL
MOV RCX,RAX
MOV R8,qword ptr [RBP + -0x38]
CALL 0x00227770
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x30]
MOV EDI,dword ptr [RBP + -0x3c]
LEA RSI,[RBP + -0x60]
CALL RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV byte ptr [RBP + -0x1],AL
LAB_001b6a42:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
int1
pagecache_fwrite(long param_1,long param_2,int8 param_3,long param_4,int4 param_5,
int8 param_6)
{
char cVar1;
int8 local_68;
long local_60;
int8 local_58;
int4 local_44;
int8 local_40;
int4 local_34;
long local_30;
int8 local_28;
long local_20;
long local_18;
int1 local_9;
local_58 = *(int8 *)(param_2 + 0x40);
local_68 = param_3;
local_60 = param_4;
local_40 = param_6;
local_34 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
cVar1 = (**(code **)(param_2 + 0x38))(&local_68);
if (cVar1 == '\0') {
cVar1 = (**(code **)(local_20 + 0x28))(&local_68);
if (cVar1 == '\0') {
local_44 = my_pwrite(*(int4 *)(local_20 + 0x10),local_68,
*(int4 *)(local_18 + 0x80),
local_30 << ((byte)*(int4 *)(local_18 + 400) & 0x3f),local_40);
(**(code **)(local_20 + 0x30))(local_44,&local_68);
local_9 = (int1)local_44;
}
else {
local_9 = 1;
}
}
else {
local_9 = 1;
}
return local_9;
}
| |
24,632 | ma_mark_file_changed | eloqsql/storage/maria/ma_locking.c | int _ma_mark_file_changed(register MARIA_SHARE *share)
{
if (!share->base.born_transactional)
{
if (!_MA_ALREADY_MARKED_FILE_CHANGED)
return _ma_mark_file_changed_now(share);
}
else
{
/*
For transactional tables, the table is marked changed when the first page
is written. Here we just mark the state to be updated so that caller
can do 'analyze table' and find that is has changed before any pages
are written.
*/
if (! test_all_bits(share->state.changed,
(STATE_CHANGED | STATE_NOT_ANALYZED |
STATE_NOT_OPTIMIZED_KEYS)))
{
mysql_mutex_lock(&share->intern_lock);
share->state.changed|=(STATE_CHANGED | STATE_NOT_ANALYZED |
STATE_NOT_OPTIMIZED_KEYS);
mysql_mutex_unlock(&share->intern_lock);
}
}
return 0;
} | O0 | c | ma_mark_file_changed:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x44c(%rax)
jne 0x30e0b
movq -0x10(%rbp), %rax
movl 0x170(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x30dfb
movq -0x10(%rbp), %rax
movsbl 0x7df(%rax), %eax
cmpl $0x0, %eax
jne 0x30e09
movq -0x10(%rbp), %rdi
callq 0x30e70
movl %eax, -0x4(%rbp)
jmp 0x30e65
jmp 0x30e5e
movq -0x10(%rbp), %rax
movl 0x170(%rax), %eax
andl $0x19, %eax
cmpl $0x19, %eax
je 0x30e5c
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
leaq 0x11f554(%rip), %rsi # 0x150383
movl $0x19c, %edx # imm = 0x19C
callq 0x30ae0
movq -0x10(%rbp), %rax
movl 0x170(%rax), %ecx
orl $0x19, %ecx
movl %ecx, 0x170(%rax)
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x30c80
jmp 0x30e5e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop
| _ma_mark_file_changed:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp byte ptr [rax+44Ch], 0
jnz short loc_30E0B
mov rax, [rbp+var_10]
mov eax, [rax+170h]
and eax, 1
cmp eax, 0
jz short loc_30DFB
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+7DFh]
cmp eax, 0
jnz short loc_30E09
loc_30DFB:
mov rdi, [rbp+var_10]
call _ma_mark_file_changed_now
mov [rbp+var_4], eax
jmp short loc_30E65
loc_30E09:
jmp short loc_30E5E
loc_30E0B:
mov rax, [rbp+var_10]
mov eax, [rax+170h]
and eax, 19h
cmp eax, 19h
jz short loc_30E5C
mov rdi, [rbp+var_10]
add rdi, 8F0h
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 19Ch
call inline_mysql_mutex_lock_2
mov rax, [rbp+var_10]
mov ecx, [rax+170h]
or ecx, 19h
mov [rax+170h], ecx
mov rdi, [rbp+var_10]
add rdi, 8F0h
call inline_mysql_mutex_unlock_2
loc_30E5C:
jmp short $+2
loc_30E5E:
mov [rbp+var_4], 0
loc_30E65:
mov eax, [rbp+var_4]
add rsp, 10h
pop rbp
retn
| long long ma_mark_file_changed(long long a1)
{
if ( *(_BYTE *)(a1 + 1100) )
{
if ( (*(_DWORD *)(a1 + 368) & 0x19) != 0x19 )
{
inline_mysql_mutex_lock_2(
a1 + 2288,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c",
0x19Cu);
*(_DWORD *)(a1 + 368) |= 0x19u;
inline_mysql_mutex_unlock_2(a1 + 2288);
}
return 0;
}
if ( (*(_DWORD *)(a1 + 368) & 1) != 0 && *(_BYTE *)(a1 + 2015) )
return 0;
return (unsigned int)ma_mark_file_changed_now(a1);
}
| _ma_mark_file_changed:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x44c],0x0
JNZ 0x00130e0b
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x170]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00130dfb
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x7df]
CMP EAX,0x0
JNZ 0x00130e09
LAB_00130dfb:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00130e70
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00130e65
LAB_00130e09:
JMP 0x00130e5e
LAB_00130e0b:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x170]
AND EAX,0x19
CMP EAX,0x19
JZ 0x00130e5c
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
LEA RSI,[0x250383]
MOV EDX,0x19c
CALL 0x00130ae0
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x170]
OR ECX,0x19
MOV dword ptr [RAX + 0x170],ECX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
CALL 0x00130c80
LAB_00130e5c:
JMP 0x00130e5e
LAB_00130e5e:
MOV dword ptr [RBP + -0x4],0x0
LAB_00130e65:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
int4 _ma_mark_file_changed(long param_1)
{
int4 uVar1;
if (*(char *)(param_1 + 0x44c) == '\0') {
if (((*(uint *)(param_1 + 0x170) & 1) == 0) || (*(char *)(param_1 + 0x7df) == '\0')) {
uVar1 = _ma_mark_file_changed_now(param_1);
return uVar1;
}
}
else if ((*(uint *)(param_1 + 0x170) & 0x19) != 0x19) {
inline_mysql_mutex_lock
(param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c"
,0x19c);
*(uint *)(param_1 + 0x170) = *(uint *)(param_1 + 0x170) | 0x19;
inline_mysql_mutex_unlock(param_1 + 0x8f0);
}
return 0;
}
| |
24,633 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_token_string() const | llama.cpp/common/json.hpp | std::string get_token_string() const
{
// escape control characters
std::string result;
for (const auto c : token_string)
{
if (static_cast<unsigned char>(c) <= '\x1F')
{
// escape control characters
std::array<char, 9> cs{{}};
static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
result += cs.data();
}
else
{
// add character as is
result.push_back(static_cast<std::string::value_type>(c));
}
}
return result;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_token_string() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x38(%rsi), %r13
movq 0x40(%rsi), %rbp
cmpq %rbp, %r13
je 0x754a9
leaq 0xa4532(%rip), %r14 # 0x11998c
leaq 0x8(%rsp), %r15
movzbl (%r13), %ecx
cmpl $0x1f, %ecx
ja 0x75496
movb $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x9, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x20860
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20b20
jmp 0x754a1
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x21370
incq %r13
cmpq %rbp, %r13
jne 0x7545f
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x754bd
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x754d4
movq (%r12), %rsi
incq %rsi
callq 0x20170
movq %r14, %rdi
callq 0x20ad0
| _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE16get_token_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov r13, [rsi+38h]
mov rbp, [rsi+40h]
cmp r13, rbp
jz short loc_754A9
lea r14, aU4x; "<U+%.4X>"
lea r15, [rsp+48h+var_40]
loc_7545F:
movzx ecx, byte ptr [r13+0]
cmp ecx, 1Fh
ja short loc_75496
mov [rsp+48h+var_38], 0
mov [rsp+48h+var_40], 0
mov esi, 9
mov rdi, r15
mov rdx, r14
xor eax, eax
call _snprintf
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short loc_754A1
loc_75496:
movsx esi, cl
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_754A1:
inc r13
cmp r13, rbp
jnz short loc_7545F
loc_754A9:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_754BD:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_754D4
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_754D4:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_token_string(
long long a1,
long long a2)
{
unsigned __int8 *v2; // r13
unsigned __int8 *i; // rbp
unsigned int v4; // ecx
long long v6; // [rsp+8h] [rbp-40h] BYREF
char v7; // [rsp+10h] [rbp-38h]
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v2 = *(unsigned __int8 **)(a2 + 56);
for ( i = *(unsigned __int8 **)(a2 + 64); v2 != i; ++v2 )
{
v4 = *v2;
if ( v4 > 0x1F )
{
std::string::push_back(a1, (unsigned int)(char)v4);
}
else
{
v7 = 0;
v6 = 0LL;
snprintf(&v6, 9LL, "<U+%.4X>", v4);
std::string::append(a1, &v6);
}
}
return a1;
}
| get_token_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
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 R13,qword ptr [RSI + 0x38]
MOV RBP,qword ptr [RSI + 0x40]
CMP R13,RBP
JZ 0x001754a9
LEA R14,[0x21998c]
LEA R15,[RSP + 0x8]
LAB_0017545f:
MOVZX ECX,byte ptr [R13]
CMP ECX,0x1f
JA 0x00175496
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x8],0x0
MOV ESI,0x9
MOV RDI,R15
MOV RDX,R14
XOR EAX,EAX
CALL 0x00120860
LAB_00175489:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00120b20
JMP 0x001754a1
LAB_00175496:
MOVSX ESI,CL
MOV RDI,RBX
CALL 0x00121370
LAB_001754a1:
INC R13
CMP R13,RBP
JNZ 0x0017545f
LAB_001754a9:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_token_string()
const */
void nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
::get_token_string(void)
{
byte *pbVar1;
long in_RSI;
long *in_RDI;
byte *pbVar2;
char local_40 [16];
*in_RDI = (long)(in_RDI + 2);
in_RDI[1] = 0;
*(int1 *)(in_RDI + 2) = 0;
pbVar2 = *(byte **)(in_RSI + 0x38);
pbVar1 = *(byte **)(in_RSI + 0x40);
if (pbVar2 != pbVar1) {
do {
if (*pbVar2 < 0x20) {
local_40[8] = 0;
local_40[0] = '\0';
local_40[1] = '\0';
local_40[2] = '\0';
local_40[3] = '\0';
local_40[4] = '\0';
local_40[5] = '\0';
local_40[6] = '\0';
local_40[7] = '\0';
snprintf(local_40,9,"<U+%.4X>");
/* try { // try from 00175489 to 00175493 has its CatchHandler @ 001754bd */
std::__cxx11::string::append((char *)in_RDI);
}
else {
/* try { // try from 00175496 to 001754a0 has its CatchHandler @ 001754bb */
std::__cxx11::string::push_back((char)in_RDI);
}
pbVar2 = pbVar2 + 1;
} while (pbVar2 != pbVar1);
}
return;
}
| |
24,634 | void ImPlot::FillRange<double>(ImVector<double>&, int, double, double) | zkingston[P]unknot/build_O1/_deps/implot-src/implot_internal.h | void FillRange(ImVector<T>& buffer, int n, T vmin, T vmax) {
buffer.resize(n);
T step = (vmax - vmin) / (n - 1);
for (int i = 0; i < n; ++i) {
buffer[i] = vmin + i * step;
}
} | O1 | c | void ImPlot::FillRange<double>(ImVector<double>&, int, double, double):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl 0x4(%rdi), %eax
cmpl %esi, %eax
jge 0xc8b18
testl %eax, %eax
je 0xc8abe
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
addl %eax, %ebp
jmp 0xc8ac3
movl $0x8, %ebp
cmpl %ebx, %ebp
cmovlel %ebx, %ebp
cmpl %ebp, %eax
jge 0xc8b18
movaps %xmm0, (%rsp)
movaps %xmm1, 0x10(%rsp)
movslq %ebp, %rdi
shlq $0x3, %rdi
callq 0x2130dc
movq %rax, %r15
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0xc8b05
movslq (%r14), %rdx
shlq $0x3, %rdx
movq %r15, %rdi
callq 0xf810
movq 0x8(%r14), %rdi
callq 0x21318e
movq %r15, 0x8(%r14)
movl %ebp, 0x4(%r14)
movapd 0x10(%rsp), %xmm1
movapd (%rsp), %xmm0
movl %ebx, (%r14)
testl %ebx, %ebx
jle 0xc8bef
subsd %xmm0, %xmm1
leal -0x1(%rbx), %eax
cvtsi2sd %eax, %xmm2
divsd %xmm2, %xmm1
movq 0x8(%r14), %rax
movl %ebx, %ecx
incl %ebx
andl $-0x2, %ebx
decq %rcx
movq %rcx, %xmm2
pshufd $0x44, %xmm2, %xmm9 # xmm9 = xmm2[0,1,0,1]
unpcklpd %xmm1, %xmm1 # xmm1 = xmm1[0,0]
unpcklpd %xmm0, %xmm0 # xmm0 = xmm0[0,0]
movdqa 0x1cb9b4(%rip), %xmm8 # 0x294510
xorl %ecx, %ecx
movdqa 0x1caaaa(%rip), %xmm2 # 0x293610
pxor %xmm2, %xmm9
pcmpeqd %xmm3, %xmm3
movdqa 0x1cb9f9(%rip), %xmm4 # 0x294570
movdqa %xmm8, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm9, %xmm6
pcmpeqd %xmm9, %xmm5
pshufd $0xf5, %xmm5, %xmm5 # xmm5 = xmm5[1,1,3,3]
pand %xmm6, %xmm5
pshufd $0xf5, %xmm6, %xmm6 # xmm6 = xmm6[1,1,3,3]
por %xmm5, %xmm6
xorps %xmm5, %xmm5
cvtsi2sd %ecx, %xmm5
leal 0x1(%rcx), %edx
xorps %xmm7, %xmm7
cvtsi2sd %edx, %xmm7
unpcklpd %xmm7, %xmm5 # xmm5 = xmm5[0],xmm7[0]
mulpd %xmm1, %xmm5
addpd %xmm0, %xmm5
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0xc8bcd
movlpd %xmm5, (%rax,%rcx,8)
pxor %xmm3, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0xc8be1
movhpd %xmm5, 0x8(%rax,%rcx,8)
addq $0x2, %rcx
paddq %xmm4, %xmm8
cmpq %rcx, %rbx
jne 0xc8b77
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN6ImPlot9FillRangeIdEEvR8ImVectorIT_EiS2_S2_:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebx, esi
mov r14, rdi
mov eax, [rdi+4]
cmp eax, esi
jge short loc_C8B18
test eax, eax
jz short loc_C8ABE
mov ebp, eax
shr ebp, 1Fh
add ebp, eax
sar ebp, 1
add ebp, eax
jmp short loc_C8AC3
loc_C8ABE:
mov ebp, 8
loc_C8AC3:
cmp ebp, ebx
cmovle ebp, ebx
cmp eax, ebp
jge short loc_C8B18
movaps [rsp+48h+var_48], xmm0
movaps [rsp+48h+var_38], xmm1
movsxd rdi, ebp
shl rdi, 3; this
call _ZN5ImGui8MemAllocEm; ImGui::MemAlloc(ulong)
mov r15, rax
mov rsi, [r14+8]; void *
test rsi, rsi
jz short loc_C8B05
movsxd rdx, dword ptr [r14]
shl rdx, 3
mov rdi, r15
call _memcpy
mov rdi, [r14+8]; this
call _ZN5ImGui7MemFreeEPv; ImGui::MemFree(void *)
loc_C8B05:
mov [r14+8], r15
mov [r14+4], ebp
movapd xmm1, [rsp+48h+var_38]
movapd xmm0, [rsp+48h+var_48]
loc_C8B18:
mov [r14], ebx
test ebx, ebx
jle loc_C8BEF
subsd xmm1, xmm0
lea eax, [rbx-1]
cvtsi2sd xmm2, eax
divsd xmm1, xmm2
mov rax, [r14+8]
mov ecx, ebx
inc ebx
and ebx, 0FFFFFFFEh
dec rcx
movq xmm2, rcx
pshufd xmm9, xmm2, 44h ; 'D'
unpcklpd xmm1, xmm1
unpcklpd xmm0, xmm0
movdqa xmm8, cs:xmmword_294510
xor ecx, ecx
movdqa xmm2, cs:xmmword_293610
pxor xmm9, xmm2
pcmpeqd xmm3, xmm3
movdqa xmm4, cs:xmmword_294570
loc_C8B77:
movdqa xmm5, xmm8
pxor xmm5, xmm2
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm9
pcmpeqd xmm5, xmm9
pshufd xmm5, xmm5, 0F5h
pand xmm5, xmm6
pshufd xmm6, xmm6, 0F5h
por xmm6, xmm5
xorps xmm5, xmm5
cvtsi2sd xmm5, ecx
lea edx, [rcx+1]
xorps xmm7, xmm7
cvtsi2sd xmm7, edx
unpcklpd xmm5, xmm7
mulpd xmm5, xmm1
addpd xmm5, xmm0
movd edx, xmm6
not edx
test dl, 1
jz short loc_C8BCD
movlpd qword ptr [rax+rcx*8], xmm5
loc_C8BCD:
pxor xmm6, xmm3
pextrw edx, xmm6, 4
test dl, 1
jz short loc_C8BE1
movhpd qword ptr [rax+rcx*8+8], xmm5
loc_C8BE1:
add rcx, 2
paddq xmm8, xmm4
cmp rbx, rcx
jnz short loc_C8B77
loc_C8BEF:
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ImPlot::FillRange<double>(int *a1, unsigned long long a2, __m128d a3, __m128d a4)
{
int v4; // ebx
long long result; // rax
int v6; // ebp
long long v7; // r15
void *v8; // rsi
long long v9; // rcx
long long v10; // rbx
__m128i v11; // xmm9
__m128d v12; // xmm1
__m128d v13; // xmm0
__m128i si128; // xmm8
long long v15; // rcx
__m128i v16; // xmm2
__m128i v17; // xmm9
__m128i v18; // xmm4
__m128i v19; // xmm5
__m128i v20; // xmm6
__m128i v21; // xmm6
__m128d v22; // xmm5
__m128d v23; // xmm7
__m128d v24; // xmm5
v4 = a2;
result = (unsigned int)a1[1];
if ( (int)result < (int)a2 )
{
if ( (_DWORD)result )
v6 = result + (int)result / 2;
else
v6 = 8;
if ( v6 <= (int)a2 )
v6 = a2;
if ( (int)result < v6 )
{
result = ImGui::MemAlloc((ImGui *)(8LL * v6), a2);
v7 = result;
v8 = (void *)*((_QWORD *)a1 + 1);
if ( v8 )
{
memcpy(result, v8, 8LL * *a1);
result = ImGui::MemFree(*((ImGui **)a1 + 1), v8);
}
*((_QWORD *)a1 + 1) = v7;
a1[1] = v6;
}
}
*a1 = v4;
if ( v4 > 0 )
{
a4.m128d_f64[0] = (a4.m128d_f64[0] - a3.m128d_f64[0]) / (double)(v4 - 1);
result = *((_QWORD *)a1 + 1);
v9 = (unsigned int)v4;
v10 = (v4 + 1) & 0xFFFFFFFE;
v11 = _mm_shuffle_epi32((__m128i)(unsigned long long)(v9 - 1), 68);
v12 = _mm_unpacklo_pd(a4, a4);
v13 = _mm_unpacklo_pd(a3, a3);
si128 = _mm_load_si128((const __m128i *)&xmmword_294510);
v15 = 0LL;
v16 = _mm_load_si128((const __m128i *)&xmmword_293610);
v17 = _mm_xor_si128(v11, v16);
v18 = _mm_load_si128((const __m128i *)&xmmword_294570);
do
{
v19 = _mm_xor_si128(si128, v16);
v20 = _mm_cmpgt_epi32(v19, v17);
v21 = _mm_or_si128(
_mm_shuffle_epi32(v20, 245),
_mm_and_si128(_mm_shuffle_epi32(_mm_cmpeq_epi32(v19, v17), 245), v20));
v22 = 0LL;
v22.m128d_f64[0] = (double)(int)v15;
v23 = 0LL;
v23.m128d_f64[0] = (double)((int)v15 + 1);
v24 = _mm_add_pd(_mm_mul_pd(_mm_unpacklo_pd(v22, v23), v12), v13);
if ( (~_mm_cvtsi128_si32(v21) & 1) != 0 )
*(double *)(result + 8 * v15) = v24.m128d_f64[0];
if ( (_mm_extract_epi16(_mm_xor_si128(v21, (__m128i)-1LL), 4) & 1) != 0 )
*(double *)(result + 8 * v15 + 8) = v24.m128d_f64[1];
v15 += 2LL;
si128 = _mm_add_epi64(si128, v18);
}
while ( v10 != v15 );
}
return result;
}
| FillRange<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV EBX,ESI
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x4]
CMP EAX,ESI
JGE 0x001c8b18
TEST EAX,EAX
JZ 0x001c8abe
MOV EBP,EAX
SHR EBP,0x1f
ADD EBP,EAX
SAR EBP,0x1
ADD EBP,EAX
JMP 0x001c8ac3
LAB_001c8abe:
MOV EBP,0x8
LAB_001c8ac3:
CMP EBP,EBX
CMOVLE EBP,EBX
CMP EAX,EBP
JGE 0x001c8b18
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVSXD RDI,EBP
SHL RDI,0x3
CALL 0x003130dc
MOV R15,RAX
MOV RSI,qword ptr [R14 + 0x8]
TEST RSI,RSI
JZ 0x001c8b05
MOVSXD RDX,dword ptr [R14]
SHL RDX,0x3
MOV RDI,R15
CALL 0x0010f810
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x0031318e
LAB_001c8b05:
MOV qword ptr [R14 + 0x8],R15
MOV dword ptr [R14 + 0x4],EBP
MOVAPD XMM1,xmmword ptr [RSP + 0x10]
MOVAPD XMM0,xmmword ptr [RSP]
LAB_001c8b18:
MOV dword ptr [R14],EBX
TEST EBX,EBX
JLE 0x001c8bef
SUBSD XMM1,XMM0
LEA EAX,[RBX + -0x1]
CVTSI2SD XMM2,EAX
DIVSD XMM1,XMM2
MOV RAX,qword ptr [R14 + 0x8]
MOV ECX,EBX
INC EBX
AND EBX,0xfffffffe
DEC RCX
MOVQ XMM2,RCX
PSHUFD XMM9,XMM2,0x44
UNPCKLPD XMM1,XMM1
UNPCKLPD XMM0,XMM0
MOVDQA XMM8,xmmword ptr [0x00394510]
XOR ECX,ECX
MOVDQA XMM2,xmmword ptr [0x00393610]
PXOR XMM9,XMM2
PCMPEQD XMM3,XMM3
MOVDQA XMM4,xmmword ptr [0x00394570]
LAB_001c8b77:
MOVDQA XMM5,XMM8
PXOR XMM5,XMM2
MOVDQA XMM6,XMM5
PCMPGTD XMM6,XMM9
PCMPEQD XMM5,XMM9
PSHUFD XMM5,XMM5,0xf5
PAND XMM5,XMM6
PSHUFD XMM6,XMM6,0xf5
POR XMM6,XMM5
XORPS XMM5,XMM5
CVTSI2SD XMM5,ECX
LEA EDX,[RCX + 0x1]
XORPS XMM7,XMM7
CVTSI2SD XMM7,EDX
UNPCKLPD XMM5,XMM7
MULPD XMM5,XMM1
ADDPD XMM5,XMM0
MOVD EDX,XMM6
NOT EDX
TEST DL,0x1
JZ 0x001c8bcd
MOVLPD qword ptr [RAX + RCX*0x8],XMM5
LAB_001c8bcd:
PXOR XMM6,XMM3
PEXTRW EDX,XMM6,0x4
TEST DL,0x1
JZ 0x001c8be1
MOVHPD qword ptr [RAX + RCX*0x8 + 0x8],XMM5
LAB_001c8be1:
ADD RCX,0x2
PADDQ XMM8,XMM4
CMP RBX,RCX
JNZ 0x001c8b77
LAB_001c8bef:
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* void ImPlot::FillRange<double>(ImVector<double>&, int, double, double) */
void ImPlot::FillRange<double>(ImVector *param_1,int param_2,double param_3,double param_4)
{
int iVar1;
long lVar2;
int1 auVar3 [16];
long lVar4;
long lVar5;
void *__dest;
long lVar6;
ulong uVar7;
int iVar8;
double dVar9;
int1 auVar10 [16];
int1 auVar11 [16];
int1 auVar12 [16];
iVar1 = *(int *)(param_1 + 4);
if (iVar1 < param_2) {
if (iVar1 == 0) {
iVar8 = 8;
}
else {
iVar8 = iVar1 / 2 + iVar1;
}
if (iVar8 <= param_2) {
iVar8 = param_2;
}
if (iVar1 < iVar8) {
__dest = (void *)ImGui::MemAlloc((long)iVar8 << 3);
if (*(void **)(param_1 + 8) != (void *)0x0) {
memcpy(__dest,*(void **)(param_1 + 8),(long)*(int *)param_1 << 3);
ImGui::MemFree(*(void **)(param_1 + 8));
}
*(void **)(param_1 + 8) = __dest;
*(int *)(param_1 + 4) = iVar8;
}
}
*(int *)param_1 = param_2;
lVar5 = _UNK_00394578;
lVar4 = _DAT_00394570;
auVar3 = _DAT_00393610;
if (0 < param_2) {
dVar9 = (param_4 - param_3) / (double)(param_2 + -1);
lVar2 = *(long *)(param_1 + 8);
lVar6 = (ulong)(uint)param_2 - 1;
auVar12._8_4_ = (int)lVar6;
auVar12._0_8_ = lVar6;
auVar12._12_4_ = (int)((ulong)lVar6 >> 0x20);
uVar7 = 0;
auVar12 = auVar12 ^ _DAT_00393610;
auVar11 = _DAT_00394510;
do {
auVar10 = auVar11 ^ auVar3;
if ((bool)(~(auVar10._4_4_ == auVar12._4_4_ && auVar12._0_4_ < auVar10._0_4_ ||
auVar12._4_4_ < auVar10._4_4_) & 1)) {
*(double *)(lVar2 + uVar7 * 8) = (double)(int)uVar7 * dVar9 + param_3;
}
if ((auVar10._12_4_ != auVar12._12_4_ || auVar10._8_4_ <= auVar12._8_4_) &&
auVar10._12_4_ <= auVar12._12_4_) {
*(double *)(lVar2 + 8 + uVar7 * 8) = (double)((int)uVar7 + 1) * dVar9 + param_3;
}
uVar7 = uVar7 + 2;
lVar6 = auVar11._8_8_;
auVar11._0_8_ = auVar11._0_8_ + lVar4;
auVar11._8_8_ = lVar6 + lVar5;
} while ((param_2 + 1U & 0xfffffffe) != uVar7);
}
return;
}
| |
24,635 | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
std::string name = function["name"];
auto parameters = function["parameters"];
auto args_rule = builder.add_schema(name + "-args", parameters);
tool_rules.push_back(builder.add_rule(name + "-call",
"\"<|tool▁call▁begin|>function<|tool▁sep|>" + name + "\\n```json\\n\" " + args_rule + " \"```<|tool▁call▁end|>\""));
});
data.grammar_triggers.push_back({"<|tool▁calls▁begin|>", /* .at_start = */ false});
data.preserved_tokens = {
"<|tool▁sep|>",
"<|tool▁call▁end|>",
};
builder.add_rule("root", "\"<|tool▁calls▁begin|>\" (" + string_join(tool_rules, " | ") + ")" + (inputs.parallel_tool_calls ? "*" : "") + " space");
}, grammar_options);
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_DEEPSEEK_R1;
return data;
} | O1 | cpp | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
leaq 0x20(%rdx), %rdi
leaq 0x1f66b(%rip), %rsi # 0xf2ef5
callq 0xa7271
movb %al, 0x38(%rbx)
leaq 0x10(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %r14, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xd447(%rip), %rax # 0xe0cf6
movq %rax, 0x18(%rsi)
leaq 0xdad8(%rip), %rax # 0xe1392
movq %rax, 0x10(%rsi)
leaq 0x25573(%rip), %rdx # 0xf8e38
leaq 0x38(%rsp), %rdi
callq 0xbd512
leaq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0x1bad0
movq (%r12), %rdi
leaq 0x48(%rsp), %r12
cmpq %r12, %rdi
je 0xd38fb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b900
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xd3914
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movzbl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0xd393e
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0xd3942
leaq 0x10(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x5eaae
jmp 0xd3950
testl %eax, %eax
jne 0xd392e
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x58(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0xa3930
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x81658
movb 0x8(%rbx), %al
leaq 0x68(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x5f00e
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xd39cc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b900
leaq 0x58(%rsp), %rdi
callq 0x5f00e
leaq 0x10(%rsp), %rdi
callq 0x5f00e
movl $0x5, (%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0xd3a4d
jmp 0xd3a5d
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xd3a1b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b900
jmp 0xd3a1b
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x5f00e
leaq 0x10(%rsp), %rdi
callq 0x5f00e
jmp 0xd3a4d
movq %rax, %r14
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xd3a4d
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x800f2
movq %r14, %rdi
callq 0x1bfc0
movq %rax, %rdi
callq 0x23587
| _ZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputs:
push r15
push r14
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor eax, eax
mov [rdi+8], al
mov [rdi+10h], rax
lea rcx, [rdi+28h]
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], al
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], rax
lea rdi, [rdx+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
lea rsi, [rsp+98h+var_88]
xorps xmm0, xmm0
movaps xmmword ptr [rsi], xmm0
movaps xmmword ptr [rsi+10h], xmm0
mov [rsi], r14
mov [rsi+8], rbx
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+98h+var_60]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r12, [rsp+98h+var_60]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea r12, [rsp+98h+var_50]
cmp rdi, r12
jz short loc_D38FB
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D38FB:
mov rax, [rsp+98h+var_78]
test rax, rax
jz short loc_D3914
lea rdi, [rsp+98h+var_88]
mov rsi, rdi
mov edx, 3
call rax
loc_D3914:
movzx eax, byte ptr [r14+10h]
lea ecx, [rax-1]
cmp ecx, 2
jnb short loc_D393E
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_D3942
loc_D392E:
lea rsi, [r14+10h]
lea rdi, [rsp+98h+var_88]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_D3950
loc_D393E:
test eax, eax
jnz short loc_D392E
loc_D3942:
mov [rsp+98h+var_88], 0
mov [rsp+98h+var_80], 0
loc_D3950:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+98h+var_40]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+98h+var_98], 1
lea rdi, [rsp+98h+var_60]
lea rcx, [rsp+98h+var_88]
mov rsi, r15
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&,bool)
lea rdi, [rsp+98h+var_30]
lea rsi, [rsp+98h+var_60]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+98h+var_30]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+98h+var_60]; void *
cmp rdi, r12
jz short loc_D39CC
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D39CC:
lea rdi, [rsp+98h+var_40]
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()
lea rdi, [rsp+98h+var_88]
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 dword ptr [rbx], 5
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
jmp short loc_D3A4D
jmp short loc_D3A5D
mov r14, rax
mov rdi, [rsp+98h+var_60]; void *
cmp rdi, r12
jz short loc_D3A1B
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D3A1B
mov r14, rax
loc_D3A1B:
lea rdi, [rsp+98h+var_40]
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()
lea rdi, [rsp+98h+var_88]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_D3A4D
mov r14, rax
mov rax, [rsp+98h+var_78]
test rax, rax
jz short loc_D3A4D
lea rdi, [rsp+98h+var_88]
mov rsi, rdi
mov edx, 3
call rax
loc_D3A4D:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
loc_D3A5D:
mov rdi, rax
call __clang_call_terminate
| const minja::chat_template * common_chat_params_init_deepseek_r1(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
long long v4; // rcx
int v5; // r8d
int v6; // r9d
int v7; // r8d
char v8; // al
long long v9; // rax
long long v11; // [rsp+10h] [rbp-88h] BYREF
const minja::chat_template *v12; // [rsp+18h] [rbp-80h]
long long ( *v13)(); // [rsp+20h] [rbp-78h]
long long ( *v14)(); // [rsp+28h] [rbp-70h]
void *v15[2]; // [rsp+38h] [rbp-60h] BYREF
_QWORD v16[2]; // [rsp+48h] [rbp-50h] BYREF
unsigned __int8 v17[8]; // [rsp+58h] [rbp-40h] BYREF
long long v18; // [rsp+60h] [rbp-38h]
char v19[8]; // [rsp+68h] [rbp-30h] BYREF
long long v20; // [rsp+70h] [rbp-28h]
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v11 = a3;
v12 = a1;
v14 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v13 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11]((long long)v15, (long long)&v11, grammar_options, v4, v5, v6);
std::string::operator=((char *)a1 + 24, v15);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( v13 )
((void ( *)(long long *, long long *, long long))v13)(&v11, &v11, 3LL);
if ( (unsigned int)*(unsigned __int8 *)(a3 + 16) - 1 >= 2 )
{
if ( *(_BYTE *)(a3 + 16) )
goto LABEL_7;
}
else if ( **(_QWORD **)(a3 + 24) != *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LABEL_7:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(unsigned __int8 *)&v11,
(unsigned __int8 *)(a3 + 16));
goto LABEL_10;
}
LOBYTE(v11) = 0;
v12 = 0LL;
LABEL_10:
v7 = *(unsigned __int8 *)(a3 + 104);
v17[0] = 0;
v18 = 0LL;
minja::chat_template::apply((long long)v15, a2, (unsigned __int8 *)a3, (unsigned __int8 *)&v11, v7, v17, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v19);
v8 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v19[0];
v19[0] = v8;
v9 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = v20;
v20 = v9;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v19);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
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(v17);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v11);
*(_DWORD *)a1 = 5;
return a1;
}
| common_chat_params_init_deepseek_r1:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x8],AL
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV byte ptr [RDI + 0x28],AL
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],RAX
LEA RDI,[RDX + 0x20]
LEA RSI,[0x1f2ef5]
CALL 0x001a7271
MOV byte ptr [RBX + 0x38],AL
LEA RSI,[RSP + 0x10]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOV qword ptr [RSI],R14
MOV qword ptr [RSI + 0x8],RBX
LEA RAX,[0x1e0cf6]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1e1392]
MOV qword ptr [RSI + 0x10],RAX
LAB_001d38be:
LEA RDX,[0x1f8e38]
LEA RDI,[RSP + 0x38]
CALL 0x001bd512
LEA RDI,[RBX + 0x18]
LEA R12,[RSP + 0x38]
MOV RSI,R12
CALL 0x0011bad0
MOV RDI,qword ptr [R12]
LEA R12,[RSP + 0x48]
CMP RDI,R12
JZ 0x001d38fb
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011b900
LAB_001d38fb:
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
JZ 0x001d3914
LAB_001d3905:
LEA RDI,[RSP + 0x10]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001d3914:
MOVZX EAX,byte ptr [R14 + 0x10]
LEA ECX,[RAX + -0x1]
CMP ECX,0x2
JNC 0x001d393e
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x001d3942
LAB_001d392e:
LEA RSI,[R14 + 0x10]
LEA RDI,[RSP + 0x10]
CALL 0x0015eaae
JMP 0x001d3950
LAB_001d393e:
TEST EAX,EAX
JNZ 0x001d392e
LAB_001d3942:
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
LAB_001d3950:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x58]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_001d3966:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x38]
LEA RCX,[RSP + 0x10]
MOV RSI,R15
MOV RDX,R14
CALL 0x001a3930
LAB_001d3982:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x38]
CALL 0x00181658
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0x68]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0015f00e
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R12
JZ 0x001d39cc
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011b900
LAB_001d39cc:
LEA RDI,[RSP + 0x58]
CALL 0x0015f00e
LEA RDI,[RSP + 0x10]
CALL 0x0015f00e
MOV dword ptr [RBX],0x5
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R14
POP R15
RET
|
/* common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) */
chat_template *
common_chat_params_init_deepseek_r1(chat_template *param_1,common_chat_inputs *param_2)
{
int8 uVar1;
chat_template cVar2;
ulong in_RDX;
ulong local_88;
chat_template *pcStack_80;
code *local_78;
code *pcStack_70;
long *local_60 [2];
long local_50 [2];
data local_40 [8];
int8 local_38;
chat_template local_30 [8];
int8 local_28;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
cVar2 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar2;
pcStack_70 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_78 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 001d38be to 001d38ce has its CatchHandler @ 001d3a31 */
local_88 = in_RDX;
pcStack_80 = param_1;
build_grammar_abi_cxx11_((function *)local_60,(common_grammar_options *)&local_88);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_60);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
if (local_78 != (code *)0x0) {
/* try { // try from 001d3905 to 001d3913 has its CatchHandler @ 001d39fa */
(*local_78)(&local_88,&local_88,3);
}
if (*(byte *)(in_RDX + 0x10) - 1 < 2) {
if (**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1]) {
LAB_001d3942:
local_88 = local_88 & 0xffffffffffffff00;
pcStack_80 = (chat_template *)0x0;
goto LAB_001d3950;
}
}
else if (*(byte *)(in_RDX + 0x10) == 0) goto LAB_001d3942;
/* try { // try from 001d392e to 001d393b has its CatchHandler @ 001d39f5 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)&local_88,(basic_json *)(in_RDX + 0x10));
LAB_001d3950:
local_40[0] = (data)0x0;
local_38 = 0;
/* try { // try from 001d3966 to 001d3981 has its CatchHandler @ 001d3a18 */
minja::chat_template::apply
((basic_json *)local_60,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)&local_88,
*(bool *)(in_RDX + 0x68));
/* try { // try from 001d3982 to 001d3990 has its CatchHandler @ 001d39fc */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_30,local_60);
cVar2 = param_1[8];
param_1[8] = local_30[0];
uVar1 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_28;
local_30[0] = cVar2;
local_28 = uVar1;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_30);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_88);
*(int4 *)param_1 = 5;
return param_1;
}
| |
24,636 | Extmem::ReadWord(unsigned int) | sp1187[P]veesem/src/core/spg200/extmem.cc | word_t Extmem::ReadWord(addr_t addr) {
switch (ctrl_.address_decode) {
case 0:
return io_.ReadRomCsb(addr);
case 1:
switch (addr >> 21) {
case 0:
return io_.ReadRomCsb(addr & 0x1fffff);
case 1:
return io_.ReadCsb1(addr & 0x1fffff);
default:
__builtin_unreachable();
}
break;
case 2:
case 3:
switch (addr >> 20) {
case 0:
return io_.ReadRomCsb(addr & 0x0fffff);
case 1:
return io_.ReadCsb1(addr & 0x0fffff);
case 2:
return io_.ReadCsb2(addr & 0x0fffff);
case 3:
return io_.ReadCsb3(addr & 0x0fffff);
default:
__builtin_unreachable();
}
default:
__builtin_unreachable();
break;
}
return 0;
} | O0 | cpp | Extmem::ReadWord(unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x18(%rbp)
movl %esi, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
shrl $0x6, %eax
andl $0x3, %eax
movl %eax, -0x20(%rbp)
je 0x1f10b
jmp 0x1f0ff
movl -0x20(%rbp), %eax
subl $0x1, %eax
je 0x1f125
jmp 0x1f109
jmp 0x1f173
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
movq (%rdi), %rax
callq *0x68(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movl -0x1c(%rbp), %eax
shrl $0x15, %eax
testl %eax, %eax
je 0x1f133
jmp 0x1f131
jmp 0x1f153
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0x1fffff, %esi # imm = 0x1FFFFF
movq (%rdi), %rax
callq *0x68(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0x1fffff, %esi # imm = 0x1FFFFF
movq (%rdi), %rax
callq *0x78(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movl -0x1c(%rbp), %eax
shrl $0x14, %eax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
leaq 0xd4148(%rip), %rcx # 0xf32d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0xfffff, %esi # imm = 0xFFFFF
movq (%rdi), %rax
callq *0x68(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0xfffff, %esi # imm = 0xFFFFF
movq (%rdi), %rax
callq *0x78(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0xfffff, %esi # imm = 0xFFFFF
movq (%rdi), %rax
callq *0x88(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1c(%rbp), %esi
andl $0xfffff, %esi # imm = 0xFFFFF
movq (%rdi), %rax
callq *0x98(%rax)
movw %ax, -0xa(%rbp)
jmp 0x1f20b
movw -0xa(%rbp), %ax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN6Extmem8ReadWordEj:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_18], rdi
mov [rbp+var_1C], esi
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, word ptr [rax]
shr eax, 6
and eax, 3
mov [rbp+var_20], eax
jz short loc_1F10B
jmp short $+2
loc_1F0FF:
mov eax, [rbp+var_20]
sub eax, 1
jz short loc_1F125
jmp short $+2
loc_1F109:
jmp short loc_1F173
loc_1F10B:
mov rax, [rbp+var_28]
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
mov rax, [rdi]
call qword ptr [rax+68h]
mov [rbp+var_A], ax
jmp loc_1F20B
loc_1F125:
mov eax, [rbp+var_1C]
shr eax, 15h
test eax, eax
jz short loc_1F133
jmp short $+2
loc_1F131:
jmp short loc_1F153
loc_1F133:
mov rax, [rbp+var_28]
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 1FFFFFh
mov rax, [rdi]
call qword ptr [rax+68h]
mov [rbp+var_A], ax
jmp loc_1F20B
loc_1F153:
mov rax, [rbp+var_28]
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 1FFFFFh
mov rax, [rdi]
call qword ptr [rax+78h]
mov [rbp+var_A], ax
jmp loc_1F20B
loc_1F173:
mov eax, [rbp+var_1C]
shr eax, 14h
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
lea rcx, jpt_1F18F
movsxd rax, ds:(jpt_1F18F - 0F32D0h)[rcx+rax*4]; switch 4 cases
add rax, rcx
jmp rax; switch jump
loc_1F191:
mov rax, [rbp+var_28]; jumptable 000000000001F18F case 0
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 0FFFFFh
mov rax, [rdi]
call qword ptr [rax+68h]
mov [rbp+var_A], ax
jmp short loc_1F20B
loc_1F1AE:
mov rax, [rbp+var_28]; jumptable 000000000001F18F case 1
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 0FFFFFh
mov rax, [rdi]
call qword ptr [rax+78h]
mov [rbp+var_A], ax
jmp short loc_1F20B
loc_1F1CB:
mov rax, [rbp+var_28]; jumptable 000000000001F18F case 2
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 0FFFFFh
mov rax, [rdi]
call qword ptr [rax+88h]
mov [rbp+var_A], ax
jmp short loc_1F20B
loc_1F1EB:
mov rax, [rbp+var_28]; jumptable 000000000001F18F case 3
mov rdi, [rax+8]
mov esi, [rbp+var_1C]
and esi, 0FFFFFh
mov rax, [rdi]
call qword ptr [rax+98h]
mov [rbp+var_A], ax
jmp short $+2
loc_1F20B:
mov ax, [rbp+var_A]
add rsp, 30h
pop rbp
retn
| __int16 Extmem::ReadWord(Extmem *this, unsigned int a2)
{
__int16 v3; // [rsp+26h] [rbp-Ah]
if ( ((*(unsigned __int16 *)this >> 6) & 3) == 0 )
return (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 104LL))(*((_QWORD *)this + 1), a2);
if ( ((*(unsigned __int16 *)this >> 6) & 3) == 1 )
{
if ( a2 >> 21 )
return (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 120LL))(
*((_QWORD *)this + 1),
a2 & 0x1FFFFF);
else
return (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 104LL))(
*((_QWORD *)this + 1),
a2 & 0x1FFFFF);
}
else
{
switch ( a2 >> 20 )
{
case 0u:
v3 = (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 104LL))(
*((_QWORD *)this + 1),
a2 & 0xFFFFF);
break;
case 1u:
v3 = (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 120LL))(
*((_QWORD *)this + 1),
a2 & 0xFFFFF);
break;
case 2u:
v3 = (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 136LL))(
*((_QWORD *)this + 1),
a2 & 0xFFFFF);
break;
case 3u:
v3 = (*(long long ( **)(_QWORD, _QWORD))(**((_QWORD **)this + 1) + 152LL))(
*((_QWORD *)this + 1),
a2 & 0xFFFFF);
break;
}
}
return v3;
}
| ReadWord:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x18],RDI
MOV dword ptr [RBP + -0x1c],ESI
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,word ptr [RAX]
SHR EAX,0x6
AND EAX,0x3
MOV dword ptr [RBP + -0x20],EAX
JZ 0x0011f10b
JMP 0x0011f0ff
LAB_0011f0ff:
MOV EAX,dword ptr [RBP + -0x20]
SUB EAX,0x1
JZ 0x0011f125
JMP 0x0011f109
LAB_0011f109:
JMP 0x0011f173
LAB_0011f10b:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV ESI,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x68]
MOV word ptr [RBP + -0xa],AX
JMP 0x0011f20b
LAB_0011f125:
MOV EAX,dword ptr [RBP + -0x1c]
SHR EAX,0x15
TEST EAX,EAX
JZ 0x0011f133
JMP 0x0011f131
LAB_0011f131:
JMP 0x0011f153
LAB_0011f133:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV ESI,dword ptr [RBP + -0x1c]
AND ESI,0x1fffff
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x68]
MOV word ptr [RBP + -0xa],AX
JMP 0x0011f20b
LAB_0011f153:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV ESI,dword ptr [RBP + -0x1c]
AND ESI,0x1fffff
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x78]
MOV word ptr [RBP + -0xa],AX
JMP 0x0011f20b
LAB_0011f173:
MOV EAX,dword ptr [RBP + -0x1c]
SHR EAX,0x14
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[0x1f32d0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
LAB_0011f20b:
MOV AX,word ptr [RBP + -0xa]
ADD RSP,0x30
POP RBP
RET
|
/* Extmem::ReadWord(unsigned int) */
int2 __thiscall Extmem::ReadWord(Extmem *this,uint param_1)
{
int2 uVar1;
int2 local_12;
if ((*(ushort *)this >> 6 & 3) == 0) {
local_12 = (**(code **)(**(long **)(this + 8) + 0x68))(*(long **)(this + 8),param_1);
}
else {
if ((*(ushort *)this >> 6 & 3) != 1) {
/* WARNING: Could not recover jumptable at 0x0011f18f. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar1 = (*(code *)(&DAT_001f32d0 + *(int *)(&DAT_001f32d0 + (ulong)(param_1 >> 0x14) * 4)))();
return uVar1;
}
if (param_1 >> 0x15 == 0) {
local_12 = (**(code **)(**(long **)(this + 8) + 0x68))
(*(long **)(this + 8),param_1 & 0x1fffff);
}
else {
local_12 = (**(code **)(**(long **)(this + 8) + 0x78))
(*(long **)(this + 8),param_1 & 0x1fffff);
}
}
return local_12;
}
| |
24,637 | Extmem::ReadWord(unsigned int) | sp1187[P]veesem/src/core/spg200/extmem.cc | word_t Extmem::ReadWord(addr_t addr) {
switch (ctrl_.address_decode) {
case 0:
return io_.ReadRomCsb(addr);
case 1:
switch (addr >> 21) {
case 0:
return io_.ReadRomCsb(addr & 0x1fffff);
case 1:
return io_.ReadCsb1(addr & 0x1fffff);
default:
__builtin_unreachable();
}
break;
case 2:
case 3:
switch (addr >> 20) {
case 0:
return io_.ReadRomCsb(addr & 0x0fffff);
case 1:
return io_.ReadCsb1(addr & 0x0fffff);
case 2:
return io_.ReadCsb2(addr & 0x0fffff);
case 3:
return io_.ReadCsb3(addr & 0x0fffff);
default:
__builtin_unreachable();
}
default:
__builtin_unreachable();
break;
}
return 0;
} | O3 | cpp | Extmem::ReadWord(unsigned int):
movl (%rdi), %eax
shrl $0x6, %eax
andl $0x3, %eax
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jae 0xeb35
movl %esi, %ecx
shrl $0x14, %ecx
movq 0x8(%rdi), %rdi
andl $0xfffff, %esi # imm = 0xFFFFF
movq (%rdi), %rax
leaq 0x83b95(%rip), %rdx # 0x926b8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x88(%rax), %rax
jmpq *%rax
cmpl $0x1, %eax
jne 0xeb55
movq 0x8(%rdi), %rdi
cmpl $0x1fffff, %esi # imm = 0x1FFFFF
jbe 0xeb59
andl $0x1fffff, %esi # imm = 0x1FFFFF
movq (%rdi), %rax
movq 0x78(%rax), %rax
jmpq *%rax
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
jmpq *%rax
movq 0x98(%rax), %rax
jmpq *%rax
nop
| _ZN6Extmem8ReadWordEj:
mov eax, [rdi]
shr eax, 6
and eax, 3
lea ecx, [rax-2]
cmp ecx, 2
jnb short loc_EB35
mov ecx, esi
shr ecx, 14h
mov rdi, [rdi+8]
and esi, 0FFFFFh
mov rax, [rdi]
lea rdx, jpt_EB2A
movsxd rcx, ds:(jpt_EB2A - 926B8h)[rdx+rcx*4]; switch 4 cases
add rcx, rdx
jmp rcx; switch jump
loc_EB2C:
mov rax, [rax+88h]; jumptable 000000000000EB2A case 2
jmp rax
loc_EB35:
cmp eax, 1
jnz short loc_EB55
mov rdi, [rdi+8]
cmp esi, 1FFFFFh
jbe short loc_EB59
and esi, 1FFFFFh
mov rax, [rdi]
loc_EB4F:
mov rax, [rax+78h]; jumptable 000000000000EB2A case 1
jmp rax
loc_EB55:
mov rdi, [rdi+8]
loc_EB59:
mov rax, [rdi]
loc_EB5C:
mov rax, [rax+68h]; jumptable 000000000000EB2A case 0
jmp rax
loc_EB62:
mov rax, [rax+98h]; jumptable 000000000000EB2A case 3
jmp rax
| long long Extmem::ReadWord(Extmem *this, unsigned int a2)
{
int v2; // eax
long long (**v3)(void); // rax
long long result; // rax
long long (***v5)(void); // rdi
v2 = (*(_DWORD *)this >> 6) & 3;
if ( (unsigned int)(v2 - 2) >= 2 )
{
if ( v2 == 1 )
{
v5 = (long long (***)(void))*((_QWORD *)this + 1);
if ( a2 > 0x1FFFFF )
{
v3 = *v5;
return v3[15]();
}
}
else
{
v5 = (long long (***)(void))*((_QWORD *)this + 1);
}
v3 = *v5;
return v3[13]();
}
else
{
v3 = (long long (**)(void))**((_QWORD **)this + 1);
switch ( a2 >> 20 )
{
case 0u:
return v3[13]();
case 1u:
return v3[15]();
case 2u:
result = v3[17]();
break;
case 3u:
result = v3[19]();
break;
}
}
return result;
}
| ReadWord:
MOV EAX,dword ptr [RDI]
SHR EAX,0x6
AND EAX,0x3
LEA ECX,[RAX + -0x2]
CMP ECX,0x2
JNC 0x0010eb35
MOV ECX,ESI
SHR ECX,0x14
MOV RDI,qword ptr [RDI + 0x8]
AND ESI,0xfffff
MOV RAX,qword ptr [RDI]
LEA RDX,[0x1926b8]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
JMP RCX
LAB_0010eb35:
CMP EAX,0x1
JNZ 0x0010eb55
MOV RDI,qword ptr [RDI + 0x8]
CMP ESI,0x1fffff
JBE 0x0010eb59
AND ESI,0x1fffff
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x78]
JMP RAX
LAB_0010eb55:
MOV RDI,qword ptr [RDI + 0x8]
LAB_0010eb59:
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x68]
JMP RAX
|
/* Extmem::ReadWord(unsigned int) */
void __thiscall Extmem::ReadWord(Extmem *this,uint param_1)
{
uint uVar1;
long *plVar2;
uVar1 = *(uint *)this >> 6 & 3;
if (uVar1 - 2 < 2) {
/* WARNING: Could not recover jumptable at 0x0010eb2a. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_001926b8 + *(int *)(&DAT_001926b8 + (ulong)(param_1 >> 0x14) * 4)))
(*(int8 *)(this + 8),param_1 & 0xfffff,&DAT_001926b8,
&DAT_001926b8 + *(int *)(&DAT_001926b8 + (ulong)(param_1 >> 0x14) * 4));
return;
}
if (uVar1 == 1) {
plVar2 = *(long **)(this + 8);
if (0x1fffff < param_1) {
/* WARNING: Could not recover jumptable at 0x0010eb53. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar2 + 0x78))(plVar2,param_1 & 0x1fffff);
return;
}
}
else {
plVar2 = *(long **)(this + 8);
}
/* WARNING: Could not recover jumptable at 0x0010eb60. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar2 + 0x68))();
return;
}
| |
24,638 | my_multi_malloc_large | eloqsql/mysys/mulalloc.c | void *my_multi_malloc_large(PSI_memory_key key, myf myFlags, ...)
{
va_list args;
char **ptr,*start,*res;
ulonglong tot_length,length;
DBUG_ENTER("my_multi_malloc");
va_start(args,myFlags);
tot_length=0;
while ((ptr=va_arg(args, char **)))
{
length=va_arg(args,ulonglong);
tot_length+=ALIGN_SIZE(length);
}
va_end(args);
if (!(start=(char *) my_malloc(key, (size_t) tot_length, myFlags)))
DBUG_RETURN(0); /* purecov: inspected */
va_start(args,myFlags);
res=start;
while ((ptr=va_arg(args, char **)))
{
*ptr=res;
length=va_arg(args,ulonglong);
res+=ALIGN_SIZE(length);
}
va_end(args);
DBUG_RETURN((void*) start);
} | O0 | c | my_multi_malloc_large:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
testb %al, %al
je 0xee811
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r9, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movq %rcx, -0xf8(%rbp)
movq %rdx, -0x100(%rbp)
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq $0x0, -0x50(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x28, %eax
ja 0xee89b
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x128(%rbp)
jmp 0xee8b8
movq -0x120(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xee953
leaq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x12c(%rbp)
cmpl $0x28, %eax
ja 0xee90b
movq -0x138(%rbp), %rcx
movl -0x12c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x140(%rbp)
jmp 0xee928
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xee860
leaq -0x30(%rbp), %rax
movl -0xc(%rbp), %edi
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xf5190
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0xee980
jmp 0xee973
movq $0x0, -0x8(%rbp)
jmp 0xeeab6
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x144(%rbp)
cmpl $0x28, %eax
ja 0xee9e7
movq -0x150(%rbp), %rcx
movl -0x144(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x158(%rbp)
jmp 0xeea04
movq -0x150(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xeeaaa
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
leaq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x15c(%rbp)
cmpl $0x28, %eax
ja 0xeea62
movq -0x168(%rbp), %rcx
movl -0x15c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x170(%rbp)
jmp 0xeea7f
movq -0x168(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xee9ac
leaq -0x30(%rbp), %rax
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_multi_malloc_large:
push rbp
mov rbp, rsp
sub rsp, 170h
test al, al
jz short loc_EE811
movaps [rbp+var_E0], xmm0
movaps [rbp+var_D0], xmm1
movaps [rbp+var_C0], xmm2
movaps [rbp+var_B0], xmm3
movaps [rbp+var_A0], xmm4
movaps [rbp+var_90], xmm5
movaps [rbp+var_80], xmm6
movaps [rbp+var_70], xmm7
loc_EE811:
mov [rbp+var_E8], r9
mov [rbp+var_F0], r8
mov [rbp+var_F8], rcx
mov [rbp+var_100], rdx
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
mov [rbp+var_50], 0
loc_EE860:
lea rax, [rbp+var_30]
mov [rbp+var_120], rax
mov eax, [rbp+var_30]
mov [rbp+var_114], eax
cmp eax, 28h ; '('
ja short loc_EE89B
mov rcx, [rbp+var_120]
mov edx, [rbp+var_114]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_128], rax
jmp short loc_EE8B8
loc_EE89B:
mov rcx, [rbp+var_120]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_128], rax
loc_EE8B8:
mov rax, [rbp+var_128]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_EE953
lea rax, [rbp+var_30]
mov [rbp+var_138], rax
mov eax, [rbp+var_30]
mov [rbp+var_12C], eax
cmp eax, 28h ; '('
ja short loc_EE90B
mov rcx, [rbp+var_138]
mov edx, [rbp+var_12C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_140], rax
jmp short loc_EE928
loc_EE90B:
mov rcx, [rbp+var_138]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_140], rax
loc_EE928:
mov rax, [rbp+var_140]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_50]
mov [rbp+var_50], rax
jmp loc_EE860
loc_EE953:
lea rax, [rbp+var_30]
mov edi, [rbp+var_C]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_18]
call my_malloc
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_EE980
jmp short $+2
loc_EE973:
mov [rbp+var_8], 0
jmp loc_EEAB6
loc_EE980:
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
loc_EE9AC:
lea rax, [rbp+var_30]
mov [rbp+var_150], rax
mov eax, [rbp+var_30]
mov [rbp+var_144], eax
cmp eax, 28h ; '('
ja short loc_EE9E7
mov rcx, [rbp+var_150]
mov edx, [rbp+var_144]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_158], rax
jmp short loc_EEA04
loc_EE9E7:
mov rcx, [rbp+var_150]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_158], rax
loc_EEA04:
mov rax, [rbp+var_158]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_EEAAA
mov rcx, [rbp+var_48]
mov rax, [rbp+var_38]
mov [rax], rcx
lea rax, [rbp+var_30]
mov [rbp+var_168], rax
mov eax, [rbp+var_30]
mov [rbp+var_15C], eax
cmp eax, 28h ; '('
ja short loc_EEA62
mov rcx, [rbp+var_168]
mov edx, [rbp+var_15C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_170], rax
jmp short loc_EEA7F
loc_EEA62:
mov rcx, [rbp+var_168]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_170], rax
loc_EEA7F:
mov rax, [rbp+var_170]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_48]
mov [rbp+var_48], rax
jmp loc_EE9AC
loc_EEAAA:
lea rax, [rbp+var_30]
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_EEAB6:
mov rax, [rbp+var_8]
add rsp, 170h
pop rbp
retn
| long long my_multi_malloc_large(unsigned int a1, long long a2, ...)
{
_QWORD *overflow_arg_area; // rax
_QWORD *v3; // rax
_QWORD *v4; // rax
_QWORD *v5; // rax
long long i; // [rsp+120h] [rbp-50h]
long long j; // [rsp+128h] [rbp-48h]
long long v9; // [rsp+130h] [rbp-40h]
va_list va; // [rsp+140h] [rbp-30h] BYREF
long long v11; // [rsp+158h] [rbp-18h]
unsigned int v12; // [rsp+164h] [rbp-Ch]
va_start(va, a2);
v12 = a1;
v11 = a2;
for ( i = 0LL; ; i += (*v3 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
overflow_arg_area = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*overflow_arg_area )
break;
if ( va[0].gp_offset > 0x28 )
{
v3 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v3 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
v9 = my_malloc(v12, i, v11);
if ( !v9 )
return 0LL;
va_end(va);
va_start(va, a2);
for ( j = v9; ; j += (*v5 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
v4 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*v4 )
break;
*(_QWORD *)*v4 = j;
if ( va[0].gp_offset > 0x28 )
{
v5 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v5 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
return v9;
}
| my_multi_malloc_large:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
TEST AL,AL
JZ 0x001ee811
MOVAPS xmmword ptr [RBP + -0xe0],XMM0
MOVAPS xmmword ptr [RBP + -0xd0],XMM1
MOVAPS xmmword ptr [RBP + -0xc0],XMM2
MOVAPS xmmword ptr [RBP + -0xb0],XMM3
MOVAPS xmmword ptr [RBP + -0xa0],XMM4
MOVAPS xmmword ptr [RBP + -0x90],XMM5
MOVAPS xmmword ptr [RBP + -0x80],XMM6
MOVAPS xmmword ptr [RBP + -0x70],XMM7
LAB_001ee811:
MOV qword ptr [RBP + -0xe8],R9
MOV qword ptr [RBP + -0xf0],R8
MOV qword ptr [RBP + -0xf8],RCX
MOV qword ptr [RBP + -0x100],RDX
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
MOV qword ptr [RBP + -0x50],0x0
LAB_001ee860:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x120],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x114],EAX
CMP EAX,0x28
JA 0x001ee89b
MOV RCX,qword ptr [RBP + -0x120]
MOV EDX,dword ptr [RBP + -0x114]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x128],RAX
JMP 0x001ee8b8
LAB_001ee89b:
MOV RCX,qword ptr [RBP + -0x120]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x128],RAX
LAB_001ee8b8:
MOV RAX,qword ptr [RBP + -0x128]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001ee953
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x138],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x28
JA 0x001ee90b
MOV RCX,qword ptr [RBP + -0x138]
MOV EDX,dword ptr [RBP + -0x12c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x140],RAX
JMP 0x001ee928
LAB_001ee90b:
MOV RCX,qword ptr [RBP + -0x138]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x140],RAX
LAB_001ee928:
MOV RAX,qword ptr [RBP + -0x140]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001ee860
LAB_001ee953:
LEA RAX,[RBP + -0x30]
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001f5190
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x001ee980
JMP 0x001ee973
LAB_001ee973:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001eeab6
LAB_001ee980:
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
LAB_001ee9ac:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x150],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x144],EAX
CMP EAX,0x28
JA 0x001ee9e7
MOV RCX,qword ptr [RBP + -0x150]
MOV EDX,dword ptr [RBP + -0x144]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x158],RAX
JMP 0x001eea04
LAB_001ee9e7:
MOV RCX,qword ptr [RBP + -0x150]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x158],RAX
LAB_001eea04:
MOV RAX,qword ptr [RBP + -0x158]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001eeaaa
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x168],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x15c],EAX
CMP EAX,0x28
JA 0x001eea62
MOV RCX,qword ptr [RBP + -0x168]
MOV EDX,dword ptr [RBP + -0x15c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x170],RAX
JMP 0x001eea7f
LAB_001eea62:
MOV RCX,qword ptr [RBP + -0x168]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x170],RAX
LAB_001eea7f:
MOV RAX,qword ptr [RBP + -0x170]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001ee9ac
LAB_001eeaaa:
LEA RAX,[RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001eeab6:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x170
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
long my_multi_malloc_large
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int4 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
long *local_178;
long *local_160;
long *local_148;
long *local_130;
long local_118 [4];
int8 local_f8;
int8 local_f0;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
long local_60;
long local_58;
long local_50;
long local_40;
uint local_38;
int4 local_34;
long *local_30;
long *local_28;
int8 local_20;
int4 local_14;
long local_10;
if (in_AL != '\0') {
local_e8 = param_1;
local_d8 = param_2;
local_c8 = param_3;
local_b8 = param_4;
local_a8 = param_5;
local_98 = param_6;
local_88 = param_7;
local_78 = param_8;
}
local_28 = local_118;
local_30 = (long *)&stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
local_58 = 0;
while( true ) {
if (local_38 < 0x29) {
local_130 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_130 = local_30;
local_30 = local_30 + 1;
}
local_40 = *local_130;
if (local_40 == 0) break;
if (local_38 < 0x29) {
local_148 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_148 = local_30;
local_30 = local_30 + 1;
}
local_60 = *local_148;
local_58 = (local_60 + 7U & 0xfffffffffffffff8) + local_58;
}
local_118[2] = param_11;
local_118[3] = param_12;
local_f8 = param_13;
local_f0 = param_14;
local_20 = param_10;
local_14 = param_9;
local_10 = my_malloc(param_9,local_58,param_10);
if (local_10 == 0) {
local_10 = 0;
}
else {
local_30 = (long *)&stack0x00000008;
local_38 = 0x10;
local_50 = local_10;
while( true ) {
if (local_38 < 0x29) {
local_160 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_160 = local_30;
local_30 = local_30 + 1;
}
if ((long *)*local_160 == (long *)0x0) break;
*(long *)*local_160 = local_50;
if (local_38 < 0x29) {
local_178 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_178 = local_30;
local_30 = local_30 + 1;
}
local_50 = (*local_178 + 7U & 0xfffffffffffffff8) + local_50;
}
}
return local_10;
}
| |
24,639 | Format_description_log_event::master_version_split::master_version_split(char const*) | eloqsql/sql/log_event.cc | Format_description_log_event::
master_version_split::master_version_split(const char *version)
{
const char *p;
static_cast<Version*>(this)[0]= Version(version, &p);
if (strstr(p, "MariaDB") != 0 || strstr(p, "-maria-") != 0)
kind= KIND_MARIADB;
else
kind= KIND_MYSQL;
} | O3 | cpp | Format_description_log_event::master_version_split::master_version_split(char const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movb $0x0, 0x2(%rdi)
movw $0x0, (%rdi)
leaq -0x1b(%rbp), %r14
leaq -0x28(%rbp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x49548
movb 0x2(%r14), %al
movb %al, 0x2(%rbx)
movzwl (%r14), %eax
movw %ax, (%rbx)
movq (%r15), %r14
leaq 0x70645(%rip), %rsi # 0xb9c4f
movq %r14, %rdi
callq 0x3a560
movl $0x1, %ecx
testq %rax, %rax
jne 0x49633
leaq 0x70634(%rip), %rsi # 0xb9c57
movq %r14, %rdi
callq 0x3a560
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x4(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN28Format_description_log_event20master_version_splitC2EPKc:
push rbp; Alternative name is 'Format_description_log_event::master_version_split::master_version_split(char const*)'
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
mov byte ptr [rdi+2], 0
mov word ptr [rdi], 0
lea r14, [rbp+var_1B]
lea r15, [rbp+var_28]
mov rdi, r14; this
mov rdx, r15; char **
call _ZN7VersionC2EPKcPS1_; Version::Version(char const*,char const**)
mov al, [r14+2]
mov [rbx+2], al
movzx eax, word ptr [r14]
mov [rbx], ax
mov r14, [r15]
lea rsi, aMariadb; "MariaDB"
mov rdi, r14
call _strstr
mov ecx, 1
test rax, rax
jnz short loc_49633
lea rsi, aMaria; "-maria-"
mov rdi, r14
call _strstr
xor ecx, ecx
test rax, rax
setnz cl
loc_49633:
mov [rbx+4], ecx
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long Format_description_log_event::master_version_split::master_version_split(
Format_description_log_event::master_version_split *this,
const char *a2)
{
char *v2; // r14
long long result; // rax
BOOL v4; // ecx
char *v5; // [rsp+8h] [rbp-28h] BYREF
__int16 v6; // [rsp+15h] [rbp-1Bh] BYREF
char v7; // [rsp+17h] [rbp-19h]
*((_BYTE *)this + 2) = 0;
*(_WORD *)this = 0;
Version::Version((Version *)&v6, a2, (const char **)&v5);
*((_BYTE *)this + 2) = v7;
*(_WORD *)this = v6;
v2 = v5;
result = strstr(v5, "MariaDB");
v4 = 1;
if ( !result )
{
result = strstr(v2, "-maria-");
v4 = result != 0;
}
*((_DWORD *)this + 1) = v4;
return result;
}
| master_version_split:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV byte ptr [RDI + 0x2],0x0
MOV word ptr [RDI],0x0
LEA R14,[RBP + -0x1b]
LEA R15,[RBP + -0x28]
MOV RDI,R14
MOV RDX,R15
CALL 0x00149548
MOV AL,byte ptr [R14 + 0x2]
MOV byte ptr [RBX + 0x2],AL
MOVZX EAX,word ptr [R14]
MOV word ptr [RBX],AX
MOV R14,qword ptr [R15]
LEA RSI,[0x1b9c4f]
MOV RDI,R14
CALL 0x0013a560
MOV ECX,0x1
TEST RAX,RAX
JNZ 0x00149633
LEA RSI,[0x1b9c57]
MOV RDI,R14
CALL 0x0013a560
XOR ECX,ECX
TEST RAX,RAX
SETNZ CL
LAB_00149633:
MOV dword ptr [RBX + 0x4],ECX
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* Format_description_log_event::master_version_split::master_version_split(char const*) */
void __thiscall
Format_description_log_event::master_version_split::master_version_split
(master_version_split *this,char *param_1)
{
char *pcVar1;
uint uVar2;
char *local_30;
int2 local_23;
master_version_split local_21;
this[2] = (master_version_split)0x0;
*(int2 *)this = 0;
Version::Version((Version *)&local_23,param_1,&local_30);
this[2] = local_21;
*(int2 *)this = local_23;
pcVar1 = strstr(local_30,"MariaDB");
uVar2 = 1;
if (pcVar1 == (char *)0x0) {
pcVar1 = strstr(local_30,"-maria-");
uVar2 = (uint)(pcVar1 != (char *)0x0);
}
*(uint *)(this + 4) = uVar2;
return;
}
| |
24,640 | has_path | eloqsql/mysys/my_getwd.c | my_bool has_path(const char *name)
{
return MY_TEST(strchr(name, FN_LIBCHAR))
#if FN_LIBCHAR != '/'
|| MY_TEST(strchr(name, '/'))
#endif
#ifdef FN_DEVCHAR
|| MY_TEST(strchr(name, FN_DEVCHAR))
#endif
;
} | O0 | c | has_path:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x2f, %esi
callq 0x2a400
movq %rax, %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| has_path:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
mov esi, 2Fh ; '/'
call _strchr
mov rdx, rax
xor eax, eax
mov ecx, 1
cmp rdx, 0
cmovnz eax, ecx
add rsp, 10h
pop rbp
retn
| _BOOL8 has_path(long long a1)
{
return strchr(a1, 47LL) != 0;
}
| has_path:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x2f
CALL 0x0012a400
MOV RDX,RAX
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,0x0
CMOVNZ EAX,ECX
ADD RSP,0x10
POP RBP
RET
|
bool has_path(char *param_1)
{
char *pcVar1;
pcVar1 = strchr(param_1,0x2f);
return pcVar1 != (char *)0x0;
}
| |
24,641 | LefDefParser::lefiSitePattern::print(_IO_FILE*) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMisc.cpp | void
lefiSitePattern::print(FILE *f) const
{
fprintf(f, " SITE Pattern %s %g,%g %s\n",
name(),
x(),
y(),
orientStr());
fprintf(f, " %g,%g step %g,%g\n",
xStart(),
yStart(),
xStep(),
yStep());
} | O3 | cpp | LefDefParser::lefiSitePattern::print(_IO_FILE*) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
movsd 0x18(%rdi), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x20(%rdi), %xmm0
movsd %xmm0, (%rsp)
movl 0x10(%rdi), %edi
callq 0x20e4f
leaq 0x3adec(%rip), %rsi # 0x4da67
movq %rbx, %rdi
movq %r15, %rdx
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
movq %rax, %rcx
movb $0x2, %al
callq 0x22c0
movsd 0x28(%r14), %xmm0
movsd 0x30(%r14), %xmm1
movsd 0x38(%r14), %xmm2
movsd 0x40(%r14), %xmm3
leaq 0x3adcf(%rip), %rsi # 0x4da84
movq %rbx, %rdi
movb $0x4, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x22c0
| _ZNK12LefDefParser15lefiSitePattern5printEP8_IO_FILE:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
mov r14, rdi
mov r15, [rdi+8]
movsd xmm0, qword ptr [rdi+18h]
movsd [rsp+28h+var_20], xmm0
movsd xmm0, qword ptr [rdi+20h]
movsd [rsp+28h+var_28], xmm0
mov edi, [rdi+10h]; this
call _ZN12LefDefParser13lefiOrientStrEi; LefDefParser::lefiOrientStr(int)
lea rsi, aSitePatternSGG; " SITE Pattern %s %g,%g %s\n"
mov rdi, rbx
mov rdx, r15
movsd xmm0, [rsp+28h+var_20]
movsd xmm1, [rsp+28h+var_28]
mov rcx, rax
mov al, 2
call _fprintf
movsd xmm0, qword ptr [r14+28h]
movsd xmm1, qword ptr [r14+30h]
movsd xmm2, qword ptr [r14+38h]
movsd xmm3, qword ptr [r14+40h]
lea rsi, aGGStepGG; " %g,%g step %g,%g\n"
mov rdi, rbx
mov al, 4
add rsp, 10h
pop rbx
pop r14
pop r15
jmp _fprintf
| double LefDefParser::lefiSitePattern::print(long long a1, long long a2)
{
const char *v2; // r15
const char *v3; // rax
double v5; // [rsp+0h] [rbp-28h]
double v6; // [rsp+8h] [rbp-20h]
v2 = *(const char **)(a1 + 8);
v6 = *(double *)(a1 + 24);
v5 = *(double *)(a1 + 32);
v3 = (const char *)LefDefParser::lefiOrientStr((LefDefParser *)*(unsigned int *)(a1 + 16), a2);
fprintf(a2, " SITE Pattern %s %g,%g %s\n", v2, v6, v5, v3);
return fprintf(
a2,
" %g,%g step %g,%g\n",
*(double *)(a1 + 40),
*(double *)(a1 + 48),
*(double *)(a1 + 56),
*(double *)(a1 + 64));
}
| print:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R14,RDI
MOV R15,qword ptr [RDI + 0x8]
MOVSD XMM0,qword ptr [RDI + 0x18]
MOVSD qword ptr [RSP + 0x8],XMM0
MOVSD XMM0,qword ptr [RDI + 0x20]
MOVSD qword ptr [RSP],XMM0
MOV EDI,dword ptr [RDI + 0x10]
CALL 0x00120e4f
LEA RSI,[0x14da67]
MOV RDI,RBX
MOV RDX,R15
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD XMM1,qword ptr [RSP]
MOV RCX,RAX
MOV AL,0x2
CALL 0x001022c0
MOVSD XMM0,qword ptr [R14 + 0x28]
MOVSD XMM1,qword ptr [R14 + 0x30]
MOVSD XMM2,qword ptr [R14 + 0x38]
MOVSD XMM3,qword ptr [R14 + 0x40]
LEA RSI,[0x14da84]
MOV RDI,RBX
MOV AL,0x4
ADD RSP,0x10
POP RBX
POP R14
POP R15
JMP 0x001022c0
|
/* LefDefParser::lefiSitePattern::print(_IO_FILE*) const */
void __thiscall LefDefParser::lefiSitePattern::print(lefiSitePattern *this,_IO_FILE *param_1)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
uVar3 = *(int8 *)(this + 8);
uVar1 = *(int8 *)(this + 0x18);
uVar2 = *(int8 *)(this + 0x20);
uVar4 = lefiOrientStr(*(int *)(this + 0x10));
fprintf(param_1," SITE Pattern %s %g,%g %s\n",uVar1,uVar2,uVar3,uVar4);
fprintf(param_1," %g,%g step %g,%g\n",*(int8 *)(this + 0x28),*(int8 *)(this + 0x30)
,*(int8 *)(this + 0x38),*(int8 *)(this + 0x40));
return;
}
| |
24,642 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | void destroy(value_t t)
{
if (
(t == value_t::object && object == nullptr) ||
(t == value_t::array && array == nullptr) ||
(t == value_t::string && string == nullptr) ||
(t == value_t::binary && binary == nullptr)
)
{
//not initialized (e.g. due to exception in the ctor)
return;
}
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
current_item.m_data.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_data.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_data.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp # imm = 0x120
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd8(%rbp)
cmpb $0x1, -0x9(%rbp)
jne 0x68c63
movq -0xd8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x68c9c
cmpb $0x2, -0x9(%rbp)
jne 0x68c76
movq -0xd8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x68c9c
cmpb $0x3, -0x9(%rbp)
jne 0x68c89
movq -0xd8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x68c9c
cmpb $0x8, -0x9(%rbp)
jne 0x68ca1
movq -0xd8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x68ca1
jmp 0x69195
cmpb $0x2, -0x9(%rbp)
je 0x68cb1
cmpb $0x1, -0x9(%rbp)
jne 0x68f9e
leaq -0x28(%rbp), %rdi
callq 0x5d250
cmpb $0x2, -0x9(%rbp)
jne 0x68d62
movq -0xd8(%rbp), %rax
movq (%rax), %rdi
callq 0x5ebb0
movq %rax, %rsi
leaq -0x28(%rbp), %rdi
callq 0x5b6a0
jmp 0x68ce1
movq -0xd8(%rbp), %rax
movq (%rax), %rdi
callq 0x61970
movq %rax, %rcx
movq -0xd8(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq (%rax), %rdi
callq 0x609a0
movq %rax, -0x48(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5cc10
movq %rax, -0xe0(%rbp)
jmp 0x68d1c
movq -0xe0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x5f030
movq %rax, -0xe8(%rbp)
jmp 0x68d41
movq -0xe8(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x68de9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x68f90
movq -0xd8(%rbp), %rax
movq (%rax), %rdi
callq 0x60770
movq %rax, %rsi
leaq -0x28(%rbp), %rdi
callq 0x5b6a0
jmp 0x68d7f
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0x61170
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
callq 0x5c2e0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x5f620
testb $0x1, %al
jne 0x68dba
jmp 0x68de7
leaq -0x68(%rbp), %rdi
callq 0x5f000
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rsi
addq $0x20, %rsi
leaq -0x28(%rbp), %rdi
callq 0x5f730
jmp 0x68dda
jmp 0x68ddc
leaq -0x68(%rbp), %rdi
callq 0x5b160
jmp 0x68da7
jmp 0x68de9
jmp 0x68deb
leaq -0x28(%rbp), %rdi
callq 0x5dcd0
xorb $-0x1, %al
testb $0x1, %al
jne 0x68dff
jmp 0x68f85
leaq -0x28(%rbp), %rdi
callq 0x5bd30
movq %rax, %rsi
leaq -0x88(%rbp), %rdi
callq 0x5ce40
leaq -0x28(%rbp), %rdi
callq 0x61670
leaq -0x88(%rbp), %rdi
callq 0x5dd70
testb $0x1, %al
jne 0x68e35
jmp 0x68ed1
movq -0x80(%rbp), %rdi
callq 0x61970
movq %rax, -0x90(%rbp)
movq -0x80(%rbp), %rdi
callq 0x609a0
movq %rax, -0x98(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5cc10
movq %rax, -0xf0(%rbp)
jmp 0x68e67
movq -0xf0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq -0xa0(%rbp), %rdx
callq 0x5f030
movq %rax, -0xf8(%rbp)
jmp 0x68e98
movq -0xf8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x80(%rbp), %rdi
callq 0x5cac0
jmp 0x68f74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x5fdc0
jmp 0x68f90
leaq -0x88(%rbp), %rdi
callq 0x5d880
testb $0x1, %al
jne 0x68ee6
jmp 0x68f72
movq -0x80(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x61170
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x5c2e0
movq %rax, -0xc0(%rbp)
leaq -0xb8(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x5f620
testb $0x1, %al
jne 0x68f30
jmp 0x68f69
leaq -0xb8(%rbp), %rdi
callq 0x5f000
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rsi
addq $0x20, %rsi
leaq -0x28(%rbp), %rdi
callq 0x5f730
jmp 0x68f59
jmp 0x68f5b
leaq -0xb8(%rbp), %rdi
callq 0x5b160
jmp 0x68f17
movq -0x80(%rbp), %rdi
callq 0x60e10
jmp 0x68f74
leaq -0x88(%rbp), %rdi
callq 0x5fdc0
jmp 0x68deb
leaq -0x28(%rbp), %rdi
callq 0x5b4d0
jmp 0x68f9e
leaq -0x28(%rbp), %rdi
callq 0x5b4d0
jmp 0x6919e
movzbl -0x9(%rbp), %eax
movq %rax, -0x100(%rbp)
subq $0x9, %rax
ja 0x69193
movq -0x100(%rbp), %rax
leaq 0x23107(%rip), %rcx # 0x8c0c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x5b0b0
movq -0xd8(%rbp), %rax
movq -0x108(%rbp), %rdi
movq (%rax), %rsi
callq 0x5bd00
movq -0xd8(%rbp), %rax
movq -0x108(%rbp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x5d8b0
jmp 0x69010
leaq -0xc9(%rbp), %rdi
callq 0x5c4b0
jmp 0x69195
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xc9(%rbp), %rdi
callq 0x5c4b0
jmp 0x6919e
leaq -0xca(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x61790
movq -0xd8(%rbp), %rax
movq -0x110(%rbp), %rdi
movq (%rax), %rsi
callq 0x5c500
movq -0xd8(%rbp), %rax
movq -0x110(%rbp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x61780
jmp 0x69084
leaq -0xca(%rbp), %rdi
callq 0x5c8c0
jmp 0x69195
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xca(%rbp), %rdi
callq 0x5c8c0
jmp 0x6919e
leaq -0xcb(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x5b9b0
movq -0xd8(%rbp), %rax
movq -0x118(%rbp), %rdi
movq (%rax), %rsi
callq 0x61510
movq -0xd8(%rbp), %rax
movq -0x118(%rbp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x5b2d0
jmp 0x690f8
leaq -0xcb(%rbp), %rdi
callq 0x5b840
jmp 0x69195
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xcb(%rbp), %rdi
callq 0x5b840
jmp 0x6919e
leaq -0xcc(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x5d5b0
movq -0xd8(%rbp), %rax
movq -0x120(%rbp), %rdi
movq (%rax), %rsi
callq 0x5ca80
movq -0xd8(%rbp), %rax
movq -0x120(%rbp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x60040
jmp 0x69169
leaq -0xcc(%rbp), %rdi
callq 0x5d1a0
jmp 0x69195
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xcc(%rbp), %rdi
callq 0x5d1a0
jmp 0x6919e
jmp 0x69193
jmp 0x69195
addq $0x120, %rsp # imm = 0x120
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x611b0
nopw (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE:
push rbp
mov rbp, rsp
sub rsp, 120h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov [rbp+var_D8], rax
cmp [rbp+var_9], 1
jnz short loc_68C63
mov rax, [rbp+var_D8]
cmp qword ptr [rax], 0
jz short loc_68C9C
loc_68C63:
cmp [rbp+var_9], 2
jnz short loc_68C76
mov rax, [rbp+var_D8]
cmp qword ptr [rax], 0
jz short loc_68C9C
loc_68C76:
cmp [rbp+var_9], 3
jnz short loc_68C89
mov rax, [rbp+var_D8]
cmp qword ptr [rax], 0
jz short loc_68C9C
loc_68C89:
cmp [rbp+var_9], 8
jnz short loc_68CA1
mov rax, [rbp+var_D8]
cmp qword ptr [rax], 0
jnz short loc_68CA1
loc_68C9C:
jmp loc_69195
loc_68CA1:
cmp [rbp+var_9], 2
jz short loc_68CB1
cmp [rbp+var_9], 1
jnz loc_68F9E
loc_68CB1:
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEC2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::vector(void)
cmp [rbp+var_9], 2
jnz loc_68D62
mov rax, [rbp+var_D8]
mov rdi, [rax]
call __ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void)
mov rsi, rax
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
jmp short $+2
loc_68CE1:
mov rax, [rbp+var_D8]
mov rdi, [rax]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void)
mov rcx, rax
mov rax, [rbp+var_D8]
mov [rbp+var_40], rcx
mov rdi, [rax]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::end(void)
mov [rbp+var_48], rax
lea rdi, [rbp+var_28]
call __ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&)
mov [rbp+var_E0], rax
jmp short $+2
loc_68D1C:
mov rax, [rbp+var_E0]
mov [rbp+var_50], rax
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_50]
call __ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov [rbp+var_E8], rax
jmp short $+2
loc_68D41:
mov rax, [rbp+var_E8]
mov [rbp+var_58], rax
jmp loc_68DE9
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
jmp loc_68F90
loc_68D62:
mov rax, [rbp+var_D8]
mov rdi, [rax]
call __ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE4sizeEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void)
mov rsi, rax
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
jmp short $+2
loc_68D7F:
mov rax, [rbp+var_D8]
mov rax, [rax]
mov [rbp+var_60], rax
mov rdi, [rbp+var_60]
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE5beginEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void)
mov [rbp+var_68], rax
mov rdi, [rbp+var_60]
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE3endEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::end(void)
mov [rbp+var_70], rax
loc_68DA7:
lea rdi, [rbp+var_68]
lea rsi, [rbp+var_70]
call __ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEESK_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&,std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&)
test al, 1
jnz short loc_68DBA
jmp short loc_68DE7
loc_68DBA:
lea rdi, [rbp+var_68]
call __ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEEdeEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator*(void)
mov [rbp+var_78], rax
mov rsi, [rbp+var_78]
add rsi, 20h ; ' '
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
jmp short $+2
loc_68DDA:
jmp short $+2
loc_68DDC:
lea rdi, [rbp+var_68]
call __ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEEppEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator++(void)
jmp short loc_68DA7
loc_68DE7:
jmp short $+2
loc_68DE9:
jmp short $+2
loc_68DEB:
lea rdi, [rbp+var_28]
call __ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_68DFF
jmp loc_68F85
loc_68DFF:
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov rsi, rax
lea rdi, [rbp+var_88]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pop_back(void)
lea rdi, [rbp+var_88]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_68E35
jmp loc_68ED1
loc_68E35:
mov rdi, [rbp+var_80]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void)
mov [rbp+var_90], rax
mov rdi, [rbp+var_80]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::end(void)
mov [rbp+var_98], rax
lea rdi, [rbp+var_28]
call __ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&)
mov [rbp+var_F0], rax
jmp short $+2
loc_68E67:
mov rax, [rbp+var_F0]
mov [rbp+var_A0], rax
mov rdi, [rbp+var_90]
mov rsi, [rbp+var_98]
mov rdx, [rbp+var_A0]
call __ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov [rbp+var_F8], rax
jmp short $+2
loc_68E98:
mov rax, [rbp+var_F8]
mov [rbp+var_A8], rax
mov rdi, [rbp+var_80]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::clear(void)
jmp loc_68F74
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_88]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_68F90
loc_68ED1:
lea rdi, [rbp+var_88]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_68EE6
jmp loc_68F72
loc_68EE6:
mov rax, [rbp+var_80]
mov [rbp+var_B0], rax
mov rdi, [rbp+var_B0]
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE5beginEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::begin(void)
mov [rbp+var_B8], rax
mov rdi, [rbp+var_B0]
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE3endEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::end(void)
mov [rbp+var_C0], rax
loc_68F17:
lea rdi, [rbp+var_B8]
lea rsi, [rbp+var_C0]
call __ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEESK_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&,std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&)
test al, 1
jnz short loc_68F30
jmp short loc_68F69
loc_68F30:
lea rdi, [rbp+var_B8]
call __ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEEdeEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator*(void)
mov [rbp+var_C8], rax
mov rsi, [rbp+var_C8]
add rsi, 20h ; ' '
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
jmp short $+2
loc_68F59:
jmp short $+2
loc_68F5B:
lea rdi, [rbp+var_B8]
call __ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEEppEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::operator++(void)
jmp short loc_68F17
loc_68F69:
mov rdi, [rbp+var_80]
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEE5clearEv; std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::clear(void)
loc_68F72:
jmp short $+2
loc_68F74:
lea rdi, [rbp+var_88]
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_68DEB
loc_68F85:
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp short loc_68F9E
loc_68F90:
lea rdi, [rbp+var_28]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_6919E
loc_68F9E:
movzx eax, [rbp+var_9]
mov [rbp+var_100], rax
sub rax, 9; switch 10 cases
ja def_68FC8; jumptable 0000000000068FC8 default case
mov rax, [rbp+var_100]
lea rcx, jpt_68FC8
movsxd rax, ds:(jpt_68FC8 - 8C0C8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_68FCA:
lea rdi, [rbp+var_C9]; jumptable 0000000000068FC8 case 1
mov [rbp+var_108], rdi
call __ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEEEC2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::allocator(void)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_108]
mov rsi, [rax]
call __ZNSt16allocator_traitsISaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS0_St6vectorS6_blmdSaNS8_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS6_SE_EEEEE7destroyISL_EEvRSM_PT_; std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::destroy<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_108]
mov rsi, [rax]
mov edx, 1
call __ZNSt16allocator_traitsISaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS0_St6vectorS6_blmdSaNS8_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS6_SE_EEEEE10deallocateERSM_PSL_m; std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::deallocate(std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>*,ulong)
jmp short $+2
loc_69010:
lea rdi, [rbp+var_C9]
call __ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEEED2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~allocator()
jmp loc_69195
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_C9]
call __ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS5_SD_EEEED2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~allocator()
jmp loc_6919E
loc_6903E:
lea rdi, [rbp+var_CA]; jumptable 0000000000068FC8 case 2
mov [rbp+var_110], rdi
call __ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEEC2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::allocator(void)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_110]
mov rsi, [rax]
call __ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE7destroyISG_EEvRSH_PT_; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::destroy<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_110]
mov rsi, [rax]
mov edx, 1
call __ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE10deallocateERSH_PSG_m; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::deallocate(std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>*,ulong)
jmp short $+2
loc_69084:
lea rdi, [rbp+var_CA]
call __ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~allocator()
jmp loc_69195
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_CA]
call __ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~allocator()
jmp loc_6919E
loc_690B2:
lea rdi, [rbp+var_CB]; jumptable 0000000000068FC8 case 3
mov [rbp+var_118], rdi
call __ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_118]
mov rsi, [rax]
call __ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_118]
mov rsi, [rax]
mov edx, 1
call __ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong)
jmp short $+2
loc_690F8:
lea rdi, [rbp+var_CB]
call __ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_69195
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_CB]
call __ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp short loc_6919E
loc_69123:
lea rdi, [rbp+var_CC]; jumptable 0000000000068FC8 case 8
mov [rbp+var_120], rdi
call __ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_120]
mov rsi, [rax]
call __ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *)
mov rax, [rbp+var_D8]
mov rdi, [rbp+var_120]
mov rsi, [rax]
mov edx, 1
call __ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong)
jmp short $+2
loc_69169:
lea rdi, [rbp+var_CC]
call __ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_69195
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_CC]
call __ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_6919E
loc_69191:
jmp short $+2; jumptable 0000000000068FC8 cases 0,4-7,9
def_68FC8:
jmp short $+2; jumptable 0000000000068FC8 default case
loc_69195:
add rsp, 120h
pop rbp
retn
loc_6919E:
mov rdi, [rbp+var_30]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
_QWORD *a1,
unsigned __int8 a2)
{
long long result; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
char v6; // [rsp+54h] [rbp-CCh] BYREF
char v7; // [rsp+55h] [rbp-CBh] BYREF
char v8; // [rsp+56h] [rbp-CAh] BYREF
char v9; // [rsp+57h] [rbp-C9h] BYREF
long long v10; // [rsp+58h] [rbp-C8h]
long long v11; // [rsp+60h] [rbp-C0h] BYREF
long long v12; // [rsp+68h] [rbp-B8h] BYREF
long long v13; // [rsp+70h] [rbp-B0h]
long long v14; // [rsp+78h] [rbp-A8h]
long long v15; // [rsp+80h] [rbp-A0h]
long long v16; // [rsp+88h] [rbp-98h]
long long v17; // [rsp+90h] [rbp-90h]
_BYTE v18[8]; // [rsp+98h] [rbp-88h] BYREF
long long v19; // [rsp+A0h] [rbp-80h]
long long v20; // [rsp+A8h] [rbp-78h]
long long v21; // [rsp+B0h] [rbp-70h] BYREF
long long v22; // [rsp+B8h] [rbp-68h] BYREF
long long v23; // [rsp+C0h] [rbp-60h]
long long v24; // [rsp+C8h] [rbp-58h]
long long v25; // [rsp+D0h] [rbp-50h]
long long v26; // [rsp+D8h] [rbp-48h]
long long v27; // [rsp+E0h] [rbp-40h]
_BYTE v28[31]; // [rsp+F8h] [rbp-28h] BYREF
unsigned __int8 v29; // [rsp+117h] [rbp-9h]
_QWORD *v30; // [rsp+118h] [rbp-8h]
v30 = a1;
v29 = a2;
if ( a2 != 1 || (result = (long long)a1, *a1) )
{
if ( v29 != 2 || (result = (long long)a1, *a1) )
{
if ( v29 != 3 || (result = (long long)a1, *a1) )
{
if ( v29 != 8 || (result = (long long)a1, *a1) )
{
if ( v29 == 2 || v29 == 1 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::vector(v28);
if ( v29 == 2 )
{
v3 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size(*a1);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
v28,
v3);
v27 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(*a1);
v26 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end(*a1);
v25 = std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(v28);
v24 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
v27,
v26,
v25);
}
else
{
v4 = std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size(*a1);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
v28,
v4);
v23 = *a1;
v22 = std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(v23);
v21 = std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end(v23);
while ( (std::operator!=(&v22, &v21) & 1) != 0 )
{
v20 = std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator*(&v22);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back(
v28,
v20 + 32);
std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator++(&v22);
}
}
while ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::empty(v28) & 1) == 0 )
{
v5 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(v28);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v18,
v5);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pop_back(v28);
if ( (nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(v18) & 1) != 0 )
{
v17 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(v19);
v16 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end(v19);
v15 = std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(v28);
v14 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
v17,
v16,
v15);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::clear(v19);
}
else if ( (nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(v18) & 1) != 0 )
{
v13 = v19;
v12 = std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(v19);
v11 = std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end(v13);
while ( (std::operator!=(&v12, &v11) & 1) != 0 )
{
v10 = std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator*(&v12);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::push_back(
v28,
v10 + 32);
std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator++(&v12);
}
std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::clear(v19);
}
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(v18);
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(v28);
}
result = v29;
switch ( v29 )
{
case 1u:
std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::allocator();
std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::destroy<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
&v9,
*a1);
std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::deallocate(
&v9,
*a1,
1LL);
result = std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~allocator(&v9);
break;
case 2u:
std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::allocator();
std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::destroy<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
&v8,
*a1);
std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::deallocate(
&v8,
*a1,
1LL);
result = std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~allocator(&v8);
break;
case 3u:
std::allocator<std::string>::allocator();
std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(&v7, *a1);
std::allocator_traits<std::allocator<std::string>>::deallocate(&v7, *a1, 1LL);
result = std::allocator<std::string>::~allocator(&v7);
break;
case 8u:
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator();
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>(
&v6,
*a1);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate(
&v6,
*a1,
1LL);
result = std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator(&v6);
break;
default:
return result;
}
}
}
}
}
return result;
}
| destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x120
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0xd8],RAX
CMP byte ptr [RBP + -0x9],0x1
JNZ 0x00168c63
MOV RAX,qword ptr [RBP + -0xd8]
CMP qword ptr [RAX],0x0
JZ 0x00168c9c
LAB_00168c63:
CMP byte ptr [RBP + -0x9],0x2
JNZ 0x00168c76
MOV RAX,qword ptr [RBP + -0xd8]
CMP qword ptr [RAX],0x0
JZ 0x00168c9c
LAB_00168c76:
CMP byte ptr [RBP + -0x9],0x3
JNZ 0x00168c89
MOV RAX,qword ptr [RBP + -0xd8]
CMP qword ptr [RAX],0x0
JZ 0x00168c9c
LAB_00168c89:
CMP byte ptr [RBP + -0x9],0x8
JNZ 0x00168ca1
MOV RAX,qword ptr [RBP + -0xd8]
CMP qword ptr [RAX],0x0
JNZ 0x00168ca1
LAB_00168c9c:
JMP 0x00169195
LAB_00168ca1:
CMP byte ptr [RBP + -0x9],0x2
JZ 0x00168cb1
CMP byte ptr [RBP + -0x9],0x1
JNZ 0x00168f9e
LAB_00168cb1:
LEA RDI,[RBP + -0x28]
CALL 0x0015d250
CMP byte ptr [RBP + -0x9],0x2
JNZ 0x00168d62
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RAX]
CALL 0x0015ebb0
MOV RSI,RAX
LAB_00168cd6:
LEA RDI,[RBP + -0x28]
CALL 0x0015b6a0
JMP 0x00168ce1
LAB_00168ce1:
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RAX]
CALL 0x00161970
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0x40],RCX
MOV RDI,qword ptr [RAX]
CALL 0x001609a0
MOV qword ptr [RBP + -0x48],RAX
LEA RDI,[RBP + -0x28]
CALL 0x0015cc10
MOV qword ptr [RBP + -0xe0],RAX
JMP 0x00168d1c
LAB_00168d1c:
MOV RAX,qword ptr [RBP + -0xe0]
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x50]
CALL 0x0015f030
MOV qword ptr [RBP + -0xe8],RAX
JMP 0x00168d41
LAB_00168d41:
MOV RAX,qword ptr [RBP + -0xe8]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00168de9
LAB_00168d62:
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RAX]
CALL 0x00160770
MOV RSI,RAX
LEA RDI,[RBP + -0x28]
CALL 0x0015b6a0
JMP 0x00168d7f
LAB_00168d7f:
MOV RAX,qword ptr [RBP + -0xd8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x60]
CALL 0x00161170
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x60]
CALL 0x0015c2e0
MOV qword ptr [RBP + -0x70],RAX
LAB_00168da7:
LEA RDI,[RBP + -0x68]
LEA RSI,[RBP + -0x70]
CALL 0x0015f620
TEST AL,0x1
JNZ 0x00168dba
JMP 0x00168de7
LAB_00168dba:
LEA RDI,[RBP + -0x68]
CALL 0x0015f000
MOV qword ptr [RBP + -0x78],RAX
MOV RSI,qword ptr [RBP + -0x78]
ADD RSI,0x20
LEA RDI,[RBP + -0x28]
CALL 0x0015f730
JMP 0x00168dda
LAB_00168dda:
JMP 0x00168ddc
LAB_00168ddc:
LEA RDI,[RBP + -0x68]
CALL 0x0015b160
JMP 0x00168da7
LAB_00168de7:
JMP 0x00168de9
LAB_00168de9:
JMP 0x00168deb
LAB_00168deb:
LEA RDI,[RBP + -0x28]
CALL 0x0015dcd0
XOR AL,0xff
TEST AL,0x1
JNZ 0x00168dff
JMP 0x00168f85
LAB_00168dff:
LEA RDI,[RBP + -0x28]
CALL 0x0015bd30
MOV RSI,RAX
LEA RDI,[RBP + -0x88]
CALL 0x0015ce40
LEA RDI,[RBP + -0x28]
CALL 0x00161670
LEA RDI,[RBP + -0x88]
CALL 0x0015dd70
TEST AL,0x1
JNZ 0x00168e35
JMP 0x00168ed1
LAB_00168e35:
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x00161970
MOV qword ptr [RBP + -0x90],RAX
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x001609a0
MOV qword ptr [RBP + -0x98],RAX
LAB_00168e55:
LEA RDI,[RBP + -0x28]
CALL 0x0015cc10
MOV qword ptr [RBP + -0xf0],RAX
JMP 0x00168e67
LAB_00168e67:
MOV RAX,qword ptr [RBP + -0xf0]
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + -0x90]
MOV RSI,qword ptr [RBP + -0x98]
MOV RDX,qword ptr [RBP + -0xa0]
CALL 0x0015f030
MOV qword ptr [RBP + -0xf8],RAX
JMP 0x00168e98
LAB_00168e98:
MOV RAX,qword ptr [RBP + -0xf8]
MOV qword ptr [RBP + -0xa8],RAX
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x0015cac0
JMP 0x00168f74
LAB_00168ed1:
LEA RDI,[RBP + -0x88]
CALL 0x0015d880
TEST AL,0x1
JNZ 0x00168ee6
JMP 0x00168f72
LAB_00168ee6:
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0xb0],RAX
MOV RDI,qword ptr [RBP + -0xb0]
CALL 0x00161170
MOV qword ptr [RBP + -0xb8],RAX
MOV RDI,qword ptr [RBP + -0xb0]
CALL 0x0015c2e0
MOV qword ptr [RBP + -0xc0],RAX
LAB_00168f17:
LEA RDI,[RBP + -0xb8]
LEA RSI,[RBP + -0xc0]
CALL 0x0015f620
TEST AL,0x1
JNZ 0x00168f30
JMP 0x00168f69
LAB_00168f30:
LEA RDI,[RBP + -0xb8]
CALL 0x0015f000
MOV qword ptr [RBP + -0xc8],RAX
MOV RSI,qword ptr [RBP + -0xc8]
ADD RSI,0x20
LEA RDI,[RBP + -0x28]
CALL 0x0015f730
JMP 0x00168f59
LAB_00168f59:
JMP 0x00168f5b
LAB_00168f5b:
LEA RDI,[RBP + -0xb8]
CALL 0x0015b160
JMP 0x00168f17
LAB_00168f69:
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x00160e10
LAB_00168f72:
JMP 0x00168f74
LAB_00168f74:
LEA RDI,[RBP + -0x88]
CALL 0x0015fdc0
JMP 0x00168deb
LAB_00168f85:
LEA RDI,[RBP + -0x28]
CALL 0x0015b4d0
JMP 0x00168f9e
LAB_00168f9e:
MOVZX EAX,byte ptr [RBP + -0x9]
MOV qword ptr [RBP + -0x100],RAX
SUB RAX,0x9
JA 0x00169193
MOV RAX,qword ptr [RBP + -0x100]
LEA RCX,[0x18c0c8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
LEA RDI,[RBP + -0xc9]
MOV qword ptr [RBP + -0x108],RDI
CALL 0x0015b0b0
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x108]
MOV RSI,qword ptr [RAX]
CALL 0x0015bd00
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x108]
MOV RSI,qword ptr [RAX]
LAB_00169004:
MOV EDX,0x1
CALL 0x0015d8b0
JMP 0x00169010
LAB_00169010:
LEA RDI,[RBP + -0xc9]
CALL 0x0015c4b0
JMP 0x00169195
caseD_2:
LEA RDI,[RBP + -0xca]
MOV qword ptr [RBP + -0x110],RDI
CALL 0x00161790
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x110]
MOV RSI,qword ptr [RAX]
CALL 0x0015c500
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x110]
MOV RSI,qword ptr [RAX]
LAB_00169078:
MOV EDX,0x1
CALL 0x00161780
JMP 0x00169084
LAB_00169084:
LEA RDI,[RBP + -0xca]
CALL 0x0015c8c0
JMP 0x00169195
caseD_3:
LEA RDI,[RBP + -0xcb]
MOV qword ptr [RBP + -0x118],RDI
CALL 0x0015b9b0
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x118]
MOV RSI,qword ptr [RAX]
CALL 0x00161510
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x118]
MOV RSI,qword ptr [RAX]
LAB_001690ec:
MOV EDX,0x1
CALL 0x0015b2d0
JMP 0x001690f8
LAB_001690f8:
LEA RDI,[RBP + -0xcb]
CALL 0x0015b840
JMP 0x00169195
caseD_8:
LEA RDI,[RBP + -0xcc]
MOV qword ptr [RBP + -0x120],RDI
CALL 0x0015d5b0
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x120]
MOV RSI,qword ptr [RAX]
CALL 0x0015ca80
MOV RAX,qword ptr [RBP + -0xd8]
MOV RDI,qword ptr [RBP + -0x120]
MOV RSI,qword ptr [RAX]
LAB_0016915d:
MOV EDX,0x1
CALL 0x00160040
LAB_00169167:
JMP 0x00169169
LAB_00169169:
LEA RDI,[RBP + -0xcc]
CALL 0x0015d1a0
JMP 0x00169195
caseD_0:
JMP 0x00169193
LAB_00169193:
JMP 0x00169195
default:
ADD RSP,0x120
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >,
void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::destroy(json_value *this,char param_2)
{
byte bVar1;
ulong uVar2;
basic_json *pbVar3;
allocator local_d4;
allocator local_d3;
allocator local_d2;
allocator local_d1;
long local_d0;
int8 local_c8;
int8 local_c0;
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*local_b8;
int8 local_b0;
int8 local_a8;
int8 local_a0;
int8 local_98;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [8];
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*local_88;
long local_80;
int8 local_78;
int8 local_70;
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int8 local_48;
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
local_30 [31];
char local_11;
json_value *local_10;
if (((((param_2 != '\x01') || (*(long *)this != 0)) &&
((param_2 != '\x02' || (*(long *)this != 0)))) &&
((param_2 != '\x03' || (*(long *)this != 0)))) && ((param_2 != '\b' || (*(long *)this != 0))))
{
local_11 = param_2;
local_10 = this;
if ((param_2 == '\x02') || (param_2 == '\x01')) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::vector(local_30);
if (local_11 == '\x02') {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::size(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
/* try { // try from 00168cd6 to 00168dd7 has its CatchHandler @ 00168d51 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve(local_30,uVar2);
local_48 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::begin(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
local_50 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::end(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
local_58 = std::
back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
((vector *)local_30);
local_60 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(local_48,local_50,local_58);
}
else {
uVar2 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::size(*(map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)this);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve(local_30,uVar2);
local_68 = *(map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)this;
local_70 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::begin(local_68);
local_78 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(local_68);
while (uVar2 = std::operator!=((_Rb_tree_iterator *)&local_70,(_Rb_tree_iterator *)&local_78
), (uVar2 & 1) != 0) {
local_80 = std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::operator*((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_70);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::push_back(local_30,(basic_json *)(local_80 + 0x20));
std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::operator++((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_70);
}
}
while (bVar1 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::empty(local_30), ((bVar1 ^ 0xff) & 1) != 0) {
pbVar3 = (basic_json *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(local_30);
basic_json(local_90,pbVar3);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::pop_back(local_30);
uVar2 = is_array(local_90);
if ((uVar2 & 1) == 0) {
uVar2 = is_object(local_90);
if ((uVar2 & 1) != 0) {
local_b8 = (map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_88;
local_c0 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::begin((map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_88);
local_c8 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(local_b8);
while (uVar2 = std::operator!=((_Rb_tree_iterator *)&local_c0,
(_Rb_tree_iterator *)&local_c8), (uVar2 & 1) != 0) {
local_d0 = std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::operator*((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_c0);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::push_back(local_30,(basic_json *)(local_d0 + 0x20));
std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::operator++((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_c0);
}
std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::clear((map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_88);
}
}
else {
local_98 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::begin(local_88);
local_a0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::end(local_88);
/* try { // try from 00168e55 to 00168f56 has its CatchHandler @ 00168eb4 */
local_a8 = std::
back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
((vector *)local_30);
local_b0 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(local_98,local_a0,local_a8);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::clear(local_88);
}
~basic_json(local_90);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector(local_30);
}
switch(local_11) {
case '\0':
case '\x04':
case '\x05':
case '\x06':
case '\a':
case '\t':
break;
case '\x01':
std::
allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::allocator();
std::
allocator_traits<std::allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>>
::
destroy<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(&local_d1,*(map **)this);
/* try { // try from 00169004 to 0016900d has its CatchHandler @ 00169021 */
std::
allocator_traits<std::allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>>
::deallocate(&local_d1,*(map **)this,1);
std::
allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::~allocator((allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_d1);
break;
case '\x02':
std::
allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::allocator();
std::
allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::
destroy<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
(&local_d2,*(vector **)this);
/* try { // try from 00169078 to 00169081 has its CatchHandler @ 00169095 */
std::
allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::deallocate(&local_d2,*(vector **)this,1);
std::
allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::~allocator((allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)&local_d2);
break;
case '\x03':
std::allocator<std::__cxx11::string>::allocator();
std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string>
(&local_d3,*(string **)this);
/* try { // try from 001690ec to 001690f5 has its CatchHandler @ 00169109 */
std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate
(&local_d3,*(string **)this,1);
std::allocator<std::__cxx11::string>::~allocator((allocator<std::__cxx11::string> *)&local_d3)
;
break;
case '\b':
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::allocator();
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::
destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
(&local_d4,*(byte_container_with_subtype **)this);
/* try { // try from 0016915d to 00169166 has its CatchHandler @ 00169177 */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::deallocate(&local_d4,*(byte_container_with_subtype **)this,1);
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::~allocator((allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
*)&local_d4);
}
}
return;
}
| |
24,643 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | void destroy(value_t t)
{
if (
(t == value_t::object && object == nullptr) ||
(t == value_t::array && array == nullptr) ||
(t == value_t::string && string == nullptr) ||
(t == value_t::binary && binary == nullptr)
)
{
//not initialized (e.g. due to exception in the ctor)
return;
}
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
current_item.m_data.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_data.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_data.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x1, %esi
sete %cl
movq (%rdi), %rax
testq %rax, %rax
sete %dl
testb %dl, %cl
jne 0x162a0
movl %esi, %r14d
testq %rax, %rax
sete %cl
movl %r14d, %edx
andb $-0x2, %dl
cmpb $0x2, %dl
sete %dl
cmpb $0x8, %r14b
sete %sil
orb %dl, %sil
testb %cl, %sil
jne 0x162a0
movq %rdi, %rbx
leal -0x1(%r14), %ecx
cmpb $0x1, %cl
ja 0x16220
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpb $0x2, %r14b
jne 0x160cd
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x4, %rsi
movq %rsp, %rdi
callq 0x11160
movq (%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
subq %r15, %r13
sarq $0x4, %r13
testq %r13, %r13
jle 0x16108
incq %r13
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x118c0
addq $0x10, %r15
decq %r13
cmpq $0x1, %r13
jg 0x160b3
jmp 0x16108
movq 0x28(%rax), %rsi
movq %rsp, %rdi
callq 0x11160
movq (%rbx), %r13
movq 0x18(%r13), %r15
addq $0x8, %r13
cmpq %r13, %r15
je 0x16108
movq %rsp, %r12
leaq 0x40(%r15), %rsi
movq %r12, %rdi
callq 0x118c0
movq %r15, %rdi
callq 0x11690
movq %rax, %r15
cmpq %r13, %rax
jne 0x160ec
movq 0x8(%rsp), %r13
cmpq %r13, (%rsp)
je 0x16218
leaq 0x20(%rsp), %r15
movq %rsp, %r12
leaq -0x10(%r13), %rdi
movups -0x10(%r13), %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %esi, %esi
callq 0x11430
movb $0x0, -0x10(%r13)
movq $0x0, -0x8(%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x11430
movq 0x8(%rsp), %r13
addq $-0x10, %r13
movq %r13, 0x8(%rsp)
movq %r13, %rdi
xorl %esi, %esi
callq 0x11430
movq %r13, %rdi
callq 0x11e50
movzbl 0x20(%rsp), %eax
cmpl $0x1, %eax
je 0x161bf
cmpl $0x2, %eax
jne 0x161f7
movq 0x28(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
subq %r13, %rbp
sarq $0x4, %rbp
testq %rbp, %rbp
jle 0x161b0
incq %rbp
movq %r12, %rdi
movq %r13, %rsi
callq 0x118c0
addq $0x10, %r13
decq %rbp
cmpq $0x1, %rbp
jg 0x16198
movq 0x28(%rsp), %rdi
movq (%rdi), %rsi
callq 0x115e0
jmp 0x161f7
movq 0x28(%rsp), %rbp
movq 0x18(%rbp), %r13
addq $0x8, %rbp
cmpq %rbp, %r13
je 0x161ed
leaq 0x40(%r13), %rsi
movq %r12, %rdi
callq 0x118c0
movq %r13, %rdi
callq 0x11690
movq %rax, %r13
cmpq %rbp, %rax
jne 0x161d1
movq 0x28(%rsp), %rdi
callq 0x11cc0
movq %r15, %rdi
xorl %esi, %esi
callq 0x11430
movq %r15, %rdi
callq 0x11e50
movq 0x8(%rsp), %r13
cmpq %r13, (%rsp)
jne 0x1611f
movq %rsp, %rdi
callq 0x11120
movzbl %r14b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x162a0
leaq 0xbe4e(%rip), %rcx # 0x22080
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x11990
movl $0x30, %r14d
jmp 0x16295
movq (%rbx), %rax
movq (%rax), %rdi
addq $0x10, %rax
movl $0x20, %r14d
cmpq %rax, %rdi
je 0x16295
movq (%rax), %rsi
incq %rsi
jmp 0x16290
movq (%rbx), %rdi
callq 0x11120
movl $0x18, %r14d
jmp 0x16295
movq (%rbx), %rax
movq (%rax), %rdi
movl $0x28, %r14d
testq %rdi, %rdi
je 0x16295
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x119b0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x119b0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x162b3
jmp 0x162b3
movq %rax, %rbx
jmp 0x162d4
jmp 0x162ba
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x11430
movq %r14, %rdi
callq 0x11e50
movq %rsp, %rdi
callq 0x11120
movq %rbx, %rdi
callq 0x12010
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
cmp esi, 1
setz cl
mov rax, [rdi]
test rax, rax
setz dl
test cl, dl
jnz def_16239; jumptable 0000000000016239 default case, cases 4-7
mov r14d, esi
test rax, rax
setz cl
mov edx, r14d
and dl, 0FEh
cmp dl, 2
setz dl
cmp r14b, 8
setz sil
or sil, dl
test sil, cl
jnz def_16239; jumptable 0000000000016239 default case, cases 4-7
mov rbx, rdi
lea ecx, [r14-1]
cmp cl, 1
ja loc_16220
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
mov [rsp+68h+var_58], 0
cmp r14b, 2
jnz short loc_160CD
mov rsi, [rax+8]
sub rsi, [rax]
sar rsi, 4
mov rdi, rsp
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov r15, [rax]
mov r13, [rax+8]
sub r13, r15
sar r13, 4
test r13, r13
jle short loc_16108
inc r13
mov r12, rsp
loc_160B3:
mov rdi, r12
mov rsi, r15
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r15, 10h
dec r13
cmp r13, 1
jg short loc_160B3
jmp short loc_16108
loc_160CD:
mov rsi, [rax+28h]
mov rdi, rsp
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov r13, [rbx]
mov r15, [r13+18h]
add r13, 8
cmp r15, r13
jz short loc_16108
mov r12, rsp
loc_160EC:
lea rsi, [r15+40h]
mov rdi, r12
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r15
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r15, rax
cmp rax, r13
jnz short loc_160EC
loc_16108:
mov r13, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], r13
jz loc_16218
lea r15, [rsp+68h+var_48]
mov r12, rsp
loc_1611F:
lea rdi, [r13-10h]
movups xmm0, xmmword ptr [r13-10h]
movaps [rsp+68h+var_48], xmm0
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r13-10h], 0
mov qword ptr [r13-8], 0
mov rdi, r15
mov esi, 1
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov r13, qword ptr [rsp+68h+var_68+8]
add r13, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+68h+var_68+8], r13
mov rdi, r13
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r13
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
movzx eax, byte ptr [rsp+68h+var_48]
cmp eax, 1
jz short loc_161BF
cmp eax, 2
jnz short loc_161F7
mov rax, qword ptr [rsp+68h+var_48+8]
mov r13, [rax]
mov rbp, [rax+8]
sub rbp, r13
sar rbp, 4
test rbp, rbp
jle short loc_161B0
inc rbp
loc_16198:
mov rdi, r12
mov rsi, r13
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r13, 10h
dec rbp
cmp rbp, 1
jg short loc_16198
loc_161B0:
mov rdi, qword ptr [rsp+68h+var_48+8]
mov rsi, [rdi]
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE15_M_erase_at_endEPSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::_M_erase_at_end(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*)
jmp short loc_161F7
loc_161BF:
mov rbp, qword ptr [rsp+68h+var_48+8]
mov r13, [rbp+18h]
add rbp, 8
cmp r13, rbp
jz short loc_161ED
loc_161D1:
lea rsi, [r13+40h]
mov rdi, r12
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r13
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r13, rax
cmp rax, rbp
jnz short loc_161D1
loc_161ED:
mov rdi, qword ptr [rsp+68h+var_48+8]
call __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE5clearEv; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::clear(void)
loc_161F7:
mov rdi, r15
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r13, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], r13
jnz loc_1611F
loc_16218:
mov rdi, rsp
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_16220:
movzx eax, r14b
dec eax; switch 8 cases
cmp eax, 7
ja short def_16239; jumptable 0000000000016239 default case, cases 4-7
lea rcx, jpt_16239
movsxd rax, ds:(jpt_16239 - 22080h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_1623B:
mov rdi, [rbx]; jumptable 0000000000016239 case 1
call __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::~_Rb_tree()
mov r14d, 30h ; '0'
jmp short loc_16295
loc_1624B:
mov rax, [rbx]; jumptable 0000000000016239 case 3
mov rdi, [rax]
add rax, 10h
mov r14d, 20h ; ' '
cmp rdi, rax
jz short loc_16295
mov rsi, [rax]
inc rsi
jmp short loc_16290
loc_16268:
mov rdi, [rbx]; jumptable 0000000000016239 case 2
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov r14d, 18h
jmp short loc_16295
loc_16278:
mov rax, [rbx]; jumptable 0000000000016239 case 8
mov rdi, [rax]; void *
mov r14d, 28h ; '('
test rdi, rdi
jz short loc_16295
mov rsi, [rax+10h]
sub rsi, rdi; unsigned __int64
loc_16290:
call __ZdlPvm; operator delete(void *,ulong)
loc_16295:
mov rdi, [rbx]; void *
mov rsi, r14; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
def_16239:
add rsp, 38h; jumptable 0000000000016239 default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_162B3
jmp short $+2
loc_162B3:
mov rbx, rax
jmp short loc_162D4
jmp short $+2
loc_162BA:
mov rbx, rax
lea r14, [rsp+arg_18]
mov rdi, r14
xor esi, esi
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_162D4:
mov rdi, rsp
call __ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
void **a1,
int a2)
{
_QWORD *v2; // rax
long long v4; // r15
long long v5; // r13
long long v6; // r13
long long v7; // r15
long long i; // r13
long long j; // r13
long long v10; // r13
long long v11; // r13
long long v12; // rbp
long long v13; // rbp
long long v14; // r13
long long k; // rbp
unsigned long long v16; // r14
_BYTE *v17; // rdi
_QWORD *v18; // rax
unsigned long long v19; // rsi
void **v20; // rax
__int128 v21; // [rsp+0h] [rbp-68h] BYREF
long long v22; // [rsp+10h] [rbp-58h]
_OWORD v23[4]; // [rsp+20h] [rbp-48h] BYREF
v2 = *a1;
if ( (*a1 != 0LL || a2 != 1) && (v2 != 0LL || (a2 & 0xFE) != 2 && (_BYTE)a2 != 8) )
{
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v21 = 0LL;
v22 = 0LL;
if ( (_BYTE)a2 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v21,
(long long)(v2[1] - *v2) >> 4);
v4 = *(_QWORD *)*a1;
v5 = (*((_QWORD *)*a1 + 1) - v4) >> 4;
if ( v5 > 0 )
{
v6 = v5 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v21,
v4);
v4 += 16LL;
--v6;
}
while ( v6 > 1 );
}
}
else
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v21,
v2[5]);
v7 = *((_QWORD *)*a1 + 3);
for ( i = (long long)*a1 + 8; v7 != i; v7 = std::_Rb_tree_increment(v7) )
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v21,
v7 + 64);
}
for ( j = *((_QWORD *)&v21 + 1); (_QWORD)v21 != *((_QWORD *)&v21 + 1); j = *((_QWORD *)&v21 + 1) )
{
v23[0] = *(_OWORD *)(j - 16);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
j - 16,
0LL);
*(_BYTE *)(j - 16) = 0;
*(_QWORD *)(j - 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v23,
1LL);
v10 = *((_QWORD *)&v21 + 1) - 16LL;
*((_QWORD *)&v21 + 1) = v10;
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v10,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10);
if ( LOBYTE(v23[0]) == 1 )
{
v14 = *(_QWORD *)(*((_QWORD *)&v23[0] + 1) + 24LL);
for ( k = *((_QWORD *)&v23[0] + 1) + 8LL; v14 != k; v14 = std::_Rb_tree_increment(v14) )
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v21,
v14 + 64);
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::clear(*((_QWORD *)&v23[0] + 1));
}
else if ( LOBYTE(v23[0]) == 2 )
{
v11 = **((_QWORD **)&v23[0] + 1);
v12 = (long long)(*(_QWORD *)(*((_QWORD *)&v23[0] + 1) + 8LL) - **((_QWORD **)&v23[0] + 1)) >> 4;
if ( v12 > 0 )
{
v13 = v12 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v21,
v11);
v11 += 16LL;
--v13;
}
while ( v13 > 1 );
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::_M_erase_at_end(
*((_QWORD *)&v23[0] + 1),
**((_QWORD **)&v23[0] + 1));
}
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v23,
0LL);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v23);
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(&v21);
}
switch ( (char)a2 )
{
case 1:
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::~_Rb_tree(*a1);
v16 = 48LL;
goto LABEL_31;
case 2:
std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(*a1);
v16 = 24LL;
goto LABEL_31;
case 3:
v17 = *(_BYTE **)*a1;
v18 = (char *)*a1 + 16;
v16 = 32LL;
if ( v17 == (_BYTE *)v18 )
goto LABEL_31;
v19 = *v18 + 1LL;
break;
case 8:
v20 = (void **)*a1;
v17 = *(_BYTE **)*a1;
v16 = 40LL;
if ( !v17 )
goto LABEL_31;
v19 = (_BYTE *)v20[2] - v17;
break;
default:
return;
}
operator delete(v17, v19);
LABEL_31:
operator delete(*a1, v16);
}
}
| destroy:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
CMP ESI,0x1
SETZ CL
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
SETZ DL
TEST CL,DL
JNZ 0x001162a0
MOV R14D,ESI
TEST RAX,RAX
SETZ CL
MOV EDX,R14D
AND DL,0xfe
CMP DL,0x2
SETZ DL
CMP R14B,0x8
SETZ SIL
OR SIL,DL
TEST SIL,CL
JNZ 0x001162a0
MOV RBX,RDI
LEA ECX,[R14 + -0x1]
CMP CL,0x1
JA 0x00116220
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
CMP R14B,0x2
JNZ 0x001160cd
MOV RSI,qword ptr [RAX + 0x8]
SUB RSI,qword ptr [RAX]
SAR RSI,0x4
LAB_0011608f:
MOV RDI,RSP
CALL 0x00111160
MOV RAX,qword ptr [RBX]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
SUB R13,R15
SAR R13,0x4
TEST R13,R13
JLE 0x00116108
INC R13
MOV R12,RSP
LAB_001160b3:
MOV RDI,R12
MOV RSI,R15
CALL 0x001118c0
ADD R15,0x10
DEC R13
CMP R13,0x1
JG 0x001160b3
JMP 0x00116108
LAB_001160cd:
MOV RSI,qword ptr [RAX + 0x28]
LAB_001160d1:
MOV RDI,RSP
CALL 0x00111160
MOV R13,qword ptr [RBX]
MOV R15,qword ptr [R13 + 0x18]
ADD R13,0x8
CMP R15,R13
JZ 0x00116108
MOV R12,RSP
LAB_001160ec:
LEA RSI,[R15 + 0x40]
LAB_001160f0:
MOV RDI,R12
CALL 0x001118c0
MOV RDI,R15
CALL 0x00111690
MOV R15,RAX
CMP RAX,R13
JNZ 0x001160ec
LAB_00116108:
MOV R13,qword ptr [RSP + 0x8]
CMP qword ptr [RSP],R13
JZ 0x00116218
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_0011611f:
LEA RDI,[R13 + -0x10]
MOVUPS XMM0,xmmword ptr [R13 + -0x10]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
XOR ESI,ESI
CALL 0x00111430
MOV byte ptr [R13 + -0x10],0x0
MOV qword ptr [R13 + -0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x00111430
MOV R13,qword ptr [RSP + 0x8]
ADD R13,-0x10
MOV qword ptr [RSP + 0x8],R13
MOV RDI,R13
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R13
CALL 0x00111e50
MOVZX EAX,byte ptr [RSP + 0x20]
CMP EAX,0x1
JZ 0x001161bf
CMP EAX,0x2
JNZ 0x001161f7
MOV RAX,qword ptr [RSP + 0x28]
MOV R13,qword ptr [RAX]
MOV RBP,qword ptr [RAX + 0x8]
SUB RBP,R13
SAR RBP,0x4
TEST RBP,RBP
JLE 0x001161b0
INC RBP
LAB_00116198:
MOV RDI,R12
MOV RSI,R13
CALL 0x001118c0
ADD R13,0x10
DEC RBP
CMP RBP,0x1
JG 0x00116198
LAB_001161b0:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RDI]
CALL 0x001115e0
JMP 0x001161f7
LAB_001161bf:
MOV RBP,qword ptr [RSP + 0x28]
MOV R13,qword ptr [RBP + 0x18]
ADD RBP,0x8
CMP R13,RBP
JZ 0x001161ed
LAB_001161d1:
LEA RSI,[R13 + 0x40]
LAB_001161d5:
MOV RDI,R12
CALL 0x001118c0
LAB_001161dd:
MOV RDI,R13
CALL 0x00111690
MOV R13,RAX
CMP RAX,RBP
JNZ 0x001161d1
LAB_001161ed:
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00111cc0
LAB_001161f7:
MOV RDI,R15
XOR ESI,ESI
CALL 0x00111430
MOV RDI,R15
CALL 0x00111e50
MOV R13,qword ptr [RSP + 0x8]
CMP qword ptr [RSP],R13
JNZ 0x0011611f
LAB_00116218:
MOV RDI,RSP
CALL 0x00111120
LAB_00116220:
MOVZX EAX,R14B
DEC EAX
CMP EAX,0x7
JA 0x001162a0
LEA RCX,[0x122080]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RBX]
CALL 0x00111990
MOV R14D,0x30
JMP 0x00116295
caseD_3:
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX]
ADD RAX,0x10
MOV R14D,0x20
CMP RDI,RAX
JZ 0x00116295
MOV RSI,qword ptr [RAX]
INC RSI
JMP 0x00116290
caseD_2:
MOV RDI,qword ptr [RBX]
CALL 0x00111120
MOV R14D,0x18
JMP 0x00116295
caseD_8:
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX]
MOV R14D,0x28
TEST RDI,RDI
JZ 0x00116295
MOV RSI,qword ptr [RAX + 0x10]
SUB RSI,RDI
LAB_00116290:
CALL 0x001119b0
LAB_00116295:
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x001119b0
caseD_4:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >,
void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::destroy(json_value *this,uint param_2)
{
_Rb_tree_node_base *p_Var1;
long *plVar2;
byte bVar3;
_Rb_tree_node_base *p_Var4;
ulong uVar5;
bool bVar6;
long *plVar7;
long lVar8;
data *pdVar9;
ulong uVar10;
basic_json *pbVar11;
data *local_68;
data *pdStack_60;
int8 local_58;
int8 local_48;
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*p_Stack_40;
plVar7 = *(long **)this;
if (param_2 == 1 && plVar7 == (long *)0x0) {
return;
}
bVar3 = (byte)param_2;
if ((bVar3 == 8 || (bVar3 & 0xfe) == 2) && plVar7 == (long *)0x0) {
return;
}
if ((byte)(bVar3 - 1) < 2) {
local_68 = (data *)0x0;
pdStack_60 = (data *)0x0;
local_58 = 0;
if (bVar3 == 2) {
/* try { // try from 0011608f to 00116096 has its CatchHandler @ 001162af */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,plVar7[1] - *plVar7 >> 4);
pbVar11 = (basic_json *)**(long **)this;
lVar8 = (*(long **)this)[1] - (long)pbVar11 >> 4;
if (0 < lVar8) {
lVar8 = lVar8 + 1;
do {
/* try { // try from 001160b3 to 001160bd has its CatchHandler @ 001162b3 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,pbVar11);
pbVar11 = pbVar11 + 0x10;
lVar8 = lVar8 + -1;
} while (1 < lVar8);
}
}
else {
/* try { // try from 001160d1 to 001160d8 has its CatchHandler @ 001162af */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,plVar7[5]);
lVar8 = *(long *)this;
for (p_Var1 = *(_Rb_tree_node_base **)(lVar8 + 0x18);
p_Var1 != (_Rb_tree_node_base *)(lVar8 + 8);
p_Var1 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var1)) {
/* try { // try from 001160f0 to 001160f7 has its CatchHandler @ 001162b1 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,(basic_json *)(p_Var1 + 0x40));
}
}
if (local_68 != pdStack_60) {
do {
pdVar9 = pdStack_60;
local_48 = *(int8 *)(pdStack_60 + -0x10);
p_Stack_40 = *(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(pdStack_60 + -8);
assert_invariant((bool)((char)pdStack_60 + -0x10));
pdVar9[-0x10] = (data)0x0;
*(int8 *)(pdVar9 + -8) = 0;
bVar6 = SUB81((data *)&local_48,0);
assert_invariant(bVar6);
pdVar9 = pdStack_60 + -0x10;
pdStack_60 = pdVar9;
assert_invariant(SUB81(pdVar9,0));
data::~data(pdVar9);
if (local_48._0_1_ == (data)0x1) {
p_Var4 = (_Rb_tree_node_base *)(p_Stack_40 + 8);
for (p_Var1 = *(_Rb_tree_node_base **)(p_Stack_40 + 0x18); p_Var1 != p_Var4;
p_Var1 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var1)) {
/* try { // try from 001161d5 to 001161dc has its CatchHandler @ 001162ba */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,(basic_json *)(p_Var1 + 0x40));
}
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::clear(p_Stack_40);
}
else if (local_48._0_1_ == (data)0x2) {
pbVar11 = *(basic_json **)p_Stack_40;
lVar8 = *(long *)(p_Stack_40 + 8) - (long)pbVar11 >> 4;
if (0 < lVar8) {
lVar8 = lVar8 + 1;
do {
/* try { // try from 00116198 to 001161a2 has its CatchHandler @ 001162b8 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68,pbVar11);
pbVar11 = pbVar11 + 0x10;
lVar8 = lVar8 + -1;
} while (1 < lVar8);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::_M_erase_at_end((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)p_Stack_40,*(basic_json **)p_Stack_40);
}
assert_invariant(bVar6);
data::~data((data *)&local_48);
} while (local_68 != pdStack_60);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_68);
}
switch(param_2 & 0xff) {
case 1:
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::~_Rb_tree(*(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)this);
uVar10 = 0x30;
break;
case 2:
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
uVar10 = 0x18;
break;
case 3:
plVar7 = (long *)**(long **)this;
plVar2 = *(long **)this + 2;
uVar10 = 0x20;
if (plVar7 != plVar2) {
uVar5 = *plVar2 + 1;
LAB_00116290:
operator_delete(plVar7,uVar5);
}
break;
default:
goto switchD_00116239_caseD_4;
case 8:
plVar7 = (long *)**(long **)this;
uVar10 = 0x28;
if (plVar7 != (long *)0x0) {
uVar5 = (*(long **)this)[2] - (long)plVar7;
goto LAB_00116290;
}
}
operator_delete(*(void **)this,uVar10);
switchD_00116239_caseD_4:
return;
}
| |
24,644 | 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>::size() const | llama.cpp/common/json.hpp | size_type size() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
{
// null values are empty
return 0;
}
case value_t::array:
{
// delegate call to array_t::size()
return m_data.m_value.array->size();
}
case value_t::object:
{
// delegate call to object_t::size()
return m_data.m_value.object->size();
}
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
// all other types have size 1
return 1;
}
}
} | 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>::size() const:
movzbl (%rdi), %eax
testl %eax, %eax
je 0x8944a
cmpl $0x1, %eax
je 0x89427
cmpl $0x2, %eax
jne 0x89445
movq 0x8(%rdi), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x4, %rax
retq
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x4, %rcx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
retq
movl $0x1, %eax
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv:
movzx eax, byte ptr [rdi]
test eax, eax
jz short locret_8944A
cmp eax, 1
jz short loc_89427
cmp eax, 2
jnz short loc_89445
mov rcx, [rdi+8]
mov rax, [rcx+8]
sub rax, [rcx]
sar rax, 4
retn
loc_89427:
mov rax, [rdi+8]
mov rcx, [rax+8]
sub rcx, [rax]
sar rcx, 4
mov rax, 0AAAAAAAAAAAAAAABh
imul rax, rcx
retn
loc_89445:
mov eax, 1
locret_8944A:
retn
| 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>::size(
unsigned __int8 *a1)
{
long long result; // rax
result = *a1;
if ( *a1 )
{
if ( (_DWORD)result == 1 )
{
return 0xAAAAAAAAAAAAAAABLL * ((long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4);
}
else if ( (_DWORD)result == 2 )
{
return (long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4;
}
else
{
return 1LL;
}
}
return result;
}
| size:
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x0018944a
CMP EAX,0x1
JZ 0x00189427
CMP EAX,0x2
JNZ 0x00189445
MOV RCX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
SAR RAX,0x4
RET
LAB_00189427:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
SUB RCX,qword ptr [RAX]
SAR RCX,0x4
MOV RAX,-0x5555555555555555
IMUL RAX,RCX
RET
LAB_00189445:
MOV EAX,0x1
LAB_0018944a:
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::size() const */
ulong __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>
::size(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
ulong uVar2;
bVar1 = *this;
uVar2 = (ulong)(byte)bVar1;
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
return ((*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4) * -0x5555555555555555;
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
return (*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4;
}
uVar2 = 1;
}
return uVar2;
}
| |
24,645 | GetDirectoryPath | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c | const char *GetDirectoryPath(const char *filePath)
{
/*
// NOTE: Directory separator is different in Windows and other platforms,
// fortunately, Windows also support the '/' separator, that's the one should be used
#if defined(_WIN32)
char separator = '\\';
#else
char separator = '/';
#endif
*/
const char *lastSlash = NULL;
static char dirPath[MAX_FILEPATH_LENGTH] = { 0 };
memset(dirPath, 0, MAX_FILEPATH_LENGTH);
// In case provided path does not contain a root drive letter (C:\, D:\) nor leading path separator (\, /),
// we add the current directory path to dirPath
if (filePath[1] != ':' && filePath[0] != '\\' && filePath[0] != '/')
{
// For security, we set starting path to current directory,
// obtained path will be concatenated to this
dirPath[0] = '.';
dirPath[1] = '/';
}
lastSlash = strprbrk(filePath, "\\/");
if (lastSlash)
{
if (lastSlash == filePath)
{
// The last and only slash is the leading one: path is in a root directory
dirPath[0] = filePath[0];
dirPath[1] = '\0';
}
else
{
// NOTE: Be careful, strncpy() is not safe, it does not care about '\0'
char *dirPathPtr = dirPath;
if ((filePath[1] != ':') && (filePath[0] != '\\') && (filePath[0] != '/')) dirPathPtr += 2; // Skip drive letter, "C:"
memcpy(dirPathPtr, filePath, strlen(filePath) - (strlen(lastSlash) - 1));
dirPath[strlen(filePath) - strlen(lastSlash) + (((filePath[1] != ':') && (filePath[0] != '\\') && (filePath[0] != '/'))? 2 : 0)] = '\0'; // Add '\0' manually
}
}
return dirPath;
} | O2 | c | GetDirectoryPath:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xc50fe(%rip), %r14 # 0x1288f0
movl $0x1000, %edx # imm = 0x1000
movq %r14, %rdi
xorl %esi, %esi
callq 0x92c0
cmpb $0x3a, 0x1(%rbx)
je 0x6381d
movzbl (%rbx), %eax
cmpl $0x2f, %eax
je 0x6381d
cmpl $0x5c, %eax
je 0x6381d
movw $0x2f2e, 0xc50d3(%rip) # imm = 0x2F2E
movq %rbx, %rdi
callq 0x63756
testq %rax, %rax
je 0x638d1
movq %rax, %r15
cmpq %rbx, %rax
je 0x638a6
cmpb $0x3a, 0x1(%rbx)
je 0x63858
movb (%rbx), %al
cmpb $0x2f, %al
leaq 0xc50a9(%rip), %rcx # 0x1288f0
leaq 0xc50a4(%rip), %r14 # 0x1288f2
cmoveq %rcx, %r14
cmpb $0x5c, %al
cmoveq %rcx, %r14
movq %rbx, %rdi
callq 0x9210
movq %rax, %r12
movq %r15, %rdi
callq 0x9210
subq %rax, %r12
incq %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x9400
movq %rbx, %rdi
callq 0x9210
movq %rax, %r14
movq %r15, %rdi
callq 0x9210
subq %rax, %r14
cmpb $0x3a, 0x1(%rbx)
je 0x638a2
movb (%rbx), %cl
cmpb $0x5c, %cl
jne 0x638b7
xorl %eax, %eax
jmp 0x638c1
movb (%rbx), %al
movb %al, 0xc5042(%rip) # 0x1288f0
leaq 0xc503c(%rip), %rcx # 0x1288f1
jmp 0x638ce
xorl %eax, %eax
cmpb $0x2f, %cl
setne %al
addl %eax, %eax
leaq 0xc5028(%rip), %rcx # 0x1288f0
addq %rax, %rcx
addq %r14, %rcx
movb $0x0, (%rcx)
leaq 0xc5018(%rip), %rax # 0x1288f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| GetDirectoryPath:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
lea r14, GetDirectoryPath_dirPath
mov edx, 1000h
mov rdi, r14
xor esi, esi
call _memset
cmp byte ptr [rbx+1], 3Ah ; ':'
jz short loc_6381D
movzx eax, byte ptr [rbx]
cmp eax, 2Fh ; '/'
jz short loc_6381D
cmp eax, 5Ch ; '\'
jz short loc_6381D
mov cs:GetDirectoryPath_dirPath, 2F2Eh
loc_6381D:
mov rdi, rbx
call strprbrk
test rax, rax
jz loc_638D1
mov r15, rax
cmp rax, rbx
jz short loc_638A6
cmp byte ptr [rbx+1], 3Ah ; ':'
jz short loc_63858
mov al, [rbx]
cmp al, 2Fh ; '/'
lea rcx, GetDirectoryPath_dirPath
lea r14, unk_1288F2
cmovz r14, rcx
cmp al, 5Ch ; '\'
cmovz r14, rcx
loc_63858:
mov rdi, rbx
call _strlen
mov r12, rax
mov rdi, r15
call _strlen
sub r12, rax
inc r12
mov rdi, r14
mov rsi, rbx
mov rdx, r12
call _memcpy
mov rdi, rbx
call _strlen
mov r14, rax
mov rdi, r15
call _strlen
sub r14, rax
cmp byte ptr [rbx+1], 3Ah ; ':'
jz short loc_638A2
mov cl, [rbx]
cmp cl, 5Ch ; '\'
jnz short loc_638B7
loc_638A2:
xor eax, eax
jmp short loc_638C1
loc_638A6:
mov al, [rbx]
mov byte ptr cs:GetDirectoryPath_dirPath, al
lea rcx, GetDirectoryPath_dirPath+1
jmp short loc_638CE
loc_638B7:
xor eax, eax
cmp cl, 2Fh ; '/'
setnz al
add eax, eax
loc_638C1:
lea rcx, GetDirectoryPath_dirPath
add rcx, rax
add rcx, r14
loc_638CE:
mov byte ptr [rcx], 0
loc_638D1:
lea rax, GetDirectoryPath_dirPath
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| __int16 * GetDirectoryPath(unsigned __int8 *a1)
{
__int16 *v1; // r14
int v2; // eax
long long v3; // rax
long long v4; // r15
long long v5; // r12
long long v6; // rax
long long v7; // r14
long long v8; // r14
_BOOL8 v9; // rax
_BYTE *v10; // rcx
v1 = GetDirectoryPath_dirPath;
memset(GetDirectoryPath_dirPath, 0LL, 4096LL);
if ( a1[1] != 58 )
{
v2 = *a1;
if ( v2 != 47 && v2 != 92 )
GetDirectoryPath_dirPath[0] = 12078;
}
v3 = strprbrk((long long)a1);
if ( v3 )
{
v4 = v3;
if ( (unsigned __int8 *)v3 == a1 )
{
LOBYTE(GetDirectoryPath_dirPath[0]) = *a1;
v10 = (char *)GetDirectoryPath_dirPath + 1;
}
else
{
if ( a1[1] != 58 )
{
v1 = (__int16 *)&unk_1288F2;
if ( *a1 == 47 )
v1 = GetDirectoryPath_dirPath;
if ( *a1 == 92 )
v1 = GetDirectoryPath_dirPath;
}
v5 = strlen(a1);
v6 = strlen(v4);
memcpy(v1, a1, v5 - v6 + 1);
v7 = strlen(a1);
v8 = v7 - strlen(v4);
v9 = a1[1] != 58 && *a1 != 92 && *a1 != 47;
v10 = (char *)&GetDirectoryPath_dirPath[v9] + v8;
}
*v10 = 0;
}
return GetDirectoryPath_dirPath;
}
| GetDirectoryPath:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[0x2288f0]
MOV EDX,0x1000
MOV RDI,R14
XOR ESI,ESI
CALL 0x001092c0
CMP byte ptr [RBX + 0x1],0x3a
JZ 0x0016381d
MOVZX EAX,byte ptr [RBX]
CMP EAX,0x2f
JZ 0x0016381d
CMP EAX,0x5c
JZ 0x0016381d
MOV word ptr [0x002288f0],0x2f2e
LAB_0016381d:
MOV RDI,RBX
CALL 0x00163756
TEST RAX,RAX
JZ 0x001638d1
MOV R15,RAX
CMP RAX,RBX
JZ 0x001638a6
CMP byte ptr [RBX + 0x1],0x3a
JZ 0x00163858
MOV AL,byte ptr [RBX]
CMP AL,0x2f
LEA RCX,[0x2288f0]
LEA R14,[0x2288f2]
CMOVZ R14,RCX
CMP AL,0x5c
CMOVZ R14,RCX
LAB_00163858:
MOV RDI,RBX
CALL 0x00109210
MOV R12,RAX
MOV RDI,R15
CALL 0x00109210
SUB R12,RAX
INC R12
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R12
CALL 0x00109400
MOV RDI,RBX
CALL 0x00109210
MOV R14,RAX
MOV RDI,R15
CALL 0x00109210
SUB R14,RAX
CMP byte ptr [RBX + 0x1],0x3a
JZ 0x001638a2
MOV CL,byte ptr [RBX]
CMP CL,0x5c
JNZ 0x001638b7
LAB_001638a2:
XOR EAX,EAX
JMP 0x001638c1
LAB_001638a6:
MOV AL,byte ptr [RBX]
MOV byte ptr [0x002288f0],AL
LEA RCX,[0x2288f1]
JMP 0x001638ce
LAB_001638b7:
XOR EAX,EAX
CMP CL,0x2f
SETNZ AL
ADD EAX,EAX
LAB_001638c1:
LEA RCX,[0x2288f0]
ADD RCX,RAX
ADD RCX,R14
LAB_001638ce:
MOV byte ptr [RCX],0x0
LAB_001638d1:
LEA RAX,[0x2288f0]
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int1 * GetDirectoryPath(char *param_1)
{
char *__s;
size_t sVar1;
size_t sVar2;
ulong uVar3;
int1 *puVar4;
puVar4 = GetDirectoryPath_dirPath;
memset(GetDirectoryPath_dirPath,0,0x1000);
if (((param_1[1] != ':') && (*param_1 != '/')) && (*param_1 != '\\')) {
GetDirectoryPath_dirPath._0_2_ = 0x2f2e;
}
__s = (char *)strprbrk(param_1);
if (__s != (char *)0x0) {
if (__s == param_1) {
GetDirectoryPath_dirPath[0] = *param_1;
puVar4 = GetDirectoryPath_dirPath + 1;
}
else {
if (param_1[1] != ':') {
puVar4 = GetDirectoryPath_dirPath + 2;
if (*param_1 == '/') {
puVar4 = GetDirectoryPath_dirPath;
}
if (*param_1 == '\\') {
puVar4 = GetDirectoryPath_dirPath;
}
}
sVar1 = strlen(param_1);
sVar2 = strlen(__s);
memcpy(puVar4,param_1,(sVar1 - sVar2) + 1);
sVar1 = strlen(param_1);
sVar2 = strlen(__s);
if ((param_1[1] == ':') || (*param_1 == '\\')) {
uVar3 = 0;
}
else {
uVar3 = (ulong)((uint)(*param_1 != '/') * 2);
}
puVar4 = GetDirectoryPath_dirPath + (sVar1 - sVar2) + uVar3;
}
*puVar4 = 0;
}
return GetDirectoryPath_dirPath;
}
| |
24,646 | LefDefParser::lefInfo(int, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lef_keywords.cpp | void
lefInfo(int msgNum,
const char *s)
{
int disableStatus = lefSettings->suppresMsg(msgNum);
if (disableStatus == 1) {
char msgStr[60];
sprintf(msgStr, "Message (LEFPARS-%d) has been suppressed from output.", msgNum);
lefWarning(2502, msgStr);
return;
} else if (disableStatus == 2) {
return;
}
if ((lefSettings->TotalMsgLimit > 0) && (lefData->lefInfoMsgPrinted >= lefSettings->TotalMsgLimit))
return;
if (lefSettings->MsgLimit[msgNum] > 0) {
if (lefData->msgLimit[0][msgNum] >= lefSettings->MsgLimit[msgNum]) { // over the limit
char msgStr[100];
if (lefData->msgLimit[1][msgNum]) // already printed out warning
return;
lefData->msgLimit[1][msgNum] = 1;
sprintf(msgStr,
"Message (LEFPARS-%d) has exceeded the message display limit of %d",
msgNum, lefSettings->MsgLimit[msgNum]);
lefWarning(2503, msgStr);
return;
}
lefData->msgLimit[0][msgNum] = lefData->msgLimit[0][msgNum] + 1;
}
lefData->lefInfoMsgPrinted++;
if (lefSettings->WarningLogFunction) {
char *str = (char*) lefMalloc(strlen(lefData->current_token) + strlen(s) + strlen(lefData->lefrFileName)
+ 350);
sprintf(str, "INFO (LEFPARS-%d): %s See file %s at line %d.\n",
msgNum, s, lefData->lefrFileName, lefData->lef_nlines);
(*lefSettings->WarningLogFunction)(str);
free(str);
} else if (lefData->lefrLog) {
fprintf(lefData->lefrLog, "INFO (LEFPARS-%d): %s See file %s at line %d\n",
msgNum, s, lefData->lefrFileName, lefData->lef_nlines);
} else {
if (!lefData->hasOpenedLogFile) {
if ((lefData->lefrLog = fopen("lefRWarning.log", "w")) == 0) {
printf("WARNING (LEFPARS-3500): Unable to open the file lefRWarning.log in %s.\n",
getcwd(NULL, 64));
printf("Info messages will not be printed.\n");
} else {
lefData->hasOpenedLogFile = 1;
fprintf(lefData->lefrLog, "Info from file: %s\n\n", lefData->lefrFileName);
fprintf(lefData->lefrLog, "INFO (LEFPARS-%d): %s See file %s at line %d\n",
msgNum, s, lefData->lefrFileName, lefData->lef_nlines);
}
} else {
if ((lefData->lefrLog = fopen("lefRWarning.log", "a")) == 0) {
printf("WARNING (LEFPARS-3500): Unable to open the file lefRWarning.log in %s.\n",
getcwd(NULL, 64));
printf("Info messages will not be printed.\n");
} else {
fprintf(lefData->lefrLog, "\nInfo from file: %s\n\n", lefData->lefrFileName);
fprintf(lefData->lefrLog, "INFO (LEFPARS-%d): %s See file %s at line %d\n",
msgNum, s, lefData->lefrFileName, lefData->lef_nlines);
}
}
}
} | O0 | cpp | LefDefParser::lefInfo(int, char const*):
subq $0xe8, %rsp
movl %edi, 0xe4(%rsp)
movq %rsi, 0xd8(%rsp)
leaq 0x69a2b(%rip), %rax # 0xa2718
movq (%rax), %rdi
movl 0xe4(%rsp), %esi
callq 0x4eac0
movl %eax, 0xd4(%rsp)
cmpl $0x1, 0xd4(%rsp)
jne 0x38d41
leaq 0x90(%rsp), %rdi
movl 0xe4(%rsp), %edx
leaq 0x42841(%rip), %rsi # 0x7b564
movb $0x0, %al
callq 0x2050
leaq 0x90(%rsp), %rsi
movl $0x9c6, %edi # imm = 0x9C6
callq 0x39440
jmp 0x391c8
cmpl $0x2, 0xd4(%rsp)
jne 0x38d50
jmp 0x391c8
jmp 0x38d52
leaq 0x699bf(%rip), %rax # 0xa2718
movq (%rax), %rax
cmpl $0x0, 0xf0(%rax)
jle 0x38d8c
leaq 0x699d4(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1bc(%rax), %eax
leaq 0x6999c(%rip), %rcx # 0xa2718
movq (%rcx), %rcx
cmpl 0xf0(%rcx), %eax
jl 0x38d8c
jmp 0x391c8
leaq 0x69985(%rip), %rax # 0xa2718
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
cmpl $0x0, 0x130(%rax,%rcx,4)
jle 0x38e9e
leaq 0x6998d(%rip), %rax # 0xa2740
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
movl 0x5dd8(%rax,%rcx,4), %eax
leaq 0x6994c(%rip), %rcx # 0xa2718
movq (%rcx), %rcx
movslq 0xe4(%rsp), %rdx
cmpl 0x130(%rcx,%rdx,4), %eax
jl 0x38e69
leaq 0x69955(%rip), %rax # 0xa2740
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
cmpl $0x0, 0xa74c(%rax,%rcx,4)
je 0x38e05
jmp 0x391c8
leaq 0x69934(%rip), %rax # 0xa2740
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
movl $0x1, 0xa74c(%rax,%rcx,4)
leaq 0x20(%rsp), %rdi
movl 0xe4(%rsp), %edx
leaq 0x698e3(%rip), %rax # 0xa2718
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
movl 0x130(%rax,%rcx,4), %ecx
leaq 0x4274c(%rip), %rsi # 0x7b59a
movb $0x0, %al
callq 0x2050
leaq 0x20(%rsp), %rsi
movl $0x9c7, %edi # imm = 0x9C7
callq 0x39440
jmp 0x391c8
leaq 0x698d0(%rip), %rax # 0xa2740
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
movl 0x5dd8(%rax,%rcx,4), %edx
addl $0x1, %edx
leaq 0x698b4(%rip), %rax # 0xa2740
movq (%rax), %rax
movslq 0xe4(%rsp), %rcx
movl %edx, 0x5dd8(%rax,%rcx,4)
leaq 0x6989b(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1bc(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x1bc(%rax)
leaq 0x6985a(%rip), %rax # 0xa2718
movq (%rax), %rax
cmpq $0x0, 0x128(%rax)
je 0x38f9b
leaq 0x6986a(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x1800(%rax), %rdi
callq 0x20d0
movq %rax, 0x8(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x20d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x10(%rsp)
leaq 0x69832(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %rdi
callq 0x20d0
movq 0x10(%rsp), %rdi
addq %rax, %rdi
addq $0x15e, %rdi # imm = 0x15E
callq 0x359d0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl 0xe4(%rsp), %edx
movq 0xd8(%rsp), %rcx
leaq 0x697f2(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %r8
leaq 0x697e4(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1e4(%rax), %r9d
leaq 0x4266f(%rip), %rsi # 0x7b5dc
movb $0x0, %al
callq 0x2050
leaq 0x6979d(%rip), %rax # 0xa2718
movq (%rax), %rax
movq 0x128(%rax), %rax
movq 0x18(%rsp), %rdi
callq *%rax
movq 0x18(%rsp), %rdi
callq 0x22d0
jmp 0x391c8
leaq 0x6979e(%rip), %rax # 0xa2740
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x38ffb
leaq 0x6978d(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x8(%rax), %rdi
movl 0xe4(%rsp), %edx
movq 0xd8(%rsp), %rcx
leaq 0x69770(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %r8
leaq 0x69762(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1e4(%rax), %r9d
leaq 0x4261c(%rip), %rsi # 0x7b60b
movb $0x0, %al
callq 0x2350
jmp 0x391c6
leaq 0x6973e(%rip), %rax # 0xa2740
movq (%rax), %rax
cmpl $0x0, 0x134(%rax)
jne 0x390f8
leaq 0x42620(%rip), %rdi # 0x7b639
leaq 0x3dfec(%rip), %rsi # 0x7700c
callq 0x22c0
leaq 0x69714(%rip), %rcx # 0xa2740
movq (%rcx), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
jne 0x3906b
xorl %eax, %eax
movl %eax, %edi
movl $0x40, %esi
callq 0x2120
movq %rax, %rsi
leaq 0x425f8(%rip), %rdi # 0x7b649
movb $0x0, %al
callq 0x2030
leaq 0x42632(%rip), %rdi # 0x7b691
movb $0x0, %al
callq 0x2030
jmp 0x390f3
leaq 0x696ce(%rip), %rax # 0xa2740
movq (%rax), %rax
movl $0x1, 0x134(%rax)
leaq 0x696ba(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x696ac(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x42614(%rip), %rsi # 0x7b6b6
movb $0x0, %al
callq 0x2350
leaq 0x69690(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x8(%rax), %rdi
movl 0xe4(%rsp), %edx
movq 0xd8(%rsp), %rcx
leaq 0x69673(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %r8
leaq 0x69665(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1e4(%rax), %r9d
leaq 0x4251f(%rip), %rsi # 0x7b60b
movb $0x0, %al
callq 0x2350
jmp 0x391c4
leaq 0x4253a(%rip), %rdi # 0x7b639
leaq 0x410ff(%rip), %rsi # 0x7a205
callq 0x22c0
leaq 0x6962e(%rip), %rcx # 0xa2740
movq (%rcx), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
jne 0x3914e
xorl %eax, %eax
movl %eax, %edi
movl $0x40, %esi
callq 0x2120
movq %rax, %rsi
leaq 0x42512(%rip), %rdi # 0x7b649
movb $0x0, %al
callq 0x2030
leaq 0x4254c(%rip), %rdi # 0x7b691
movb $0x0, %al
callq 0x2030
jmp 0x391c2
leaq 0x695eb(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x695dd(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x42544(%rip), %rsi # 0x7b6b5
movb $0x0, %al
callq 0x2350
leaq 0x695c1(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x8(%rax), %rdi
movl 0xe4(%rsp), %edx
movq 0xd8(%rsp), %rcx
leaq 0x695a4(%rip), %rax # 0xa2740
movq (%rax), %rax
movq 0x38(%rax), %r8
leaq 0x69596(%rip), %rax # 0xa2740
movq (%rax), %rax
movl 0x1e4(%rax), %r9d
leaq 0x42450(%rip), %rsi # 0x7b60b
movb $0x0, %al
callq 0x2350
jmp 0x391c4
jmp 0x391c6
jmp 0x391c8
addq $0xe8, %rsp
retq
| _ZN12LefDefParser7lefInfoEiPKc:
sub rsp, 0E8h
mov [rsp+0E8h+var_4], edi
mov [rsp+0E8h+var_10], rsi
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rdi, [rax]; this
mov esi, [rsp+0E8h+var_4]; unsigned __int64
call _ZN12LefDefParser12lefrSettings10suppresMsgEi; LefDefParser::lefrSettings::suppresMsg(int)
mov [rsp+0E8h+var_14], eax
cmp [rsp+0E8h+var_14], 1
jnz short loc_38D41
lea rdi, [rsp+0E8h+var_58]
mov edx, [rsp+0E8h+var_4]
lea rsi, aMessageLefpars; "Message (LEFPARS-%d) has been suppresse"...
mov al, 0
call _sprintf
lea rsi, [rsp+0E8h+var_58]; int
mov edi, (offset stru_9B8.st_value+6); this
call _ZN12LefDefParser10lefWarningEiPKc; LefDefParser::lefWarning(int,char const*)
jmp loc_391C8
loc_38D41:
cmp [rsp+0E8h+var_14], 2
jnz short loc_38D50
jmp loc_391C8
loc_38D50:
jmp short $+2
loc_38D52:
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
cmp dword ptr [rax+0F0h], 0
jle short loc_38D8C
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov eax, [rax+1BCh]
lea rcx, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rcx, [rcx]
cmp eax, [rcx+0F0h]
jl short loc_38D8C
jmp loc_391C8
loc_38D8C:
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
cmp dword ptr [rax+rcx*4+130h], 0
jle loc_38E9E
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
mov eax, [rax+rcx*4+5DD8h]
lea rcx, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rcx, [rcx]
movsxd rdx, [rsp+0E8h+var_4]
cmp eax, [rcx+rdx*4+130h]
jl loc_38E69
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
cmp dword ptr [rax+rcx*4+0A74Ch], 0
jz short loc_38E05
jmp loc_391C8
loc_38E05:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
mov dword ptr [rax+rcx*4+0A74Ch], 1
lea rdi, [rsp+0E8h+var_C8]
mov edx, [rsp+0E8h+var_4]
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
mov ecx, [rax+rcx*4+130h]
lea rsi, aMessageLefpars_0; "Message (LEFPARS-%d) has exceeded the m"...
mov al, 0
call _sprintf
lea rsi, [rsp+0E8h+var_C8]; int
mov edi, (offset stru_9B8.st_value+7); this
call _ZN12LefDefParser10lefWarningEiPKc; LefDefParser::lefWarning(int,char const*)
jmp loc_391C8
loc_38E69:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
mov edx, [rax+rcx*4+5DD8h]
add edx, 1
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
movsxd rcx, [rsp+0E8h+var_4]
mov [rax+rcx*4+5DD8h], edx
loc_38E9E:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov ecx, [rax+1BCh]
add ecx, 1
mov [rax+1BCh], ecx
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
cmp qword ptr [rax+128h], 0
jz loc_38F9B
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+1800h]
call _strlen
mov [rsp+0E8h+var_E0], rax
mov rdi, [rsp+0E8h+var_10]
call _strlen
mov rcx, rax
mov rax, [rsp+0E8h+var_E0]
add rax, rcx
mov [rsp+0E8h+var_D8], rax
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+38h]
call _strlen
mov rdi, [rsp+0E8h+var_D8]
add rdi, rax
add rdi, 15Eh; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov [rsp+0E8h+var_D0], rax
mov rdi, [rsp+0E8h+var_D0]
mov edx, [rsp+0E8h+var_4]
mov rcx, [rsp+0E8h+var_10]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r8, [rax+38h]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r9d, [rax+1E4h]
lea rsi, aInfoLefparsDSS; "INFO (LEFPARS-%d): %s See file %s at li"...
mov al, 0
call _sprintf
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
mov rax, [rax+128h]
mov rdi, [rsp+0E8h+var_D0]
call rax
mov rdi, [rsp+0E8h+var_D0]
call _free
jmp loc_391C8
loc_38F9B:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
cmp qword ptr [rax+8], 0
jz short loc_38FFB
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+8]
mov edx, [rsp+0E8h+var_4]
mov rcx, [rsp+0E8h+var_10]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r8, [rax+38h]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r9d, [rax+1E4h]
lea rsi, aInfoLefparsDSS_0; "INFO (LEFPARS-%d): %s See file %s at li"...
mov al, 0
call _fprintf
jmp loc_391C6
loc_38FFB:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
cmp dword ptr [rax+134h], 0
jnz loc_390F8
lea rdi, aLefrwarningLog; "lefRWarning.log"
lea rsi, aW; "w"
call _fopen
lea rcx, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rcx, [rcx]
mov [rcx+8], rax
cmp rax, 0
jnz short loc_3906B
xor eax, eax
mov edi, eax
mov esi, 40h ; '@'
call _getcwd
mov rsi, rax
lea rdi, aWarningLefpars_0; "WARNING (LEFPARS-3500): Unable to open "...
mov al, 0
call _printf
lea rdi, aInfoMessagesWi; "Info messages will not be printed.\n"
mov al, 0
call _printf
jmp loc_390F3
loc_3906B:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov dword ptr [rax+134h], 1
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+8]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdx, [rax+38h]
lea rsi, aInfoFromFileS+1; "Info from file: %s\n\n"
mov al, 0
call _fprintf
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+8]
mov edx, [rsp+0E8h+var_4]
mov rcx, [rsp+0E8h+var_10]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r8, [rax+38h]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r9d, [rax+1E4h]
lea rsi, aInfoLefparsDSS_0; "INFO (LEFPARS-%d): %s See file %s at li"...
mov al, 0
call _fprintf
loc_390F3:
jmp loc_391C4
loc_390F8:
lea rdi, aLefrwarningLog; "lefRWarning.log"
lea rsi, aMaxstackvia+0Ah; "a"
call _fopen
lea rcx, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rcx, [rcx]
mov [rcx+8], rax
cmp rax, 0
jnz short loc_3914E
xor eax, eax
mov edi, eax
mov esi, 40h ; '@'
call _getcwd
mov rsi, rax
lea rdi, aWarningLefpars_0; "WARNING (LEFPARS-3500): Unable to open "...
mov al, 0
call _printf
lea rdi, aInfoMessagesWi; "Info messages will not be printed.\n"
mov al, 0
call _printf
jmp short loc_391C2
loc_3914E:
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+8]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdx, [rax+38h]
lea rsi, aInfoFromFileS; "\nInfo from file: %s\n\n"
mov al, 0
call _fprintf
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov rdi, [rax+8]
mov edx, [rsp+0E8h+var_4]
mov rcx, [rsp+0E8h+var_10]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r8, [rax+38h]
lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rax, [rax]
mov r9d, [rax+1E4h]
lea rsi, aInfoLefparsDSS_0; "INFO (LEFPARS-%d): %s See file %s at li"...
mov al, 0
call _fprintf
loc_391C2:
jmp short $+2
loc_391C4:
jmp short $+2
loc_391C6:
jmp short $+2
loc_391C8:
add rsp, 0E8h
retn
| long long LefDefParser::lefInfo(LefDefParser *this, const char *a2, const char *a3)
{
long long result; // rax
const char *v4; // rdx
const char *v5; // rdx
long long v6; // rax
long long v7; // rax
const char *v8; // rax
long long v9; // rax
long long v10; // [rsp+8h] [rbp-E0h]
long long v11; // [rsp+10h] [rbp-D8h]
long long v12; // [rsp+18h] [rbp-D0h]
int v13[28]; // [rsp+20h] [rbp-C8h] BYREF
int v14[17]; // [rsp+90h] [rbp-58h] BYREF
int v15; // [rsp+D4h] [rbp-14h]
const char *v16; // [rsp+D8h] [rbp-10h]
int v17; // [rsp+E4h] [rbp-4h]
v17 = (int)this;
v16 = a2;
result = LefDefParser::lefrSettings::suppresMsg(LefDefParser::lefSettings, (int)this);
v15 = result;
if ( (_DWORD)result == 1 )
{
sprintf(v14, "Message (LEFPARS-%d) has been suppressed from output.", v17);
return LefDefParser::lefWarning((LefDefParser *)((char *)&stru_9B8.st_value + 6), (int)v14, v4);
}
if ( v15 != 2 )
{
if ( *((int *)LefDefParser::lefSettings + 60) <= 0
|| (result = *(unsigned int *)(LefDefParser::lefData + 444LL),
(int)result < *((_DWORD *)LefDefParser::lefSettings + 60)) )
{
if ( *((int *)LefDefParser::lefSettings + v17 + 76) > 0 )
{
if ( *(_DWORD *)(LefDefParser::lefData + 4LL * v17 + 24024) >= *((_DWORD *)LefDefParser::lefSettings + v17 + 76) )
{
result = LefDefParser::lefData;
if ( !*(_DWORD *)(LefDefParser::lefData + 4LL * v17 + 42828) )
{
*(_DWORD *)(LefDefParser::lefData + 4LL * v17 + 42828) = 1;
sprintf(
v13,
"Message (LEFPARS-%d) has exceeded the message display limit of %d",
v17,
*((_DWORD *)LefDefParser::lefSettings + v17 + 76));
return LefDefParser::lefWarning((LefDefParser *)((char *)&stru_9B8.st_value + 7), (int)v13, v5);
}
return result;
}
++*(_DWORD *)(LefDefParser::lefData + 4LL * v17 + 24024);
}
++*(_DWORD *)(LefDefParser::lefData + 444LL);
if ( *((_QWORD *)LefDefParser::lefSettings + 37) )
{
v10 = strlen(*(_QWORD *)(LefDefParser::lefData + 6144LL));
v11 = strlen(v16) + v10;
v6 = strlen(*(_QWORD *)(LefDefParser::lefData + 56LL));
v12 = LefDefParser::lefMalloc((LefDefParser *)(v6 + v11 + 350));
sprintf(
v12,
"INFO (LEFPARS-%d): %s See file %s at line %d.\n",
v17,
v16,
*(const char **)(LefDefParser::lefData + 56LL),
*(_DWORD *)(LefDefParser::lefData + 484LL));
(*((void ( **)(long long))LefDefParser::lefSettings + 37))(v12);
return free(v12);
}
if ( *(_QWORD *)(LefDefParser::lefData + 8LL) )
return fprintf(
*(_QWORD *)(LefDefParser::lefData + 8LL),
"INFO (LEFPARS-%d): %s See file %s at line %d\n",
v17,
v16,
*(const char **)(LefDefParser::lefData + 56LL),
*(_DWORD *)(LefDefParser::lefData + 484LL));
if ( *(_DWORD *)(LefDefParser::lefData + 308LL) )
{
v9 = fopen("lefRWarning.log", "a");
*(_QWORD *)(LefDefParser::lefData + 8LL) = v9;
if ( v9 )
{
fprintf(
*(_QWORD *)(LefDefParser::lefData + 8LL),
"\nInfo from file: %s\n\n",
*(const char **)(LefDefParser::lefData + 56LL));
return fprintf(
*(_QWORD *)(LefDefParser::lefData + 8LL),
"INFO (LEFPARS-%d): %s See file %s at line %d\n",
v17,
v16,
*(const char **)(LefDefParser::lefData + 56LL),
*(_DWORD *)(LefDefParser::lefData + 484LL));
}
}
else
{
v7 = fopen("lefRWarning.log", "w");
*(_QWORD *)(LefDefParser::lefData + 8LL) = v7;
if ( v7 )
{
*(_DWORD *)(LefDefParser::lefData + 308LL) = 1;
fprintf(
*(_QWORD *)(LefDefParser::lefData + 8LL),
"Info from file: %s\n\n",
*(const char **)(LefDefParser::lefData + 56LL));
return fprintf(
*(_QWORD *)(LefDefParser::lefData + 8LL),
"INFO (LEFPARS-%d): %s See file %s at line %d\n",
v17,
v16,
*(const char **)(LefDefParser::lefData + 56LL),
*(_DWORD *)(LefDefParser::lefData + 484LL));
}
}
v8 = (const char *)getcwd(0LL, 64LL);
printf("WARNING (LEFPARS-3500): Unable to open the file lefRWarning.log in %s.\n", v8);
return printf("Info messages will not be printed.\n");
}
}
return result;
}
| lefInfo:
SUB RSP,0xe8
MOV dword ptr [RSP + 0xe4],EDI
MOV qword ptr [RSP + 0xd8],RSI
LEA RAX,[0x1a2718]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RSP + 0xe4]
CALL 0x0014eac0
MOV dword ptr [RSP + 0xd4],EAX
CMP dword ptr [RSP + 0xd4],0x1
JNZ 0x00138d41
LEA RDI,[RSP + 0x90]
MOV EDX,dword ptr [RSP + 0xe4]
LEA RSI,[0x17b564]
MOV AL,0x0
CALL 0x00102050
LEA RSI,[RSP + 0x90]
MOV EDI,0x9c6
CALL 0x00139440
JMP 0x001391c8
LAB_00138d41:
CMP dword ptr [RSP + 0xd4],0x2
JNZ 0x00138d50
JMP 0x001391c8
LAB_00138d50:
JMP 0x00138d52
LAB_00138d52:
LEA RAX,[0x1a2718]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0xf0],0x0
JLE 0x00138d8c
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x1bc]
LEA RCX,[0x1a2718]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0xf0]
JL 0x00138d8c
JMP 0x001391c8
LAB_00138d8c:
LEA RAX,[0x1a2718]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
CMP dword ptr [RAX + RCX*0x4 + 0x130],0x0
JLE 0x00138e9e
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
MOV EAX,dword ptr [RAX + RCX*0x4 + 0x5dd8]
LEA RCX,[0x1a2718]
MOV RCX,qword ptr [RCX]
MOVSXD RDX,dword ptr [RSP + 0xe4]
CMP EAX,dword ptr [RCX + RDX*0x4 + 0x130]
JL 0x00138e69
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
CMP dword ptr [RAX + RCX*0x4 + 0xa74c],0x0
JZ 0x00138e05
JMP 0x001391c8
LAB_00138e05:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
MOV dword ptr [RAX + RCX*0x4 + 0xa74c],0x1
LEA RDI,[RSP + 0x20]
MOV EDX,dword ptr [RSP + 0xe4]
LEA RAX,[0x1a2718]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
MOV ECX,dword ptr [RAX + RCX*0x4 + 0x130]
LEA RSI,[0x17b59a]
MOV AL,0x0
CALL 0x00102050
LEA RSI,[RSP + 0x20]
MOV EDI,0x9c7
CALL 0x00139440
JMP 0x001391c8
LAB_00138e69:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
MOV EDX,dword ptr [RAX + RCX*0x4 + 0x5dd8]
ADD EDX,0x1
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0xe4]
MOV dword ptr [RAX + RCX*0x4 + 0x5dd8],EDX
LAB_00138e9e:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x1bc]
ADD ECX,0x1
MOV dword ptr [RAX + 0x1bc],ECX
LEA RAX,[0x1a2718]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x128],0x0
JZ 0x00138f9b
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x1800]
CALL 0x001020d0
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xd8]
CALL 0x001020d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x001020d0
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,RAX
ADD RDI,0x15e
CALL 0x001359d0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
MOV EDX,dword ptr [RSP + 0xe4]
MOV RCX,qword ptr [RSP + 0xd8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x38]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x1e4]
LEA RSI,[0x17b5dc]
MOV AL,0x0
CALL 0x00102050
LEA RAX,[0x1a2718]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x128]
MOV RDI,qword ptr [RSP + 0x18]
CALL RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001022d0
JMP 0x001391c8
LAB_00138f9b:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x00138ffb
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
MOV EDX,dword ptr [RSP + 0xe4]
MOV RCX,qword ptr [RSP + 0xd8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x38]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x1e4]
LEA RSI,[0x17b60b]
MOV AL,0x0
CALL 0x00102350
JMP 0x001391c6
LAB_00138ffb:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x134],0x0
JNZ 0x001390f8
LEA RDI,[0x17b639]
LEA RSI,[0x17700c]
CALL 0x001022c0
LEA RCX,[0x1a2740]
MOV RCX,qword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JNZ 0x0013906b
XOR EAX,EAX
MOV EDI,EAX
MOV ESI,0x40
CALL 0x00102120
MOV RSI,RAX
LEA RDI,[0x17b649]
MOV AL,0x0
CALL 0x00102030
LEA RDI,[0x17b691]
MOV AL,0x0
CALL 0x00102030
JMP 0x001390f3
LAB_0013906b:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0x134],0x1
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x38]
LEA RSI,[0x17b6b6]
MOV AL,0x0
CALL 0x00102350
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
MOV EDX,dword ptr [RSP + 0xe4]
MOV RCX,qword ptr [RSP + 0xd8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x38]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x1e4]
LEA RSI,[0x17b60b]
MOV AL,0x0
CALL 0x00102350
LAB_001390f3:
JMP 0x001391c4
LAB_001390f8:
LEA RDI,[0x17b639]
LEA RSI,[0x17a205]
CALL 0x001022c0
LEA RCX,[0x1a2740]
MOV RCX,qword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JNZ 0x0013914e
XOR EAX,EAX
MOV EDI,EAX
MOV ESI,0x40
CALL 0x00102120
MOV RSI,RAX
LEA RDI,[0x17b649]
MOV AL,0x0
CALL 0x00102030
LEA RDI,[0x17b691]
MOV AL,0x0
CALL 0x00102030
JMP 0x001391c2
LAB_0013914e:
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x38]
LEA RSI,[0x17b6b5]
MOV AL,0x0
CALL 0x00102350
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
MOV EDX,dword ptr [RSP + 0xe4]
MOV RCX,qword ptr [RSP + 0xd8]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x38]
LEA RAX,[0x1a2740]
MOV RAX,qword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x1e4]
LEA RSI,[0x17b60b]
MOV AL,0x0
CALL 0x00102350
LAB_001391c2:
JMP 0x001391c4
LAB_001391c4:
JMP 0x001391c6
LAB_001391c6:
JMP 0x001391c8
LAB_001391c8:
ADD RSP,0xe8
RET
|
/* LefDefParser::lefInfo(int, char const*) */
void LefDefParser::lefInfo(int param_1,char *param_2)
{
size_t sVar1;
size_t sVar2;
size_t sVar3;
char *pcVar4;
FILE *pFVar5;
char local_c8 [112];
char local_58 [68];
int local_14;
char *local_10;
uint local_4;
local_10 = param_2;
local_4 = param_1;
local_14 = lefrSettings::suppresMsg(lefSettings,param_1);
if (local_14 == 1) {
sprintf(local_58,"Message (LEFPARS-%d) has been suppressed from output.",(ulong)local_4);
lefWarning(0x9c6,local_58);
}
else if ((local_14 != 2) &&
((*(int *)(lefSettings + 0xf0) < 1 ||
(*(int *)(lefData + 0x1bc) < *(int *)(lefSettings + 0xf0))))) {
if (0 < *(int *)(lefSettings + (long)(int)local_4 * 4 + 0x130)) {
if (*(int *)(lefSettings + (long)(int)local_4 * 4 + 0x130) <=
*(int *)(lefData + 0x5dd8 + (long)(int)local_4 * 4)) {
if (*(int *)(lefData + 0xa74c + (long)(int)local_4 * 4) != 0) {
return;
}
*(int4 *)(lefData + 0xa74c + (long)(int)local_4 * 4) = 1;
sprintf(local_c8,"Message (LEFPARS-%d) has exceeded the message display limit of %d",
(ulong)local_4,(ulong)*(uint *)(lefSettings + (long)(int)local_4 * 4 + 0x130));
lefWarning(0x9c7,local_c8);
return;
}
*(int *)(lefData + 0x5dd8 + (long)(int)local_4 * 4) =
*(int *)(lefData + 0x5dd8 + (long)(int)local_4 * 4) + 1;
}
*(int *)(lefData + 0x1bc) = *(int *)(lefData + 0x1bc) + 1;
if (*(long *)(lefSettings + 0x128) == 0) {
if (*(long *)(lefData + 8) == 0) {
if (*(int *)(lefData + 0x134) == 0) {
pFVar5 = fopen("lefRWarning.log","w");
*(FILE **)(lefData + 8) = pFVar5;
if (pFVar5 == (FILE *)0x0) {
pcVar4 = getcwd((char *)0x0,0x40);
printf("WARNING (LEFPARS-3500): Unable to open the file lefRWarning.log in %s.\n",pcVar4
);
printf("Info messages will not be printed.\n");
}
else {
*(int4 *)(lefData + 0x134) = 1;
fprintf(*(FILE **)(lefData + 8),"Info from file: %s\n\n",*(int8 *)(lefData + 0x38)
);
fprintf(*(FILE **)(lefData + 8),"INFO (LEFPARS-%d): %s See file %s at line %d\n",
(ulong)local_4,local_10,*(int8 *)(lefData + 0x38),
(ulong)*(uint *)(lefData + 0x1e4));
}
}
else {
pFVar5 = fopen("lefRWarning.log","a");
*(FILE **)(lefData + 8) = pFVar5;
if (pFVar5 == (FILE *)0x0) {
pcVar4 = getcwd((char *)0x0,0x40);
printf("WARNING (LEFPARS-3500): Unable to open the file lefRWarning.log in %s.\n",pcVar4
);
printf("Info messages will not be printed.\n");
}
else {
fprintf(*(FILE **)(lefData + 8),"\nInfo from file: %s\n\n",
*(int8 *)(lefData + 0x38));
fprintf(*(FILE **)(lefData + 8),"INFO (LEFPARS-%d): %s See file %s at line %d\n",
(ulong)local_4,local_10,*(int8 *)(lefData + 0x38),
(ulong)*(uint *)(lefData + 0x1e4));
}
}
}
else {
fprintf(*(FILE **)(lefData + 8),"INFO (LEFPARS-%d): %s See file %s at line %d\n",
(ulong)local_4,local_10,*(int8 *)(lefData + 0x38),
(ulong)*(uint *)(lefData + 0x1e4));
}
}
else {
sVar1 = strlen(*(char **)(lefData + 0x1800));
sVar2 = strlen(local_10);
sVar3 = strlen(*(char **)(lefData + 0x38));
pcVar4 = (char *)lefMalloc(sVar1 + sVar2 + sVar3 + 0x15e);
sprintf(pcVar4,"INFO (LEFPARS-%d): %s See file %s at line %d.\n",(ulong)local_4,local_10,
*(int8 *)(lefData + 0x38),(ulong)*(uint *)(lefData + 0x1e4));
(**(code **)(lefSettings + 0x128))(pcVar4);
free(pcVar4);
}
}
return;
}
| |
24,647 | ma_update_block_record | eloqsql/storage/maria/ma_blockrec.c | my_bool _ma_update_block_record(MARIA_HA *info, MARIA_RECORD_POS record_pos,
const uchar *orig_rec, const uchar *new_rec)
{
return _ma_update_block_record2(info, record_pos, orig_rec, new_rec,
LSN_ERROR);
} | O3 | c | ma_update_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %r8
movq %rdx, -0x58(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x140(%rdi), %rdx
movq (%rdi), %r15
movl 0x7bc(%r15), %r14d
movl 0xb0(%rdi), %eax
movl 0x170(%rdi), %ecx
movq %rcx, -0x68(%rbp)
movl %eax, 0x170(%rdi)
movq %r8, -0x60(%rbp)
movq %r8, %rsi
movq %rdx, -0x38(%rbp)
callq 0x5d54b
movq %r13, %r12
shrq $0x8, %r12
movq %rbx, %rdi
movl $0x1, %esi
callq 0x42619
movq 0x600(%r15), %rdi
leaq 0x470(%rbx), %rsi
movq %r15, -0x78(%rbp)
movl 0x7d4(%r15), %r9d
leaq -0xd8(%rbp), %r15
movq %r12, -0x70(%rbp)
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %r15
pushq $0x4
callq 0x33566
addq $0x10, %rsp
movq %rax, %r12
movl $0x6, 0x8(%r15)
testq %rax, %rax
setne 0x10(%r15)
leaq 0x2e8(%rbx), %rdi
movq %r15, %rsi
callq 0x92af2
testq %r12, %r12
je 0x5e09b
leaq 0x80(%rbx), %rcx
movzwl 0xa(%r12), %esi
movl %esi, -0x2c(%rbp)
movzbl %r13b, %r13d
addq %r12, %r14
leal (,%r13,4), %eax
subq %rax, %r14
leaq -0x8(%r14), %r15
movzwl -0x6(%r14), %eax
addl %esi, %eax
cmpq %rax, 0x1d0(%rbx)
jbe 0x5e0ac
movq %rsi, -0x50(%rbp)
movq %r15, -0x80(%rbp)
movq %r12, -0x48(%rbp)
movq %rcx, %r12
movq 0xa8(%rbx), %rsi
cmpq $0x0, (%rsi)
je 0x5dfac
movq %rbx, %rdi
callq 0x5e690
testb %al, %al
jne 0x5e0fa
cmpl $0x0, 0x12c(%rbx)
je 0x5dfc8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5e6f7
testb %al, %al
jne 0x5e0fa
movzwl -0x6(%r14), %r15d
movq -0x50(%rbp), %rax
leal (%r15,%rax), %ecx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq %r12, %r8
callq 0x41ca8
testb %al, %al
jne 0x5e0fa
cmpl %r15d, 0x1f8(%rbx)
movq -0x50(%rbp), %rcx
ja 0x5e009
movl %r15d, %eax
cmpq %rax, 0x1d0(%rbx)
ja 0x5e037
movq 0x8(%rbx), %rax
movq 0x80(%rax), %r8
movq -0x78(%rbp), %rdi
movl 0x3b8(%rdi), %r9d
movq -0x48(%rbp), %rsi
movl %r13d, %edx
movl $0x1, %ecx
callq 0x5d050
movzwl -0x6(%r14), %r15d
xorl %ecx, %ecx
leaq -0xa8(%rbp), %rax
movq -0x48(%rbp), %rdx
movq %rdx, (%rax)
movl %r13d, 0x1c(%rax)
addl %r15d, %ecx
movl %ecx, 0x20(%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x10(%rax)
movzwl (%rcx), %ecx
addq %rcx, %rdx
movq %rdx, 0x8(%rax)
movl %r15d, 0x18(%rax)
subq $0x8, %rsp
movq %rbx, %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %r12, %r8
movl $0x1, %r9d
pushq -0x68(%rbp)
pushq $0x1
pushq %rax
callq 0x621ce
addq $0x20, %rsp
testb %al, %al
jne 0x5e0fa
xorl %eax, %eax
jmp 0x5e12b
callq 0xa2a4e
movl (%rax), %esi
movq %rbx, %rdi
callq 0x37978
jmp 0x5e0fa
movq %rcx, %r14
movq -0x78(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
callq 0x411ae
movb %al, -0xab(%rbp)
movl 0x1d0(%rbx), %r8d
subq $0x8, %rsp
leaq -0x3c(%rbp), %rax
leaq -0x40(%rbp), %r10
leaq -0x2c(%rbp), %r9
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
pushq $0x1
pushq %rax
pushq %r10
callq 0x605be
addq $0x20, %rsp
testb %al, %al
je 0x5e13d
cmpl $0x0, 0x644(%rbx)
je 0x5e110
movq %rbx, %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x42619
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5a724
movq 0x8(%rbx), %rax
movq $0x0, 0x90(%rax)
movb $0x1, %al
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, -0xa8(%rbp)
movl %r13d, -0x8c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x88(%rbp)
movq %r15, -0x98(%rbp)
movl -0x40(%rbp), %ecx
addq %rcx, %r12
movq %r12, -0xa0(%rbp)
movl -0x3c(%rbp), %ecx
movl %ecx, -0x90(%rbp)
leaq -0xc0(%rbp), %rcx
movq %rcx, 0x80(%rbx)
movl $0x1, %edx
movl %edx, 0x88(%rbx)
movq -0x70(%rbp), %rsi
movq %rsi, (%rcx)
movl %edx, 0x10(%rcx)
movb $0x3, 0x14(%rcx)
movl %eax, 0xc(%rcx)
movq 0xa8(%rbx), %rsi
cmpq $0x0, (%rsi)
je 0x5e1b8
movq %rbx, %rdi
callq 0x5e690
testb %al, %al
jne 0x5e0fa
cmpl $0x0, 0x12c(%rbx)
je 0x5e1d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5e6f7
testb %al, %al
jne 0x5e0fa
subq $0x8, %rsp
leaq -0xa8(%rbp), %rax
movq %rbx, %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %r14, %r8
movl $0x1, %r9d
pushq -0x68(%rbp)
pushq $0x1
pushq %rax
callq 0x621ce
addq $0x20, %rsp
andb $-0x3, 0x624(%rbx)
jmp 0x5e12b
| _ma_update_block_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r8, rcx
mov [rbp+var_58], rdx
mov r13, rsi
mov rbx, rdi
lea rdx, [rdi+140h]
mov r15, [rdi]
mov r14d, [r15+7BCh]
mov eax, [rdi+0B0h]
mov ecx, [rdi+170h]
mov [rbp+var_68], rcx
mov [rdi+170h], eax
mov [rbp+var_60], r8
mov rsi, r8
mov [rbp+var_38], rdx
call calc_record_size
mov r12, r13
shr r12, 8
mov rdi, rbx
mov esi, 1
call _ma_bitmap_flushable
mov rdi, [r15+600h]
lea rsi, [rbx+470h]
mov [rbp+var_78], r15
mov r9d, [r15+7D4h]
lea r15, [rbp+var_D8]
mov [rbp+var_70], r12
mov rdx, r12
xor ecx, ecx
xor r8d, r8d
push r15
push 4
call pagecache_read
add rsp, 10h
mov r12, rax
mov dword ptr [r15+8], 6
test rax, rax
setnz byte ptr [r15+10h]
lea rdi, [rbx+2E8h]
mov rsi, r15
call insert_dynamic
test r12, r12
jz loc_5E09B
lea rcx, [rbx+80h]
movzx esi, word ptr [r12+0Ah]
mov [rbp+var_2C], esi
movzx r13d, r13b
add r14, r12
lea eax, ds:0[r13*4]
sub r14, rax
lea r15, [r14-8]
movzx eax, word ptr [r14-6]
add eax, esi
cmp [rbx+1D0h], rax
jbe loc_5E0AC
mov [rbp+var_50], rsi
mov [rbp+var_80], r15
mov [rbp+var_48], r12
mov r12, rcx
mov rsi, [rbx+0A8h]
cmp qword ptr [rsi], 0
jz short loc_5DFAC
mov rdi, rbx
call delete_tails
test al, al
jnz loc_5E0FA
loc_5DFAC:
cmp dword ptr [rbx+12Ch], 0
jz short loc_5DFC8
mov rdi, rbx
mov rsi, r12
call free_full_pages
test al, al
jnz loc_5E0FA
loc_5DFC8:
movzx r15d, word ptr [r14-6]
mov rax, [rbp+var_50]
lea ecx, [r15+rax]
mov rdi, rbx
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_70]
mov r8, r12
call _ma_bitmap_find_new_place
test al, al
jnz loc_5E0FA
cmp [rbx+1F8h], r15d
mov rcx, [rbp+var_50]
ja short loc_5E009
mov eax, r15d
cmp [rbx+1D0h], rax
ja short loc_5E037
loc_5E009:
mov rax, [rbx+8]
mov r8, [rax+80h]
mov rdi, [rbp+var_78]
mov r9d, [rdi+3B8h]
mov rsi, [rbp+var_48]
mov edx, r13d
mov ecx, 1
call _ma_compact_block_page
movzx r15d, word ptr [r14-6]
xor ecx, ecx
loc_5E037:
lea rax, [rbp+var_A8]
mov rdx, [rbp+var_48]
mov [rax], rdx
mov [rax+1Ch], r13d
add ecx, r15d
mov [rax+20h], ecx
mov rcx, [rbp+var_80]
mov [rax+10h], rcx
movzx ecx, word ptr [rcx]
add rdx, rcx
mov [rax+8], rdx
mov [rax+18h], r15d
sub rsp, 8
mov rdi, rbx
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_60]
mov rcx, [rbp+var_38]
mov r8, r12
mov r9d, 1
push [rbp+var_68]
push 1
push rax
call write_block_record
add rsp, 20h
test al, al
jnz short loc_5E0FA
xor eax, eax
jmp loc_5E12B
loc_5E09B:
call _my_thread_var
mov esi, [rax]
mov rdi, rbx
call _ma_set_fatal_error
jmp short loc_5E0FA
loc_5E0AC:
mov r14, rcx
mov rdi, [rbp+var_78]
add rdi, 0A10h
call _ma_free_size_to_head_pattern
mov [rbp+var_AB], al
mov r8d, [rbx+1D0h]
sub rsp, 8
lea rax, [rbp+var_3C]
lea r10, [rbp+var_40]
lea r9, [rbp+var_2C]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
push 1
push rax
push r10
call extend_area_on_page
add rsp, 20h
test al, al
jz short loc_5E13D
loc_5E0FA:
cmp dword ptr [rbx+644h], 0
jz short loc_5E110
mov rdi, rbx
mov esi, 0FFFFFFFFh
call _ma_bitmap_flushable
loc_5E110:
mov rdi, rbx
xor esi, esi
call _ma_unpin_all_pages
mov rax, [rbx+8]
mov qword ptr [rax+90h], 0
mov al, 1
loc_5E12B:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5E13D:
mov [rbp+var_A8], r12
mov [rbp+var_8C], r13d
mov eax, [rbp+var_2C]
mov [rbp+var_88], eax
mov [rbp+var_98], r15
mov ecx, [rbp+var_40]
add r12, rcx
mov [rbp+var_A0], r12
mov ecx, [rbp+var_3C]
mov [rbp+var_90], ecx
lea rcx, [rbp+var_C0]
mov [rbx+80h], rcx
mov edx, 1
mov [rbx+88h], edx
mov rsi, [rbp+var_70]
mov [rcx], rsi
mov [rcx+10h], edx
mov byte ptr [rcx+14h], 3
mov [rcx+0Ch], eax
mov rsi, [rbx+0A8h]
cmp qword ptr [rsi], 0
jz short loc_5E1B8
mov rdi, rbx
call delete_tails
test al, al
jnz loc_5E0FA
loc_5E1B8:
cmp dword ptr [rbx+12Ch], 0
jz short loc_5E1D4
mov rdi, rbx
mov rsi, r14
call free_full_pages
test al, al
jnz loc_5E0FA
loc_5E1D4:
sub rsp, 8
lea rax, [rbp+var_A8]
mov rdi, rbx
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_60]
mov rcx, [rbp+var_38]
mov r8, r14
mov r9d, 1
push [rbp+var_68]
push 1
push rax
call write_block_record
add rsp, 20h
and byte ptr [rbx+624h], 0FDh
jmp loc_5E12B
| char ma_update_block_record(long long *a1, unsigned long long a2, long long a3, long long a4)
{
unsigned __int8 v4; // r13
long long v6; // r15
long long v7; // r14
int v8; // eax
long long v9; // rdi
int v10; // r9d
long long v11; // r12
long long v12; // rsi
long long v13; // r14
unsigned __int16 *v14; // r15
long long v15; // r12
unsigned int v16; // r15d
int v17; // ecx
char result; // al
unsigned int *v19; // rax
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
int v23; // r9d
_DWORD *v24; // r14
int v25; // eax
long long v26; // [rsp+8h] [rbp-D8h] BYREF
int v27; // [rsp+10h] [rbp-D0h]
bool v28; // [rsp+18h] [rbp-C8h]
unsigned long long v29; // [rsp+20h] [rbp-C0h] BYREF
int v30; // [rsp+2Ch] [rbp-B4h]
int v31; // [rsp+30h] [rbp-B0h]
char v32; // [rsp+34h] [rbp-ACh]
char v33; // [rsp+35h] [rbp-ABh]
long long v34; // [rsp+38h] [rbp-A8h] BYREF
long long v35; // [rsp+40h] [rbp-A0h]
unsigned __int16 *v36; // [rsp+48h] [rbp-98h]
unsigned int v37; // [rsp+50h] [rbp-90h]
int v38; // [rsp+54h] [rbp-8Ch]
int v39; // [rsp+58h] [rbp-88h]
unsigned __int16 *v40; // [rsp+60h] [rbp-80h]
long long v41; // [rsp+68h] [rbp-78h]
unsigned long long v42; // [rsp+70h] [rbp-70h]
long long v43; // [rsp+78h] [rbp-68h]
long long v44; // [rsp+80h] [rbp-60h]
long long v45; // [rsp+88h] [rbp-58h]
long long v46; // [rsp+90h] [rbp-50h]
long long v47; // [rsp+98h] [rbp-48h]
unsigned int v48; // [rsp+A0h] [rbp-40h] BYREF
unsigned int v49; // [rsp+A4h] [rbp-3Ch] BYREF
_DWORD *v50; // [rsp+A8h] [rbp-38h]
int v51; // [rsp+B4h] [rbp-2Ch] BYREF
v45 = a3;
v4 = a2;
v6 = *a1;
v7 = *(unsigned int *)(*a1 + 1980);
v8 = *((_DWORD *)a1 + 44);
v43 = *((unsigned int *)a1 + 92);
*((_DWORD *)a1 + 92) = v8;
v44 = a4;
v50 = a1 + 40;
calc_record_size(a1, a4, (long long)(a1 + 40));
ma_bitmap_flushable(a1, 1);
v9 = *(_QWORD *)(v6 + 1536);
v41 = v6;
v10 = *(_DWORD *)(v6 + 2004);
v42 = a2 >> 8;
v11 = pagecache_read(v9, (long long)(a1 + 142), a2 >> 8, 0, 0LL, v10, 4u, &v26);
v27 = 6;
v28 = v11 != 0;
insert_dynamic(a1 + 93, &v26);
if ( v11 )
{
v12 = *(unsigned __int16 *)(v11 + 10);
v51 = v12;
v13 = v11 + v7 - 4 * (unsigned int)v4;
v14 = (unsigned __int16 *)(v13 - 8);
if ( a1[58] <= (unsigned long long)((unsigned int)v12 + *(unsigned __int16 *)(v13 - 6)) )
{
v24 = a1 + 16;
v33 = ma_free_size_to_head_pattern((_DWORD *)(v41 + 2576), v12);
if ( !(unsigned __int8)extend_area_on_page(
(_DWORD)a1,
v11,
(_DWORD)v14,
v4,
*((_DWORD *)a1 + 116),
(unsigned int)&v51,
(long long)&v48,
(long long)&v49,
1) )
{
v34 = v11;
v38 = v4;
v25 = v51;
v39 = v51;
v36 = v14;
v35 = v48 + v11;
v37 = v49;
a1[16] = (long long)&v29;
*((_DWORD *)a1 + 34) = 1;
v29 = v42;
v31 = 1;
v32 = 3;
v30 = v25;
if ( (!*(_QWORD *)a1[21] || !(unsigned __int8)delete_tails(a1))
&& (!*((_DWORD *)a1 + 75) || !(unsigned __int8)free_full_pages(a1, v24)) )
{
result = write_block_record((_DWORD)a1, v45, v44, (_DWORD)v50, (_DWORD)v24, 1, (long long)&v34, 1LL, v43);
*((_BYTE *)a1 + 1572) &= ~2u;
return result;
}
}
}
else
{
v46 = v12;
v40 = (unsigned __int16 *)(v13 - 8);
v47 = v11;
v15 = (long long)(a1 + 16);
if ( (!*(_QWORD *)a1[21] || !(unsigned __int8)delete_tails(a1))
&& (!*((_DWORD *)a1 + 75) || !(unsigned __int8)free_full_pages(a1, v15)) )
{
v16 = *(unsigned __int16 *)(v13 - 6);
if ( !(unsigned __int8)ma_bitmap_find_new_place((long long)a1, (long long)v50, v42, v16 + (unsigned int)v46, v15) )
{
v17 = v46;
if ( *((_DWORD *)a1 + 126) > v16 || a1[58] <= (unsigned long long)v16 )
{
ma_compact_block_page(v41, v47, v4, 1, *(_QWORD *)(a1[1] + 128), *(_DWORD *)(v41 + 952));
v16 = *(unsigned __int16 *)(v13 - 6);
v17 = 0;
}
v34 = v47;
v38 = v4;
v39 = v16 + v17;
v36 = v40;
v35 = *v40 + v47;
v37 = v16;
if ( !(unsigned __int8)write_block_record((_DWORD)a1, v45, v44, (_DWORD)v50, v15, 1, (long long)&v34, 1LL, v43) )
return 0;
}
}
}
}
else
{
v19 = (unsigned int *)my_thread_var(a1 + 93, (const char *)&v26);
ma_set_fatal_error(a1, *v19, v20, v21, v22, v23);
}
if ( *((_DWORD *)a1 + 401) )
ma_bitmap_flushable(a1, -1);
ma_unpin_all_pages((long long)a1, 0LL);
*(_QWORD *)(a1[1] + 144) = 0LL;
return 1;
}
| _ma_update_block_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R8,RCX
MOV qword ptr [RBP + -0x58],RDX
MOV R13,RSI
MOV RBX,RDI
LEA RDX,[RDI + 0x140]
MOV R15,qword ptr [RDI]
MOV R14D,dword ptr [R15 + 0x7bc]
MOV EAX,dword ptr [RDI + 0xb0]
MOV ECX,dword ptr [RDI + 0x170]
MOV qword ptr [RBP + -0x68],RCX
MOV dword ptr [RDI + 0x170],EAX
MOV qword ptr [RBP + -0x60],R8
MOV RSI,R8
MOV qword ptr [RBP + -0x38],RDX
CALL 0x0015d54b
MOV R12,R13
SHR R12,0x8
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00142619
MOV RDI,qword ptr [R15 + 0x600]
LEA RSI,[RBX + 0x470]
MOV qword ptr [RBP + -0x78],R15
MOV R9D,dword ptr [R15 + 0x7d4]
LEA R15,[RBP + -0xd8]
MOV qword ptr [RBP + -0x70],R12
MOV RDX,R12
XOR ECX,ECX
XOR R8D,R8D
PUSH R15
PUSH 0x4
CALL 0x00133566
ADD RSP,0x10
MOV R12,RAX
MOV dword ptr [R15 + 0x8],0x6
TEST RAX,RAX
SETNZ byte ptr [R15 + 0x10]
LEA RDI,[RBX + 0x2e8]
MOV RSI,R15
CALL 0x00192af2
TEST R12,R12
JZ 0x0015e09b
LEA RCX,[RBX + 0x80]
MOVZX ESI,word ptr [R12 + 0xa]
MOV dword ptr [RBP + -0x2c],ESI
MOVZX R13D,R13B
ADD R14,R12
LEA EAX,[R13*0x4]
SUB R14,RAX
LEA R15,[R14 + -0x8]
MOVZX EAX,word ptr [R14 + -0x6]
ADD EAX,ESI
CMP qword ptr [RBX + 0x1d0],RAX
JBE 0x0015e0ac
MOV qword ptr [RBP + -0x50],RSI
MOV qword ptr [RBP + -0x80],R15
MOV qword ptr [RBP + -0x48],R12
MOV R12,RCX
MOV RSI,qword ptr [RBX + 0xa8]
CMP qword ptr [RSI],0x0
JZ 0x0015dfac
MOV RDI,RBX
CALL 0x0015e690
TEST AL,AL
JNZ 0x0015e0fa
LAB_0015dfac:
CMP dword ptr [RBX + 0x12c],0x0
JZ 0x0015dfc8
MOV RDI,RBX
MOV RSI,R12
CALL 0x0015e6f7
TEST AL,AL
JNZ 0x0015e0fa
LAB_0015dfc8:
MOVZX R15D,word ptr [R14 + -0x6]
MOV RAX,qword ptr [RBP + -0x50]
LEA ECX,[R15 + RAX*0x1]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x70]
MOV R8,R12
CALL 0x00141ca8
TEST AL,AL
JNZ 0x0015e0fa
CMP dword ptr [RBX + 0x1f8],R15D
MOV RCX,qword ptr [RBP + -0x50]
JA 0x0015e009
MOV EAX,R15D
CMP qword ptr [RBX + 0x1d0],RAX
JA 0x0015e037
LAB_0015e009:
MOV RAX,qword ptr [RBX + 0x8]
MOV R8,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x78]
MOV R9D,dword ptr [RDI + 0x3b8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,R13D
MOV ECX,0x1
CALL 0x0015d050
MOVZX R15D,word ptr [R14 + -0x6]
XOR ECX,ECX
LAB_0015e037:
LEA RAX,[RBP + -0xa8]
MOV RDX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX],RDX
MOV dword ptr [RAX + 0x1c],R13D
ADD ECX,R15D
MOV dword ptr [RAX + 0x20],ECX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX + 0x10],RCX
MOVZX ECX,word ptr [RCX]
ADD RDX,RCX
MOV qword ptr [RAX + 0x8],RDX
MOV dword ptr [RAX + 0x18],R15D
SUB RSP,0x8
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,R12
MOV R9D,0x1
PUSH qword ptr [RBP + -0x68]
PUSH 0x1
PUSH RAX
CALL 0x001621ce
ADD RSP,0x20
TEST AL,AL
JNZ 0x0015e0fa
XOR EAX,EAX
JMP 0x0015e12b
LAB_0015e09b:
CALL 0x001a2a4e
MOV ESI,dword ptr [RAX]
MOV RDI,RBX
CALL 0x00137978
JMP 0x0015e0fa
LAB_0015e0ac:
MOV R14,RCX
MOV RDI,qword ptr [RBP + -0x78]
ADD RDI,0xa10
CALL 0x001411ae
MOV byte ptr [RBP + -0xab],AL
MOV R8D,dword ptr [RBX + 0x1d0]
SUB RSP,0x8
LEA RAX,[RBP + -0x3c]
LEA R10,[RBP + -0x40]
LEA R9,[RBP + -0x2c]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
PUSH 0x1
PUSH RAX
PUSH R10
CALL 0x001605be
ADD RSP,0x20
TEST AL,AL
JZ 0x0015e13d
LAB_0015e0fa:
CMP dword ptr [RBX + 0x644],0x0
JZ 0x0015e110
MOV RDI,RBX
MOV ESI,0xffffffff
CALL 0x00142619
LAB_0015e110:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0015a724
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x90],0x0
MOV AL,0x1
LAB_0015e12b:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015e13d:
MOV qword ptr [RBP + -0xa8],R12
MOV dword ptr [RBP + -0x8c],R13D
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x88],EAX
MOV qword ptr [RBP + -0x98],R15
MOV ECX,dword ptr [RBP + -0x40]
ADD R12,RCX
MOV qword ptr [RBP + -0xa0],R12
MOV ECX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x90],ECX
LEA RCX,[RBP + -0xc0]
MOV qword ptr [RBX + 0x80],RCX
MOV EDX,0x1
MOV dword ptr [RBX + 0x88],EDX
MOV RSI,qword ptr [RBP + -0x70]
MOV qword ptr [RCX],RSI
MOV dword ptr [RCX + 0x10],EDX
MOV byte ptr [RCX + 0x14],0x3
MOV dword ptr [RCX + 0xc],EAX
MOV RSI,qword ptr [RBX + 0xa8]
CMP qword ptr [RSI],0x0
JZ 0x0015e1b8
MOV RDI,RBX
CALL 0x0015e690
TEST AL,AL
JNZ 0x0015e0fa
LAB_0015e1b8:
CMP dword ptr [RBX + 0x12c],0x0
JZ 0x0015e1d4
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015e6f7
TEST AL,AL
JNZ 0x0015e0fa
LAB_0015e1d4:
SUB RSP,0x8
LEA RAX,[RBP + -0xa8]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,R14
MOV R9D,0x1
PUSH qword ptr [RBP + -0x68]
PUSH 0x1
PUSH RAX
CALL 0x001621ce
ADD RSP,0x20
AND byte ptr [RBX + 0x624],0xfd
JMP 0x0015e12b
|
int8
_ma_update_block_record(long *param_1,ulong param_2,int8 param_3,int8 param_4)
{
ushort *puVar1;
long *plVar2;
ushort uVar3;
uint uVar4;
int iVar5;
char cVar6;
long lVar7;
int4 *puVar8;
int8 uVar9;
int iVar10;
long lVar11;
int1 local_e0 [8];
int4 local_d8;
int1 local_d0;
ulong local_c8;
uint local_bc;
int4 local_b8;
int1 local_b4;
int1 local_b3;
long local_b0;
long local_a8;
ushort *local_a0;
uint local_98;
int local_94;
uint local_90;
ushort *local_88;
long local_80;
ulong local_78;
ulong local_70;
int8 local_68;
int8 local_60;
ulong local_58;
long local_50;
uint local_48;
uint local_44;
long *local_40;
uint local_34;
local_40 = param_1 + 0x28;
lVar7 = *param_1;
uVar4 = *(uint *)(lVar7 + 0x7bc);
local_70 = (ulong)*(uint *)(param_1 + 0x2e);
*(int *)(param_1 + 0x2e) = (int)param_1[0x16];
local_68 = param_4;
local_60 = param_3;
calc_record_size(param_1,param_4);
_ma_bitmap_flushable(param_1,1);
local_80 = lVar7;
local_78 = param_2 >> 8;
lVar7 = pagecache_read(*(int8 *)(lVar7 + 0x600),param_1 + 0x8e,param_2 >> 8,0,0,
*(int4 *)(lVar7 + 0x7d4),4,local_e0);
local_d8 = 6;
local_d0 = lVar7 != 0;
insert_dynamic(param_1 + 0x5d,local_e0);
if (lVar7 == 0) {
puVar8 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar8);
}
else {
plVar2 = param_1 + 0x10;
uVar3 = *(ushort *)(lVar7 + 10);
local_34 = (uint)uVar3;
param_2 = param_2 & 0xff;
iVar5 = (int)param_2;
lVar11 = ((ulong)uVar4 + lVar7) - (ulong)(uint)(iVar5 * 4);
puVar1 = (ushort *)(lVar11 + -8);
if ((ulong)(*(ushort *)(lVar11 + -6) + local_34) < (ulong)param_1[0x3a]) {
local_88 = puVar1;
local_58 = (ulong)uVar3;
local_50 = lVar7;
if (((*(long *)param_1[0x15] == 0) || (cVar6 = delete_tails(param_1), cVar6 == '\0')) &&
((*(int *)((long)param_1 + 300) == 0 ||
(cVar6 = free_full_pages(param_1,plVar2), cVar6 == '\0')))) {
uVar3 = *(ushort *)(lVar11 + -6);
cVar6 = _ma_bitmap_find_new_place
(param_1,local_40,local_78,(uint)uVar3 + (int)local_58,plVar2);
if (cVar6 == '\0') {
iVar10 = (int)local_58;
if (((uint)uVar3 < *(uint *)(param_1 + 0x3f)) || ((ulong)param_1[0x3a] <= (ulong)uVar3)) {
_ma_compact_block_page
(local_80,local_50,param_2,1,*(int8 *)(param_1[1] + 0x80),
*(int4 *)(local_80 + 0x3b8));
uVar3 = *(ushort *)(lVar11 + -6);
iVar10 = 0;
}
local_98 = (uint)uVar3;
local_b0 = local_50;
local_90 = iVar10 + local_98;
local_a0 = local_88;
local_a8 = local_50 + (ulong)*local_88;
local_94 = iVar5;
cVar6 = write_block_record(param_1,local_60,local_68,local_40,plVar2,1,&local_b0,1,
local_70);
if (cVar6 == '\0') {
return 0;
}
}
}
}
else {
local_b3 = _ma_free_size_to_head_pattern(local_80 + 0xa10);
cVar6 = extend_area_on_page(param_1,lVar7,puVar1,param_2,(int)param_1[0x3a],&local_34,
&local_48,&local_44,1);
if (cVar6 == '\0') {
local_90 = local_34;
local_a8 = lVar7 + (ulong)local_48;
local_98 = local_44;
param_1[0x10] = (long)&local_c8;
*(int4 *)(param_1 + 0x11) = 1;
local_c8 = local_78;
local_b8 = 1;
local_b4 = 3;
local_bc = local_34;
local_b0 = lVar7;
local_a0 = puVar1;
local_94 = iVar5;
if (((*(long *)param_1[0x15] == 0) || (cVar6 = delete_tails(param_1), cVar6 == '\0')) &&
((*(int *)((long)param_1 + 300) == 0 ||
(cVar6 = free_full_pages(param_1,plVar2), cVar6 == '\0')))) {
uVar9 = write_block_record(param_1,local_60,local_68,local_40,plVar2,1,&local_b0,1,
local_70);
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) & 0xfd;
return uVar9;
}
}
}
}
if (*(int *)((long)param_1 + 0x644) != 0) {
_ma_bitmap_flushable(param_1,0xffffffff);
}
_ma_unpin_all_pages(param_1,0);
lVar7 = param_1[1];
*(int8 *)(lVar7 + 0x90) = 0;
return CONCAT71((int7)((ulong)lVar7 >> 8),1);
}
| |
24,648 | mi_keyseg_write | eloqsql/storage/myisam/mi_open.c | int mi_keyseg_write(File file, const HA_KEYSEG *keyseg)
{
uchar buff[HA_KEYSEG_SIZE];
uchar *ptr=buff;
ulong pos;
*ptr++= keyseg->type;
*ptr++= keyseg->language & 0xFF; /* Collation ID, low byte */
*ptr++= keyseg->null_bit;
*ptr++= keyseg->bit_start;
*ptr++= keyseg->language >> 8; /* Collation ID, high byte */
*ptr++= keyseg->bit_length;
mi_int2store(ptr,keyseg->flag); ptr+=2;
mi_int2store(ptr,keyseg->length); ptr+=2;
mi_int4store(ptr,keyseg->start); ptr+=4;
pos= keyseg->null_bit ? keyseg->null_pos : keyseg->bit_pos;
mi_int4store(ptr, pos);
ptr+=4;
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
} | O0 | c | mi_keyseg_write:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x24(%rbp)
movq %rsi, -0x30(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movb 0x18(%rax), %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movzwl 0x16(%rax), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movb 0x19(%rax), %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movb 0x1a(%rax), %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movzwl 0x16(%rax), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movb 0x1b(%rax), %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movq -0x30(%rbp), %rax
movzwl 0x12(%rax), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x44(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x14(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x48(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x50(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, (%rax)
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x19(%rax), %eax
cmpl $0x0, %eax
je 0x45203
movq -0x30(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x5c(%rbp)
jmp 0x4520e
movq -0x30(%rbp), %rax
movzwl 0x10(%rax), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, %eax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movb -0x58(%rbp), %cl
movq -0x38(%rbp), %rax
movb %cl, 0x3(%rax)
movb -0x57(%rbp), %cl
movq -0x38(%rbp), %rax
movb %cl, 0x2(%rax)
movb -0x56(%rbp), %cl
movq -0x38(%rbp), %rax
movb %cl, 0x1(%rax)
movb -0x55(%rbp), %cl
movq -0x38(%rbp), %rax
movb %cl, (%rax)
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x38(%rbp)
movl -0x24(%rbp), %edx
movq -0x38(%rbp), %r8
leaq -0x20(%rbp), %rcx
subq %rcx, %r8
leaq 0x96e97(%rip), %rdi # 0xdc0fe
movl $0x4a2, %esi # imm = 0x4A2
movl $0x4, %r9d
callq 0x44160
testq %rax, %rax
setne %al
movzbl %al, %eax
movl %eax, -0x60(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x4529e
movl -0x60(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
callq 0x283c0
nopw %cs:(%rax,%rax)
| mi_keyseg_write:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_24], edi
mov [rbp+var_30], rsi
lea rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov cl, [rax+18h]
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+16h]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
mov cl, [rax+19h]
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
mov cl, [rax+1Ah]
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+16h]
sar eax, 8
mov cl, al
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
mov cl, [rax+1Bh]
mov rax, [rbp+var_38]
mov rdx, rax
add rdx, 1
mov [rbp+var_38], rdx
mov [rax], cl
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+12h]
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
mov cl, al
mov rax, [rbp+var_38]
mov [rax+1], cl
mov eax, [rbp+var_44]
shr eax, 8
mov cl, al
mov rax, [rbp+var_38]
mov [rax], cl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+14h]
mov [rbp+var_48], eax
mov eax, [rbp+var_48]
mov cl, al
mov rax, [rbp+var_38]
mov [rax+1], cl
mov eax, [rbp+var_48]
shr eax, 8
mov cl, al
mov rax, [rbp+var_38]
mov [rax], cl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov eax, [rax+8]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov cl, al
mov rax, [rbp+var_38]
mov [rax+3], cl
mov rax, [rbp+var_50]
shr rax, 8
mov cl, al
mov rax, [rbp+var_38]
mov [rax+2], cl
mov rax, [rbp+var_50]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_38]
mov [rax+1], cl
mov rax, [rbp+var_50]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_38]
mov [rax], cl
mov rax, [rbp+var_38]
add rax, 4
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+19h]
cmp eax, 0
jz short loc_45203
mov rax, [rbp+var_30]
mov eax, [rax+0Ch]
mov [rbp+var_5C], eax
jmp short loc_4520E
loc_45203:
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+10h]
mov [rbp+var_5C], eax
loc_4520E:
mov eax, [rbp+var_5C]
mov eax, eax
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_58], rax
mov cl, byte ptr [rbp+var_58]
mov rax, [rbp+var_38]
mov [rax+3], cl
mov cl, byte ptr [rbp+var_58+1]
mov rax, [rbp+var_38]
mov [rax+2], cl
mov cl, byte ptr [rbp+var_58+2]
mov rax, [rbp+var_38]
mov [rax+1], cl
mov cl, byte ptr [rbp+var_58+3]
mov rax, [rbp+var_38]
mov [rax], cl
mov rax, [rbp+var_38]
add rax, 4
mov [rbp+var_38], rax
mov edx, [rbp+var_24]
mov r8, [rbp+var_38]
lea rcx, [rbp+var_20]
sub r8, rcx
lea rdi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 4A2h
mov r9d, 4
call inline_mysql_file_write_0
test rax, rax
setnz al
movzx eax, al
mov [rbp+var_60], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_4529E
mov eax, [rbp+var_60]
add rsp, 60h
pop rbp
retn
loc_4529E:
call ___stack_chk_fail
| _BOOL8 mi_keyseg_write(unsigned int a1, long long a2)
{
__int16 v2; // kr00_2
__int16 v3; // kr02_2
int v5; // [rsp+4h] [rbp-5Ch]
int v6; // [rsp+10h] [rbp-50h]
_BYTE v7[18]; // [rsp+40h] [rbp-20h] BYREF
_BYTE v8[14]; // [rsp+52h] [rbp-Eh] BYREF
*(_QWORD *)&v8[6] = __readfsqword(0x28u);
v7[0] = *(_BYTE *)(a2 + 24);
v7[1] = *(_WORD *)(a2 + 22);
v7[2] = *(_BYTE *)(a2 + 25);
v7[3] = *(_BYTE *)(a2 + 26);
v7[4] = HIBYTE(*(_WORD *)(a2 + 22));
v7[5] = *(_BYTE *)(a2 + 27);
v2 = *(_WORD *)(a2 + 18);
v7[6] = HIBYTE(v2);
v7[7] = v2;
v3 = *(_WORD *)(a2 + 20);
v7[8] = HIBYTE(v3);
v7[9] = v3;
v6 = *(_DWORD *)(a2 + 8);
v7[12] = BYTE1(v6);
v7[13] = v6;
v7[10] = HIBYTE(v6);
v7[11] = BYTE2(v6);
if ( *(_BYTE *)(a2 + 25) )
v5 = *(_DWORD *)(a2 + 12);
else
v5 = *(unsigned __int16 *)(a2 + 16);
v7[16] = BYTE1(v5);
v7[17] = v5;
v7[14] = HIBYTE(v5);
v7[15] = BYTE2(v5);
return inline_mysql_file_write_0(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x4A2u,
a1,
(long long)v7,
v8 - v7,
4LL) != 0;
}
| mi_keyseg_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x24],EDI
MOV qword ptr [RBP + -0x30],RSI
LEA RAX,[RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,byte ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x16]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,byte ptr [RAX + 0x19]
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,byte ptr [RAX + 0x1a]
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x16]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,byte ptr [RAX + 0x1b]
MOV RAX,qword ptr [RBP + -0x38]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x38],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x12]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x44]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x48],EAX
MOV EAX,dword ptr [RBP + -0x48]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x48]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x19]
CMP EAX,0x0
JZ 0x00145203
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x0014520e
LAB_00145203:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x5c],EAX
LAB_0014520e:
MOV EAX,dword ptr [RBP + -0x5c]
MOV EAX,EAX
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x58],RAX
MOV CL,byte ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x3],CL
MOV CL,byte ptr [RBP + -0x57]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x2],CL
MOV CL,byte ptr [RBP + -0x56]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],CL
MOV CL,byte ptr [RBP + -0x55]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV qword ptr [RBP + -0x38],RAX
MOV EDX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x38]
LEA RCX,[RBP + -0x20]
SUB R8,RCX
LEA RDI,[0x1dc0fe]
MOV ESI,0x4a2
MOV R9D,0x4
CALL 0x00144160
TEST RAX,RAX
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [RBP + -0x60],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0014529e
MOV EAX,dword ptr [RBP + -0x60]
ADD RSP,0x60
POP RBP
RET
LAB_0014529e:
CALL 0x001283c0
|
bool mi_keyseg_write(int4 param_1,long param_2)
{
int4 uVar1;
long lVar2;
long in_FS_OFFSET;
uint local_64;
int1 local_60;
int1 uStack_5f;
int1 uStack_5e;
int1 uStack_5d;
int1 local_28;
int1 local_27;
int1 local_26;
int1 local_25;
int1 local_24;
int1 local_23;
int1 local_22;
int1 local_21;
int1 local_20;
int1 local_1f;
int1 local_1e;
int1 local_1d;
int1 local_1c;
int1 local_1b;
int1 local_1a;
int1 local_19;
int1 local_18;
int1 local_17;
int1 auStack_16 [6];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_28 = *(int1 *)(param_2 + 0x18);
local_27 = (int1)*(int2 *)(param_2 + 0x16);
local_26 = *(int1 *)(param_2 + 0x19);
local_25 = *(int1 *)(param_2 + 0x1a);
local_24 = (int1)((ushort)*(int2 *)(param_2 + 0x16) >> 8);
local_23 = *(int1 *)(param_2 + 0x1b);
local_21 = (int1)*(int2 *)(param_2 + 0x12);
local_22 = (int1)((ushort)*(int2 *)(param_2 + 0x12) >> 8);
local_1f = (int1)*(int2 *)(param_2 + 0x14);
local_20 = (int1)((ushort)*(int2 *)(param_2 + 0x14) >> 8);
uVar1 = *(int4 *)(param_2 + 8);
local_1b = (int1)uVar1;
local_1c = (int1)((uint)uVar1 >> 8);
local_1d = (int1)((uint)uVar1 >> 0x10);
local_1e = (int1)((uint)uVar1 >> 0x18);
if (*(char *)(param_2 + 0x19) == '\0') {
local_64 = (uint)*(ushort *)(param_2 + 0x10);
}
else {
local_64 = *(uint *)(param_2 + 0xc);
}
local_60 = (int1)local_64;
local_17 = local_60;
uStack_5f = (int1)(local_64 >> 8);
local_18 = uStack_5f;
uStack_5e = (int1)(local_64 >> 0x10);
local_19 = uStack_5e;
uStack_5d = (int1)(local_64 >> 0x18);
local_1a = uStack_5d;
lVar2 = inline_mysql_file_write
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x4a2,
param_1,&local_28,auStack_16 + -(long)&local_28,4);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return lVar2 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
24,649 | MyCTX_nopad::finish(unsigned char*, unsigned int*) | eloqsql/mysys_ssl/my_crypt.cc | int finish(uchar *dst, uint *dlen)
{
if (source_tail_len)
{
/*
Not much we can do, block ciphers cannot encrypt data that aren't
a multiple of the block length. At least not without padding.
Let's do something CTR-like for the last partial block.
*/
uchar mask[MY_AES_BLOCK_SIZE];
uint mlen;
int rc= my_aes_crypt(MY_AES_ECB, ENCRYPTION_FLAG_ENCRYPT | ENCRYPTION_FLAG_NOPAD,
oiv, sizeof(mask), mask, &mlen, key, klen, 0, 0);
DBUG_ASSERT(rc == MY_AES_OK);
if (rc)
return rc;
DBUG_ASSERT(mlen == sizeof(mask));
for (uint i=0; i < source_tail_len; i++)
dst[i]= source_tail[i] ^ mask[i];
}
*dlen= source_tail_len;
return MY_AES_OK;
} | O0 | cpp | MyCTX_nopad::finish(unsigned char*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpl $0x0, 0xdc(%rax)
je 0xdd678
movq -0x58(%rbp), %rax
movq %rax, %rdx
addq $0xe0, %rdx
leaq -0x20(%rbp), %r8
movq 0xd0(%rax), %r10
movl 0xd8(%rax), %eax
xorl %edi, %edi
movl $0x3, %esi
movl $0x10, %ecx
leaq -0x44(%rbp), %r9
xorl %r11d, %r11d
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
callq 0xdcca0
movl %eax, -0x48(%rbp)
jmp 0xdd61e
cmpl $0x0, -0x48(%rbp)
je 0xdd62c
movl -0x48(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0xdd68f
jmp 0xdd62e
jmp 0xdd630
movl $0x0, -0x4c(%rbp)
movq -0x58(%rbp), %rcx
movl -0x4c(%rbp), %eax
cmpl 0xdc(%rcx), %eax
jae 0xdd676
movq -0x58(%rbp), %rax
movl -0x4c(%rbp), %ecx
movzbl 0xf0(%rax,%rcx), %eax
movl -0x4c(%rbp), %ecx
movzbl -0x20(%rbp,%rcx), %ecx
xorl %ecx, %eax
movb %al, %dl
movq -0x38(%rbp), %rax
movl -0x4c(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0xdd637
jmp 0xdd678
movq -0x58(%rbp), %rax
movl 0xdc(%rax), %ecx
movq -0x40(%rbp), %rax
movl %ecx, (%rax)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xdd6b3
movl -0x5c(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
callq 0x2a260
nopl (%rax,%rax)
| _ZN11MyCTX_nopad6finishEPhPj:
push rbp
mov rbp, rsp
sub rsp, 80h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_30], rdi
mov [rbp+var_38], rsi
mov [rbp+var_40], rdx
mov rax, [rbp+var_30]
mov [rbp+var_58], rax
cmp dword ptr [rax+0DCh], 0
jz loc_DD678
mov rax, [rbp+var_58]
mov rdx, rax
add rdx, 0E0h
lea r8, [rbp+var_20]
mov r10, [rax+0D0h]
mov eax, [rax+0D8h]
xor edi, edi
mov esi, 3
mov ecx, 10h
lea r9, [rbp+var_44]
xor r11d, r11d
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], eax
mov [rsp+80h+var_70], 0
mov [rsp+80h+var_68], 0
call my_aes_crypt
mov [rbp+var_48], eax
jmp short $+2
loc_DD61E:
cmp [rbp+var_48], 0
jz short loc_DD62C
mov eax, [rbp+var_48]
mov [rbp+var_24], eax
jmp short loc_DD68F
loc_DD62C:
jmp short $+2
loc_DD62E:
jmp short $+2
loc_DD630:
mov [rbp+var_4C], 0
loc_DD637:
mov rcx, [rbp+var_58]
mov eax, [rbp+var_4C]
cmp eax, [rcx+0DCh]
jnb short loc_DD676
mov rax, [rbp+var_58]
mov ecx, [rbp+var_4C]
movzx eax, byte ptr [rax+rcx+0F0h]
mov ecx, [rbp+var_4C]
movzx ecx, [rbp+rcx+var_20]
xor eax, ecx
mov dl, al
mov rax, [rbp+var_38]
mov ecx, [rbp+var_4C]
mov [rax+rcx], dl
mov eax, [rbp+var_4C]
add eax, 1
mov [rbp+var_4C], eax
jmp short loc_DD637
loc_DD676:
jmp short $+2
loc_DD678:
mov rax, [rbp+var_58]
mov ecx, [rax+0DCh]
mov rax, [rbp+var_40]
mov [rax], ecx
mov [rbp+var_24], 0
loc_DD68F:
mov eax, [rbp+var_24]
mov [rbp+var_5C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_DD6B3
mov eax, [rbp+var_5C]
add rsp, 80h
pop rbp
retn
loc_DD6B3:
call ___stack_chk_fail
| long long MyCTX_nopad::finish(MyCTX_nopad *this, unsigned __int8 *a2, unsigned int *a3)
{
unsigned int i; // [rsp+34h] [rbp-4Ch]
unsigned int v5; // [rsp+38h] [rbp-48h]
int v6; // [rsp+3Ch] [rbp-44h] BYREF
unsigned int *v7; // [rsp+40h] [rbp-40h]
unsigned __int8 *v8; // [rsp+48h] [rbp-38h]
MyCTX_nopad *v9; // [rsp+50h] [rbp-30h]
_BYTE v11[24]; // [rsp+60h] [rbp-20h] BYREF
unsigned long long v12; // [rsp+78h] [rbp-8h]
v12 = __readfsqword(0x28u);
v9 = this;
v8 = a2;
v7 = a3;
if ( !*((_DWORD *)this + 55) )
goto LABEL_7;
v5 = my_aes_crypt(
0,
3,
(long long)this + 224,
0x10u,
(long long)v11,
&v6,
*((_QWORD *)this + 26),
*((_DWORD *)this + 54),
0LL,
0);
if ( !v5 )
{
for ( i = 0; i < *((_DWORD *)this + 55); ++i )
v8[i] = v11[i] ^ *((_BYTE *)this + i + 240);
LABEL_7:
*v7 = *((_DWORD *)this + 55);
return 0;
}
return v5;
}
| finish:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x38],RSI
MOV qword ptr [RBP + -0x40],RDX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
CMP dword ptr [RAX + 0xdc],0x0
JZ 0x001dd678
MOV RAX,qword ptr [RBP + -0x58]
MOV RDX,RAX
ADD RDX,0xe0
LEA R8,[RBP + -0x20]
MOV R10,qword ptr [RAX + 0xd0]
MOV EAX,dword ptr [RAX + 0xd8]
XOR EDI,EDI
MOV ESI,0x3
MOV ECX,0x10
LEA R9,[RBP + -0x44]
XOR R11D,R11D
MOV qword ptr [RSP],R10
MOV dword ptr [RSP + 0x8],EAX
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x0
CALL 0x001dcca0
MOV dword ptr [RBP + -0x48],EAX
JMP 0x001dd61e
LAB_001dd61e:
CMP dword ptr [RBP + -0x48],0x0
JZ 0x001dd62c
MOV EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x001dd68f
LAB_001dd62c:
JMP 0x001dd62e
LAB_001dd62e:
JMP 0x001dd630
LAB_001dd630:
MOV dword ptr [RBP + -0x4c],0x0
LAB_001dd637:
MOV RCX,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RBP + -0x4c]
CMP EAX,dword ptr [RCX + 0xdc]
JNC 0x001dd676
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x4c]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0xf0]
MOV ECX,dword ptr [RBP + -0x4c]
MOVZX ECX,byte ptr [RBP + RCX*0x1 + -0x20]
XOR EAX,ECX
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x4c]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x001dd637
LAB_001dd676:
JMP 0x001dd678
LAB_001dd678:
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RAX + 0xdc]
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x24],0x0
LAB_001dd68f:
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001dd6b3
MOV EAX,dword ptr [RBP + -0x5c]
ADD RSP,0x80
POP RBP
RET
LAB_001dd6b3:
CALL 0x0012a260
|
/* MyCTX_nopad::finish(unsigned char*, unsigned int*) */
int __thiscall MyCTX_nopad::finish(MyCTX_nopad *this,uchar *param_1,uint *param_2)
{
long in_FS_OFFSET;
uint local_54;
int1 local_4c [4];
uint *local_48;
uchar *local_40;
MyCTX_nopad *local_38;
int local_2c;
byte local_28 [24];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_48 = param_2;
local_40 = param_1;
local_38 = this;
if (*(int *)(this + 0xdc) != 0) {
local_2c = my_aes_crypt(0,3,this + 0xe0,0x10,local_28,local_4c,*(int8 *)(this + 0xd0),
*(int4 *)(this + 0xd8),0,0);
if (local_2c != 0) goto LAB_001dd68f;
for (local_54 = 0; local_54 < *(uint *)(this + 0xdc); local_54 = local_54 + 1) {
local_40[local_54] = (byte)this[(ulong)local_54 + 0xf0] ^ local_28[local_54];
}
}
*local_48 = *(uint *)(this + 0xdc);
local_2c = 0;
LAB_001dd68f:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_2c;
}
| |
24,650 | my_uca_coll_init_utf8mb4 | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_coll_init_utf8mb4(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb4,
&my_uca_package_no_contractions_utf8mb4);
return FALSE;
} | O3 | c | my_uca_coll_init_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4e244
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x50f55
movzbl 0xb2(%rbx), %ecx
testq %rcx, %rcx
je 0x50f04
movq 0x60(%rbx), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
cmpq $0x0, 0x18(%rax,%rdx)
jne 0x50f53
addq $0x38, %rdx
cmpq %rdx, %rcx
jne 0x50ef3
movq 0xc0(%rbx), %rcx
leaq 0x30543e(%rip), %rdx # 0x356350
cmpq (%rdx), %rcx
je 0x50f36
leaq 0x305452(%rip), %rax # 0x356370
cmpq 0x8(%rdx), %rcx
je 0x50f3f
cmpq 0x10(%rdx), %rcx
je 0x50f45
cmpq 0x18(%rdx), %rcx
jne 0x50f53
addq $0x18, %rax
jmp 0x50f49
leaq 0x305433(%rip), %rax # 0x356370
jmp 0x50f49
addq $0x8, %rax
jmp 0x50f49
addq $0x10, %rax
movq (%rax), %rax
movq %rax, 0xc0(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| my_uca_coll_init_utf8mb4:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
call my_coll_init_uca
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_50F55
movzx ecx, byte ptr [rbx+0B2h]
test rcx, rcx
jz short loc_50F04
mov rax, [rbx+60h]
imul rcx, 38h ; '8'
xor edx, edx
loc_50EF3:
cmp qword ptr [rax+rdx+18h], 0
jnz short loc_50F53
add rdx, 38h ; '8'
cmp rcx, rdx
jnz short loc_50EF3
loc_50F04:
mov rcx, [rbx+0C0h]
lea rdx, my_uca_package_utf8mb4
cmp rcx, [rdx]
jz short loc_50F36
lea rax, my_uca_package_no_contractions_utf8mb4
cmp rcx, [rdx+8]
jz short loc_50F3F
cmp rcx, [rdx+10h]
jz short loc_50F45
cmp rcx, [rdx+18h]
jnz short loc_50F53
add rax, 18h
jmp short loc_50F49
loc_50F36:
lea rax, my_uca_package_no_contractions_utf8mb4
jmp short loc_50F49
loc_50F3F:
add rax, 8
jmp short loc_50F49
loc_50F45:
add rax, 10h
loc_50F49:
mov rax, [rax]
mov [rbx+0C0h], rax
loc_50F53:
xor eax, eax
loc_50F55:
add rsp, 8
pop rbx
pop rbp
retn
| char my_uca_coll_init_utf8mb4(
long long a1,
long long ( **a2)(unsigned long long, unsigned long long, const char *))
{
char inited; // cl
char result; // al
long long v4; // rdx
long long ( **v5)(); // rcx
long long ( ***v6)(); // rax
inited = my_coll_init_uca(a1, a2);
result = 1;
if ( !inited )
{
if ( *(_BYTE *)(a1 + 178) )
{
v4 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a1 + 96) + v4 + 24) )
{
v4 += 56LL;
if ( 56LL * *(unsigned __int8 *)(a1 + 178) == v4 )
goto LABEL_6;
}
return 0;
}
LABEL_6:
v5 = *(long long ( ***)())(a1 + 192);
if ( v5 == my_uca_package_utf8mb4[0] )
{
v6 = my_uca_package_no_contractions_utf8mb4;
}
else if ( v5 == my_uca_package_utf8mb4[1] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[1];
}
else if ( v5 == my_uca_package_utf8mb4[2] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[2];
}
else
{
if ( v5 != my_uca_package_utf8mb4[3] )
return 0;
v6 = &my_uca_package_no_contractions_utf8mb4[3];
}
*(_QWORD *)(a1 + 192) = *v6;
return 0;
}
return result;
}
| my_uca_coll_init_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x0014e244
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00150f55
MOVZX ECX,byte ptr [RBX + 0xb2]
TEST RCX,RCX
JZ 0x00150f04
MOV RAX,qword ptr [RBX + 0x60]
IMUL RCX,RCX,0x38
XOR EDX,EDX
LAB_00150ef3:
CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0
JNZ 0x00150f53
ADD RDX,0x38
CMP RCX,RDX
JNZ 0x00150ef3
LAB_00150f04:
MOV RCX,qword ptr [RBX + 0xc0]
LEA RDX,[0x456350]
CMP RCX,qword ptr [RDX]
JZ 0x00150f36
LEA RAX,[0x456370]
CMP RCX,qword ptr [RDX + 0x8]
JZ 0x00150f3f
CMP RCX,qword ptr [RDX + 0x10]
JZ 0x00150f45
CMP RCX,qword ptr [RDX + 0x18]
JNZ 0x00150f53
ADD RAX,0x18
JMP 0x00150f49
LAB_00150f36:
LEA RAX,[0x456370]
JMP 0x00150f49
LAB_00150f3f:
ADD RAX,0x8
JMP 0x00150f49
LAB_00150f45:
ADD RAX,0x10
LAB_00150f49:
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xc0],RAX
LAB_00150f53:
XOR EAX,EAX
LAB_00150f55:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 my_uca_coll_init_utf8mb4(long param_1)
{
int *puVar1;
char cVar2;
int **ppuVar3;
long lVar4;
cVar2 = my_coll_init_uca();
if (cVar2 != '\0') {
return 1;
}
if ((ulong)*(byte *)(param_1 + 0xb2) != 0) {
lVar4 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x60) + 0x18 + lVar4) != 0) {
return 0;
}
lVar4 = lVar4 + 0x38;
} while ((ulong)*(byte *)(param_1 + 0xb2) * 0x38 - lVar4 != 0);
}
puVar1 = *(int **)(param_1 + 0xc0);
if (puVar1 == my_uca_package_utf8mb4) {
ppuVar3 = &my_uca_package_no_contractions_utf8mb4;
}
else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb4_00456358) {
ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb4_00456378;
}
else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb4_00456360) {
ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb4_00456380;
}
else {
if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb4_00456368) {
return 0;
}
ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb4_00456388;
}
*(int **)(param_1 + 0xc0) = *ppuVar3;
return 0;
}
| |
24,651 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) | monkey531[P]llama/common/json.hpp | basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x642ce
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x3ce3c
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3ce3c
movq %r14, %rdi
xorl %esi, %esi
callq 0x3ce3c
movq %r14, %rdi
callq 0x49a2a
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add rsp, 18h
pop rbx
pop r14
retn
| char * ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
char *result; // rax
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
result = nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
(char *)v3,
a2);
*(_OWORD *)a1 = v3[0];
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void ***)v3);
return result;
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001642ce
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013ce3c
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0013ce3c
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013ce3c
MOV RDI,R14
CALL 0x00149a2a
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
local_20 = (data)0x0;
uStack_18 = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_1,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(&local_20);
return;
}
| |
24,652 | cs_leave | eloqsql/strings/ctype.c | static int cs_leave(MY_XML_PARSER *st,const char *attr, size_t len)
{
struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data;
const struct my_cs_file_section_st *s= cs_file_sec(attr,len);
int state= s ? s->state : 0;
int rc;
switch(state){
case _CS_COLLATION:
if (i->tailoring_length)
i->cs.tailoring= i->tailoring;
rc= i->loader->add_collation ? i->loader->add_collation(&i->cs) : MY_XML_OK;
break;
/* Rules: Logical Reset Positions */
case _CS_RESET_FIRST_NON_IGNORABLE:
rc= tailoring_append(st, "[first non-ignorable]", 0, NULL);
break;
case _CS_RESET_LAST_NON_IGNORABLE:
rc= tailoring_append(st, "[last non-ignorable]", 0, NULL);
break;
case _CS_RESET_FIRST_PRIMARY_IGNORABLE:
rc= tailoring_append(st, "[first primary ignorable]", 0, NULL);
break;
case _CS_RESET_LAST_PRIMARY_IGNORABLE:
rc= tailoring_append(st, "[last primary ignorable]", 0, NULL);
break;
case _CS_RESET_FIRST_SECONDARY_IGNORABLE:
rc= tailoring_append(st, "[first secondary ignorable]", 0, NULL);
break;
case _CS_RESET_LAST_SECONDARY_IGNORABLE:
rc= tailoring_append(st, "[last secondary ignorable]", 0, NULL);
break;
case _CS_RESET_FIRST_TERTIARY_IGNORABLE:
rc= tailoring_append(st, "[first tertiary ignorable]", 0, NULL);
break;
case _CS_RESET_LAST_TERTIARY_IGNORABLE:
rc= tailoring_append(st, "[last tertiary ignorable]", 0, NULL);
break;
case _CS_RESET_FIRST_TRAILING:
rc= tailoring_append(st, "[first trailing]", 0, NULL);
break;
case _CS_RESET_LAST_TRAILING:
rc= tailoring_append(st, "[last trailing]", 0, NULL);
break;
case _CS_RESET_FIRST_VARIABLE:
rc= tailoring_append(st, "[first variable]", 0, NULL);
break;
case _CS_RESET_LAST_VARIABLE:
rc= tailoring_append(st, "[last variable]", 0, NULL);
break;
default:
rc=MY_XML_OK;
}
return rc;
} | O3 | c | cs_leave:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq 0x140(%rdi), %rbx
leaq 0x29cff8(%rip), %r13 # 0x2f84f0
leaq 0x73e9(%rip), %r12 # 0x628e8
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x24160
testl %eax, %eax
jne 0x5b518
cmpb $0x0, (%r12,%r14)
je 0x5b536
movq 0x18(%r13), %r12
addq $0x10, %r13
testq %r12, %r12
jne 0x5b4ff
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%r13), %ecx
leal -0x191(%rcx), %eax
cmpl $0xb, %eax
ja 0x5b561
leaq 0x286830(%rip), %rcx # 0x2e1d7c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xa8bb(%rip), %rsi # 0x65e17
jmp 0x5b60c
cmpl $0x9, %ecx
jne 0x5b525
cmpq $0x0, 0x690(%rbx)
je 0x5b57e
movq 0x688(%rbx), %rax
movq %rax, 0x718(%rbx)
movq 0x7a8(%rbx), %rax
movq 0xa8(%rax), %rax
testq %rax, %rax
je 0x5b525
addq $0x6e0, %rbx # imm = 0x6E0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
leaq 0xa850(%rip), %rsi # 0x65e02
jmp 0x5b60c
leaq 0xa8c6(%rip), %rsi # 0x65e81
jmp 0x5b60c
leaq 0xa924(%rip), %rsi # 0x65ee8
jmp 0x5b60c
leaq 0xa87d(%rip), %rsi # 0x65e4a
jmp 0x5b60c
leaq 0xa890(%rip), %rsi # 0x65e66
jmp 0x5b60c
leaq 0xa8e8(%rip), %rsi # 0x65ec7
jmp 0x5b60c
leaq 0xa849(%rip), %rsi # 0x65e31
jmp 0x5b60c
leaq 0xa8ab(%rip), %rsi # 0x65e9c
jmp 0x5b60c
leaq 0xa8bc(%rip), %rsi # 0x65eb6
jmp 0x5b60c
leaq 0xa7e9(%rip), %rsi # 0x65dec
jmp 0x5b60c
leaq 0xa8cb(%rip), %rsi # 0x65ed7
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5be5c
| cs_leave:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, [rdi+140h]
lea r13, sec
lea r12, aIndexXml+6; "xml"
loc_5B4FF:
mov rdi, r15
mov rsi, r12
mov rdx, r14
call _strncmp
test eax, eax
jnz short loc_5B518
cmp byte ptr [r12+r14], 0
jz short loc_5B536
loc_5B518:
mov r12, [r13+18h]
add r13, 10h
test r12, r12
jnz short loc_5B4FF
loc_5B525:
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5B536:
mov ecx, [r13+0]
lea eax, [rcx-191h]; switch 12 cases
cmp eax, 0Bh
ja short def_5B553; jumptable 000000000005B553 default case
lea rcx, jpt_5B553
movsxd rax, ds:(jpt_5B553 - 2E1D7Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_5B555:
lea rsi, aFirstPrimaryIg; jumptable 000000000005B553 case 401
jmp loc_5B60C
def_5B553:
cmp ecx, 9; jumptable 000000000005B553 default case
jnz short loc_5B525
cmp qword ptr [rbx+690h], 0
jz short loc_5B57E
mov rax, [rbx+688h]
mov [rbx+718h], rax
loc_5B57E:
mov rax, [rbx+7A8h]
mov rax, [rax+0A8h]
test rax, rax
jz short loc_5B525
add rbx, 6E0h
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp rax
loc_5B5AB:
lea rsi, aLastNonIgnorab; jumptable 000000000005B553 case 412
jmp short loc_5B60C
loc_5B5B4:
lea rsi, aFirstTertiaryI; jumptable 000000000005B553 case 405
jmp short loc_5B60C
loc_5B5BD:
lea rsi, aLastVariable; jumptable 000000000005B553 case 410
jmp short loc_5B60C
loc_5B5C6:
lea rsi, aFirstSecondary; jumptable 000000000005B553 case 403
jmp short loc_5B60C
loc_5B5CF:
lea rsi, aLastSecondaryI; jumptable 000000000005B553 case 404
jmp short loc_5B60C
loc_5B5D8:
lea rsi, aLastTrailing; jumptable 000000000005B553 case 408
jmp short loc_5B60C
loc_5B5E1:
lea rsi, aLastPrimaryIgn; jumptable 000000000005B553 case 402
jmp short loc_5B60C
loc_5B5EA:
lea rsi, aLastTertiaryIg; jumptable 000000000005B553 case 406
jmp short loc_5B60C
loc_5B5F3:
lea rsi, aFirstTrailing; jumptable 000000000005B553 case 407
jmp short loc_5B60C
loc_5B5FC:
lea rsi, aFirstNonIgnora; jumptable 000000000005B553 case 411
jmp short loc_5B60C
loc_5B605:
lea rsi, aFirstVariable; jumptable 000000000005B553 case 409
loc_5B60C:
mov rdi, rbx
xor edx, edx
xor ecx, ecx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp tailoring_append
| long long cs_leave(long long a1, long long a2, long long a3, long long a4)
{
_QWORD *v5; // rbx
char *v6; // r13
char *v7; // r12
long long result; // rax
long long ( *v9)(_QWORD *); // rax
v5 = *(_QWORD **)(a1 + 320);
v6 = (char *)&sec;
v7 = "xml";
while ( (unsigned int)strncmp(a2, v7, a3, a4) || v7[a3] )
{
v7 = (char *)*((_QWORD *)v6 + 3);
v6 += 16;
if ( !v7 )
return 0LL;
}
switch ( *(_DWORD *)v6 )
{
case 0x191:
result = tailoring_append(v5, "[first primary ignorable]", 0LL, 0LL);
break;
case 0x192:
result = tailoring_append(v5, "[last primary ignorable]", 0LL, 0LL);
break;
case 0x193:
result = tailoring_append(v5, "[first secondary ignorable]", 0LL, 0LL);
break;
case 0x194:
result = tailoring_append(v5, "[last secondary ignorable]", 0LL, 0LL);
break;
case 0x195:
result = tailoring_append(v5, "[first tertiary ignorable]", 0LL, 0LL);
break;
case 0x196:
result = tailoring_append(v5, "[last tertiary ignorable]", 0LL, 0LL);
break;
case 0x197:
result = tailoring_append(v5, "[first trailing]", 0LL, 0LL);
break;
case 0x198:
result = tailoring_append(v5, "[last trailing]", 0LL, 0LL);
break;
case 0x199:
result = tailoring_append(v5, "[first variable]", 0LL, 0LL);
break;
case 0x19A:
result = tailoring_append(v5, "[last variable]", 0LL, 0LL);
break;
case 0x19B:
result = tailoring_append(v5, "[first non-ignorable]", 0LL, 0LL);
break;
case 0x19C:
result = tailoring_append(v5, "[last non-ignorable]", 0LL, 0LL);
break;
default:
if ( *(_DWORD *)v6 != 9 )
return 0LL;
if ( v5[210] )
v5[227] = v5[209];
v9 = *(long long ( **)(_QWORD *))(v5[245] + 168LL);
if ( !v9 )
return 0LL;
result = v9(v5 + 220);
break;
}
return result;
}
| cs_leave:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,qword ptr [RDI + 0x140]
LEA R13,[0x3f84f0]
LEA R12,[0x1628e8]
LAB_0015b4ff:
MOV RDI,R15
MOV RSI,R12
MOV RDX,R14
CALL 0x00124160
TEST EAX,EAX
JNZ 0x0015b518
CMP byte ptr [R12 + R14*0x1],0x0
JZ 0x0015b536
LAB_0015b518:
MOV R12,qword ptr [R13 + 0x18]
ADD R13,0x10
TEST R12,R12
JNZ 0x0015b4ff
LAB_0015b525:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015b536:
MOV ECX,dword ptr [R13]
LEA EAX,[RCX + -0x191]
CMP EAX,0xb
JA 0x0015b561
LEA RCX,[0x3e1d7c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_191:
LEA RSI,[0x165e17]
JMP 0x0015b60c
LAB_0015b561:
CMP ECX,0x9
JNZ 0x0015b525
CMP qword ptr [RBX + 0x690],0x0
JZ 0x0015b57e
MOV RAX,qword ptr [RBX + 0x688]
MOV qword ptr [RBX + 0x718],RAX
LAB_0015b57e:
MOV RAX,qword ptr [RBX + 0x7a8]
MOV RAX,qword ptr [RAX + 0xa8]
TEST RAX,RAX
JZ 0x0015b525
ADD RBX,0x6e0
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP RAX
caseD_19c:
LEA RSI,[0x165e02]
JMP 0x0015b60c
caseD_195:
LEA RSI,[0x165e81]
JMP 0x0015b60c
caseD_19a:
LEA RSI,[0x165ee8]
JMP 0x0015b60c
caseD_193:
LEA RSI,[0x165e4a]
JMP 0x0015b60c
caseD_194:
LEA RSI,[0x165e66]
JMP 0x0015b60c
caseD_198:
LEA RSI,[0x165ec7]
JMP 0x0015b60c
caseD_192:
LEA RSI,[0x165e31]
JMP 0x0015b60c
caseD_196:
LEA RSI,[0x165e9c]
JMP 0x0015b60c
caseD_197:
LEA RSI,[0x165eb6]
JMP 0x0015b60c
caseD_19b:
LEA RSI,[0x165dec]
JMP 0x0015b60c
caseD_199:
LEA RSI,[0x165ed7]
LAB_0015b60c:
MOV RDI,RBX
XOR EDX,EDX
XOR ECX,ECX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0015be5c
|
int8 cs_leave(long param_1,char *param_2,size_t param_3)
{
long lVar1;
code *UNRECOVERED_JUMPTABLE;
int iVar2;
int8 uVar3;
char *pcVar4;
int *piVar5;
lVar1 = *(long *)(param_1 + 0x140);
piVar5 = &sec;
pcVar4 = "xml";
while ((iVar2 = strncmp(param_2,pcVar4,param_3), iVar2 != 0 || (pcVar4[param_3] != '\0'))) {
pcVar4 = *(char **)(piVar5 + 6);
piVar5 = piVar5 + 4;
if (pcVar4 == (char *)0x0) {
return 0;
}
}
switch(*piVar5) {
case 0x191:
pcVar4 = "[first primary ignorable]";
break;
case 0x192:
pcVar4 = "[last primary ignorable]";
break;
case 0x193:
pcVar4 = "[first secondary ignorable]";
break;
case 0x194:
pcVar4 = "[last secondary ignorable]";
break;
case 0x195:
pcVar4 = "[first tertiary ignorable]";
break;
case 0x196:
pcVar4 = "[last tertiary ignorable]";
break;
case 0x197:
pcVar4 = "[first trailing]";
break;
case 0x198:
pcVar4 = "[last trailing]";
break;
case 0x199:
pcVar4 = "[first variable]";
break;
case 0x19a:
pcVar4 = "[last variable]";
break;
case 0x19b:
pcVar4 = "[first non-ignorable]";
break;
case 0x19c:
pcVar4 = "[last non-ignorable]";
break;
default:
if (*piVar5 != 9) {
return 0;
}
if (*(long *)(lVar1 + 0x690) != 0) {
*(int8 *)(lVar1 + 0x718) = *(int8 *)(lVar1 + 0x688);
}
UNRECOVERED_JUMPTABLE = *(code **)(*(long *)(lVar1 + 0x7a8) + 0xa8);
if (UNRECOVERED_JUMPTABLE == (code *)0x0) {
return 0;
}
/* WARNING: Could not recover jumptable at 0x0015b5a9. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar3 = (*UNRECOVERED_JUMPTABLE)(lVar1 + 0x6e0);
return uVar3;
}
uVar3 = tailoring_append(lVar1,pcVar4,0,0);
return uVar3;
}
| |
24,653 | set_object_name_computed | bluesky950520[P]quickjs/quickjs.c | static void set_object_name_computed(JSParseState *s)
{
JSFunctionDef *fd = s->cur_func;
int opcode;
opcode = get_prev_opcode(fd);
if (opcode == OP_set_name) {
/* XXX: should free atom after OP_set_name? */
fd->byte_code.size = fd->last_opcode_pos;
fd->last_opcode_pos = -1;
emit_op(s, OP_set_name_computed);
} else if (opcode == OP_set_class_name) {
int define_class_pos;
define_class_pos = fd->last_opcode_pos + 1 -
get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
assert(fd->byte_code.buf[define_class_pos] == OP_define_class);
fd->byte_code.buf[define_class_pos] = OP_define_class_computed;
fd->last_opcode_pos = -1;
}
} | O1 | c | set_object_name_computed:
movq 0x90(%rdi), %rdi
movslq 0x168(%rdi), %rax
testq %rax, %rax
js 0x6a6fc
movq 0x138(%rdi), %rcx
movb (%rcx,%rax), %cl
jmp 0x6a6fe
xorl %ecx, %ecx
cmpb $-0x3d, %cl
je 0x6a729
movzbl %cl, %ecx
cmpl $0x4d, %ecx
jne 0x6a748
movq %rax, 0x140(%rdi)
movl %eax, 0x168(%rdi)
addq $0x138, %rdi # imm = 0x138
movl $0x4e, %esi
jmp 0x1b4d0
movq 0x138(%rdi), %rcx
movl 0x1(%rcx,%rax), %edx
subl %edx, %eax
incl %eax
cltq
movb $0x57, (%rcx,%rax)
movl $0xffffffff, 0x168(%rdi) # imm = 0xFFFFFFFF
retq
| set_object_name_computed:
mov rdi, [rdi+90h]
movsxd rax, dword ptr [rdi+168h]
test rax, rax
js short loc_6A6FC
mov rcx, [rdi+138h]
mov cl, [rcx+rax]
jmp short loc_6A6FE
loc_6A6FC:
xor ecx, ecx
loc_6A6FE:
cmp cl, 0C3h
jz short loc_6A729
movzx ecx, cl
cmp ecx, 4Dh ; 'M'
jnz short locret_6A748
mov [rdi+140h], rax
mov [rdi+168h], eax
add rdi, 138h
mov esi, 4Eh ; 'N'
jmp dbuf_putc
loc_6A729:
mov rcx, [rdi+138h]
mov edx, [rcx+rax+1]
sub eax, edx
inc eax
cdqe
mov byte ptr [rcx+rax], 57h ; 'W'
mov dword ptr [rdi+168h], 0FFFFFFFFh
locret_6A748:
retn
| long long set_object_name_computed(long long a1)
{
long long v1; // rdi
long long result; // rax
char v3; // cl
long long v4; // rcx
v1 = *(_QWORD *)(a1 + 144);
result = *(int *)(v1 + 360);
if ( result < 0 )
v3 = 0;
else
v3 = *(_BYTE *)(*(_QWORD *)(v1 + 312) + result);
if ( v3 == -61 )
{
v4 = *(_QWORD *)(v1 + 312);
result = (int)result - *(_DWORD *)(v4 + result + 1) + 1;
*(_BYTE *)(v4 + (int)result) = 87;
*(_DWORD *)(v1 + 360) = -1;
}
else if ( v3 == 77 )
{
*(_QWORD *)(v1 + 320) = result;
*(_DWORD *)(v1 + 360) = result;
return dbuf_putc((_QWORD *)(v1 + 312), 78);
}
return result;
}
| set_object_name_computed:
MOV RDI,qword ptr [RDI + 0x90]
MOVSXD RAX,dword ptr [RDI + 0x168]
TEST RAX,RAX
JS 0x0016a6fc
MOV RCX,qword ptr [RDI + 0x138]
MOV CL,byte ptr [RCX + RAX*0x1]
JMP 0x0016a6fe
LAB_0016a6fc:
XOR ECX,ECX
LAB_0016a6fe:
CMP CL,0xc3
JZ 0x0016a729
MOVZX ECX,CL
CMP ECX,0x4d
JNZ 0x0016a748
MOV qword ptr [RDI + 0x140],RAX
MOV dword ptr [RDI + 0x168],EAX
ADD RDI,0x138
MOV ESI,0x4e
JMP 0x0011b4d0
LAB_0016a729:
MOV RCX,qword ptr [RDI + 0x138]
MOV EDX,dword ptr [RCX + RAX*0x1 + 0x1]
SUB EAX,EDX
INC EAX
CDQE
MOV byte ptr [RCX + RAX*0x1],0x57
MOV dword ptr [RDI + 0x168],0xffffffff
LAB_0016a748:
RET
|
void set_object_name_computed(long param_1)
{
int iVar1;
long lVar2;
long lVar3;
char cVar4;
lVar2 = *(long *)(param_1 + 0x90);
iVar1 = *(int *)(lVar2 + 0x168);
lVar3 = (long)iVar1;
if (lVar3 < 0) {
cVar4 = '\0';
}
else {
cVar4 = *(char *)(*(long *)(lVar2 + 0x138) + lVar3);
}
if (cVar4 == -0x3d) {
*(int1 *)
(*(long *)(lVar2 + 0x138) +
(long)((iVar1 - *(int *)(*(long *)(lVar2 + 0x138) + 1 + lVar3)) + 1)) = 0x57;
*(int4 *)(lVar2 + 0x168) = 0xffffffff;
}
else if (cVar4 == 'M') {
*(long *)(lVar2 + 0x140) = lVar3;
*(int *)(lVar2 + 0x168) = iVar1;
dbuf_putc(lVar2 + 0x138,0x4e);
return;
}
return;
}
| |
24,654 | set_object_name_computed | bluesky950520[P]quickjs/quickjs.c | static void set_object_name_computed(JSParseState *s)
{
JSFunctionDef *fd = s->cur_func;
int opcode;
opcode = get_prev_opcode(fd);
if (opcode == OP_set_name) {
/* XXX: should free atom after OP_set_name? */
fd->byte_code.size = fd->last_opcode_pos;
fd->last_opcode_pos = -1;
emit_op(s, OP_set_name_computed);
} else if (opcode == OP_set_class_name) {
int define_class_pos;
define_class_pos = fd->last_opcode_pos + 1 -
get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
assert(fd->byte_code.buf[define_class_pos] == OP_define_class);
fd->byte_code.buf[define_class_pos] = OP_define_class_computed;
fd->last_opcode_pos = -1;
}
} | O2 | c | set_object_name_computed:
movq 0x90(%rdi), %rax
movslq 0x168(%rax), %rcx
testq %rcx, %rcx
js 0x5a24f
movq 0x138(%rax), %rdx
movzbl (%rdx,%rcx), %esi
cmpl $0xc3, %esi
je 0x5a239
cmpl $0x4d, %esi
jne 0x5a24f
movq %rcx, 0x140(%rax)
orl $-0x1, 0x168(%rax)
pushq $0x4e
popq %rsi
jmp 0x4fa1b
movl 0x1(%rdx,%rcx), %esi
subl %esi, %ecx
incl %ecx
movslq %ecx, %rcx
movb $0x57, (%rdx,%rcx)
orl $-0x1, 0x168(%rax)
retq
| set_object_name_computed:
mov rax, [rdi+90h]
movsxd rcx, dword ptr [rax+168h]
test rcx, rcx
js short locret_5A24F
mov rdx, [rax+138h]
movzx esi, byte ptr [rdx+rcx]
cmp esi, 0C3h
jz short loc_5A239
cmp esi, 4Dh ; 'M'
jnz short locret_5A24F
mov [rax+140h], rcx
or dword ptr [rax+168h], 0FFFFFFFFh
push 4Eh ; 'N'
pop rsi
jmp emit_op
loc_5A239:
mov esi, [rdx+rcx+1]
sub ecx, esi
inc ecx
movsxd rcx, ecx
mov byte ptr [rdx+rcx], 57h ; 'W'
or dword ptr [rax+168h], 0FFFFFFFFh
locret_5A24F:
retn
| long long set_object_name_computed(long long a1)
{
long long result; // rax
long long v2; // rcx
long long v3; // rdx
int v4; // esi
result = *(_QWORD *)(a1 + 144);
v2 = *(int *)(result + 360);
if ( v2 >= 0 )
{
v3 = *(_QWORD *)(result + 312);
v4 = *(unsigned __int8 *)(v3 + v2);
if ( v4 == 195 )
{
*(_BYTE *)(v3 + (int)v2 - *(_DWORD *)(v3 + v2 + 1) + 1) = 87;
*(_DWORD *)(result + 360) = -1;
}
else if ( v4 == 77 )
{
*(_QWORD *)(result + 320) = v2;
*(_DWORD *)(result + 360) = -1;
return emit_op(a1, 78);
}
}
return result;
}
| set_object_name_computed:
MOV RAX,qword ptr [RDI + 0x90]
MOVSXD RCX,dword ptr [RAX + 0x168]
TEST RCX,RCX
JS 0x0015a24f
MOV RDX,qword ptr [RAX + 0x138]
MOVZX ESI,byte ptr [RDX + RCX*0x1]
CMP ESI,0xc3
JZ 0x0015a239
CMP ESI,0x4d
JNZ 0x0015a24f
MOV qword ptr [RAX + 0x140],RCX
OR dword ptr [RAX + 0x168],0xffffffff
PUSH 0x4e
POP RSI
JMP 0x0014fa1b
LAB_0015a239:
MOV ESI,dword ptr [RDX + RCX*0x1 + 0x1]
SUB ECX,ESI
INC ECX
MOVSXD RCX,ECX
MOV byte ptr [RDX + RCX*0x1],0x57
OR dword ptr [RAX + 0x168],0xffffffff
LAB_0015a24f:
RET
|
void set_object_name_computed(long param_1)
{
long lVar1;
long lVar2;
long lVar3;
lVar1 = *(long *)(param_1 + 0x90);
lVar3 = (long)*(int *)(lVar1 + 0x168);
if (-1 < lVar3) {
lVar2 = *(long *)(lVar1 + 0x138);
if (*(char *)(lVar2 + lVar3) == -0x3d) {
*(int1 *)(lVar2 + ((*(int *)(lVar1 + 0x168) - *(int *)(lVar2 + 1 + lVar3)) + 1)) = 0x57;
*(int4 *)(lVar1 + 0x168) = 0xffffffff;
}
else if (*(char *)(lVar2 + lVar3) == 'M') {
*(long *)(lVar1 + 0x140) = lVar3;
*(int4 *)(lVar1 + 0x168) = 0xffffffff;
emit_op(param_1,0x4e);
return;
}
}
return;
}
| |
24,655 | get_simple_collation_handler_by_flags | eloqsql/mysys/charset.c | static MY_COLLATION_HANDLER *get_simple_collation_handler_by_flags(uint flags)
{
return flags & MY_CS_BINSORT ?
(flags & MY_CS_NOPAD ?
&my_collation_8bit_nopad_bin_handler :
&my_collation_8bit_bin_handler) :
(flags & MY_CS_NOPAD ?
&my_collation_8bit_simple_nopad_ci_handler :
&my_collation_8bit_simple_ci_handler);
} | O0 | c | get_simple_collation_handler_by_flags:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xde706
movl -0x4(%rbp), %edx
andl $0x20000, %edx # imm = 0x20000
leaq 0x1e1716(%rip), %rax # 0x2bfe08
leaq 0x1e177f(%rip), %rcx # 0x2bfe78
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0xde728
movl -0x4(%rbp), %edx
andl $0x20000, %edx # imm = 0x20000
leaq 0x1e4232(%rip), %rax # 0x2c2948
leaq 0x1e429b(%rip), %rcx # 0x2c29b8
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
popq %rbp
retq
nop
| get_simple_collation_handler_by_flags:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov eax, [rbp+var_4]
and eax, 10h
cmp eax, 0
jz short loc_DE706
mov edx, [rbp+var_4]
and edx, 20000h
lea rax, my_collation_8bit_bin_handler
lea rcx, my_collation_8bit_nopad_bin_handler
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_10], rax
jmp short loc_DE728
loc_DE706:
mov edx, [rbp+var_4]
and edx, 20000h
lea rax, my_collation_8bit_simple_ci_handler
lea rcx, my_collation_8bit_simple_nopad_ci_handler
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_10], rax
loc_DE728:
mov rax, [rbp+var_10]
pop rbp
retn
| long long ( ** get_simple_collation_handler_by_flags(int a1))()
{
long long ( **v1)(); // rax
long long ( **v2)(); // rax
if ( (a1 & 0x10) != 0 )
{
v1 = my_collation_8bit_bin_handler;
if ( (a1 & 0x20000) != 0 )
return my_collation_8bit_nopad_bin_handler;
return v1;
}
else
{
v2 = my_collation_8bit_simple_ci_handler;
if ( (a1 & 0x20000) != 0 )
return my_collation_8bit_simple_nopad_ci_handler;
return v2;
}
}
| get_simple_collation_handler_by_flags:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV EAX,dword ptr [RBP + -0x4]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001de706
MOV EDX,dword ptr [RBP + -0x4]
AND EDX,0x20000
LEA RAX,[0x3bfe08]
LEA RCX,[0x3bfe78]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001de728
LAB_001de706:
MOV EDX,dword ptr [RBP + -0x4]
AND EDX,0x20000
LEA RAX,[0x3c2948]
LEA RCX,[0x3c29b8]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
LAB_001de728:
MOV RAX,qword ptr [RBP + -0x10]
POP RBP
RET
|
int1 * get_simple_collation_handler_by_flags(uint param_1)
{
int1 *local_18;
if ((param_1 & 0x10) == 0) {
local_18 = my_collation_8bit_simple_ci_handler;
if ((param_1 & 0x20000) != 0) {
local_18 = my_collation_8bit_simple_nopad_ci_handler;
}
}
else {
local_18 = my_collation_8bit_bin_handler;
if ((param_1 & 0x20000) != 0) {
local_18 = my_collation_8bit_nopad_bin_handler;
}
}
return local_18;
}
| |
24,656 | my_rw_trywrlock | eloqsql/mysys/thr_rwlock.c | int my_rw_trywrlock(my_rw_lock_t *rwp)
{
int res;
pthread_mutex_lock(&rwp->lock);
if (rwp->state)
res= EBUSY; /* Can't get lock */
else
{
res=0;
rwp->state = -1;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
}
pthread_mutex_unlock(&rwp->lock);
return(res);
} | O0 | c | my_rw_trywrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x602d0
movq -0x8(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0xc675b
movl $0x10, -0xc(%rbp)
jmp 0xc6770
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
callq 0x60290
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_rw_trywrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
cmp dword ptr [rax+88h], 0
jz short loc_C675B
mov [rbp+var_C], 10h
jmp short loc_C6770
loc_C675B:
mov [rbp+var_C], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0FFFFFFFFh
loc_C6770:
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
| long long my_rw_trywrlock(long long a1)
{
unsigned int v2; // [rsp+4h] [rbp-Ch]
pthread_mutex_lock(a1);
if ( *(_DWORD *)(a1 + 136) )
{
v2 = 16;
}
else
{
v2 = 0;
*(_DWORD *)(a1 + 136) = -1;
}
pthread_mutex_unlock(a1);
return v2;
}
| my_rw_trywrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001602d0
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x88],0x0
JZ 0x001c675b
MOV dword ptr [RBP + -0xc],0x10
JMP 0x001c6770
LAB_001c675b:
MOV dword ptr [RBP + -0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0xffffffff
LAB_001c6770:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00160290
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 my_rw_trywrlock(pthread_mutex_t *param_1)
{
int4 local_14;
pthread_mutex_lock(param_1);
if (*(int *)((long)param_1 + 0x88) == 0) {
local_14 = 0;
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
}
else {
local_14 = 0x10;
}
pthread_mutex_unlock(param_1);
return local_14;
}
| |
24,657 | IsAudioStreamProcessed | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | bool IsAudioStreamProcessed(AudioStream stream)
{
if (stream.buffer == NULL) return false;
bool result = false;
ma_mutex_lock(&AUDIO.System.lock);
result = stream.buffer->isSubBufferProcessed[0] || stream.buffer->isSubBufferProcessed[1];
ma_mutex_unlock(&AUDIO.System.lock);
return result;
} | O0 | c | IsAudioStreamProcessed:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, (%rax)
jne 0x7dc0c
movb $0x0, -0x1(%rbp)
jmp 0x7dc6b
movb $0x0, -0x2(%rbp)
leaq 0x198d19(%rip), %rdi # 0x216930
addq $0x12b8, %rdi # imm = 0x12B8
callq 0x1d970
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movb $0x1, %al
testb $0x1, 0x15c(%rcx)
movb %al, -0x11(%rbp)
jne 0x7dc48
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb 0x15d(%rax), %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
andb $0x1, %al
movb %al, -0x2(%rbp)
leaq 0x198cd9(%rip), %rdi # 0x216930
addq $0x12b8, %rdi # imm = 0x12B8
callq 0x1d9e0
movb -0x2(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| IsAudioStreamProcessed:
push rbp
mov rbp, rsp
sub rsp, 20h
lea rax, [rbp+arg_0]
mov [rbp+var_10], rax
cmp qword ptr [rax], 0
jnz short loc_7DC0C
mov [rbp+var_1], 0
jmp short loc_7DC6B
loc_7DC0C:
mov [rbp+var_2], 0
lea rdi, AUDIO
add rdi, 12B8h
call ma_mutex_lock
mov rax, [rbp+var_10]
mov rcx, [rax]
mov al, 1
test byte ptr [rcx+15Ch], 1
mov [rbp+var_11], al
jnz short loc_7DC48
mov rax, [rbp+var_10]
mov rax, [rax]
mov al, [rax+15Dh]
mov [rbp+var_11], al
loc_7DC48:
mov al, [rbp+var_11]
and al, 1
mov [rbp+var_2], al
lea rdi, AUDIO
add rdi, 12B8h
call ma_mutex_unlock
mov al, [rbp+var_2]
and al, 1
mov [rbp+var_1], al
loc_7DC6B:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
| char IsAudioStreamProcessed(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
char v8; // [rsp+Fh] [rbp-11h]
if ( !a7 )
return 0;
ma_mutex_lock((long long)&AUDIO + 4792);
v8 = 1;
if ( (*(_BYTE *)(a7 + 348) & 1) == 0 )
v8 = *(_BYTE *)(a7 + 349);
ma_mutex_unlock((long long)&AUDIO + 4792);
return v8 & 1;
}
| IsAudioStreamProcessed:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RAX],0x0
JNZ 0x0017dc0c
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0017dc6b
LAB_0017dc0c:
MOV byte ptr [RBP + -0x2],0x0
LEA RDI,[0x316930]
ADD RDI,0x12b8
CALL 0x0011d970
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV AL,0x1
TEST byte ptr [RCX + 0x15c],0x1
MOV byte ptr [RBP + -0x11],AL
JNZ 0x0017dc48
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX + 0x15d]
MOV byte ptr [RBP + -0x11],AL
LAB_0017dc48:
MOV AL,byte ptr [RBP + -0x11]
AND AL,0x1
MOV byte ptr [RBP + -0x2],AL
LEA RDI,[0x316930]
ADD RDI,0x12b8
CALL 0x0011d9e0
MOV AL,byte ptr [RBP + -0x2]
AND AL,0x1
MOV byte ptr [RBP + -0x1],AL
LAB_0017dc6b:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
int8 IsAudioStreamProcessed(void)
{
int8 uVar1;
int8 *puVar2;
long in_stack_00000008;
int1 local_19;
int1 local_9;
puVar2 = &stack0x00000008;
if (in_stack_00000008 == 0) {
local_9 = 0;
}
else {
ma_mutex_lock(0x317be8);
local_19 = 1;
if ((*(byte *)(in_stack_00000008 + 0x15c) & 1) == 0) {
local_19 = *(int1 *)(in_stack_00000008 + 0x15d);
}
uVar1 = ma_mutex_unlock(0x317be8);
puVar2 = (int8 *)(CONCAT71((int7)((ulong)uVar1 >> 8),local_19) & 0xffffffffffffff01);
local_9 = SUB81(puVar2,0);
}
return CONCAT71((int7)((ulong)puVar2 >> 8),local_9);
}
| |
24,658 | IsAudioStreamProcessed | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | bool IsAudioStreamProcessed(AudioStream stream)
{
if (stream.buffer == NULL) return false;
bool result = false;
ma_mutex_lock(&AUDIO.System.lock);
result = stream.buffer->isSubBufferProcessed[0] || stream.buffer->isSubBufferProcessed[1];
ma_mutex_unlock(&AUDIO.System.lock);
return result;
} | O2 | c | IsAudioStreamProcessed:
pushq %r14
pushq %rbx
pushq %rax
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x3cdac
leaq 0xe7dc2(%rip), %rdi # 0x124b48
callq 0x97c0
movb $0x1, %bl
cmpb $0x0, 0x15c(%r14)
jne 0x3cd9e
movb 0x15d(%r14), %bl
leaq 0xe7da3(%rip), %rdi # 0x124b48
callq 0x93b0
jmp 0x3cdae
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| IsAudioStreamProcessed:
push r14
push rbx
push rax
mov r14, [rsp+18h+arg_0]
test r14, r14
jz short loc_3CDAC
lea rdi, unk_124B48
call _pthread_mutex_lock
mov bl, 1
cmp byte ptr [r14+15Ch], 0
jnz short loc_3CD9E
mov bl, [r14+15Dh]
loc_3CD9E:
lea rdi, unk_124B48
call _pthread_mutex_unlock
jmp short loc_3CDAE
loc_3CDAC:
xor ebx, ebx
loc_3CDAE:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
retn
| long long IsAudioStreamProcessed(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
unsigned int v7; // ebx
if ( a7 )
{
pthread_mutex_lock(&unk_124B48);
LOBYTE(v7) = 1;
if ( !*(_BYTE *)(a7 + 348) )
LOBYTE(v7) = *(_BYTE *)(a7 + 349);
pthread_mutex_unlock(&unk_124B48);
}
else
{
return 0;
}
return v7;
}
| IsAudioStreamProcessed:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [RSP + 0x20]
TEST R14,R14
JZ 0x0013cdac
LEA RDI,[0x224b48]
CALL 0x001097c0
MOV BL,0x1
CMP byte ptr [R14 + 0x15c],0x0
JNZ 0x0013cd9e
MOV BL,byte ptr [R14 + 0x15d]
LAB_0013cd9e:
LEA RDI,[0x224b48]
CALL 0x001093b0
JMP 0x0013cdae
LAB_0013cdac:
XOR EBX,EBX
LAB_0013cdae:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
ulong IsAudioStreamProcessed(void)
{
int8 unaff_RBX;
ulong uVar1;
long in_stack_00000008;
int7 uVar2;
if (in_stack_00000008 == 0) {
uVar1 = 0;
}
else {
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
uVar2 = (int7)((ulong)unaff_RBX >> 8);
uVar1 = CONCAT71(uVar2,1);
if (*(char *)(in_stack_00000008 + 0x15c) == '\0') {
uVar1 = CONCAT71(uVar2,*(int1 *)(in_stack_00000008 + 0x15d));
}
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
}
return uVar1 & 0xffffffff;
}
| |
24,659 | IsAudioStreamProcessed | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c | bool IsAudioStreamProcessed(AudioStream stream)
{
if (stream.buffer == NULL) return false;
bool result = false;
ma_mutex_lock(&AUDIO.System.lock);
result = stream.buffer->isSubBufferProcessed[0] || stream.buffer->isSubBufferProcessed[1];
ma_mutex_unlock(&AUDIO.System.lock);
return result;
} | O3 | c | IsAudioStreamProcessed:
pushq %r14
pushq %rbx
pushq %rax
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x451af
leaq 0xf399f(%rip), %rdi # 0x138b28
callq 0xa7d0
movb $0x1, %bl
cmpb $0x0, 0x15c(%r14)
jne 0x451a1
movb 0x15d(%r14), %bl
leaq 0xf3980(%rip), %rdi # 0x138b28
callq 0xa3c0
jmp 0x451b1
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| IsAudioStreamProcessed:
push r14
push rbx
push rax
mov r14, [rsp+18h+arg_0]
test r14, r14
jz short loc_451AF
lea rdi, unk_138B28
call _pthread_mutex_lock
mov bl, 1
cmp byte ptr [r14+15Ch], 0
jnz short loc_451A1
mov bl, [r14+15Dh]
loc_451A1:
lea rdi, unk_138B28
call _pthread_mutex_unlock
jmp short loc_451B1
loc_451AF:
xor ebx, ebx
loc_451B1:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
retn
| long long IsAudioStreamProcessed(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
unsigned int v7; // ebx
if ( a7 )
{
pthread_mutex_lock(&unk_138B28);
LOBYTE(v7) = 1;
if ( !*(_BYTE *)(a7 + 348) )
LOBYTE(v7) = *(_BYTE *)(a7 + 349);
pthread_mutex_unlock(&unk_138B28);
}
else
{
return 0;
}
return v7;
}
| IsAudioStreamProcessed:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [RSP + 0x20]
TEST R14,R14
JZ 0x001451af
LEA RDI,[0x238b28]
CALL 0x0010a7d0
MOV BL,0x1
CMP byte ptr [R14 + 0x15c],0x0
JNZ 0x001451a1
MOV BL,byte ptr [R14 + 0x15d]
LAB_001451a1:
LEA RDI,[0x238b28]
CALL 0x0010a3c0
JMP 0x001451b1
LAB_001451af:
XOR EBX,EBX
LAB_001451b1:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
ulong IsAudioStreamProcessed(void)
{
int8 unaff_RBX;
ulong uVar1;
long in_stack_00000008;
int7 uVar2;
if (in_stack_00000008 == 0) {
uVar1 = 0;
}
else {
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
uVar2 = (int7)((ulong)unaff_RBX >> 8);
uVar1 = CONCAT71(uVar2,1);
if (*(char *)(in_stack_00000008 + 0x15c) == '\0') {
uVar1 = CONCAT71(uVar2,*(int1 *)(in_stack_00000008 + 0x15d));
}
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
}
return uVar1 & 0xffffffff;
}
| |
24,660 | minja::VariableExpr::~VariableExpr() | monkey531[P]llama/common/minja.hpp | VariableExpr(const Location & location, const std::string& n)
: Expression(location), name(n) {} | O1 | cpp | minja::VariableExpr::~VariableExpr():
pushq %rbx
movq %rdi, %rbx
leaq 0x93d47(%rip), %rax # 0x12ddc0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x9a098
movq (%rax), %rsi
incq %rsi
callq 0x1b8f0
leaq 0x93319(%rip), %rax # 0x12d3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9a0b5
popq %rbx
jmp 0x6e1aa
popq %rbx
retq
nop
| _ZN5minja12VariableExprD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja12VariableExprE; `vtable for'minja::VariableExpr
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_9A098
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9A098:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9A0B5
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_9A0B5:
pop rbx
retn
| void minja::VariableExpr::~VariableExpr(minja::VariableExpr *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::VariableExpr + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~VariableExpr:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22ddc0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x0019a098
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b8f0
LAB_0019a098:
LEA RAX,[0x22d3b8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019a0b5
POP RBX
JMP 0x0016e1aa
LAB_0019a0b5:
POP RBX
RET
|
/* minja::VariableExpr::~VariableExpr() */
void __thiscall minja::VariableExpr::~VariableExpr(VariableExpr *this)
{
*(int ***)this = &PTR_do_evaluate_0022ddd0;
if (*(VariableExpr **)(this + 0x20) != this + 0x30) {
operator_delete(*(VariableExpr **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022d3c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_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 + 0x10));
return;
}
return;
}
| |
24,661 | minja::VariableExpr::~VariableExpr() | monkey531[P]llama/common/minja.hpp | VariableExpr(const Location & location, const std::string& n)
: Expression(location), name(n) {} | O3 | cpp | minja::VariableExpr::~VariableExpr():
pushq %rbx
movq %rdi, %rbx
leaq 0x92427(%rip), %rax # 0x12adc0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x989b8
movq (%rax), %rsi
incq %rsi
callq 0x1a8f0
leaq 0x919f9(%rip), %rax # 0x12a3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x989d5
popq %rbx
jmp 0x6d9b6
popq %rbx
retq
nop
| _ZN5minja12VariableExprD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja12VariableExprE; `vtable for'minja::VariableExpr
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_989B8
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_989B8:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_989D5
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_989D5:
pop rbx
retn
| void minja::VariableExpr::~VariableExpr(minja::VariableExpr *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::VariableExpr + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~VariableExpr:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22adc0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x001989b8
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a8f0
LAB_001989b8:
LEA RAX,[0x22a3b8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x001989d5
POP RBX
JMP 0x0016d9b6
LAB_001989d5:
POP RBX
RET
|
/* minja::VariableExpr::~VariableExpr() */
void __thiscall minja::VariableExpr::~VariableExpr(VariableExpr *this)
{
*(int ***)this = &PTR_do_evaluate_0022add0;
if (*(VariableExpr **)(this + 0x20) != this + 0x30) {
operator_delete(*(VariableExpr **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022a3c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_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 + 0x10));
return;
}
return;
}
| |
24,662 | translog_flush_wait_for_end | eloqsql/storage/maria/ma_loghandler.c | void translog_flush_wait_for_end(LSN lsn)
{
DBUG_ENTER("translog_flush_wait_for_end");
DBUG_PRINT("enter", ("LSN: " LSN_FMT, LSN_IN_PARTS(lsn)));
mysql_mutex_assert_owner(&log_descriptor.log_flush_lock);
while (cmp_translog_addr(log_descriptor.flushed, lsn) < 0)
mysql_cond_wait(&log_descriptor.log_flush_cond,
&log_descriptor.log_flush_lock);
DBUG_VOID_RETURN;
} | O3 | c | translog_flush_wait_for_end:
cmpq %rdi, 0xbc8e46(%rip) # 0xbfeb88
jge 0x35d90
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xbc8ee8(%rip), %r14 # 0xbfec40
leaq 0xbc8e99(%rip), %r15 # 0xbfebf8
cmpq $0x0, 0xbc8f09(%rip) # 0xbfec70
jne 0x35d7f
movq %r14, %rdi
movq %r15, %rsi
callq 0x29420
cmpq %rbx, 0xbc8e0d(%rip) # 0xbfeb88
jl 0x35d5f
jmp 0x35d86
callq 0x2bda8
jmp 0x35d74
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| translog_flush_wait_for_end:
cmp cs:qword_BFEB88, rdi
jge short locret_35D90
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
lea r14, unk_BFEC40
lea r15, unk_BFEBF8
loc_35D5F:
cmp cs:qword_BFEC70, 0
jnz short loc_35D7F
mov rdi, r14
mov rsi, r15
call _pthread_cond_wait
loc_35D74:
cmp cs:qword_BFEB88, rbx
jl short loc_35D5F
jmp short loc_35D86
loc_35D7F:
call translog_flush_wait_for_end_cold_1
jmp short loc_35D74
loc_35D86:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
locret_35D90:
retn
| long long translog_flush_wait_for_end(void *a1)
{
long long v1; // rbx
long long result; // rax
if ( qword_BFEB88 < (long long)a1 )
{
v1 = (long long)a1;
do
{
if ( qword_BFEC70 )
{
result = translog_flush_wait_for_end_cold_1(a1);
}
else
{
a1 = &unk_BFEC40;
result = pthread_cond_wait(&unk_BFEC40, &unk_BFEBF8);
}
}
while ( qword_BFEB88 < v1 );
}
return result;
}
| translog_flush_wait_for_end:
CMP qword ptr [0x00cfeb88],RDI
JGE 0x00135d90
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[0xcfec40]
LEA R15,[0xcfebf8]
LAB_00135d5f:
CMP qword ptr [0x00cfec70],0x0
JNZ 0x00135d7f
MOV RDI,R14
MOV RSI,R15
CALL 0x00129420
LAB_00135d74:
CMP qword ptr [0x00cfeb88],RBX
JL 0x00135d5f
JMP 0x00135d86
LAB_00135d7f:
CALL 0x0012bda8
JMP 0x00135d74
LAB_00135d86:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
LAB_00135d90:
RET
|
void translog_flush_wait_for_end(long param_1)
{
if (DAT_00cfeb88 < param_1) {
do {
if (DAT_00cfec70 == 0) {
pthread_cond_wait((pthread_cond_t *)&DAT_00cfec40,(pthread_mutex_t *)&DAT_00cfebf8);
}
else {
translog_flush_wait_for_end_cold_1();
}
} while (DAT_00cfeb88 < param_1);
}
return;
}
| |
24,663 | utf8_encode_buf16 | bluesky950520[P]quickjs/cutils.c | size_t utf8_encode_buf16(char *dest, size_t dest_len, const uint16_t *src, size_t src_len)
{
size_t i, j;
uint32_t c;
for (i = j = 0; i < src_len;) {
c = src[i++];
if (c < 0x80) {
if (j + 1 >= dest_len)
goto overflow;
dest[j++] = c;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
if (j + utf8_encode_len(c) >= dest_len)
goto overflow;
j += utf8_encode((uint8_t *)dest + j, c);
}
}
if (j < dest_len)
dest[j] = '\0';
return j;
overflow:
i -= 1 + (c > 0xFFFF);
if (j < dest_len)
dest[j] = '\0';
while (i < src_len) {
c = src[i++];
if (c < 0x80) {
j++;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
j += utf8_encode_len(c);
}
}
return j;
} | O1 | c | utf8_encode_buf16:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r15
testq %rcx, %rcx
je 0x1bb92
movq %rcx, %rbx
movq %rdx, %r14
xorl %r13d, %r13d
xorl %ecx, %ecx
leaq 0x1(%rcx), %rbp
movzwl (%r14,%rcx,2), %esi
cmpl $0x7f, %esi
ja 0x1baeb
leaq 0x1(%r13), %rax
cmpq %r12, %rax
jae 0x1bba7
movb %sil, (%r15,%r13)
jmp 0x1bb81
movl %esi, %eax
andl $0xfc00, %eax # imm = 0xFC00
cmpl $0xd800, %eax # imm = 0xD800
setne %al
cmpq %rbx, %rbp
setae %dl
orb %al, %dl
jne 0x1bb37
movzwl 0x2(%r14,%rcx,2), %eax
movl %eax, %edx
andl $0xfc00, %edx # imm = 0xFC00
cmpl $0xdc00, %edx # imm = 0xDC00
jne 0x1bb37
addq $0x2, %rcx
shll $0xa, %esi
andl $0xffc00, %esi # imm = 0xFFC00
andl $0x3ff, %eax # imm = 0x3FF
addl %eax, %esi
addl $0x10000, %esi # imm = 0x10000
movq %rcx, %rbp
movl $0x1, %eax
cmpl $0x80, %esi
jb 0x1bb6d
movl $0x2, %eax
cmpl $0x800, %esi # imm = 0x800
jb 0x1bb6d
movl $0x3, %eax
cmpl $0x10000, %esi # imm = 0x10000
jb 0x1bb6d
cmpl $0x110000, %esi # imm = 0x110000
movl $0x0, %eax
adcq $0x3, %rax
addq %r13, %rax
cmpq %r12, %rax
jae 0x1bba7
leaq (%r15,%r13), %rdi
callq 0x1b683
addq %r13, %rax
movq %rax, %r13
movq %rbp, %rcx
cmpq %rbx, %rbp
jb 0x1bac7
jmp 0x1bb94
xorl %eax, %eax
cmpq %r12, %rax
jae 0x1bc7d
movb $0x0, (%r15,%rax)
jmp 0x1bc7d
xorl %edi, %edi
cmpl $0x10000, %esi # imm = 0x10000
adcq $-0x2, %rdi
addq %rbp, %rdi
cmpq %r12, %r13
jae 0x1bbc0
movb $0x0, (%r15,%r13)
cmpq %rbx, %rdi
jae 0x1bc7a
leaq 0x1(%rdi), %rcx
movzwl (%r14,%rdi,2), %edx
cmpl $0x7f, %edx
ja 0x1bbe2
incq %r13
movq %r13, %rax
jmp 0x1bc6c
movl %edx, %eax
andl $0xfc00, %eax # imm = 0xFC00
cmpl $0xd800, %eax # imm = 0xD800
setne %al
cmpq %rbx, %rcx
setae %sil
orb %al, %sil
jne 0x1bc30
movzwl 0x2(%r14,%rdi,2), %eax
movl %eax, %esi
andl $0xfc00, %esi # imm = 0xFC00
cmpl $0xdc00, %esi # imm = 0xDC00
jne 0x1bc30
addq $0x2, %rdi
shll $0xa, %edx
andl $0xffc00, %edx # imm = 0xFFC00
andl $0x3ff, %eax # imm = 0x3FF
addl %eax, %edx
addl $0x10000, %edx # imm = 0x10000
movq %rdi, %rcx
movl $0x1, %eax
cmpl $0x80, %edx
jb 0x1bc66
movl $0x2, %eax
cmpl $0x800, %edx # imm = 0x800
jb 0x1bc66
movl $0x3, %eax
cmpl $0x10000, %edx # imm = 0x10000
jb 0x1bc66
cmpl $0x110000, %edx # imm = 0x110000
movl $0x0, %eax
adcq $0x3, %rax
addq %r13, %rax
movq %rax, %r13
movq %rcx, %rdi
cmpq %rbx, %rcx
jb 0x1bbc9
jmp 0x1bc7d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| utf8_encode_buf16:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
mov r15, rdi
test rcx, rcx
jz loc_1BB92
mov rbx, rcx
mov r14, rdx
xor r13d, r13d
xor ecx, ecx
loc_1BAC7:
lea rbp, [rcx+1]
movzx esi, word ptr [r14+rcx*2]
cmp esi, 7Fh
ja short loc_1BAEB
lea rax, [r13+1]
cmp rax, r12
jnb loc_1BBA7
mov [r15+r13], sil
jmp loc_1BB81
loc_1BAEB:
mov eax, esi
and eax, 0FC00h
cmp eax, 0D800h
setnz al
cmp rbp, rbx
setnb dl
or dl, al
jnz short loc_1BB37
movzx eax, word ptr [r14+rcx*2+2]
mov edx, eax
and edx, 0FC00h
cmp edx, 0DC00h
jnz short loc_1BB37
add rcx, 2
shl esi, 0Ah
and esi, 0FFC00h
and eax, 3FFh
add esi, eax
add esi, 10000h
mov rbp, rcx
loc_1BB37:
mov eax, 1
cmp esi, 80h
jb short loc_1BB6D
mov eax, 2
cmp esi, 800h
jb short loc_1BB6D
mov eax, 3
cmp esi, 10000h
jb short loc_1BB6D
cmp esi, 110000h
mov eax, 0
adc rax, 3
loc_1BB6D:
add rax, r13
cmp rax, r12
jnb short loc_1BBA7
lea rdi, [r15+r13]
call utf8_encode
add rax, r13
loc_1BB81:
mov r13, rax
mov rcx, rbp
cmp rbp, rbx
jb loc_1BAC7
jmp short loc_1BB94
loc_1BB92:
xor eax, eax
loc_1BB94:
cmp rax, r12
jnb loc_1BC7D
mov byte ptr [r15+rax], 0
jmp loc_1BC7D
loc_1BBA7:
xor edi, edi
cmp esi, 10000h
adc rdi, 0FFFFFFFFFFFFFFFEh
add rdi, rbp
cmp r13, r12
jnb short loc_1BBC0
mov byte ptr [r15+r13], 0
loc_1BBC0:
cmp rdi, rbx
jnb loc_1BC7A
loc_1BBC9:
lea rcx, [rdi+1]
movzx edx, word ptr [r14+rdi*2]
cmp edx, 7Fh
ja short loc_1BBE2
inc r13
mov rax, r13
jmp loc_1BC6C
loc_1BBE2:
mov eax, edx
and eax, 0FC00h
cmp eax, 0D800h
setnz al
cmp rcx, rbx
setnb sil
or sil, al
jnz short loc_1BC30
movzx eax, word ptr [r14+rdi*2+2]
mov esi, eax
and esi, 0FC00h
cmp esi, 0DC00h
jnz short loc_1BC30
add rdi, 2
shl edx, 0Ah
and edx, 0FFC00h
and eax, 3FFh
add edx, eax
add edx, 10000h
mov rcx, rdi
loc_1BC30:
mov eax, 1
cmp edx, 80h
jb short loc_1BC66
mov eax, 2
cmp edx, 800h
jb short loc_1BC66
mov eax, 3
cmp edx, 10000h
jb short loc_1BC66
cmp edx, 110000h
mov eax, 0
adc rax, 3
loc_1BC66:
add rax, r13
mov r13, rax
loc_1BC6C:
mov rdi, rcx
cmp rcx, rbx
jb loc_1BBC9
jmp short loc_1BC7D
loc_1BC7A:
mov rax, r13
loc_1BC7D:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long utf8_encode_buf16(long long a1, unsigned long long a2, long long a3, unsigned long long a4)
{
unsigned long long v8; // r13
unsigned long long v9; // rcx
unsigned long long v10; // rbp
unsigned int v11; // esi
unsigned long long result; // rax
long long v13; // rax
unsigned long long v14; // rdi
unsigned long long v15; // rcx
unsigned int v16; // edx
long long v17; // rax
if ( a4 )
{
v8 = 0LL;
v9 = 0LL;
while ( 1 )
{
v10 = v9 + 1;
v11 = *(unsigned __int16 *)(a3 + 2 * v9);
if ( v11 > 0x7F )
{
if ( (v11 & 0xFC00) == 55296 && v10 < a4 && (*(_WORD *)(a3 + 2 * v9 + 2) & 0xFC00) == 0xDC00 )
{
v11 = (*(_WORD *)(a3 + 2 * v9 + 2) & 0x3FF) + ((v11 << 10) & 0xFFC00) + 0x10000;
v10 = v9 + 2;
}
v13 = 1LL;
if ( v11 >= 0x80 )
{
v13 = 2LL;
if ( v11 >= 0x800 )
{
v13 = 3LL;
if ( v11 >= 0x10000 )
v13 = (v11 < 0x110000) + 3LL;
}
}
if ( v8 + v13 >= a2 )
{
LABEL_20:
v14 = v10 + (v11 < 0x10000) - 2LL;
if ( v8 < a2 )
*(_BYTE *)(a1 + v8) = 0;
if ( v14 >= a4 )
return v8;
do
{
v15 = v14 + 1;
v16 = *(unsigned __int16 *)(a3 + 2 * v14);
if ( v16 > 0x7F )
{
if ( (v16 & 0xFC00) == 55296 && v15 < a4 && (*(_WORD *)(a3 + 2 * v14 + 2) & 0xFC00) == 0xDC00 )
{
v16 = (*(_WORD *)(a3 + 2 * v14 + 2) & 0x3FF) + ((v16 << 10) & 0xFFC00) + 0x10000;
v15 = v14 + 2;
}
v17 = 1LL;
if ( v16 >= 0x80 )
{
v17 = 2LL;
if ( v16 >= 0x800 )
{
v17 = 3LL;
if ( v16 >= 0x10000 )
v17 = (v16 < 0x110000) + 3LL;
}
}
result = v8 + v17;
v8 = result;
}
else
{
result = ++v8;
}
v14 = v15;
}
while ( v15 < a4 );
return result;
}
result = v8 + utf8_encode((_BYTE *)(a1 + v8), v11);
}
else
{
result = v8 + 1;
if ( v8 + 1 >= a2 )
goto LABEL_20;
*(_BYTE *)(a1 + v8) = v11;
}
v8 = result;
v9 = v10;
if ( v10 >= a4 )
goto LABEL_18;
}
}
result = 0LL;
LABEL_18:
if ( result < a2 )
*(_BYTE *)(a1 + result) = 0;
return result;
}
| |||
24,664 | utf8_encode_buf16 | bluesky950520[P]quickjs/cutils.c | size_t utf8_encode_buf16(char *dest, size_t dest_len, const uint16_t *src, size_t src_len)
{
size_t i, j;
uint32_t c;
for (i = j = 0; i < src_len;) {
c = src[i++];
if (c < 0x80) {
if (j + 1 >= dest_len)
goto overflow;
dest[j++] = c;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
if (j + utf8_encode_len(c) >= dest_len)
goto overflow;
j += utf8_encode((uint8_t *)dest + j, c);
}
}
if (j < dest_len)
dest[j] = '\0';
return j;
overflow:
i -= 1 + (c > 0xFFFF);
if (j < dest_len)
dest[j] = '\0';
while (i < src_len) {
c = src[i++];
if (c < 0x80) {
j++;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
j += utf8_encode_len(c);
}
}
return j;
} | O2 | c | utf8_encode_buf16:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, (%rsp)
xorl %r12d, %r12d
xorl %ebx, %ebx
cmpq %r14, %r12
jae 0x163cd
leaq 0x1(%r12), %rax
movzwl (%r15,%r12,2), %ebp
cmpl $0x7f, %ebp
ja 0x16356
leaq 0x1(%rbx), %rcx
cmpq %r13, %rcx
jae 0x163ec
movq (%rsp), %rdx
movb %bpl, (%rdx,%rbx)
movq %rax, %r12
movq %rcx, %rbx
jmp 0x16321
movl %ebp, %ecx
andl $0xfc00, %ecx # imm = 0xFC00
cmpl $0xd800, %ecx # imm = 0xD800
setne %cl
cmpq %r14, %rax
setae %dl
orb %cl, %dl
jne 0x163a4
movzwl 0x2(%r15,%r12,2), %ecx
movl %ecx, %edx
andl $0xfc00, %edx # imm = 0xFC00
cmpl $0xdc00, %edx # imm = 0xDC00
jne 0x163a4
addq $0x2, %r12
shll $0xa, %ebp
andl $0xffc00, %ebp # imm = 0xFFC00
andl $0x3ff, %ecx # imm = 0x3FF
addl %ecx, %ebp
addl $0x10000, %ebp # imm = 0x10000
jmp 0x163a7
movq %rax, %r12
movl %ebp, %edi
callq 0x15eae
addq %rbx, %rax
cmpq %r13, %rax
jae 0x163ef
movq (%rsp), %rax
leaq (%rax,%rbx), %rdi
movl %ebp, %esi
callq 0x15edf
addq %rax, %rbx
jmp 0x16321
cmpq %r13, %rbx
jae 0x163da
movq (%rsp), %rax
movb $0x0, (%rax,%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
xorl %eax, %eax
cmpl $0x10000, %ebp # imm = 0x10000
adcq $-0x2, %rax
cmpq %r13, %rbx
jae 0x16408
movq (%rsp), %rcx
movb $0x0, (%rcx,%rbx)
addq %r12, %rax
cmpq %r14, %rax
jae 0x163da
leaq 0x1(%rax), %r12
movzwl (%r15,%rax,2), %edi
cmpl $0x7f, %edi
ja 0x16426
incq %rbx
movq %r12, %rax
jmp 0x1640b
movl %edi, %ecx
andl $0xfc00, %ecx # imm = 0xFC00
cmpl $0xd800, %ecx # imm = 0xD800
setne %cl
cmpq %r14, %r12
setae %dl
orb %cl, %dl
jne 0x16475
movzwl 0x2(%r15,%rax,2), %ecx
movl %ecx, %edx
andl $0xfc00, %edx # imm = 0xFC00
cmpl $0xdc00, %edx # imm = 0xDC00
jne 0x16475
addq $0x2, %rax
shll $0xa, %edi
andl $0xffc00, %edi # imm = 0xFFC00
andl $0x3ff, %ecx # imm = 0x3FF
addl %ecx, %edi
addl $0x10000, %edi # imm = 0x10000
movq %rax, %r12
callq 0x15eae
addq %rax, %rbx
movq %r12, %rax
jmp 0x1640b
| utf8_encode_buf16:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r13, rsi
mov [rsp+38h+var_38], rdi
xor r12d, r12d
xor ebx, ebx
loc_16321:
cmp r12, r14
jnb loc_163CD
lea rax, [r12+1]
movzx ebp, word ptr [r15+r12*2]
cmp ebp, 7Fh
ja short loc_16356
lea rcx, [rbx+1]
cmp rcx, r13
jnb loc_163EC
mov rdx, [rsp+38h+var_38]
mov [rdx+rbx], bpl
mov r12, rax
mov rbx, rcx
jmp short loc_16321
loc_16356:
mov ecx, ebp
and ecx, 0FC00h
cmp ecx, 0D800h
setnz cl
cmp rax, r14
setnb dl
or dl, cl
jnz short loc_163A4
movzx ecx, word ptr [r15+r12*2+2]
mov edx, ecx
and edx, 0FC00h
cmp edx, 0DC00h
jnz short loc_163A4
add r12, 2
shl ebp, 0Ah
and ebp, 0FFC00h
and ecx, 3FFh
add ebp, ecx
add ebp, 10000h
jmp short loc_163A7
loc_163A4:
mov r12, rax
loc_163A7:
mov edi, ebp
call utf8_encode_len
add rax, rbx
cmp rax, r13
jnb short loc_163EF
mov rax, [rsp+38h+var_38]
lea rdi, [rax+rbx]
mov esi, ebp
call utf8_encode
add rbx, rax
jmp loc_16321
loc_163CD:
cmp rbx, r13
jnb short loc_163DA
mov rax, [rsp+38h+var_38]
mov byte ptr [rax+rbx], 0
loc_163DA:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_163EC:
mov r12, rax
loc_163EF:
xor eax, eax
cmp ebp, 10000h
adc rax, 0FFFFFFFFFFFFFFFEh
cmp rbx, r13
jnb short loc_16408
mov rcx, [rsp+38h+var_38]
mov byte ptr [rcx+rbx], 0
loc_16408:
add rax, r12
loc_1640B:
cmp rax, r14
jnb short loc_163DA
lea r12, [rax+1]
movzx edi, word ptr [r15+rax*2]
cmp edi, 7Fh
ja short loc_16426
inc rbx
mov rax, r12
jmp short loc_1640B
loc_16426:
mov ecx, edi
and ecx, 0FC00h
cmp ecx, 0D800h
setnz cl
cmp r12, r14
setnb dl
or dl, cl
jnz short loc_16475
movzx ecx, word ptr [r15+rax*2+2]
mov edx, ecx
and edx, 0FC00h
cmp edx, 0DC00h
jnz short loc_16475
add rax, 2
shl edi, 0Ah
and edi, 0FFC00h
and ecx, 3FFh
add edi, ecx
add edi, 10000h
mov r12, rax
loc_16475:
call utf8_encode_len
add rbx, rax
mov rax, r12
jmp short loc_1640B
| unsigned long long utf8_encode_buf16(long long a1, unsigned long long a2, long long a3, unsigned long long a4)
{
unsigned long long v6; // r12
unsigned long long v7; // rbx
unsigned int v8; // ebp
__int16 v9; // cx
unsigned long long v11; // rax
unsigned long long v12; // r12
unsigned int v13; // edi
v6 = 0LL;
v7 = 0LL;
while ( v6 < a4 )
{
v8 = *(unsigned __int16 *)(a3 + 2 * v6);
if ( v8 > 0x7F )
{
if ( (v8 & 0xFC00) != 55296 || v6 + 1 >= a4 || (v9 = *(_WORD *)(a3 + 2 * v6 + 2), (v9 & 0xFC00) != 0xDC00) )
{
++v6;
}
else
{
v6 += 2LL;
v8 = (v9 & 0x3FF) + ((v8 << 10) & 0xFFC00) + 0x10000;
}
if ( v7 + utf8_encode_len(v8) >= a2 )
goto LABEL_16;
v7 += utf8_encode((_BYTE *)(a1 + v7), v8);
}
else
{
if ( v7 + 1 >= a2 )
{
++v6;
LABEL_16:
if ( v7 < a2 )
*(_BYTE *)(a1 + v7) = 0;
v11 = v6 + (v8 < 0x10000) - 2LL;
while ( v11 < a4 )
{
v12 = v11 + 1;
v13 = *(unsigned __int16 *)(a3 + 2 * v11);
if ( v13 > 0x7F )
{
if ( (v13 & 0xFC00) == 55296 && v12 < a4 && (*(_WORD *)(a3 + 2 * v11 + 2) & 0xFC00) == 0xDC00 )
{
v13 = (*(_WORD *)(a3 + 2 * v11 + 2) & 0x3FF) + ((v13 << 10) & 0xFFC00) + 0x10000;
v12 = v11 + 2;
}
v7 += utf8_encode_len(v13);
v11 = v12;
}
else
{
++v7;
++v11;
}
}
return v7;
}
*(_BYTE *)(a1 + v7) = v8;
++v6;
++v7;
}
}
if ( v7 < a2 )
*(_BYTE *)(a1 + v7) = 0;
return v7;
}
| utf8_encode_buf16:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R13,RSI
MOV qword ptr [RSP],RDI
XOR R12D,R12D
XOR EBX,EBX
LAB_00116321:
CMP R12,R14
JNC 0x001163cd
LEA RAX,[R12 + 0x1]
MOVZX EBP,word ptr [R15 + R12*0x2]
CMP EBP,0x7f
JA 0x00116356
LEA RCX,[RBX + 0x1]
CMP RCX,R13
JNC 0x001163ec
MOV RDX,qword ptr [RSP]
MOV byte ptr [RDX + RBX*0x1],BPL
MOV R12,RAX
MOV RBX,RCX
JMP 0x00116321
LAB_00116356:
MOV ECX,EBP
AND ECX,0xfc00
CMP ECX,0xd800
SETNZ CL
CMP RAX,R14
SETNC DL
OR DL,CL
JNZ 0x001163a4
MOVZX ECX,word ptr [R15 + R12*0x2 + 0x2]
MOV EDX,ECX
AND EDX,0xfc00
CMP EDX,0xdc00
JNZ 0x001163a4
ADD R12,0x2
SHL EBP,0xa
AND EBP,0xffc00
AND ECX,0x3ff
ADD EBP,ECX
ADD EBP,0x10000
JMP 0x001163a7
LAB_001163a4:
MOV R12,RAX
LAB_001163a7:
MOV EDI,EBP
CALL 0x00115eae
ADD RAX,RBX
CMP RAX,R13
JNC 0x001163ef
MOV RAX,qword ptr [RSP]
LEA RDI,[RAX + RBX*0x1]
MOV ESI,EBP
CALL 0x00115edf
ADD RBX,RAX
JMP 0x00116321
LAB_001163cd:
CMP RBX,R13
JNC 0x001163da
MOV RAX,qword ptr [RSP]
MOV byte ptr [RAX + RBX*0x1],0x0
LAB_001163da:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001163ec:
MOV R12,RAX
LAB_001163ef:
XOR EAX,EAX
CMP EBP,0x10000
ADC RAX,-0x2
CMP RBX,R13
JNC 0x00116408
MOV RCX,qword ptr [RSP]
MOV byte ptr [RCX + RBX*0x1],0x0
LAB_00116408:
ADD RAX,R12
LAB_0011640b:
CMP RAX,R14
JNC 0x001163da
LEA R12,[RAX + 0x1]
MOVZX EDI,word ptr [R15 + RAX*0x2]
CMP EDI,0x7f
JA 0x00116426
INC RBX
MOV RAX,R12
JMP 0x0011640b
LAB_00116426:
MOV ECX,EDI
AND ECX,0xfc00
CMP ECX,0xd800
SETNZ CL
CMP R12,R14
SETNC DL
OR DL,CL
JNZ 0x00116475
MOVZX ECX,word ptr [R15 + RAX*0x2 + 0x2]
MOV EDX,ECX
AND EDX,0xfc00
CMP EDX,0xdc00
JNZ 0x00116475
ADD RAX,0x2
SHL EDI,0xa
AND EDI,0xffc00
AND ECX,0x3ff
ADD EDI,ECX
ADD EDI,0x10000
MOV R12,RAX
LAB_00116475:
CALL 0x00115eae
ADD RBX,RAX
MOV RAX,R12
JMP 0x0011640b
|
ulong utf8_encode_buf16(long param_1,ulong param_2,long param_3,ulong param_4)
{
ushort uVar1;
ulong uVar2;
long lVar3;
uint uVar4;
ulong uVar5;
uint uVar6;
ulong uVar7;
uVar5 = 0;
uVar2 = 0;
while( true ) {
while( true ) {
if (param_4 <= uVar2) {
if (uVar5 < param_2) {
*(int1 *)(param_1 + uVar5) = 0;
}
return uVar5;
}
uVar7 = uVar2 + 1;
uVar1 = *(ushort *)(param_3 + uVar2 * 2);
uVar6 = (uint)uVar1;
if (uVar1 < 0x80) break;
if ((uVar7 < param_4 && (uVar1 & 0xfc00) == 0xd800) &&
(uVar4 = (uint)*(ushort *)(param_3 + 2 + uVar2 * 2), (uVar4 & 0xfc00) == 0xdc00)) {
uVar7 = uVar2 + 2;
uVar6 = (uVar1 & 0x3ff) * 0x400 + (uVar4 & 0x3ff) + 0x10000;
}
lVar3 = utf8_encode_len(uVar6);
if (param_2 <= lVar3 + uVar5) goto LAB_001163ef;
lVar3 = utf8_encode(param_1 + uVar5,uVar6);
uVar5 = uVar5 + lVar3;
uVar2 = uVar7;
}
if (param_2 <= uVar5 + 1) break;
*(char *)(param_1 + uVar5) = (char)uVar1;
uVar5 = uVar5 + 1;
uVar2 = uVar7;
}
LAB_001163ef:
if (uVar5 < param_2) {
*(int1 *)(param_1 + uVar5) = 0;
}
uVar2 = ((ulong)(uVar6 < 0x10000) - 2) + uVar7;
while (uVar2 < param_4) {
uVar7 = uVar2 + 1;
uVar1 = *(ushort *)(param_3 + uVar2 * 2);
uVar6 = (uint)uVar1;
if (uVar1 < 0x80) {
uVar5 = uVar5 + 1;
uVar2 = uVar7;
}
else {
if ((uVar7 < param_4 && (uVar1 & 0xfc00) == 0xd800) &&
(uVar4 = (uint)*(ushort *)(param_3 + 2 + uVar2 * 2), (uVar4 & 0xfc00) == 0xdc00)) {
uVar6 = (uVar1 & 0x3ff) * 0x400 + (uVar4 & 0x3ff) + 0x10000;
uVar7 = uVar2 + 2;
}
uVar2 = uVar7;
lVar3 = utf8_encode_len(uVar6);
uVar5 = uVar5 + lVar3;
}
}
return uVar5;
}
| |
24,665 | utf8_encode_buf16 | bluesky950520[P]quickjs/cutils.c | size_t utf8_encode_buf16(char *dest, size_t dest_len, const uint16_t *src, size_t src_len)
{
size_t i, j;
uint32_t c;
for (i = j = 0; i < src_len;) {
c = src[i++];
if (c < 0x80) {
if (j + 1 >= dest_len)
goto overflow;
dest[j++] = c;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
if (j + utf8_encode_len(c) >= dest_len)
goto overflow;
j += utf8_encode((uint8_t *)dest + j, c);
}
}
if (j < dest_len)
dest[j] = '\0';
return j;
overflow:
i -= 1 + (c > 0xFFFF);
if (j < dest_len)
dest[j] = '\0';
while (i < src_len) {
c = src[i++];
if (c < 0x80) {
j++;
} else {
if (is_hi_surrogate(c) && i < src_len && is_lo_surrogate(src[i]))
c = from_surrogate(c, src[i++]);
j += utf8_encode_len(c);
}
}
return j;
} | O3 | c | utf8_encode_buf16:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r15
testq %rcx, %rcx
je 0x1c4aa
movq %rcx, %rbx
movq %rdx, %r14
xorl %r13d, %r13d
xorl %ecx, %ecx
leaq 0x1(%rcx), %rbp
movzwl (%r14,%rcx,2), %esi
cmpl $0x7f, %esi
ja 0x1c41d
leaq 0x1(%r13), %rax
cmpq %r12, %rax
jae 0x1c4bf
movb %sil, (%r15,%r13)
jmp 0x1c499
movl %esi, %eax
andl $0xfc00, %eax # imm = 0xFC00
cmpl $0xd800, %eax # imm = 0xD800
setne %al
cmpq %rbx, %rbp
setae %dl
orb %al, %dl
jne 0x1c476
movzwl 0x2(%r14,%rcx,2), %edx
movl %edx, %edi
andl $0xfc00, %edi # imm = 0xFC00
movl $0x3, %eax
cmpl $0xdc00, %edi # imm = 0xDC00
jne 0x1c485
addq $0x2, %rcx
shll $0xa, %esi
andl $0xffc00, %esi # imm = 0xFFC00
andl $0x3ff, %edx # imm = 0x3FF
addl %edx, %esi
addl $0x10000, %esi # imm = 0x10000
movl $0x4, %eax
movq %rcx, %rbp
jmp 0x1c485
cmpl $0x800, %esi # imm = 0x800
movl $0x3, %eax
sbbq $0x0, %rax
addq %r13, %rax
cmpq %r12, %rax
jae 0x1c4bf
leaq (%r15,%r13), %rdi
callq 0x1bfb4
addq %r13, %rax
movq %rax, %r13
movq %rbp, %rcx
cmpq %rbx, %rbp
jb 0x1c3fc
jmp 0x1c4ac
xorl %eax, %eax
cmpq %r12, %rax
jae 0x1c559
movb $0x0, (%r15,%rax)
jmp 0x1c559
xorl %edx, %edx
cmpl $0x10000, %esi # imm = 0x10000
adcq $-0x2, %rdx
addq %rbp, %rdx
cmpq %r12, %r13
jae 0x1c4d8
movb $0x0, (%r15,%r13)
movq %r13, %rax
cmpq %rbx, %rdx
jae 0x1c559
leaq 0x1(%rdx), %rcx
movzwl (%r14,%rdx,2), %esi
cmpw $0x7f, %si
ja 0x1c4f4
incq %rax
jmp 0x1c551
movl %esi, %edi
andl $0xfc00, %edi # imm = 0xFC00
cmpl $0xd800, %edi # imm = 0xD800
setne %dil
cmpq %rbx, %rcx
setae %r8b
orb %dil, %r8b
jne 0x1c53c
movzwl 0x2(%r14,%rdx,2), %edi
andl $0xfc00, %edi # imm = 0xFC00
xorl %esi, %esi
cmpl $0xdc00, %edi # imm = 0xDC00
sete %dil
jne 0x1c533
addq $0x2, %rdx
movq %rdx, %rcx
movb %dil, %sil
addq $0x3, %rsi
jmp 0x1c54e
movzwl %si, %edx
cmpl $0x800, %edx # imm = 0x800
movl $0x3, %esi
sbbq $0x0, %rsi
addq %rsi, %rax
movq %rcx, %rdx
cmpq %rbx, %rcx
jb 0x1c4e0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| utf8_encode_buf16:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
mov r15, rdi
test rcx, rcx
jz loc_1C4AA
mov rbx, rcx
mov r14, rdx
xor r13d, r13d
xor ecx, ecx
loc_1C3FC:
lea rbp, [rcx+1]
movzx esi, word ptr [r14+rcx*2]
cmp esi, 7Fh
ja short loc_1C41D
lea rax, [r13+1]
cmp rax, r12
jnb loc_1C4BF
mov [r15+r13], sil
jmp short loc_1C499
loc_1C41D:
mov eax, esi
and eax, 0FC00h
cmp eax, 0D800h
setnz al
cmp rbp, rbx
setnb dl
or dl, al
jnz short loc_1C476
movzx edx, word ptr [r14+rcx*2+2]
mov edi, edx
and edi, 0FC00h
mov eax, 3
cmp edi, 0DC00h
jnz short loc_1C485
add rcx, 2
shl esi, 0Ah
and esi, 0FFC00h
and edx, 3FFh
add esi, edx
add esi, 10000h
mov eax, 4
mov rbp, rcx
jmp short loc_1C485
loc_1C476:
cmp esi, 800h
mov eax, 3
sbb rax, 0
loc_1C485:
add rax, r13
cmp rax, r12
jnb short loc_1C4BF
lea rdi, [r15+r13]
call utf8_encode
add rax, r13
loc_1C499:
mov r13, rax
mov rcx, rbp
cmp rbp, rbx
jb loc_1C3FC
jmp short loc_1C4AC
loc_1C4AA:
xor eax, eax
loc_1C4AC:
cmp rax, r12
jnb loc_1C559
mov byte ptr [r15+rax], 0
jmp loc_1C559
loc_1C4BF:
xor edx, edx
cmp esi, offset loc_10000
adc rdx, 0FFFFFFFFFFFFFFFEh
add rdx, rbp
cmp r13, r12
jnb short loc_1C4D8
mov byte ptr [r15+r13], 0
loc_1C4D8:
mov rax, r13
cmp rdx, rbx
jnb short loc_1C559
loc_1C4E0:
lea rcx, [rdx+1]
movzx esi, word ptr [r14+rdx*2]
cmp si, 7Fh
ja short loc_1C4F4
inc rax
jmp short loc_1C551
loc_1C4F4:
mov edi, esi
and edi, 0FC00h
cmp edi, 0D800h
setnz dil
cmp rcx, rbx
setnb r8b
or r8b, dil
jnz short loc_1C53C
movzx edi, word ptr [r14+rdx*2+2]
and edi, 0FC00h
xor esi, esi
cmp edi, 0DC00h
setz dil
jnz short loc_1C533
add rdx, 2
mov rcx, rdx
loc_1C533:
mov sil, dil
add rsi, 3
jmp short loc_1C54E
loc_1C53C:
movzx edx, si
cmp edx, 800h
mov esi, 3
sbb rsi, 0
loc_1C54E:
add rax, rsi
loc_1C551:
mov rdx, rcx
cmp rcx, rbx
jb short loc_1C4E0
loc_1C559:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long utf8_encode_buf16(long long a1, unsigned long long a2, long long a3, unsigned long long a4)
{
unsigned long long v7; // r13
unsigned long long v8; // rcx
unsigned long long v9; // rbp
unsigned int v10; // esi
unsigned long long result; // rax
long long v12; // rax
unsigned long long v13; // rdx
unsigned long long v14; // rcx
unsigned __int16 v15; // si
long long v16; // rsi
long long v17; // rsi
if ( a4 )
{
v7 = 0LL;
v8 = 0LL;
while ( 1 )
{
v9 = v8 + 1;
v10 = *(unsigned __int16 *)(a3 + 2 * v8);
if ( v10 > 0x7F )
{
if ( (v10 & 0xFC00) != 55296 || v9 >= a4 )
{
v12 = 3LL - (v10 < 0x800);
}
else
{
v12 = 3LL;
if ( (*(_WORD *)(a3 + 2 * v8 + 2) & 0xFC00) == 0xDC00 )
{
v10 = (*(_WORD *)(a3 + 2 * v8 + 2) & 0x3FF) + ((v10 << 10) & 0xFFC00) + 0x10000;
v12 = 4LL;
v9 = v8 + 2;
}
}
if ( v7 + v12 >= a2 )
{
LABEL_17:
v13 = v9 + (v10 < (unsigned int)&loc_10000) - 2LL;
if ( v7 < a2 )
*(_BYTE *)(a1 + v7) = 0;
result = v7;
if ( v13 < a4 )
{
do
{
v14 = v13 + 1;
v15 = *(_WORD *)(a3 + 2 * v13);
if ( v15 > 0x7Fu )
{
if ( (v15 & 0xFC00) != 55296 || v14 >= a4 )
{
v17 = 3LL - (v15 < 0x800u);
}
else
{
v16 = 0LL;
if ( (*(_WORD *)(a3 + 2 * v13 + 2) & 0xFC00) == 0xDC00 )
v14 = v13 + 2;
LOBYTE(v16) = (*(_WORD *)(a3 + 2 * v13 + 2) & 0xFC00) == 56320;
v17 = v16 + 3;
}
result += v17;
}
else
{
++result;
}
v13 = v14;
}
while ( v14 < a4 );
}
return result;
}
result = v7 + utf8_encode((_BYTE *)(a1 + v7), v10);
}
else
{
result = v7 + 1;
if ( v7 + 1 >= a2 )
goto LABEL_17;
*(_BYTE *)(a1 + v7) = v10;
}
v7 = result;
v8 = v9;
if ( v9 >= a4 )
goto LABEL_15;
}
}
result = 0LL;
LABEL_15:
if ( result < a2 )
*(_BYTE *)(a1 + result) = 0;
return result;
}
| utf8_encode_buf16:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RSI
MOV R15,RDI
TEST RCX,RCX
JZ 0x0011c4aa
MOV RBX,RCX
MOV R14,RDX
XOR R13D,R13D
XOR ECX,ECX
LAB_0011c3fc:
LEA RBP,[RCX + 0x1]
MOVZX ESI,word ptr [R14 + RCX*0x2]
CMP ESI,0x7f
JA 0x0011c41d
LEA RAX,[R13 + 0x1]
CMP RAX,R12
JNC 0x0011c4bf
MOV byte ptr [R15 + R13*0x1],SIL
JMP 0x0011c499
LAB_0011c41d:
MOV EAX,ESI
AND EAX,0xfc00
CMP EAX,0xd800
SETNZ AL
CMP RBP,RBX
SETNC DL
OR DL,AL
JNZ 0x0011c476
MOVZX EDX,word ptr [R14 + RCX*0x2 + 0x2]
MOV EDI,EDX
AND EDI,0xfc00
MOV EAX,0x3
CMP EDI,0xdc00
JNZ 0x0011c485
ADD RCX,0x2
SHL ESI,0xa
AND ESI,0xffc00
AND EDX,0x3ff
ADD ESI,EDX
ADD ESI,0x10000
MOV EAX,0x4
MOV RBP,RCX
JMP 0x0011c485
LAB_0011c476:
CMP ESI,0x800
MOV EAX,0x3
SBB RAX,0x0
LAB_0011c485:
ADD RAX,R13
CMP RAX,R12
JNC 0x0011c4bf
LEA RDI,[R15 + R13*0x1]
CALL 0x0011bfb4
ADD RAX,R13
LAB_0011c499:
MOV R13,RAX
MOV RCX,RBP
CMP RBP,RBX
JC 0x0011c3fc
JMP 0x0011c4ac
LAB_0011c4aa:
XOR EAX,EAX
LAB_0011c4ac:
CMP RAX,R12
JNC 0x0011c559
MOV byte ptr [R15 + RAX*0x1],0x0
JMP 0x0011c559
LAB_0011c4bf:
XOR EDX,EDX
CMP ESI,0x10000
ADC RDX,-0x2
ADD RDX,RBP
CMP R13,R12
JNC 0x0011c4d8
MOV byte ptr [R15 + R13*0x1],0x0
LAB_0011c4d8:
MOV RAX,R13
CMP RDX,RBX
JNC 0x0011c559
LAB_0011c4e0:
LEA RCX,[RDX + 0x1]
MOVZX ESI,word ptr [R14 + RDX*0x2]
CMP SI,0x7f
JA 0x0011c4f4
INC RAX
JMP 0x0011c551
LAB_0011c4f4:
MOV EDI,ESI
AND EDI,0xfc00
CMP EDI,0xd800
SETNZ DIL
CMP RCX,RBX
SETNC R8B
OR R8B,DIL
JNZ 0x0011c53c
MOVZX EDI,word ptr [R14 + RDX*0x2 + 0x2]
AND EDI,0xfc00
XOR ESI,ESI
CMP EDI,0xdc00
SETZ DIL
JNZ 0x0011c533
ADD RDX,0x2
MOV RCX,RDX
LAB_0011c533:
MOV SIL,DIL
ADD RSI,0x3
JMP 0x0011c54e
LAB_0011c53c:
MOVZX EDX,SI
CMP EDX,0x800
MOV ESI,0x3
SBB RSI,0x0
LAB_0011c54e:
ADD RAX,RSI
LAB_0011c551:
MOV RDX,RCX
CMP RCX,RBX
JC 0x0011c4e0
LAB_0011c559:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong utf8_encode_buf16(long param_1,ulong param_2,long param_3,ulong param_4)
{
ushort uVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
uint uVar8;
bool bVar9;
if (param_4 == 0) {
uVar7 = 0;
}
else {
uVar4 = 0;
uVar3 = 0;
do {
uVar6 = uVar4 + 1;
uVar1 = *(ushort *)(param_3 + uVar4 * 2);
uVar8 = (uint)uVar1;
if (uVar1 < 0x80) {
uVar7 = uVar3 + 1;
if (param_2 <= uVar7) {
LAB_0011c4bf:
uVar6 = ((ulong)(uVar8 < 0x10000) - 2) + uVar6;
if (uVar3 < param_2) {
*(int1 *)(param_1 + uVar3) = 0;
}
while (uVar6 < param_4) {
uVar7 = uVar6 + 1;
uVar1 = *(ushort *)(param_3 + uVar6 * 2);
if (uVar1 < 0x80) {
uVar3 = uVar3 + 1;
uVar6 = uVar7;
}
else {
if (uVar7 < param_4 && (uVar1 & 0xfc00) == 0xd800) {
bVar9 = (*(ushort *)(param_3 + 2 + uVar6 * 2) & 0xfc00) == 0xdc00;
if (bVar9) {
uVar7 = uVar6 + 2;
}
uVar4 = (ulong)bVar9;
}
else {
uVar4 = -(ulong)(uVar1 < 0x800);
}
uVar3 = uVar3 + uVar4 + 3;
uVar6 = uVar7;
}
}
return uVar3;
}
*(char *)(param_1 + uVar3) = (char)uVar1;
uVar4 = uVar6;
}
else {
if (uVar6 < param_4 && (uVar1 & 0xfc00) == 0xd800) {
uVar5 = (uint)*(ushort *)(param_3 + 2 + uVar4 * 2);
lVar2 = 3;
if ((uVar5 & 0xfc00) == 0xdc00) {
uVar6 = uVar4 + 2;
uVar8 = (uVar1 & 0x3ff) * 0x400 + (uVar5 & 0x3ff) + 0x10000;
lVar2 = 4;
}
}
else {
lVar2 = 3 - (ulong)(uVar1 < 0x800);
}
if (param_2 <= lVar2 + uVar3) goto LAB_0011c4bf;
lVar2 = utf8_encode(param_1 + uVar3);
uVar7 = lVar2 + uVar3;
uVar4 = uVar6;
}
uVar3 = uVar7;
} while (uVar4 < param_4);
}
if (uVar7 < param_2) {
*(int1 *)(param_1 + uVar7) = 0;
}
return uVar7;
}
| |
24,666 | 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>>>>::emplace(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 | std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(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 $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x8(%rdi), %rbp
cmpq %rbp, %rbx
sete %r15b
je 0x573c1
movq 0x8(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %r12
movq 0x8(%rbx), %rdx
cmpq %r12, %rdx
jne 0x573ac
testq %rdx, %rdx
je 0x573bb
movq (%rbx), %rdi
movq %r13, %rsi
callq 0x1fb40
testl %eax, %eax
je 0x573bb
addq $0x30, %rbx
cmpq %rbp, %rbx
sete %r15b
jne 0x5738f
jmp 0x573c1
testb $0x1, %r15b
je 0x573ef
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x57e34
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edx, %edx
jmp 0x573dd
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_38], rdx
mov [rsp+48h+var_40], rsi
mov r14, rdi
mov rbx, [rdi]
mov rbp, [rdi+8]
cmp rbx, rbp
setz r15b
jz short loc_573C1
mov rax, [rsp+48h+var_40]
mov r13, [rax]
mov r12, [rax+8]
loc_5738F:
mov rdx, [rbx+8]
cmp rdx, r12
jnz short loc_573AC
test rdx, rdx
jz short loc_573BB
mov rdi, [rbx]
mov rsi, r13
call _bcmp
test eax, eax
jz short loc_573BB
loc_573AC:
add rbx, 30h ; '0'
cmp rbx, rbp
setz r15b
jnz short loc_5738F
jmp short loc_573C1
loc_573BB:
test r15b, 1
jz short loc_573EF
loc_573C1:
mov rdi, r14
mov rsi, [rsp+48h+var_40]
mov rdx, [rsp+48h+var_38]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; 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>>>::emplace_back<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::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
loc_573DD:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_573EF:
xor edx, edx
jmp short loc_573DD
| long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace(
_QWORD *a1,
long long *a2,
long long a3)
{
_QWORD *v3; // rbx
_QWORD *v4; // rbp
bool v5; // r15
long long v6; // r13
long long v7; // r12
long long v8; // rdx
v3 = (_QWORD *)*a1;
v4 = (_QWORD *)a1[1];
v5 = *a1 == (_QWORD)v4;
if ( (_QWORD *)*a1 == v4 )
goto LABEL_9;
v6 = *a2;
v7 = a2[1];
while ( 1 )
{
v8 = v3[1];
if ( v8 == v7 && (!v8 || !(unsigned int)bcmp(*v3, v6)) )
break;
v3 += 6;
v5 = v3 == v4;
if ( v3 == v4 )
goto LABEL_9;
}
if ( v5 )
{
LABEL_9:
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>>>::emplace_back<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>>(
a1,
a2,
a3);
return a1[1] - 48LL;
}
return (long long)v3;
}
| emplace:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x8],RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
MOV RBP,qword ptr [RDI + 0x8]
CMP RBX,RBP
SETZ R15B
JZ 0x001573c1
MOV RAX,qword ptr [RSP + 0x8]
MOV R13,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
LAB_0015738f:
MOV RDX,qword ptr [RBX + 0x8]
CMP RDX,R12
JNZ 0x001573ac
TEST RDX,RDX
JZ 0x001573bb
MOV RDI,qword ptr [RBX]
MOV RSI,R13
CALL 0x0011fb40
TEST EAX,EAX
JZ 0x001573bb
LAB_001573ac:
ADD RBX,0x30
CMP RBX,RBP
SETZ R15B
JNZ 0x0015738f
JMP 0x001573c1
LAB_001573bb:
TEST R15B,0x1
JZ 0x001573ef
LAB_001573c1:
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x00157e34
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x30
MOV DL,0x1
LAB_001573dd:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001573ef:
XOR EDX,EDX
JMP 0x001573dd
|
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > > >::emplace(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>&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::emplace(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*this,string *param_1,basic_json *param_2)
{
int8 *puVar1;
void *__s2;
size_t sVar2;
size_t __n;
int iVar3;
int8 extraout_RDX;
int8 uVar4;
int8 *puVar5;
bool bVar6;
int1 auVar7 [16];
puVar5 = *(int8 **)this;
puVar1 = *(int8 **)(this + 8);
bVar6 = puVar5 == puVar1;
if (!bVar6) {
__s2 = *(void **)param_1;
sVar2 = *(size_t *)(param_1 + 8);
do {
__n = puVar5[1];
if ((__n == sVar2) && ((__n == 0 || (iVar3 = bcmp((void *)*puVar5,__s2,__n), iVar3 == 0)))) {
if (!bVar6) {
uVar4 = 0;
goto LAB_001573dd;
}
break;
}
puVar5 = puVar5 + 6;
bVar6 = puVar5 == puVar1;
} while (!bVar6);
}
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>>>>
::
emplace_back<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>>
((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)this,param_1,param_2);
puVar5 = (int8 *)(*(long *)(this + 8) + -0x30);
uVar4 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_001573dd:
auVar7._8_8_ = uVar4;
auVar7._0_8_ = puVar5;
return auVar7;
}
| |
24,667 | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O1 | cpp | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movq -0x8(%rax), %rcx
testq %rcx, %rcx
je 0x74376
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0x20(%rsp)
movb $0x1, (%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x744e3
leaq 0x80(%rbx), %rdi
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
callq *0x98(%rbx)
testb %al, %al
jne 0x74376
leaq 0xa8(%rbx), %rsi
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x6d6e4
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movb (%rax), %cl
movb (%r14), %dl
movb %dl, (%rax)
movb %cl, (%r14)
movq 0x8(%rax), %rcx
movq 0x8(%r14), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%r14)
movq %r14, %rdi
callq 0x6d512
movq 0x10(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x10(%rbx)
subl $0x1, 0x38(%rbx)
jae 0x74394
movl $0x3f, 0x38(%rbx)
addq $-0x8, 0x30(%rbx)
cmpq %rcx, 0x8(%rbx)
je 0x744d3
movq -0x10(%rax), %rcx
testq %rcx, %rcx
je 0x744d3
movb (%rcx), %cl
decb %cl
cmpb $0x1, %cl
ja 0x744d3
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
movq -0x10(%rax), %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x751c2
leaq 0x8(%rsp), %r13
movq %rsp, %r15
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movq %r12, 0x18(%rsp)
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x7440c
cmpl $0x1, %ecx
jne 0x74417
movq $0x0, 0x8(%rsp)
jmp 0x7441c
movq $0x0, 0x10(%rsp)
jmp 0x7441c
movq %r12, 0x18(%rsp)
cmpl $0x2, %ecx
je 0x74435
cmpl $0x1, %ecx
jne 0x74444
movq 0x8(%rax), %rax
addq $0x8, %rax
movq %rax, 0x8(%rsp)
jmp 0x7444d
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x7444d
movq $0x1, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x75602
testb %al, %al
jne 0x744d3
movq %r14, %rdi
callq 0x75284
cmpb $0x9, (%rax)
je 0x744a4
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x7448f
cmpl $0x1, %eax
jne 0x7449a
movq 0x28(%rsp), %rdi
callq 0xa3e0
movq %rax, 0x28(%rsp)
jmp 0x743db
addq $0x10, 0x30(%rsp)
jmp 0x743db
incq 0x38(%rsp)
jmp 0x743db
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq 0x20(%rsp), %rax
leaq 0x50(%rsp), %rdx
movq %rax, (%rdx)
movups 0x28(%rsp), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x38(%rsp), %rax
movq %rax, 0x18(%rdx)
movq %rsp, %rdi
callq 0x75358
movb $0x1, %al
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0xa1e0
| _ZN8nlohmann16json_abi_v3_11_26detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE10end_objectEv:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 70h
mov rbx, rdi
mov rax, [rdi+10h]
mov rcx, [rax-8]
test rcx, rcx
jz short loc_74376
sub rax, [rbx+8]
shr rax, 3
dec eax
mov dword ptr [rsp+98h+var_78], eax
mov byte ptr [rsp+98h+var_98], 1
cmp qword ptr [rbx+90h], 0
jz loc_744E3
lea rdi, [rbx+80h]
lea rsi, [rsp+98h+var_78]
mov rdx, rsp
call qword ptr [rbx+98h]
test al, al
jnz short loc_74376
lea rsi, [rbx+0A8h]
lea r14, [rsp+98h+var_58]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEEC2ERKSD_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::basic_json(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> const&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov cl, [rax]
mov dl, [r14]
mov [rax], dl
mov [r14], cl
mov rcx, [rax+8]
mov rdx, [r14+8]
mov [rax+8], rdx
mov [r14+8], rcx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
loc_74376:
mov rax, [rbx+10h]
lea rcx, [rax-8]
mov [rbx+10h], rcx
sub dword ptr [rbx+38h], 1
jnb short loc_74394
mov dword ptr [rbx+38h], 3Fh ; '?'
add qword ptr [rbx+30h], 0FFFFFFFFFFFFFFF8h
loc_74394:
cmp [rbx+8], rcx
jz loc_744D3
mov rcx, [rax-10h]
test rcx, rcx
jz loc_744D3
mov cl, [rcx]
dec cl
cmp cl, 1
ja loc_744D3
mov r12, 8000000000000000h
mov rsi, [rax-10h]
lea r14, [rsp+98h+var_78]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5beginEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::begin(void)
lea r13, [rsp+98h+var_90]
mov r15, rsp
loc_743DB:
mov rax, [rbx+10h]
mov rax, [rax-8]
mov [rsp+98h+var_98], rax
xorps xmm0, xmm0
movups xmmword ptr [r13+0], xmm0
mov [rsp+98h+var_80], r12
movzx ecx, byte ptr [rax]
cmp ecx, 2
jz short loc_7440C
cmp ecx, 1
jnz short loc_74417
mov [rsp+98h+var_90], 0
jmp short loc_7441C
loc_7440C:
mov [rsp+98h+var_88], 0
jmp short loc_7441C
loc_74417:
mov [rsp+98h+var_80], r12
loc_7441C:
cmp ecx, 2
jz short loc_74435
cmp ecx, 1
jnz short loc_74444
mov rax, [rax+8]
add rax, 8
mov [rsp+98h+var_90], rax
jmp short loc_7444D
loc_74435:
mov rax, [rax+8]
mov rax, [rax+8]
mov [rsp+98h+var_88], rax
jmp short loc_7444D
loc_74444:
mov [rsp+98h+var_80], 1
loc_7444D:
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jnz short loc_744D3
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEptEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_744A4
mov rax, [rsp+98h+var_78]
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_7448F
cmp eax, 1
jnz short loc_7449A
mov rdi, qword ptr [rsp+98h+var_70]
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov qword ptr [rsp+98h+var_70], rax
jmp loc_743DB
loc_7448F:
add qword ptr [rsp+98h+var_70+8], 10h
jmp loc_743DB
loc_7449A:
inc [rsp+98h+var_60]
jmp loc_743DB
loc_744A4:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+98h+var_78]
lea rdx, [rsp+98h+var_48]
mov [rdx], rax
movups xmm0, [rsp+98h+var_70]
movups xmmword ptr [rdx+8], xmm0
mov rax, [rsp+98h+var_60]
mov [rdx+18h], rax
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_744D3:
mov al, 1
add rsp, 70h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_744E3:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
| char nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end_object(
long long a1)
{
long long v1; // rax
char *v2; // rax
char v3; // cl
long long v4; // rcx
long long v5; // rax
_BYTE *v7; // rcx
int v8; // ecx
int v9; // eax
long long v10; // rsi
unsigned __int8 *v12; // [rsp+0h] [rbp-98h] BYREF
__int128 v13; // [rsp+8h] [rbp-90h]
long long v14; // [rsp+18h] [rbp-80h]
unsigned __int8 *v15; // [rsp+20h] [rbp-78h] BYREF
__int128 v16; // [rsp+28h] [rbp-70h]
long long v17; // [rsp+38h] [rbp-60h]
_BYTE v18[8]; // [rsp+40h] [rbp-58h] BYREF
long long v19; // [rsp+48h] [rbp-50h]
unsigned __int8 *v20; // [rsp+50h] [rbp-48h]
__int128 v21; // [rsp+58h] [rbp-40h]
long long v22; // [rsp+68h] [rbp-30h]
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v1 - 8) )
{
LODWORD(v15) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1;
LOBYTE(v12) = 1;
if ( !*(_QWORD *)(a1 + 144) )
std::__throw_bad_function_call();
if ( !(*(unsigned __int8 ( **)(long long, unsigned __int8 **, unsigned __int8 **))(a1 + 152))(
a1 + 128,
&v15,
&v12) )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::basic_json(
(long long)v18,
(unsigned __int8 *)(a1 + 168));
v2 = *(char **)(*(_QWORD *)(a1 + 16) - 8LL);
v3 = *v2;
*v2 = v18[0];
v18[0] = v3;
v4 = *((_QWORD *)v2 + 1);
*((_QWORD *)v2 + 1) = v19;
v19 = v4;
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v18);
}
}
v5 = *(_QWORD *)(a1 + 16);
*(_QWORD *)(a1 + 16) = v5 - 8;
if ( (*(_DWORD *)(a1 + 56))-- == 0 )
{
*(_DWORD *)(a1 + 56) = 63;
*(_QWORD *)(a1 + 48) -= 8LL;
}
if ( *(_QWORD *)(a1 + 8) != v5 - 8 )
{
v7 = *(_BYTE **)(v5 - 16);
if ( v7 )
{
if ( (unsigned __int8)(*v7 - 1) <= 1u )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::begin(
&v15,
*(_QWORD *)(v5 - 16));
while ( 1 )
{
v12 = *(unsigned __int8 **)(*(_QWORD *)(a1 + 16) - 8LL);
v13 = 0LL;
v14 = 0x8000000000000000LL;
v8 = *v12;
if ( v8 == 2 )
{
*((_QWORD *)&v13 + 1) = 0LL;
}
else if ( v8 == 1 )
{
*(_QWORD *)&v13 = 0LL;
}
else
{
v14 = 0x8000000000000000LL;
}
if ( v8 == 2 )
{
*((_QWORD *)&v13 + 1) = *(_QWORD *)(*((_QWORD *)v12 + 1) + 8LL);
}
else if ( v8 == 1 )
{
*(_QWORD *)&v13 = *((_QWORD *)v12 + 1) + 8LL;
}
else
{
v14 = 1LL;
}
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v15,
&v12) )
break;
if ( *(_BYTE *)nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::operator->(&v15) == 9 )
{
v10 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v20 = v15;
v21 = v16;
v22 = v17;
ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
&v12,
v10);
return 1;
}
v9 = *v15;
if ( v9 == 2 )
{
*((_QWORD *)&v16 + 1) += 16LL;
}
else if ( v9 == 1 )
{
*(_QWORD *)&v16 = std::_Rb_tree_increment(v16);
}
else
{
++v17;
}
}
}
}
}
return 1;
}
| |||
24,668 | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object():
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movq -0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x50c68
leaq 0x80(%rbx), %rdi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
decl %esi
pushq $0x1
popq %rdx
callq 0x51230
testb %al, %al
jne 0x50c68
leaq 0xa8(%rbx), %rsi
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x4a842
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movb (%rax), %cl
movb (%r14), %dl
movb %dl, (%rax)
movb %cl, (%r14)
movq 0x8(%rax), %rcx
movq 0x8(%r14), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%r14)
movq %r14, %rdi
callq 0x4a6b0
addq $-0x8, 0x10(%rbx)
leaq 0x30(%rbx), %rdi
callq 0x50912
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x50d0b
movq -0x8(%rax), %rsi
testq %rsi, %rsi
je 0x50d0b
movb (%rsi), %al
decb %al
cmpb $0x1, %al
ja 0x50d0b
movq %rsp, %r14
movq %r14, %rdi
callq 0x5173c
leaq 0x20(%rsp), %r15
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq %r15, %rdi
callq 0x5176c
movq %r14, %rdi
movq %r15, %rsi
callq 0x51762
testb %al, %al
je 0x50d0b
movq %r14, %rdi
callq 0x51792
cmpb $0x9, (%rax)
je 0x50cdb
movq %r14, %rdi
callq 0x51a2c
jmp 0x50ca5
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq (%rsp), %rax
leaq 0x50(%rsp), %rdx
movq %rax, (%rdx)
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x18(%rsp), %rax
movq %rax, 0x18(%rdx)
leaq 0x20(%rsp), %rdi
callq 0x51846
movb $0x1, %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN8nlohmann16json_abi_v3_11_26detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE10end_objectEv:
push r15
push r14
push rbx
sub rsp, 70h
mov rbx, rdi
mov rsi, [rdi+10h]
mov rcx, [rsi-8]
test rcx, rcx
jz short loc_50C68
lea rdi, [rbx+80h]
sub rsi, [rbx+8]
shr rsi, 3
dec esi
push 1
pop rdx
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_26detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_2::detail::parse_event_t,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &)>::operator()(int,nlohmann::json_abi_v3_11_2::detail::parse_event_t,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &)
test al, al
jnz short loc_50C68
lea rsi, [rbx+0A8h]
lea r14, [rsp+88h+var_48]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEEC2ERKSD_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::basic_json(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> const&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov cl, [rax]
mov dl, [r14]
mov [rax], dl
mov [r14], cl
mov rcx, [rax+8]
mov rdx, [r14+8]
mov [rax+8], rdx
mov [r14+8], rcx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
loc_50C68:
add qword ptr [rbx+10h], 0FFFFFFFFFFFFFFF8h
lea rdi, [rbx+30h]; this
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz loc_50D0B
mov rsi, [rax-8]
test rsi, rsi
jz short loc_50D0B
mov al, [rsi]
dec al
cmp al, 1
ja short loc_50D0B
mov r14, rsp
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5beginEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::begin(void)
lea r15, [rsp+88h+var_68]
loc_50CA5:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE3endEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jz short loc_50D0B
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEptEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_50CDB
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEppEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::operator++(void)
jmp short loc_50CA5
loc_50CDB:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+88h+var_88]
lea rdx, [rsp+88h+var_38]
mov [rdx], rax
movups xmm0, [rsp+88h+var_80]
movups xmmword ptr [rdx+8], xmm0
mov rax, [rsp+88h+var_70]
mov [rdx+18h], rax
lea rdi, [rsp+88h+var_68]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_50D0B:
mov al, 1
add rsp, 70h
pop rbx
pop r14
pop r15
retn
| char nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end_object(
_QWORD *a1)
{
long long v1; // rsi
long long v2; // rcx
char *v3; // rax
char v4; // cl
long long v5; // rcx
long long v6; // rax
_BYTE *v7; // rsi
long long v8; // rsi
long long v10; // [rsp+0h] [rbp-88h] BYREF
__int128 v11; // [rsp+8h] [rbp-80h]
long long v12; // [rsp+18h] [rbp-70h]
_BYTE v13[32]; // [rsp+20h] [rbp-68h] BYREF
_BYTE v14[8]; // [rsp+40h] [rbp-48h] BYREF
long long v15; // [rsp+48h] [rbp-40h]
long long v16; // [rsp+50h] [rbp-38h]
__int128 v17; // [rsp+58h] [rbp-30h]
long long v18; // [rsp+68h] [rbp-20h]
v1 = a1[2];
v2 = *(_QWORD *)(v1 - 8);
if ( v2
&& !(unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_2::detail::parse_event_t,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>> &)>::operator()(
a1 + 16,
(unsigned int)((unsigned long long)(v1 - a1[1]) >> 3) - 1,
1LL,
v2) )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::basic_json(
v14,
a1 + 21);
v3 = *(char **)(a1[2] - 8LL);
v4 = *v3;
*v3 = v14[0];
v14[0] = v4;
v5 = *((_QWORD *)v3 + 1);
*((_QWORD *)v3 + 1) = v15;
v15 = v5;
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v14);
}
a1[2] -= 8LL;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 6));
v6 = a1[2];
if ( a1[1] != v6 )
{
v7 = *(_BYTE **)(v6 - 8);
if ( v7 )
{
if ( (unsigned __int8)(*v7 - 1) <= 1u )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::begin(
&v10,
v7);
while ( 1 )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::end(
v13,
*(_QWORD *)(a1[2] - 8LL));
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v10,
v13) )
break;
if ( *(_BYTE *)nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::operator->(&v10) == 9 )
{
v8 = *(_QWORD *)(a1[2] - 8LL);
v16 = v10;
v17 = v11;
v18 = v12;
ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
v13,
v8);
return 1;
}
nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::operator++(&v10);
}
}
}
}
return 1;
}
| end_object:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RSI + -0x8]
TEST RCX,RCX
JZ 0x00150c68
LEA RDI,[RBX + 0x80]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
DEC ESI
PUSH 0x1
POP RDX
CALL 0x00151230
TEST AL,AL
JNZ 0x00150c68
LEA RSI,[RBX + 0xa8]
LEA R14,[RSP + 0x40]
MOV RDI,R14
CALL 0x0014a842
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [R14]
MOV byte ptr [RAX],DL
MOV byte ptr [R14],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [R14 + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [R14 + 0x8],RCX
MOV RDI,R14
CALL 0x0014a6b0
LAB_00150c68:
ADD qword ptr [RBX + 0x10],-0x8
LEA RDI,[RBX + 0x30]
CALL 0x00150912
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00150d0b
MOV RSI,qword ptr [RAX + -0x8]
TEST RSI,RSI
JZ 0x00150d0b
MOV AL,byte ptr [RSI]
DEC AL
CMP AL,0x1
JA 0x00150d0b
MOV R14,RSP
MOV RDI,R14
CALL 0x0015173c
LEA R15,[RSP + 0x20]
LAB_00150ca5:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RDI,R15
CALL 0x0015176c
MOV RDI,R14
MOV RSI,R15
CALL 0x00151762
TEST AL,AL
JZ 0x00150d0b
MOV RDI,R14
CALL 0x00151792
CMP byte ptr [RAX],0x9
JZ 0x00150cdb
MOV RDI,R14
CALL 0x00151a2c
JMP 0x00150ca5
LAB_00150cdb:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RSP]
LEA RDX,[RSP + 0x50]
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
MOVUPS xmmword ptr [RDX + 0x8],XMM0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RDX + 0x18],RAX
LEA RDI,[RSP + 0x20]
CALL 0x00151846
LAB_00150d0b:
MOV AL,0x1
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> > > >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_2::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
*this)
{
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
bVar1;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
*pbVar2;
int8 uVar3;
char cVar4;
char *pcVar5;
int8 local_88;
int4 local_80;
int4 uStack_7c;
int4 uStack_78;
int4 uStack_74;
int8 local_70;
int1 local_68 [32];
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
local_48 [8];
int8 local_40;
int8 local_38;
int4 local_30;
int4 uStack_2c;
int4 uStack_28;
int4 uStack_24;
int8 local_20;
if ((*(long *)(*(long *)(this + 0x10) + -8) != 0) &&
(cVar4 = std::
function<bool(int,nlohmann::json_abi_v3_11_2::detail::parse_event_t,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>&)>
::operator()(this + 0x80,
(int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) + -1,1)
, cVar4 == '\0')) {
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::basic_json(local_48,this + 0xa8);
pbVar2 = *(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
**)(*(long *)(this + 0x10) + -8);
bVar1 = *pbVar2;
*pbVar2 = local_48[0];
uVar3 = *(int8 *)(pbVar2 + 8);
*(int8 *)(pbVar2 + 8) = local_40;
local_48[0] = bVar1;
local_40 = uVar3;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::~basic_json(local_48);
}
*(long *)(this + 0x10) = *(long *)(this + 0x10) + -8;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x30));
if (((*(long *)(this + 8) != *(long *)(this + 0x10)) &&
(pcVar5 = *(char **)(*(long *)(this + 0x10) + -8), pcVar5 != (char *)0x0)) &&
((byte)(*pcVar5 - 1U) < 2)) {
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::begin();
while( true ) {
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::end();
cVar4 = _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(&local_88,local_68);
if (cVar4 == '\0') break;
pcVar5 = (char *)iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::operator->((iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
*)&local_88);
if (*pcVar5 == '\t') {
local_38 = local_88;
local_30 = local_80;
uStack_2c = uStack_7c;
uStack_28 = uStack_78;
uStack_24 = uStack_74;
local_20 = local_70;
_ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(local_68,*(int8 *)(*(long *)(this + 0x10) + -8));
return 1;
}
iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::operator++((iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
*)&local_88);
}
}
return 1;
}
| |
24,669 | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O3 | cpp | nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>::end_object():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movq -0x8(%rax), %rcx
testq %rcx, %rcx
je 0x73544
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0x8(%rsp)
movb $0x1, 0x28(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x736b3
leaq 0x80(%rbx), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq *0x98(%rbx)
testb %al, %al
jne 0x73544
leaq 0xa8(%rbx), %rsi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x6cac0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movb (%rax), %cl
movb (%r14), %dl
movb %dl, (%rax)
movb %cl, (%r14)
movq 0x8(%rax), %rcx
movq 0x8(%r14), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%r14)
movq %r14, %rdi
callq 0x6c896
movq 0x10(%rbx), %rcx
leaq -0x8(%rcx), %rax
movq %rax, 0x10(%rbx)
subl $0x1, 0x38(%rbx)
jae 0x73562
movl $0x3f, 0x38(%rbx)
addq $-0x8, 0x30(%rbx)
cmpq %rax, 0x8(%rbx)
je 0x736a2
movq -0x10(%rcx), %rcx
testq %rcx, %rcx
je 0x736a2
movb (%rcx), %dl
leal -0x1(%rdx), %esi
cmpb $0x1, %sil
ja 0x736a2
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
movq %rcx, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movq %r12, 0x20(%rsp)
movq 0x8(%rcx), %rcx
cmpb $0x1, %dl
jne 0x735b8
movq 0x18(%rcx), %rcx
movq %rcx, 0x10(%rsp)
jmp 0x735c0
movq (%rcx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x10(%rsp), %r13
leaq 0x30(%rsp), %rbp
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
movq -0x8(%rax), %rax
movq %rax, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq %r12, 0x40(%rsp)
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x73605
cmpl $0x1, %ecx
jne 0x73614
movq 0x8(%rax), %rax
addq $0x8, %rax
movq %rax, 0x30(%rsp)
jmp 0x7361d
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x7361d
movq $0x1, 0x40(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x746e4
testb %al, %al
jne 0x736a2
movq %r14, %rdi
callq 0x7438e
cmpb $0x9, (%rax)
je 0x73672
movq 0x8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x7365c
cmpl $0x1, %eax
jne 0x73664
movq 0x10(%rsp), %rdi
callq 0xa3d0
movq %rax, 0x10(%rsp)
jmp 0x73669
addq $0x10, 0x18(%rsp)
jmp 0x73669
incq 0x20(%rsp)
movq 0x10(%rbx), %rax
jmp 0x735d4
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq 0x8(%rsp), %rax
leaq 0x58(%rsp), %rdx
movq %rax, (%rdx)
movups (%r13), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x10(%r13), %rax
movq %rax, 0x18(%rdx)
leaq 0x28(%rsp), %rdi
callq 0x74460
movb $0x1, %al
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa1e0
| _ZN8nlohmann16json_abi_v3_11_26detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEE10end_objectEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, rdi
mov rax, [rdi+10h]
mov rcx, [rax-8]
test rcx, rcx
jz short loc_73544
sub rax, [rbx+8]
shr rax, 3
dec eax
mov dword ptr [rsp+0A8h+var_A0], eax
mov byte ptr [rsp+0A8h+var_80], 1
cmp qword ptr [rbx+90h], 0
jz loc_736B3
lea rdi, [rbx+80h]
lea rsi, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_80]
call qword ptr [rbx+98h]
test al, al
jnz short loc_73544
lea rsi, [rbx+0A8h]
lea r14, [rsp+0A8h+var_60]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEEC2ERKSD_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::basic_json(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> const&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov cl, [rax]
mov dl, [r14]
mov [rax], dl
mov [r14], cl
mov rcx, [rax+8]
mov rdx, [r14+8]
mov [rax+8], rdx
mov [r14+8], rcx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
loc_73544:
mov rcx, [rbx+10h]
lea rax, [rcx-8]
mov [rbx+10h], rax
sub dword ptr [rbx+38h], 1
jnb short loc_73562
mov dword ptr [rbx+38h], 3Fh ; '?'
add qword ptr [rbx+30h], 0FFFFFFFFFFFFFFF8h
loc_73562:
cmp [rbx+8], rax
jz loc_736A2
mov rcx, [rcx-10h]
test rcx, rcx
jz loc_736A2
mov dl, [rcx]
lea esi, [rdx-1]
cmp sil, 1
ja loc_736A2
mov r12, 8000000000000000h
mov [rsp+0A8h+var_A0], rcx
xorps xmm0, xmm0
movups [rsp+0A8h+var_98], xmm0
mov [rsp+0A8h+var_88], r12
mov rcx, [rcx+8]
cmp dl, 1
jnz short loc_735B8
mov rcx, [rcx+18h]
mov qword ptr [rsp+0A8h+var_98], rcx
jmp short loc_735C0
loc_735B8:
mov rcx, [rcx]
mov qword ptr [rsp+0A8h+var_98+8], rcx
loc_735C0:
lea r13, [rsp+0A8h+var_98]
lea rbp, [rsp+0A8h+var_78]
lea r14, [rsp+0A8h+var_A0]
lea r15, [rsp+0A8h+var_80]
loc_735D4:
mov rax, [rax-8]
mov [rsp+0A8h+var_80], rax
xorps xmm0, xmm0
movups xmmword ptr [rbp+0], xmm0
mov [rsp+0A8h+var_68], r12
movzx ecx, byte ptr [rax]
cmp ecx, 2
jz short loc_73605
cmp ecx, 1
jnz short loc_73614
mov rax, [rax+8]
add rax, 8
mov [rsp+0A8h+var_78], rax
jmp short loc_7361D
loc_73605:
mov rax, [rax+8]
mov rax, [rax+8]
mov [rsp+0A8h+var_70], rax
jmp short loc_7361D
loc_73614:
mov [rsp+0A8h+var_68], 1
loc_7361D:
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jnz short loc_736A2
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEptEv; nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_73672
mov rax, [rsp+0A8h+var_A0]
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_7365C
cmp eax, 1
jnz short loc_73664
mov rdi, qword ptr [rsp+0A8h+var_98]
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov qword ptr [rsp+0A8h+var_98], rax
jmp short loc_73669
loc_7365C:
add qword ptr [rsp+0A8h+var_98+8], 10h
jmp short loc_73669
loc_73664:
inc [rsp+0A8h+var_88]
loc_73669:
mov rax, [rbx+10h]
jmp loc_735D4
loc_73672:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_50]
mov [rdx], rax
movups xmm0, xmmword ptr [r13+0]
movups xmmword ptr [rdx+8], xmm0
mov rax, [r13+10h]
mov [rdx+18h], rax
lea rdi, [rsp+0A8h+var_80]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_736A2:
mov al, 1
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_736B3:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
| char nlohmann::json_abi_v3_11_2::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end_object(
long long a1)
{
long long v1; // rax
char *v2; // rax
char v3; // cl
long long v4; // rcx
long long v5; // rcx
long long v6; // rax
unsigned __int8 *v8; // rcx
unsigned __int8 v9; // dl
_QWORD *v10; // rcx
unsigned __int8 *v11; // rax
int v12; // ecx
int v13; // eax
long long v14; // rsi
unsigned __int8 *v16; // [rsp+8h] [rbp-A0h] BYREF
__int128 v17; // [rsp+10h] [rbp-98h]
unsigned long long v18; // [rsp+20h] [rbp-88h]
unsigned __int8 *v19; // [rsp+28h] [rbp-80h] BYREF
__int128 v20; // [rsp+30h] [rbp-78h]
long long v21; // [rsp+40h] [rbp-68h]
_BYTE v22[8]; // [rsp+48h] [rbp-60h] BYREF
long long v23; // [rsp+50h] [rbp-58h]
unsigned __int8 *v24; // [rsp+58h] [rbp-50h]
__int128 v25; // [rsp+60h] [rbp-48h]
unsigned long long v26; // [rsp+70h] [rbp-38h]
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v1 - 8) )
{
LODWORD(v16) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1;
LOBYTE(v19) = 1;
if ( !*(_QWORD *)(a1 + 144) )
std::__throw_bad_function_call();
if ( !(*(unsigned __int8 ( **)(long long, unsigned __int8 **, unsigned __int8 **))(a1 + 152))(
a1 + 128,
&v16,
&v19) )
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::basic_json(
(long long)v22,
(unsigned __int8 *)(a1 + 168));
v2 = *(char **)(*(_QWORD *)(a1 + 16) - 8LL);
v3 = *v2;
*v2 = v22[0];
v22[0] = v3;
v4 = *((_QWORD *)v2 + 1);
*((_QWORD *)v2 + 1) = v23;
v23 = v4;
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v22);
}
}
v5 = *(_QWORD *)(a1 + 16);
v6 = v5 - 8;
*(_QWORD *)(a1 + 16) = v5 - 8;
if ( (*(_DWORD *)(a1 + 56))-- == 0 )
{
*(_DWORD *)(a1 + 56) = 63;
*(_QWORD *)(a1 + 48) -= 8LL;
}
if ( *(_QWORD *)(a1 + 8) != v6 )
{
v8 = *(unsigned __int8 **)(v5 - 16);
if ( v8 )
{
v9 = *v8;
if ( (unsigned __int8)(*v8 - 1) <= 1u )
{
v16 = v8;
v17 = 0LL;
v18 = 0x8000000000000000LL;
v10 = (_QWORD *)*((_QWORD *)v8 + 1);
if ( v9 == 1 )
*(_QWORD *)&v17 = v10[3];
else
*((_QWORD *)&v17 + 1) = *v10;
while ( 1 )
{
v11 = *(unsigned __int8 **)(v6 - 8);
v19 = v11;
v20 = 0LL;
v21 = 0x8000000000000000LL;
v12 = *v11;
if ( v12 == 2 )
{
*((_QWORD *)&v20 + 1) = *(_QWORD *)(*((_QWORD *)v11 + 1) + 8LL);
}
else if ( v12 == 1 )
{
*(_QWORD *)&v20 = *((_QWORD *)v11 + 1) + 8LL;
}
else
{
v21 = 1LL;
}
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_26detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v16,
&v19) )
break;
if ( *(_BYTE *)nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::operator->(&v16) == 9 )
{
v14 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v24 = v16;
v25 = v17;
v26 = v18;
ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
&v19,
v14);
return 1;
}
v13 = *v16;
if ( v13 == 2 )
{
*((_QWORD *)&v17 + 1) += 16LL;
}
else if ( v13 == 1 )
{
*(_QWORD *)&v17 = std::_Rb_tree_increment(v17);
}
else
{
++v18;
}
v6 = *(_QWORD *)(a1 + 16);
}
}
}
}
return 1;
}
| |||
24,670 | my_strnxfrm_unicode_full_bin_internal | eloqsql/strings/ctype-utf8.c | size_t
my_strnxfrm_unicode_full_bin_internal(CHARSET_INFO *cs,
uchar *dst, uchar *de, uint *nweights,
const uchar *src, const uchar *se)
{
my_wc_t UNINIT_VAR(wc);
uchar *dst0= dst;
DBUG_ASSERT(src || !se);
DBUG_ASSERT(cs->state & MY_CS_BINSORT);
for (; dst < de && *nweights; (*nweights)--)
{
int res;
if ((res= my_ci_mb_wc(cs, &wc, src, se)) <= 0)
break;
src+= res;
*dst++= (uchar) (wc >> 16);
if (dst < de)
{
*dst++= (uchar) ((wc >> 8) & 0xFF);
if (dst < de)
*dst++= (uchar) (wc & 0xFF);
}
}
return dst - dst0;
} | O0 | c | my_strnxfrm_unicode_full_bin_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x6d4f2
jmp 0x6d4f4
jmp 0x6d4f6
jmp 0x6d4f8
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x18(%rbp), %rcx
movb %al, -0x45(%rbp)
jae 0x6d514
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
setne %al
movb %al, -0x45(%rbp)
movb -0x45(%rbp), %al
testb $0x1, %al
jne 0x6d520
jmp 0x6d5e0
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x38(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
jg 0x6d54e
jmp 0x6d5e0
movl -0x44(%rbp), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x38(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x6d5ce
movq -0x38(%rbp), %rax
shrq $0x8, %rax
andq $0xff, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x6d5cc
movq -0x38(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x6d5ce
jmp 0x6d5d0
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0x6d4f8
movq -0x10(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strnxfrm_unicode_full_bin_internal:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
jmp short $+2
loc_6D4F2:
jmp short $+2
loc_6D4F4:
jmp short $+2
loc_6D4F6:
jmp short $+2
loc_6D4F8:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_18]
mov [rbp+var_45], al
jnb short loc_6D514
mov rax, [rbp+var_20]
cmp dword ptr [rax], 0
setnz al
mov [rbp+var_45], al
loc_6D514:
mov al, [rbp+var_45]
test al, 1
jnz short loc_6D520
jmp loc_6D5E0
loc_6D520:
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
mov rax, [rax+28h]
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
lea rsi, [rbp+var_38]
call rax
mov [rbp+var_44], eax
cmp eax, 0
jg short loc_6D54E
jmp loc_6D5E0
loc_6D54E:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_28]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_28], rax
mov rax, [rbp+var_38]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_6D5CE
mov rax, [rbp+var_38]
shr rax, 8
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_6D5CC
mov rax, [rbp+var_38]
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
loc_6D5CC:
jmp short $+2
loc_6D5CE:
jmp short $+2
loc_6D5D0:
mov rax, [rbp+var_20]
mov ecx, [rax]
add ecx, 0FFFFFFFFh
mov [rax], ecx
jmp loc_6D4F8
loc_6D5E0:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 50h
pop rbp
retn
| _BYTE * my_strnxfrm_unicode_full_bin_internal(
long long a1,
_BYTE *a2,
unsigned long long a3,
_DWORD *a4,
long long a5,
long long a6)
{
_BYTE *v6; // rax
_BYTE *v7; // rax
_BYTE *v8; // rax
bool v10; // [rsp+Bh] [rbp-45h]
int v11; // [rsp+Ch] [rbp-44h]
_BYTE v12[8]; // [rsp+18h] [rbp-38h] BYREF
long long v13; // [rsp+20h] [rbp-30h]
long long v14; // [rsp+28h] [rbp-28h]
_DWORD *v15; // [rsp+30h] [rbp-20h]
unsigned long long v16; // [rsp+38h] [rbp-18h]
_BYTE *v17; // [rsp+40h] [rbp-10h]
long long v18; // [rsp+48h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
while ( 1 )
{
v10 = 0;
if ( (unsigned long long)v17 < v16 )
v10 = *v15 != 0;
if ( !v10 )
break;
v11 = (*(long long ( **)(long long, _BYTE *, long long, long long))(*(_QWORD *)(v18 + 184) + 40LL))(
v18,
v12,
v14,
v13);
if ( v11 <= 0 )
break;
v14 += v11;
v6 = v17++;
*v6 = v12[2];
if ( (unsigned long long)v17 < v16 )
{
v7 = v17++;
*v7 = v12[1];
if ( (unsigned long long)v17 < v16 )
{
v8 = v17++;
*v8 = v12[0];
}
}
--*v15;
}
return (_BYTE *)(v17 - a2);
}
| my_strnxfrm_unicode_full_bin_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0016d4f2
LAB_0016d4f2:
JMP 0x0016d4f4
LAB_0016d4f4:
JMP 0x0016d4f6
LAB_0016d4f6:
JMP 0x0016d4f8
LAB_0016d4f8:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RBP + -0x45],AL
JNC 0x0016d514
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX],0x0
SETNZ AL
MOV byte ptr [RBP + -0x45],AL
LAB_0016d514:
MOV AL,byte ptr [RBP + -0x45]
TEST AL,0x1
JNZ 0x0016d520
JMP 0x0016d5e0
LAB_0016d520:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
LEA RSI,[RBP + -0x38]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP EAX,0x0
JG 0x0016d54e
JMP 0x0016d5e0
LAB_0016d54e:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0016d5ce
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x8
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0016d5cc
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
LAB_0016d5cc:
JMP 0x0016d5ce
LAB_0016d5ce:
JMP 0x0016d5d0
LAB_0016d5d0:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX]
ADD ECX,-0x1
MOV dword ptr [RAX],ECX
JMP 0x0016d4f8
LAB_0016d5e0:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x50
POP RBP
RET
|
long my_strnxfrm_unicode_full_bin_internal
(long param_1,int1 *param_2,int1 *param_3,int *param_4,long param_5,
int8 param_6)
{
int iVar1;
int1 *puVar2;
int1 *puVar3;
bool bVar4;
int1 local_40 [8];
int8 local_38;
long local_30;
int *local_28;
int1 *local_20;
int1 *local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar4 = false;
if (local_18 < local_20) {
bVar4 = *local_28 != 0;
}
if ((!bVar4) ||
(iVar1 = (**(code **)(*(long *)(local_10 + 0xb8) + 0x28))
(local_10,local_40,local_30,local_38), iVar1 < 1)) break;
local_30 = local_30 + iVar1;
puVar2 = local_18 + 1;
*local_18 = local_40[2];
if (puVar2 < local_20) {
puVar3 = local_18 + 2;
*puVar2 = local_40[1];
puVar2 = puVar3;
if (puVar3 < local_20) {
*puVar3 = local_40[0];
puVar2 = local_18 + 3;
}
}
local_18 = puVar2;
*local_28 = *local_28 + -1;
}
return (long)local_18 - (long)param_2;
}
| |
24,671 | edgeRate1CB(LefDefParser::lefrCallbackType_e, double, void*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lefdiff/diffLefRW.cpp | int edgeRate1CB(lefrCallbackType_e c, double rate, lefiUserData ud) {
checkType(c);
if (ud != userData) dataError();
fprintf(fout, "CROSSTALK EDGERATETHRESHOLD1 %g\n", chkNum(rate));
return 0;
} | O3 | cpp | edgeRate1CB(LefDefParser::lefrCallbackType_e, double, void*):
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
cmpl $0x39, %edi
movapd %xmm0, (%rsp)
jb 0x6310
movq 0x710fb(%rip), %rcx # 0x773f0
leaq 0x44efb(%rip), %rdi # 0x4b1f7
movl $0x27, %esi
movl $0x1, %edx
callq 0x23b0
movapd (%rsp), %xmm0
cmpq %rbx, 0x710e9(%rip) # 0x77400
je 0x633b
movq 0x710d0(%rip), %rcx # 0x773f0
leaq 0x44ea5(%rip), %rdi # 0x4b1cc
movl $0x2a, %esi
movl $0x1, %edx
callq 0x23b0
movapd (%rsp), %xmm0
movq 0x710ae(%rip), %rdi # 0x773f0
movapd 0x44cc6(%rip), %xmm1 # 0x4b010
andpd %xmm0, %xmm1
ucomisd 0x44d3a(%rip), %xmm1 # 0x4b090
jbe 0x638f
cvttsd2si %xmm0, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rcx
movabsq $0x1999999999999999, %rax # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x638f
addsd 0x44d09(%rip), %xmm0 # 0x4b098
leaq 0x455ba(%rip), %rsi # 0x4b950
movb $0x1, %al
callq 0x22c0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
| _Z11edgeRate1CBN12LefDefParser18lefrCallbackType_eEdPv:
push rbx
sub rsp, 10h
mov rbx, rsi
cmp edi, 39h ; '9'
movapd [rsp+18h+var_18], xmm0
jb short loc_6310
mov rcx, cs:fout
lea rdi, aErrorCallbackT; "ERROR: callback type is out of bounds!"...
mov esi, 27h ; '''
mov edx, 1
call _fwrite
movapd xmm0, [rsp+18h+var_18]
loc_6310:
cmp cs:userData, rbx
jz short loc_633B
mov rcx, cs:fout
lea rdi, aErrorReturnedU; "ERROR: returned user data is not correc"...
mov esi, 2Ah ; '*'
mov edx, 1
call _fwrite
movapd xmm0, [rsp+18h+var_18]
loc_633B:
mov rdi, cs:fout
movapd xmm1, cs:xmmword_4B010
andpd xmm1, xmm0
ucomisd xmm1, cs:qword_4B090
jbe short loc_638F
cvttsd2si rax, xmm0
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rcx, rax
mov rax, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_638F
addsd xmm0, cs:qword_4B098
loc_638F:
lea rsi, aCrosstalkEdger_0; "CROSSTALK EDGERATETHRESHOLD1 %g\n"
mov al, 1
call _fprintf
xor eax, eax
add rsp, 10h
pop rbx
retn
| long long edgeRate1CB(unsigned int a1, long long a2, double a3)
{
if ( a1 >= 0x39 )
fwrite("ERROR: callback type is out of bounds!\n", 39LL, 1LL, fout);
if ( userData != a2 )
fwrite("ERROR: returned user data is not correct!\n", 42LL, 1LL, fout);
if ( fabs(a3) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)a3 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
a3 = a3 + 3.0;
}
fprintf(fout, "CROSSTALK EDGERATETHRESHOLD1 %g\n", a3);
return 0LL;
}
| edgeRate1CB:
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
CMP EDI,0x39
MOVAPD xmmword ptr [RSP],XMM0
JC 0x00106310
MOV RCX,qword ptr [0x001773f0]
LEA RDI,[0x14b1f7]
MOV ESI,0x27
MOV EDX,0x1
CALL 0x001023b0
MOVAPD XMM0,xmmword ptr [RSP]
LAB_00106310:
CMP qword ptr [0x00177400],RBX
JZ 0x0010633b
MOV RCX,qword ptr [0x001773f0]
LEA RDI,[0x14b1cc]
MOV ESI,0x2a
MOV EDX,0x1
CALL 0x001023b0
MOVAPD XMM0,xmmword ptr [RSP]
LAB_0010633b:
MOV RDI,qword ptr [0x001773f0]
MOVAPD XMM1,xmmword ptr [0x0014b010]
ANDPD XMM1,XMM0
UCOMISD XMM1,qword ptr [0x0014b090]
JBE 0x0010638f
CVTTSD2SI RAX,XMM0
MOV RCX,-0x3333333333333333
IMUL RCX,RAX
MOV RAX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x0010638f
ADDSD XMM0,qword ptr [0x0014b098]
LAB_0010638f:
LEA RSI,[0x14b950]
MOV AL,0x1
CALL 0x001022c0
XOR EAX,EAX
ADD RSP,0x10
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* edgeRate1CB(LefDefParser::lefrCallbackType_e, double, void*) */
int8 edgeRate1CB(double param_1,uint param_2,long param_3)
{
if (0x38 < param_2) {
fwrite("ERROR: callback type is out of bounds!\n",0x27,1,fout);
}
if (userData != param_3) {
fwrite("ERROR: returned user data is not correct!\n",0x2a,1,fout);
}
if ((DAT_0014b090 < (double)(_DAT_0014b010 & (ulong)param_1)) &&
((long)param_1 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333)) {
param_1 = param_1 + _DAT_0014b098;
}
fprintf(fout,"CROSSTALK EDGERATETHRESHOLD1 %g\n",param_1);
return 0;
}
| |
24,672 | bf_const_pi_internal | bluesky950520[P]quickjs/libbf.c | static void bf_const_pi_internal(bf_t *Q, limb_t prec)
{
bf_context_t *s = Q->ctx;
int64_t n, prec1;
bf_t P, G;
/* number of serie terms */
n = prec / CHUD_BITS_PER_TERM + 1;
/* XXX: precision analysis */
prec1 = prec + 32;
bf_init(s, &P);
bf_init(s, &G);
chud_bs(&P, Q, &G, 0, n, 0, BF_PREC_INF);
bf_mul_ui(&G, Q, CHUD_A, prec1, BF_RNDN);
bf_add(&P, &G, &P, prec1, BF_RNDN);
bf_div(Q, Q, &P, prec1, BF_RNDF);
bf_set_ui(&P, CHUD_C);
bf_sqrt(&G, &P, prec1, BF_RNDF);
bf_mul_ui(&G, &G, (uint64_t)CHUD_C / 12, prec1, BF_RNDF);
bf_mul(Q, Q, &G, prec, BF_RNDN);
bf_delete(&P);
bf_delete(&G);
} | O2 | c | bf_const_pi_internal:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rcx
pushq $0x2f
popq %rsi
movq %rbx, %rax
xorl %edx, %edx
divq %rsi
leaq 0x1(%rax), %r8
leaq 0x30(%rsp), %r15
movq %rcx, (%r15)
andl $0x0, 0x8(%r15)
leaq 0x20(%rbx), %r13
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%r15)
leaq 0x8(%rsp), %r12
movq %rcx, (%r12)
andl $0x0, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
movq %rax, 0x10(%r12)
movups %xmm0, 0x18(%r12)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x7d6c9
movl $0xcf6371, %edx # imm = 0xCF6371
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x75ada
movq %r15, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x757f9
pushq $0x6
popq %rbp
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x758a2
movl $0x9c540, %esi # imm = 0x9C540
movq %r15, %rdi
callq 0x73106
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %ebp, %ecx
callq 0x755e5
movl $0xd070, %edx # imm = 0xD070
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rcx
movl %ebp, %r8d
callq 0x75ada
movq %r14, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x74959
movq %r15, %rdi
callq 0x7500e
movq %r12, %rdi
callq 0x7500e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| bf_const_pi_internal:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rsi
mov r14, rdi
mov rcx, [rdi]
push 2Fh ; '/'
pop rsi
mov rax, rbx
xor edx, edx
div rsi
lea r8, [rax+1]
lea r15, [rsp+88h+var_58]
mov [r15], rcx
and dword ptr [r15+8], 0
lea r13, [rbx+20h]
mov rax, 8000000000000000h
mov [r15+10h], rax
lea r12, [rsp+88h+var_80]
mov [r12], rcx
and dword ptr [r12+8], 0
xorps xmm0, xmm0
movups xmmword ptr [r15+18h], xmm0
mov [r12+10h], rax
movups xmmword ptr [r12+18h], xmm0
mov rdi, r15
mov rsi, r14
mov rdx, r12
xor ecx, ecx
xor r9d, r9d
call chud_bs
mov edx, 0CF6371h
mov rdi, r12
mov rsi, r14
mov rcx, r13
xor r8d, r8d
call bf_mul_ui
mov rdi, r15
mov rsi, r12
mov rdx, r15
mov rcx, r13
xor r8d, r8d
call bf_add
push 6
pop rbp
mov rdi, r14
mov rsi, r14
mov rdx, r15
mov rcx, r13
mov r8d, ebp
call bf_div
mov esi, offset unk_9C540
mov rdi, r15
call bf_set_ui
mov rdi, r12
mov rsi, r15
mov rdx, r13
mov ecx, ebp
call bf_sqrt
mov edx, 0D070h
mov rdi, r12
mov rsi, r12
mov rcx, r13
mov r8d, ebp
call bf_mul_ui
mov rdi, r14
mov rsi, r14
mov rdx, r12
mov rcx, rbx
xor r8d, r8d
call bf_mul
mov rdi, r15
call bf_delete_0
mov rdi, r12
call bf_delete_0
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bf_const_pi_internal(long long *a1, unsigned long long a2)
{
long long v4; // [rsp+8h] [rbp-80h] BYREF
int v5; // [rsp+10h] [rbp-78h]
unsigned long long v6; // [rsp+18h] [rbp-70h]
__int128 v7; // [rsp+20h] [rbp-68h]
__int128 v8; // [rsp+30h] [rbp-58h] BYREF
unsigned long long v9; // [rsp+40h] [rbp-48h]
__int128 v10; // [rsp+48h] [rbp-40h]
*(_QWORD *)&v8 = *a1;
DWORD2(v8) = 0;
v9 = 0x8000000000000000LL;
v4 = v8;
v5 = 0;
v10 = 0LL;
v6 = 0x8000000000000000LL;
v7 = 0LL;
chud_bs(&v8, a1, &v4, 0LL, a2 / 0x2F + 1, 0LL);
bf_mul_ui(&v4, a1, 0xCF6371uLL, a2 + 32, 0);
bf_add((long long)&v8, (long long)&v4, (long long)&v8, a2 + 32, 0LL);
bf_div((__int128 *)a1, (__int128 *)a1, &v8, a2 + 32, 6LL);
bf_set_ui((long long)&v8, (unsigned long long)&unk_9C540);
bf_sqrt((long long)&v4, (long long)&v8, a2 + 32, 6u);
bf_mul_ui(&v4, &v4, 0xD070uLL, a2 + 32, 6u);
bf_mul(a1, a1, &v4, a2, 0);
bf_delete_0((long long *)&v8);
return bf_delete_0(&v4);
}
| bf_const_pi_internal:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RSI
MOV R14,RDI
MOV RCX,qword ptr [RDI]
PUSH 0x2f
POP RSI
MOV RAX,RBX
XOR EDX,EDX
DIV RSI
LEA R8,[RAX + 0x1]
LEA R15,[RSP + 0x30]
MOV qword ptr [R15],RCX
AND dword ptr [R15 + 0x8],0x0
LEA R13,[RBX + 0x20]
MOV RAX,-0x8000000000000000
MOV qword ptr [R15 + 0x10],RAX
LEA R12,[RSP + 0x8]
MOV qword ptr [R12],RCX
AND dword ptr [R12 + 0x8],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x18],XMM0
MOV qword ptr [R12 + 0x10],RAX
MOVUPS xmmword ptr [R12 + 0x18],XMM0
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
XOR ECX,ECX
XOR R9D,R9D
CALL 0x0017d6c9
MOV EDX,0xcf6371
MOV RDI,R12
MOV RSI,R14
MOV RCX,R13
XOR R8D,R8D
CALL 0x00175ada
MOV RDI,R15
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
XOR R8D,R8D
CALL 0x001757f9
PUSH 0x6
POP RBP
MOV RDI,R14
MOV RSI,R14
MOV RDX,R15
MOV RCX,R13
MOV R8D,EBP
CALL 0x001758a2
MOV ESI,0x9c540
MOV RDI,R15
CALL 0x00173106
MOV RDI,R12
MOV RSI,R15
MOV RDX,R13
MOV ECX,EBP
CALL 0x001755e5
MOV EDX,0xd070
MOV RDI,R12
MOV RSI,R12
MOV RCX,R13
MOV R8D,EBP
CALL 0x00175ada
MOV RDI,R14
MOV RSI,R14
MOV RDX,R12
MOV RCX,RBX
XOR R8D,R8D
CALL 0x00174959
MOV RDI,R15
CALL 0x0017500e
MOV RDI,R12
CALL 0x0017500e
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void bf_const_pi_internal(int8 *param_1,ulong param_2)
{
long lVar1;
int8 local_80;
int4 local_78;
int8 local_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
int4 local_50;
int8 local_48;
int8 local_40;
int8 uStack_38;
local_80 = *param_1;
local_50 = 0;
lVar1 = param_2 + 0x20;
local_48 = 0x8000000000000000;
local_78 = 0;
local_40 = 0;
uStack_38 = 0;
local_70 = 0x8000000000000000;
local_68 = 0;
uStack_60 = 0;
local_58 = local_80;
chud_bs(&local_58,param_1,&local_80,0,param_2 / 0x2f + 1,0);
bf_mul_ui(&local_80,param_1,0xcf6371,lVar1,0);
bf_add(&local_58,&local_80,&local_58,lVar1,0);
bf_div(param_1,param_1,&local_58,lVar1,6);
bf_set_ui(&local_58,0x9c540);
bf_sqrt(&local_80,&local_58,lVar1,6);
bf_mul_ui(&local_80,&local_80,0xd070,lVar1,6);
bf_mul(param_1,param_1,&local_80,param_2,0);
bf_delete(&local_58);
bf_delete(&local_80);
return;
}
| |
24,673 | blst_miller_loop_lines | corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/pairing.c | void blst_miller_loop_lines(vec384fp12 ret, const vec384fp6 Qlines[68],
const POINTonE1_affine *P)
{ miller_loop_lines(ret, Qlines, P); } | O1 | c | blst_miller_loop_lines:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp # imm = 0x188
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1ed49(%rip), %r13 # 0x3fb20
leaq -0x90(%rbp), %r15
movq %r15, %rdi
movq %rdx, %rsi
movq %r13, %rcx
callq 0x2f380
movl $0x1, %edx
movq %r15, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0x2fa00
leaq -0x60(%rbp), %rdi
addq $0x30, %r12
movq %r12, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x2f380
leaq -0x1b0(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x28d7c
xorl %eax, %eax
movq $0x0, (%rbx,%rax,8)
incq %rax
cmpq $0x48, %rax
jne 0x20e29
leaq -0x1b0(%rbp), %rsi
movl $0xc0, %edx
movq %rbx, %rdi
callq 0x5060
leaq 0x180(%rbx), %rdi
leaq -0xf0(%rbp), %rsi
movl $0xc, %ecx
rep movsq (%rsi), %es:(%rdi)
movl $0x120, %r15d # imm = 0x120
leaq (%r14,%r15), %rsi
leaq -0x90(%rbp), %r12
movl $0x2, %ecx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x28e24
leaq 0x480(%r14), %rsi
movl $0x3, %ecx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x28e24
leaq 0x900(%r14), %rsi
movl $0x9, %ecx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x28e24
leaq 0x1440(%r14), %rsi
movl $0x20, %ecx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x28e24
addq $0x3960, %r14 # imm = 0x3960
movl $0x10, %ecx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x28e24
addq %rbx, %r15
movq %r15, %rdi
movq %r15, %rsi
callq 0x28139
addq $0x188, %rsp # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| blst_miller_loop_lines:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 188h
mov r12, rdx
mov r14, rsi
mov rbx, rdi
lea r13, BLS12_381_P
lea r15, [rbp+var_90]
mov rdi, r15
mov rsi, rdx
mov rcx, r13
call add_mod_384
mov edx, 1
mov rdi, r15
mov rsi, r15
mov rcx, r13
call cneg_mod_384
lea rdi, [rbp+var_60]
add r12, 30h ; '0'
mov rsi, r12
mov rdx, r12
mov rcx, r13
call add_mod_384
lea rdi, [rbp+var_1B0]
mov rsi, r14
mov rdx, r15
call post_line_by_Px2
xor eax, eax
loc_20E29:
mov qword ptr [rbx+rax*8], 0
inc rax
cmp rax, 48h ; 'H'
jnz short loc_20E29
lea rsi, [rbp+var_1B0]
mov edx, 0C0h
mov rdi, rbx
call _memcpy
lea rdi, [rbx+180h]
lea rsi, [rbp+var_F0]
mov ecx, 0Ch
rep movsq
mov r15d, 120h
lea rsi, [r14+r15]
lea r12, [rbp+var_90]
mov ecx, 2
mov rdi, rbx
mov rdx, r12
call post_add_n_dbl
lea rsi, [r14+480h]
mov ecx, 3
mov rdi, rbx
mov rdx, r12
call post_add_n_dbl
lea rsi, [r14+900h]
mov ecx, 9
mov rdi, rbx
mov rdx, r12
call post_add_n_dbl
lea rsi, [r14+1440h]
mov ecx, 20h ; ' '
mov rdi, rbx
mov rdx, r12
call post_add_n_dbl
add r14, 3960h
mov ecx, 10h
mov rdi, rbx
mov rsi, r14
mov rdx, r12
call post_add_n_dbl
add r15, rbx
mov rdi, r15
mov rsi, r15
call neg_fp6
add rsp, 188h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long blst_miller_loop_lines(long long a1, long long a2, long long a3)
{
long long i; // rax
_BYTE v6[192]; // [rsp+0h] [rbp-1B0h] BYREF
_BYTE v7[96]; // [rsp+C0h] [rbp-F0h] BYREF
_BYTE v8[48]; // [rsp+120h] [rbp-90h] BYREF
_BYTE v9[96]; // [rsp+150h] [rbp-60h] BYREF
add_mod_384(v8, a3, a3, &BLS12_381_P);
cneg_mod_384(v8, v8, 1LL, &BLS12_381_P);
add_mod_384(v9, a3 + 48, a3 + 48, &BLS12_381_P);
post_line_by_Px2(v6, a2, v8);
for ( i = 0LL; i != 72; ++i )
*(_QWORD *)(a1 + 8 * i) = 0LL;
memcpy(a1, v6, 192LL);
qmemcpy((void *)(a1 + 384), v7, 0x60uLL);
post_add_n_dbl(a1, a2 + 288, v8, 2LL);
post_add_n_dbl(a1, a2 + 1152, v8, 3LL);
post_add_n_dbl(a1, a2 + 2304, v8, 9LL);
post_add_n_dbl(a1, a2 + 5184, v8, 32LL);
post_add_n_dbl(a1, a2 + 14688, v8, 16LL);
return neg_fp6(a1 + 288, a1 + 288);
}
| blst_miller_loop_lines:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x188
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
LEA R13,[0x13fb20]
LEA R15,[RBP + -0x90]
MOV RDI,R15
MOV RSI,RDX
MOV RCX,R13
CALL 0x0012f380
MOV EDX,0x1
MOV RDI,R15
MOV RSI,R15
MOV RCX,R13
CALL 0x0012fa00
LEA RDI,[RBP + -0x60]
ADD R12,0x30
MOV RSI,R12
MOV RDX,R12
MOV RCX,R13
CALL 0x0012f380
LEA RDI,[RBP + -0x1b0]
MOV RSI,R14
MOV RDX,R15
CALL 0x00128d7c
XOR EAX,EAX
LAB_00120e29:
MOV qword ptr [RBX + RAX*0x8],0x0
INC RAX
CMP RAX,0x48
JNZ 0x00120e29
LEA RSI,[RBP + -0x1b0]
MOV EDX,0xc0
MOV RDI,RBX
CALL 0x00105060
LEA RDI,[RBX + 0x180]
LEA RSI,[RBP + -0xf0]
MOV ECX,0xc
MOVSQ.REP RDI,RSI
MOV R15D,0x120
LEA RSI,[R14 + R15*0x1]
LEA R12,[RBP + -0x90]
MOV ECX,0x2
MOV RDI,RBX
MOV RDX,R12
CALL 0x00128e24
LEA RSI,[R14 + 0x480]
MOV ECX,0x3
MOV RDI,RBX
MOV RDX,R12
CALL 0x00128e24
LEA RSI,[R14 + 0x900]
MOV ECX,0x9
MOV RDI,RBX
MOV RDX,R12
CALL 0x00128e24
LEA RSI,[R14 + 0x1440]
MOV ECX,0x20
MOV RDI,RBX
MOV RDX,R12
CALL 0x00128e24
ADD R14,0x3960
MOV ECX,0x10
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
CALL 0x00128e24
ADD R15,RBX
MOV RDI,R15
MOV RSI,R15
CALL 0x00128139
ADD RSP,0x188
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void blst_miller_loop_lines(void *param_1,long param_2,long param_3)
{
long lVar1;
int8 *puVar2;
int8 *puVar3;
byte bVar4;
int1 local_1b8 [192];
int8 local_f8 [12];
int1 local_98 [48];
int1 local_68 [56];
bVar4 = 0;
add_mod_384(local_98,param_3,param_3,BLS12_381_P);
cneg_mod_384(local_98,local_98,1,BLS12_381_P);
add_mod_384(local_68,param_3 + 0x30,param_3 + 0x30,BLS12_381_P);
post_line_by_Px2(local_1b8,param_2,local_98);
lVar1 = 0;
do {
*(int8 *)((long)param_1 + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 != 0x48);
memcpy(param_1,local_1b8,0xc0);
puVar2 = local_f8;
puVar3 = (int8 *)((long)param_1 + 0x180);
for (lVar1 = 0xc; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar3 = *puVar2;
puVar2 = puVar2 + (ulong)bVar4 * -2 + 1;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
post_add_n_dbl(param_1,param_2 + 0x120,local_98,2);
post_add_n_dbl(param_1,param_2 + 0x480,local_98,3);
post_add_n_dbl(param_1,param_2 + 0x900,local_98,9);
post_add_n_dbl(param_1,param_2 + 0x1440,local_98,0x20);
post_add_n_dbl(param_1,param_2 + 0x3960,local_98,0x10);
neg_fp6((long)param_1 + 0x120,(long)param_1 + 0x120);
return;
}
| |
24,674 | my_copy_fix_mb | eloqsql/strings/ctype-mb.c | size_t
my_copy_fix_mb(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t well_formed_nchars;
size_t well_formed_length;
size_t fixed_length;
size_t min_length= MY_MIN(src_length, dst_length);
well_formed_nchars= my_ci_well_formed_char_length(cs, src, src + min_length,
nchars, status);
DBUG_ASSERT(well_formed_nchars <= nchars);
well_formed_length= status->m_source_end_pos - src;
if (well_formed_length)
memmove(dst, src, well_formed_length);
if (!status->m_well_formed_error_pos)
return well_formed_length;
fixed_length= my_append_fix_badly_formed_tail(cs,
dst + well_formed_length,
dst + dst_length,
src + well_formed_length,
src + src_length,
nchars - well_formed_nchars,
status);
return well_formed_length + fixed_length;
} | O3 | c | my_copy_fix_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq 0x10(%rbp), %rbx
cmpq %rdx, %r8
movq %r8, -0x58(%rbp)
cmovbq %r8, %rdx
addq %rcx, %rdx
movq 0xb8(%rdi), %rax
movq %rdi, -0x40(%rbp)
movq %rcx, %rsi
movq %r9, -0x30(%rbp)
movq %r9, %rcx
movq %rbx, %r8
callq *0xc8(%rax)
movq %rax, %r14
movq (%rbx), %rbx
subq %r15, %rbx
je 0x3bb45
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x24640
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x3bc34
leaq (%rbx,%r13), %rax
movq %rbx, -0x50(%rbp)
addq %r15, %rbx
movq -0x30(%rbp), %rcx
cmpq %r14, %rcx
movq %rax, -0x48(%rbp)
je 0x3bc1a
addq %r12, %r13
movq %r13, -0x38(%rbp)
addq -0x58(%rbp), %r15
subq %rcx, %r14
movq %rax, %r13
movq %r15, -0x30(%rbp)
movq -0x40(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
testl %eax, %eax
jle 0x3bbc0
movl %eax, %r15d
leaq (%r15,%r13), %r12
cmpq -0x38(%rbp), %r12
ja 0x3bc1f
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x242a0
movq %r12, %r13
jmp 0x3bc08
setne %al
cmpq %r15, %rbx
setae %cl
testb %al, %cl
jne 0x3bc1f
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3bbdc
movq %rbx, 0x8(%rax)
movq -0x40(%rbp), %rdi
movq 0xb8(%rdi), %rax
movl $0x3f, %esi
movq %r13, %rdx
movq -0x38(%rbp), %rcx
callq *0x30(%rax)
testl %eax, %eax
jle 0x3bc1f
movl %eax, %eax
addq %rax, %r13
movl $0x1, %r15d
movq %r13, %r12
addq %r15, %rbx
incq %r14
movq -0x30(%rbp), %r15
jne 0x3bb85
jmp 0x3bc22
movq %rax, %r12
jmp 0x3bc22
movq %r13, %r12
movq 0x10(%rbp), %rax
movq %rbx, (%rax)
movq -0x50(%rbp), %rbx
subq -0x48(%rbp), %rbx
addq %r12, %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_copy_fix_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, [rbp+arg_0]
cmp r8, rdx
mov [rbp+var_58], r8
cmovb rdx, r8
add rdx, rcx
mov rax, [rdi+0B8h]
mov [rbp+var_40], rdi
mov rsi, rcx
mov [rbp+var_30], r9
mov rcx, r9
mov r8, rbx
call qword ptr [rax+0C8h]
mov r14, rax
mov rbx, [rbx]
sub rbx, r15
jz short loc_3BB45
mov rdi, r13
mov rsi, r15
mov rdx, rbx
call _memmove
loc_3BB45:
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jz loc_3BC34
lea rax, [rbx+r13]
mov [rbp+var_50], rbx
add rbx, r15
mov rcx, [rbp+var_30]
cmp rcx, r14
mov [rbp+var_48], rax
jz loc_3BC1A
add r13, r12
mov [rbp+var_38], r13
add r15, [rbp+var_58]
sub r14, rcx
mov r13, rax
mov [rbp+var_30], r15
loc_3BB85:
mov rdi, [rbp+var_40]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r15
call qword ptr [rax+0C0h]
test eax, eax
jle short loc_3BBC0
mov r15d, eax
lea r12, [r15+r13]
cmp r12, [rbp+var_38]
ja short loc_3BC1F
mov rdi, r13
mov rsi, rbx
mov rdx, r15
call _memcpy
mov r13, r12
jmp short loc_3BC08
loc_3BBC0:
setnz al
cmp rbx, r15
setnb cl
test cl, al
jnz short loc_3BC1F
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jnz short loc_3BBDC
mov [rax+8], rbx
loc_3BBDC:
mov rdi, [rbp+var_40]
mov rax, [rdi+0B8h]
mov esi, 3Fh ; '?'
mov rdx, r13
mov rcx, [rbp+var_38]
call qword ptr [rax+30h]
test eax, eax
jle short loc_3BC1F
mov eax, eax
add r13, rax
mov r15d, 1
mov r12, r13
loc_3BC08:
add rbx, r15
inc r14
mov r15, [rbp+var_30]
jnz loc_3BB85
jmp short loc_3BC22
loc_3BC1A:
mov r12, rax
jmp short loc_3BC22
loc_3BC1F:
mov r12, r13
loc_3BC22:
mov rax, [rbp+arg_0]
mov [rax], rbx
mov rbx, [rbp+var_50]
sub rbx, [rbp+var_48]
add rbx, r12
loc_3BC34:
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long my_copy_fix_mb(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
unsigned long long *a7)
{
unsigned long long v8; // r12
long long v9; // r14
long long v10; // rbx
unsigned long long v11; // rax
unsigned long long v12; // rbx
unsigned long long v13; // r15
long long v14; // r14
long long v15; // r13
unsigned int v16; // eax
long long v17; // r15
unsigned long long v18; // r12
int v19; // eax
long long v22; // [rsp+10h] [rbp-50h]
unsigned long long v23; // [rsp+18h] [rbp-48h]
unsigned long long v24; // [rsp+28h] [rbp-38h]
unsigned long long v26; // [rsp+30h] [rbp-30h]
v8 = a3;
if ( a5 < a3 )
a3 = a5;
v9 = (*(long long ( **)(long long, long long, unsigned long long, long long, unsigned long long *))(*(_QWORD *)(a1 + 184)
+ 200LL))(
a1,
a4,
a4 + a3,
a6,
a7);
v10 = *a7 - a4;
if ( v10 )
memmove(a2, a4, v10);
if ( !a7[1] )
return v10;
v11 = v10 + a2;
v22 = v10;
v12 = a4 + v10;
v23 = v11;
if ( a6 == v9 )
{
v18 = v11;
goto LABEL_20;
}
v24 = v8 + a2;
v13 = a5 + a4;
v14 = v9 - a6;
v15 = v11;
v26 = v13;
while ( 1 )
{
v16 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v12,
v13);
if ( (int)v16 <= 0 )
break;
v17 = v16;
v18 = v16 + v15;
if ( v18 > v24 )
goto LABEL_19;
memcpy(v15, v12, v16);
v15 = v18;
LABEL_16:
v12 += v17;
++v14;
v13 = v26;
if ( !v14 )
goto LABEL_20;
}
if ( v16 == 0 || v12 < v13 )
{
if ( !a7[1] )
a7[1] = v12;
v19 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
v15,
v24);
if ( v19 > 0 )
{
v15 += (unsigned int)v19;
v17 = 1LL;
v18 = v15;
goto LABEL_16;
}
}
LABEL_19:
v18 = v15;
LABEL_20:
*a7 = v12;
return v18 + v22 - v23;
}
| my_copy_fix_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,qword ptr [RBP + 0x10]
CMP R8,RDX
MOV qword ptr [RBP + -0x58],R8
CMOVC RDX,R8
ADD RDX,RCX
MOV RAX,qword ptr [RDI + 0xb8]
MOV qword ptr [RBP + -0x40],RDI
MOV RSI,RCX
MOV qword ptr [RBP + -0x30],R9
MOV RCX,R9
MOV R8,RBX
CALL qword ptr [RAX + 0xc8]
MOV R14,RAX
MOV RBX,qword ptr [RBX]
SUB RBX,R15
JZ 0x0013bb45
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBX
CALL 0x00124640
LAB_0013bb45:
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0013bc34
LEA RAX,[RBX + R13*0x1]
MOV qword ptr [RBP + -0x50],RBX
ADD RBX,R15
MOV RCX,qword ptr [RBP + -0x30]
CMP RCX,R14
MOV qword ptr [RBP + -0x48],RAX
JZ 0x0013bc1a
ADD R13,R12
MOV qword ptr [RBP + -0x38],R13
ADD R15,qword ptr [RBP + -0x58]
SUB R14,RCX
MOV R13,RAX
MOV qword ptr [RBP + -0x30],R15
LAB_0013bb85:
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
TEST EAX,EAX
JLE 0x0013bbc0
MOV R15D,EAX
LEA R12,[R15 + R13*0x1]
CMP R12,qword ptr [RBP + -0x38]
JA 0x0013bc1f
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
CALL 0x001242a0
MOV R13,R12
JMP 0x0013bc08
LAB_0013bbc0:
SETNZ AL
CMP RBX,R15
SETNC CL
TEST CL,AL
JNZ 0x0013bc1f
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0013bbdc
MOV qword ptr [RAX + 0x8],RBX
LAB_0013bbdc:
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RDI + 0xb8]
MOV ESI,0x3f
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x38]
CALL qword ptr [RAX + 0x30]
TEST EAX,EAX
JLE 0x0013bc1f
MOV EAX,EAX
ADD R13,RAX
MOV R15D,0x1
MOV R12,R13
LAB_0013bc08:
ADD RBX,R15
INC R14
MOV R15,qword ptr [RBP + -0x30]
JNZ 0x0013bb85
JMP 0x0013bc22
LAB_0013bc1a:
MOV R12,RAX
JMP 0x0013bc22
LAB_0013bc1f:
MOV R12,R13
LAB_0013bc22:
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RBX
MOV RBX,qword ptr [RBP + -0x50]
SUB RBX,qword ptr [RBP + -0x48]
ADD RBX,R12
LAB_0013bc34:
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
size_t my_copy_fix_mb(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
long param_6,long *param_7)
{
void *pvVar1;
uint uVar2;
long lVar3;
size_t __n;
void *__src;
void *__dest;
ulong uVar4;
uVar4 = param_3;
if (param_5 < param_3) {
uVar4 = param_5;
}
lVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 200))
(param_1,param_4,uVar4 + (long)param_4,param_6,param_7);
__n = *param_7 - (long)param_4;
if (__n != 0) {
memmove(param_2,param_4,__n);
}
if (param_7[1] != 0) {
pvVar1 = (void *)(__n + (long)param_2);
__src = (void *)(__n + (long)param_4);
__dest = pvVar1;
if (param_6 != lVar3) {
lVar3 = lVar3 - param_6;
do {
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,__src,(void *)((long)param_4 + param_5));
if ((int)uVar2 < 1) {
if ((void *)((long)param_4 + param_5) <= __src && uVar2 != 0) break;
if (param_7[1] == 0) {
param_7[1] = (long)__src;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,0x3f,__dest,(void *)((long)param_2 + param_3));
if ((int)uVar2 < 1) break;
__dest = (void *)((long)__dest + (ulong)uVar2);
uVar4 = 1;
}
else {
uVar4 = (ulong)uVar2;
if ((void *)((long)param_2 + param_3) < (void *)(uVar4 + (long)__dest)) break;
memcpy(__dest,__src,uVar4);
__dest = (void *)(uVar4 + (long)__dest);
}
__src = (void *)((long)__src + uVar4);
lVar3 = lVar3 + 1;
} while (lVar3 != 0);
}
*param_7 = (long)__src;
__n = (__n - (long)pvVar1) + (long)__dest;
}
return __n;
}
| |
24,675 | maria_flush_log_for_page | eloqsql/storage/maria/ma_pagecrc.c | my_bool maria_flush_log_for_page(PAGECACHE_IO_HOOK_ARGS *args)
{
LSN lsn;
uchar *page= args->page;
MARIA_SHARE *share= (MARIA_SHARE *)args->data;
DBUG_ENTER("maria_flush_log_for_page");
/* share is 0 here only in unittest */
DBUG_ASSERT(!share || share->page_type == PAGECACHE_LSN_PAGE);
lsn= lsn_korr(page);
if (translog_flush(lsn))
DBUG_RETURN(1);
/*
Now when log is written, it's safe to incremented 'open' counter for
the table so that we know it was not closed properly.
*/
if (share && !share->global_changed)
_ma_mark_file_changed_now(share);
DBUG_RETURN(0);
} | O0 | c | maria_flush_log_for_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x5d9a5
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movq -0x20(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x20(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x20(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x567d0
cmpb $0x0, %al
je 0x5d9ef
jmp 0x5d9e9
movb $0x1, -0x1(%rbp)
jmp 0x5da12
cmpq $0x0, -0x28(%rbp)
je 0x5da0c
movq -0x28(%rbp), %rax
cmpb $0x0, 0x7df(%rax)
jne 0x5da0c
movq -0x28(%rbp), %rdi
callq 0x35db0
jmp 0x5da0e
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| maria_flush_log_for_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_28], rax
jmp short $+2
loc_5D9A5:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_20]
mov ecx, [rcx+3]
or rax, rcx
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call translog_flush
cmp al, 0
jz short loc_5D9EF
jmp short $+2
loc_5D9E9:
mov [rbp+var_1], 1
jmp short loc_5DA12
loc_5D9EF:
cmp [rbp+var_28], 0
jz short loc_5DA0C
mov rax, [rbp+var_28]
cmp byte ptr [rax+7DFh], 0
jnz short loc_5DA0C
mov rdi, [rbp+var_28]
call _ma_mark_file_changed_now
loc_5DA0C:
jmp short $+2
loc_5DA0E:
mov [rbp+var_1], 0
loc_5DA12:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char maria_flush_log_for_page(unsigned __int16 **a1)
{
long long v2; // [rsp+8h] [rbp-28h]
v2 = (long long)a1[2];
if ( translog_flush(*(unsigned int *)((char *)*a1 + 3) | ((unsigned long long)((*((unsigned __int8 *)*a1 + 2) << 16) | (unsigned int)**a1) << 32)) )
return 1;
if ( v2 && !*(_BYTE *)(v2 + 2015) )
ma_mark_file_changed_now(v2);
return 0;
}
| maria_flush_log_for_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015d9a5
LAB_0015d9a5:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001567d0
CMP AL,0x0
JZ 0x0015d9ef
JMP 0x0015d9e9
LAB_0015d9e9:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015da12
LAB_0015d9ef:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015da0c
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX + 0x7df],0x0
JNZ 0x0015da0c
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00135db0
LAB_0015da0c:
JMP 0x0015da0e
LAB_0015da0e:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015da12:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 maria_flush_log_for_page(long *param_1)
{
long lVar1;
char cVar2;
int1 local_9;
lVar1 = param_1[2];
cVar2 = translog_flush((ulong)CONCAT34(*(int3 *)*param_1,*(int4 *)(*param_1 + 3)));
if (cVar2 == '\0') {
if ((lVar1 != 0) && (*(char *)(lVar1 + 0x7df) == '\0')) {
_ma_mark_file_changed_now(lVar1);
}
local_9 = 0;
}
else {
local_9 = 1;
}
return local_9;
}
| |
24,676 | common_arg::common_arg(std::initializer_list<char const*> 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&)) | llama.cpp/common/arg.h | common_arg(
const std::initializer_list<const char *> & args,
const char * value_hint,
const std::string & help,
void (*handler)(common_params & params, const std::string &)
) : args(args), value_hint(value_hint), help(help), handler_string(handler) {} | O3 | c | common_arg::common_arg(std::initializer_list<char const*> 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&)):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x4(%rsp), %rsi
movl $0x0, (%rsi)
leaq 0x3(%rsp), %rcx
leaq 0x2(%rsp), %r8
movl $0x1, %edx
callq 0x919b0
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), %r13
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
leaq 0x1(%rsp), %rcx
movq %r13, %rdi
callq 0x91a32
movq %r12, 0x78(%rbx)
leaq 0x90(%rbx), %rdi
leaq 0xa0(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
movq %rax, 0x90(%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x33b24
movb $0x0, 0xb0(%rbx)
movq $0x0, 0xb8(%rbx)
movq %r14, 0xc0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xc8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%r13), %rdi
testq %rdi, %rdi
je 0x7257c
movq 0x70(%rbx), %rsi
subq %rdi, %rsi
callq 0x21180
jmp 0x7257c
movq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x91a78
movq %rbx, %rdi
callq 0x91a78
movq %r14, %rdi
callq 0x21b70
nop
| _ZN10common_argC2ERKSt16initializer_listIPKcES2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvR13common_paramsSD_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov rbp, rsi
mov rbx, rdi
lea rsi, [rsp+38h+var_34]
mov dword ptr [rsi], 0
lea rcx, [rsp+38h+var_35]
lea r8, [rsp+38h+var_36]
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 r13, [rbx+60h]
mov rsi, [rbp+0]
mov rdx, [rbp+8]
lea rcx, [rsp+38h+var_37]
mov rdi, r13
call _ZNSt6vectorIPKcSaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<char const*>::vector(std::initializer_list<char const*>,std::allocator<char const*> const&)
mov [rbx+78h], r12
lea rdi, [rbx+90h]
lea rax, [rbx+0A0h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+80h], xmm0
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
mov qword ptr [rbx+0B8h], 0
mov [rbx+0C0h], r14
xorps xmm0, xmm0
movups xmmword ptr [rbx+0C8h], xmm0
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [r13+0]; void *
test rdi, rdi
jz short loc_7257C
mov rsi, [rbx+70h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7257C
mov r14, rax
loc_7257C:
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)
{
int v5; // eax
long long result; // rax
int v10; // [rsp+0h] [rbp-38h] BYREF
_DWORD v11[13]; // [rsp+4h] [rbp-34h] BYREF
v10 = v5;
v11[0] = 0;
std::set<llama_example>::set(a1, v11, 1LL, (char *)&v10 + 3, (char *)&v10 + 2);
*(_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], (char *)&v10 + 1);
*(_QWORD *)(a1 + 120) = a3;
*(_OWORD *)(a1 + 128) = 0LL;
*(_QWORD *)(a1 + 144) = a1 + 160;
result = std::string::_M_construct<char *>(a1 + 144, *(_BYTE **)a4, *(_QWORD *)a4 + *(_QWORD *)(a4 + 8));
*(_BYTE *)(a1 + 176) = 0;
*(_QWORD *)(a1 + 184) = 0LL;
*(_QWORD *)(a1 + 192) = a5;
*(_OWORD *)(a1 + 200) = 0LL;
return result;
}
| common_arg:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV RBP,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x4]
MOV dword ptr [RSI],0x0
LEA RCX,[RSP + 0x3]
LEA R8,[RSP + 0x2]
MOV EDX,0x1
CALL 0x001919b0
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 R13,[RBX + 0x60]
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
LAB_001724ee:
LEA RCX,[RSP + 0x1]
MOV RDI,R13
CALL 0x00191a32
MOV qword ptr [RBX + 0x78],R12
LEA RDI,[RBX + 0x90]
LEA RAX,[RBX + 0xa0]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x80],XMM0
MOV qword ptr [RBX + 0x90],RAX
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LAB_00172528:
CALL 0x00133b24
LAB_0017252d:
MOV byte ptr [RBX + 0xb0],0x0
MOV qword ptr [RBX + 0xb8],0x0
MOV qword ptr [RBX + 0xc0],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xc8],XMM0
ADD RSP,0x8
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*,
std::__cxx11::string const&, void (*)(common_params&, std::__cxx11::string const&)) */
void __thiscall
common_arg::common_arg
(common_arg *this,initializer_list *param_1,char *param_2,string *param_3,
_func_void_common_params_ptr_string_ptr *param_4)
{
int4 in_EAX;
int8 in_R9;
std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set
(this,&stack0xffffffffffffffcc,1,&stack0xffffffffffffffcb,&stack0xffffffffffffffca,in_R9
,in_EAX);
*(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 001724ee to 001724fa has its CatchHandler @ 00172579 */
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),&stack0xffffffffffffffc9);
*(char **)(this + 0x78) = param_2;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
*(common_arg **)(this + 0x90) = this + 0xa0;
/* try { // try from 00172528 to 0017252c has its CatchHandler @ 0017255f */
std::__cxx11::string::_M_construct<char*>
(this + 0x90,*(long *)param_3,*(long *)(param_3 + 8) + *(long *)param_3);
this[0xb0] = (common_arg)0x0;
*(int8 *)(this + 0xb8) = 0;
*(_func_void_common_params_ptr_string_ptr **)(this + 0xc0) = param_4;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
return;
}
| |
24,677 | ps_fetch_string | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_string(MYSQL_BIND *r_param,
const MYSQL_FIELD *field __attribute__((unused)),
unsigned char **row)
{
/* C-API differs from PHP. While PHP just converts string to string,
C-API needs to convert the string to the defined type with in
the result bind buffer.
*/
ulong field_length= net_field_length(row);
convert_froma_string(r_param, (char *)*row, field_length);
(*row) += field_length;
} | O3 | c | ps_fetch_string:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x18661
movq %rax, %r15
movq (%rbx), %rsi
movq %r14, %rdi
movq %rax, %rdx
callq 0x27571
addq %r15, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| ps_fetch_string:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rdi
mov rdi, rdx
call net_field_length
mov r15, rax
mov rsi, [rbx]
mov rdi, r14
mov rdx, rax
call convert_froma_string
add [rbx], r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ps_fetch_string(long long a1, long long a2, unsigned __int8 **a3)
{
unsigned long long v4; // r15
long long result; // rax
v4 = net_field_length(a3);
result = convert_froma_string(a1, *a3, v4);
*a3 += v4;
return result;
}
| ps_fetch_string:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RDI
MOV RDI,RDX
CALL 0x00118661
MOV R15,RAX
MOV RSI,qword ptr [RBX]
MOV RDI,R14
MOV RDX,RAX
CALL 0x00127571
ADD qword ptr [RBX],R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void ps_fetch_string(int8 param_1,int8 param_2,long *param_3)
{
long lVar1;
lVar1 = net_field_length(param_3);
convert_froma_string(param_1,*param_3,lVar1);
*param_3 = *param_3 + lVar1;
return;
}
| |
24,678 | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::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 out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::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 0x6f1f9(%rip), %rsi # 0xb1560
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x26cb4
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3e4ec
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x42866
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x3e483
leaq 0x8(%rsp), %rdi
callq 0x24208
leaq 0x48(%rsp), %rdi
callq 0x24208
leaq 0x28(%rsp), %rdi
callq 0x24208
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x42888
leaq 0x68(%rsp), %rdi
callq 0x24208
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x42423
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x24208
jmp 0x4240f
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x24208
jmp 0x4241e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x24208
jmp 0x4242d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x23fc0
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
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, aOutOfRange; "out_of_range"
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_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(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_42423
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4240F
mov rbx, rax
loc_4240F:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4241E
mov rbx, rax
loc_4241E:
lea rdi, [rsp+arg_20]; void *
loc_42423:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4242D
mov rbx, rax
loc_4242D:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::out_of_range *this,
int a2,
long long a3,
long long a4)
{
_BYTE v7[32]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v8[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v9[32]; // [rsp+48h] [rbp-60h] BYREF
char *v10[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v8, (long long)"out_of_range");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v8, 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>>(
v7,
a4);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v10,
(long long)v9,
(long long)v7,
a3);
std::string::~string(v7);
std::string::~string(v9);
std::string::~string(v8);
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v10[0]);
std::string::~string(v10);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00142360:
LEA RSI,[0x1b1560]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x00126cb4
LAB_00142376:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013e4ec
LAB_00142387:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x00142866
LAB_00142394:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0013e483
LEA RDI,[RSP + 0x8]
CALL 0x00124208
LEA RDI,[RSP + 0x48]
CALL 0x00124208
LEA RDI,[RSP + 0x28]
CALL 0x00124208
MOV RDX,qword ptr [RSP + 0x68]
LAB_001423ce:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00142888
LAB_001423d8:
LEA RDI,[RSP + 0x68]
CALL 0x00124208
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
out_of_range *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(out_of_range *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 00142360 to 00142375 has its CatchHandler @ 0014242a */
std::__cxx11::string::string<std::allocator<char>>(local_80,"out_of_range",&local_a1);
/* try { // try from 00142376 to 00142386 has its CatchHandler @ 0014241b */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 00142387 to 00142393 has its CatchHandler @ 0014240c */
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 00142394 to 001423aa has its CatchHandler @ 001423fd */
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 001423ce to 001423d7 has its CatchHandler @ 001423f3 */
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
24,679 | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::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 out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::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 0x4151f(%rip), %rsi # 0xed54e
leaq 0x41524(%rip), %rdx # 0xed55a
leaq 0x28(%rsp), %rdi
callq 0x22610
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x5932c
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 0x1ada0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a260
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a260
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a260
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xac0d9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a900
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xac0f4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a900
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xac10b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a900
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5959a
leaq 0x7ddcf(%rip), %rax # 0x129ef0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xac13f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a900
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 0xac1cd
movq 0x18(%rsp), %rsi
jmp 0xac1c5
movq %rax, %rbx
jmp 0xac1b6
movq %rax, %rbx
jmp 0xac1cd
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xac18f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a900
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 0x1c010
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xac1cd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a900
movq %rbx, %rdi
callq 0x1afc0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
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, aOutOfRange; "out_of_range"
lea rdx, aOutOfRange+0Ch; ""
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_AC0D9
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC0D9:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AC0F4
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC0F4:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_AC10B
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC10B:
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_36detail12out_of_rangeE; `vtable for'nlohmann::json_abi_v3_11_3::detail::out_of_range
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_AC13F
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC13F:
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_AC1CD
mov rsi, [rsp+arg_10]
jmp short loc_AC1C5
mov rbx, rax
jmp short loc_AC1B6
mov rbx, rax
jmp short loc_AC1CD
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_AC18F
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC18F:
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_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_AC1B6:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_AC1CD
mov rsi, [rsp+arg_30]
loc_AC1C5:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC1CD:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "out_of_range", (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::out_of_range + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
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_001ac028:
LEA RSI,[0x1ed54e]
LEA RDX,[0x1ed55a]
LEA RDI,[RSP + 0x28]
CALL 0x00122610
LAB_001ac040:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0015932c
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_001ac07f:
LEA RDI,[RSP + 0x8]
CALL 0x0011ada0
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x0011a260
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x0011a260
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0011a260
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001ac0d9
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011a900
LAB_001ac0d9:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001ac0f4
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011a900
LAB_001ac0f4:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001ac10b
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a900
LAB_001ac10b:
MOV RDX,qword ptr [RSP + 0x8]
LAB_001ac110:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0015959a
LAB_001ac11a:
LEA RAX,[0x229ef0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001ac13f
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a900
LAB_001ac13f:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(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 001ac028 to 001ac03f has its CatchHandler @ 001ac16d */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range","");
/* try { // try from 001ac040 to 001ac050 has its CatchHandler @ 001ac168 */
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 001ac07f to 001ac0c1 has its CatchHandler @ 001ac172 */
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 001ac110 to 001ac119 has its CatchHandler @ 001ac154 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_00229f00;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
24,680 | find_collation_data_inheritance_source | eloqsql/mysys/charset.c | static CHARSET_INFO *find_collation_data_inheritance_source(CHARSET_INFO *cs, myf flags)
{
const char *beg, *end;
if (cs->tailoring &&
!strncmp(cs->tailoring, "[import ", 8) &&
(end= strchr(cs->tailoring + 8, ']')) &&
(beg= cs->tailoring + 8) + MY_CS_NAME_SIZE > end)
{
char name[MY_CS_NAME_SIZE + 1];
memcpy(name, beg, end - beg);
name[end - beg]= '\0';
return inheritance_source_by_id(cs, get_collation_number(name,MYF(flags)));
}
return NULL;
} | O0 | c | find_collation_data_inheritance_source:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq -0x40(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0xddbc6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rdi
leaq 0x76431(%rip), %rsi # 0x153f5c
movl $0x8, %edx
callq 0x2a1e0
cmpl $0x0, %eax
jne 0xddbc6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x8, %rdi
movl $0x5d, %esi
callq 0x2a410
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0xddbc6
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
addq $0x8, %rax
movq %rax, -0x50(%rbp)
addq $0x20, %rax
cmpq -0x58(%rbp), %rax
jbe 0xddbc6
leaq -0x30(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rax
subq %rax, %rdx
callq 0x2a090
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
movb $0x0, -0x30(%rbp,%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xdb900
movq -0x60(%rbp), %rdi
movl %eax, %esi
callq 0xddd40
movq %rax, -0x38(%rbp)
jmp 0xddbce
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xddbf2
movq -0x68(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
callq 0x2a270
nopw (%rax,%rax)
| find_collation_data_inheritance_source:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov rax, [rbp+var_40]
cmp qword ptr [rax+38h], 0
jz loc_DDBC6
mov rax, [rbp+var_40]
mov rdi, [rax+38h]
lea rsi, aImport; "[import "
mov edx, 8
call _strncmp
cmp eax, 0
jnz loc_DDBC6
mov rax, [rbp+var_40]
mov rdi, [rax+38h]
add rdi, 8
mov esi, 5Dh ; ']'
call _strchr
mov [rbp+var_58], rax
cmp rax, 0
jz short loc_DDBC6
mov rax, [rbp+var_40]
mov rax, [rax+38h]
add rax, 8
mov [rbp+var_50], rax
add rax, 20h ; ' '
cmp rax, [rbp+var_58]
jbe short loc_DDBC6
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_58]
mov rax, [rbp+var_50]
sub rdx, rax
call _memcpy
mov rax, [rbp+var_58]
mov rcx, [rbp+var_50]
sub rax, rcx
mov [rbp+rax+var_30], 0
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call get_collation_number
mov rdi, [rbp+var_60]
mov esi, eax
call inheritance_source_by_id
mov [rbp+var_38], rax
jmp short loc_DDBCE
loc_DDBC6:
mov [rbp+var_38], 0
loc_DDBCE:
mov rax, [rbp+var_38]
mov [rbp+var_68], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_DDBF2
mov rax, [rbp+var_68]
add rsp, 70h
pop rbp
retn
loc_DDBF2:
call ___stack_chk_fail
| long long find_collation_data_inheritance_source(long long a1, long long a2)
{
unsigned int collation_number; // eax
unsigned long long v4; // [rsp+18h] [rbp-58h]
long long v5; // [rsp+20h] [rbp-50h]
_BYTE v7[40]; // [rsp+40h] [rbp-30h] BYREF
unsigned long long v8; // [rsp+68h] [rbp-8h]
v8 = __readfsqword(0x28u);
if ( !*(_QWORD *)(a1 + 56) )
return 0LL;
if ( (unsigned int)strncmp(*(_QWORD *)(a1 + 56), "[import ", 8LL) )
return 0LL;
v4 = strchr(*(_QWORD *)(a1 + 56) + 8LL, 93LL);
if ( !v4 )
return 0LL;
v5 = *(_QWORD *)(a1 + 56) + 8LL;
if ( *(_QWORD *)(a1 + 56) + 40LL <= v4 )
return 0LL;
memcpy(v7, v5, v4 - v5);
v7[v4 - v5] = 0;
collation_number = get_collation_number((long long)v7, a2);
return inheritance_source_by_id(a1, collation_number);
}
| find_collation_data_inheritance_source:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x001ddbc6
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x38]
LEA RSI,[0x253f5c]
MOV EDX,0x8
CALL 0x0012a1e0
CMP EAX,0x0
JNZ 0x001ddbc6
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x8
MOV ESI,0x5d
CALL 0x0012a410
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JZ 0x001ddbc6
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x38]
ADD RAX,0x8
MOV qword ptr [RBP + -0x50],RAX
ADD RAX,0x20
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x001ddbc6
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x50]
SUB RDX,RAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
MOV byte ptr [RBP + RAX*0x1 + -0x30],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001db900
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,EAX
CALL 0x001ddd40
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001ddbce
LAB_001ddbc6:
MOV qword ptr [RBP + -0x38],0x0
LAB_001ddbce:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001ddbf2
MOV RAX,qword ptr [RBP + -0x68]
ADD RSP,0x70
POP RBP
RET
LAB_001ddbf2:
CALL 0x0012a270
|
int8 find_collation_data_inheritance_source(long param_1,int8 param_2)
{
int iVar1;
int4 uVar2;
char *pcVar3;
void *__src;
long in_FS_OFFSET;
int8 local_40;
char local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (*(long *)(param_1 + 0x38) != 0) {
iVar1 = strncmp(*(char **)(param_1 + 0x38),"[import ",8);
if (iVar1 == 0) {
pcVar3 = strchr((char *)(*(long *)(param_1 + 0x38) + 8),0x5d);
if ((pcVar3 != (char *)0x0) &&
(__src = (void *)(*(long *)(param_1 + 0x38) + 8),
pcVar3 < (char *)(*(long *)(param_1 + 0x38) + 0x28))) {
memcpy(local_38,__src,(long)pcVar3 - (long)__src);
pcVar3[(long)(local_38 + -(long)__src)] = '\0';
uVar2 = get_collation_number(local_38,param_2);
local_40 = inheritance_source_by_id(param_1,uVar2);
goto LAB_001ddbce;
}
}
}
local_40 = 0;
LAB_001ddbce:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_40;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
24,681 | lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&) | dmazzella[P]pylunasvg/lunasvg/source/svggeometryelement.cpp | Rect SVGEllipseElement::updateShape(Path& path)
{
LengthContext lengthContext(this);
auto rx = lengthContext.valueForLength(m_rx);
auto ry = lengthContext.valueForLength(m_ry);
if(rx <= 0.f || ry <= 0.f) {
return Rect::Empty;
}
auto cx = lengthContext.valueForLength(m_cx);
auto cy = lengthContext.valueForLength(m_cy);
path.addEllipse(cx, cy, rx, ry);
return Rect(cx - rx, cy - ry, rx + rx, ry + ry);
} | O0 | cpp | lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq -0x18(%rbp), %rsi
movq %rsi, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
callq 0x20050
movq -0x48(%rbp), %rsi
addq $0x148, %rsi # imm = 0x148
leaq -0x30(%rbp), %rdi
callq 0x20080
movq -0x48(%rbp), %rsi
movss %xmm0, -0x34(%rbp)
addq $0x160, %rsi # imm = 0x160
leaq -0x30(%rbp), %rdi
callq 0x20080
movss %xmm0, -0x38(%rbp)
xorps %xmm0, %xmm0
ucomiss -0x34(%rbp), %xmm0
jae 0x2e6a7
xorps %xmm0, %xmm0
ucomiss -0x38(%rbp), %xmm0
jb 0x2e6c2
leaq 0x5daaa(%rip), %rax # 0x8c158
movq (%rax), %rcx
movq %rcx, -0x10(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2e742
movq -0x48(%rbp), %rsi
addq $0x118, %rsi # imm = 0x118
leaq -0x30(%rbp), %rdi
callq 0x20080
movq -0x48(%rbp), %rsi
movss %xmm0, -0x3c(%rbp)
addq $0x130, %rsi # imm = 0x130
leaq -0x30(%rbp), %rdi
callq 0x20080
movss %xmm0, -0x40(%rbp)
movq -0x20(%rbp), %rdi
movss -0x3c(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
movss -0x34(%rbp), %xmm2
movss -0x38(%rbp), %xmm3
callq 0x12410
movss -0x3c(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
subss -0x38(%rbp), %xmm1
movss -0x34(%rbp), %xmm2
addss -0x34(%rbp), %xmm2
movss -0x38(%rbp), %xmm3
addss -0x38(%rbp), %xmm3
leaq -0x10(%rbp), %rdi
callq 0x14ee0
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN7lunasvg17SVGEllipseElement11updateShapeERNS_4PathE:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov rsi, [rbp+var_18]
mov [rbp+var_48], rsi
lea rdi, [rbp+var_30]
xor edx, edx
call _ZN7lunasvg13LengthContextC2EPKNS_10SVGElementENS_5UnitsE; lunasvg::LengthContext::LengthContext(lunasvg::SVGElement const*,lunasvg::Units)
mov rsi, [rbp+var_48]
add rsi, 148h; lunasvg::SVGLength *
lea rdi, [rbp+var_30]; this
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_9SVGLengthE; lunasvg::LengthContext::valueForLength(lunasvg::SVGLength const&)
mov rsi, [rbp+var_48]
movss [rbp+var_34], xmm0
add rsi, 160h; lunasvg::SVGLength *
lea rdi, [rbp+var_30]; this
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_9SVGLengthE; lunasvg::LengthContext::valueForLength(lunasvg::SVGLength const&)
movss [rbp+var_38], xmm0
xorps xmm0, xmm0
ucomiss xmm0, [rbp+var_34]
jnb short loc_2E6A7
xorps xmm0, xmm0
ucomiss xmm0, [rbp+var_38]
jb short loc_2E6C2
loc_2E6A7:
lea rax, _ZN7lunasvg4Rect5EmptyE; lunasvg::Rect::Empty
mov rcx, [rax]
mov [rbp+var_10], rcx
mov rax, [rax+8]
mov [rbp+var_8], rax
jmp loc_2E742
loc_2E6C2:
mov rsi, [rbp+var_48]
add rsi, 118h; lunasvg::SVGLength *
lea rdi, [rbp+var_30]; this
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_9SVGLengthE; lunasvg::LengthContext::valueForLength(lunasvg::SVGLength const&)
mov rsi, [rbp+var_48]
movss [rbp+var_3C], xmm0
add rsi, 130h; lunasvg::SVGLength *
lea rdi, [rbp+var_30]; this
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_9SVGLengthE; lunasvg::LengthContext::valueForLength(lunasvg::SVGLength const&)
movss [rbp+var_40], xmm0
mov rdi, [rbp+var_20]; this
movss xmm0, [rbp+var_3C]; float
movss xmm1, [rbp+var_40]; float
movss xmm2, [rbp+var_34]; float
movss xmm3, [rbp+var_38]; float
call _ZN7lunasvg4Path10addEllipseEffff; lunasvg::Path::addEllipse(float,float,float,float)
movss xmm0, [rbp+var_3C]
subss xmm0, [rbp+var_34]; float
movss xmm1, [rbp+var_40]
subss xmm1, [rbp+var_38]; float
movss xmm2, [rbp+var_34]
addss xmm2, [rbp+var_34]; float
movss xmm3, [rbp+var_38]
addss xmm3, [rbp+var_38]; float
lea rdi, [rbp+var_10]; this
call _ZN7lunasvg4RectC2Effff; lunasvg::Rect::Rect(float,float,float,float)
loc_2E742:
movsd xmm0, [rbp+var_10]
movsd xmm1, [rbp+var_8]
add rsp, 50h
pop rbp
retn
| double lunasvg::SVGEllipseElement::updateShape(lunasvg::SVGEllipseElement *this, lunasvg::Path *a2)
{
float v3; // [rsp+10h] [rbp-40h]
float v4; // [rsp+14h] [rbp-3Ch]
float v5; // [rsp+18h] [rbp-38h]
float v6; // [rsp+1Ch] [rbp-34h]
_BYTE v7[16]; // [rsp+20h] [rbp-30h] BYREF
lunasvg::Path *v8; // [rsp+30h] [rbp-20h]
lunasvg::SVGEllipseElement *v9; // [rsp+38h] [rbp-18h]
_QWORD v10[2]; // [rsp+40h] [rbp-10h] BYREF
v9 = this;
v8 = a2;
lunasvg::LengthContext::LengthContext((long long)v7, (long long)this, 0);
v6 = lunasvg::LengthContext::valueForLength(
(lunasvg::LengthContext *)v7,
(lunasvg::SVGEllipseElement *)((char *)this + 328));
v5 = lunasvg::LengthContext::valueForLength(
(lunasvg::LengthContext *)v7,
(lunasvg::SVGEllipseElement *)((char *)this + 352));
if ( v6 > 0.0 && v5 > 0.0 )
{
v4 = lunasvg::LengthContext::valueForLength(
(lunasvg::LengthContext *)v7,
(lunasvg::SVGEllipseElement *)((char *)this + 280));
v3 = lunasvg::LengthContext::valueForLength(
(lunasvg::LengthContext *)v7,
(lunasvg::SVGEllipseElement *)((char *)this + 304));
lunasvg::Path::addEllipse(v8, v4, v3, v6, v5);
lunasvg::Rect::Rect((lunasvg::Rect *)v10, v4 - v6, v3 - v5, v6 + v6, v5 + v5);
}
else
{
v10[0] = lunasvg::Rect::Empty;
v10[1] = *(&lunasvg::Rect::Empty + 1);
}
return *(double *)v10;
}
| updateShape:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV RSI,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RSI
LEA RDI,[RBP + -0x30]
XOR EDX,EDX
CALL 0x00120050
MOV RSI,qword ptr [RBP + -0x48]
ADD RSI,0x148
LEA RDI,[RBP + -0x30]
CALL 0x00120080
MOV RSI,qword ptr [RBP + -0x48]
MOVSS dword ptr [RBP + -0x34],XMM0
ADD RSI,0x160
LEA RDI,[RBP + -0x30]
CALL 0x00120080
MOVSS dword ptr [RBP + -0x38],XMM0
XORPS XMM0,XMM0
UCOMISS XMM0,dword ptr [RBP + -0x34]
JNC 0x0012e6a7
XORPS XMM0,XMM0
UCOMISS XMM0,dword ptr [RBP + -0x38]
JC 0x0012e6c2
LAB_0012e6a7:
LEA RAX,[0x18c158]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012e742
LAB_0012e6c2:
MOV RSI,qword ptr [RBP + -0x48]
ADD RSI,0x118
LEA RDI,[RBP + -0x30]
CALL 0x00120080
MOV RSI,qword ptr [RBP + -0x48]
MOVSS dword ptr [RBP + -0x3c],XMM0
ADD RSI,0x130
LEA RDI,[RBP + -0x30]
CALL 0x00120080
MOVSS dword ptr [RBP + -0x40],XMM0
MOV RDI,qword ptr [RBP + -0x20]
MOVSS XMM0,dword ptr [RBP + -0x3c]
MOVSS XMM1,dword ptr [RBP + -0x40]
MOVSS XMM2,dword ptr [RBP + -0x34]
MOVSS XMM3,dword ptr [RBP + -0x38]
CALL 0x00112410
MOVSS XMM0,dword ptr [RBP + -0x3c]
SUBSS XMM0,dword ptr [RBP + -0x34]
MOVSS XMM1,dword ptr [RBP + -0x40]
SUBSS XMM1,dword ptr [RBP + -0x38]
MOVSS XMM2,dword ptr [RBP + -0x34]
ADDSS XMM2,dword ptr [RBP + -0x34]
MOVSS XMM3,dword ptr [RBP + -0x38]
ADDSS XMM3,dword ptr [RBP + -0x38]
LEA RDI,[RBP + -0x10]
CALL 0x00114ee0
LAB_0012e742:
MOVSD XMM0,qword ptr [RBP + -0x10]
MOVSD XMM1,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
/* lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&) */
int1 [16] __thiscall
lunasvg::SVGEllipseElement::updateShape(SVGEllipseElement *this,Path *param_1)
{
int1 auVar1 [16];
float fVar2;
float fVar3;
float fVar4;
float fVar5;
LengthContext local_38 [16];
Path *local_28;
SVGEllipseElement *local_20;
int8 local_18;
int8 local_10;
local_28 = param_1;
local_20 = this;
LengthContext::LengthContext(local_38,this,0);
fVar2 = (float)LengthContext::valueForLength(local_38,(SVGLength *)(this + 0x148));
fVar3 = (float)LengthContext::valueForLength(local_38,(SVGLength *)(this + 0x160));
if ((fVar2 <= 0.0) || (fVar3 <= 0.0)) {
local_18 = Rect::Empty;
local_10 = DAT_0018c160;
}
else {
fVar4 = (float)LengthContext::valueForLength(local_38,(SVGLength *)(this + 0x118));
fVar5 = (float)LengthContext::valueForLength(local_38,(SVGLength *)(this + 0x130));
Path::addEllipse(local_28,fVar4,fVar5,fVar2,fVar3);
Rect::Rect((Rect *)&local_18,fVar4 - fVar2,fVar5 - fVar3,fVar2 + fVar2,fVar3 + fVar3);
}
auVar1._8_8_ = local_10;
auVar1._0_8_ = local_18;
return auVar1;
}
| |
24,682 | lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&) | dmazzella[P]pylunasvg/lunasvg/source/svggeometryelement.cpp | Rect SVGEllipseElement::updateShape(Path& path)
{
LengthContext lengthContext(this);
auto rx = lengthContext.valueForLength(m_rx);
auto ry = lengthContext.valueForLength(m_ry);
if(rx <= 0.f || ry <= 0.f) {
return Rect::Empty;
}
auto cx = lengthContext.valueForLength(m_cx);
auto cy = lengthContext.valueForLength(m_cy);
path.addEllipse(cx, cy, rx, ry);
return Rect(cx - rx, cy - ry, rx + rx, ry + ry);
} | O1 | cpp | lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rsp), %r15
movq %rdi, (%r15)
movb $0x0, 0x8(%r15)
leaq 0x154(%rdi), %rsi
movzbl 0x151(%rdi), %edx
movq %r15, %rdi
callq 0x1f7ea
movaps %xmm0, (%rsp)
leaq 0x16c(%r14), %rsi
movzbl 0x169(%r14), %edx
movq %r15, %rdi
callq 0x1f7ea
movaps (%rsp), %xmm1
xorps %xmm2, %xmm2
ucomiss %xmm1, %xmm2
jae 0x14a9d
ucomiss %xmm0, %xmm2
jae 0x14a9d
leaq 0x124(%r14), %rsi
movzbl 0x121(%r14), %edx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movaps %xmm0, 0x20(%rsp)
callq 0x1f7ea
movaps %xmm0, 0x10(%rsp)
movzbl 0x139(%r14), %edx
addq $0x13c, %r14 # imm = 0x13C
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f7ea
movaps %xmm0, %xmm1
movaps %xmm0, 0x30(%rsp)
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm2
movaps 0x20(%rsp), %xmm3
callq 0xd072
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
subss %xmm1, %xmm0
movaps 0x20(%rsp), %xmm2
movaps 0x30(%rsp), %xmm3
subss %xmm2, %xmm3
unpcklps %xmm3, %xmm0 # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
addss %xmm1, %xmm1
addss %xmm2, %xmm2
unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
jmp 0x14aad
leaq 0x2e6d8(%rip), %rax # 0x4317c
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN7lunasvg17SVGEllipseElement11updateShapeERNS_4PathE:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rsi
mov r14, rdi
lea r15, [rsp+68h+var_28]
mov [r15], rdi
mov byte ptr [r15+8], 0
lea rsi, [rdi+154h]
movzx edx, byte ptr [rdi+151h]
mov rdi, r15
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmmword ptr [rsp+68h+var_68], xmm0
lea rsi, [r14+16Ch]
movzx edx, byte ptr [r14+169h]
mov rdi, r15
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmm1, xmmword ptr [rsp+68h+var_68]
xorps xmm2, xmm2
ucomiss xmm2, xmm1
jnb loc_14A9D
ucomiss xmm2, xmm0
jnb loc_14A9D
lea rsi, [r14+124h]
movzx edx, byte ptr [r14+121h]
lea r15, [rsp+68h+var_28]
mov rdi, r15
movaps xmmword ptr [rsp+68h+var_48], xmm0
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmmword ptr [rsp+68h+var_58], xmm0
movzx edx, byte ptr [r14+139h]
add r14, 13Ch
mov rdi, r15
mov rsi, r14
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmm1, xmm0; float
movaps [rsp+68h+var_38], xmm0
mov rdi, rbx; this
movaps xmm0, xmmword ptr [rsp+68h+var_58]; float
movaps xmm2, xmmword ptr [rsp+68h+var_68]; float
movaps xmm3, xmmword ptr [rsp+68h+var_48]; float
call _ZN7lunasvg4Path10addEllipseEffff; lunasvg::Path::addEllipse(float,float,float,float)
movaps xmm0, xmmword ptr [rsp+68h+var_58]
movaps xmm1, xmmword ptr [rsp+68h+var_68]
subss xmm0, xmm1
movaps xmm2, xmmword ptr [rsp+68h+var_48]
movaps xmm3, [rsp+68h+var_38]
subss xmm3, xmm2
unpcklps xmm0, xmm3
addss xmm1, xmm1
addss xmm2, xmm2
unpcklps xmm1, xmm2
jmp short loc_14AAD
loc_14A9D:
lea rax, _ZN7lunasvg4Rect5EmptyE; lunasvg::Rect::Empty
movsd xmm0, qword ptr [rax]
movsd xmm1, qword ptr [rax+8]
loc_14AAD:
add rsp, 50h
pop rbx
pop r14
pop r15
retn
| double lunasvg::SVGEllipseElement::updateShape(
lunasvg::SVGEllipseElement *this,
lunasvg::Path *a2,
__m128 a3)
{
double v3; // xmm0_8
__m128 v4; // xmm0
__m128 v5; // xmm3
double result; // xmm0_8
float v7; // [rsp+0h] [rbp-68h]
__m128 v8; // [rsp+10h] [rbp-58h]
float v9; // [rsp+20h] [rbp-48h]
__m128 v10; // [rsp+30h] [rbp-38h]
lunasvg::SVGEllipseElement *v11; // [rsp+40h] [rbp-28h] BYREF
char v12; // [rsp+48h] [rbp-20h]
v11 = this;
v12 = 0;
v3 = lunasvg::LengthContext::valueForLength(&v11, (char *)this + 340, *((unsigned __int8 *)this + 337));
v7 = *(float *)&v3;
*(double *)a3.m128_u64 = lunasvg::LengthContext::valueForLength(
&v11,
(char *)this + 364,
*((unsigned __int8 *)this + 361));
if ( v7 <= 0.0 || a3.m128_f32[0] <= 0.0 )
return *(double *)lunasvg::Rect::Empty;
v9 = a3.m128_f32[0];
*(double *)a3.m128_u64 = lunasvg::LengthContext::valueForLength(
&v11,
(char *)this + 292,
*((unsigned __int8 *)this + 289));
v8 = a3;
*(double *)a3.m128_u64 = lunasvg::LengthContext::valueForLength(
&v11,
(char *)this + 316,
*((unsigned __int8 *)this + 313));
v10 = a3;
lunasvg::Path::addEllipse(a2, v8.m128_f32[0], a3.m128_f32[0], v7, v9);
v4 = v8;
v4.m128_f32[0] = v8.m128_f32[0] - v7;
v5 = v10;
v5.m128_f32[0] = v10.m128_f32[0] - v9;
*(_QWORD *)&result = _mm_unpacklo_ps(v4, v5).m128_u64[0];
return result;
}
| updateShape:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RSP + 0x40]
MOV qword ptr [R15],RDI
MOV byte ptr [R15 + 0x8],0x0
LEA RSI,[RDI + 0x154]
MOVZX EDX,byte ptr [RDI + 0x151]
MOV RDI,R15
CALL 0x0011f7ea
MOVAPS xmmword ptr [RSP],XMM0
LEA RSI,[R14 + 0x16c]
MOVZX EDX,byte ptr [R14 + 0x169]
MOV RDI,R15
CALL 0x0011f7ea
MOVAPS XMM1,xmmword ptr [RSP]
XORPS XMM2,XMM2
UCOMISS XMM2,XMM1
JNC 0x00114a9d
UCOMISS XMM2,XMM0
JNC 0x00114a9d
LEA RSI,[R14 + 0x124]
MOVZX EDX,byte ptr [R14 + 0x121]
LEA R15,[RSP + 0x40]
MOV RDI,R15
MOVAPS xmmword ptr [RSP + 0x20],XMM0
CALL 0x0011f7ea
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVZX EDX,byte ptr [R14 + 0x139]
ADD R14,0x13c
MOV RDI,R15
MOV RSI,R14
CALL 0x0011f7ea
MOVAPS XMM1,XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,RBX
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
MOVAPS XMM2,xmmword ptr [RSP]
MOVAPS XMM3,xmmword ptr [RSP + 0x20]
CALL 0x0010d072
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
MOVAPS XMM1,xmmword ptr [RSP]
SUBSS XMM0,XMM1
MOVAPS XMM2,xmmword ptr [RSP + 0x20]
MOVAPS XMM3,xmmword ptr [RSP + 0x30]
SUBSS XMM3,XMM2
UNPCKLPS XMM0,XMM3
ADDSS XMM1,XMM1
ADDSS XMM2,XMM2
UNPCKLPS XMM1,XMM2
JMP 0x00114aad
LAB_00114a9d:
LEA RAX,[0x14317c]
MOVSD XMM0,qword ptr [RAX]
MOVSD XMM1,qword ptr [RAX + 0x8]
LAB_00114aad:
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* lunasvg::SVGEllipseElement::updateShape(lunasvg::Path&) */
int8 __thiscall lunasvg::SVGEllipseElement::updateShape(SVGEllipseElement *this,Path *param_1)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
SVGEllipseElement *local_28;
int1 local_20;
local_20 = 0;
local_28 = this;
fVar1 = (float)LengthContext::valueForLength((LengthContext *)&local_28,this + 0x154,this[0x151]);
fVar2 = (float)LengthContext::valueForLength((LengthContext *)&local_28,this + 0x16c,this[0x169]);
if ((fVar1 <= 0.0) || (fVar2 <= 0.0)) {
fVar3 = (float)Rect::Empty;
fVar4 = (float)((ulong)Rect::Empty >> 0x20);
}
else {
fVar3 = (float)LengthContext::valueForLength
((LengthContext *)&local_28,this + 0x124,this[0x121]);
fVar4 = (float)LengthContext::valueForLength
((LengthContext *)&local_28,this + 0x13c,this[0x139]);
Path::addEllipse(param_1,fVar3,fVar4,fVar1,fVar2);
fVar3 = fVar3 - fVar1;
fVar4 = fVar4 - fVar2;
}
return CONCAT44(fVar4,fVar3);
}
| |
24,683 | ma_apply_redo_insert_row_head_or_tail | eloqsql/storage/maria/ma_blockrec.c | uint _ma_apply_redo_insert_row_head_or_tail(MARIA_HA *info, LSN lsn,
uint page_type,
my_bool new_page,
const uchar *header,
const uchar *data,
size_t data_length)
{
MARIA_SHARE *share= info->s;
pgcache_page_no_t page;
uint rownr, empty_space;
uint block_size= share->block_size;
uint rec_offset;
uchar *buff, *dir;
uint result;
MARIA_PINNED_PAGE page_link;
enum pagecache_page_lock lock_method;
enum pagecache_page_pin pin_method;
my_off_t end_of_page;
uint error;
DBUG_ENTER("_ma_apply_redo_insert_row_head_or_tail");
page= page_korr(header);
rownr= dirpos_korr(header + PAGE_STORE_SIZE);
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u data_length: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr, (uint) data_length));
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
end_of_page= (page + 1) * share->block_size;
if (end_of_page > share->state.state.data_file_length)
{
DBUG_PRINT("info", ("Enlarging data file from %lu to %lu",
(ulong) share->state.state.data_file_length,
(ulong) end_of_page));
/*
New page at end of file. Note that the test above is also positive if
data_file_length is not a multiple of block_size (system crashed while
writing the last page): in this case we just extend the last page and
fill it entirely with zeroes, then the REDO will put correct data on
it.
*/
lock_method= PAGECACHE_LOCK_WRITE;
pin_method= PAGECACHE_PIN;
DBUG_ASSERT(rownr == 0 && new_page);
if (rownr != 0 || !new_page)
goto crashed_file;
buff= info->keyread_buff;
info->keyread_buff_used= 1;
make_empty_page(info, buff, page_type, 1);
empty_space= (block_size - PAGE_OVERHEAD_SIZE(share));
rec_offset= PAGE_HEADER_SIZE(share);
dir= buff+ block_size - PAGE_SUFFIX_SIZE - DIR_ENTRY_SIZE;
}
else
{
lock_method= PAGECACHE_LOCK_LEFT_WRITELOCKED;
pin_method= PAGECACHE_PIN_LEFT_PINNED;
share->pagecache->readwrite_flags&= ~MY_WME;
share->silence_encryption_errors= 1;
buff= pagecache_read(share->pagecache, &info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link);
share->pagecache->readwrite_flags= share->pagecache->org_readwrite_flags;
share->silence_encryption_errors= 0;
if (!buff)
{
/* Skip errors when reading outside of file and uninitialized pages */
if (!new_page || (my_errno != HA_ERR_FILE_TOO_SHORT &&
my_errno != HA_ERR_WRONG_CRC &&
my_errno != HA_ERR_DECRYPTION_FAILED))
{
DBUG_PRINT("error", ("Error %d when reading page", (int) my_errno));
goto err;
}
/* Create new page */
buff= pagecache_block_link_to_buffer(page_link.link);
buff[PAGE_TYPE_OFFSET]= UNALLOCATED_PAGE;
}
else if (lsn_korr(buff) >= lsn) /* Test if already applied */
{
check_skipped_lsn(info, lsn_korr(buff), 1, page);
/* Fix bitmap, just in case */
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);
}
if (((uint) (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != page_type))
{
/*
This is a page that has been freed before and now should be
changed to new type.
*/
if (!new_page)
{
DBUG_PRINT("error",
("Found page of wrong type: %u, should have been %u",
(uint) (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK),
page_type));
goto crashed_file;
}
make_empty_page(info, buff, page_type, 0);
empty_space= block_size - PAGE_HEADER_SIZE(share) - PAGE_SUFFIX_SIZE;
(void) extend_directory(info, buff, block_size, 0, rownr, &empty_space,
page_type == HEAD_PAGE);
rec_offset= PAGE_HEADER_SIZE(share);
dir= dir_entry_pos(buff, block_size, rownr);
empty_space+= uint2korr(dir+2);
}
else
{
uint max_entry= (uint) buff[DIR_COUNT_OFFSET];
uint length;
DBUG_ASSERT(!new_page);
dir= dir_entry_pos(buff, block_size, rownr);
empty_space= uint2korr(buff + EMPTY_SPACE_OFFSET);
if (max_entry <= rownr)
{
/* Add directory entry first in directory and data last on page */
if (extend_directory(info, buff, block_size, max_entry, rownr,
&empty_space, page_type == HEAD_PAGE))
goto crashed_file;
}
if (extend_area_on_page(info, buff, dir, rownr,
(uint) data_length, &empty_space,
&rec_offset, &length, page_type == HEAD_PAGE))
goto crashed_file;
}
}
/* Copy data */
int2store(dir+2, data_length);
memcpy(buff + rec_offset, data, data_length);
empty_space-= (uint) data_length;
int2store(buff + EMPTY_SPACE_OFFSET, empty_space);
/* Fix bitmap */
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;
/*
If page was not read before, write it but keep it pinned.
We don't update its LSN When we have processed all REDOs for this page
in the current REDO's group, we will stamp page with UNDO's LSN
(if we stamped it now, a next REDO, in
this group, for this page, would be skipped) and unpin then.
*/
result= 0;
if (lock_method == PAGECACHE_LOCK_WRITE &&
pagecache_write(share->pagecache,
&info->dfile, page, 0,
buff, PAGECACHE_PLAIN_PAGE,
lock_method, pin_method,
PAGECACHE_WRITE_DELAY, &page_link.link,
LSN_IMPOSSIBLE))
result= my_errno;
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
/*
Data page and bitmap page are in place, we can update data_file_length in
case we extended the file. We could not do it earlier: bitmap code tests
data_file_length to know if it has to create a new page or not.
*/
set_if_bigger(share->state.state.data_file_length, end_of_page);
DBUG_RETURN(result);
crashed_file:
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
err:
error= my_errno;
if (lock_method == PAGECACHE_LOCK_LEFT_WRITELOCKED)
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); /* catch recovery error early */
DBUG_RETURN((my_errno= error));
} | O3 | c | ma_apply_redo_insert_row_head_or_tail:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %r12d
movq %rsi, %r14
movq (%rdi), %rbx
movl 0x7bc(%rbx), %r13d
movl (%r8), %eax
movzbl 0x4(%r8), %ecx
shlq $0x20, %rcx
leaq (%rcx,%rax), %r10
movzbl 0x5(%r8), %r11d
orl $0x181, 0x170(%rbx) # imm = 0x181
leaq (%rcx,%rax), %rsi
incq %rsi
imulq %r13, %rsi
movq 0x40(%rbx), %r8
cmpq %r8, %rsi
jbe 0x4d527
testl %r11d, %r11d
setne %al
testb %r12b, %r12b
sete %cl
movl $0x4, %r14d
orb %al, %cl
jne 0x4d8dc
movq %r9, -0x70(%rbp)
movq %r8, -0x68(%rbp)
movq %r10, -0x60(%rbp)
movq %rsi, -0x58(%rbp)
movq 0x380(%rdi), %r15
movb $0x1, 0x685(%rdi)
movq %rdi, -0x38(%rbp)
movq %r15, %rsi
movl %edx, -0x30(%rbp)
movl $0x1, %ecx
callq 0x4d96e
movl 0xc18(%rbx), %eax
movl %r13d, %ecx
subl %eax, %ecx
addl $-0x14, %ecx
movl %ecx, -0x2c(%rbp)
addl $0xc, %eax
movl %eax, -0x3c(%rbp)
addq %r15, %r13
addq $-0x8, %r13
movl $0x4, -0x48(%rbp)
movl $0x2, %eax
movq %rax, -0x50(%rbp)
jmp 0x4d7d3
movq %r11, -0x48(%rbp)
movq %r9, -0x70(%rbp)
movq %r8, -0x68(%rbp)
movl %edx, -0x30(%rbp)
movq %rsi, -0x58(%rbp)
movq 0x600(%rbx), %rax
movl $0xffffffef, %ecx # imm = 0xFFFFFFEF
andq %rcx, 0x198(%rax)
movb $0x1, 0x7ec(%rbx)
movq 0x600(%rbx), %rcx
movq %rdi, -0x38(%rbp)
leaq 0x470(%rdi), %rsi
leaq -0x88(%rbp), %rax
movq %rcx, %rdi
movq %r10, -0x60(%rbp)
movq %r10, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq $0x4
callq 0x3b0a2
addq $0x10, %rsp
movq %rax, %r15
movq 0x600(%rbx), %rax
movq 0x1a0(%rax), %rcx
movq %rcx, 0x198(%rax)
movb $0x0, 0x7ec(%rbx)
testq %r15, %r15
je 0x4d5e0
movzwl (%r15), %eax
shlq $0x20, %rax
movzbl 0x2(%r15), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%r15), %esi
orq %rcx, %rsi
cmpq %r14, %rsi
jge 0x4d6e8
movzbl 0x7(%r15), %eax
andl $0x7, %eax
jmp 0x4d629
testb %r12b, %r12b
je 0x4d736
callq 0xa1ab2
cmpl $0xaf, (%rax)
je 0x4d614
callq 0xa1ab2
cmpl $0xb0, (%rax)
je 0x4d614
callq 0xa1ab2
cmpl $0xc0, (%rax)
jne 0x4d736
movq -0x88(%rbp), %rdi
callq 0x3d585
movq %rax, %r15
movb $0x0, 0x7(%rax)
xorl %eax, %eax
movl -0x30(%rbp), %edx
cmpl %edx, %eax
movq -0x38(%rbp), %rdi
jne 0x4d743
movzbl 0x8(%r15), %ecx
movzwl 0xa(%r15), %eax
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %r14
cmpb %r14b, %cl
ja 0x4d680
xorl %eax, %eax
cmpl $0x1, %edx
sete %al
subq $0x8, %rsp
leaq -0x2c(%rbp), %r9
movq %r15, %rsi
movl %r13d, %edx
movl %r14d, %r8d
pushq %rax
callq 0x4da04
movl -0x30(%rbp), %edx
movq -0x38(%rbp), %rdi
addq $0x10, %rsp
testb %al, %al
jne 0x4d8d6
addq %r15, %r13
leal (,%r14,4), %eax
subq %rax, %r13
addq $-0x8, %r13
xorl %eax, %eax
cmpl $0x1, %edx
sete %al
subq $0x8, %rsp
leaq -0x8c(%rbp), %r10
leaq -0x3c(%rbp), %r11
leaq -0x2c(%rbp), %r9
movq %r15, %rsi
movq %r13, %rdx
movl %r14d, %ecx
movq 0x10(%rbp), %r8
pushq %rax
pushq %r10
pushq %r11
callq 0x4db7a
movq -0x38(%rbp), %rdi
addq $0x20, %rsp
testb %al, %al
jne 0x4d8d6
movl $0x2, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x4d7d3
movq -0x38(%rbp), %rdi
movl $0x1, %edx
movq -0x60(%rbp), %r13
movq %r13, %rcx
callq 0x35cb1
movzwl 0xa(%r15), %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a4e6
xorl %r12d, %r12d
testb %al, %al
cmovel %r12d, %r14d
xorl %edx, %edx
cmpl $0x1, -0x30(%rbp)
sete %dl
movq -0x38(%rbp), %rdi
movq %r13, %rsi
movl %r14d, %ecx
callq 0x5475f
testb %al, %al
je 0x4d941
callq 0xa1ab2
movl (%rax), %r12d
jmp 0x4d8f4
testb %r12b, %r12b
je 0x4d8d6
movq $0x0, -0x50(%rbp)
movq %rdi, %r12
movq %r15, %rsi
xorl %ecx, %ecx
movl %edx, %r14d
callq 0x4d96e
movl %r13d, %eax
subl 0xc18(%rbx), %eax
addl $-0x10, %eax
leaq -0x2c(%rbp), %rcx
movl %eax, (%rcx)
movq %rcx, %r9
xorl %eax, %eax
cmpl $0x1, %r14d
sete %al
subq $0x8, %rsp
movq %r12, %rdi
movq %r15, %rsi
movl %r13d, %edx
xorl %ecx, %ecx
movq -0x48(%rbp), %r14
movl %r14d, %r8d
movq %r9, %r12
pushq %rax
callq 0x4da04
addq $0x10, %rsp
movl 0xc18(%rbx), %eax
addl $0xc, %eax
movl %eax, -0x3c(%rbp)
addq %r15, %r13
leal (,%r14,4), %eax
subq %rax, %r13
movzwl -0x6(%r13), %eax
addq $-0x8, %r13
addl %eax, (%r12)
movl $0x2, -0x48(%rbp)
movq 0x10(%rbp), %r12
movw %r12w, 0x2(%r13)
movl -0x3c(%rbp), %edi
addq %r15, %rdi
movq -0x70(%rbp), %rsi
movq %r12, %rdx
callq 0x29080
movl -0x2c(%rbp), %r14d
subl %r12d, %r14d
movl %r14d, -0x2c(%rbp)
movw %r14w, 0xa(%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a4e6
testb %al, %al
jne 0x4d817
movl $0x0, -0x2c(%rbp)
xorl %r14d, %r14d
xorl %edx, %edx
cmpl $0x1, -0x30(%rbp)
sete %dl
movq -0x38(%rbp), %r12
movq %r12, %rdi
movq -0x60(%rbp), %r13
movq %r13, %rsi
movl %r14d, %ecx
callq 0x5475f
testb %al, %al
movl -0x48(%rbp), %r14d
jne 0x4d8e6
movq %r12, %r14
xorl %r12d, %r12d
movq -0x68(%rbp), %rax
cmpq %rax, -0x58(%rbp)
jbe 0x4d8a5
movq 0x600(%rbx), %rdi
leaq 0x470(%r14), %rsi
movl 0x80(%rdi), %eax
subq $0x8, %rsp
xorl %r12d, %r12d
leaq -0x88(%rbp), %r10
movq %r13, %rdx
xorl %ecx, %ecx
movq %r15, %r8
movl $0x1, %r9d
pushq %rax
pushq %r12
pushq $0x0
pushq %r10
pushq %r12
pushq -0x50(%rbp)
pushq $0x4
callq 0x3c506
addq $0x40, %rsp
testb %al, %al
je 0x4d8a5
callq 0xa1ab2
movl (%rax), %r12d
leaq -0x88(%rbp), %rsi
movl $0x6, 0x8(%rsi)
movb $0x1, 0x10(%rsi)
movq %r14, %rdi
addq $0x2e8, %rdi # imm = 0x2E8
callq 0x919b2
movq -0x58(%rbp), %rax
cmpq %rax, 0x40(%rbx)
jae 0x4d92f
movq %rax, 0x40(%rbx)
jmp 0x4d92f
movl $0x2, %r14d
movl $0x7f, %esi
callq 0x3fc44
callq 0xa1ab2
movl (%rax), %r12d
cmpl $0x2, %r14d
jne 0x4d91f
movq 0x600(%rbx), %rdi
movq -0x88(%rbp), %rsi
xorl %eax, %eax
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x3adbd
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x42bc2
callq 0xa1ab2
movl %r12d, (%rax)
movl %r12d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x600(%rbx), %rdi
movq -0x88(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r12
pushq %r12
callq 0x3adbd
addq $0x10, %rsp
jmp 0x4d92f
| _ma_apply_redo_insert_row_head_or_tail:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r12d, ecx
mov r14, rsi
mov rbx, [rdi]
mov r13d, [rbx+7BCh]
mov eax, [r8]
movzx ecx, byte ptr [r8+4]
shl rcx, 20h
lea r10, [rcx+rax]
movzx r11d, byte ptr [r8+5]
or dword ptr [rbx+170h], 181h
lea rsi, [rcx+rax]
inc rsi
imul rsi, r13
mov r8, [rbx+40h]
cmp rsi, r8
jbe short loc_4D527
test r11d, r11d
setnz al
test r12b, r12b
setz cl
mov r14d, 4
or cl, al
jnz loc_4D8DC
mov [rbp+var_70], r9
mov [rbp+var_68], r8
mov [rbp+var_60], r10
mov [rbp+var_58], rsi
mov r15, [rdi+380h]
mov byte ptr [rdi+685h], 1
mov [rbp+var_38], rdi
mov rsi, r15
mov [rbp+var_30], edx
mov ecx, 1
call make_empty_page
mov eax, [rbx+0C18h]
mov ecx, r13d
sub ecx, eax
add ecx, 0FFFFFFECh
mov [rbp+var_2C], ecx
add eax, 0Ch
mov [rbp+var_3C], eax
add r13, r15
add r13, 0FFFFFFFFFFFFFFF8h
mov dword ptr [rbp+var_48], 4
mov eax, 2
mov [rbp+var_50], rax
jmp loc_4D7D3
loc_4D527:
mov [rbp+var_48], r11
mov [rbp+var_70], r9
mov [rbp+var_68], r8
mov [rbp+var_30], edx
mov [rbp+var_58], rsi
mov rax, [rbx+600h]
mov ecx, 0FFFFFFEFh
and [rax+198h], rcx
mov byte ptr [rbx+7ECh], 1
mov rcx, [rbx+600h]
mov [rbp+var_38], rdi
lea rsi, [rdi+470h]
lea rax, [rbp+var_88]
mov rdi, rcx
mov [rbp+var_60], r10
mov rdx, r10
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
push rax
push 4
call pagecache_read
add rsp, 10h
mov r15, rax
mov rax, [rbx+600h]
mov rcx, [rax+1A0h]
mov [rax+198h], rcx
mov byte ptr [rbx+7ECh], 0
test r15, r15
jz short loc_4D5E0
movzx eax, word ptr [r15]
shl rax, 20h
movzx ecx, byte ptr [r15+2]
shl rcx, 30h
or rcx, rax
mov esi, [r15+3]
or rsi, rcx
cmp rsi, r14
jge loc_4D6E8
movzx eax, byte ptr [r15+7]
and eax, 7
jmp short loc_4D629
loc_4D5E0:
test r12b, r12b
jz loc_4D736
call _my_thread_var
cmp dword ptr [rax], 0AFh
jz short loc_4D614
call _my_thread_var
cmp dword ptr [rax], 0B0h
jz short loc_4D614
call _my_thread_var
cmp dword ptr [rax], 0C0h
jnz loc_4D736
loc_4D614:
mov rdi, [rbp+var_88]
call pagecache_block_link_to_buffer
mov r15, rax
mov byte ptr [rax+7], 0
xor eax, eax
loc_4D629:
mov edx, [rbp+var_30]
cmp eax, edx
mov rdi, [rbp+var_38]
jnz loc_4D743
movzx ecx, byte ptr [r15+8]
movzx eax, word ptr [r15+0Ah]
mov [rbp+var_2C], eax
mov r14, [rbp+var_48]
cmp cl, r14b
ja short loc_4D680
xor eax, eax
cmp edx, 1
setz al
sub rsp, 8
lea r9, [rbp+var_2C]
mov rsi, r15
mov edx, r13d
mov r8d, r14d
push rax
call extend_directory
mov edx, [rbp+var_30]
mov rdi, [rbp+var_38]
add rsp, 10h
test al, al
jnz loc_4D8D6
loc_4D680:
add r13, r15
lea eax, ds:0[r14*4]
sub r13, rax
add r13, 0FFFFFFFFFFFFFFF8h
xor eax, eax
cmp edx, 1
setz al
sub rsp, 8
lea r10, [rbp+var_8C]
lea r11, [rbp+var_3C]
lea r9, [rbp+var_2C]
mov rsi, r15
mov rdx, r13
mov ecx, r14d
mov r8, [rbp+arg_0]
push rax
push r10
push r11
call extend_area_on_page
mov rdi, [rbp+var_38]
add rsp, 20h
test al, al
jnz loc_4D8D6
mov dword ptr [rbp+var_48], 2
mov [rbp+var_50], 0
jmp loc_4D7D3
loc_4D6E8:
mov rdi, [rbp+var_38]
mov edx, 1
mov r13, [rbp+var_60]
mov rcx, r13
call check_skipped_lsn
movzx r14d, word ptr [r15+0Ah]
mov rdi, rbx
mov rsi, r15
call enough_free_entries_on_page
xor r12d, r12d
test al, al
cmovz r14d, r12d
xor edx, edx
cmp [rbp+var_30], 1
setz dl
mov rdi, [rbp+var_38]
mov rsi, r13
mov ecx, r14d
call _ma_bitmap_set
test al, al
jz loc_4D941
loc_4D736:
call _my_thread_var
mov r12d, [rax]
jmp loc_4D8F4
loc_4D743:
test r12b, r12b
jz loc_4D8D6
mov [rbp+var_50], 0
mov r12, rdi
mov rsi, r15
xor ecx, ecx
mov r14d, edx
call make_empty_page
mov eax, r13d
sub eax, [rbx+0C18h]
add eax, 0FFFFFFF0h
lea rcx, [rbp+var_2C]
mov [rcx], eax
mov r9, rcx
xor eax, eax
cmp r14d, 1
setz al
sub rsp, 8
mov rdi, r12
mov rsi, r15
mov edx, r13d
xor ecx, ecx
mov r14, [rbp+var_48]
mov r8d, r14d
mov r12, r9
push rax
call extend_directory
add rsp, 10h
mov eax, [rbx+0C18h]
add eax, 0Ch
mov [rbp+var_3C], eax
add r13, r15
lea eax, ds:0[r14*4]
sub r13, rax
movzx eax, word ptr [r13-6]
add r13, 0FFFFFFFFFFFFFFF8h
add [r12], eax
mov dword ptr [rbp+var_48], 2
loc_4D7D3:
mov r12, [rbp+arg_0]
mov [r13+2], r12w
mov edi, [rbp+var_3C]
add rdi, r15
mov rsi, [rbp+var_70]
mov rdx, r12
call _memcpy
mov r14d, [rbp+var_2C]
sub r14d, r12d
mov [rbp+var_2C], r14d
mov [r15+0Ah], r14w
mov rdi, rbx
mov rsi, r15
call enough_free_entries_on_page
test al, al
jnz short loc_4D817
mov [rbp+var_2C], 0
xor r14d, r14d
loc_4D817:
xor edx, edx
cmp [rbp+var_30], 1
setz dl
mov r12, [rbp+var_38]
mov rdi, r12
mov r13, [rbp+var_60]
mov rsi, r13
mov ecx, r14d
call _ma_bitmap_set
test al, al
mov r14d, dword ptr [rbp+var_48]
jnz loc_4D8E6
mov r14, r12
xor r12d, r12d
mov rax, [rbp+var_68]
cmp [rbp+var_58], rax
jbe short loc_4D8A5
mov rdi, [rbx+600h]
lea rsi, [r14+470h]
mov eax, [rdi+80h]
sub rsp, 8
xor r12d, r12d
lea r10, [rbp+var_88]
mov rdx, r13
xor ecx, ecx
mov r8, r15
mov r9d, 1
push rax
push r12
push 0
push r10
push r12
push [rbp+var_50]
push 4
call pagecache_write_part
add rsp, 40h
test al, al
jz short loc_4D8A5
call _my_thread_var
mov r12d, [rax]
loc_4D8A5:
lea rsi, [rbp+var_88]
mov dword ptr [rsi+8], 6
mov byte ptr [rsi+10h], 1
mov rdi, r14
add rdi, 2E8h
call insert_dynamic
mov rax, [rbp+var_58]
cmp [rbx+40h], rax
jnb short loc_4D92F
mov [rbx+40h], rax
jmp short loc_4D92F
loc_4D8D6:
mov r14d, 2
loc_4D8DC:
mov esi, 7Fh
call _ma_set_fatal_error
loc_4D8E6:
call _my_thread_var
mov r12d, [rax]
cmp r14d, 2
jnz short loc_4D91F
loc_4D8F4:
mov rdi, [rbx+600h]
mov rsi, [rbp+var_88]
xor eax, eax
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
loc_4D91F:
mov rdi, rbx
call _ma_mark_file_crashed
call _my_thread_var
mov [rax], r12d
loc_4D92F:
mov eax, r12d
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4D941:
mov rdi, [rbx+600h]
mov rsi, [rbp+var_88]
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push r12
push r12
call pagecache_unlock_by_link
add rsp, 10h
jmp short loc_4D92F
| long long ma_apply_redo_insert_row_head_or_tail(
_DWORD *a1,
long long a2,
long long a3,
char a4,
unsigned int *a5,
long long a6,
long long a7)
{
long long v9; // rbx
long long v10; // r13
long long v11; // rax
unsigned long long v12; // rcx
long long v13; // r10
long long v14; // r11
unsigned long long v15; // rsi
unsigned long long v16; // r8
int v17; // r14d
unsigned __int16 *v18; // r15
int v19; // eax
long long v20; // r13
long long v21; // rcx
long long v22; // rsi
long long v23; // rdi
long long v24; // rsi
int v25; // eax
int v26; // ecx
int v27; // r14d
char v28; // al
char v29; // al
long long v30; // r13
unsigned int v31; // r14d
unsigned int v32; // r12d
unsigned int v33; // r14d
char v34; // al
int v35; // r14d
char *v36; // r13
int v37; // eax
unsigned int v38; // r14d
long long v39; // r12
long long v40; // r13
char v41; // al
long long v42; // r14
__m128i *v43; // rdi
char v45[4]; // [rsp+4h] [rbp-8Ch] BYREF
long long v46; // [rsp+8h] [rbp-88h] BYREF
int v47; // [rsp+10h] [rbp-80h]
char v48; // [rsp+18h] [rbp-78h]
long long v49; // [rsp+20h] [rbp-70h]
unsigned long long v50; // [rsp+28h] [rbp-68h]
long long v51; // [rsp+30h] [rbp-60h]
unsigned long long v52; // [rsp+38h] [rbp-58h]
long long v53; // [rsp+40h] [rbp-50h]
long long v54; // [rsp+48h] [rbp-48h]
unsigned int v55; // [rsp+54h] [rbp-3Ch] BYREF
_DWORD *v56; // [rsp+58h] [rbp-38h]
unsigned int v57; // [rsp+60h] [rbp-30h]
_DWORD v58[11]; // [rsp+64h] [rbp-2Ch] BYREF
v9 = *(_QWORD *)a1;
v10 = *(unsigned int *)(*(_QWORD *)a1 + 1980LL);
v11 = *a5;
v12 = (unsigned long long)*((unsigned __int8 *)a5 + 4) << 32;
v13 = v12 + v11;
v14 = *((unsigned __int8 *)a5 + 5);
*(_DWORD *)(v9 + 368) |= 0x181u;
v15 = v10 * (v12 + v11 + 1);
v16 = *(_QWORD *)(v9 + 64);
if ( v15 > v16 )
{
v17 = 4;
LOBYTE(v12) = (_DWORD)v14 != 0 || a4 == 0;
if ( !(_BYTE)v12 )
{
v49 = a6;
v50 = v16;
v51 = v13;
v52 = v15;
v18 = (unsigned __int16 *)*((_QWORD *)a1 + 112);
*((_BYTE *)a1 + 1669) = 1;
v56 = a1;
v57 = a3;
make_empty_page(a1, v18, a3, 1LL);
v19 = *(_DWORD *)(v9 + 3096);
v58[0] = v10 - v19 - 20;
v55 = v19 + 12;
v20 = (long long)v18 + v10 - 8;
LODWORD(v54) = 4;
v53 = 2LL;
goto LABEL_23;
}
LABEL_32:
ma_set_fatal_error(a1, 127, a3, v12, v16, a6);
goto LABEL_33;
}
v54 = v14;
v49 = a6;
v50 = v16;
v57 = a3;
v52 = v10 * (v12 + v11 + 1);
*(_QWORD *)(*(_QWORD *)(v9 + 1536) + 408LL) &= 0xFFFFFFEFuLL;
*(_BYTE *)(v9 + 2028) = 1;
v21 = *(_QWORD *)(v9 + 1536);
v56 = a1;
v22 = (long long)(a1 + 284);
v23 = v21;
v51 = v13;
v18 = (unsigned __int16 *)pagecache_read(v21, v22, v13, 0, 0LL, 1, 4u, &v46);
*(_QWORD *)(*(_QWORD *)(v9 + 1536) + 408LL) = *(_QWORD *)(*(_QWORD *)(v9 + 1536) + 416LL);
*(_BYTE *)(v9 + 2028) = 0;
if ( v18 )
{
v12 = ((unsigned long long)*v18 << 32) | ((unsigned long long)*((unsigned __int8 *)v18 + 2) << 48);
v24 = v12 | *(unsigned int *)((char *)v18 + 3);
if ( v24 < a2 )
{
v25 = *((_BYTE *)v18 + 7) & 7;
goto LABEL_12;
}
v30 = v51;
check_skipped_lsn((long long)v56, v24, 1, v51);
v31 = v18[5];
v32 = 0;
if ( !enough_free_entries_on_page(v9, v18) )
v31 = 0;
v23 = (long long)v56;
if ( !(unsigned __int8)ma_bitmap_set(v56, v30, v57 == 1, v31) )
{
pagecache_unlock_by_link(*(_QWORD *)(v9 + 1536), v46, 6, 3, 0LL, 0LL, 0);
return v32;
}
LABEL_20:
v32 = *(_DWORD *)my_thread_var(v23);
goto LABEL_34;
}
if ( !a4
|| *(_DWORD *)my_thread_var(v23) != 175
&& *(_DWORD *)my_thread_var(v23) != 176
&& *(_DWORD *)my_thread_var(v23) != 192 )
{
goto LABEL_20;
}
v18 = (unsigned __int16 *)pagecache_block_link_to_buffer(v46);
*((_BYTE *)v18 + 7) = 0;
v25 = 0;
LABEL_12:
a3 = v57;
a1 = v56;
if ( v25 == v57 )
{
v26 = *((unsigned __int8 *)v18 + 8);
v58[0] = v18[5];
v27 = v54;
if ( (unsigned __int8)v26 > (unsigned __int8)v54
|| (v28 = extend_directory((_DWORD)v56, (_DWORD)v18, v10, v26, v54, (unsigned int)v58, v57 == 1),
a3 = v57,
a1 = v56,
!v28) )
{
v20 = (long long)v18 + v10 - (unsigned int)(4 * v27) - 8;
v29 = extend_area_on_page(
(_DWORD)a1,
(_DWORD)v18,
v20,
v27,
a7,
(unsigned int)v58,
(long long)&v55,
(long long)v45,
(_DWORD)a3 == 1);
a1 = v56;
if ( !v29 )
{
LODWORD(v54) = 2;
v53 = 0LL;
goto LABEL_23;
}
}
LABEL_31:
v17 = 2;
goto LABEL_32;
}
if ( !a4 )
goto LABEL_31;
v53 = 0LL;
v33 = v57;
make_empty_page(v56, v18, v57, 0LL);
v58[0] = v10 - *(_DWORD *)(v9 + 3096) - 16;
v34 = v33 == 1;
v35 = v54;
extend_directory((_DWORD)a1, (_DWORD)v18, v10, 0, v54, (unsigned int)v58, v34);
v55 = *(_DWORD *)(v9 + 3096) + 12;
v36 = (char *)v18 + v10 - (unsigned int)(4 * v35);
v37 = *((unsigned __int16 *)v36 - 3);
v20 = (long long)(v36 - 8);
v58[0] += v37;
LODWORD(v54) = 2;
LABEL_23:
*(_WORD *)(v20 + 2) = a7;
memcpy((char *)v18 + v55, v49, a7);
v38 = v58[0] - a7;
v58[0] = v38;
v18[5] = v38;
if ( !enough_free_entries_on_page(v9, v18) )
{
v58[0] = 0;
v38 = 0;
}
v39 = (long long)v56;
a1 = v56;
v40 = v51;
v41 = ma_bitmap_set(v56, v51, v57 == 1, v38);
v17 = v54;
if ( v41 )
{
LABEL_33:
v32 = *(_DWORD *)my_thread_var(a1);
if ( v17 != 2 )
{
LABEL_35:
ma_mark_file_crashed(v9);
*(_DWORD *)my_thread_var(v9) = v32;
return v32;
}
LABEL_34:
pagecache_unlock_by_link(*(_QWORD *)(v9 + 1536), v46, 6, 3, 0LL, 0LL, 0);
goto LABEL_35;
}
v42 = v39;
v32 = 0;
if ( v52 > v50 )
{
v43 = *(__m128i **)(v9 + 1536);
v32 = 0;
if ( (unsigned __int8)pagecache_write_part(
v43,
(char *)(v42 + 1136),
v40,
0,
(char *)v18,
1,
4u,
v53,
0,
&v46,
0LL,
0,
v43[8].m128i_u32[0]) )
v32 = *(_DWORD *)my_thread_var(v43);
}
v47 = 6;
v48 = 1;
insert_dynamic(v42 + 744, &v46);
if ( *(_QWORD *)(v9 + 64) < v52 )
*(_QWORD *)(v9 + 64) = v52;
return v32;
}
| _ma_apply_redo_insert_row_head_or_tail:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R12D,ECX
MOV R14,RSI
MOV RBX,qword ptr [RDI]
MOV R13D,dword ptr [RBX + 0x7bc]
MOV EAX,dword ptr [R8]
MOVZX ECX,byte ptr [R8 + 0x4]
SHL RCX,0x20
LEA R10,[RCX + RAX*0x1]
MOVZX R11D,byte ptr [R8 + 0x5]
OR dword ptr [RBX + 0x170],0x181
LEA RSI,[RCX + RAX*0x1]
INC RSI
IMUL RSI,R13
MOV R8,qword ptr [RBX + 0x40]
CMP RSI,R8
JBE 0x0014d527
TEST R11D,R11D
SETNZ AL
TEST R12B,R12B
SETZ CL
MOV R14D,0x4
OR CL,AL
JNZ 0x0014d8dc
MOV qword ptr [RBP + -0x70],R9
MOV qword ptr [RBP + -0x68],R8
MOV qword ptr [RBP + -0x60],R10
MOV qword ptr [RBP + -0x58],RSI
MOV R15,qword ptr [RDI + 0x380]
MOV byte ptr [RDI + 0x685],0x1
MOV qword ptr [RBP + -0x38],RDI
MOV RSI,R15
MOV dword ptr [RBP + -0x30],EDX
MOV ECX,0x1
CALL 0x0014d96e
MOV EAX,dword ptr [RBX + 0xc18]
MOV ECX,R13D
SUB ECX,EAX
ADD ECX,-0x14
MOV dword ptr [RBP + -0x2c],ECX
ADD EAX,0xc
MOV dword ptr [RBP + -0x3c],EAX
ADD R13,R15
ADD R13,-0x8
MOV dword ptr [RBP + -0x48],0x4
MOV EAX,0x2
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0014d7d3
LAB_0014d527:
MOV qword ptr [RBP + -0x48],R11
MOV qword ptr [RBP + -0x70],R9
MOV qword ptr [RBP + -0x68],R8
MOV dword ptr [RBP + -0x30],EDX
MOV qword ptr [RBP + -0x58],RSI
MOV RAX,qword ptr [RBX + 0x600]
MOV ECX,0xffffffef
AND qword ptr [RAX + 0x198],RCX
MOV byte ptr [RBX + 0x7ec],0x1
MOV RCX,qword ptr [RBX + 0x600]
MOV qword ptr [RBP + -0x38],RDI
LEA RSI,[RDI + 0x470]
LEA RAX,[RBP + -0x88]
MOV RDI,RCX
MOV qword ptr [RBP + -0x60],R10
MOV RDX,R10
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
PUSH RAX
PUSH 0x4
CALL 0x0013b0a2
ADD RSP,0x10
MOV R15,RAX
MOV RAX,qword ptr [RBX + 0x600]
MOV RCX,qword ptr [RAX + 0x1a0]
MOV qword ptr [RAX + 0x198],RCX
MOV byte ptr [RBX + 0x7ec],0x0
TEST R15,R15
JZ 0x0014d5e0
MOVZX EAX,word ptr [R15]
SHL RAX,0x20
MOVZX ECX,byte ptr [R15 + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [R15 + 0x3]
OR RSI,RCX
CMP RSI,R14
JGE 0x0014d6e8
MOVZX EAX,byte ptr [R15 + 0x7]
AND EAX,0x7
JMP 0x0014d629
LAB_0014d5e0:
TEST R12B,R12B
JZ 0x0014d736
CALL 0x001a1ab2
CMP dword ptr [RAX],0xaf
JZ 0x0014d614
CALL 0x001a1ab2
CMP dword ptr [RAX],0xb0
JZ 0x0014d614
CALL 0x001a1ab2
CMP dword ptr [RAX],0xc0
JNZ 0x0014d736
LAB_0014d614:
MOV RDI,qword ptr [RBP + -0x88]
CALL 0x0013d585
MOV R15,RAX
MOV byte ptr [RAX + 0x7],0x0
XOR EAX,EAX
LAB_0014d629:
MOV EDX,dword ptr [RBP + -0x30]
CMP EAX,EDX
MOV RDI,qword ptr [RBP + -0x38]
JNZ 0x0014d743
MOVZX ECX,byte ptr [R15 + 0x8]
MOVZX EAX,word ptr [R15 + 0xa]
MOV dword ptr [RBP + -0x2c],EAX
MOV R14,qword ptr [RBP + -0x48]
CMP CL,R14B
JA 0x0014d680
XOR EAX,EAX
CMP EDX,0x1
SETZ AL
SUB RSP,0x8
LEA R9,[RBP + -0x2c]
MOV RSI,R15
MOV EDX,R13D
MOV R8D,R14D
PUSH RAX
CALL 0x0014da04
MOV EDX,dword ptr [RBP + -0x30]
MOV RDI,qword ptr [RBP + -0x38]
ADD RSP,0x10
TEST AL,AL
JNZ 0x0014d8d6
LAB_0014d680:
ADD R13,R15
LEA EAX,[R14*0x4]
SUB R13,RAX
ADD R13,-0x8
XOR EAX,EAX
CMP EDX,0x1
SETZ AL
SUB RSP,0x8
LEA R10,[RBP + -0x8c]
LEA R11,[RBP + -0x3c]
LEA R9,[RBP + -0x2c]
MOV RSI,R15
MOV RDX,R13
MOV ECX,R14D
MOV R8,qword ptr [RBP + 0x10]
PUSH RAX
PUSH R10
PUSH R11
CALL 0x0014db7a
MOV RDI,qword ptr [RBP + -0x38]
ADD RSP,0x20
TEST AL,AL
JNZ 0x0014d8d6
MOV dword ptr [RBP + -0x48],0x2
MOV qword ptr [RBP + -0x50],0x0
JMP 0x0014d7d3
LAB_0014d6e8:
MOV RDI,qword ptr [RBP + -0x38]
MOV EDX,0x1
MOV R13,qword ptr [RBP + -0x60]
MOV RCX,R13
CALL 0x00135cb1
MOVZX R14D,word ptr [R15 + 0xa]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0014a4e6
XOR R12D,R12D
TEST AL,AL
CMOVZ R14D,R12D
XOR EDX,EDX
CMP dword ptr [RBP + -0x30],0x1
SETZ DL
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,R13
MOV ECX,R14D
CALL 0x0015475f
TEST AL,AL
JZ 0x0014d941
LAB_0014d736:
CALL 0x001a1ab2
MOV R12D,dword ptr [RAX]
JMP 0x0014d8f4
LAB_0014d743:
TEST R12B,R12B
JZ 0x0014d8d6
MOV qword ptr [RBP + -0x50],0x0
MOV R12,RDI
MOV RSI,R15
XOR ECX,ECX
MOV R14D,EDX
CALL 0x0014d96e
MOV EAX,R13D
SUB EAX,dword ptr [RBX + 0xc18]
ADD EAX,-0x10
LEA RCX,[RBP + -0x2c]
MOV dword ptr [RCX],EAX
MOV R9,RCX
XOR EAX,EAX
CMP R14D,0x1
SETZ AL
SUB RSP,0x8
MOV RDI,R12
MOV RSI,R15
MOV EDX,R13D
XOR ECX,ECX
MOV R14,qword ptr [RBP + -0x48]
MOV R8D,R14D
MOV R12,R9
PUSH RAX
CALL 0x0014da04
ADD RSP,0x10
MOV EAX,dword ptr [RBX + 0xc18]
ADD EAX,0xc
MOV dword ptr [RBP + -0x3c],EAX
ADD R13,R15
LEA EAX,[R14*0x4]
SUB R13,RAX
MOVZX EAX,word ptr [R13 + -0x6]
ADD R13,-0x8
ADD dword ptr [R12],EAX
MOV dword ptr [RBP + -0x48],0x2
LAB_0014d7d3:
MOV R12,qword ptr [RBP + 0x10]
MOV word ptr [R13 + 0x2],R12W
MOV EDI,dword ptr [RBP + -0x3c]
ADD RDI,R15
MOV RSI,qword ptr [RBP + -0x70]
MOV RDX,R12
CALL 0x00129080
MOV R14D,dword ptr [RBP + -0x2c]
SUB R14D,R12D
MOV dword ptr [RBP + -0x2c],R14D
MOV word ptr [R15 + 0xa],R14W
MOV RDI,RBX
MOV RSI,R15
CALL 0x0014a4e6
TEST AL,AL
JNZ 0x0014d817
MOV dword ptr [RBP + -0x2c],0x0
XOR R14D,R14D
LAB_0014d817:
XOR EDX,EDX
CMP dword ptr [RBP + -0x30],0x1
SETZ DL
MOV R12,qword ptr [RBP + -0x38]
MOV RDI,R12
MOV R13,qword ptr [RBP + -0x60]
MOV RSI,R13
MOV ECX,R14D
CALL 0x0015475f
TEST AL,AL
MOV R14D,dword ptr [RBP + -0x48]
JNZ 0x0014d8e6
MOV R14,R12
XOR R12D,R12D
MOV RAX,qword ptr [RBP + -0x68]
CMP qword ptr [RBP + -0x58],RAX
JBE 0x0014d8a5
MOV RDI,qword ptr [RBX + 0x600]
LEA RSI,[R14 + 0x470]
MOV EAX,dword ptr [RDI + 0x80]
SUB RSP,0x8
XOR R12D,R12D
LEA R10,[RBP + -0x88]
MOV RDX,R13
XOR ECX,ECX
MOV R8,R15
MOV R9D,0x1
PUSH RAX
PUSH R12
PUSH 0x0
PUSH R10
PUSH R12
PUSH qword ptr [RBP + -0x50]
PUSH 0x4
CALL 0x0013c506
ADD RSP,0x40
TEST AL,AL
JZ 0x0014d8a5
CALL 0x001a1ab2
MOV R12D,dword ptr [RAX]
LAB_0014d8a5:
LEA RSI,[RBP + -0x88]
MOV dword ptr [RSI + 0x8],0x6
MOV byte ptr [RSI + 0x10],0x1
MOV RDI,R14
ADD RDI,0x2e8
CALL 0x001919b2
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RBX + 0x40],RAX
JNC 0x0014d92f
MOV qword ptr [RBX + 0x40],RAX
JMP 0x0014d92f
LAB_0014d8d6:
MOV R14D,0x2
LAB_0014d8dc:
MOV ESI,0x7f
CALL 0x0013fc44
LAB_0014d8e6:
CALL 0x001a1ab2
MOV R12D,dword ptr [RAX]
CMP R14D,0x2
JNZ 0x0014d91f
LAB_0014d8f4:
MOV RDI,qword ptr [RBX + 0x600]
MOV RSI,qword ptr [RBP + -0x88]
XOR EAX,EAX
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x0013adbd
ADD RSP,0x10
LAB_0014d91f:
MOV RDI,RBX
CALL 0x00142bc2
CALL 0x001a1ab2
MOV dword ptr [RAX],R12D
LAB_0014d92f:
MOV EAX,R12D
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014d941:
MOV RDI,qword ptr [RBX + 0x600]
MOV RSI,qword ptr [RBP + -0x88]
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH R12
PUSH R12
CALL 0x0013adbd
ADD RSP,0x10
JMP 0x0014d92f
|
int4
_ma_apply_redo_insert_row_head_or_tail
(long *param_1,long param_2,int8 param_3,char param_4,uint5 *param_5,void *param_6,
size_t param_7)
{
ulong *puVar1;
ulong uVar2;
byte bVar3;
long lVar4;
uint5 uVar5;
long lVar6;
long *plVar7;
uint uVar8;
char cVar9;
uint uVar10;
ushort *puVar11;
int *piVar12;
int4 *puVar13;
ulong uVar14;
ulong uVar15;
int4 uVar16;
ulong uVar17;
long lVar18;
ushort uVar19;
uint uVar20;
int iVar21;
int1 local_94 [4];
int8 local_90;
int4 local_88;
int1 local_80;
void *local_78;
ulong local_70;
ulong local_68;
ulong local_60;
int8 local_58;
ulong local_50;
uint local_44;
long *local_40;
uint local_38;
uint local_34;
lVar4 = *param_1;
uVar20 = *(uint *)(lVar4 + 0x7bc);
uVar17 = (ulong)uVar20;
uVar5 = *param_5;
uVar2 = (ulong)*param_5;
bVar3 = *(byte *)((long)param_5 + 5);
*(uint *)(lVar4 + 0x170) = *(uint *)(lVar4 + 0x170) | 0x181;
uVar14 = ((ulong)uVar5 + 1) * uVar17;
uVar15 = *(ulong *)(lVar4 + 0x40);
if (uVar14 < uVar15 || uVar14 - uVar15 == 0) {
puVar1 = (ulong *)(*(long *)(lVar4 + 0x600) + 0x198);
*puVar1 = *puVar1 & 0xffffffef;
*(int1 *)(lVar4 + 0x7ec) = 1;
local_78 = param_6;
local_70 = uVar15;
local_68 = uVar2;
local_60 = uVar14;
local_50 = (ulong)bVar3;
local_40 = param_1;
local_38 = (uint)param_3;
puVar11 = (ushort *)
pagecache_read(*(int8 *)(lVar4 + 0x600),param_1 + 0x8e,uVar2,0,0,1,4,&local_90);
uVar2 = local_68;
*(int8 *)(*(long *)(lVar4 + 0x600) + 0x198) =
*(int8 *)(*(long *)(lVar4 + 0x600) + 0x1a0);
*(int1 *)(lVar4 + 0x7ec) = 0;
if (puVar11 == (ushort *)0x0) {
if ((param_4 != '\0') &&
(((piVar12 = (int *)_my_thread_var(), *piVar12 == 0xaf ||
(piVar12 = (int *)_my_thread_var(), *piVar12 == 0xb0)) ||
(piVar12 = (int *)_my_thread_var(), *piVar12 == 0xc0)))) {
puVar11 = (ushort *)pagecache_block_link_to_buffer(local_90);
*(int1 *)((long)puVar11 + 7) = 0;
uVar10 = 0;
goto LAB_0014d629;
}
}
else {
uVar15 = (ulong)*(uint *)((long)puVar11 + 3) |
(ulong)(byte)puVar11[1] << 0x30 | (ulong)*puVar11 << 0x20;
if ((long)uVar15 < param_2) {
uVar10 = *(byte *)((long)puVar11 + 7) & 7;
LAB_0014d629:
uVar8 = local_38;
plVar7 = local_40;
uVar2 = local_50;
if (uVar10 == local_38) {
local_34 = (uint)puVar11[5];
if (((byte)local_50 < (byte)puVar11[4]) ||
(cVar9 = extend_directory(local_40,puVar11,uVar17,(byte)puVar11[4],
local_50 & 0xffffffff,&local_34,local_38 == 1), cVar9 == '\0'
)) {
lVar18 = (long)puVar11 + (uVar17 - (uint)((int)uVar2 * 4)) + -8;
cVar9 = extend_area_on_page(local_40,puVar11,lVar18,uVar2 & 0xffffffff,param_7,&local_34
,&local_44,local_94,local_38 == 1);
if (cVar9 == '\0') {
local_50 = CONCAT44(local_50._4_4_,2);
local_58 = 0;
goto LAB_0014d7d3;
}
}
LAB_0014d8d6:
iVar21 = 2;
param_1 = local_40;
goto LAB_0014d8dc;
}
if (param_4 == '\0') goto LAB_0014d8d6;
local_58 = 0;
make_empty_page(local_40,puVar11,local_38,0);
uVar2 = local_50;
local_34 = (uVar20 - *(int *)(lVar4 + 0xc18)) - 0x10;
extend_directory(plVar7,puVar11,uVar17,0,local_50 & 0xffffffff,&local_34,uVar8 == 1);
local_44 = *(int *)(lVar4 + 0xc18) + 0xc;
lVar6 = uVar17 - (uint)((int)uVar2 * 4);
lVar18 = (long)puVar11 + lVar6 + -8;
local_34 = local_34 + *(ushort *)((long)puVar11 + lVar6 + -6);
local_50 = CONCAT44(local_50._4_4_,2);
LAB_0014d7d3:
*(short *)(lVar18 + 2) = (short)param_7;
memcpy((void *)((ulong)local_44 + (long)puVar11),local_78,param_7);
uVar20 = local_34 - (int)param_7;
puVar11[5] = (ushort)uVar20;
local_34 = uVar20;
cVar9 = enough_free_entries_on_page(lVar4,puVar11);
plVar7 = local_40;
uVar2 = local_68;
if (cVar9 == '\0') {
local_34 = 0;
uVar20 = 0;
}
cVar9 = _ma_bitmap_set(local_40,local_68,local_38 == 1,uVar20);
iVar21 = (int)local_50;
if (cVar9 == '\0') {
uVar16 = 0;
if (local_70 < local_60) {
uVar16 = 0;
cVar9 = pagecache_write_part
(*(long *)(lVar4 + 0x600),plVar7 + 0x8e,uVar2,0,puVar11,1,4,local_58,0
,&local_90,0,0,*(int4 *)(*(long *)(lVar4 + 0x600) + 0x80));
if (cVar9 != '\0') {
puVar13 = (int4 *)_my_thread_var();
uVar16 = *puVar13;
}
}
local_88 = 6;
local_80 = 1;
insert_dynamic(plVar7 + 0x5d);
if (local_60 <= *(ulong *)(lVar4 + 0x40)) {
return uVar16;
}
*(ulong *)(lVar4 + 0x40) = local_60;
return uVar16;
}
goto LAB_0014d8e6;
}
check_skipped_lsn(local_40,uVar15,1,local_68);
uVar19 = puVar11[5];
cVar9 = enough_free_entries_on_page(lVar4,puVar11);
if (cVar9 == '\0') {
uVar19 = 0;
}
cVar9 = _ma_bitmap_set(local_40,uVar2,local_38 == 1,uVar19);
if (cVar9 == '\0') {
pagecache_unlock_by_link(*(int8 *)(lVar4 + 0x600),local_90,6,3,0,0,0,0);
return 0;
}
}
puVar13 = (int4 *)_my_thread_var();
uVar16 = *puVar13;
}
else {
iVar21 = 4;
if (param_4 != '\0' && bVar3 == 0) {
puVar11 = (ushort *)param_1[0x70];
*(int1 *)((long)param_1 + 0x685) = 1;
local_78 = param_6;
local_70 = uVar15;
local_68 = uVar2;
local_60 = uVar14;
local_40 = param_1;
local_38 = (uint)param_3;
make_empty_page(param_1,puVar11,param_3,1);
local_34 = (uVar20 - *(int *)(lVar4 + 0xc18)) - 0x14;
local_44 = *(int *)(lVar4 + 0xc18) + 0xc;
lVar18 = (long)puVar11 + (uVar17 - 8);
local_50 = CONCAT44(local_50._4_4_,4);
local_58 = 2;
goto LAB_0014d7d3;
}
LAB_0014d8dc:
_ma_set_fatal_error(param_1,0x7f);
LAB_0014d8e6:
puVar13 = (int4 *)_my_thread_var();
uVar16 = *puVar13;
if (iVar21 != 2) goto LAB_0014d91f;
}
pagecache_unlock_by_link(*(int8 *)(lVar4 + 0x600),local_90,6,3,0,0,0,0);
LAB_0014d91f:
_ma_mark_file_crashed(lVar4);
puVar13 = (int4 *)_my_thread_var();
*puVar13 = uVar16;
return uVar16;
}
| |
24,684 | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h | size_type FindIndexIn4Tuple(value_type value) const {
assert(_size>=4);
if (value == _begin[0]) return 0;
if (value == _begin[1]) return 1;
if (value == _begin[2]) return 2;
if (value == _begin[3]) return 3;
assert("FindIndexIn4Tuple() did not find expected value!" == 0);
return -1;
} | O0 | c | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x4, 0x8(%rax)
jl 0xf270f
jmp 0xf272e
leaq 0xf9258(%rip), %rdi # 0x1eb96e
leaq 0xf925a(%rip), %rsi # 0x1eb977
movl $0x51, %edx
leaq 0xf92aa(%rip), %rcx # 0x1eb9d3
callq 0xc9440
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq (%rcx), %rcx
cmpl (%rcx), %eax
jne 0xf2745
movl $0x0, -0x4(%rbp)
jmp 0xf27ac
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq (%rcx), %rcx
cmpl 0x4(%rcx), %eax
jne 0xf275d
movl $0x1, -0x4(%rbp)
jmp 0xf27ac
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
jne 0xf2775
movl $0x2, -0x4(%rbp)
jmp 0xf27ac
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq (%rcx), %rcx
cmpl 0xc(%rcx), %eax
jne 0xf278d
movl $0x3, -0x4(%rbp)
jmp 0xf27ac
leaq 0xf92a4(%rip), %rdi # 0x1eba38
leaq 0xf91dc(%rip), %rsi # 0x1eb977
movl $0x56, %edx
leaq 0xf922c(%rip), %rcx # 0x1eb9d3
callq 0xc9440
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| _ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE17FindIndexIn4TupleEi:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
cmp dword ptr [rax+8], 4
jl short loc_F270F
jmp short loc_F272E
loc_F270F:
lea rdi, aSize4; "_size>=4"
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 51h ; 'Q'
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
call ___assert_fail
loc_F272E:
mov rcx, [rbp+var_20]
mov eax, [rbp+var_14]
mov rcx, [rcx]
cmp eax, [rcx]
jnz short loc_F2745
mov [rbp+var_4], 0
jmp short loc_F27AC
loc_F2745:
mov rcx, [rbp+var_20]
mov eax, [rbp+var_14]
mov rcx, [rcx]
cmp eax, [rcx+4]
jnz short loc_F275D
mov [rbp+var_4], 1
jmp short loc_F27AC
loc_F275D:
mov rcx, [rbp+var_20]
mov eax, [rbp+var_14]
mov rcx, [rcx]
cmp eax, [rcx+8]
jnz short loc_F2775
mov [rbp+var_4], 2
jmp short loc_F27AC
loc_F2775:
mov rcx, [rbp+var_20]
mov eax, [rbp+var_14]
mov rcx, [rcx]
cmp eax, [rcx+0Ch]
jnz short loc_F278D
mov [rbp+var_4], 3
jmp short loc_F27AC
loc_F278D:
lea rdi, aFindindexin4tu; "\"FindIndexIn4Tuple() did not find expe"...
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 56h ; 'V'
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
call ___assert_fail
loc_F27AC:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int *a1, int a2)
{
if ( a1[2] < 4 )
__assert_fail(
"_size>=4",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
81LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
if ( a2 == **(_DWORD **)a1 )
{
return 0;
}
else if ( a2 == *(_DWORD *)(*(_QWORD *)a1 + 4LL) )
{
return 1;
}
else if ( a2 == *(_DWORD *)(*(_QWORD *)a1 + 8LL) )
{
return 2;
}
else
{
if ( a2 != *(_DWORD *)(*(_QWORD *)a1 + 12LL) )
__assert_fail(
"\"FindIndexIn4Tuple() did not find expected value!\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
86LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
return 3;
}
}
| FindIndexIn4Tuple:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
CMP dword ptr [RAX + 0x8],0x4
JL 0x001f270f
JMP 0x001f272e
LAB_001f270f:
LEA RDI,[0x2eb96e]
LEA RSI,[0x2eb977]
MOV EDX,0x51
LEA RCX,[0x2eb9d3]
CALL 0x001c9440
LAB_001f272e:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX]
JNZ 0x001f2745
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f27ac
LAB_001f2745:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x4]
JNZ 0x001f275d
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001f27ac
LAB_001f275d:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x8]
JNZ 0x001f2775
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001f27ac
LAB_001f2775:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x001f278d
MOV dword ptr [RBP + -0x4],0x3
JMP 0x001f27ac
LAB_001f278d:
LEA RDI,[0x2eba38]
LEA RSI,[0x2eb977]
MOV EDX,0x56
LEA RCX,[0x2eb9d3]
CALL 0x001c9440
LAB_001f27ac:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const */
int4 __thiscall
OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(ConstArray<int> *this,int param_1)
{
int4 local_c;
if (*(int *)(this + 8) < 4) {
/* WARNING: Subroutine does not return */
__assert_fail("_size>=4",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h"
,0x51,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]"
);
}
if (param_1 == **(int **)this) {
local_c = 0;
}
else if (param_1 == *(int *)(*(long *)this + 4)) {
local_c = 1;
}
else if (param_1 == *(int *)(*(long *)this + 8)) {
local_c = 2;
}
else {
if (param_1 != *(int *)(*(long *)this + 0xc)) {
/* WARNING: Subroutine does not return */
__assert_fail("\"FindIndexIn4Tuple() did not find expected value!\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h"
,0x56,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]"
);
}
local_c = 3;
}
return local_c;
}
| |
24,685 | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h | size_type FindIndexIn4Tuple(value_type value) const {
assert(_size>=4);
if (value == _begin[0]) return 0;
if (value == _begin[1]) return 1;
if (value == _begin[2]) return 2;
if (value == _begin[3]) return 3;
assert("FindIndexIn4Tuple() did not find expected value!" == 0);
return -1;
} | O1 | c | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const:
pushq %rax
cmpl $0x3, 0x8(%rdi)
jle 0x45e70
movq (%rdi), %rcx
xorl %eax, %eax
cmpl %esi, (%rcx)
je 0x45e6e
movl $0x1, %eax
cmpl %esi, 0x4(%rcx)
je 0x45e6e
movl $0x2, %eax
cmpl %esi, 0x8(%rcx)
je 0x45e6e
movl $0x3, %eax
cmpl %esi, 0xc(%rcx)
jne 0x45e8f
popq %rcx
retq
leaq 0x6d903(%rip), %rdi # 0xb377a
leaq 0x6d905(%rip), %rsi # 0xb3783
leaq 0x6d95a(%rip), %rcx # 0xb37df
movl $0x51, %edx
callq 0x39560
leaq 0x6d9ae(%rip), %rdi # 0xb3844
leaq 0x6d8e6(%rip), %rsi # 0xb3783
leaq 0x6d93b(%rip), %rcx # 0xb37df
movl $0x56, %edx
callq 0x39560
| _ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE17FindIndexIn4TupleEi:
push rax
cmp dword ptr [rdi+8], 3
jle short loc_45E70
mov rcx, [rdi]
xor eax, eax
cmp [rcx], esi
jz short loc_45E6E
mov eax, 1
cmp [rcx+4], esi
jz short loc_45E6E
mov eax, 2
cmp [rcx+8], esi
jz short loc_45E6E
mov eax, 3
cmp [rcx+0Ch], esi
jnz short loc_45E8F
loc_45E6E:
pop rcx
retn
loc_45E70:
lea rdi, aSize4; "_size>=4"
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
mov edx, 51h ; 'Q'
call ___assert_fail
loc_45E8F:
lea rdi, aFindindexin4tu; "\"FindIndexIn4Tuple() did not find expe"...
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
mov edx, 56h ; 'V'
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(long long a1, int a2)
{
_DWORD *v2; // rcx
long long result; // rax
if ( *(int *)(a1 + 8) <= 3 )
__assert_fail(
"_size>=4",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
81LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
v2 = *(_DWORD **)a1;
result = 0LL;
if ( **(_DWORD **)a1 != a2 )
{
result = 1LL;
if ( v2[1] != a2 )
{
result = 2LL;
if ( v2[2] != a2 )
{
result = 3LL;
if ( v2[3] != a2 )
__assert_fail(
"\"FindIndexIn4Tuple() did not find expected value!\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
86LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
}
}
}
return result;
}
| FindIndexIn4Tuple:
PUSH RAX
CMP dword ptr [RDI + 0x8],0x3
JLE 0x00145e70
MOV RCX,qword ptr [RDI]
XOR EAX,EAX
CMP dword ptr [RCX],ESI
JZ 0x00145e6e
MOV EAX,0x1
CMP dword ptr [RCX + 0x4],ESI
JZ 0x00145e6e
MOV EAX,0x2
CMP dword ptr [RCX + 0x8],ESI
JZ 0x00145e6e
MOV EAX,0x3
CMP dword ptr [RCX + 0xc],ESI
JNZ 0x00145e8f
LAB_00145e6e:
POP RCX
RET
LAB_00145e70:
LEA RDI,[0x1b377a]
LEA RSI,[0x1b3783]
LEA RCX,[0x1b37df]
MOV EDX,0x51
CALL 0x00139560
LAB_00145e8f:
LEA RDI,[0x1b3844]
LEA RSI,[0x1b3783]
LEA RCX,[0x1b37df]
MOV EDX,0x56
CALL 0x00139560
|
/* OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const */
int8 __thiscall
OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(ConstArray<int> *this,int param_1)
{
int *piVar1;
int8 uVar2;
if (*(int *)(this + 8) < 4) {
/* WARNING: Subroutine does not return */
__assert_fail("_size>=4",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h"
,0x51,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]"
);
}
piVar1 = *(int **)this;
uVar2 = 0;
if ((((*piVar1 != param_1) && (uVar2 = 1, piVar1[1] != param_1)) &&
(uVar2 = 2, piVar1[2] != param_1)) && (uVar2 = 3, piVar1[3] != param_1)) {
/* WARNING: Subroutine does not return */
__assert_fail("\"FindIndexIn4Tuple() did not find expected value!\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h"
,0x56,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]"
);
}
return uVar2;
}
| |
24,686 | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h | size_type FindIndexIn4Tuple(value_type value) const {
assert(_size>=4);
if (value == _begin[0]) return 0;
if (value == _begin[1]) return 1;
if (value == _begin[2]) return 2;
if (value == _begin[3]) return 3;
assert("FindIndexIn4Tuple() did not find expected value!" == 0);
return -1;
} | O2 | c | OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const:
pushq %rax
cmpl $0x3, 0x8(%rdi)
jle 0x5dd1c
movq (%rdi), %rcx
xorl %eax, %eax
cmpl %esi, (%rcx)
je 0x5dd1a
cmpl %esi, 0x4(%rcx)
jne 0x5dd09
pushq $0x1
jmp 0x5dd19
cmpl %esi, 0x8(%rcx)
jne 0x5dd12
pushq $0x2
jmp 0x5dd19
cmpl %esi, 0xc(%rcx)
jne 0x5dd39
pushq $0x3
popq %rax
popq %rcx
retq
leaq 0x5fa57(%rip), %rdi # 0xbd77a
leaq 0x5fa59(%rip), %rsi # 0xbd783
leaq 0x5faae(%rip), %rcx # 0xbd7df
pushq $0x51
popq %rdx
callq 0x512a0
leaq 0x5fb04(%rip), %rdi # 0xbd844
leaq 0x5fa3c(%rip), %rsi # 0xbd783
leaq 0x5fa91(%rip), %rcx # 0xbd7df
pushq $0x56
jmp 0x5dd33
| _ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE17FindIndexIn4TupleEi:
push rax
cmp dword ptr [rdi+8], 3
jle short loc_5DD1C
mov rcx, [rdi]
xor eax, eax
cmp [rcx], esi
jz short loc_5DD1A
cmp [rcx+4], esi
jnz short loc_5DD09
push 1
jmp short loc_5DD19
loc_5DD09:
cmp [rcx+8], esi
jnz short loc_5DD12
push 2
jmp short loc_5DD19
loc_5DD12:
cmp [rcx+0Ch], esi
jnz short loc_5DD39
push 3
loc_5DD19:
pop rax
loc_5DD1A:
pop rcx
retn
loc_5DD1C:
lea rdi, aSize4; "_size>=4"
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
push 51h ; 'Q'
loc_5DD33:
pop rdx
call ___assert_fail
loc_5DD39:
lea rdi, aFindindexin4tu; "\"FindIndexIn4Tuple() did not find expe"...
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aSizeTypeOpensu; "size_type OpenSubdiv::v3_6_0::Vtr::Cons"...
push 56h ; 'V'
jmp short loc_5DD33
| long long OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(long long a1, int a2)
{
_DWORD *v2; // rcx
long long result; // rax
if ( *(int *)(a1 + 8) <= 3 )
__assert_fail(
"_size>=4",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
81LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
v2 = *(_DWORD **)a1;
result = 0LL;
if ( **(_DWORD **)a1 != a2 )
{
if ( v2[1] == a2 )
return 1LL;
if ( v2[2] == a2 )
return 2LL;
if ( v2[3] != a2 )
__assert_fail(
"\"FindIndexIn4Tuple() did not find expected value!\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h",
86LL,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]");
return 3LL;
}
return result;
}
| FindIndexIn4Tuple:
PUSH RAX
CMP dword ptr [RDI + 0x8],0x3
JLE 0x0015dd1c
MOV RCX,qword ptr [RDI]
XOR EAX,EAX
CMP dword ptr [RCX],ESI
JZ 0x0015dd1a
CMP dword ptr [RCX + 0x4],ESI
JNZ 0x0015dd09
PUSH 0x1
JMP 0x0015dd19
LAB_0015dd09:
CMP dword ptr [RCX + 0x8],ESI
JNZ 0x0015dd12
PUSH 0x2
JMP 0x0015dd19
LAB_0015dd12:
CMP dword ptr [RCX + 0xc],ESI
JNZ 0x0015dd39
PUSH 0x3
LAB_0015dd19:
POP RAX
LAB_0015dd1a:
POP RCX
RET
LAB_0015dd1c:
LEA RDI,[0x1bd77a]
LEA RSI,[0x1bd783]
LEA RCX,[0x1bd7df]
PUSH 0x51
LAB_0015dd33:
POP RDX
CALL 0x001512a0
LAB_0015dd39:
LEA RDI,[0x1bd844]
LEA RSI,[0x1bd783]
LEA RCX,[0x1bd7df]
PUSH 0x56
JMP 0x0015dd33
|
/* OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) const */
int8 __thiscall
OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(ConstArray<int> *this,int param_1)
{
int *piVar1;
uint __line;
char *__assertion;
int8 uStack_10;
if (*(int *)(this + 8) < 4) {
__assertion = "_size>=4";
__line = 0x51;
LAB_0015dd33:
/* WARNING: Subroutine does not return */
__assert_fail(__assertion,
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/array.h"
,__line,
"size_type OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(value_type) const [TYPE = int]"
);
}
piVar1 = *(int **)this;
uStack_10 = 0;
if (*piVar1 != param_1) {
if (piVar1[1] == param_1) {
uStack_10 = 1;
}
else if (piVar1[2] == param_1) {
uStack_10 = 2;
}
else {
if (piVar1[3] != param_1) {
__assertion = "\"FindIndexIn4Tuple() did not find expected value!\" == 0";
__line = 0x56;
goto LAB_0015dd33;
}
uStack_10 = 3;
}
}
return uStack_10;
}
| |
24,687 | HKDF_Expand | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/keygen.c | static void HKDF_Expand(unsigned char *OKM, size_t L,
const unsigned char PRK[32],
const void *info, size_t info_len,
#ifndef __BLST_HKDF_TESTMODE__
int info_fixup,
#endif
HMAC_SHA256_CTX *ctx)
{
#if !defined(__STDC_VERSION__) || __STDC_VERSION__<199901 \
|| defined(__STDC_NO_VLA__)
unsigned char *info_prime = alloca(info_len + 2 + 1);
#else
unsigned char info_prime[info_len + 2 + 1];
#endif
HMAC_init(ctx, PRK, 32);
if (info_len != 0)
sha256_bcopy(info_prime, info, info_len);
#ifndef __BLST_HKDF_TESTMODE__
if (info_fixup) {
/* Section 2.3 KeyGen in BLS-signature draft */
info_prime[info_len + 0] = (unsigned char)(L >> 8);
info_prime[info_len + 1] = (unsigned char)(L);
info_len += 2;
}
#endif
info_prime[info_len] = 1; /* counter */
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
while (L > 32) {
sha256_hcopy((unsigned int *)OKM, (const unsigned int *)ctx->tail.c);
OKM += 32; L -= 32;
++info_prime[info_len]; /* counter */
HMAC_init(ctx, NULL, 0);
HMAC_update(ctx, ctx->tail.c, 32);
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
}
sha256_bcopy(OKM, ctx->tail.c, L);
} | O3 | c | HKDF_Expand:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, -0x38(%rbp)
movq %r8, %r15
movq %rcx, -0x30(%rbp)
movq %rdx, %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rbp), %r12
movq %rsp, %r13
leaq 0x12(%r8), %rcx
andq $-0x10, %rcx
subq %rcx, %r13
movq %r13, %rsp
movl $0x20, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x6665a
testq %r15, %r15
je 0x66553
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x6d1f0
cmpl $0x0, -0x38(%rbp)
je 0x66569
movl %ebx, %eax
rolw $0x8, %ax
movw %ax, (%r13,%r15)
addq $0x2, %r15
movb $0x1, (%r13,%r15)
movq %r15, -0x38(%rbp)
leaq 0x1(%r15), %rdx
movq %r12, %rdi
movq %r13, %rsi
movq %rdx, -0x30(%rbp)
callq 0x65f5a
leaq 0xb0(%r12), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x6680c
cmpq $0x21, %rbx
jb 0x6663d
leaq 0x70(%r12), %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%r12), %rax
movq %rax, -0x40(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x6d210
addq $0x20, %r14
movq -0x38(%rbp), %rax
incb (%r13,%rax)
movq %r12, %rdi
movq -0x48(%rbp), %rsi
callq 0x6d210
movq $0x40, 0x20(%r12)
movl $0x5, %eax
movq $0x0, (%r12,%rax,8)
incq %rax
cmpq $0xd, %rax
jne 0x665e7
addq $-0x20, %rbx
movq -0x40(%rbp), %rax
movq $0x0, 0x68(%r12)
movl $0x20, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x65f5a
movq %r12, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
callq 0x65f5a
movq %r15, %rdi
movq %r12, %rsi
callq 0x6680c
cmpq $0x20, %rbx
ja 0x665b5
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6d1f0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| HKDF_Expand:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov dword ptr [rbp+var_38], r9d
mov r15, r8
mov [rbp+var_30], rcx
mov rax, rdx
mov rbx, rsi
mov r14, rdi
mov r12, [rbp+arg_0]
mov r13, rsp
lea rcx, [r8+12h]
and rcx, 0FFFFFFFFFFFFFFF0h
sub r13, rcx
mov rsp, r13
mov edx, 20h ; ' '
mov rdi, r12
mov rsi, rax
call HMAC_init
test r15, r15
jz short loc_66553
mov rdi, r13
mov rsi, [rbp+var_30]
mov rdx, r15
call blst_sha256_bcopy
loc_66553:
cmp dword ptr [rbp+var_38], 0
jz short loc_66569
mov eax, ebx
rol ax, 8
mov [r13+r15+0], ax
add r15, 2
loc_66569:
mov byte ptr [r13+r15+0], 1
mov [rbp+var_38], r15
lea rdx, [r15+1]
mov rdi, r12
mov rsi, r13
mov [rbp+var_30], rdx
call sha256_update
lea r15, [r12+0B0h]
mov rdi, r15
mov rsi, r12
call HMAC_final
cmp rbx, 21h ; '!'
jb loc_6663D
lea rax, [r12+70h]
mov [rbp+var_48], rax
lea rax, [r12+28h]
mov [rbp+var_40], rax
loc_665B5:
mov rdi, r14
mov rsi, r15
call blst_sha256_hcopy
add r14, 20h ; ' '
mov rax, [rbp+var_38]
inc byte ptr [r13+rax+0]
mov rdi, r12
mov rsi, [rbp+var_48]
call blst_sha256_hcopy
mov qword ptr [r12+20h], 40h ; '@'
mov eax, 5
loc_665E7:
mov qword ptr [r12+rax*8], 0
inc rax
cmp rax, 0Dh
jnz short loc_665E7
add rbx, 0FFFFFFFFFFFFFFE0h
mov rax, [rbp+var_40]
mov qword ptr [r12+68h], 0
mov edx, 20h ; ' '
mov rdi, r12
mov rsi, r15
call sha256_update
mov rdi, r12
mov rsi, r13
mov rdx, [rbp+var_30]
call sha256_update
mov rdi, r15
mov rsi, r12
call HMAC_final
cmp rbx, 20h ; ' '
ja loc_665B5
loc_6663D:
mov rdi, r14
mov rsi, r15
mov rdx, rbx
call blst_sha256_bcopy
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long HKDF_Expand(long long a1, unsigned long long a2, long long a3, long long a4, long long a5, int a6, long long a7)
{
long long v7; // r15
unsigned long long v8; // rbx
char *v10; // r13
long long i; // rax
long long v13; // [rsp+0h] [rbp-50h] BYREF
long long v14; // [rsp+8h] [rbp-48h]
long long v15; // [rsp+10h] [rbp-40h]
long long v16; // [rsp+18h] [rbp-38h]
long long v17; // [rsp+20h] [rbp-30h]
LODWORD(v16) = a6;
v7 = a5;
v17 = a4;
v8 = a2;
v10 = (char *)&v13 - ((a5 + 18) & 0xFFFFFFFFFFFFFFF0LL);
HMAC_init(a7, a3);
if ( v7 )
blst_sha256_bcopy(v10, v17, v7);
if ( (_DWORD)v16 )
{
*(_WORD *)&v10[v7] = __ROL2__(a2, 8);
v7 += 2LL;
}
v10[v7] = 1;
v16 = v7;
v17 = v7 + 1;
sha256_update(a7, v10, v7 + 1);
HMAC_final(a7 + 176, a7);
if ( a2 >= 0x21 )
{
v14 = a7 + 112;
v15 = a7 + 40;
do
{
blst_sha256_hcopy(a1, a7 + 176);
a1 += 32LL;
++v10[v16];
blst_sha256_hcopy(a7, v14);
*(_QWORD *)(a7 + 32) = 64LL;
for ( i = 5LL; i != 13; ++i )
*(_QWORD *)(a7 + 8 * i) = 0LL;
v8 -= 32LL;
*(_QWORD *)(a7 + 104) = 0LL;
sha256_update(a7, a7 + 176, 32LL);
sha256_update(a7, v10, v17);
HMAC_final(a7 + 176, a7);
}
while ( v8 > 0x20 );
}
return blst_sha256_bcopy(a1, a7 + 176, v8);
}
| HKDF_Expand:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV dword ptr [RBP + -0x38],R9D
MOV R15,R8
MOV qword ptr [RBP + -0x30],RCX
MOV RAX,RDX
MOV RBX,RSI
MOV R14,RDI
MOV R12,qword ptr [RBP + 0x10]
MOV R13,RSP
LEA RCX,[R8 + 0x12]
AND RCX,-0x10
SUB R13,RCX
MOV RSP,R13
MOV EDX,0x20
MOV RDI,R12
MOV RSI,RAX
CALL 0x0016665a
TEST R15,R15
JZ 0x00166553
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R15
CALL 0x0016d1f0
LAB_00166553:
CMP dword ptr [RBP + -0x38],0x0
JZ 0x00166569
MOV EAX,EBX
ROL AX,0x8
MOV word ptr [R13 + R15*0x1],AX
ADD R15,0x2
LAB_00166569:
MOV byte ptr [R13 + R15*0x1],0x1
MOV qword ptr [RBP + -0x38],R15
LEA RDX,[R15 + 0x1]
MOV RDI,R12
MOV RSI,R13
MOV qword ptr [RBP + -0x30],RDX
CALL 0x00165f5a
LEA R15,[R12 + 0xb0]
MOV RDI,R15
MOV RSI,R12
CALL 0x0016680c
CMP RBX,0x21
JC 0x0016663d
LEA RAX,[R12 + 0x70]
MOV qword ptr [RBP + -0x48],RAX
LEA RAX,[R12 + 0x28]
MOV qword ptr [RBP + -0x40],RAX
LAB_001665b5:
MOV RDI,R14
MOV RSI,R15
CALL 0x0016d210
ADD R14,0x20
MOV RAX,qword ptr [RBP + -0x38]
INC byte ptr [R13 + RAX*0x1]
MOV RDI,R12
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x0016d210
MOV qword ptr [R12 + 0x20],0x40
MOV EAX,0x5
LAB_001665e7:
MOV qword ptr [R12 + RAX*0x8],0x0
INC RAX
CMP RAX,0xd
JNZ 0x001665e7
ADD RBX,-0x20
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [R12 + 0x68],0x0
MOV EDX,0x20
MOV RDI,R12
MOV RSI,R15
CALL 0x00165f5a
MOV RDI,R12
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00165f5a
MOV RDI,R15
MOV RSI,R12
CALL 0x0016680c
CMP RBX,0x20
JA 0x001665b5
LAB_0016663d:
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
CALL 0x0016d1f0
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void HKDF_Expand(long param_1,ulong param_2,int8 param_3,int8 param_4,long param_5,
int4 param_6,long param_7)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
int8 uStack_60;
ushort auStack_58 [4];
long local_50;
long local_48;
long local_40;
long local_38;
local_40 = CONCAT44(local_40._4_4_,param_6);
lVar2 = -(param_5 + 0x12U & 0xfffffffffffffff0);
lVar4 = (long)auStack_58 + lVar2;
local_38 = param_4;
*(int8 *)((long)&uStack_60 + lVar2) = 0x16653f;
HMAC_init(param_7,param_3,0x20);
lVar1 = local_38;
if (param_5 != 0) {
*(int8 *)((long)&uStack_60 + lVar2) = 0x166553;
blst_sha256_bcopy(lVar4,lVar1,param_5);
}
if ((int)local_40 != 0) {
*(ushort *)(lVar4 + param_5) = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
param_5 = param_5 + 2;
}
*(int1 *)(lVar4 + param_5) = 1;
local_38 = param_5 + 1;
local_40 = param_5;
*(int8 *)((long)&uStack_60 + lVar2) = 0x166586;
sha256_update(param_7,lVar4);
lVar1 = param_7 + 0xb0;
*(int8 *)((long)&uStack_60 + lVar2) = 0x166599;
HMAC_final(lVar1,param_7);
if (0x20 < param_2) {
local_50 = param_7 + 0x70;
local_48 = param_7 + 0x28;
do {
*(int8 *)((long)&uStack_60 + lVar2) = 0x1665c0;
blst_sha256_hcopy(param_1,lVar1);
param_1 = param_1 + 0x20;
*(char *)(lVar4 + local_40) = *(char *)(lVar4 + local_40) + '\x01';
lVar3 = local_50;
*(int8 *)((long)&uStack_60 + lVar2) = 0x1665d9;
blst_sha256_hcopy(param_7,lVar3);
*(int8 *)(param_7 + 0x20) = 0x40;
lVar3 = 5;
do {
*(int8 *)(param_7 + lVar3 * 8) = 0;
lVar3 = lVar3 + 1;
} while (lVar3 != 0xd);
param_2 = param_2 - 0x20;
*(int8 *)(param_7 + 0x68) = 0;
*(int8 *)((long)&uStack_60 + lVar2) = 0x166619;
sha256_update(param_7,lVar1,0x20);
lVar3 = local_38;
*(int8 *)((long)&uStack_60 + lVar2) = 0x166628;
sha256_update(param_7,lVar4,lVar3);
*(int8 *)((long)&uStack_60 + lVar2) = 0x166633;
HMAC_final(lVar1,param_7);
} while (0x20 < param_2);
}
*(int8 *)((long)&uStack_60 + lVar2) = 0x16664b;
blst_sha256_bcopy(param_1,lVar1,param_2);
return;
}
| |
24,688 | safe_lexcstrdup_root | eloqsql/mysys/my_alloc.c | LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str)
{
LEX_CSTRING res;
if (str.length)
res.str= strmake_root(root, str.str, str.length);
else
res.str= (const char *)"";
res.length= str.length;
return res;
} | O3 | c | safe_lexcstrdup_root:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
testq %rdx, %rdx
je 0x9cef4
movq %rbx, %rdx
callq 0x9ce59
jmp 0x9cefb
leaq 0x42d4b(%rip), %rax # 0xdfc46
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
| safe_lexcstrdup_root:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdx
test rdx, rdx
jz short loc_9CEF4
mov rdx, rbx
call strmake_root
jmp short loc_9CEFB
loc_9CEF4:
lea rax, asc_DFC42+4; ""
loc_9CEFB:
mov rdx, rbx
add rsp, 8
pop rbx
pop rbp
retn
| char * safe_lexcstrdup_root(long long a1, long long a2, long long a3)
{
if ( a3 )
return strmake_root(a1, a2, a3);
else
return "";
}
| safe_lexcstrdup_root:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDX
TEST RDX,RDX
JZ 0x0019cef4
MOV RDX,RBX
CALL 0x0019ce59
JMP 0x0019cefb
LAB_0019cef4:
LEA RAX,[0x1dfc46]
LAB_0019cefb:
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3)
{
int *puVar1;
int1 auVar2 [16];
if (param_3 == 0) {
puVar1 = &DAT_001dfc46;
}
else {
puVar1 = (int *)strmake_root(param_1,param_2,param_3);
}
auVar2._8_8_ = param_3;
auVar2._0_8_ = puVar1;
return auVar2;
}
| |
24,689 | google::protobuf::EnumValueDescriptorProto::_InternalParse(char const*, google::protobuf::internal::ParseContext*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | const char* EnumValueDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional string name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
#ifndef NDEBUG
::_pbi::VerifyUTF8(str, "google.protobuf.EnumValueDescriptorProto.name");
#endif // !NDEBUG
} else
goto handle_unusual;
continue;
// optional int32 number = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_Internal::set_has_number(&has_bits);
_impl_.number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .google.protobuf.EnumValueOptions options = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
} | O3 | cpp | google::protobuf::EnumValueDescriptorProto::_InternalParse(char const*, google::protobuf::internal::ParseContext*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movl 0x5c(%rdx), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x7347e
xorl %r12d, %r12d
testb %al, %al
je 0xf0b8b
orl %r12d, 0x10(%rbx)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %r15
leaq 0x18(%rbx), %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
leaq 0x8(%rsp), %r13
movq 0x8(%rsp), %rdi
movzbl (%rdi), %ebp
leaq 0x1(%rdi), %rax
testb %bpl, %bpl
jns 0xf0bd4
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %ebp
addl $-0x80, %ebp
testb %al, %al
js 0xf0bcb
addq $0x2, %rdi
movq %rdi, %rax
jmp 0xf0bd4
movl %ebp, %esi
callq 0x7ce8e
movl %edx, %ebp
movq %rax, 0x8(%rsp)
movl %ebp, %ecx
shrl $0x3, %ecx
cmpl $0x3, %ecx
je 0xf0c71
cmpl $0x2, %ecx
je 0xf0c35
cmpl $0x1, %ecx
jne 0xf0cb4
cmpb $0xa, %bpl
jne 0xf0cb4
orb $0x1, 0x10(%rbx)
movq 0x8(%rbx), %rax
movq %rax, %rsi
andq $-0x4, %rsi
testb $0x1, %al
jne 0xf0d1c
movq 0x10(%rsp), %rdi
callq 0x7887a
movq 0x8(%rsp), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x7cf2a
jmp 0xf0ce4
cmpb $0x10, %bpl
jne 0xf0cb4
orl $0x4, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0xf0c67
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0xf0d0a
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, 0x8(%rsp)
movl %esi, 0x28(%rbx)
jmp 0xf0cee
cmpb $0x1a, %bpl
jne 0xf0cb4
orb $0x2, 0x10(%rbx)
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
jne 0xf0ca7
movq (%r15), %rax
movq %rax, %rdi
andq $-0x4, %rdi
testb $0x1, %al
jne 0xf0d36
callq 0xfa94c
movq %rax, %rsi
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0x2fce4
jmp 0xf0ce4
testl %ebp, %ebp
je 0xf0d3e
movl %ebp, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0xf0d3e
movq (%r15), %rsi
testb $0x1, %sil
je 0xf0d24
andq $-0x4, %rsi
addq $0x8, %rsi
movl %ebp, %edi
movq %rax, %rdx
movq %r14, %rcx
callq 0xa3709
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xf0d4e
movl 0x5c(%r14), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x7347e
testb %al, %al
je 0xf0ba0
jmp 0xf0b73
movq %rax, %rdi
callq 0x7ce02
movq %rax, 0x8(%rsp)
movl %edx, 0x28(%rbx)
jmp 0xf0ce9
movq (%rsi), %rsi
jmp 0xf0c16
movq %r15, %rdi
callq 0x735aa
movq %rax, %rsi
movq 0x8(%rsp), %rax
jmp 0xf0cd7
movq (%rdi), %rdi
jmp 0xf0c96
testq %rax, %rax
je 0xf0d4e
decl %ebp
movl %ebp, 0x50(%r14)
jmp 0xf0b73
movq $0x0, 0x8(%rsp)
jmp 0xf0b73
| _ZN6google8protobuf24EnumValueDescriptorProto14_InternalParseEPKcPNS0_8internal12ParseContextE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rdx
mov rbx, rdi
lea rax, [rsp+48h+var_40]
mov [rax], rsi
mov edx, [rdx+5Ch]; int
mov rdi, r14; this
mov rsi, rax; char **
call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int)
xor r12d, r12d
test al, al
jz short loc_F0B8B
loc_F0B73:
or [rbx+10h], r12d
mov rax, [rsp+48h+var_40]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_F0B8B:
lea r15, [rbx+8]
lea rax, [rbx+18h]
mov [rsp+48h+var_38], rax
xor r12d, r12d
lea r13, [rsp+48h+var_40]
loc_F0BA0:
mov rdi, [rsp+48h+var_40]; this
movzx ebp, byte ptr [rdi]
lea rax, [rdi+1]
test bpl, bpl
jns short loc_F0BD4
movzx eax, byte ptr [rax]
mov ecx, eax
shl ecx, 7
add ebp, ecx
add ebp, 0FFFFFF80h
test al, al
js short loc_F0BCB
add rdi, 2
mov rax, rdi
jmp short loc_F0BD4
loc_F0BCB:
mov esi, ebp; char *
call _ZN6google8protobuf8internal15ReadTagFallbackEPKcj; google::protobuf::internal::ReadTagFallback(char const*,uint)
mov ebp, edx
loc_F0BD4:
mov [rsp+48h+var_40], rax
mov ecx, ebp
shr ecx, 3
cmp ecx, 3
jz loc_F0C71
cmp ecx, 2
jz short loc_F0C35
cmp ecx, 1
jnz loc_F0CB4
cmp bpl, 0Ah
jnz loc_F0CB4
or byte ptr [rbx+10h], 1
mov rax, [rbx+8]
mov rsi, rax
and rsi, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz loc_F0D1C
loc_F0C16:
mov rdi, [rsp+48h+var_38]
call _ZN6google8protobuf8internal14ArenaStringPtr7MutableB5cxx11EPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Mutable(google::protobuf::Arena *)
mov rsi, [rsp+48h+var_40]
mov rdi, rax
mov rdx, r14
call _ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE; google::protobuf::internal::InlineGreedyStringParser(std::string *,char const*,google::protobuf::internal::ParseContext *)
jmp loc_F0CE4
loc_F0C35:
cmp bpl, 10h
jnz short loc_F0CB4
or r12d, 4
movzx esi, byte ptr [rax]
lea rcx, [rax+1]
test sil, sil
jns short loc_F0C67
movzx ecx, byte ptr [rcx]
mov edx, ecx
shl edx, 7; unsigned int
add esi, edx
add esi, 0FFFFFF80h; char *
test cl, cl
js loc_F0D0A
add rax, 2
mov rcx, rax
loc_F0C67:
mov [rsp+48h+var_40], rcx
mov [rbx+28h], esi
jmp short loc_F0CEE
loc_F0C71:
cmp bpl, 1Ah
jnz short loc_F0CB4
or byte ptr [rbx+10h], 2
mov rsi, [rbx+20h]
test rsi, rsi
jnz short loc_F0CA7
mov rax, [r15]
mov rdi, rax
and rdi, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz loc_F0D36
loc_F0C96:
call _ZN6google8protobuf5Arena18CreateMaybeMessageINS0_16EnumValueOptionsEJEEEPT_PS1_DpOT0_; google::protobuf::Arena::CreateMaybeMessage<google::protobuf::EnumValueOptions>(google::protobuf::Arena*)
mov rsi, rax; google::protobuf::MessageLite *
mov [rbx+20h], rax
mov rax, [rsp+48h+var_40]
loc_F0CA7:
mov rdi, r14; this
mov rdx, rax; char *
call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*)
jmp short loc_F0CE4
loc_F0CB4:
test ebp, ebp
jz loc_F0D3E
mov ecx, ebp
and ecx, 7
cmp ecx, 4
jz short loc_F0D3E
mov rsi, [r15]
test sil, 1
jz short loc_F0D24
and rsi, 0FFFFFFFFFFFFFFFCh
add rsi, 8; unsigned __int64
loc_F0CD7:
mov edi, ebp; this
mov rdx, rax; google::protobuf::UnknownFieldSet *
mov rcx, r14; char *
call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *)
loc_F0CE4:
mov [rsp+48h+var_40], rax
loc_F0CE9:
test rax, rax
jz short loc_F0D4E
loc_F0CEE:
mov edx, [r14+5Ch]; int
mov rdi, r14; this
mov rsi, r13; char **
call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int)
test al, al
jz loc_F0BA0
jmp loc_F0B73
loc_F0D0A:
mov rdi, rax; this
call _ZN6google8protobuf8internal17VarintParseSlow32EPKcj; google::protobuf::internal::VarintParseSlow32(char const*,uint)
mov [rsp+48h+var_40], rax
mov [rbx+28h], edx
jmp short loc_F0CE9
loc_F0D1C:
mov rsi, [rsi]
jmp loc_F0C16
loc_F0D24:
mov rdi, r15
call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void)
mov rsi, rax
mov rax, [rsp+48h+var_40]
jmp short loc_F0CD7
loc_F0D36:
mov rdi, [rdi]
jmp loc_F0C96
loc_F0D3E:
test rax, rax
jz short loc_F0D4E
dec ebp
mov [r14+50h], ebp
jmp loc_F0B73
loc_F0D4E:
mov [rsp+48h+var_40], 0
jmp loc_F0B73
| google::protobuf::internal * google::protobuf::EnumValueDescriptorProto::_InternalParse(
google::protobuf::EnumValueDescriptorProto *this,
google::protobuf::internal *a2,
google::protobuf::internal::ParseContext *a3)
{
google::protobuf::internal::ParseContext *v5; // r8
int v6; // r12d
_QWORD *v8; // r15
unsigned int v9; // ebp
google::protobuf::internal *TagFallback; // rax
int v11; // eax
unsigned int v12; // edx
unsigned int v13; // ecx
unsigned long long v14; // rax
google::protobuf::internal *v15; // rax
const char *v16; // rsi
google::protobuf::internal *v17; // rcx
int v18; // ecx
google::protobuf::MessageLite *v19; // rsi
_QWORD *v20; // rdi
unsigned long long v21; // rsi
int v22; // edx
google::protobuf::internal *v23; // [rsp+8h] [rbp-40h] BYREF
_QWORD *v24; // [rsp+10h] [rbp-38h]
v23 = a2;
v6 = 0;
if ( google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(a3, (const char **)&v23, *((_DWORD *)a3 + 23)) )
goto LABEL_2;
v8 = (_QWORD *)((char *)this + 8);
v24 = (_QWORD *)((char *)this + 24);
v6 = 0;
while ( 1 )
{
v9 = *(unsigned __int8 *)v23;
TagFallback = (google::protobuf::internal *)((char *)v23 + 1);
if ( (v9 & 0x80u) != 0 )
{
v11 = *(unsigned __int8 *)TagFallback;
v9 = (v11 << 7) + v9 - 128;
if ( (v11 & 0x80u) != 0 )
{
TagFallback = (google::protobuf::internal *)google::protobuf::internal::ReadTagFallback(v23, (const char *)v9);
v9 = v12;
}
else
{
TagFallback = (google::protobuf::internal *)((char *)v23 + 2);
}
}
v23 = TagFallback;
v13 = v9 >> 3;
if ( v9 >> 3 == 3 )
{
if ( (_BYTE)v9 == 26 )
{
*((_BYTE *)this + 16) |= 2u;
v19 = (google::protobuf::MessageLite *)*((_QWORD *)this + 4);
if ( !v19 )
{
v20 = (_QWORD *)(*v8 & 0xFFFFFFFFFFFFFFFCLL);
if ( (*v8 & 1) != 0 )
v20 = (_QWORD *)*v20;
v19 = (google::protobuf::MessageLite *)google::protobuf::Arena::CreateMaybeMessage<google::protobuf::EnumValueOptions>(v20);
*((_QWORD *)this + 4) = v19;
TagFallback = v23;
}
v15 = (google::protobuf::internal *)google::protobuf::internal::ParseContext::ParseMessage(
a3,
v19,
(const char *)TagFallback);
goto LABEL_29;
}
goto LABEL_24;
}
if ( v13 != 2 )
break;
if ( (_BYTE)v9 != 16 )
goto LABEL_24;
v6 |= 4u;
LODWORD(v16) = *(unsigned __int8 *)TagFallback;
v17 = (google::protobuf::internal *)((char *)TagFallback + 1);
if ( (char)v16 >= 0 )
goto LABEL_17;
v18 = *(unsigned __int8 *)v17;
v16 = (const char *)(unsigned int)((v18 << 7) + (_DWORD)v16 - 128);
if ( (v18 & 0x80u) == 0 )
{
v17 = (google::protobuf::internal *)((char *)TagFallback + 2);
LABEL_17:
v23 = v17;
*((_DWORD *)this + 10) = (_DWORD)v16;
goto LABEL_31;
}
v15 = (google::protobuf::internal *)google::protobuf::internal::VarintParseSlow32(TagFallback, v16);
v23 = v15;
*((_DWORD *)this + 10) = v22;
LABEL_30:
if ( !v15 )
goto LABEL_37;
LABEL_31:
if ( google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(a3, (const char **)&v23, *((_DWORD *)a3 + 23)) )
goto LABEL_2;
}
if ( v13 == 1 && (_BYTE)v9 == 10 )
{
*((_BYTE *)this + 16) |= 1u;
v14 = google::protobuf::internal::ArenaStringPtr::Mutable[abi:cxx11](v24);
v15 = (google::protobuf::internal *)google::protobuf::internal::InlineGreedyStringParser(v14, v23, a3);
LABEL_29:
v23 = v15;
goto LABEL_30;
}
LABEL_24:
if ( v9 && (v9 & 7) != 4 )
{
if ( (*v8 & 1) != 0 )
{
v21 = (*v8 & 0xFFFFFFFFFFFFFFFCLL) + 8;
}
else
{
v21 = google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>((long long *)this + 1);
TagFallback = v23;
}
v15 = (google::protobuf::internal *)google::protobuf::internal::UnknownFieldParse(
(google::protobuf::internal *)v9,
v21,
TagFallback,
(const char *)a3,
v5);
goto LABEL_29;
}
if ( TagFallback )
{
*((_DWORD *)a3 + 20) = v9 - 1;
goto LABEL_2;
}
LABEL_37:
v23 = 0LL;
LABEL_2:
*((_DWORD *)this + 4) |= v6;
return v23;
}
| _InternalParse:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RDX
MOV RBX,RDI
LEA RAX,[RSP + 0x8]
MOV qword ptr [RAX],RSI
MOV EDX,dword ptr [RDX + 0x5c]
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017347e
XOR R12D,R12D
TEST AL,AL
JZ 0x001f0b8b
LAB_001f0b73:
OR dword ptr [RBX + 0x10],R12D
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001f0b8b:
LEA R15,[RBX + 0x8]
LEA RAX,[RBX + 0x18]
MOV qword ptr [RSP + 0x10],RAX
XOR R12D,R12D
LEA R13,[RSP + 0x8]
LAB_001f0ba0:
MOV RDI,qword ptr [RSP + 0x8]
MOVZX EBP,byte ptr [RDI]
LEA RAX,[RDI + 0x1]
TEST BPL,BPL
JNS 0x001f0bd4
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
SHL ECX,0x7
ADD EBP,ECX
ADD EBP,-0x80
TEST AL,AL
JS 0x001f0bcb
ADD RDI,0x2
MOV RAX,RDI
JMP 0x001f0bd4
LAB_001f0bcb:
MOV ESI,EBP
CALL 0x0017ce8e
MOV EBP,EDX
LAB_001f0bd4:
MOV qword ptr [RSP + 0x8],RAX
MOV ECX,EBP
SHR ECX,0x3
CMP ECX,0x3
JZ 0x001f0c71
CMP ECX,0x2
JZ 0x001f0c35
CMP ECX,0x1
JNZ 0x001f0cb4
CMP BPL,0xa
JNZ 0x001f0cb4
OR byte ptr [RBX + 0x10],0x1
MOV RAX,qword ptr [RBX + 0x8]
MOV RSI,RAX
AND RSI,-0x4
TEST AL,0x1
JNZ 0x001f0d1c
LAB_001f0c16:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0017887a
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RAX
MOV RDX,R14
CALL 0x0017cf2a
JMP 0x001f0ce4
LAB_001f0c35:
CMP BPL,0x10
JNZ 0x001f0cb4
OR R12D,0x4
MOVZX ESI,byte ptr [RAX]
LEA RCX,[RAX + 0x1]
TEST SIL,SIL
JNS 0x001f0c67
MOVZX ECX,byte ptr [RCX]
MOV EDX,ECX
SHL EDX,0x7
ADD ESI,EDX
ADD ESI,-0x80
TEST CL,CL
JS 0x001f0d0a
ADD RAX,0x2
MOV RCX,RAX
LAB_001f0c67:
MOV qword ptr [RSP + 0x8],RCX
MOV dword ptr [RBX + 0x28],ESI
JMP 0x001f0cee
LAB_001f0c71:
CMP BPL,0x1a
JNZ 0x001f0cb4
OR byte ptr [RBX + 0x10],0x2
MOV RSI,qword ptr [RBX + 0x20]
TEST RSI,RSI
JNZ 0x001f0ca7
MOV RAX,qword ptr [R15]
MOV RDI,RAX
AND RDI,-0x4
TEST AL,0x1
JNZ 0x001f0d36
LAB_001f0c96:
CALL 0x001fa94c
MOV RSI,RAX
MOV qword ptr [RBX + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x8]
LAB_001f0ca7:
MOV RDI,R14
MOV RDX,RAX
CALL 0x0012fce4
JMP 0x001f0ce4
LAB_001f0cb4:
TEST EBP,EBP
JZ 0x001f0d3e
MOV ECX,EBP
AND ECX,0x7
CMP ECX,0x4
JZ 0x001f0d3e
MOV RSI,qword ptr [R15]
TEST SIL,0x1
JZ 0x001f0d24
AND RSI,-0x4
ADD RSI,0x8
LAB_001f0cd7:
MOV EDI,EBP
MOV RDX,RAX
MOV RCX,R14
CALL 0x001a3709
LAB_001f0ce4:
MOV qword ptr [RSP + 0x8],RAX
LAB_001f0ce9:
TEST RAX,RAX
JZ 0x001f0d4e
LAB_001f0cee:
MOV EDX,dword ptr [R14 + 0x5c]
MOV RDI,R14
MOV RSI,R13
CALL 0x0017347e
TEST AL,AL
JZ 0x001f0ba0
JMP 0x001f0b73
LAB_001f0d0a:
MOV RDI,RAX
CALL 0x0017ce02
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RBX + 0x28],EDX
JMP 0x001f0ce9
LAB_001f0d1c:
MOV RSI,qword ptr [RSI]
JMP 0x001f0c16
LAB_001f0d24:
MOV RDI,R15
CALL 0x001735aa
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x8]
JMP 0x001f0cd7
LAB_001f0d36:
MOV RDI,qword ptr [RDI]
JMP 0x001f0c96
LAB_001f0d3e:
TEST RAX,RAX
JZ 0x001f0d4e
DEC EBP
MOV dword ptr [R14 + 0x50],EBP
JMP 0x001f0b73
LAB_001f0d4e:
MOV qword ptr [RSP + 0x8],0x0
JMP 0x001f0b73
|
/* google::protobuf::EnumValueDescriptorProto::_InternalParse(char const*,
google::protobuf::internal::ParseContext*) */
byte * __thiscall
google::protobuf::EnumValueDescriptorProto::_InternalParse
(EnumValueDescriptorProto *this,char *param_1,ParseContext *param_2)
{
InternalMetadata *this_00;
byte bVar1;
byte bVar2;
char cVar3;
string *psVar4;
byte *pbVar5;
MessageLite *pMVar6;
uint uVar7;
uint uVar8;
Arena *pAVar9;
UnknownFieldSet *pUVar10;
uint uVar11;
int1 auVar12 [12];
byte *local_40;
EnumValueDescriptorProto *local_38;
local_40 = (byte *)param_1;
cVar3 = internal::EpsCopyInputStream::DoneWithCheck
((EpsCopyInputStream *)param_2,(char **)&local_40,*(int *)(param_2 + 0x5c));
uVar11 = 0;
if (cVar3 == '\0') {
this_00 = (InternalMetadata *)(this + 8);
local_38 = this + 0x18;
uVar11 = 0;
do {
bVar1 = *local_40;
auVar12[8] = bVar1;
auVar12._0_8_ = local_40 + 1;
auVar12._9_3_ = 0;
if ((char)bVar1 < '\0') {
bVar2 = local_40[1];
uVar7 = ((uint)bVar1 + (uint)bVar2 * 0x80) - 0x80;
if ((char)bVar2 < '\0') {
auVar12 = internal::ReadTagFallback((char *)local_40,uVar7);
}
else {
auVar12._8_4_ = uVar7;
auVar12._0_8_ = local_40 + 2;
}
}
uVar8 = auVar12._8_4_;
local_40 = auVar12._0_8_;
uVar7 = uVar8 >> 3;
cVar3 = auVar12[8];
if (uVar7 == 3) {
if (cVar3 != '\x1a') goto LAB_001f0cb4;
this[0x10] = (EnumValueDescriptorProto)((byte)this[0x10] | 2);
pMVar6 = *(MessageLite **)(this + 0x20);
if (pMVar6 == (MessageLite *)0x0) {
pAVar9 = (Arena *)(*(ulong *)this_00 & 0xfffffffffffffffc);
if ((*(ulong *)this_00 & 1) != 0) {
pAVar9 = *(Arena **)pAVar9;
}
pMVar6 = (MessageLite *)
Arena::CreateMaybeMessage<google::protobuf::EnumValueOptions>(pAVar9);
*(MessageLite **)(this + 0x20) = pMVar6;
}
local_40 = (byte *)internal::ParseContext::ParseMessage(param_2,pMVar6,(char *)local_40);
LAB_001f0ce9:
if (local_40 == (byte *)0x0) {
LAB_001f0d4e:
local_40 = (byte *)0x0;
break;
}
}
else {
if (uVar7 != 2) {
if ((uVar7 == 1) && (cVar3 == '\n')) {
this[0x10] = (EnumValueDescriptorProto)((byte)this[0x10] | 1);
pAVar9 = (Arena *)(*(ulong *)(this + 8) & 0xfffffffffffffffc);
if ((*(ulong *)(this + 8) & 1) != 0) {
pAVar9 = *(Arena **)pAVar9;
}
psVar4 = (string *)
internal::ArenaStringPtr::Mutable_abi_cxx11_((ArenaStringPtr *)local_38,pAVar9)
;
local_40 = (byte *)internal::InlineGreedyStringParser(psVar4,(char *)local_40,param_2);
goto LAB_001f0ce9;
}
LAB_001f0cb4:
if ((uVar8 != 0) && ((uVar8 & 7) != 4)) {
if ((*(ulong *)this_00 & 1) == 0) {
pUVar10 = internal::InternalMetadata::
mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(this_00);
}
else {
pUVar10 = (UnknownFieldSet *)((*(ulong *)this_00 & 0xfffffffffffffffc) + 8);
}
local_40 = (byte *)internal::UnknownFieldParse
((ulong)uVar8,pUVar10,(char *)local_40,param_2);
goto LAB_001f0ce9;
}
if (local_40 == (byte *)0x0) goto LAB_001f0d4e;
*(uint *)(param_2 + 0x50) = uVar8 - 1;
break;
}
if (cVar3 != '\x10') goto LAB_001f0cb4;
uVar11 = 4;
bVar1 = *local_40;
uVar7 = (uint)bVar1;
pbVar5 = local_40 + 1;
if ((char)bVar1 < '\0') {
uVar7 = ((uint)bVar1 + (uint)*pbVar5 * 0x80) - 0x80;
if ((char)*pbVar5 < '\0') {
auVar12 = internal::VarintParseSlow32((char *)local_40,uVar7);
local_40 = auVar12._0_8_;
*(int *)(this + 0x28) = auVar12._8_4_;
goto LAB_001f0ce9;
}
pbVar5 = local_40 + 2;
}
*(uint *)(this + 0x28) = uVar7;
local_40 = pbVar5;
}
cVar3 = internal::EpsCopyInputStream::DoneWithCheck
((EpsCopyInputStream *)param_2,(char **)&local_40,*(int *)(param_2 + 0x5c));
} while (cVar3 == '\0');
}
*(uint *)(this + 0x10) = *(uint *)(this + 0x10) | uVar11;
return local_40;
}
| |
24,690 | copy_uca_collation | eloqsql/mysys/charset.c | static void
copy_uca_collation(struct charset_info_st *to, CHARSET_INFO *from,
CHARSET_INFO *loaded)
{
to->cset= from->cset;
to->coll= from->coll;
/*
Single-level UCA collation have strnxfrm_multiple=8.
In case of a multi-level UCA collation we use strnxfrm_multiply=4.
That means MY_COLLATION_HANDLER::strnfrmlen() will request the caller
to allocate a buffer smaller size for each level, for performance purpose,
and to fit longer VARCHARs to @@max_sort_length.
This makes filesort produce non-precise order for some rare Unicode
characters that produce more than 4 weights (long expansions).
UCA requires 2 bytes per weight multiplied by the number of levels.
In case of a 2-level collation, each character requires 4*2=8 bytes.
Therefore, the longest VARCHAR that fits into the default @@max_sort_length
is 1024/8=VARCHAR(128). With strnxfrm_multiply==8, only VARCHAR(64)
would fit.
Note, the built-in collation utf8_thai_520_w2 also uses strnxfrm_multiply=4,
for the same purpose.
TODO: we could add a new LDML syntax to choose strxfrm_multiply value.
*/
to->strxfrm_multiply= loaded->levels_for_order > 1 ?
4 : from->strxfrm_multiply;
to->min_sort_char= from->min_sort_char;
to->max_sort_char= from->max_sort_char;
to->mbminlen= from->mbminlen;
to->mbmaxlen= from->mbmaxlen;
to->caseup_multiply= from->caseup_multiply;
to->casedn_multiply= from->casedn_multiply;
to->state|= MY_CS_AVAILABLE | MY_CS_LOADED |
MY_CS_STRNXFRM | MY_CS_UNICODE;
} | O0 | c | copy_uca_collation:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x10(%rbp), %rax
movq 0xc0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x18(%rbp), %rax
movzbl 0xb2(%rax), %eax
cmpl $0x1, %eax
jle 0xdc966
movl $0x4, %eax
movl %eax, -0x1c(%rbp)
jmp 0xdc973
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa8(%rax)
movq -0x10(%rbp), %rax
movl 0x98(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x98(%rax)
movq -0x10(%rbp), %rax
movl 0x9c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x9c(%rax)
movq -0x10(%rbp), %rax
movb 0x94(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x94(%rax)
movq -0x10(%rbp), %rax
movb 0x95(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x95(%rax)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x2c8, %ecx # imm = 0x2C8
movl %ecx, 0xc(%rax)
popq %rbp
retq
nop
| copy_uca_collation:
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 rcx, [rax+0B8h]
mov rax, [rbp+var_8]
mov [rax+0B8h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0C0h]
mov rax, [rbp+var_8]
mov [rax+0C0h], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+0B2h]
cmp eax, 1
jle short loc_DC966
mov eax, 4
mov [rbp+var_1C], eax
jmp short loc_DC973
loc_DC966:
mov rax, [rbp+var_10]
mov eax, [rax+90h]
mov [rbp+var_1C], eax
loc_DC973:
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_8]
mov [rax+90h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+0A0h]
mov rax, [rbp+var_8]
mov [rax+0A0h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0A8h]
mov rax, [rbp+var_8]
mov [rax+0A8h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+98h]
mov rax, [rbp+var_8]
mov [rax+98h], ecx
mov rax, [rbp+var_10]
mov ecx, [rax+9Ch]
mov rax, [rbp+var_8]
mov [rax+9Ch], ecx
mov rax, [rbp+var_10]
mov cl, [rax+94h]
mov rax, [rbp+var_8]
mov [rax+94h], cl
mov rax, [rbp+var_10]
mov cl, [rax+95h]
mov rax, [rbp+var_8]
mov [rax+95h], cl
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 2C8h
mov [rax+0Ch], ecx
pop rbp
retn
| long long copy_uca_collation(long long a1, long long a2, long long a3)
{
long long result; // rax
int v4; // [rsp+0h] [rbp-1Ch]
*(_QWORD *)(a1 + 184) = *(_QWORD *)(a2 + 184);
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a2 + 192);
if ( *(unsigned __int8 *)(a3 + 178) <= 1u )
v4 = *(_DWORD *)(a2 + 144);
else
v4 = 4;
*(_DWORD *)(a1 + 144) = v4;
*(_QWORD *)(a1 + 160) = *(_QWORD *)(a2 + 160);
*(_QWORD *)(a1 + 168) = *(_QWORD *)(a2 + 168);
*(_DWORD *)(a1 + 152) = *(_DWORD *)(a2 + 152);
*(_DWORD *)(a1 + 156) = *(_DWORD *)(a2 + 156);
*(_BYTE *)(a1 + 148) = *(_BYTE *)(a2 + 148);
*(_BYTE *)(a1 + 149) = *(_BYTE *)(a2 + 149);
result = a1;
*(_DWORD *)(a1 + 12) |= 0x2C8u;
return result;
}
| copy_uca_collation:
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 RCX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xc0],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0xb2]
CMP EAX,0x1
JLE 0x001dc966
MOV EAX,0x4
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001dc973
LAB_001dc966:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x1c],EAX
LAB_001dc973:
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x90],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa0]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x98]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x98],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x9c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x9c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX + 0x94]
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x94],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX + 0x95]
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x95],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x2c8
MOV dword ptr [RAX + 0xc],ECX
POP RBP
RET
|
void copy_uca_collation(long param_1,long param_2,long param_3)
{
int4 local_24;
*(int8 *)(param_1 + 0xb8) = *(int8 *)(param_2 + 0xb8);
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_2 + 0xc0);
if (*(byte *)(param_3 + 0xb2) < 2) {
local_24 = *(int4 *)(param_2 + 0x90);
}
else {
local_24 = 4;
}
*(int4 *)(param_1 + 0x90) = local_24;
*(int8 *)(param_1 + 0xa0) = *(int8 *)(param_2 + 0xa0);
*(int8 *)(param_1 + 0xa8) = *(int8 *)(param_2 + 0xa8);
*(int4 *)(param_1 + 0x98) = *(int4 *)(param_2 + 0x98);
*(int4 *)(param_1 + 0x9c) = *(int4 *)(param_2 + 0x9c);
*(int1 *)(param_1 + 0x94) = *(int1 *)(param_2 + 0x94);
*(int1 *)(param_1 + 0x95) = *(int1 *)(param_2 + 0x95);
*(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | 0x2c8;
return;
}
| |
24,691 | main | dmazzella[P]pylunasvg/lunasvg/examples/svg2png.cpp | int main(int argc, char* argv[])
{
std::string filename;
std::uint32_t width = 0, height = 0;
std::uint32_t bgColor = 0x00000000;
if(!setup(argc, argv, filename, width, height, bgColor)) {
return help();
}
auto document = Document::loadFromFile(filename);
if(document == nullptr) {
return help();
}
auto bitmap = document->renderToBitmap(width, height, bgColor);
if(bitmap.isNull()) {
return help();
}
auto lastSlashIndex = filename.find_last_of("/\\");
auto basename = lastSlashIndex == std::string::npos ? filename : filename.substr(lastSlashIndex + 1);
basename.append(".png");
bitmap.writeToPng(basename);
std::cout << "Generated PNG file: " << basename << std::endl;
return 0;
} | O0 | cpp | main:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0xb520
movq -0x98(%rbp), %rdx
movl $0x0, -0x34(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x34(%rbp), %rcx
leaq -0x38(%rbp), %r8
leaq -0x3c(%rbp), %r9
callq 0xb980
movb %al, -0x89(%rbp)
jmp 0xbbe5
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0xbc24
jmp 0xbbf1
callq 0xb960
movl %eax, -0x9c(%rbp)
jmp 0xbbfe
movl -0x9c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
jmp 0xbe18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbe2d
leaq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xdcf0
jmp 0xbc33
leaq -0x58(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xbe70
testb $0x1, %al
jne 0xbc46
jmp 0xbc79
callq 0xb960
movl %eax, -0xa0(%rbp)
jmp 0xbc53
movl -0xa0(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
jmp 0xbe02
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbe0d
leaq -0x58(%rbp), %rdi
callq 0xbea0
movq %rax, %rsi
movl -0x34(%rbp), %edx
movl -0x38(%rbp), %ecx
movl -0x3c(%rbp), %r8d
leaq -0x60(%rbp), %rdi
callq 0xe270
jmp 0xbc9a
leaq -0x60(%rbp), %rdi
callq 0xbec0
movb %al, -0xa1(%rbp)
jmp 0xbcab
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0xbcb7
jmp 0xbcea
callq 0xb960
movl %eax, -0xa8(%rbp)
jmp 0xbcc4
movl -0xa8(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
jmp 0xbdec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbdf7
leaq -0x30(%rbp), %rdi
leaq 0x803b5(%rip), %rsi # 0x8c0aa
movq $-0x1, %rdx
callq 0xb340
movq %rax, -0x68(%rbp)
cmpq $-0x1, -0x68(%rbp)
jne 0xbd20
leaq -0x88(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xb170
jmp 0xbd1e
jmp 0xbd42
movq -0x68(%rbp), %rdx
incq %rdx
leaq -0x88(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq $-0x1, %rcx
callq 0xb390
jmp 0xbd40
jmp 0xbd42
leaq 0x80364(%rip), %rsi # 0x8c0ad
leaq -0x88(%rbp), %rdi
callq 0xb740
jmp 0xbd57
leaq -0x60(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xc990
jmp 0xbd69
movq 0xb9268(%rip), %rdi # 0xc4fd8
leaq 0x8033b(%rip), %rsi # 0x8c0b2
callq 0xb350
movq %rax, -0xb0(%rbp)
jmp 0xbd85
movq -0xb0(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xb330
movq %rax, -0xb8(%rbp)
jmp 0xbda1
movq -0xb8(%rbp), %rdi
movq 0xb91f9(%rip), %rsi # 0xc4fa8
callq 0xb3b0
jmp 0xbdb6
movl $0x0, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xb7a8
jmp 0xbdec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xb7a8
jmp 0xbdf7
leaq -0x60(%rbp), %rdi
callq 0xc6a0
jmp 0xbe02
leaq -0x60(%rbp), %rdi
callq 0xc6a0
jmp 0xbe0d
leaq -0x58(%rbp), %rdi
callq 0xbee0
jmp 0xbe18
leaq -0x58(%rbp), %rdi
callq 0xbee0
jmp 0xbe2d
leaq -0x30(%rbp), %rdi
callq 0xb7a8
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0xb7a8
movq -0x48(%rbp), %rdi
callq 0xb6c0
nop
| main:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_4], 0
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_30]
mov [rbp+var_98], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdx, [rbp+var_98]
mov [rbp+var_34], 0
mov [rbp+var_38], 0
mov [rbp+var_3C], 0
mov edi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rcx, [rbp+var_34]
lea r8, [rbp+var_38]
lea r9, [rbp+var_3C]
call _Z5setupiPPcRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERjS8_S8_; setup(int,char **,std::string &,uint &,uint &,uint &)
mov [rbp+var_89], al
jmp short $+2
loc_BBE5:
mov al, [rbp+var_89]
test al, 1
jnz short loc_BC24
jmp short $+2
loc_BBF1:
call _Z4helpv; help(void)
mov [rbp+var_9C], eax
jmp short $+2
loc_BBFE:
mov eax, [rbp+var_9C]
mov [rbp+var_4], eax
mov [rbp+var_50], 1
jmp loc_BE18
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
jmp loc_BE2D
loc_BC24:
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_30]
call _ZN7lunasvg8Document12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Document::loadFromFile(std::string const&)
jmp short $+2
loc_BC33:
lea rdi, [rbp+var_58]
xor eax, eax
mov esi, eax
call _ZSteqIN7lunasvg8DocumentESt14default_deleteIS1_EEbRKSt10unique_ptrIT_T0_EDn; std::operator==<lunasvg::Document,std::default_delete<lunasvg::Document>>(std::unique_ptr<lunasvg::Document> const&,decltype(nullptr))
test al, 1
jnz short loc_BC46
jmp short loc_BC79
loc_BC46:
call _Z4helpv; help(void)
mov [rbp+var_A0], eax
jmp short $+2
loc_BC53:
mov eax, [rbp+var_A0]
mov [rbp+var_4], eax
mov [rbp+var_50], 1
jmp loc_BE02
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
jmp loc_BE0D
loc_BC79:
lea rdi, [rbp+var_58]
call _ZNKSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EEptEv; std::unique_ptr<lunasvg::Document>::operator->(void)
mov rsi, rax; int
mov edx, [rbp+var_34]; int
mov ecx, [rbp+var_38]; unsigned int
mov r8d, [rbp+var_3C]
lea rdi, [rbp+var_60]; this
call _ZNK7lunasvg8Document14renderToBitmapEiij; lunasvg::Document::renderToBitmap(int,int,uint)
jmp short $+2
loc_BC9A:
lea rdi, [rbp+var_60]; this
call _ZNK7lunasvg6Bitmap6isNullEv; lunasvg::Bitmap::isNull(void)
mov [rbp+var_A1], al
jmp short $+2
loc_BCAB:
mov al, [rbp+var_A1]
test al, 1
jnz short loc_BCB7
jmp short loc_BCEA
loc_BCB7:
call _Z4helpv; help(void)
mov [rbp+var_A8], eax
jmp short $+2
loc_BCC4:
mov eax, [rbp+var_A8]
mov [rbp+var_4], eax
mov [rbp+var_50], 1
jmp loc_BDEC
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
jmp loc_BDF7
loc_BCEA:
lea rdi, [rbp+var_30]
lea rsi, asc_8C0AA; "/\\"
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcm; std::string::find_last_of(char const*,ulong)
mov [rbp+var_68], rax
cmp [rbp+var_68], 0FFFFFFFFFFFFFFFFh
jnz short loc_BD20
lea rdi, [rbp+var_88]
lea rsi, [rbp+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_BD1E:
jmp short loc_BD42
loc_BD20:
mov rdx, [rbp+var_68]
inc rdx
lea rdi, [rbp+var_88]
lea rsi, [rbp+var_30]
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short $+2
loc_BD40:
jmp short $+2
loc_BD42:
lea rsi, aPng; ".png"
lea rdi, [rbp+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_BD57:
lea rdi, [rbp+var_60]
lea rsi, [rbp+var_88]
call _ZNK7lunasvg6Bitmap10writeToPngERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Bitmap::writeToPng(std::string const&)
jmp short $+2
loc_BD69:
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aGeneratedPngFi; "Generated PNG file: "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_B0], rax
jmp short $+2
loc_BD85:
mov rdi, [rbp+var_B0]
lea rsi, [rbp+var_88]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rbp+var_B8], rax
jmp short $+2
loc_BDA1:
mov rdi, [rbp+var_B8]
mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr
call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &))
jmp short $+2
loc_BDB6:
mov [rbp+var_4], 0
mov [rbp+var_50], 1
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_BDEC
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_BDF7
loc_BDEC:
lea rdi, [rbp+var_60]; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
jmp short loc_BE02
loc_BDF7:
lea rdi, [rbp+var_60]; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
jmp short loc_BE0D
loc_BE02:
lea rdi, [rbp+var_58]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
jmp short loc_BE18
loc_BE0D:
lea rdi, [rbp+var_58]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
jmp short loc_BE2D
loc_BE18:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov eax, [rbp+var_4]
add rsp, 0C0h
pop rbp
retn
loc_BE2D:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_48]
call __Unwind_Resume
| int main(int argc, const char **argv, const char **envp)
{
int v3; // esi
long long v5; // [rsp+8h] [rbp-B8h]
long long v6; // [rsp+10h] [rbp-B0h]
_BYTE v7[32]; // [rsp+38h] [rbp-88h] BYREF
long long last_of; // [rsp+58h] [rbp-68h]
_BYTE v9[8]; // [rsp+60h] [rbp-60h] BYREF
_BYTE v10[8]; // [rsp+68h] [rbp-58h] BYREF
int v11; // [rsp+70h] [rbp-50h]
int v12; // [rsp+84h] [rbp-3Ch] BYREF
unsigned int v13; // [rsp+88h] [rbp-38h] BYREF
int v14; // [rsp+8Ch] [rbp-34h] BYREF
_BYTE v15[32]; // [rsp+90h] [rbp-30h] BYREF
const char **v16; // [rsp+B0h] [rbp-10h]
int v17; // [rsp+B8h] [rbp-8h]
int v18; // [rsp+BCh] [rbp-4h]
v18 = 0;
v17 = argc;
v16 = argv;
std::string::basic_string(v15);
v14 = 0;
v13 = 0;
v12 = 0;
if ( setup(v17, v16, (long long)v15, (long long)&v14, (long long)&v13, (long long)&v12) )
{
lunasvg::Document::loadFromFile(v10, v15);
if ( (std::operator==<lunasvg::Document,std::default_delete<lunasvg::Document>>(v10, 0LL) & 1) != 0 )
{
v18 = help();
v11 = 1;
}
else
{
v3 = std::unique_ptr<lunasvg::Document>::operator->(v10);
lunasvg::Document::renderToBitmap((lunasvg::Document *)v9, v3, v14, v13);
if ( (lunasvg::Bitmap::isNull((lunasvg::Bitmap *)v9) & 1) != 0 )
{
v18 = help();
v11 = 1;
}
else
{
last_of = std::string::find_last_of(v15, "/\\", -1LL);
if ( last_of == -1 )
std::string::basic_string(v7, v15);
else
std::string::substr(v7, v15, last_of + 1, -1LL);
std::string::append(v7, ".png");
lunasvg::Bitmap::writeToPng(v9, v7);
v6 = std::operator<<<std::char_traits<char>>(&std::cout, "Generated PNG file: ");
v5 = std::operator<<<char>(v6, v7);
std::ostream::operator<<(v5, &std::endl<char,std::char_traits<char>>);
v18 = 0;
v11 = 1;
std::string::~string(v7);
}
lunasvg::Bitmap::~Bitmap((lunasvg::Bitmap *)v9);
}
std::unique_ptr<lunasvg::Document>::~unique_ptr(v10);
}
else
{
v18 = help();
v11 = 1;
}
std::string::~string(v15);
return v18;
}
| main:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV dword ptr [RBP + -0x4],0x0
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x30]
MOV qword ptr [RBP + -0x98],RDI
CALL 0x0010b520
MOV RDX,qword ptr [RBP + -0x98]
MOV dword ptr [RBP + -0x34],0x0
MOV dword ptr [RBP + -0x38],0x0
MOV dword ptr [RBP + -0x3c],0x0
MOV EDI,dword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LAB_0010bbcc:
LEA RCX,[RBP + -0x34]
LEA R8,[RBP + -0x38]
LEA R9,[RBP + -0x3c]
CALL 0x0010b980
MOV byte ptr [RBP + -0x89],AL
JMP 0x0010bbe5
LAB_0010bbe5:
MOV AL,byte ptr [RBP + -0x89]
TEST AL,0x1
JNZ 0x0010bc24
JMP 0x0010bbf1
LAB_0010bbf1:
CALL 0x0010b960
MOV dword ptr [RBP + -0x9c],EAX
JMP 0x0010bbfe
LAB_0010bbfe:
MOV EAX,dword ptr [RBP + -0x9c]
MOV dword ptr [RBP + -0x4],EAX
MOV dword ptr [RBP + -0x50],0x1
JMP 0x0010be18
LAB_0010bc24:
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x30]
CALL 0x0010dcf0
JMP 0x0010bc33
LAB_0010bc33:
LEA RDI,[RBP + -0x58]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0010be70
TEST AL,0x1
JNZ 0x0010bc46
JMP 0x0010bc79
LAB_0010bc46:
CALL 0x0010b960
MOV dword ptr [RBP + -0xa0],EAX
JMP 0x0010bc53
LAB_0010bc53:
MOV EAX,dword ptr [RBP + -0xa0]
MOV dword ptr [RBP + -0x4],EAX
MOV dword ptr [RBP + -0x50],0x1
JMP 0x0010be02
LAB_0010bc79:
LEA RDI,[RBP + -0x58]
CALL 0x0010bea0
MOV RSI,RAX
MOV EDX,dword ptr [RBP + -0x34]
MOV ECX,dword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x3c]
LEA RDI,[RBP + -0x60]
CALL 0x0010e270
JMP 0x0010bc9a
LAB_0010bc9a:
LEA RDI,[RBP + -0x60]
CALL 0x0010bec0
MOV byte ptr [RBP + -0xa1],AL
JMP 0x0010bcab
LAB_0010bcab:
MOV AL,byte ptr [RBP + -0xa1]
TEST AL,0x1
JNZ 0x0010bcb7
JMP 0x0010bcea
LAB_0010bcb7:
CALL 0x0010b960
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x0010bcc4
LAB_0010bcc4:
MOV EAX,dword ptr [RBP + -0xa8]
MOV dword ptr [RBP + -0x4],EAX
MOV dword ptr [RBP + -0x50],0x1
JMP 0x0010bdec
LAB_0010bcea:
LEA RDI,[RBP + -0x30]
LEA RSI,[0x18c0aa]
MOV RDX,-0x1
CALL 0x0010b340
MOV qword ptr [RBP + -0x68],RAX
CMP qword ptr [RBP + -0x68],-0x1
JNZ 0x0010bd20
LEA RDI,[RBP + -0x88]
LEA RSI,[RBP + -0x30]
CALL 0x0010b170
JMP 0x0010bd1e
LAB_0010bd1e:
JMP 0x0010bd42
LAB_0010bd20:
MOV RDX,qword ptr [RBP + -0x68]
INC RDX
LEA RDI,[RBP + -0x88]
LEA RSI,[RBP + -0x30]
MOV RCX,-0x1
CALL 0x0010b390
JMP 0x0010bd40
LAB_0010bd40:
JMP 0x0010bd42
LAB_0010bd42:
LEA RSI,[0x18c0ad]
LEA RDI,[RBP + -0x88]
CALL 0x0010b740
JMP 0x0010bd57
LAB_0010bd57:
LEA RDI,[RBP + -0x60]
LEA RSI,[RBP + -0x88]
CALL 0x0010c990
JMP 0x0010bd69
LAB_0010bd69:
MOV RDI,qword ptr [0x001c4fd8]
LEA RSI,[0x18c0b2]
CALL 0x0010b350
MOV qword ptr [RBP + -0xb0],RAX
JMP 0x0010bd85
LAB_0010bd85:
MOV RDI,qword ptr [RBP + -0xb0]
LEA RSI,[RBP + -0x88]
CALL 0x0010b330
MOV qword ptr [RBP + -0xb8],RAX
JMP 0x0010bda1
LAB_0010bda1:
MOV RDI,qword ptr [RBP + -0xb8]
MOV RSI,qword ptr [0x001c4fa8]
CALL 0x0010b3b0
LAB_0010bdb4:
JMP 0x0010bdb6
LAB_0010bdb6:
MOV dword ptr [RBP + -0x4],0x0
MOV dword ptr [RBP + -0x50],0x1
LEA RDI,[RBP + -0x88]
CALL 0x0010b7a8
JMP 0x0010bdec
LAB_0010bdec:
LEA RDI,[RBP + -0x60]
CALL 0x0010c6a0
JMP 0x0010be02
LAB_0010be02:
LEA RDI,[RBP + -0x58]
CALL 0x0010bee0
JMP 0x0010be18
LAB_0010be18:
LEA RDI,[RBP + -0x30]
CALL 0x0010b7a8
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xc0
POP RBP
RET
|
int4 main(int param_1,char **param_2)
{
byte bVar1;
bool bVar2;
int iVar3;
ostream *poVar4;
string local_90 [32];
long local_70;
Bitmap local_68 [8];
Document local_60 [8];
int4 local_58;
uint local_44 [3];
string local_38 [32];
char **local_18;
int local_10;
int4 local_c;
local_c = 0;
local_18 = param_2;
local_10 = param_1;
std::__cxx11::string::string(local_38);
local_44[2] = 0;
local_44[1] = 0;
local_44[0] = 0;
/* try { // try from 0010bbcc to 0010bc30 has its CatchHandler @ 0010bc13 */
bVar1 = setup(local_10,local_18,local_38,local_44 + 2,local_44 + 1,local_44);
if ((bVar1 & 1) == 0) {
local_c = help();
local_58 = 1;
}
else {
lunasvg::Document::loadFromFile(local_60,local_38);
bVar2 = std::operator==((unique_ptr *)local_60,(_func_decltype_nullptr *)0x0);
if (bVar2) {
/* try { // try from 0010bc46 to 0010bc97 has its CatchHandler @ 0010bc68 */
local_c = help();
local_58 = 1;
}
else {
iVar3 = std::unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>>::operator->
((unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>> *)
local_60);
lunasvg::Document::renderToBitmap((int)local_68,iVar3,local_44[2]);
/* try { // try from 0010bc9a to 0010bd3d has its CatchHandler @ 0010bcd9 */
bVar1 = lunasvg::Bitmap::isNull(local_68);
if ((bVar1 & 1) == 0) {
local_70 = std::__cxx11::string::find_last_of((char *)local_38,0x18c0aa);
if (local_70 == -1) {
std::__cxx11::string::string(local_90,local_38);
}
else {
std::__cxx11::string::substr((ulong)local_90,(ulong)local_38);
}
/* try { // try from 0010bd42 to 0010bdb3 has its CatchHandler @ 0010bdd2 */
std::__cxx11::string::append((char *)local_90);
lunasvg::Bitmap::writeToPng((string *)local_68);
poVar4 = std::operator<<((ostream *)PTR_cout_001c4fd8,"Generated PNG file: ");
poVar4 = std::operator<<(poVar4,local_90);
std::ostream::operator<<
(poVar4,(_func_ostream_ptr_ostream_ptr *)
PTR_endl<char,std_char_traits<char>>_001c4fa8);
local_c = 0;
local_58 = 1;
std::__cxx11::string::~string(local_90);
}
else {
local_c = help();
local_58 = 1;
}
lunasvg::Bitmap::~Bitmap(local_68);
}
std::unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>>::~unique_ptr
((unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>> *)local_60);
}
std::__cxx11::string::~string(local_38);
return local_c;
}
| |
24,692 | main | dmazzella[P]pylunasvg/lunasvg/examples/svg2png.cpp | int main(int argc, char* argv[])
{
std::string filename;
std::uint32_t width = 0, height = 0;
std::uint32_t bgColor = 0x00000000;
if(!setup(argc, argv, filename, width, height, bgColor)) {
return help();
}
auto document = Document::loadFromFile(filename);
if(document == nullptr) {
return help();
}
auto bitmap = document->renderToBitmap(width, height, bgColor);
if(bitmap.isNull()) {
return help();
}
auto lastSlashIndex = filename.find_last_of("/\\");
auto basename = lastSlashIndex == std::string::npos ? filename : filename.substr(lastSlashIndex + 1);
basename.append(".png");
bitmap.writeToPng(basename);
std::cout << "Generated PNG file: " << basename << std::endl;
return 0;
} | O1 | cpp | main:
pushq %r14
pushq %rbx
subq $0x68, %rsp
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
xorl %eax, %eax
leaq 0x24(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x20(%rsp), %r8
movl %eax, (%r8)
leaq 0x1c(%rsp), %r9
movl %eax, (%r9)
leaq 0x48(%rsp), %rdx
callq 0xaa0c
testb %al, %al
je 0xacff
leaq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xbeb8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0xad21
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %ecx
movl 0x1c(%rsp), %r8d
leaq 0x8(%rsp), %rdi
callq 0xc206
cmpq $0x0, 0x8(%rsp)
je 0xad43
leaq 0x383ec(%rip), %rsi # 0x430aa
leaq 0x48(%rsp), %rdi
movl $0x2, %ecx
movq $-0x1, %rdx
callq 0xa630
cmpq $-0x1, %rax
je 0xad65
incq %rax
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0xa340
jmp 0xad85
movl $0x1, %ebx
movq 0x512c5(%rip), %rdi # 0x5bfd0
leaq 0x382f2(%rip), %rsi # 0x43004
movl $0xa5, %edx
callq 0xa3a0
jmp 0xae2e
movl $0x1, %ebx
movq 0x512a3(%rip), %rdi # 0x5bfd0
leaq 0x382d0(%rip), %rsi # 0x43004
movl $0xa5, %edx
callq 0xa3a0
jmp 0xae24
movl $0x1, %ebx
movq 0x51281(%rip), %rdi # 0x5bfd0
leaq 0x382ae(%rip), %rsi # 0x43004
movl $0xa5, %edx
callq 0xa3a0
jmp 0xae1a
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xaeea
leaq 0x38321(%rip), %rsi # 0x430ad
leaq 0x28(%rsp), %rdi
callq 0xa610
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xb2d2
movq 0x51224(%rip), %rdi # 0x5bfd0
leaq 0x382ff(%rip), %rsi # 0x430b2
movl $0x14, %edx
callq 0xa3a0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x51202(%rip), %rdi # 0x5bfd0
callq 0xa3a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xa2f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa220
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xae18
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa320
xorl %ebx, %ebx
leaq 0x8(%rsp), %rdi
callq 0xb17c
leaq 0x10(%rsp), %rdi
callq 0xaeb6
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xae45
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa320
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
jmp 0xae53
jmp 0xae58
movq %rax, %rbx
jmp 0xae7d
movq %rax, %rbx
jmp 0xae87
jmp 0xae93
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xae7d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa320
leaq 0x8(%rsp), %rdi
callq 0xb17c
leaq 0x10(%rsp), %rdi
callq 0xaeb6
jmp 0xae96
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xaead
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa320
movq %rbx, %rdi
callq 0xa5c0
nop
| main:
push r14
push rbx
sub rsp, 68h
lea r14, [rsp+78h+var_20]
mov [r14-10h], r14
mov qword ptr [r14-8], 0
mov byte ptr [r14], 0
xor eax, eax
lea rcx, [rsp+78h+var_54]
mov [rcx], eax
lea r8, [rsp+78h+var_58]
mov [r8], eax
lea r9, [rsp+78h+var_5C]
mov [r9], eax
lea rdx, [rsp+78h+var_30]
call _Z5setupiPPcRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERjS8_S8_; setup(int,char **,std::string &,uint &,uint &,uint &)
test al, al
jz loc_ACFF
lea rdi, [rsp+78h+var_68]; int
lea rsi, [rsp+78h+var_30]; int
call _ZN7lunasvg8Document12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Document::loadFromFile(std::string const&)
mov rsi, [rsp+78h+var_68]; lunasvg::Document *
test rsi, rsi
jz loc_AD21
mov edx, [rsp+78h+var_54]; int
mov ecx, [rsp+78h+var_58]; unsigned int
mov r8d, [rsp+78h+var_5C]
lea rdi, [rsp+78h+var_70]; this
call _ZNK7lunasvg8Document14renderToBitmapEiij; lunasvg::Document::renderToBitmap(int,int,uint)
cmp [rsp+78h+var_70], 0
jz loc_AD43
lea rsi, asc_430AA; "/\\"
lea rdi, [rsp+78h+var_30]
mov ecx, 2
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm; std::string::find_last_of(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_AD65
inc rax
lea rdi, [rsp+78h+var_50]
lea rsi, [rsp+78h+var_30]
mov rdx, rax
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp loc_AD85
loc_ACFF:
mov ebx, 1
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aUsageSvg2pngFi; "Usage: \n svg2png [filename] [resolut"...
mov edx, 0A5h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp loc_AE2E
loc_AD21:
mov ebx, 1
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aUsageSvg2pngFi; "Usage: \n svg2png [filename] [resolut"...
mov edx, 0A5h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp loc_AE24
loc_AD43:
mov ebx, 1
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aUsageSvg2pngFi; "Usage: \n svg2png [filename] [resolut"...
mov edx, 0A5h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp loc_AE1A
loc_AD65:
lea rax, [rsp+78h+var_40]
mov [rax-10h], rax
mov rsi, [rsp+78h+var_30]
mov rdx, [rsp+78h+var_28]
add rdx, rsi
lea rdi, [rsp+78h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_AD85:
lea rsi, aPng; ".png"
lea rdi, [rsp+78h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+78h+var_70]
lea rsi, [rsp+78h+var_50]
call _ZNK7lunasvg6Bitmap10writeToPngERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Bitmap::writeToPng(std::string const&)
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aGeneratedPngFi; "Generated PNG file: "
mov edx, 14h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [rsp+78h+var_50]
mov rdx, [rsp+78h+var_48]
mov rdi, cs:_ZSt4cout_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
mov rax, [rax]
mov rdi, [rax-18h]
add rdi, rbx
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, rbx; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AE18
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE18:
xor ebx, ebx
loc_AE1A:
lea rdi, [rsp+78h+var_70]; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
loc_AE24:
lea rdi, [rsp+78h+var_68]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
loc_AE2E:
mov rdi, [rsp+78h+var_30]; void *
cmp rdi, r14
jz short loc_AE45
mov rsi, [rsp+78h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE45:
mov eax, ebx
add rsp, 68h
pop rbx
pop r14
retn
jmp short loc_AE53
jmp short loc_AE58
loc_AE53:
mov rbx, rax
jmp short loc_AE7D
loc_AE58:
mov rbx, rax
jmp short loc_AE87
jmp short loc_AE93
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AE7D
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE7D:
lea rdi, [rsp+arg_0]; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
loc_AE87:
lea rdi, [rsp+arg_8]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
jmp short loc_AE96
loc_AE93:
mov rbx, rax
loc_AE96:
mov rdi, [rsp+arg_40]; void *
cmp rdi, r14
jz short loc_AEAD
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AEAD:
mov rdi, rbx
call __Unwind_Resume
| int main(int argc, const char **argv, const char **envp)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long last_of; // rax
int v8; // ebx
std::ostream *v9; // rbx
char v10; // al
std::ostream *v11; // rax
void *v13; // [rsp+0h] [rbp-78h]
long long v14; // [rsp+8h] [rbp-70h] BYREF
lunasvg::Document *v15; // [rsp+10h] [rbp-68h] BYREF
int v16; // [rsp+18h] [rbp-60h]
int v17; // [rsp+1Ch] [rbp-5Ch] BYREF
unsigned int v18; // [rsp+20h] [rbp-58h] BYREF
int v19; // [rsp+24h] [rbp-54h] BYREF
void *v20[2]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v21[2]; // [rsp+38h] [rbp-40h] BYREF
void *v22; // [rsp+48h] [rbp-30h] BYREF
long long v23; // [rsp+50h] [rbp-28h]
_QWORD v24[4]; // [rsp+58h] [rbp-20h] BYREF
v22 = v24;
v23 = 0LL;
LOBYTE(v24[0]) = 0;
v19 = 0;
v18 = 0;
v17 = 0;
if ( (unsigned __int8)setup(argc, (long long)argv, (long long)&v22, (long long)&v19, (long long)&v18, (long long)&v17) )
{
lunasvg::Document::loadFromFile((int)&v15, (int)&v22, v3, v4, v5, v6, v13, v14, (long long)v15, v16, v18);
if ( v15 )
{
lunasvg::Document::renderToBitmap((lunasvg::Document *)&v14, v15, v19, v18);
if ( v14 )
{
last_of = std::string::find_last_of(&v22, "/\\", -1LL, 2LL);
if ( last_of == -1 )
{
v20[0] = v21;
std::string::_M_construct<char *>(v20, v22, (char *)v22 + v23);
}
else
{
std::string::substr(v20, &v22, last_of + 1, -1LL);
}
std::string::append(v20, ".png");
lunasvg::Bitmap::writeToPng(&v14, v20);
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, "Generated PNG file: ", 20LL);
v9 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(&std::cout, v20[0], v20[1]);
v10 = std::ios::widen((char *)v9 + *(_QWORD *)(*(_QWORD *)v9 - 24LL), 10LL);
v11 = (std::ostream *)std::ostream::put(v9, v10);
std::ostream::flush(v11);
if ( v20[0] != v21 )
operator delete(v20[0], v21[0] + 1LL);
v8 = 0;
}
else
{
v8 = 1;
std::__ostream_insert<char,std::char_traits<char>>(
&std::cout,
"Usage: \n"
" svg2png [filename] [resolution] [bgColor]\n"
"\n"
"Examples: \n"
" $ svg2png input.svg\n"
" $ svg2png input.svg 512x512\n"
" $ svg2png input.svg 512x512 0xff00ffff\n"
"\n",
165LL);
}
lunasvg::Bitmap::~Bitmap((lunasvg::Bitmap *)&v14);
}
else
{
v8 = 1;
std::__ostream_insert<char,std::char_traits<char>>(
&std::cout,
"Usage: \n"
" svg2png [filename] [resolution] [bgColor]\n"
"\n"
"Examples: \n"
" $ svg2png input.svg\n"
" $ svg2png input.svg 512x512\n"
" $ svg2png input.svg 512x512 0xff00ffff\n"
"\n",
165LL);
}
std::unique_ptr<lunasvg::Document>::~unique_ptr(&v15);
}
else
{
v8 = 1;
std::__ostream_insert<char,std::char_traits<char>>(
&std::cout,
"Usage: \n"
" svg2png [filename] [resolution] [bgColor]\n"
"\n"
"Examples: \n"
" $ svg2png input.svg\n"
" $ svg2png input.svg 512x512\n"
" $ svg2png input.svg 512x512 0xff00ffff\n"
"\n",
165LL);
}
if ( v22 != v24 )
operator delete(v22, v24[0] + 1LL);
return v8;
}
| main:
PUSH R14
PUSH RBX
SUB RSP,0x68
LEA R14,[RSP + 0x58]
MOV qword ptr [R14 + -0x10],R14
MOV qword ptr [R14 + -0x8],0x0
MOV byte ptr [R14],0x0
XOR EAX,EAX
LEA RCX,[RSP + 0x24]
MOV dword ptr [RCX],EAX
LEA R8,[RSP + 0x20]
MOV dword ptr [R8],EAX
LEA R9,[RSP + 0x1c]
MOV dword ptr [R9],EAX
LAB_0010ac65:
LEA RDX,[RSP + 0x48]
CALL 0x0010aa0c
TEST AL,AL
JZ 0x0010acff
LAB_0010ac77:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x48]
CALL 0x0010beb8
MOV RSI,qword ptr [RSP + 0x10]
TEST RSI,RSI
JZ 0x0010ad21
MOV EDX,dword ptr [RSP + 0x24]
MOV ECX,dword ptr [RSP + 0x20]
MOV R8D,dword ptr [RSP + 0x1c]
LAB_0010aca1:
LEA RDI,[RSP + 0x8]
CALL 0x0010c206
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0010ad43
LEA RSI,[0x1430aa]
LEA RDI,[RSP + 0x48]
MOV ECX,0x2
MOV RDX,-0x1
CALL 0x0010a630
CMP RAX,-0x1
JZ 0x0010ad65
INC RAX
LAB_0010ace1:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x48]
MOV RDX,RAX
MOV RCX,-0x1
CALL 0x0010a340
JMP 0x0010ad85
LAB_0010acff:
MOV EBX,0x1
LAB_0010ad04:
MOV RDI,qword ptr [0x0015bfd0]
LEA RSI,[0x143004]
MOV EDX,0xa5
CALL 0x0010a3a0
JMP 0x0010ae2e
LAB_0010ad21:
MOV EBX,0x1
LAB_0010ad26:
MOV RDI,qword ptr [0x0015bfd0]
LEA RSI,[0x143004]
MOV EDX,0xa5
CALL 0x0010a3a0
JMP 0x0010ae24
LAB_0010ad43:
MOV EBX,0x1
LAB_0010ad48:
MOV RDI,qword ptr [0x0015bfd0]
LEA RSI,[0x143004]
MOV EDX,0xa5
CALL 0x0010a3a0
JMP 0x0010ae1a
LAB_0010ad65:
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,RSI
LAB_0010ad7b:
LEA RDI,[RSP + 0x28]
CALL 0x0010aeea
LAB_0010ad85:
LEA RSI,[0x1430ad]
LEA RDI,[RSP + 0x28]
CALL 0x0010a610
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x0010b2d2
MOV RDI,qword ptr [0x0015bfd0]
LEA RSI,[0x1430b2]
MOV EDX,0x14
CALL 0x0010a3a0
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [0x0015bfd0]
CALL 0x0010a3a0
MOV RBX,RAX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,0xa
CALL 0x0010a2f0
MOVSX ESI,AL
MOV RDI,RBX
CALL 0x0010a040
MOV RDI,RAX
CALL 0x0010a220
LAB_0010adfd:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0010ae18
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0010a320
LAB_0010ae18:
XOR EBX,EBX
LAB_0010ae1a:
LEA RDI,[RSP + 0x8]
CALL 0x0010b17c
LAB_0010ae24:
LEA RDI,[RSP + 0x10]
CALL 0x0010aeb6
LAB_0010ae2e:
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R14
JZ 0x0010ae45
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0010a320
LAB_0010ae45:
MOV EAX,EBX
ADD RSP,0x68
POP RBX
POP R14
RET
|
int8 main(int param_1,char **param_2)
{
char cVar1;
long lVar2;
ostream *poVar3;
int8 uVar4;
long local_70;
long local_68;
uint local_5c;
uint local_58;
uint local_54;
long *local_50;
long local_48;
long local_40 [2];
int1 *local_30;
long local_28;
int1 local_20;
int7 uStack_1f;
local_28 = 0;
local_20 = 0;
local_54 = 0;
local_58 = 0;
local_5c = 0;
/* try { // try from 0010ac65 to 0010ac6e has its CatchHandler @ 0010ae93 */
local_30 = &local_20;
cVar1 = setup(param_1,param_2,(string *)&local_30,&local_54,&local_58,&local_5c);
if (cVar1 == '\0') {
uVar4 = 1;
/* try { // try from 0010ad04 to 0010ad1b has its CatchHandler @ 0010ae93 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_0015bfd0,
"Usage: \n svg2png [filename] [resolution] [bgColor]\n\nExamples: \n $ svg2png input.svg\n $ svg2png input.svg 512x512\n $ svg2png input.svg 512x512 0xff00ffff\n\n"
,0xa5);
}
else {
/* try { // try from 0010ac77 to 0010ac85 has its CatchHandler @ 0010ae5d */
lunasvg::Document::loadFromFile((Document *)&local_68,(string *)&local_30);
if (local_68 == 0) {
uVar4 = 1;
/* try { // try from 0010ad26 to 0010ad3d has its CatchHandler @ 0010ae51 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_0015bfd0,
"Usage: \n svg2png [filename] [resolution] [bgColor]\n\nExamples: \n $ svg2png input.svg\n $ svg2png input.svg 512x512\n $ svg2png input.svg 512x512 0xff00ffff\n\n"
,0xa5);
}
else {
/* try { // try from 0010aca1 to 0010acaa has its CatchHandler @ 0010ae58 */
lunasvg::Document::renderToBitmap((Document *)&local_70,(int)local_68,local_54,local_58);
if (local_70 == 0) {
uVar4 = 1;
/* try { // try from 0010ad48 to 0010ad5f has its CatchHandler @ 0010ae4f */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_0015bfd0,
"Usage: \n svg2png [filename] [resolution] [bgColor]\n\nExamples: \n $ svg2png input.svg\n $ svg2png input.svg 512x512\n $ svg2png input.svg 512x512 0xff00ffff\n\n"
,0xa5);
}
else {
lVar2 = std::__cxx11::string::find_last_of((char *)&local_30,0x1430aa,0xffffffffffffffff);
if (lVar2 == -1) {
local_50 = local_40;
/* try { // try from 0010ad7b to 0010ad84 has its CatchHandler @ 0010ae53 */
std::__cxx11::string::_M_construct<char*>(&local_50,local_30,local_30 + local_28);
}
else {
/* try { // try from 0010ace1 to 0010acf9 has its CatchHandler @ 0010ae53 */
std::__cxx11::string::substr((ulong)&local_50,(ulong)&local_30);
}
/* try { // try from 0010ad85 to 0010adfc has its CatchHandler @ 0010ae5f */
std::__cxx11::string::append((char *)&local_50);
lunasvg::Bitmap::writeToPng((Bitmap *)&local_70,(string *)&local_50);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_0015bfd0,"Generated PNG file: ",0x14);
poVar3 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_0015bfd0,(char *)local_50,local_48);
std::ios::widen((char)*(int8 *)(*(long *)poVar3 + -0x18) + (char)poVar3);
std::ostream::put((char)poVar3);
std::ostream::flush();
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
uVar4 = 0;
}
lunasvg::Bitmap::~Bitmap((Bitmap *)&local_70);
}
std::unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>>::~unique_ptr
((unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>> *)&local_68);
}
if (local_30 != &local_20) {
operator_delete(local_30,CONCAT71(uStack_1f,local_20) + 1);
}
return uVar4;
}
| |
24,693 | main | dmazzella[P]pylunasvg/lunasvg/examples/svg2png.cpp | int main(int argc, char* argv[])
{
std::string filename;
std::uint32_t width = 0, height = 0;
std::uint32_t bgColor = 0x00000000;
if(!setup(argc, argv, filename, width, height, bgColor)) {
return help();
}
auto document = Document::loadFromFile(filename);
if(document == nullptr) {
return help();
}
auto bitmap = document->renderToBitmap(width, height, bgColor);
if(bitmap.isNull()) {
return help();
}
auto lastSlashIndex = filename.find_last_of("/\\");
auto basename = lastSlashIndex == std::string::npos ? filename : filename.substr(lastSlashIndex + 1);
basename.append(".png");
bitmap.writeToPng(basename);
std::cout << "Generated PNG file: " << basename << std::endl;
return 0;
} | O2 | cpp | main:
pushq %rbx
subq $0x60, %rsp
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1c(%rsp), %rcx
andl $0x0, (%rcx)
leaq 0x18(%rsp), %r8
andl $0x0, (%r8)
leaq 0x14(%rsp), %r9
andl $0x0, (%r9)
leaq 0x20(%rsp), %rdx
callq 0xa7b5
testb %al, %al
je 0xa978
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xb7a8
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xa985
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movq %rsp, %rdi
callq 0xba9c
cmpq $0x0, (%rsp)
je 0xa98f
leaq 0x2f75f(%rip), %rsi # 0x3a0aa
leaq 0x20(%rsp), %rdi
pushq $-0x1
popq %rdx
callq 0xa2a0
cmpq $-0x1, %rax
je 0xa999
incq %rax
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
pushq $-0x1
popq %rcx
movq %rax, %rdx
callq 0xa300
jmp 0xa9a8
callq 0xa79c
pushq $0x1
popq %rbx
jmp 0xaa0c
callq 0xa79c
pushq $0x1
popq %rbx
jmp 0xaa02
callq 0xa79c
pushq $0x1
popq %rbx
jmp 0xa9fa
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xa410
leaq 0x2f6fe(%rip), %rsi # 0x3a0ad
leaq 0x40(%rsp), %rdi
callq 0xa5b0
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0xada8
movq 0x4c60b(%rip), %rdi # 0x56fd8
leaq 0x2f6de(%rip), %rsi # 0x3a0b2
callq 0xa2b0
leaq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0xa290
movq %rax, %rdi
callq 0xa170
leaq 0x40(%rsp), %rdi
callq 0xa608
xorl %ebx, %ebx
movq %rsp, %rdi
callq 0xac52
leaq 0x8(%rsp), %rdi
callq 0xaa64
leaq 0x20(%rsp), %rdi
callq 0xa608
movl %ebx, %eax
addq $0x60, %rsp
popq %rbx
retq
jmp 0xaa22
jmp 0xaa27
movq %rax, %rbx
jmp 0xaa3b
movq %rax, %rbx
jmp 0xaa43
jmp 0xaa4f
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xa608
movq %rsp, %rdi
callq 0xac52
leaq 0x8(%rsp), %rdi
callq 0xaa64
jmp 0xaa52
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xa608
movq %rbx, %rdi
callq 0xa560
| main:
push rbx
sub rsp, 60h
lea rax, [rsp+68h+var_38]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea rcx, [rsp+68h+var_4C]
and dword ptr [rcx], 0
lea r8, [rsp+68h+var_50]
and dword ptr [r8], 0
lea r9, [rsp+68h+var_54]
and dword ptr [r9], 0
lea rdx, [rsp+68h+var_48]
call _Z5setupiPPcRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERjS8_S8_; setup(int,char **,std::string &,uint &,uint &,uint &)
test al, al
jz short loc_A978
lea rdi, [rsp+68h+var_60]
lea rsi, [rsp+68h+var_48]
call _ZN7lunasvg8Document12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Document::loadFromFile(std::string const&)
mov rsi, [rsp+68h+var_60]; lunasvg::Document *
test rsi, rsi
jz short loc_A985
mov edx, [rsp+68h+var_4C]; int
mov ecx, [rsp+68h+var_50]; unsigned int
mov r8d, [rsp+68h+var_54]
mov rdi, rsp; this
call _ZNK7lunasvg8Document14renderToBitmapEiij; lunasvg::Document::renderToBitmap(int,int,uint)
cmp [rsp+68h+var_68], 0
jz short loc_A98F
lea rsi, asc_3A0AA; "/\\"
lea rdi, [rsp+68h+var_48]
push 0FFFFFFFFFFFFFFFFh
pop rdx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcm; std::string::find_last_of(char const*,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_A999
inc rax
lea rdi, [rsp+68h+var_28]
lea rsi, [rsp+68h+var_48]
push 0FFFFFFFFFFFFFFFFh
pop rcx
mov rdx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short loc_A9A8
loc_A978:
call _Z4helpv; help(void)
push 1
pop rbx
jmp loc_AA0C
loc_A985:
call _Z4helpv; help(void)
push 1
pop rbx
jmp short loc_AA02
loc_A98F:
call _Z4helpv; help(void)
push 1
pop rbx
jmp short loc_A9FA
loc_A999:
lea rdi, [rsp+68h+var_28]
lea rsi, [rsp+68h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
loc_A9A8:
lea rsi, aPng; ".png"
lea rdi, [rsp+68h+var_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rdi, rsp
lea rsi, [rsp+68h+var_28]
call _ZNK7lunasvg6Bitmap10writeToPngERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; lunasvg::Bitmap::writeToPng(std::string const&)
mov rdi, cs:_ZSt4cout_ptr
lea rsi, aGeneratedPngFi; "Generated PNG file: "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rsi, [rsp+68h+var_28]
mov rdi, rax
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rdi, [rsp+68h+var_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
xor ebx, ebx
loc_A9FA:
mov rdi, rsp; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
loc_AA02:
lea rdi, [rsp+68h+var_60]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
loc_AA0C:
lea rdi, [rsp+68h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov eax, ebx
add rsp, 60h
pop rbx
retn
jmp short loc_AA22
jmp short loc_AA27
loc_AA22:
mov rbx, rax
jmp short loc_AA3B
loc_AA27:
mov rbx, rax
jmp short loc_AA43
jmp short loc_AA4F
mov rbx, rax
lea rdi, [rsp+arg_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_AA3B:
mov rdi, rsp; this
call _ZN7lunasvg6BitmapD2Ev; lunasvg::Bitmap::~Bitmap()
loc_AA43:
lea rdi, [rsp+arg_0]
call _ZNSt10unique_ptrIN7lunasvg8DocumentESt14default_deleteIS1_EED2Ev; std::unique_ptr<lunasvg::Document>::~unique_ptr()
jmp short loc_AA52
loc_AA4F:
mov rbx, rax
loc_AA52:
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| int main(int argc, const char **argv, const char **envp)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long last_of; // rax
int v8; // ebx
long long v9; // rax
long long v10; // rax
long long v12; // [rsp+0h] [rbp-68h] BYREF
lunasvg::Document *v13; // [rsp+8h] [rbp-60h] BYREF
int v14; // [rsp+10h] [rbp-58h]
int v15; // [rsp+14h] [rbp-54h] BYREF
unsigned int v16; // [rsp+18h] [rbp-50h] BYREF
int v17; // [rsp+1Ch] [rbp-4Ch] BYREF
_QWORD v18[2]; // [rsp+20h] [rbp-48h] BYREF
char v19; // [rsp+30h] [rbp-38h] BYREF
_BYTE v20[40]; // [rsp+40h] [rbp-28h] BYREF
v18[0] = &v19;
v18[1] = 0LL;
v19 = 0;
v17 = 0;
v16 = 0;
v15 = 0;
if ( (unsigned __int8)setup(argc, argv, (long long)v18, (long long)&v17, (long long)&v16, (long long)&v15) )
{
lunasvg::Document::loadFromFile(
(unsigned int)&v13,
(unsigned int)v18,
v3,
v4,
v5,
v6,
v12,
(_DWORD)v13,
v14,
v16,
v18[0]);
if ( v13 )
{
lunasvg::Document::renderToBitmap((lunasvg::Document *)&v12, v13, v17, v16);
if ( v12 )
{
last_of = std::string::find_last_of(v18, "/\\", -1LL);
if ( last_of == -1 )
std::string::basic_string(v20, v18);
else
std::string::substr(v20, v18, last_of + 1, -1LL);
std::string::append(v20, ".png");
lunasvg::Bitmap::writeToPng(&v12, v20);
v9 = std::operator<<<std::char_traits<char>>(&std::cout, "Generated PNG file: ");
v10 = std::operator<<<char>(v9, v20);
std::endl<char,std::char_traits<char>>(v10);
std::string::~string(v20);
v8 = 0;
}
else
{
help();
v8 = 1;
}
lunasvg::Bitmap::~Bitmap((lunasvg::Bitmap *)&v12);
}
else
{
help();
v8 = 1;
}
std::unique_ptr<lunasvg::Document>::~unique_ptr(&v13);
}
else
{
help();
v8 = 1;
}
std::string::~string(v18);
return v8;
}
| main:
PUSH RBX
SUB RSP,0x60
LEA RAX,[RSP + 0x30]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LEA RCX,[RSP + 0x1c]
AND dword ptr [RCX],0x0
LEA R8,[RSP + 0x18]
AND dword ptr [R8],0x0
LEA R9,[RSP + 0x14]
AND dword ptr [R9],0x0
LAB_0010a901:
LEA RDX,[RSP + 0x20]
CALL 0x0010a7b5
TEST AL,AL
JZ 0x0010a978
LAB_0010a90f:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x20]
CALL 0x0010b7a8
MOV RSI,qword ptr [RSP + 0x8]
TEST RSI,RSI
JZ 0x0010a985
MOV EDX,dword ptr [RSP + 0x1c]
MOV ECX,dword ptr [RSP + 0x18]
MOV R8D,dword ptr [RSP + 0x14]
LAB_0010a935:
MOV RDI,RSP
CALL 0x0010ba9c
CMP qword ptr [RSP],0x0
JZ 0x0010a98f
LEA RSI,[0x13a0aa]
LEA RDI,[RSP + 0x20]
PUSH -0x1
POP RDX
CALL 0x0010a2a0
CMP RAX,-0x1
JZ 0x0010a999
INC RAX
LAB_0010a961:
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x20]
PUSH -0x1
POP RCX
MOV RDX,RAX
CALL 0x0010a300
JMP 0x0010a9a8
LAB_0010a978:
CALL 0x0010a79c
PUSH 0x1
POP RBX
JMP 0x0010aa0c
LAB_0010a985:
CALL 0x0010a79c
PUSH 0x1
POP RBX
JMP 0x0010aa02
LAB_0010a98f:
CALL 0x0010a79c
PUSH 0x1
POP RBX
JMP 0x0010a9fa
LAB_0010a999:
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x20]
CALL 0x0010a410
LAB_0010a9a8:
LEA RSI,[0x13a0ad]
LEA RDI,[RSP + 0x40]
CALL 0x0010a5b0
MOV RDI,RSP
LEA RSI,[RSP + 0x40]
CALL 0x0010ada8
MOV RDI,qword ptr [0x00156fd8]
LEA RSI,[0x13a0b2]
CALL 0x0010a2b0
LEA RSI,[RSP + 0x40]
MOV RDI,RAX
CALL 0x0010a290
MOV RDI,RAX
CALL 0x0010a170
LAB_0010a9ee:
LEA RDI,[RSP + 0x40]
CALL 0x0010a608
XOR EBX,EBX
LAB_0010a9fa:
MOV RDI,RSP
CALL 0x0010ac52
LAB_0010aa02:
LEA RDI,[RSP + 0x8]
CALL 0x0010aa64
LAB_0010aa0c:
LEA RDI,[RSP + 0x20]
CALL 0x0010a608
MOV EAX,EBX
ADD RSP,0x60
POP RBX
RET
|
int8 main(int param_1,char **param_2)
{
char cVar1;
long lVar2;
ostream *poVar3;
int8 uVar4;
long local_68;
long local_60;
uint local_54;
uint local_50;
uint local_4c;
int1 *local_48;
int8 local_40;
int1 local_38 [16];
string local_28 [32];
local_48 = local_38;
local_40 = 0;
local_38[0] = 0;
local_4c = 0;
local_50 = 0;
local_54 = 0;
/* try { // try from 0010a901 to 0010a90a has its CatchHandler @ 0010aa4f */
cVar1 = setup(param_1,param_2,(string *)&local_48,&local_4c,&local_50,&local_54);
if (cVar1 == '\0') {
/* try { // try from 0010a978 to 0010a97c has its CatchHandler @ 0010aa4f */
help();
uVar4 = 1;
}
else {
/* try { // try from 0010a90f to 0010a91d has its CatchHandler @ 0010aa2c */
lunasvg::Document::loadFromFile((Document *)&local_60,(string *)&local_48);
if (local_60 == 0) {
/* try { // try from 0010a985 to 0010a989 has its CatchHandler @ 0010aa20 */
help();
uVar4 = 1;
}
else {
/* try { // try from 0010a935 to 0010a93c has its CatchHandler @ 0010aa27 */
lunasvg::Document::renderToBitmap((Document *)&local_68,(int)local_60,local_4c,local_50);
if (local_68 == 0) {
/* try { // try from 0010a98f to 0010a993 has its CatchHandler @ 0010aa1e */
help();
uVar4 = 1;
}
else {
lVar2 = std::__cxx11::string::find_last_of((char *)&local_48,0x13a0aa);
if (lVar2 == -1) {
/* try { // try from 0010a999 to 0010a9a7 has its CatchHandler @ 0010aa22 */
std::__cxx11::string::string(local_28,(string *)&local_48);
}
else {
/* try { // try from 0010a961 to 0010a975 has its CatchHandler @ 0010aa22 */
std::__cxx11::string::substr((ulong)local_28,(ulong)&local_48);
}
/* try { // try from 0010a9a8 to 0010a9ed has its CatchHandler @ 0010aa2e */
std::__cxx11::string::append((char *)local_28);
lunasvg::Bitmap::writeToPng((Bitmap *)&local_68,local_28);
poVar3 = std::operator<<((ostream *)PTR_cout_00156fd8,"Generated PNG file: ");
poVar3 = std::operator<<(poVar3,local_28);
std::endl<char,std::char_traits<char>>(poVar3);
std::__cxx11::string::~string(local_28);
uVar4 = 0;
}
lunasvg::Bitmap::~Bitmap((Bitmap *)&local_68);
}
std::unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>>::~unique_ptr
((unique_ptr<lunasvg::Document,std::default_delete<lunasvg::Document>> *)&local_60);
}
std::__cxx11::string::~string((string *)&local_48);
return uVar4;
}
| |
24,694 | rtree_fill_reinsert_list | eloqsql/storage/myisam/rt_index.c | static int rtree_fill_reinsert_list(stPageList *ReinsertList, my_off_t page,
int level)
{
DBUG_ENTER("rtree_fill_reinsert_list");
DBUG_PRINT("rtree", ("page: %lu level: %d", (ulong) page, level));
if (ReinsertList->n_pages == ReinsertList->m_pages)
{
ReinsertList->m_pages += REINSERT_BUFFER_INC;
if (!(ReinsertList->pages = (stPageLevel*)
my_realloc(mi_key_memory_stPageList_pages,
(uchar*)ReinsertList->pages,
ReinsertList->m_pages * sizeof(stPageLevel),
MYF(MY_ALLOW_ZERO_PTR))))
goto err1;
}
/* save page to ReinsertList */
ReinsertList->pages[ReinsertList->n_pages].offs = page;
ReinsertList->pages[ReinsertList->n_pages].level = level;
ReinsertList->n_pages++;
DBUG_RETURN(0);
err1:
DBUG_RETURN(-1); /* purecov: inspected */
} | O0 | c | rtree_fill_reinsert_list:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
jmp 0xcad35
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0xcad8f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0xa, %rcx
movq %rcx, 0x8(%rax)
leaq 0xbaf857(%rip), %rax # 0xc7a5b4
movl (%rax), %edi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
movl $0x40, %ecx
callq 0xf3a00
movq -0x10(%rbp), %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0xcad8d
jmp 0xcaddf
jmp 0xcad8f
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0xcade8
jmp 0xcade1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| rtree_fill_reinsert_list:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
jmp short $+2
loc_CAD35:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_10]
cmp rax, [rcx+8]
jnz short loc_CAD8F
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, 0Ah
mov [rax+8], rcx
lea rax, mi_key_memory_stPageList_pages
mov edi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
mov rax, [rbp+var_10]
mov rdx, [rax+8]
shl rdx, 4
mov ecx, 40h ; '@'
call my_realloc
mov rcx, [rbp+var_10]
mov [rcx+10h], rax
cmp rax, 0
jnz short loc_CAD8D
jmp short loc_CADDF
loc_CAD8D:
jmp short $+2
loc_CAD8F:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rdx, [rbp+var_10]
mov rdx, [rdx]
shl rdx, 4
add rax, rdx
mov [rax+8], rcx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rdx, [rbp+var_10]
mov rdx, [rdx]
shl rdx, 4
add rax, rdx
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov [rbp+var_4], 0
jmp short loc_CADE8
loc_CADDF:
jmp short $+2
loc_CADE1:
mov [rbp+var_4], 0FFFFFFFFh
loc_CADE8:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long rtree_fill_reinsert_list(_QWORD *a1, long long a2, int a3)
{
long long v3; // rax
if ( *a1 == a1[1]
&& (a1[1] += 10LL, v3 = my_realloc(mi_key_memory_stPageList_pages, a1[2], 16LL * a1[1], 64LL), (a1[2] = v3) == 0LL) )
{
return (unsigned int)-1;
}
else
{
*(_QWORD *)(16LL * *a1 + a1[2] + 8) = a2;
*(_DWORD *)(16LL * (*a1)++ + a1[2]) = a3;
return 0;
}
}
| rtree_fill_reinsert_list:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
JMP 0x001cad35
LAB_001cad35:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x8]
JNZ 0x001cad8f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,0xa
MOV qword ptr [RAX + 0x8],RCX
LEA RAX,[0xd7a5b4]
MOV EDI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x8]
SHL RDX,0x4
MOV ECX,0x40
CALL 0x001f3a00
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x10],RAX
CMP RAX,0x0
JNZ 0x001cad8d
JMP 0x001caddf
LAB_001cad8d:
JMP 0x001cad8f
LAB_001cad8f:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RDX]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RDX]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001cade8
LAB_001caddf:
JMP 0x001cade1
LAB_001cade1:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_001cade8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 rtree_fill_reinsert_list(long *param_1,int8 param_2,int4 param_3)
{
long lVar1;
if (*param_1 == param_1[1]) {
param_1[1] = param_1[1] + 10;
lVar1 = my_realloc(mi_key_memory_stPageList_pages,param_1[2],param_1[1] << 4,0x40);
param_1[2] = lVar1;
if (lVar1 == 0) {
return 0xffffffff;
}
}
*(int8 *)(param_1[2] + *param_1 * 0x10 + 8) = param_2;
*(int4 *)(param_1[2] + *param_1 * 0x10) = param_3;
*param_1 = *param_1 + 1;
return 0;
}
| |
24,695 | get_physical_core_count | davidesantangelo[P]vsort/vsort.c | static int get_physical_core_count(void)
{
long nprocs = -1;
#ifdef _SC_NPROCESSORS_ONLN
nprocs = sysconf(_SC_NPROCESSORS_ONLN);
if (nprocs < 1)
{
#ifdef _SC_NPROCESSORS_CONF
nprocs = sysconf(_SC_NPROCESSORS_CONF);
if (nprocs < 1)
{
return 1; // Fallback to 1 core
}
#else
return 1; // Fallback to 1 core
#endif
}
return (int)nprocs;
#else
return 1; // Fallback
#endif
} | O0 | c | get_physical_core_count:
subq $0x18, %rsp
movq $-0x1, 0x8(%rsp)
movl $0x54, %edi
callq 0x1160
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
jge 0x1e47
movl $0x53, %edi
callq 0x1160
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
jge 0x1e45
movl $0x1, 0x14(%rsp)
jmp 0x1e50
jmp 0x1e47
movq 0x8(%rsp), %rax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
| get_physical_core_count:
sub rsp, 18h
mov [rsp+18h+var_10], 0FFFFFFFFFFFFFFFFh
mov edi, 54h ; 'T'
call _sysconf
mov [rsp+18h+var_10], rax
cmp [rsp+18h+var_10], 1
jge short loc_1E47
mov edi, 53h ; 'S'
call _sysconf
mov [rsp+18h+var_10], rax
cmp [rsp+18h+var_10], 1
jge short loc_1E45
mov [rsp+18h+var_4], 1
jmp short loc_1E50
loc_1E45:
jmp short $+2
loc_1E47:
mov rax, [rsp+18h+var_10]
mov [rsp+18h+var_4], eax
loc_1E50:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long get_physical_core_count()
{
long long v1; // [rsp+8h] [rbp-10h]
v1 = sysconf(84LL);
if ( v1 >= 1 )
return (unsigned int)v1;
v1 = sysconf(83LL);
if ( v1 >= 1 )
return (unsigned int)v1;
else
return 1;
}
| get_physical_core_count:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],-0x1
MOV EDI,0x54
CALL 0x00101160
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x1
JGE 0x00101e47
MOV EDI,0x53
CALL 0x00101160
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x1
JGE 0x00101e45
MOV dword ptr [RSP + 0x14],0x1
JMP 0x00101e50
LAB_00101e45:
JMP 0x00101e47
LAB_00101e47:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x14],EAX
LAB_00101e50:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
int4 get_physical_core_count(void)
{
long local_10;
int4 local_4;
local_10 = sysconf(0x54);
if ((local_10 < 1) && (local_10 = sysconf(0x53), local_10 < 1)) {
local_4 = 1;
}
else {
local_4 = (int4)local_10;
}
return local_4;
}
| |
24,696 | js_free_message | bluesky950520[P]quickjs/quickjs-libc.c | static void js_free_message(JSWorkerMessage *msg)
{
size_t i;
/* free the SAB */
for(i = 0; i < msg->sab_tab_len; i++) {
js_sab_free(NULL, msg->sab_tab[i]);
}
free(msg->sab_tab);
free(msg->data);
free(msg);
} | O0 | c | js_free_message:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x1d74d
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
xorl %eax, %eax
movl %eax, %edi
callq 0x113f0
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x1d712
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0xe060
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xe060
movq 0x10(%rsp), %rdi
callq 0xe060
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| js_free_message:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], 0
loc_1D712:
mov rax, [rsp+18h+var_10]
mov rcx, [rsp+18h+var_8]
cmp rax, [rcx+28h]
jnb short loc_1D74D
mov rax, [rsp+18h+var_8]
mov rax, [rax+20h]
mov rcx, [rsp+18h+var_10]
mov rsi, [rax+rcx*8]
xor eax, eax
mov edi, eax
call js_sab_free
mov rax, [rsp+18h+var_10]
add rax, 1
mov [rsp+18h+var_10], rax
jmp short loc_1D712
loc_1D74D:
mov rax, [rsp+18h+var_8]
mov rdi, [rax+20h]
call _free
mov rax, [rsp+18h+var_8]
mov rdi, [rax+10h]
call _free
mov rdi, [rsp+18h+var_8]
call _free
add rsp, 18h
retn
| long long js_free_message(_QWORD *a1)
{
unsigned long long i; // [rsp+8h] [rbp-10h]
for ( i = 0LL; i < a1[5]; ++i )
js_sab_free(0LL, *(_QWORD *)(a1[4] + 8 * i));
free(a1[4]);
free(a1[2]);
return free(a1);
}
| js_free_message:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],0x0
LAB_0011d712:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
CMP RAX,qword ptr [RCX + 0x28]
JNC 0x0011d74d
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX + RCX*0x8]
XOR EAX,EAX
MOV EDI,EAX
CALL 0x001113f0
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,0x1
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0011d712
LAB_0011d74d:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x0010e060
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x0010e060
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0010e060
ADD RSP,0x18
RET
|
void js_free_message(void *param_1)
{
int8 local_10;
for (local_10 = 0; local_10 < *(ulong *)((long)param_1 + 0x28); local_10 = local_10 + 1) {
js_sab_free(0,*(int8 *)(*(long *)((long)param_1 + 0x20) + local_10 * 8));
}
free(*(void **)((long)param_1 + 0x20));
free(*(void **)((long)param_1 + 0x10));
free(param_1);
return;
}
| |
24,697 | js_free_message | bluesky950520[P]quickjs/quickjs-libc.c | static void js_free_message(JSWorkerMessage *msg)
{
size_t i;
/* free the SAB */
for(i = 0; i < msg->sab_tab_len; i++) {
js_sab_free(NULL, msg->sab_tab[i]);
}
free(msg->sab_tab);
free(msg->data);
free(msg);
} | O2 | c | js_free_message:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x20(%rbx), %rdi
cmpq 0x28(%rbx), %r14
jae 0x158be
movq (%rdi,%r14,8), %rsi
callq 0x101ea
incq %r14
jmp 0x158a6
callq 0xe060
movq 0x10(%rbx), %rdi
callq 0xe060
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xe060
| js_free_message:
push r14
push rbx
push rax
mov rbx, rdi
xor r14d, r14d
loc_158A6:
mov rdi, [rbx+20h]
cmp r14, [rbx+28h]
jnb short loc_158BE
mov rsi, [rdi+r14*8]
call js_sab_free
inc r14
jmp short loc_158A6
loc_158BE:
call _free
mov rdi, [rbx+10h]
call _free
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp _free
| long long js_free_message(_QWORD *a1)
{
unsigned long long i; // r14
long long v3; // rdi
for ( i = 0LL; ; ++i )
{
v3 = a1[4];
if ( i >= a1[5] )
break;
js_sab_free(v3, *(_QWORD *)(v3 + 8 * i));
}
free(v3);
free(a1[2]);
return free(a1);
}
| js_free_message:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR R14D,R14D
LAB_001158a6:
MOV RDI,qword ptr [RBX + 0x20]
CMP R14,qword ptr [RBX + 0x28]
JNC 0x001158be
MOV RSI,qword ptr [RDI + R14*0x8]
CALL 0x001101ea
INC R14
JMP 0x001158a6
LAB_001158be:
CALL 0x0010e060
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x0010e060
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0010e060
|
void js_free_message(void *param_1)
{
void *__ptr;
ulong uVar1;
for (uVar1 = 0; __ptr = *(void **)((long)param_1 + 0x20), uVar1 < *(ulong *)((long)param_1 + 0x28)
; uVar1 = uVar1 + 1) {
js_sab_free(__ptr,*(int8 *)((long)__ptr + uVar1 * 8));
}
free(__ptr);
free(*(void **)((long)param_1 + 0x10));
free(param_1);
return;
}
| |
24,698 | ma_set_share_data_file_length | eloqsql/storage/maria/ma_state.c | void _ma_set_share_data_file_length(MARIA_SHARE *share, ulonglong new_length)
{
if (!share->internal_table)
mysql_mutex_lock(&share->intern_lock);
if (share->state.state.data_file_length < new_length)
{
share->state.state.data_file_length= new_length;
if (new_length >= share->base.max_data_file_length)
{
/* Give an error on next insert */
share->state.changed|= STATE_DATA_FILE_FULL;
}
}
if (!share->internal_table)
mysql_mutex_unlock(&share->intern_lock);
} | O3 | c | ma_set_share_data_file_length:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, 0x7e2(%rdi)
jne 0x450e8
leaq 0x8f0(%rbx), %rdi
cmpq $0x0, 0x930(%rbx)
jne 0x4512f
callq 0x2b230
cmpq %r14, 0x40(%rbx)
jae 0x45102
movq %r14, 0x40(%rbx)
cmpq %r14, 0x368(%rbx)
ja 0x45102
orb $0x10, 0x171(%rbx)
cmpb $0x0, 0x7e2(%rbx)
je 0x45110
popq %rbx
popq %r14
popq %rbp
retq
movq 0x930(%rbx), %rdi
addq $0x8f0, %rbx # imm = 0x8F0
testq %rdi, %rdi
jne 0x45142
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2b1f0
leaq 0xbd249(%rip), %rsi # 0x10237f
movl $0x313, %edx # imm = 0x313
callq 0x324c0
jmp 0x450e8
leaq 0x373abf(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x45123
| _ma_set_share_data_file_length:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi+7E2h], 0
jnz short loc_450E8
lea rdi, [rbx+8F0h]
cmp qword ptr [rbx+930h], 0
jnz short loc_4512F
call _pthread_mutex_lock
loc_450E8:
cmp [rbx+40h], r14
jnb short loc_45102
mov [rbx+40h], r14
cmp [rbx+368h], r14
ja short loc_45102
or byte ptr [rbx+171h], 10h
loc_45102:
cmp byte ptr [rbx+7E2h], 0
jz short loc_45110
pop rbx
pop r14
pop rbp
retn
loc_45110:
mov rdi, [rbx+930h]
add rbx, 8F0h
test rdi, rdi
jnz short loc_45142
loc_45123:
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp _pthread_mutex_unlock
loc_4512F:
lea rsi, aWorkspaceLlm4b_37; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 313h
call psi_mutex_lock
jmp short loc_450E8
loc_45142:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_45123
| long long ma_set_share_data_file_length(long long a1, unsigned long long a2)
{
long long v3; // rdi
long long result; // rax
long long v5; // rdi
long long v6; // rbx
if ( !*(_BYTE *)(a1 + 2018) )
{
v3 = a1 + 2288;
if ( *(_QWORD *)(a1 + 2352) )
result = psi_mutex_lock(v3, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x313u);
else
result = pthread_mutex_lock(v3);
}
if ( *(_QWORD *)(a1 + 64) < a2 )
{
*(_QWORD *)(a1 + 64) = a2;
if ( *(_QWORD *)(a1 + 872) <= a2 )
*(_BYTE *)(a1 + 369) |= 0x10u;
}
if ( !*(_BYTE *)(a1 + 2018) )
{
v5 = *(_QWORD *)(a1 + 2352);
v6 = a1 + 2288;
if ( v5 )
PSI_server[44]();
return pthread_mutex_unlock(v6);
}
return result;
}
| _ma_set_share_data_file_length:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI + 0x7e2],0x0
JNZ 0x001450e8
LEA RDI,[RBX + 0x8f0]
CMP qword ptr [RBX + 0x930],0x0
JNZ 0x0014512f
CALL 0x0012b230
LAB_001450e8:
CMP qword ptr [RBX + 0x40],R14
JNC 0x00145102
MOV qword ptr [RBX + 0x40],R14
CMP qword ptr [RBX + 0x368],R14
JA 0x00145102
OR byte ptr [RBX + 0x171],0x10
LAB_00145102:
CMP byte ptr [RBX + 0x7e2],0x0
JZ 0x00145110
POP RBX
POP R14
POP RBP
RET
LAB_00145110:
MOV RDI,qword ptr [RBX + 0x930]
ADD RBX,0x8f0
TEST RDI,RDI
JNZ 0x00145142
LAB_00145123:
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x0012b1f0
LAB_0014512f:
LEA RSI,[0x20237f]
MOV EDX,0x313
CALL 0x001324c0
JMP 0x001450e8
LAB_00145142:
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00145123
|
void _ma_set_share_data_file_length(long param_1,ulong param_2)
{
if (*(char *)(param_1 + 0x7e2) == '\0') {
if (*(long *)(param_1 + 0x930) == 0) {
pthread_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0));
}
else {
psi_mutex_lock((pthread_mutex_t *)(param_1 + 0x8f0),
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c",0x313);
}
}
if ((*(ulong *)(param_1 + 0x40) < param_2) &&
(*(ulong *)(param_1 + 0x40) = param_2, *(ulong *)(param_1 + 0x368) <= param_2)) {
*(byte *)(param_1 + 0x171) = *(byte *)(param_1 + 0x171) | 0x10;
}
if (*(char *)(param_1 + 0x7e2) != '\0') {
return;
}
if (*(long *)(param_1 + 0x930) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)(param_1 + 0x8f0));
return;
}
| |
24,699 | my_mb_wc_latin1 | eloqsql/strings/ctype-latin1.c | static
int my_mb_wc_latin1(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *wc,
const uchar *str,
const uchar *end __attribute__((unused)))
{
if (str >= end)
return MY_CS_TOOSMALL;
/*
There are no unassigned characters in latin1.
Every code point in latin1 is mapped to some Unicode code point.
We can always return 1, no needs to check the value of cs_to_uni[*str].
*/
*wc= cs_to_uni[*str];
DBUG_ASSERT(wc[0] || !str[0]);
return 1;
} | O0 | c | my_mb_wc_latin1:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x37257
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x3727d
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x103179(%rip), %rax # 0x13a3e0
movzwl (%rax,%rcx,2), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0x37276
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_mb_wc_latin1:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_37257
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_3727D
loc_37257:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, cs_to_uni
movzx eax, word ptr [rax+rcx*2]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
jmp short $+2
loc_37276:
mov [rbp+var_4], 1
loc_3727D:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_mb_wc_latin1(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
if ( (unsigned long long)a3 < a4 )
{
*a2 = cs_to_uni[*a3];
return 1;
}
else
{
return (unsigned int)-101;
}
}
| my_mb_wc_latin1:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00137257
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0013727d
LAB_00137257:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x23a3e0]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
JMP 0x00137276
LAB_00137276:
MOV dword ptr [RBP + -0x4],0x1
LAB_0013727d:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_latin1(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
int4 local_c;
if (param_3 < param_4) {
*param_2 = (ulong)*(ushort *)(cs_to_uni + (ulong)*param_3 * 2);
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.