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
|
---|---|---|---|---|---|---|---|---|---|---|---|
10,000 |
translog_disable_purge
|
eloqsql/storage/maria/ma_loghandler.c
|
void translog_disable_purge()
{
mysql_mutex_lock(&log_descriptor.purger_lock);
log_purge_disabled++;
mysql_mutex_unlock(&log_descriptor.purger_lock);
}
|
O3
|
c
|
translog_disable_purge:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0xb9d576(%rip) # 0xc0cd20
jne 0x6f7d7
leaq 0xb9d52d(%rip), %rdi # 0xc0cce0
callq 0x2a200
incl 0x39b472(%rip) # 0x40ac30
movq 0xb9d55b(%rip), %rdi # 0xc0cd20
testq %rdi, %rdi
jne 0x6f7de
leaq 0xb9d50f(%rip), %rdi # 0xc0cce0
popq %rbp
jmp 0x2a1d0
callq 0x2e2be
jmp 0x6f7b8
leaq 0x324273(%rip), %rax # 0x393a58
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x6f7ca
|
translog_disable_purge:
push rbp
mov rbp, rsp
cmp cs:qword_C0CD20, 0
jnz short loc_6F7D7
lea rdi, unk_C0CCE0
call _pthread_mutex_lock
loc_6F7B8:
inc cs:log_purge_disabled
mov rdi, cs:qword_C0CD20
test rdi, rdi
jnz short loc_6F7DE
loc_6F7CA:
lea rdi, unk_C0CCE0
pop rbp
jmp _pthread_mutex_unlock
loc_6F7D7:
call translog_disable_purge_cold_1
jmp short loc_6F7B8
loc_6F7DE:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_6F7CA
|
long long translog_disable_purge()
{
if ( qword_C0CD20 )
translog_disable_purge_cold_1();
else
pthread_mutex_lock(&unk_C0CCE0);
++log_purge_disabled;
if ( qword_C0CD20 )
PSI_server[44]();
return pthread_mutex_unlock(&unk_C0CCE0);
}
|
translog_disable_purge:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [0x00d0cd20],0x0
JNZ 0x0016f7d7
LEA RDI,[0xd0cce0]
CALL 0x0012a200
LAB_0016f7b8:
INC dword ptr [0x0050ac30]
MOV RDI,qword ptr [0x00d0cd20]
TEST RDI,RDI
JNZ 0x0016f7de
LAB_0016f7ca:
LEA RDI,[0xd0cce0]
POP RBP
JMP 0x0012a1d0
LAB_0016f7d7:
CALL 0x0012e2be
JMP 0x0016f7b8
LAB_0016f7de:
LEA RAX,[0x493a58]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0016f7ca
|
void translog_disable_purge(void)
{
if (DAT_00d0cd20 == 0) {
pthread_mutex_lock((pthread_mutex_t *)&DAT_00d0cce0);
}
else {
translog_disable_purge_cold_1();
}
log_purge_disabled = log_purge_disabled + 1;
if (DAT_00d0cd20 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d0cce0);
return;
}
|
|
10,001 |
LefDefParser::lefiNonDefault::Destroy()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiNonDefault.cpp
|
void
lefiNonDefault::Destroy()
{
clear();
lefFree(name_);
lefFree((char*) (layerName_));
lefFree((char*) (width_));
lefFree((char*) (diagWidth_));
lefFree((char*) (spacing_));
lefFree((char*) (wireExtension_));
lefFree((char*) (resistance_));
lefFree((char*) (capacitance_));
lefFree((char*) (edgeCap_));
lefFree(hasWidth_);
lefFree(hasDiagWidth_);
lefFree(hasSpacing_);
lefFree(hasWireExtension_);
lefFree(hasResistance_);
lefFree(hasCapacitance_);
lefFree(hasEdgeCap_);
lefFree((char*) (viaRules_));
lefFree((char*) (spacingRules_));
lefFree((char*) (names_));
lefFree((char*) (values_));
lefFree((char*) (dvalues_));
lefFree((char*) (types_));
if (allocatedUseVias_)
lefFree((char*) (useViaName_));
if (allocatedUseViaRules_)
lefFree((char*) (useViaRuleName_));
if (allocatedMinCuts_) {
lefFree((char*) (cutLayerName_));
lefFree((char*) (numCuts_));
}
allocatedUseVias_ = 0;
allocatedUseViaRules_ = 0;
allocatedMinCuts_ = 0;
}
|
O0
|
cpp
|
LefDefParser::lefiNonDefault::Destroy():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x45640
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x88(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x98(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0xa8(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0xf8(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x100(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x108(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0x110(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
cmpl $0x0, 0xb8(%rax)
je 0x455c3
movq 0x8(%rsp), %rax
movq 0xc0(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
cmpl $0x0, 0xcc(%rax)
je 0x455e2
movq 0x8(%rsp), %rax
movq 0xd0(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
cmpl $0x0, 0xdc(%rax)
je 0x45612
movq 0x8(%rsp), %rax
movq 0xe0(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movq 0xe8(%rax), %rdi
callq 0x52810
movq 0x8(%rsp), %rax
movl $0x0, 0xb8(%rax)
movl $0x0, 0xcc(%rax)
movl $0x0, 0xdc(%rax)
addq $0x18, %rsp
retq
nopw (%rax,%rax)
|
_ZN12LefDefParser14lefiNonDefault7DestroyEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]; this
mov [rsp+18h+var_10], rdi
call _ZN12LefDefParser14lefiNonDefault5clearEv; LefDefParser::lefiNonDefault::clear(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+18h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+20h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+80h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+28h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+30h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+50h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+58h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+60h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+38h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+88h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+40h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+48h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+68h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+70h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+78h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+98h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0A8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0F8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+100h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+108h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+110h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
cmp dword ptr [rax+0B8h], 0
jz short loc_455C3
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0C0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
loc_455C3:
mov rax, [rsp+18h+var_10]
cmp dword ptr [rax+0CCh], 0
jz short loc_455E2
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0D0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
loc_455E2:
mov rax, [rsp+18h+var_10]
cmp dword ptr [rax+0DCh], 0
jz short loc_45612
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0E0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0E8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
loc_45612:
mov rax, [rsp+18h+var_10]
mov dword ptr [rax+0B8h], 0
mov dword ptr [rax+0CCh], 0
mov dword ptr [rax+0DCh], 0
add rsp, 18h
retn
|
LefDefParser ** LefDefParser::lefiNonDefault::Destroy(LefDefParser **this, void *a2)
{
LefDefParser **result; // rax
LefDefParser::lefiNonDefault::clear((LefDefParser::lefiNonDefault *)this);
LefDefParser::lefFree(this[1], a2);
LefDefParser::lefFree(this[3], a2);
LefDefParser::lefFree(this[4], a2);
LefDefParser::lefFree(this[16], a2);
LefDefParser::lefFree(this[5], a2);
LefDefParser::lefFree(this[6], a2);
LefDefParser::lefFree(this[10], a2);
LefDefParser::lefFree(this[11], a2);
LefDefParser::lefFree(this[12], a2);
LefDefParser::lefFree(this[7], a2);
LefDefParser::lefFree(this[17], a2);
LefDefParser::lefFree(this[8], a2);
LefDefParser::lefFree(this[9], a2);
LefDefParser::lefFree(this[13], a2);
LefDefParser::lefFree(this[14], a2);
LefDefParser::lefFree(this[15], a2);
LefDefParser::lefFree(this[19], a2);
LefDefParser::lefFree(this[21], a2);
LefDefParser::lefFree(this[31], a2);
LefDefParser::lefFree(this[32], a2);
LefDefParser::lefFree(this[33], a2);
LefDefParser::lefFree(this[34], a2);
if ( *((_DWORD *)this + 46) )
LefDefParser::lefFree(this[24], a2);
if ( *((_DWORD *)this + 51) )
LefDefParser::lefFree(this[26], a2);
if ( *((_DWORD *)this + 55) )
{
LefDefParser::lefFree(this[28], a2);
LefDefParser::lefFree(this[29], a2);
}
result = this;
*((_DWORD *)this + 46) = 0;
*((_DWORD *)this + 51) = 0;
*((_DWORD *)this + 55) = 0;
return result;
}
|
Destroy:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00145640
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x80]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x28]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x50]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x58]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x60]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x40]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x68]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x78]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x98]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xa8]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xf8]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x100]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x108]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x110]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
CMP dword ptr [RAX + 0xb8],0x0
JZ 0x001455c3
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xc0]
CALL 0x00152810
LAB_001455c3:
MOV RAX,qword ptr [RSP + 0x8]
CMP dword ptr [RAX + 0xcc],0x0
JZ 0x001455e2
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xd0]
CALL 0x00152810
LAB_001455e2:
MOV RAX,qword ptr [RSP + 0x8]
CMP dword ptr [RAX + 0xdc],0x0
JZ 0x00145612
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xe0]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xe8]
CALL 0x00152810
LAB_00145612:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX + 0xb8],0x0
MOV dword ptr [RAX + 0xcc],0x0
MOV dword ptr [RAX + 0xdc],0x0
ADD RSP,0x18
RET
|
/* LefDefParser::lefiNonDefault::Destroy() */
void __thiscall LefDefParser::lefiNonDefault::Destroy(lefiNonDefault *this)
{
clear(this);
lefFree(*(void **)(this + 8));
lefFree(*(void **)(this + 0x18));
lefFree(*(void **)(this + 0x20));
lefFree(*(void **)(this + 0x80));
lefFree(*(void **)(this + 0x28));
lefFree(*(void **)(this + 0x30));
lefFree(*(void **)(this + 0x50));
lefFree(*(void **)(this + 0x58));
lefFree(*(void **)(this + 0x60));
lefFree(*(void **)(this + 0x38));
lefFree(*(void **)(this + 0x88));
lefFree(*(void **)(this + 0x40));
lefFree(*(void **)(this + 0x48));
lefFree(*(void **)(this + 0x68));
lefFree(*(void **)(this + 0x70));
lefFree(*(void **)(this + 0x78));
lefFree(*(void **)(this + 0x98));
lefFree(*(void **)(this + 0xa8));
lefFree(*(void **)(this + 0xf8));
lefFree(*(void **)(this + 0x100));
lefFree(*(void **)(this + 0x108));
lefFree(*(void **)(this + 0x110));
if (*(int *)(this + 0xb8) != 0) {
lefFree(*(void **)(this + 0xc0));
}
if (*(int *)(this + 0xcc) != 0) {
lefFree(*(void **)(this + 0xd0));
}
if (*(int *)(this + 0xdc) != 0) {
lefFree(*(void **)(this + 0xe0));
lefFree(*(void **)(this + 0xe8));
}
*(int4 *)(this + 0xb8) = 0;
*(int4 *)(this + 0xcc) = 0;
*(int4 *)(this + 0xdc) = 0;
return;
}
|
|
10,002 |
reciprocal_fp
|
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/recip.c
|
static void reciprocal_fp(vec384 out, const vec384 inp)
{
static const vec384 Px8 = { /* left-aligned value of the modulus */
TO_LIMB_T(0xcff7fffffffd5558), TO_LIMB_T(0xf55ffff58a9ffffd),
TO_LIMB_T(0x39869507b587b120), TO_LIMB_T(0x23ba5c279c2895fb),
TO_LIMB_T(0x58dd3db21a5d66bb), TO_LIMB_T(0xd0088f51cbff34d2)
};
#ifdef __BLST_NO_ASM__
# define RRx4 BLS12_381_RR
#else
static const vec384 RRx4 = { /* (4<<768)%P */
TO_LIMB_T(0x5f7e7cd070d107c2), TO_LIMB_T(0xec839a9ac49c13c8),
TO_LIMB_T(0x6933786f44f4ef0b), TO_LIMB_T(0xd6bf8b9c676be983),
TO_LIMB_T(0xd3adaaaa4dcefb06), TO_LIMB_T(0x12601bc1d82bc175)
};
#endif
union { vec768 x; vec384 r[2]; } temp;
ct_inverse_mod_383(temp.x, inp, BLS12_381_P, Px8);
redc_mont_384(temp.r[0], temp.x, BLS12_381_P, p0);
mul_mont_384(temp.r[0], temp.r[0], RRx4, BLS12_381_P, p0);
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
/* sign goes straight to flt_reciprocal */
mul_mont_384(temp.r[1], temp.r[0], inp, BLS12_381_P, p0);
if (vec_is_equal(temp.r[1], BLS12_381_Rx.p, sizeof(vec384)) |
vec_is_zero(temp.r[1], sizeof(vec384)))
vec_copy(out, temp.r[0], sizeof(vec384));
else
flt_reciprocal_fp(out, inp);
#else
vec_copy(out, temp.r[0], sizeof(vec384));
#endif
#undef RRx4
}
|
O2
|
c
|
reciprocal_fp:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
leaq 0x279a3(%rip), %r15 # 0x7fcb0
leaq 0x2955c(%rip), %rcx # 0x81870
leaq -0x90(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x629a0
movabsq $-0x760c000300030003, %r13 # imm = 0x89F3FFFCFFFCFFFD
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x68a20
leaq 0x29558(%rip), %rdx # 0x818a0
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rcx
movq %r13, %r8
callq 0x69120
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r13, %r8
callq 0x69120
leaq 0x27970(%rip), %rsi # 0x7fce8
pushq $0x30
popq %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x52f34
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x510f5
orq %r12, %rax
je 0x583af
leaq -0x90(%rbp), %rsi
pushq $0x30
popq %rdx
movq -0x30(%rbp), %rdi
callq 0x51055
jmp 0x583bb
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x5ba25
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
reciprocal_fp:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r14, rsi
mov [rbp+var_30], rdi
lea r15, BLS12_381_P
lea rcx, reciprocal_fp_Px8
lea r12, [rbp+var_90]
mov rdi, r12
mov rdx, r15
call ct_inverse_mod_383
mov r13, 89F3FFFCFFFCFFFDh
mov rdi, r12
mov rsi, r12
mov rdx, r15
mov rcx, r13
call redc_mont_384
lea rdx, reciprocal_fp_RRx4
mov rdi, r12
mov rsi, r12
mov rcx, r15
mov r8, r13
call mul_mont_384
lea rbx, [rbp+var_60]
mov rdi, rbx
mov rsi, r12
mov rdx, r14
mov rcx, r15
mov r8, r13
call mul_mont_384
lea rsi, BLS12_381_Rx
push 30h ; '0'
pop r15
mov rdi, rbx
mov rdx, r15
call vec_is_equal
mov r12, rax
mov rdi, rbx
mov rsi, r15
call vec_is_zero
or rax, r12
jz short loc_583AF
lea rsi, [rbp+var_90]
push 30h ; '0'
pop rdx
mov rdi, [rbp+var_30]
call vec_copy
jmp short loc_583BB
loc_583AF:
mov rdi, [rbp+var_30]
mov rsi, r14
call _flt_reciprocal_fp
loc_583BB:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long reciprocal_fp(long long a1, long long a2)
{
unsigned long long is_equal; // r12
_BYTE v4[48]; // [rsp+0h] [rbp-90h] BYREF
_BYTE v5[48]; // [rsp+30h] [rbp-60h] BYREF
long long v6; // [rsp+60h] [rbp-30h]
v6 = a1;
ct_inverse_mod_383(v4, a2, &BLS12_381_P, &reciprocal_fp_Px8);
redc_mont_384(v4, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v4, v4, &reciprocal_fp_RRx4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v5, v4, a2, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
is_equal = vec_is_equal((long long)v5, (long long)&BLS12_381_Rx, 0x30uLL);
if ( is_equal | vec_is_zero((long long)v5, 0x30uLL) )
return vec_copy(v6, (long long)v4, 0x30uLL);
else
return flt_reciprocal_fp(v6, a2);
}
|
reciprocal_fp:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RSI
MOV qword ptr [RBP + -0x30],RDI
LEA R15,[0x17fcb0]
LEA RCX,[0x181870]
LEA R12,[RBP + -0x90]
MOV RDI,R12
MOV RDX,R15
CALL 0x001629a0
MOV R13,-0x760c000300030003
MOV RDI,R12
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x00168a20
LEA RDX,[0x1818a0]
MOV RDI,R12
MOV RSI,R12
MOV RCX,R15
MOV R8,R13
CALL 0x00169120
LEA RBX,[RBP + -0x60]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R15
MOV R8,R13
CALL 0x00169120
LEA RSI,[0x17fce8]
PUSH 0x30
POP R15
MOV RDI,RBX
MOV RDX,R15
CALL 0x00152f34
MOV R12,RAX
MOV RDI,RBX
MOV RSI,R15
CALL 0x001510f5
OR RAX,R12
JZ 0x001583af
LEA RSI,[RBP + -0x90]
PUSH 0x30
POP RDX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00151055
JMP 0x001583bb
LAB_001583af:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R14
CALL 0x0015ba25
LAB_001583bb:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void reciprocal_fp(int8 param_1,int8 param_2)
{
long lVar1;
long lVar2;
int1 local_98 [48];
int1 local_68 [48];
int8 local_38;
local_38 = param_1;
ct_inverse_mod_383(local_98,param_2,BLS12_381_P,reciprocal_fp_Px8);
redc_mont_384(local_98,local_98,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_98,local_98,reciprocal_fp_RRx4,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_68,local_98,param_2,BLS12_381_P,0x89f3fffcfffcfffd);
lVar1 = vec_is_equal(local_68,BLS12_381_Rx,0x30);
lVar2 = vec_is_zero(local_68,0x30);
if (lVar2 == 0 && lVar1 == 0) {
flt_reciprocal_fp(local_38,param_2);
}
else {
vec_copy(local_38,local_98,0x30);
}
return;
}
|
|
10,003 |
mysql_stmt_bind_result
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
my_bool STDCALL mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bind)
{
uint i;
if (stmt->state < MYSQL_STMT_PREPARED)
{
SET_CLIENT_STMT_ERROR(stmt, CR_NO_PREPARE_STMT, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->field_count)
{
SET_CLIENT_STMT_ERROR(stmt, CR_NO_STMT_METADATA, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!bind)
return(1);
/* In case of a stored procedure we don't allocate memory for bind
in mysql_stmt_prepare
*/
if (stmt->field_count && !stmt->bind)
{
MA_MEM_ROOT *fields_ma_alloc_root=
&((MADB_STMT_EXTENSION *)stmt->extension)->fields_ma_alloc_root;
if (!(stmt->bind= (MYSQL_BIND *)ma_alloc_root(fields_ma_alloc_root, stmt->field_count * sizeof(MYSQL_BIND))))
{
SET_CLIENT_STMT_ERROR(stmt, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return(1);
}
}
memcpy(stmt->bind, bind, sizeof(MYSQL_BIND) * stmt->field_count);
for (i=0; i < stmt->field_count; i++)
{
if (stmt->mysql->methods->db_supported_buffer_type &&
!stmt->mysql->methods->db_supported_buffer_type(bind[i].buffer_type))
{
SET_CLIENT_STMT_ERROR(stmt, CR_UNSUPPORTED_PARAM_TYPE, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->bind[i].is_null)
stmt->bind[i].is_null= &stmt->bind[i].is_null_value;
if (!stmt->bind[i].length)
stmt->bind[i].length= &stmt->bind[i].length_value;
if (!stmt->bind[i].error)
stmt->bind[i].error= &stmt->bind[i].error_value;
/* set length values for numeric types */
switch(bind[i].buffer_type) {
case MYSQL_TYPE_NULL:
*stmt->bind[i].length= stmt->bind[i].length_value= 0;
break;
case MYSQL_TYPE_TINY:
*stmt->bind[i].length= stmt->bind[i].length_value= 1;
break;
case MYSQL_TYPE_SHORT:
case MYSQL_TYPE_YEAR:
*stmt->bind[i].length= stmt->bind[i].length_value= 2;
break;
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_LONG:
case MYSQL_TYPE_FLOAT:
*stmt->bind[i].length= stmt->bind[i].length_value= 4;
break;
case MYSQL_TYPE_LONGLONG:
case MYSQL_TYPE_DOUBLE:
*stmt->bind[i].length= stmt->bind[i].length_value= 8;
break;
case MYSQL_TYPE_TIME:
case MYSQL_TYPE_DATE:
case MYSQL_TYPE_DATETIME:
case MYSQL_TYPE_TIMESTAMP:
*stmt->bind[i].length= stmt->bind[i].length_value= sizeof(MYSQL_TIME);
break;
default:
break;
}
}
stmt->bind_result_done= 1;
CLEAR_CLIENT_STMT_ERROR(stmt);
return(0);
}
|
O3
|
c
|
mysql_stmt_bind_result:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x50(%rdi)
je 0x2028c
movl 0x60(%rbx), %eax
testq %rax, %rax
je 0x202d2
movq %rsi, %r15
movb $0x1, %r14b
testq %rsi, %rsi
je 0x2032a
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
jne 0x20192
movq 0x340(%rbx), %rdi
imulq $0x70, %rax, %rsi
callq 0x1db33
movq %rax, 0x78(%rbx)
testq %rax, %rax
je 0x20382
movq %rax, %rdi
movl 0x60(%rbx), %eax
movl %eax, %eax
imulq $0x70, %rax, %rdx
movq %r15, %rsi
callq 0x13390
cmpl $0x0, 0x60(%rbx)
je 0x20259
movl $0x50, %r12d
xorl %r13d, %r13d
movq 0x38(%rbx), %rax
movq 0x4d0(%rax), %rax
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x201d6
movl 0x10(%r15,%r12), %edi
callq *%rax
testb %al, %al
je 0x2033c
movq 0x78(%rbx), %rax
cmpq $0x0, -0x48(%rax,%r12)
jne 0x201f1
addq %r12, %rax
addq $0x17, %rax
movq %rax, -0x5f(%rax)
movq 0x78(%rbx), %rax
cmpq $0x0, -0x50(%rax,%r12)
jne 0x20206
leaq (%rax,%r12), %rcx
movq %rcx, -0x50(%rax,%r12)
movq 0x78(%rbx), %rax
cmpq $0x0, -0x38(%rax,%r12)
jne 0x20219
addq %r12, %rax
addq $0x14, %rax
movq %rax, -0x4c(%rax)
movl 0x10(%r15,%r12), %eax
decl %eax
cmpl $0xc, %eax
ja 0x20246
movl %eax, %eax
leaq 0x17e2a(%rip), %rcx # 0x38058
movq (%rcx,%rax,8), %rax
movq 0x78(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq 0x78(%rbx), %rcx
movq -0x50(%rcx,%r12), %rcx
movq %rax, (%rcx)
incq %r13
movl 0x60(%rbx), %eax
addq $0x70, %r12
cmpq %rax, %r13
jb 0x201b3
movb $0x1, 0xe8(%rbx)
movl $0x0, 0x108(%rbx)
movl $0x30303030, 0x30d(%rbx) # imm = 0x30303030
movw $0x30, 0x311(%rbx)
movb $0x0, 0x10c(%rbx)
xorl %r14d, %r14d
jmp 0x2032a
movl $0x7ee, 0x108(%rbx) # imm = 0x7EE
leaq 0x30d(%rbx), %rdi
leaq 0x2875c(%rip), %rax # 0x48a00
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x28747(%rip), %rax # 0x48a10
movq 0xf0(%rax), %rsi
jmp 0x20316
movl $0x804, 0x108(%rbx) # imm = 0x804
leaq 0x30d(%rbx), %rdi
leaq 0x28716(%rip), %rax # 0x48a00
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x28701(%rip), %rax # 0x48a10
movq 0x1a0(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r14b, 0x30b(%rbx)
movb $0x1, %r14b
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x7f4, 0x108(%rbx) # imm = 0x7F4
leaq 0x30d(%rbx), %rdi
leaq 0x286ac(%rip), %rax # 0x48a00
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x28697(%rip), %rax # 0x48a10
movq 0x120(%rax), %rsi
jmp 0x203c3
movl $0x7d8, 0x108(%rbx) # imm = 0x7D8
leaq 0x30d(%rbx), %rdi
leaq 0x28666(%rip), %rax # 0x48a00
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x28651(%rip), %rax # 0x48a10
movq 0x40(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r15b, 0x30b(%rbx)
jmp 0x2032a
|
mysql_stmt_bind_result:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi+50h], 0
jz loc_2028C
mov eax, [rbx+60h]
test rax, rax
jz loc_202D2
mov r15, rsi
mov r14b, 1
test rsi, rsi
jz loc_2032A
mov rdi, [rbx+78h]
test rdi, rdi
jnz short loc_20192
mov rdi, [rbx+340h]
imul rsi, rax, 70h ; 'p'
call ma_alloc_root
mov [rbx+78h], rax
test rax, rax
jz loc_20382
mov rdi, rax
mov eax, [rbx+60h]
loc_20192:
mov eax, eax
imul rdx, rax, 70h ; 'p'
mov rsi, r15
call _memcpy
cmp dword ptr [rbx+60h], 0
jz loc_20259
mov r12d, 50h ; 'P'
xor r13d, r13d
loc_201B3:
mov rax, [rbx+38h]
mov rax, [rax+4D0h]
mov rax, [rax+38h]
test rax, rax
jz short loc_201D6
mov edi, [r15+r12+10h]
call rax
test al, al
jz loc_2033C
loc_201D6:
mov rax, [rbx+78h]
cmp qword ptr [rax+r12-48h], 0
jnz short loc_201F1
add rax, r12
add rax, 17h
mov [rax-5Fh], rax
mov rax, [rbx+78h]
loc_201F1:
cmp qword ptr [rax+r12-50h], 0
jnz short loc_20206
lea rcx, [rax+r12]
mov [rax+r12-50h], rcx
mov rax, [rbx+78h]
loc_20206:
cmp qword ptr [rax+r12-38h], 0
jnz short loc_20219
add rax, r12
add rax, 14h
mov [rax-4Ch], rax
loc_20219:
mov eax, [r15+r12+10h]
dec eax
cmp eax, 0Ch
ja short loc_20246
mov eax, eax
lea rcx, unk_38058
mov rax, [rcx+rax*8]
mov rcx, [rbx+78h]
mov [rcx+r12], rax
mov rcx, [rbx+78h]
mov rcx, [rcx+r12-50h]
mov [rcx], rax
loc_20246:
inc r13
mov eax, [rbx+60h]
add r12, 70h ; 'p'
cmp r13, rax
jb loc_201B3
loc_20259:
mov byte ptr [rbx+0E8h], 1
mov dword ptr [rbx+108h], 0
mov dword ptr [rbx+30Dh], 30303030h
mov word ptr [rbx+311h], 30h ; '0'
mov byte ptr [rbx+10Ch], 0
xor r14d, r14d
jmp loc_2032A
loc_2028C:
mov dword ptr [rbx+108h], 7EEh
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+0F0h]
jmp short loc_20316
loc_202D2:
mov dword ptr [rbx+108h], 804h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+1A0h]
loc_20316:
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r14b
mov r14b, 1
loc_2032A:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2033C:
mov dword ptr [rbx+108h], 7F4h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+120h]
jmp short loc_203C3
loc_20382:
mov dword ptr [rbx+108h], 7D8h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+40h]
loc_203C3:
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r15b
jmp loc_2032A
|
long long mysql_stmt_bind_result(long long a1, long long a2)
{
unsigned int v2; // r14d
char *v4; // rax
char *v5; // rdi
long long v6; // r12
unsigned long long v7; // r13
unsigned __int8 ( *v8)(_QWORD); // rax
long long v9; // rax
unsigned int v10; // eax
long long v11; // rax
long long v12; // rdi
char *v13; // rsi
long long v15; // rdi
char *v16; // rsi
if ( !*(_DWORD *)(a1 + 80) )
{
*(_DWORD *)(a1 + 264) = 2030;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
v2 = 0;
*(_BYTE *)(a1 + 786) = 0;
v12 = a1 + 268;
v13 = client_errors[30];
LABEL_23:
strncpy(v12, v13, 512LL);
*(_BYTE *)(a1 + 779) = 0;
LOBYTE(v2) = 1;
return v2;
}
v4 = (char *)*(unsigned int *)(a1 + 96);
if ( !*(_DWORD *)(a1 + 96) )
{
*(_DWORD *)(a1 + 264) = 2052;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
v2 = 0;
*(_BYTE *)(a1 + 786) = 0;
v12 = a1 + 268;
v13 = client_errors[52];
goto LABEL_23;
}
LOBYTE(v2) = 1;
if ( a2 )
{
v5 = *(char **)(a1 + 120);
if ( !v5 )
{
v4 = ma_alloc_root(*(_QWORD *)(a1 + 832), 112LL * (_QWORD)v4);
*(_QWORD *)(a1 + 120) = v4;
if ( !v4 )
{
*(_DWORD *)(a1 + 264) = 2008;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v15 = a1 + 268;
v16 = client_errors[8];
LABEL_27:
strncpy(v15, v16, 512LL);
*(_BYTE *)(a1 + 779) = 0;
return v2;
}
v5 = v4;
LODWORD(v4) = *(_DWORD *)(a1 + 96);
}
memcpy(v5, a2, 112LL * (unsigned int)v4);
if ( *(_DWORD *)(a1 + 96) )
{
v6 = 80LL;
v7 = 0LL;
while ( 1 )
{
v8 = *(unsigned __int8 ( **)(_QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 56LL);
if ( v8 )
{
if ( !v8(*(unsigned int *)(a2 + v6 + 16)) )
break;
}
v9 = *(_QWORD *)(a1 + 120);
if ( !*(_QWORD *)(v9 + v6 - 72) )
{
*(_QWORD *)(v6 + v9 - 72) = v6 + v9 + 23;
v9 = *(_QWORD *)(a1 + 120);
}
if ( !*(_QWORD *)(v9 + v6 - 80) )
{
*(_QWORD *)(v9 + v6 - 80) = v9 + v6;
v9 = *(_QWORD *)(a1 + 120);
}
if ( !*(_QWORD *)(v9 + v6 - 56) )
*(_QWORD *)(v6 + v9 - 56) = v6 + v9 + 20;
v10 = *(_DWORD *)(a2 + v6 + 16) - 1;
if ( v10 <= 0xC )
{
v11 = qword_38058[v10];
*(_QWORD *)(*(_QWORD *)(a1 + 120) + v6) = v11;
**(_QWORD **)(*(_QWORD *)(a1 + 120) + v6 - 80) = v11;
}
++v7;
v6 += 112LL;
if ( v7 >= *(unsigned int *)(a1 + 96) )
goto LABEL_20;
}
*(_DWORD *)(a1 + 264) = 2036;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v15 = a1 + 268;
v16 = client_errors[36];
goto LABEL_27;
}
LABEL_20:
*(_BYTE *)(a1 + 232) = 1;
*(_DWORD *)(a1 + 264) = 0;
strcpy((char *)(a1 + 781), "00000");
*(_BYTE *)(a1 + 268) = 0;
return 0;
}
return v2;
}
|
mysql_stmt_bind_result:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI + 0x50],0x0
JZ 0x0012028c
MOV EAX,dword ptr [RBX + 0x60]
TEST RAX,RAX
JZ 0x001202d2
MOV R15,RSI
MOV R14B,0x1
TEST RSI,RSI
JZ 0x0012032a
MOV RDI,qword ptr [RBX + 0x78]
TEST RDI,RDI
JNZ 0x00120192
MOV RDI,qword ptr [RBX + 0x340]
IMUL RSI,RAX,0x70
CALL 0x0011db33
MOV qword ptr [RBX + 0x78],RAX
TEST RAX,RAX
JZ 0x00120382
MOV RDI,RAX
MOV EAX,dword ptr [RBX + 0x60]
LAB_00120192:
MOV EAX,EAX
IMUL RDX,RAX,0x70
MOV RSI,R15
CALL 0x00113390
CMP dword ptr [RBX + 0x60],0x0
JZ 0x00120259
MOV R12D,0x50
XOR R13D,R13D
LAB_001201b3:
MOV RAX,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RAX,qword ptr [RAX + 0x38]
TEST RAX,RAX
JZ 0x001201d6
MOV EDI,dword ptr [R15 + R12*0x1 + 0x10]
CALL RAX
TEST AL,AL
JZ 0x0012033c
LAB_001201d6:
MOV RAX,qword ptr [RBX + 0x78]
CMP qword ptr [RAX + R12*0x1 + -0x48],0x0
JNZ 0x001201f1
ADD RAX,R12
ADD RAX,0x17
MOV qword ptr [RAX + -0x5f],RAX
MOV RAX,qword ptr [RBX + 0x78]
LAB_001201f1:
CMP qword ptr [RAX + R12*0x1 + -0x50],0x0
JNZ 0x00120206
LEA RCX,[RAX + R12*0x1]
MOV qword ptr [RAX + R12*0x1 + -0x50],RCX
MOV RAX,qword ptr [RBX + 0x78]
LAB_00120206:
CMP qword ptr [RAX + R12*0x1 + -0x38],0x0
JNZ 0x00120219
ADD RAX,R12
ADD RAX,0x14
MOV qword ptr [RAX + -0x4c],RAX
LAB_00120219:
MOV EAX,dword ptr [R15 + R12*0x1 + 0x10]
DEC EAX
CMP EAX,0xc
JA 0x00120246
MOV EAX,EAX
LEA RCX,[0x138058]
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV RCX,qword ptr [RBX + 0x78]
MOV qword ptr [RCX + R12*0x1],RAX
MOV RCX,qword ptr [RBX + 0x78]
MOV RCX,qword ptr [RCX + R12*0x1 + -0x50]
MOV qword ptr [RCX],RAX
LAB_00120246:
INC R13
MOV EAX,dword ptr [RBX + 0x60]
ADD R12,0x70
CMP R13,RAX
JC 0x001201b3
LAB_00120259:
MOV byte ptr [RBX + 0xe8],0x1
MOV dword ptr [RBX + 0x108],0x0
MOV dword ptr [RBX + 0x30d],0x30303030
MOV word ptr [RBX + 0x311],0x30
MOV byte ptr [RBX + 0x10c],0x0
XOR R14D,R14D
JMP 0x0012032a
LAB_0012028c:
MOV dword ptr [RBX + 0x108],0x7ee
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x148a00]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x148a10]
MOV RSI,qword ptr [RAX + 0xf0]
JMP 0x00120316
LAB_001202d2:
MOV dword ptr [RBX + 0x108],0x804
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x148a00]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x148a10]
MOV RSI,qword ptr [RAX + 0x1a0]
LAB_00120316:
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R14B
MOV R14B,0x1
LAB_0012032a:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012033c:
MOV dword ptr [RBX + 0x108],0x7f4
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x148a00]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x148a10]
MOV RSI,qword ptr [RAX + 0x120]
JMP 0x001203c3
LAB_00120382:
MOV dword ptr [RBX + 0x108],0x7d8
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x148a00]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x148a10]
MOV RSI,qword ptr [RAX + 0x40]
LAB_001203c3:
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R15B
JMP 0x0012032a
|
ulong mysql_stmt_bind_result(long param_1,void *param_2)
{
code *pcVar1;
int8 uVar2;
char cVar3;
uint uVar4;
void *__dest;
long lVar5;
char *pcVar6;
long lVar7;
ulong uVar8;
int8 unaff_R14;
ulong uVar9;
if (*(int *)(param_1 + 0x50) == 0) {
*(int4 *)(param_1 + 0x108) = 0x7ee;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Statement_is_not_prepared_00148b00;
}
else {
uVar8 = (ulong)*(uint *)(param_1 + 0x60);
if (uVar8 != 0) {
uVar9 = CONCAT71((int7)((ulong)unaff_R14 >> 8),1);
if (param_2 != (void *)0x0) {
__dest = *(void **)(param_1 + 0x78);
if (__dest == (void *)0x0) {
__dest = (void *)ma_alloc_root(*(int8 *)(param_1 + 0x340),uVar8 * 0x70);
*(void **)(param_1 + 0x78) = __dest;
if (__dest == (void *)0x0) {
*(int4 *)(param_1 + 0x108) = 0x7d8;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Client_run_out_of_memory_00148a50;
LAB_001203c3:
strncpy((char *)(param_1 + 0x10c),pcVar6,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
goto LAB_0012032a;
}
uVar8 = (ulong)*(uint *)(param_1 + 0x60);
}
memcpy(__dest,param_2,uVar8 * 0x70);
if (*(int *)(param_1 + 0x60) != 0) {
lVar7 = 0x50;
uVar8 = 0;
do {
pcVar1 = *(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x38);
if (pcVar1 != (code *)0x0) {
cVar3 = (*pcVar1)(*(int4 *)((long)param_2 + lVar7 + 0x10));
if (cVar3 == '\0') {
*(int4 *)(param_1 + 0x108) = 0x7f4;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Buffer_type_is_not_supported_00148b30;
goto LAB_001203c3;
}
}
lVar5 = *(long *)(param_1 + 0x78);
if (*(long *)(lVar5 + -0x48 + lVar7) == 0) {
*(long *)(lVar5 + lVar7 + -0x48) = lVar5 + lVar7 + 0x17;
lVar5 = *(long *)(param_1 + 0x78);
}
if (*(long *)(lVar5 + -0x50 + lVar7) == 0) {
*(long *)(lVar5 + -0x50 + lVar7) = lVar5 + lVar7;
lVar5 = *(long *)(param_1 + 0x78);
}
if (*(long *)(lVar5 + -0x38 + lVar7) == 0) {
*(long *)(lVar5 + lVar7 + -0x38) = lVar5 + lVar7 + 0x14;
}
uVar4 = *(int *)((long)param_2 + lVar7 + 0x10) - 1;
if (uVar4 < 0xd) {
uVar2 = *(int8 *)(&DAT_00138058 + (ulong)uVar4 * 8);
*(int8 *)(*(long *)(param_1 + 0x78) + lVar7) = uVar2;
**(int8 **)(*(long *)(param_1 + 0x78) + -0x50 + lVar7) = uVar2;
}
uVar8 = uVar8 + 1;
lVar7 = lVar7 + 0x70;
} while (uVar8 < *(uint *)(param_1 + 0x60));
}
*(int1 *)(param_1 + 0xe8) = 1;
*(int4 *)(param_1 + 0x108) = 0;
*(int4 *)(param_1 + 0x30d) = 0x30303030;
*(int2 *)(param_1 + 0x311) = 0x30;
*(int1 *)(param_1 + 0x10c) = 0;
uVar9 = 0;
}
goto LAB_0012032a;
}
*(int4 *)(param_1 + 0x108) = 0x804;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Prepared_statement_contains_no_m_00148bb0;
}
strncpy((char *)(param_1 + 0x10c),pcVar6,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
uVar9 = 1;
LAB_0012032a:
return uVar9 & 0xffffffff;
}
|
|
10,004 |
booth_encode
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/ec_mult.h
|
static limb_t booth_encode(limb_t wval, size_t sz)
{
limb_t mask = 0 - (wval >> sz); /* "sign" bit -> mask */
launder(mask);
wval = (wval + 1) >> 1;
wval = (wval ^ mask) - mask;
/* &0x1f, but <=0x10, is index in table, rest is extended "sign" bit */
return wval;
}
|
O0
|
c
|
booth_encode:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
shrq %cl, %rax
movq %rax, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
addq $0x1, %rax
shrq %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
xorq -0x18(%rbp), %rax
subq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
|
booth_encode:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
shr rax, cl
mov rcx, rax
xor eax, eax
sub rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
add rax, 1
shr rax, 1
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
xor rax, [rbp+var_18]
sub rax, [rbp+var_18]
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
pop rbp
retn
|
unsigned long long booth_encode(unsigned long long a1, char a2)
{
return (-(long long)(a1 >> a2) ^ ((a1 + 1) >> 1)) + (a1 >> a2);
}
|
booth_encode:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
SHR RAX,CL
MOV RCX,RAX
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
SHR RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
XOR RAX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long booth_encode(ulong param_1,byte param_2)
{
ulong uVar1;
uVar1 = param_1 >> (param_2 & 0x3f);
return (param_1 + 1 >> 1 ^ -uVar1) + uVar1;
}
|
|
10,005 |
string_split(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&)
|
monkey531[P]llama/common/common.cpp
|
std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) {
std::vector<std::string> parts;
size_t start = 0;
size_t end = str.find(delimiter);
while (end != std::string::npos) {
parts.push_back(str.substr(start, end - start));
start = end + delimiter.length();
end = str.find(delimiter, start);
}
parts.push_back(str.substr(start));
return parts;
}
|
O0
|
cpp
|
string_split(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&):
subq $0x98, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movb $0x0, 0x7f(%rsp)
callq 0x630c0
movq $0x0, 0x70(%rsp)
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x5ab80
movq %rax, 0x68(%rsp)
cmpq $-0x1, 0x68(%rsp)
je 0xee71b
movq 0x88(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x68(%rsp), %rcx
subq %rdx, %rcx
leaq 0x48(%rsp), %rdi
callq 0x5b120
jmp 0xee68a
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xf9460
jmp 0xee69b
leaq 0x48(%rsp), %rdi
callq 0x5b568
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
movq 0x80(%rsp), %rdi
callq 0x5aa10
movq %rax, %rcx
movq (%rsp), %rax
addq %rcx, %rax
movq %rax, 0x70(%rsp)
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x5ab80
movq %rax, 0x68(%rsp)
jmp 0xee65d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
jmp 0xee795
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x5b568
jmp 0xee795
movq 0x88(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x18(%rsp), %rdi
movq $-0x1, %rcx
callq 0x5b120
jmp 0xee73b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xf9460
jmp 0xee74c
leaq 0x18(%rsp), %rdi
callq 0x5b568
movb $0x1, 0x7f(%rsp)
testb $0x1, 0x7f(%rsp)
jne 0xee788
jmp 0xee77e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x5b568
jmp 0xee795
movq 0x8(%rsp), %rdi
callq 0x623c0
movq 0x10(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x8(%rsp), %rdi
callq 0x623c0
movq 0x40(%rsp), %rdi
callq 0x5abc0
nopl (%rax)
|
_Z12string_splitRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_:
sub rsp, 98h
mov [rsp+98h+var_90], rdi
mov rax, rdi
mov [rsp+98h+var_88], rax
mov [rsp+98h+var_8], rdi
mov [rsp+98h+var_10], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_19], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov [rsp+98h+var_28], 0
mov rdi, [rsp+98h+var_10]
mov rsi, [rsp+98h+var_18]
xor eax, eax
mov edx, eax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong)
mov [rsp+98h+var_30], rax
loc_EE65D:
cmp [rsp+98h+var_30], 0FFFFFFFFFFFFFFFFh
jz loc_EE71B
mov rsi, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_28]
mov rcx, [rsp+98h+var_30]
sub rcx, rdx
lea rdi, [rsp+98h+var_50]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short $+2
loc_EE68A:
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_50]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_EE69B:
lea rdi, [rsp+98h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+98h+var_30]
mov [rsp+98h+var_98], rax
mov rdi, [rsp+98h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void)
mov rcx, rax
mov rax, [rsp+98h+var_98]
add rax, rcx
mov [rsp+98h+var_28], rax
mov rdi, [rsp+98h+var_10]
mov rsi, [rsp+98h+var_18]
mov rdx, [rsp+98h+var_28]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong)
mov [rsp+98h+var_30], rax
jmp loc_EE65D
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
jmp loc_EE795
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_EE795
loc_EE71B:
mov rsi, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_28]
lea rdi, [rsp+98h+var_80]
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short $+2
loc_EE73B:
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_80]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_EE74C:
lea rdi, [rsp+98h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov [rsp+98h+var_19], 1
test [rsp+98h+var_19], 1
jnz short loc_EE788
jmp short loc_EE77E
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_EE795
loc_EE77E:
mov rdi, [rsp+98h+var_90]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_EE788:
mov rax, [rsp+98h+var_88]
add rsp, 98h
retn
loc_EE795:
mov rdi, [rsp+arg_0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_38]
call __Unwind_Resume
|
long long string_split(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+0h] [rbp-98h]
_BYTE v5[48]; // [rsp+18h] [rbp-80h] BYREF
_BYTE v6[32]; // [rsp+48h] [rbp-50h] BYREF
long long i; // [rsp+68h] [rbp-30h]
long long v8; // [rsp+70h] [rbp-28h]
char v9; // [rsp+7Fh] [rbp-19h]
long long v10; // [rsp+80h] [rbp-18h]
long long v11; // [rsp+88h] [rbp-10h]
long long v12; // [rsp+90h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = 0;
std::vector<std::string>::vector(a1);
v8 = 0LL;
for ( i = std::string::find(a2, v10, 0LL); i != -1; i = std::string::find(v11, v10, v8) )
{
std::string::substr(v6, v11, v8, i - v8);
std::vector<std::string>::push_back(a1, v6);
std::string::~string(v6);
v4 = i;
v8 = std::string::length(v10) + v4;
}
std::string::substr(v5, v11, v8, -1LL);
std::vector<std::string>::push_back(a1, v5);
std::string::~string(v5);
return a1;
}
|
string_split:
SUB RSP,0x98
MOV qword ptr [RSP + 0x8],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV byte ptr [RSP + 0x7f],0x0
CALL 0x001630c0
MOV qword ptr [RSP + 0x70],0x0
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x80]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0015ab80
MOV qword ptr [RSP + 0x68],RAX
LAB_001ee65d:
CMP qword ptr [RSP + 0x68],-0x1
JZ 0x001ee71b
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x68]
SUB RCX,RDX
LAB_001ee67e:
LEA RDI,[RSP + 0x48]
CALL 0x0015b120
JMP 0x001ee68a
LAB_001ee68a:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x48]
CALL 0x001f9460
JMP 0x001ee69b
LAB_001ee69b:
LEA RDI,[RSP + 0x48]
CALL 0x0015b568
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x0015aa10
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
ADD RAX,RCX
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x0015ab80
MOV qword ptr [RSP + 0x68],RAX
JMP 0x001ee65d
LAB_001ee71b:
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x70]
LAB_001ee728:
LEA RDI,[RSP + 0x18]
MOV RCX,-0x1
CALL 0x0015b120
JMP 0x001ee73b
LAB_001ee73b:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x18]
CALL 0x001f9460
LAB_001ee74a:
JMP 0x001ee74c
LAB_001ee74c:
LEA RDI,[RSP + 0x18]
CALL 0x0015b568
MOV byte ptr [RSP + 0x7f],0x1
TEST byte ptr [RSP + 0x7f],0x1
JNZ 0x001ee788
JMP 0x001ee77e
LAB_001ee77e:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001623c0
LAB_001ee788:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x98
RET
|
/* WARNING: Removing unreachable block (ram,0x001ee762) */
/* string_split(std::__cxx11::string const&, std::__cxx11::string const&) */
string * string_split(string *param_1,string *param_2)
{
long lVar1;
ulong in_RDX;
string local_80 [48];
string local_50 [32];
long local_30;
long local_28;
int1 local_19;
ulong local_18;
string *local_10;
string *local_8;
local_19 = 0;
local_18 = in_RDX;
local_10 = param_2;
local_8 = param_1;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1);
local_28 = 0;
local_30 = std::__cxx11::string::find(local_10,local_18);
while (local_30 != -1) {
/* try { // try from 001ee67e to 001ee687 has its CatchHandler @ 001ee6ee */
std::__cxx11::string::substr((ulong)local_50,(ulong)local_10);
/* try { // try from 001ee68a to 001ee698 has its CatchHandler @ 001ee701 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,local_50
);
std::__cxx11::string::~string(local_50);
lVar1 = local_30;
local_28 = std::__cxx11::string::length();
local_28 = lVar1 + local_28;
local_30 = std::__cxx11::string::find(local_10,local_18);
}
/* try { // try from 001ee728 to 001ee738 has its CatchHandler @ 001ee6ee */
std::__cxx11::string::substr((ulong)local_80,(ulong)local_10);
/* try { // try from 001ee73b to 001ee749 has its CatchHandler @ 001ee764 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,local_80);
std::__cxx11::string::~string(local_80);
return param_1;
}
|
|
10,006 |
js_generator_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_generator_finalizer(JSRuntime *rt, JSValue obj)
{
JSGeneratorData *s = JS_GetOpaque(obj, JS_CLASS_GENERATOR);
if (s) {
free_generator_stack_rt(rt, s);
js_free_rt(rt, s);
}
}
|
O1
|
c
|
js_generator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rsp)
cmpl $-0x1, %edx
jne 0x3b385
movq (%rsp), %rax
cmpw $0x2f, 0x6(%rax)
jne 0x3b385
movq 0x30(%rax), %r14
jmp 0x3b388
xorl %r14d, %r14d
testq %r14, %r14
je 0x3b3d3
cmpl $0x4, (%r14)
je 0x3b3a6
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x3b4ca
movl $0x4, (%r14)
decq 0x28(%rbx)
movq %r14, %rdi
callq *0x20(%rbx)
movq 0x10(%rbx), %rcx
movq 0x30(%rbx), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
movq 0x40(%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_generator_finalizer:
push r14
push rbx
push rax
mov rbx, rdi
mov [rsp+18h+var_18], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_3B385
mov rax, [rsp+18h+var_18]
cmp word ptr [rax+6], 2Fh ; '/'
jnz short loc_3B385
mov r14, [rax+30h]
jmp short loc_3B388
loc_3B385:
xor r14d, r14d
loc_3B388:
test r14, r14
jz short loc_3B3D3
cmp dword ptr [r14], 4
jz short loc_3B3A6
lea rsi, [r14+8]
mov rdi, rbx
call async_func_free
mov dword ptr [r14], 4
loc_3B3A6:
dec qword ptr [rbx+28h]
mov rdi, r14
call qword ptr [rbx+20h]
mov rcx, [rbx+10h]
mov rdx, [rbx+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rdx
mov rdi, [rbx+40h]
mov rsi, r14
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3B3D3:
add rsp, 8
pop rbx
pop r14
retn
|
void js_generator_finalizer(long long a1, long long a2, long long a3)
{
_DWORD *v3; // r14
long long v4; // rax
void ( *v5)(_QWORD, _DWORD *); // rcx
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 47 )
v3 = *(_DWORD **)(a2 + 48);
else
v3 = 0LL;
if ( v3 )
{
if ( *v3 != 4 )
{
async_func_free(a1, v3 + 2, a3);
*v3 = 4;
}
--*(_QWORD *)(a1 + 40);
v4 = (*(long long ( **)(_DWORD *))(a1 + 32))(v3);
v5 = *(void ( **)(_QWORD, _DWORD *))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v4 - 8;
v5(*(_QWORD *)(a1 + 64), v3);
}
}
|
js_generator_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JNZ 0x0013b385
MOV RAX,qword ptr [RSP]
CMP word ptr [RAX + 0x6],0x2f
JNZ 0x0013b385
MOV R14,qword ptr [RAX + 0x30]
JMP 0x0013b388
LAB_0013b385:
XOR R14D,R14D
LAB_0013b388:
TEST R14,R14
JZ 0x0013b3d3
CMP dword ptr [R14],0x4
JZ 0x0013b3a6
LEA RSI,[R14 + 0x8]
MOV RDI,RBX
CALL 0x0013b4ca
MOV dword ptr [R14],0x4
LAB_0013b3a6:
DEC qword ptr [RBX + 0x28]
MOV RDI,R14
CALL qword ptr [RBX + 0x20]
MOV RCX,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RBX + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [RBX + 0x30],RDX
MOV RDI,qword ptr [RBX + 0x40]
MOV RSI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
LAB_0013b3d3:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_generator_finalizer(long param_1,long param_2,int param_3)
{
long lVar1;
int *piVar2;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x2f)) {
piVar2 = *(int **)(param_2 + 0x30);
}
else {
piVar2 = (int *)0x0;
}
if (piVar2 != (int *)0x0) {
if (*piVar2 != 4) {
async_func_free(param_1,piVar2 + 2);
*piVar2 = 4;
}
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar1 = (**(code **)(param_1 + 0x20))(piVar2);
lVar1 = (*(long *)(param_1 + 0x30) - lVar1) + -8;
*(long *)(param_1 + 0x30) = lVar1;
/* WARNING: Could not recover jumptable at 0x0013b3d1. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),piVar2,lVar1,*(code **)(param_1 + 0x10));
return;
}
return;
}
|
|
10,007 |
js_generator_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_generator_finalizer(JSRuntime *rt, JSValue obj)
{
JSGeneratorData *s = JS_GetOpaque(obj, JS_CLASS_GENERATOR);
if (s) {
free_generator_stack_rt(rt, s);
js_free_rt(rt, s);
}
}
|
O2
|
c
|
js_generator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
cmpl $-0x1, %edx
jne 0x341b2
cmpw $0x2f, 0x6(%rsi)
jne 0x341b2
movq 0x30(%rsi), %r14
testq %r14, %r14
je 0x341b2
movq %rdi, %rbx
movq %r14, %rsi
callq 0x34257
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x170cb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_generator_finalizer:
push r14
push rbx
push rax
cmp edx, 0FFFFFFFFh
jnz short loc_341B2
cmp word ptr [rsi+6], 2Fh ; '/'
jnz short loc_341B2
mov r14, [rsi+30h]
test r14, r14
jz short loc_341B2
mov rbx, rdi
mov rsi, r14
call free_generator_stack_rt
mov rdi, rbx
mov rsi, r14
add rsp, 8
pop rbx
pop r14
jmp js_free_rt
loc_341B2:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_generator_finalizer(long long a1, long long a2, long long a3)
{
long long v3; // r14
long long result; // rax
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 47 )
{
v3 = *(_QWORD *)(a2 + 48);
if ( v3 )
{
free_generator_stack_rt(a1, *(_QWORD *)(a2 + 48), a3);
return js_free_rt(a1, v3);
}
}
return result;
}
|
js_generator_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
CMP EDX,-0x1
JNZ 0x001341b2
CMP word ptr [RSI + 0x6],0x2f
JNZ 0x001341b2
MOV R14,qword ptr [RSI + 0x30]
TEST R14,R14
JZ 0x001341b2
MOV RBX,RDI
MOV RSI,R14
CALL 0x00134257
MOV RDI,RBX
MOV RSI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001170cb
LAB_001341b2:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_generator_finalizer(int8 param_1,long param_2,int param_3)
{
long lVar1;
if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0x2f)) &&
(lVar1 = *(long *)(param_2 + 0x30), lVar1 != 0)) {
free_generator_stack_rt(param_1,lVar1);
js_free_rt(param_1,lVar1);
return;
}
return;
}
|
|
10,008 |
common_arg::set_env(char const*)
|
llama.cpp/common/arg.cpp
|
common_arg & common_arg::set_env(const char * env) {
help = help + "\n(env: " + env + ")";
this->env = env;
return *this;
}
|
O3
|
cpp
|
common_arg::set_env(char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x90(%rdi), %rsi
movq 0x98(%rdi), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x28d1a
leaq 0xea4ae(%rip), %rsi # 0x113800
movq %r15, %rdi
callq 0x20b40
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x20b40
movq %rax, %r12
leaq 0x38(%rsp), %rdi
movq %rdi, -0x10(%rdi)
movq (%rax), %rax
movq %r12, %r13
addq $0x10, %r13
cmpq %r13, %rax
je 0x29398
movq %rax, 0x28(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %r14
jmp 0x293a9
movq 0x8(%r12), %r14
leaq 0x1(%r14), %rdx
movq %r13, %rsi
callq 0x200f0
movq %rbp, 0x50(%rsp)
leaq 0x28(%rsp), %rdi
movq %r14, 0x8(%rdi)
movq %r13, (%r12)
movq $0x0, 0x8(%r12)
movb $0x0, 0x10(%r12)
leaq 0xf3137(%rip), %rsi # 0x11c508
callq 0x20b40
movq %rax, %r13
movq %rbx, 0x48(%rsp)
leaq 0x90(%rbx), %rbp
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rax
movq %r13, %r15
addq $0x10, %r15
cmpq %r15, %rax
je 0x29411
movq %rax, 0x58(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x68(%rsp)
movq 0x8(%r13), %r12
jmp 0x29425
movq 0x8(%r13), %r12
leaq 0x1(%r12), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x200f0
leaq 0x58(%rsp), %r14
movq %r12, 0x8(%r14)
movq %r15, (%r13)
movq $0x0, 0x8(%r13)
movb $0x0, 0x10(%r13)
movq %rbp, %rdi
movq %r14, %rsi
callq 0x208c0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x2945f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %r14
movq 0x50(%rsp), %r15
movq 0x48(%rsp), %rbx
je 0x2948a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x294a1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
movq %r15, 0x88(%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x294de
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0x294de
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x294fa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
movq %rbx, %rdi
callq 0x20af0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x294ed
jmp 0x294fa
nop
|
_ZN10common_arg7set_envEPKc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbp, rsi
mov rbx, rdi
lea r14, [rsp+0A8h+var_90]
mov [r14-10h], r14
mov rsi, [rdi+90h]
mov rdx, [rdi+98h]
add rdx, rsi
lea r15, [rsp+0A8h+var_A0]
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aEnv; "\n(env: "
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov r12, rax
lea rdi, [rsp+0A8h+var_70]
mov [rdi-10h], rdi
mov rax, [rax]
mov r13, r12
add r13, 10h
cmp rax, r13
jz short loc_29398
mov [rsp+0A8h+var_80], rax
mov rax, [r12+10h]
mov [rsp+0A8h+var_70], rax
mov r14, [r12+8]
jmp short loc_293A9
loc_29398:
mov r14, [r12+8]
lea rdx, [r14+1]
mov rsi, r13
call _memcpy
loc_293A9:
mov [rsp+0A8h+var_58], rbp
lea rdi, [rsp+0A8h+var_80]
mov [rdi+8], r14
mov [r12], r13
mov qword ptr [r12+8], 0
mov byte ptr [r12+10h], 0
lea rsi, aCompreplyCompg_2+3Ah; ")"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov r13, rax
mov [rsp+0A8h+var_60], rbx
lea rbp, [rbx+90h]
lea rbx, [rsp+0A8h+var_40]
mov [rbx-10h], rbx
mov rax, [rax]
mov r15, r13
add r15, 10h
cmp rax, r15
jz short loc_29411
mov [rsp+0A8h+var_50], rax
mov rax, [r13+10h]
mov [rsp+0A8h+var_40], rax
mov r12, [r13+8]
jmp short loc_29425
loc_29411:
mov r12, [r13+8]
lea rdx, [r12+1]
mov rdi, rbx
mov rsi, r15
call _memcpy
loc_29425:
lea r14, [rsp+0A8h+var_50]
mov [r14+8], r12
mov [r13+0], r15
mov qword ptr [r13+8], 0
mov byte ptr [r13+10h], 0
mov rdi, rbp
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, rbx
jz short loc_2945F
mov rsi, [rsp+0A8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2945F:
mov rdi, [rsp+0A8h+var_80]; void *
lea rax, [rsp+0A8h+var_70]
cmp rdi, rax
lea r14, [rsp+0A8h+var_90]
mov r15, [rsp+0A8h+var_58]
mov rbx, [rsp+0A8h+var_60]
jz short loc_2948A
mov rsi, [rsp+0A8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2948A:
mov rdi, [rsp+0A8h+var_A0]; void *
cmp rdi, r14
jz short loc_294A1
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_294A1:
mov [rbx+88h], r15
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
lea rax, [rsp+arg_30]
cmp rdi, rax
jz short loc_294DE
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_294DE
mov rbx, rax
loc_294DE:
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_294FA
loc_294ED:
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_294FA:
mov rdi, rbx
call __Unwind_Resume
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r14
jnz short loc_294ED
jmp short loc_294FA
|
common_arg * common_arg::set_env(common_arg *this, const char *a2)
{
long long v2; // r12
char *v3; // r14
long long v4; // r13
char *v5; // r12
const char *v6; // r15
common_arg *v7; // rbx
void *v9[2]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v10[2]; // [rsp+18h] [rbp-90h] BYREF
void *v11[2]; // [rsp+28h] [rbp-80h] BYREF
_QWORD v12[2]; // [rsp+38h] [rbp-70h] BYREF
common_arg *v13; // [rsp+48h] [rbp-60h]
const char *v14; // [rsp+50h] [rbp-58h]
void *v15[2]; // [rsp+58h] [rbp-50h] BYREF
_QWORD v16[8]; // [rsp+68h] [rbp-40h] BYREF
v9[0] = v10;
std::string::_M_construct<char *>(
(long long)v9,
*((_BYTE **)this + 18),
*((_QWORD *)this + 18) + *((_QWORD *)this + 19));
std::string::append(v9, "\n(env: ");
v2 = std::string::append(v9, a2);
v11[0] = v12;
if ( *(_QWORD *)v2 == v2 + 16 )
{
v3 = *(char **)(v2 + 8);
memcpy(v12, v2 + 16, v3 + 1);
}
else
{
v11[0] = *(void **)v2;
v12[0] = *(_QWORD *)(v2 + 16);
v3 = *(char **)(v2 + 8);
}
v14 = a2;
v11[1] = v3;
*(_QWORD *)v2 = v2 + 16;
*(_QWORD *)(v2 + 8) = 0LL;
*(_BYTE *)(v2 + 16) = 0;
v4 = std::string::append(v11, ")");
v13 = this;
v15[0] = v16;
if ( *(_QWORD *)v4 == v4 + 16 )
{
v5 = *(char **)(v4 + 8);
memcpy(v16, v4 + 16, v5 + 1);
}
else
{
v15[0] = *(void **)v4;
v16[0] = *(_QWORD *)(v4 + 16);
v5 = *(char **)(v4 + 8);
}
v15[1] = v5;
*(_QWORD *)v4 = v4 + 16;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
std::string::operator=((char *)this + 144, v15);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
v6 = v14;
v7 = v13;
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
*((_QWORD *)v7 + 17) = v6;
return v7;
}
|
set_env:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBP,RSI
MOV RBX,RDI
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
MOV RSI,qword ptr [RDI + 0x90]
MOV RDX,qword ptr [RDI + 0x98]
ADD RDX,RSI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x00128d1a
LAB_0012934b:
LEA RSI,[0x213800]
MOV RDI,R15
CALL 0x00120b40
LAB_0012935a:
LEA RDI,[RSP + 0x8]
MOV RSI,RBP
CALL 0x00120b40
LAB_00129367:
MOV R12,RAX
LEA RDI,[RSP + 0x38]
MOV qword ptr [RDI + -0x10],RDI
MOV RAX,qword ptr [RAX]
MOV R13,R12
ADD R13,0x10
CMP RAX,R13
JZ 0x00129398
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [R12 + 0x10]
MOV qword ptr [RSP + 0x38],RAX
MOV R14,qword ptr [R12 + 0x8]
JMP 0x001293a9
LAB_00129398:
MOV R14,qword ptr [R12 + 0x8]
LEA RDX,[R14 + 0x1]
MOV RSI,R13
CALL 0x001200f0
LAB_001293a9:
MOV qword ptr [RSP + 0x50],RBP
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI + 0x8],R14
MOV qword ptr [R12],R13
MOV qword ptr [R12 + 0x8],0x0
MOV byte ptr [R12 + 0x10],0x0
LAB_001293ca:
LEA RSI,[0x21c508]
CALL 0x00120b40
LAB_001293d6:
MOV R13,RAX
MOV qword ptr [RSP + 0x48],RBX
LEA RBP,[RBX + 0x90]
LEA RBX,[RSP + 0x68]
MOV qword ptr [RBX + -0x10],RBX
MOV RAX,qword ptr [RAX]
MOV R15,R13
ADD R15,0x10
CMP RAX,R15
JZ 0x00129411
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [R13 + 0x10]
MOV qword ptr [RSP + 0x68],RAX
MOV R12,qword ptr [R13 + 0x8]
JMP 0x00129425
LAB_00129411:
MOV R12,qword ptr [R13 + 0x8]
LEA RDX,[R12 + 0x1]
MOV RDI,RBX
MOV RSI,R15
CALL 0x001200f0
LAB_00129425:
LEA R14,[RSP + 0x58]
MOV qword ptr [R14 + 0x8],R12
MOV qword ptr [R13],R15
MOV qword ptr [R13 + 0x8],0x0
MOV byte ptr [R13 + 0x10],0x0
MOV RDI,RBP
MOV RSI,R14
CALL 0x001208c0
MOV RDI,qword ptr [R14]
CMP RDI,RBX
JZ 0x0012945f
MOV RSI,qword ptr [RSP + 0x68]
INC RSI
CALL 0x00120180
LAB_0012945f:
MOV RDI,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x38]
CMP RDI,RAX
LEA R14,[RSP + 0x18]
MOV R15,qword ptr [RSP + 0x50]
MOV RBX,qword ptr [RSP + 0x48]
JZ 0x0012948a
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00120180
LAB_0012948a:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x001294a1
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00120180
LAB_001294a1:
MOV qword ptr [RBX + 0x88],R15
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_arg::set_env(char const*) */
common_arg * __thiscall common_arg::set_env(common_arg *this,char *param_1)
{
common_arg *pcVar1;
char *pcVar2;
int8 *puVar3;
long lVar4;
long *plVar5;
long *local_a0 [2];
long local_90 [2];
long *local_80;
long local_78;
long local_70 [2];
common_arg *local_60;
char *local_58;
long *local_50;
long local_48;
long local_40 [2];
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char*>
(local_a0,*(long *)(this + 0x90),*(long *)(this + 0x98) + *(long *)(this + 0x90));
/* try { // try from 0012934b to 00129359 has its CatchHandler @ 00129502 */
std::__cxx11::string::append((char *)local_a0);
/* try { // try from 0012935a to 00129366 has its CatchHandler @ 001294db */
puVar3 = (int8 *)std::__cxx11::string::append((char *)local_a0);
local_80 = local_70;
plVar5 = puVar3 + 2;
if ((long *)*puVar3 == plVar5) {
lVar4 = puVar3[1];
memcpy(local_80,plVar5,lVar4 + 1);
}
else {
local_70[0] = puVar3[2];
lVar4 = puVar3[1];
local_80 = (long *)*puVar3;
}
*puVar3 = plVar5;
puVar3[1] = 0;
*(int1 *)(puVar3 + 2) = 0;
local_78 = lVar4;
local_58 = param_1;
/* try { // try from 001293ca to 001293d5 has its CatchHandler @ 001294ba */
puVar3 = (int8 *)std::__cxx11::string::append((char *)&local_80);
local_50 = (long *)*puVar3;
plVar5 = puVar3 + 2;
local_60 = this;
if (local_50 == plVar5) {
lVar4 = puVar3[1];
local_50 = local_40;
memcpy(local_40,plVar5,lVar4 + 1);
}
else {
local_40[0] = puVar3[2];
lVar4 = puVar3[1];
}
*puVar3 = plVar5;
puVar3[1] = 0;
*(int1 *)(puVar3 + 2) = 0;
local_48 = lVar4;
std::__cxx11::string::operator=((string *)(this + 0x90),(string *)&local_50);
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
pcVar2 = local_58;
pcVar1 = local_60;
if (local_80 != local_70) {
operator_delete(local_80,local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
*(char **)(pcVar1 + 0x88) = pcVar2;
return pcVar1;
}
|
|
10,009 |
sp_add_point_to_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_add_point_to_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order __attribute__((unused)),
double *mbr)
{
double ord;
double *mbr_end= mbr + n_dims * 2;
while (mbr < mbr_end)
{
if ((*wkb) > end - 8)
return -1;
float8get(ord, (const uchar*) *wkb);
(*wkb)+= 8;
if (ord < *mbr)
*mbr= ord;
mbr++;
if (ord > *mbr)
*mbr= ord;
mbr++;
}
return 0;
}
|
O0
|
c
|
sp_add_point_to_mbr:
pushq %rbp
movq %rsp, %rbp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
movq %r8, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl -0x1c(%rbp), %ecx
shll %ecx
movl %ecx, %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x9e05e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
jbe 0x9dfe9
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9e065
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movsd -0x30(%rbp), %xmm1
movq -0x28(%rbp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x9e025
movsd -0x30(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x28(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x28(%rbp)
movsd -0x30(%rbp), %xmm0
movq -0x28(%rbp), %rax
ucomisd (%rax), %xmm0
jbe 0x9e04d
movsd -0x30(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x28(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x28(%rbp)
jmp 0x9dfbe
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
|
sp_add_point_to_mbr:
push rbp
mov rbp, rsp
mov al, cl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_1D], al
mov [rbp+var_28], r8
mov rax, [rbp+var_28]
mov ecx, [rbp+var_1C]
shl ecx, 1
mov ecx, ecx
shl rcx, 3
add rax, rcx
mov [rbp+var_38], rax
loc_9DFBE:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_38]
jnb loc_9E05E
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_18]
add rcx, 0FFFFFFFFFFFFFFF8h
cmp rax, rcx
jbe short loc_9DFE9
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9E065
loc_9DFE9:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 8
mov [rax], rcx
movsd xmm1, [rbp+var_30]
mov rax, [rbp+var_28]
movsd xmm0, qword ptr [rax]
ucomisd xmm0, xmm1
jbe short loc_9E025
movsd xmm0, [rbp+var_30]
mov rax, [rbp+var_28]
movsd qword ptr [rax], xmm0
loc_9E025:
mov rax, [rbp+var_28]
add rax, 8
mov [rbp+var_28], rax
movsd xmm0, [rbp+var_30]
mov rax, [rbp+var_28]
ucomisd xmm0, qword ptr [rax]
jbe short loc_9E04D
movsd xmm0, [rbp+var_30]
mov rax, [rbp+var_28]
movsd qword ptr [rax], xmm0
loc_9E04D:
mov rax, [rbp+var_28]
add rax, 8
mov [rbp+var_28], rax
jmp loc_9DFBE
loc_9E05E:
mov [rbp+var_4], 0
loc_9E065:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long sp_add_point_to_mbr(unsigned long long *a1, long long a2, int a3, long long a4, double *a5)
{
double v6; // [rsp+8h] [rbp-30h]
double *i; // [rsp+10h] [rbp-28h]
double *v8; // [rsp+10h] [rbp-28h]
for ( i = a5; i < &a5[2 * a3]; i = v8 + 1 )
{
if ( *a1 > a2 - 8 )
return (unsigned int)-1;
v6 = *(double *)*a1;
*a1 += 8LL;
if ( *i > v6 )
*i = v6;
v8 = i + 1;
if ( v6 > *v8 )
*v8 = v6;
}
return 0;
}
|
sp_add_point_to_mbr:
PUSH RBP
MOV RBP,RSP
MOV AL,CL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV byte ptr [RBP + -0x1d],AL
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x1c]
SHL ECX,0x1
MOV ECX,ECX
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_0019dfbe:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0019e05e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,-0x8
CMP RAX,RCX
JBE 0x0019dfe9
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019e065
LAB_0019dfe9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x8
MOV qword ptr [RAX],RCX
MOVSD XMM1,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOVSD XMM0,qword ptr [RAX]
UCOMISD XMM0,XMM1
JBE 0x0019e025
MOVSD XMM0,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOVSD qword ptr [RAX],XMM0
LAB_0019e025:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x8
MOV qword ptr [RBP + -0x28],RAX
MOVSD XMM0,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
UCOMISD XMM0,qword ptr [RAX]
JBE 0x0019e04d
MOVSD XMM0,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOVSD qword ptr [RAX],XMM0
LAB_0019e04d:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x8
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0019dfbe
LAB_0019e05e:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019e065:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4
sp_add_point_to_mbr(ulong *param_1,long param_2,int param_3,int8 param_4,double *param_5)
{
double dVar1;
double *pdVar2;
double *local_30;
local_30 = param_5;
while( true ) {
if (param_5 + (uint)(param_3 << 1) <= local_30) {
return 0;
}
if (param_2 - 8U < *param_1) break;
dVar1 = *(double *)*param_1;
*param_1 = *param_1 + 8;
if (dVar1 < *local_30) {
*local_30 = dVar1;
}
pdVar2 = local_30 + 1;
if (*pdVar2 <= dVar1 && dVar1 != *pdVar2) {
*pdVar2 = dVar1;
}
local_30 = local_30 + 2;
}
return 0xffffffff;
}
|
|
10,010 |
ggml_tensor_mean(ggml_tensor*)
|
7CodeWizard[P]stablediffusion/ggml_extend.hpp
|
__STATIC_INLINE__ float ggml_tensor_mean(struct ggml_tensor* src) {
float mean = 0.0f;
int64_t nelements = ggml_nelements(src);
float* data = (float*)src->data;
for (int i = 0; i < nelements; i++) {
mean += data[i] / nelements * 1.0f;
}
return mean;
}
|
O2
|
cpp
|
ggml_tensor_mean(ggml_tensor*):
pushq %rbx
movq %rdi, %rbx
callq 0x67ada
movq 0x118(%rbx), %rcx
cvtsi2ss %rax, %xmm1
xorl %edx, %edx
testq %rax, %rax
cmovleq %rdx, %rax
xorps %xmm0, %xmm0
cmpq %rdx, %rax
je 0x1d0a2
movss (%rcx,%rdx,4), %xmm2
divss %xmm1, %xmm2
addss %xmm2, %xmm0
incq %rdx
jmp 0x1d08b
popq %rbx
retq
|
_ZL16ggml_tensor_meanP11ggml_tensor:
push rbx
mov rbx, rdi
call ggml_nelements
mov rcx, [rbx+118h]
cvtsi2ss xmm1, rax
xor edx, edx
test rax, rax
cmovle rax, rdx
xorps xmm0, xmm0
loc_1D08B:
cmp rax, rdx
jz short loc_1D0A2
movss xmm2, dword ptr [rcx+rdx*4]
divss xmm2, xmm1
addss xmm0, xmm2
inc rdx
jmp short loc_1D08B
loc_1D0A2:
pop rbx
retn
|
long long ggml_tensor_mean(long long a1)
{
long long result; // rax
float v2; // xmm1_4
long long v3; // rdx
float v4; // xmm0_4
result = ggml_nelements();
v2 = (float)(int)result;
v3 = 0LL;
if ( result <= 0 )
result = 0LL;
v4 = 0.0;
while ( result != v3 )
v4 = v4 + (float)(*(float *)(*(_QWORD *)(a1 + 280) + 4 * v3++) / v2);
return result;
}
|
ggml_tensor_mean:
PUSH RBX
MOV RBX,RDI
CALL 0x00167ada
MOV RCX,qword ptr [RBX + 0x118]
CVTSI2SS XMM1,RAX
XOR EDX,EDX
TEST RAX,RAX
CMOVLE RAX,RDX
XORPS XMM0,XMM0
LAB_0011d08b:
CMP RAX,RDX
JZ 0x0011d0a2
MOVSS XMM2,dword ptr [RCX + RDX*0x4]
DIVSS XMM2,XMM1
ADDSS XMM0,XMM2
INC RDX
JMP 0x0011d08b
LAB_0011d0a2:
POP RBX
RET
|
/* ggml_tensor_mean(ggml_tensor*) */
float ggml_tensor_mean(ggml_tensor *param_1)
{
long lVar1;
long lVar2;
long lVar3;
float fVar4;
lVar1 = ggml_nelements();
lVar3 = 0;
lVar2 = lVar1;
if (lVar1 < 1) {
lVar2 = lVar3;
}
fVar4 = 0.0;
for (; lVar2 != lVar3; lVar3 = lVar3 + 1) {
fVar4 = fVar4 + *(float *)(*(long *)(param_1 + 0x118) + lVar3 * 4) / (float)lVar1;
}
return fVar4;
}
|
|
10,011 |
Settings::allSlaveShipsSunk() const
|
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
|
bool Settings::allSlaveShipsSunk() const {
std::lock_guard<std::mutex> lock(settings_mutex);
for (const auto& ship : slaveShips) {
if (!ship.isSunk()) return false;
}
return true;
}
|
O1
|
cpp
|
Settings::allSlaveShipsSunk() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5500
testl %eax, %eax
jne 0x7295
movq 0xa8(%rbx), %r14
movq 0xb0(%rbx), %r15
cmpq %r15, %r14
sete %bpl
je 0x727c
movq %r14, %rdi
callq 0x155d2
testb %al, %al
je 0x727c
addq $0x40, %r14
jmp 0x7261
movq %rbx, %rdi
callq 0x52d0
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x5260
movq %rax, %r14
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x55e0
nop
|
_ZNK8Settings17allSlaveShipsSunkEv:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz short loc_7295
mov r14, [rbx+0A8h]
mov r15, [rbx+0B0h]
loc_7261:
cmp r14, r15
setz bpl
jz short loc_727C
mov rdi, r14; this
call _ZNK4Ship6isSunkEv; Ship::isSunk(void)
test al, al
jz short loc_727C
add r14, 40h ; '@'
jmp short loc_7261
loc_727C:
mov rdi, rbx
call _pthread_mutex_unlock
and bpl, 1
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_7295:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov r14, rax
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
|
long long Settings::allSlaveShipsSunk(Ship **this)
{
unsigned int v1; // ebp
int v2; // eax
Ship *v3; // r14
Ship *v4; // r15
v2 = pthread_mutex_lock(this);
if ( v2 )
std::__throw_system_error(v2);
v3 = this[21];
v4 = this[22];
while ( v3 != v4 && (unsigned __int8)Ship::isSunk(v3) )
v3 = (Ship *)((char *)v3 + 64);
pthread_mutex_unlock(this);
LOBYTE(v1) = v3 == v4;
return v1;
}
|
allSlaveShipsSunk:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00105500
TEST EAX,EAX
JNZ 0x00107295
MOV R14,qword ptr [RBX + 0xa8]
MOV R15,qword ptr [RBX + 0xb0]
LAB_00107261:
CMP R14,R15
SETZ BPL
JZ 0x0010727c
LAB_0010726a:
MOV RDI,R14
CALL 0x001155d2
LAB_00107272:
TEST AL,AL
JZ 0x0010727c
ADD R14,0x40
JMP 0x00107261
LAB_0010727c:
MOV RDI,RBX
CALL 0x001052d0
AND BPL,0x1
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00107295:
MOV EDI,EAX
CALL 0x00105260
|
/* Settings::allSlaveShipsSunk() const */
ulong __thiscall Settings::allSlaveShipsSunk(Settings *this)
{
Ship *pSVar1;
char cVar2;
int iVar3;
int8 unaff_RBP;
int7 uVar4;
Ship *this_00;
bool bVar5;
iVar3 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
this_00 = *(Ship **)(this + 0xa8);
pSVar1 = *(Ship **)(this + 0xb0);
while( true ) {
bVar5 = this_00 == pSVar1;
uVar4 = (int7)((ulong)unaff_RBP >> 8);
unaff_RBP = CONCAT71(uVar4,bVar5);
if (bVar5) break;
/* try { // try from 0010726a to 00107271 has its CatchHandler @ 0010729c */
cVar2 = Ship::isSunk(this_00);
if (cVar2 == '\0') break;
this_00 = this_00 + 0x40;
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return CONCAT71(uVar4,bVar5) & 0xffffffff;
}
|
|
10,012 |
Settings::allSlaveShipsSunk() const
|
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
|
bool Settings::allSlaveShipsSunk() const {
std::lock_guard<std::mutex> lock(settings_mutex);
for (const auto& ship : slaveShips) {
if (!ship.isSunk()) return false;
}
return true;
}
|
O2
|
cpp
|
Settings::allSlaveShipsSunk() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x6e34
movq 0xa8(%rbx), %rcx
movq 0xb0(%rbx), %r15
movq %rcx, %r14
cmpq %r15, %rcx
je 0x6a07
movq %r14, %rdi
callq 0x135ea
leaq 0x40(%r14), %rcx
testb %al, %al
jne 0x69ef
cmpq %r15, %r14
sete %bpl
movq %rbx, %rdi
callq 0x52c0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x52c0
movq %r14, %rdi
callq 0x5590
|
_ZNK8Settings17allSlaveShipsSunkEv:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call _ZNSt5mutex4lockEv; std::mutex::lock(void)
mov rcx, [rbx+0A8h]
mov r15, [rbx+0B0h]
loc_69EF:
mov r14, rcx
cmp rcx, r15
jz short loc_6A07
mov rdi, r14; this
call _ZNK4Ship6isSunkEv; Ship::isSunk(void)
lea rcx, [r14+40h]
test al, al
jnz short loc_69EF
loc_6A07:
cmp r14, r15
setz bpl
mov rdi, rbx
call _pthread_mutex_unlock
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
|
long long Settings::allSlaveShipsSunk(Ship **this)
{
unsigned int v1; // ebp
Ship *v2; // rcx
Ship *v3; // r15
Ship *v4; // r14
char isSunk; // al
std::mutex::lock((std::mutex *)this);
v2 = this[21];
v3 = this[22];
do
{
v4 = v2;
if ( v2 == v3 )
break;
isSunk = Ship::isSunk(v2);
v2 = (Ship *)((char *)v4 + 64);
}
while ( isSunk );
LOBYTE(v1) = v4 == v3;
pthread_mutex_unlock(this);
return v1;
}
|
allSlaveShipsSunk:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00106e34
MOV RCX,qword ptr [RBX + 0xa8]
MOV R15,qword ptr [RBX + 0xb0]
LAB_001069ef:
MOV R14,RCX
CMP RCX,R15
JZ 0x00106a07
LAB_001069f7:
MOV RDI,R14
CALL 0x001135ea
LAB_001069ff:
LEA RCX,[R14 + 0x40]
TEST AL,AL
JNZ 0x001069ef
LAB_00106a07:
CMP R14,R15
SETZ BPL
MOV RDI,RBX
CALL 0x001052c0
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* Settings::allSlaveShipsSunk() const */
ulong __thiscall Settings::allSlaveShipsSunk(Settings *this)
{
Ship *pSVar1;
Ship *pSVar2;
char cVar3;
Ship *this_00;
int8 unaff_RBP;
std::mutex::lock();
pSVar1 = *(Ship **)(this + 0xb0);
pSVar2 = *(Ship **)(this + 0xa8);
do {
this_00 = pSVar2;
if (this_00 == pSVar1) break;
/* try { // try from 001069f7 to 001069fe has its CatchHandler @ 00106a23 */
cVar3 = Ship::isSunk(this_00);
pSVar2 = this_00 + 0x40;
} while (cVar3 != '\0');
pthread_mutex_unlock((pthread_mutex_t *)this);
return CONCAT71((int7)((ulong)unaff_RBP >> 8),this_00 == pSVar1) & 0xffffffff;
}
|
|
10,013 |
minja::IfTemplateToken::~IfTemplateToken()
|
monkey531[P]llama/common/minja.hpp
|
IfTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && c) : TemplateToken(Type::If, location, pre, post), condition(std::move(c)) {}
|
O1
|
cpp
|
minja::IfTemplateToken::~IfTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x9548d(%rip), %rax # 0x132b40
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x9d6c8
callq 0x720e2
leaq 0x94c29(%rip), %rax # 0x1322f8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x9d6e4
callq 0x720e2
movl $0x40, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x1b940
|
_ZN5minja15IfTemplateTokenD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja15IfTemplateTokenE; `vtable for'minja::IfTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_9D6C8
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D6C8:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_9D6E4
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D6E4:
mov esi, 40h ; '@'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
|
void minja::IfTemplateToken::~IfTemplateToken(minja::IfTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::IfTemplateToken + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x40uLL);
}
|
~IfTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x232b40]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x0019d6c8
CALL 0x001720e2
LAB_0019d6c8:
LEA RAX,[0x2322f8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0019d6e4
CALL 0x001720e2
LAB_0019d6e4:
MOV ESI,0x40
MOV RDI,RBX
POP RBX
JMP 0x0011b940
|
/* minja::IfTemplateToken::~IfTemplateToken() */
void __thiscall minja::IfTemplateToken::~IfTemplateToken(IfTemplateToken *this)
{
*(int ***)this = &PTR__IfTemplateToken_00232b50;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_00232308;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
}
operator_delete(this,0x40);
return;
}
|
|
10,014 |
my_rw_init
|
eloqsql/mysys/thr_rwlock.c
|
int my_rw_init(my_rw_lock_t *rwp)
{
pthread_condattr_t cond_attr;
pthread_mutex_init( &rwp->lock, MY_MUTEX_INIT_FAST);
pthread_condattr_init( &cond_attr );
pthread_cond_init( &rwp->readers, &cond_attr );
pthread_cond_init( &rwp->writers, &cond_attr );
pthread_condattr_destroy(&cond_attr);
rwp->state = 0;
rwp->waiters = 0;
#ifdef SAFE_MUTEX
rwp->write_thread = 0;
#endif
return(0);
}
|
O3
|
c
|
my_rw_init:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x347deb(%rip), %rsi # 0x379cd0
callq 0x24550
leaq -0x14(%rbp), %r14
movq %r14, %rdi
callq 0x24090
leaq 0x28(%rbx), %rdi
movq %r14, %rsi
callq 0x24460
leaq 0x58(%rbx), %rdi
movq %r14, %rsi
callq 0x24460
movq %r14, %rdi
callq 0x241d0
movq $0x0, 0x88(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
|
my_rw_init:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
lea rsi, my_fast_mutexattr
call _pthread_mutex_init
lea r14, [rbp+var_14]
mov rdi, r14
call _pthread_condattr_init
lea rdi, [rbx+28h]
mov rsi, r14
call _pthread_cond_init
lea rdi, [rbx+58h]
mov rsi, r14
call _pthread_cond_init
mov rdi, r14
call _pthread_condattr_destroy
mov qword ptr [rbx+88h], 0
xor eax, eax
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
|
long long my_rw_init(long long a1)
{
_BYTE v2[20]; // [rsp+Ch] [rbp-14h] BYREF
pthread_mutex_init(a1, &my_fast_mutexattr);
pthread_condattr_init(v2);
pthread_cond_init(a1 + 40, v2);
pthread_cond_init(a1 + 88, v2);
pthread_condattr_destroy(v2);
*(_QWORD *)(a1 + 136) = 0LL;
return 0LL;
}
|
my_rw_init:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
LEA RSI,[0x479cd0]
CALL 0x00124550
LEA R14,[RBP + -0x14]
MOV RDI,R14
CALL 0x00124090
LEA RDI,[RBX + 0x28]
MOV RSI,R14
CALL 0x00124460
LEA RDI,[RBX + 0x58]
MOV RSI,R14
CALL 0x00124460
MOV RDI,R14
CALL 0x001241d0
MOV qword ptr [RBX + 0x88],0x0
XOR EAX,EAX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_init(pthread_mutex_t *param_1)
{
pthread_condattr_t local_1c;
pthread_mutex_init(param_1,(pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_condattr_init(&local_1c);
pthread_cond_init((pthread_cond_t *)(param_1 + 1),&local_1c);
pthread_cond_init((pthread_cond_t *)((long)param_1 + 0x58),&local_1c);
pthread_condattr_destroy(&local_1c);
*(int8 *)((long)param_1 + 0x88) = 0;
return 0;
}
|
|
10,015 |
js_new_function_def
|
bluesky950520[P]quickjs/quickjs.c
|
static JSFunctionDef *js_new_function_def(JSContext *ctx,
JSFunctionDef *parent,
BOOL is_eval,
BOOL is_func_expr,
const char *filename,
int line_num,
int col_num)
{
JSFunctionDef *fd;
fd = js_mallocz(ctx, sizeof(*fd));
if (!fd)
return NULL;
fd->ctx = ctx;
init_list_head(&fd->child_list);
/* insert in parent list */
fd->parent = parent;
fd->parent_cpool_idx = -1;
if (parent) {
list_add_tail(&fd->link, &parent->child_list);
fd->is_strict_mode = parent->is_strict_mode;
fd->parent_scope_level = parent->scope_level;
}
fd->is_eval = is_eval;
fd->is_func_expr = is_func_expr;
js_dbuf_init(ctx, &fd->byte_code);
fd->last_opcode_pos = -1;
fd->func_name = JS_ATOM_NULL;
fd->var_object_idx = -1;
fd->arg_var_object_idx = -1;
fd->arguments_var_idx = -1;
fd->arguments_arg_idx = -1;
fd->func_var_idx = -1;
fd->eval_ret_idx = -1;
fd->this_var_idx = -1;
fd->new_target_var_idx = -1;
fd->this_active_func_var_idx = -1;
fd->home_object_var_idx = -1;
/* XXX: should distinguish arg, var and var object and body scopes */
fd->scopes = fd->def_scope_array;
fd->scope_size = countof(fd->def_scope_array);
fd->scope_count = 1;
fd->scopes[0].first = -1;
fd->scopes[0].parent = -1;
fd->scope_level = 0; /* 0: var/arg scope */
fd->scope_first = -1;
fd->body_scope = -1;
fd->filename = JS_NewAtom(ctx, filename);
fd->line_num = line_num;
fd->col_num = col_num;
js_dbuf_init(ctx, &fd->pc2line);
//fd->pc2line_last_line_num = line_num;
//fd->pc2line_last_pc = 0;
fd->ic = init_ic(ctx);
return fd;
}
|
O2
|
c
|
js_new_function_def:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, 0x4(%rsp)
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r13d
movq %rsi, %rbp
movq %rdi, %r14
movl $0x238, %esi # imm = 0x238
callq 0x17241
movq %rax, %rbx
testq %rax, %rax
je 0x4b955
movq %r14, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rbx)
movq %rax, 0x20(%rbx)
movq %rbp, 0x8(%rbx)
orl $-0x1, 0x10(%rbx)
testq %rbp, %rbp
je 0x4b86a
leaq 0x28(%rbx), %rax
leaq 0x18(%rbp), %rcx
movq 0x18(%rbp), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, 0x28(%rbx)
movq %rcx, 0x30(%rbx)
movq %rax, 0x18(%rbp)
movl $0xffff8000, %eax # imm = 0xFFFF8000
andl 0x84(%rbp), %eax
movzwl 0x84(%rbx), %ecx
andl $0x7fff, %ecx # imm = 0x7FFF
orl %eax, %ecx
movw %cx, 0x84(%rbx)
movl 0xe8(%rbp), %eax
movl %eax, 0x14(%rbx)
movl %r13d, 0x38(%rbx)
movl %r12d, 0x44(%rbx)
leaq 0x138(%rbx), %rsi
movq %r14, %rdi
callq 0x29e23
orl $-0x1, 0x168(%rbx)
andl $0x0, 0x88(%rbx)
leaq 0x100(%rbx), %rax
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0xbc(%rbx)
movdqu %xmm0, 0xcc(%rbx)
orq $-0x1, 0xdc(%rbx)
movq %rax, 0xf8(%rbx)
orq $-0x1, 0x100(%rbx)
movaps 0x39e78(%rip), %xmm0 # 0x85740
movups %xmm0, 0xe8(%rbx)
orl $-0x1, 0x120(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a471
movl %eax, 0x1d4(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x1d8(%rbx)
movl 0x40(%rsp), %eax
movl %eax, 0x1dc(%rbx)
movq %rbx, %rsi
addq $0x1e0, %rsi # imm = 0x1E0
movq %r14, %rdi
callq 0x29e23
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x17214
movq %rax, %r15
testq %rax, %rax
je 0x4b967
movabsq $0x400000000, %rax # imm = 0x400000000
movq %rax, (%r15)
movl $0x2, 0x8(%r15)
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x17241
movq %rax, 0x10(%r15)
testq %rax, %rax
je 0x4b967
andq $0x0, 0x18(%r15)
movq %r15, 0x230(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r15, %rsi
callq 0x1726e
xorl %r15d, %r15d
jmp 0x4b94e
|
js_new_function_def:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_34], r9d
mov r15, r8
mov r12d, ecx
mov r13d, edx
mov rbp, rsi
mov r14, rdi
mov esi, 238h
call js_mallocz
mov rbx, rax
test rax, rax
jz loc_4B955
mov [rbx], r14
lea rax, [rbx+18h]
mov [rbx+18h], rax
mov [rbx+20h], rax
mov [rbx+8], rbp
or dword ptr [rbx+10h], 0FFFFFFFFh
test rbp, rbp
jz short loc_4B86A
lea rax, [rbx+28h]
lea rcx, [rbp+18h]
mov rdx, [rbp+18h]
mov [rdx+8], rax
mov [rbx+28h], rdx
mov [rbx+30h], rcx
mov [rbp+18h], rax
mov eax, 0FFFF8000h
and eax, [rbp+84h]
movzx ecx, word ptr [rbx+84h]
and ecx, 7FFFh
or ecx, eax
mov [rbx+84h], cx
mov eax, [rbp+0E8h]
mov [rbx+14h], eax
loc_4B86A:
mov [rbx+38h], r13d
mov [rbx+44h], r12d
lea rsi, [rbx+138h]
mov rdi, r14
call js_dbuf_init
or dword ptr [rbx+168h], 0FFFFFFFFh
and dword ptr [rbx+88h], 0
lea rax, [rbx+100h]
pcmpeqd xmm0, xmm0
movdqu xmmword ptr [rbx+0BCh], xmm0
movdqu xmmword ptr [rbx+0CCh], xmm0
or qword ptr [rbx+0DCh], 0FFFFFFFFFFFFFFFFh
mov [rbx+0F8h], rax
or qword ptr [rbx+100h], 0FFFFFFFFFFFFFFFFh
movaps xmm0, cs:xmmword_85740
movups xmmword ptr [rbx+0E8h], xmm0
or dword ptr [rbx+120h], 0FFFFFFFFh
mov rdi, r14
mov rsi, r15
call JS_NewAtom
mov [rbx+1D4h], eax
mov eax, [rsp+38h+var_34]
mov [rbx+1D8h], eax
mov eax, [rsp+38h+arg_0]
mov [rbx+1DCh], eax
mov rsi, rbx
add rsi, 1E0h
mov rdi, r14
call js_dbuf_init
push 20h ; ' '
pop rsi
mov rdi, r14
call js_malloc
mov r15, rax
test rax, rax
jz short loc_4B967
mov rax, 400000000h
mov [r15], rax
mov dword ptr [r15+8], 2
push 20h ; ' '
pop rsi
mov rdi, r14
call js_mallocz
mov [r15+10h], rax
test rax, rax
jz short loc_4B967
and qword ptr [r15+18h], 0
loc_4B94E:
mov [rbx+230h], r15
loc_4B955:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4B967:
mov rdi, r14
mov rsi, r15
call js_free
xor r15d, r15d
jmp short loc_4B94E
|
long long js_new_function_def(long long a1, long long a2, int a3, int a4, unsigned __int8 *a5, int a6, int a7)
{
long long v10; // rax
long long v11; // rbx
long long v12; // rdx
long long v13; // r15
long long v14; // rax
v10 = js_mallocz(a1, 0x238uLL);
v11 = v10;
if ( v10 )
{
*(_QWORD *)v10 = a1;
*(_QWORD *)(v10 + 24) = v10 + 24;
*(_QWORD *)(v10 + 32) = v10 + 24;
*(_QWORD *)(v10 + 8) = a2;
*(_DWORD *)(v10 + 16) = -1;
if ( a2 )
{
v12 = *(_QWORD *)(a2 + 24);
*(_QWORD *)(v12 + 8) = v10 + 40;
*(_QWORD *)(v10 + 40) = v12;
*(_QWORD *)(v10 + 48) = a2 + 24;
*(_QWORD *)(a2 + 24) = v10 + 40;
*(_WORD *)(v10 + 132) = *(_WORD *)(a2 + 132) & 0x8000 | *(_WORD *)(v10 + 132) & 0x7FFF;
*(_DWORD *)(v10 + 20) = *(_DWORD *)(a2 + 232);
}
*(_DWORD *)(v10 + 56) = a3;
*(_DWORD *)(v10 + 68) = a4;
js_dbuf_init(a1, v10 + 312);
*(_DWORD *)(v11 + 360) = -1;
*(_DWORD *)(v11 + 136) = 0;
*(_OWORD *)(v11 + 188) = -1LL;
*(_OWORD *)(v11 + 204) = -1LL;
*(_QWORD *)(v11 + 220) = -1LL;
*(_QWORD *)(v11 + 248) = v11 + 256;
*(_QWORD *)(v11 + 256) = -1LL;
*(_OWORD *)(v11 + 232) = xmmword_85740;
*(_DWORD *)(v11 + 288) = -1;
*(_DWORD *)(v11 + 468) = JS_NewAtom(a1, a5);
*(_DWORD *)(v11 + 472) = a6;
*(_DWORD *)(v11 + 476) = a7;
js_dbuf_init(a1, v11 + 480);
v13 = js_malloc(a1, 32LL);
if ( v13
&& (*(_QWORD *)v13 = 0x400000000LL,
*(_DWORD *)(v13 + 8) = 2,
v14 = js_mallocz(a1, 0x20uLL),
(*(_QWORD *)(v13 + 16) = v14) != 0LL) )
{
*(_QWORD *)(v13 + 24) = 0LL;
}
else
{
js_free(a1, v13);
v13 = 0LL;
}
*(_QWORD *)(v11 + 560) = v13;
}
return v11;
}
|
js_new_function_def:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RSP + 0x4],R9D
MOV R15,R8
MOV R12D,ECX
MOV R13D,EDX
MOV RBP,RSI
MOV R14,RDI
MOV ESI,0x238
CALL 0x00117241
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0014b955
MOV qword ptr [RBX],R14
LEA RAX,[RBX + 0x18]
MOV qword ptr [RBX + 0x18],RAX
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x8],RBP
OR dword ptr [RBX + 0x10],0xffffffff
TEST RBP,RBP
JZ 0x0014b86a
LEA RAX,[RBX + 0x28]
LEA RCX,[RBP + 0x18]
MOV RDX,qword ptr [RBP + 0x18]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RBX + 0x28],RDX
MOV qword ptr [RBX + 0x30],RCX
MOV qword ptr [RBP + 0x18],RAX
MOV EAX,0xffff8000
AND EAX,dword ptr [RBP + 0x84]
MOVZX ECX,word ptr [RBX + 0x84]
AND ECX,0x7fff
OR ECX,EAX
MOV word ptr [RBX + 0x84],CX
MOV EAX,dword ptr [RBP + 0xe8]
MOV dword ptr [RBX + 0x14],EAX
LAB_0014b86a:
MOV dword ptr [RBX + 0x38],R13D
MOV dword ptr [RBX + 0x44],R12D
LEA RSI,[RBX + 0x138]
MOV RDI,R14
CALL 0x00129e23
OR dword ptr [RBX + 0x168],0xffffffff
AND dword ptr [RBX + 0x88],0x0
LEA RAX,[RBX + 0x100]
PCMPEQD XMM0,XMM0
MOVDQU xmmword ptr [RBX + 0xbc],XMM0
MOVDQU xmmword ptr [RBX + 0xcc],XMM0
OR qword ptr [RBX + 0xdc],-0x1
MOV qword ptr [RBX + 0xf8],RAX
OR qword ptr [RBX + 0x100],-0x1
MOVAPS XMM0,xmmword ptr [0x00185740]
MOVUPS xmmword ptr [RBX + 0xe8],XMM0
OR dword ptr [RBX + 0x120],0xffffffff
MOV RDI,R14
MOV RSI,R15
CALL 0x0011a471
MOV dword ptr [RBX + 0x1d4],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RBX + 0x1d8],EAX
MOV EAX,dword ptr [RSP + 0x40]
MOV dword ptr [RBX + 0x1dc],EAX
MOV RSI,RBX
ADD RSI,0x1e0
MOV RDI,R14
CALL 0x00129e23
PUSH 0x20
POP RSI
MOV RDI,R14
CALL 0x00117214
MOV R15,RAX
TEST RAX,RAX
JZ 0x0014b967
MOV RAX,0x400000000
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0x8],0x2
PUSH 0x20
POP RSI
MOV RDI,R14
CALL 0x00117241
MOV qword ptr [R15 + 0x10],RAX
TEST RAX,RAX
JZ 0x0014b967
AND qword ptr [R15 + 0x18],0x0
LAB_0014b94e:
MOV qword ptr [RBX + 0x230],R15
LAB_0014b955:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014b967:
MOV RDI,R14
MOV RSI,R15
CALL 0x0011726e
XOR R15D,R15D
JMP 0x0014b94e
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 *
js_new_function_def(int8 param_1,long param_2,int4 param_3,int4 param_4,
int8 param_5,int4 param_6,int4 param_7)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int8 *puVar4;
int8 *puVar5;
long lVar6;
puVar4 = (int8 *)js_mallocz(param_1,0x238);
if (puVar4 == (int8 *)0x0) {
return (int8 *)0x0;
}
*puVar4 = param_1;
puVar4[3] = puVar4 + 3;
puVar4[4] = puVar4 + 3;
puVar4[1] = param_2;
*(int4 *)(puVar4 + 2) = 0xffffffff;
if (param_2 != 0) {
lVar6 = *(long *)(param_2 + 0x18);
*(int8 **)(lVar6 + 8) = puVar4 + 5;
puVar4[5] = lVar6;
puVar4[6] = param_2 + 0x18;
*(int8 **)(param_2 + 0x18) = puVar4 + 5;
*(ushort *)((long)puVar4 + 0x84) =
*(ushort *)((long)puVar4 + 0x84) & 0x7fff |
(ushort)*(int4 *)(param_2 + 0x84) & 0x8000;
*(int4 *)((long)puVar4 + 0x14) = *(int4 *)(param_2 + 0xe8);
}
*(int4 *)(puVar4 + 7) = param_3;
*(int4 *)((long)puVar4 + 0x44) = param_4;
js_dbuf_init(param_1,puVar4 + 0x27);
*(int4 *)(puVar4 + 0x2d) = 0xffffffff;
*(int4 *)(puVar4 + 0x11) = 0;
*(int4 *)((long)puVar4 + 0xbc) = 0xffffffff;
*(int4 *)(puVar4 + 0x18) = 0xffffffff;
*(int4 *)((long)puVar4 + 0xc4) = 0xffffffff;
*(int4 *)(puVar4 + 0x19) = 0xffffffff;
*(int4 *)((long)puVar4 + 0xcc) = 0xffffffff;
*(int4 *)(puVar4 + 0x1a) = 0xffffffff;
*(int4 *)((long)puVar4 + 0xd4) = 0xffffffff;
*(int4 *)(puVar4 + 0x1b) = 0xffffffff;
*(int8 *)((long)puVar4 + 0xdc) = 0xffffffffffffffff;
puVar4[0x1f] = puVar4 + 0x20;
puVar4[0x20] = 0xffffffffffffffff;
uVar2 = _UNK_0018574c;
uVar1 = _UNK_00185748;
uVar3 = _UNK_00185744;
*(int4 *)(puVar4 + 0x1d) = _DAT_00185740;
*(int4 *)((long)puVar4 + 0xec) = uVar3;
*(int4 *)(puVar4 + 0x1e) = uVar1;
*(int4 *)((long)puVar4 + 0xf4) = uVar2;
*(int4 *)(puVar4 + 0x24) = 0xffffffff;
uVar3 = JS_NewAtom(param_1,param_5);
*(int4 *)((long)puVar4 + 0x1d4) = uVar3;
*(int4 *)(puVar4 + 0x3b) = param_6;
*(int4 *)((long)puVar4 + 0x1dc) = param_7;
js_dbuf_init(param_1,puVar4 + 0x3c);
puVar5 = (int8 *)js_malloc(param_1,0x20);
if (puVar5 != (int8 *)0x0) {
*puVar5 = 0x400000000;
*(int4 *)(puVar5 + 1) = 2;
lVar6 = js_mallocz(param_1,0x20);
puVar5[2] = lVar6;
if (lVar6 != 0) {
puVar5[3] = 0;
goto LAB_0014b94e;
}
}
js_free(param_1,puVar5);
puVar5 = (int8 *)0x0;
LAB_0014b94e:
puVar4[0x46] = puVar5;
return puVar4;
}
|
|
10,016 |
do_show_slave_status
|
eloqsql/client/mysqldump.c
|
static int do_show_slave_status(MYSQL *mysql_con, int use_gtid,
int have_mariadb_gtid)
{
MYSQL_RES *UNINIT_VAR(slave);
MYSQL_ROW row;
const char *comment_prefix=
(opt_slave_data == MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL) ? "-- " : "";
const char *gtid_comment_prefix= (use_gtid ? comment_prefix : "-- ");
const char *nogtid_comment_prefix= (!use_gtid ? comment_prefix : "-- ");
int set_gtid_done= 0;
if (mysql_query_with_error_report(mysql_con, &slave,
multi_source ?
"SHOW ALL SLAVES STATUS" :
"SHOW SLAVE STATUS"))
{
if (!ignore_errors)
{
/* SHOW SLAVE STATUS reports nothing and --force is not enabled */
fprintf(stderr, "%s: Error: Slave not set up\n", my_progname_short);
}
mysql_free_result(slave);
return 1;
}
while ((row= mysql_fetch_row(slave)))
{
if (multi_source && !set_gtid_done)
{
char gtid_pos[MAX_GTID_LENGTH];
if (have_mariadb_gtid && get_gtid_pos(gtid_pos, 0))
return 1;
if (opt_comments)
fprintf(md_result_file, "\n--\n-- Gtid position to start replication "
"from\n--\n\n");
fprintf(md_result_file, "%sSET GLOBAL gtid_slave_pos='%s';\n",
gtid_comment_prefix, gtid_pos);
set_gtid_done= 1;
}
if (row[9 + multi_source] && row[21 + multi_source])
{
if (use_gtid)
{
if (multi_source)
fprintf(md_result_file, "%sCHANGE MASTER '%.80s' TO "
"MASTER_USE_GTID=slave_pos;\n", gtid_comment_prefix, row[0]);
else
fprintf(md_result_file, "%sCHANGE MASTER TO "
"MASTER_USE_GTID=slave_pos;\n", gtid_comment_prefix);
}
/* SHOW MASTER STATUS reports file and position */
if (opt_comments)
fprintf(md_result_file,
"\n--\n-- Position to start replication or point-in-time "
"recovery from (the master of this slave)\n--\n\n");
if (multi_source)
fprintf(md_result_file, "%sCHANGE MASTER '%.80s' TO ",
nogtid_comment_prefix, row[0]);
else
fprintf(md_result_file, "%sCHANGE MASTER TO ", nogtid_comment_prefix);
if (opt_include_master_host_port)
{
if (row[1 + multi_source])
fprintf(md_result_file, "MASTER_HOST='%s', ", row[1 + multi_source]);
if (row[3])
fprintf(md_result_file, "MASTER_PORT=%s, ", row[3 + multi_source]);
}
fprintf(md_result_file,
"MASTER_LOG_FILE='%s', MASTER_LOG_POS=%s;\n",
row[9 + multi_source], row[21 + multi_source]);
check_io(md_result_file);
}
}
mysql_free_result(slave);
return 0;
}
|
O0
|
c
|
do_show_slave_status:
pushq %rbp
movq %rsp, %rbp
subq $0x470, %rsp # imm = 0x470
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x420(%rbp)
movl %esi, -0x424(%rbp)
movl %edx, -0x428(%rbp)
movq -0x430(%rbp), %rax
movq %rax, -0x430(%rbp)
movl 0x3c5fa5(%rip), %edx # 0x401624
leaq 0xa14c6(%rip), %rax # 0xdcb4c
leaq 0xa0192(%rip), %rcx # 0xdb81f
cmpl $0x2, %edx
cmoveq %rcx, %rax
movq %rax, -0x440(%rbp)
cmpl $0x0, -0x424(%rbp)
je 0x3b6b4
movq -0x440(%rbp), %rax
movq %rax, -0x460(%rbp)
jmp 0x3b6c4
leaq 0xa0164(%rip), %rax # 0xdb81f
movq %rax, -0x460(%rbp)
jmp 0x3b6c4
movq -0x460(%rbp), %rax
movq %rax, -0x448(%rbp)
cmpl $0x0, -0x424(%rbp)
jne 0x3b6eb
movq -0x440(%rbp), %rax
movq %rax, -0x468(%rbp)
jmp 0x3b6fb
leaq 0xa012d(%rip), %rax # 0xdb81f
movq %rax, -0x468(%rbp)
jmp 0x3b6fb
movq -0x468(%rbp), %rax
movq %rax, -0x450(%rbp)
movl $0x0, -0x454(%rbp)
movq -0x420(%rbp), %rdi
movl 0x3c5f00(%rip), %ecx # 0x401620
leaq 0xa011d(%rip), %rdx # 0xdb844
leaq 0xa00ff(%rip), %rax # 0xdb82d
cmpl $0x0, %ecx
cmovneq %rax, %rdx
leaq -0x430(%rbp), %rsi
callq 0x39350
cmpl $0x0, %eax
je 0x3b78c
cmpb $0x0, 0x3c5f27(%rip) # 0x401674
jne 0x3b771
movq 0x20988a(%rip), %rax # 0x244fe0
movq (%rax), %rdi
leaq 0x3d1478(%rip), %rax # 0x40cbd8
movq (%rax), %rdx
leaq 0xa0562(%rip), %rsi # 0xdbccc
movb $0x0, %al
callq 0x381d0
movq -0x430(%rbp), %rdi
callq 0x48d00
movl $0x1, -0x414(%rbp)
jmp 0x3ba20
jmp 0x3b78e
movq -0x430(%rbp), %rdi
callq 0x51800
movq %rax, -0x438(%rbp)
cmpq $0x0, %rax
je 0x3ba0a
cmpl $0x0, 0x3c5e6e(%rip) # 0x401620
je 0x3b833
cmpl $0x0, -0x454(%rbp)
jne 0x3b833
cmpl $0x0, -0x428(%rbp)
je 0x3b7e8
leaq -0x410(%rbp), %rdi
xorl %esi, %esi
callq 0x3e0f0
cmpl $0x0, %eax
je 0x3b7e8
movl $0x1, -0x414(%rbp)
jmp 0x3ba20
cmpb $0x0, 0x3c5dfb(%rip) # 0x4015ea
je 0x3b806
movq 0x3c5cb8(%rip), %rdi # 0x4014b0
leaq 0xa04ea(%rip), %rsi # 0xdbce9
movb $0x0, %al
callq 0x381d0
movq 0x3c5ca3(%rip), %rdi # 0x4014b0
movq -0x448(%rbp), %rdx
leaq -0x410(%rbp), %rcx
leaq 0xa0400(%rip), %rsi # 0xdbc22
movb $0x0, %al
callq 0x381d0
movl $0x1, -0x454(%rbp)
movq -0x438(%rbp), %rax
movl 0x3c5de0(%rip), %ecx # 0x401620
addl $0x9, %ecx
movl %ecx, %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x3ba05
movq -0x438(%rbp), %rax
movl 0x3c5dc3(%rip), %ecx # 0x401620
addl $0x15, %ecx
movl %ecx, %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x3ba05
cmpl $0x0, -0x424(%rbp)
je 0x3b8c5
cmpl $0x0, 0x3c5da3(%rip) # 0x401620
je 0x3b8a7
movq 0x3c5c2a(%rip), %rdi # 0x4014b0
movq -0x448(%rbp), %rdx
movq -0x438(%rbp), %rax
movq (%rax), %rcx
leaq 0xa047f(%rip), %rsi # 0xdbd1d
movb $0x0, %al
callq 0x381d0
jmp 0x3b8c3
movq 0x3c5c02(%rip), %rdi # 0x4014b0
movq -0x448(%rbp), %rdx
leaq 0xa0337(%rip), %rsi # 0xdbbf3
movb $0x0, %al
callq 0x381d0
jmp 0x3b8c5
cmpb $0x0, 0x3c5d1e(%rip) # 0x4015ea
je 0x3b8e3
movq 0x3c5bdb(%rip), %rdi # 0x4014b0
leaq 0xa0478(%rip), %rsi # 0xdbd54
movb $0x0, %al
callq 0x381d0
cmpl $0x0, 0x3c5d36(%rip) # 0x401620
je 0x3b914
movq 0x3c5bbd(%rip), %rdi # 0x4014b0
movq -0x450(%rbp), %rdx
movq -0x438(%rbp), %rax
movq (%rax), %rcx
leaq 0xa04ad(%rip), %rsi # 0xdbdb8
movb $0x0, %al
callq 0x381d0
jmp 0x3b930
movq 0x3c5b95(%rip), %rdi # 0x4014b0
movq -0x450(%rbp), %rdx
leaq 0xa04ab(%rip), %rsi # 0xdbdd4
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x3c5f00(%rip) # 0x401837
je 0x3b9b8
movq -0x438(%rbp), %rax
movl 0x3c5cda(%rip), %ecx # 0x401620
addl $0x1, %ecx
movl %ecx, %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x3b97d
movq 0x3c5b57(%rip), %rdi # 0x4014b0
movq -0x438(%rbp), %rax
movl 0x3c5cba(%rip), %ecx # 0x401620
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
leaq 0xa0472(%rip), %rsi # 0xdbde8
movb $0x0, %al
callq 0x381d0
movq -0x438(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x3b9b6
movq 0x3c5b1e(%rip), %rdi # 0x4014b0
movq -0x438(%rbp), %rax
movl 0x3c5c81(%rip), %ecx # 0x401620
addl $0x3, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
leaq 0xa044c(%rip), %rsi # 0xdbdfb
movb $0x0, %al
callq 0x381d0
jmp 0x3b9b8
movq 0x3c5af1(%rip), %rdi # 0x4014b0
movq -0x438(%rbp), %rax
movl 0x3c5c54(%rip), %ecx # 0x401620
addl $0x9, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
movq -0x438(%rbp), %rax
movl 0x3c5c3e(%rip), %ecx # 0x401620
addl $0x15, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rcx
leaq 0xa01ac(%rip), %rsi # 0xdbb9e
movb $0x0, %al
callq 0x381d0
movq 0x3c5ab0(%rip), %rdi # 0x4014b0
callq 0x38d60
jmp 0x3b78e
movq -0x430(%rbp), %rdi
callq 0x48d00
movl $0x0, -0x414(%rbp)
movl -0x414(%rbp), %eax
movl %eax, -0x46c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x3ba4d
movl -0x46c(%rbp), %eax
addq $0x470, %rsp # imm = 0x470
popq %rbp
retq
callq 0x382c0
nopw %cs:(%rax,%rax)
|
do_show_slave_status:
push rbp
mov rbp, rsp
sub rsp, 470h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_420], rdi
mov [rbp+var_424], esi
mov [rbp+var_428], edx
mov rax, [rbp+var_430]
mov [rbp+var_430], rax
mov edx, cs:opt_slave_data
lea rax, asc_DCB4A+2; ""
lea rcx, asc_DB81D+2; "-- "
cmp edx, 2
cmovz rax, rcx
mov [rbp+var_440], rax
cmp [rbp+var_424], 0
jz short loc_3B6B4
mov rax, [rbp+var_440]
mov [rbp+var_460], rax
jmp short loc_3B6C4
loc_3B6B4:
lea rax, asc_DB81D+2; "-- "
mov [rbp+var_460], rax
jmp short $+2
loc_3B6C4:
mov rax, [rbp+var_460]
mov [rbp+var_448], rax
cmp [rbp+var_424], 0
jnz short loc_3B6EB
mov rax, [rbp+var_440]
mov [rbp+var_468], rax
jmp short loc_3B6FB
loc_3B6EB:
lea rax, asc_DB81D+2; "-- "
mov [rbp+var_468], rax
jmp short $+2
loc_3B6FB:
mov rax, [rbp+var_468]
mov [rbp+var_450], rax
mov [rbp+var_454], 0
mov rdi, [rbp+var_420]
mov ecx, cs:multi_source
lea rdx, aShowSlaveStatu; "SHOW SLAVE STATUS"
lea rax, aShowAllSlavesS; "SHOW ALL SLAVES STATUS"
cmp ecx, 0
cmovnz rdx, rax
lea rsi, [rbp+var_430]
call mysql_query_with_error_report
cmp eax, 0
jz short loc_3B78C
cmp cs:ignore_errors, 0
jnz short loc_3B771
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rax, my_progname_short
mov rdx, [rax]
lea rsi, aSErrorSlaveNot; "%s: Error: Slave not set up\n"
mov al, 0
call _fprintf
loc_3B771:
mov rdi, [rbp+var_430]
call mysql_free_result
mov [rbp+var_414], 1
jmp loc_3BA20
loc_3B78C:
jmp short $+2
loc_3B78E:
mov rdi, [rbp+var_430]
call mysql_fetch_row
mov [rbp+var_438], rax
cmp rax, 0
jz loc_3BA0A
cmp cs:multi_source, 0
jz short loc_3B833
cmp [rbp+var_454], 0
jnz short loc_3B833
cmp [rbp+var_428], 0
jz short loc_3B7E8
lea rdi, [rbp+var_410]
xor esi, esi
call get_gtid_pos
cmp eax, 0
jz short loc_3B7E8
mov [rbp+var_414], 1
jmp loc_3BA20
loc_3B7E8:
cmp cs:opt_comments, 0
jz short loc_3B806
mov rdi, cs:md_result_file
lea rsi, aGtidPositionTo; "\n--\n-- Gtid position to start replica"...
mov al, 0
call _fprintf
loc_3B806:
mov rdi, cs:md_result_file
mov rdx, [rbp+var_448]
lea rcx, [rbp+var_410]
lea rsi, aSsetGlobalGtid; "%sSET GLOBAL gtid_slave_pos='%s';\n"
mov al, 0
call _fprintf
mov [rbp+var_454], 1
loc_3B833:
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 9
mov ecx, ecx
cmp qword ptr [rax+rcx*8], 0
jz loc_3BA05
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 15h
mov ecx, ecx
cmp qword ptr [rax+rcx*8], 0
jz loc_3BA05
cmp [rbp+var_424], 0
jz short loc_3B8C5
cmp cs:multi_source, 0
jz short loc_3B8A7
mov rdi, cs:md_result_file
mov rdx, [rbp+var_448]
mov rax, [rbp+var_438]
mov rcx, [rax]
lea rsi, aSchangeMaster8; "%sCHANGE MASTER '%.80s' TO MASTER_USE_G"...
mov al, 0
call _fprintf
jmp short loc_3B8C3
loc_3B8A7:
mov rdi, cs:md_result_file
mov rdx, [rbp+var_448]
lea rsi, aSchangeMasterT_0; "%sCHANGE MASTER TO MASTER_USE_GTID=slav"...
mov al, 0
call _fprintf
loc_3B8C3:
jmp short $+2
loc_3B8C5:
cmp cs:opt_comments, 0
jz short loc_3B8E3
mov rdi, cs:md_result_file
lea rsi, aPositionToStar_0; "\n--\n-- Position to start replication "...
mov al, 0
call _fprintf
loc_3B8E3:
cmp cs:multi_source, 0
jz short loc_3B914
mov rdi, cs:md_result_file
mov rdx, [rbp+var_450]
mov rax, [rbp+var_438]
mov rcx, [rax]
lea rsi, aSchangeMaster8_0; "%sCHANGE MASTER '%.80s' TO "
mov al, 0
call _fprintf
jmp short loc_3B930
loc_3B914:
mov rdi, cs:md_result_file
mov rdx, [rbp+var_450]
lea rsi, aSchangeMasterT_1; "%sCHANGE MASTER TO "
mov al, 0
call _fprintf
loc_3B930:
cmp cs:opt_include_master_host_port, 0
jz short loc_3B9B8
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 1
mov ecx, ecx
cmp qword ptr [rax+rcx*8], 0
jz short loc_3B97D
mov rdi, cs:md_result_file
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 1
mov ecx, ecx
mov rdx, [rax+rcx*8]
lea rsi, aMasterHostS; "MASTER_HOST='%s', "
mov al, 0
call _fprintf
loc_3B97D:
mov rax, [rbp+var_438]
cmp qword ptr [rax+18h], 0
jz short loc_3B9B6
mov rdi, cs:md_result_file
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 3
mov ecx, ecx
mov rdx, [rax+rcx*8]
lea rsi, aMasterPortS; "MASTER_PORT=%s, "
mov al, 0
call _fprintf
loc_3B9B6:
jmp short $+2
loc_3B9B8:
mov rdi, cs:md_result_file
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 9
mov ecx, ecx
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_438]
mov ecx, cs:multi_source
add ecx, 15h
mov ecx, ecx
mov rcx, [rax+rcx*8]
lea rsi, aSchangeMasterT+13h; "MASTER_LOG_FILE='%s', MASTER_LOG_POS=%s"...
mov al, 0
call _fprintf
mov rdi, cs:md_result_file
call check_io
loc_3BA05:
jmp loc_3B78E
loc_3BA0A:
mov rdi, [rbp+var_430]
call mysql_free_result
mov [rbp+var_414], 0
loc_3BA20:
mov eax, [rbp+var_414]
mov [rbp+var_46C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_3BA4D
mov eax, [rbp+var_46C]
add rsp, 470h
pop rbp
retn
loc_3BA4D:
call ___stack_chk_fail
|
long long do_show_slave_status(long long a1, int a2, int a3)
{
char *v3; // rax
const char *v4; // rdx
const char *v6; // [rsp+8h] [rbp-468h]
const char *v7; // [rsp+10h] [rbp-460h]
int v8; // [rsp+1Ch] [rbp-454h]
const char **row; // [rsp+38h] [rbp-438h]
long long v10; // [rsp+40h] [rbp-430h] BYREF
int v11; // [rsp+48h] [rbp-428h]
int v12; // [rsp+4Ch] [rbp-424h]
long long v13; // [rsp+50h] [rbp-420h]
char v15[1032]; // [rsp+60h] [rbp-410h] BYREF
unsigned long long v16; // [rsp+468h] [rbp-8h]
v16 = __readfsqword(0x28u);
v13 = a1;
v12 = a2;
v11 = a3;
v3 = "";
if ( opt_slave_data == 2 )
v3 = "-- ";
if ( v12 )
v7 = v3;
else
v7 = "-- ";
if ( v12 )
v6 = "-- ";
else
v6 = v3;
v8 = 0;
v4 = "SHOW SLAVE STATUS";
if ( multi_source )
v4 = "SHOW ALL SLAVES STATUS";
if ( (unsigned int)mysql_query_with_error_report(v13, &v10, (long long)v4) )
{
if ( !ignore_errors )
fprintf(stderr, "%s: Error: Slave not set up\n", my_progname_short);
mysql_free_result(v10);
return 1;
}
else
{
while ( 1 )
{
row = (const char **)mysql_fetch_row(v10);
if ( !row )
break;
if ( multi_source && !v8 )
{
if ( v11 && (unsigned int)get_gtid_pos(v15, 0LL) )
return 1;
if ( opt_comments )
fprintf(md_result_file, "\n--\n-- Gtid position to start replication from\n--\n\n");
fprintf(md_result_file, "%sSET GLOBAL gtid_slave_pos='%s';\n", v7, v15);
v8 = 1;
}
if ( row[multi_source + 9] && row[multi_source + 21] )
{
if ( v12 )
{
if ( multi_source )
fprintf(md_result_file, "%sCHANGE MASTER '%.80s' TO MASTER_USE_GTID=slave_pos;\n", v7, *row);
else
fprintf(md_result_file, "%sCHANGE MASTER TO MASTER_USE_GTID=slave_pos;\n", v7);
}
if ( opt_comments )
fprintf(
md_result_file,
"\n--\n-- Position to start replication or point-in-time recovery from (the master of this slave)\n--\n\n");
if ( multi_source )
fprintf(md_result_file, "%sCHANGE MASTER '%.80s' TO ", v6, *row);
else
fprintf(md_result_file, "%sCHANGE MASTER TO ", v6);
if ( opt_include_master_host_port )
{
if ( row[multi_source + 1] )
fprintf(md_result_file, "MASTER_HOST='%s', ", row[multi_source + 1]);
if ( row[3] )
fprintf(md_result_file, "MASTER_PORT=%s, ", row[multi_source + 3]);
}
fprintf(
md_result_file,
"MASTER_LOG_FILE='%s', MASTER_LOG_POS=%s;\n",
row[multi_source + 9],
row[multi_source + 21]);
check_io(md_result_file);
}
}
mysql_free_result(v10);
return 0;
}
}
|
do_show_slave_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x470
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x420],RDI
MOV dword ptr [RBP + -0x424],ESI
MOV dword ptr [RBP + -0x428],EDX
MOV RAX,qword ptr [RBP + -0x430]
MOV qword ptr [RBP + -0x430],RAX
MOV EDX,dword ptr [0x00501624]
LEA RAX,[0x1dcb4c]
LEA RCX,[0x1db81f]
CMP EDX,0x2
CMOVZ RAX,RCX
MOV qword ptr [RBP + -0x440],RAX
CMP dword ptr [RBP + -0x424],0x0
JZ 0x0013b6b4
MOV RAX,qword ptr [RBP + -0x440]
MOV qword ptr [RBP + -0x460],RAX
JMP 0x0013b6c4
LAB_0013b6b4:
LEA RAX,[0x1db81f]
MOV qword ptr [RBP + -0x460],RAX
JMP 0x0013b6c4
LAB_0013b6c4:
MOV RAX,qword ptr [RBP + -0x460]
MOV qword ptr [RBP + -0x448],RAX
CMP dword ptr [RBP + -0x424],0x0
JNZ 0x0013b6eb
MOV RAX,qword ptr [RBP + -0x440]
MOV qword ptr [RBP + -0x468],RAX
JMP 0x0013b6fb
LAB_0013b6eb:
LEA RAX,[0x1db81f]
MOV qword ptr [RBP + -0x468],RAX
JMP 0x0013b6fb
LAB_0013b6fb:
MOV RAX,qword ptr [RBP + -0x468]
MOV qword ptr [RBP + -0x450],RAX
MOV dword ptr [RBP + -0x454],0x0
MOV RDI,qword ptr [RBP + -0x420]
MOV ECX,dword ptr [0x00501620]
LEA RDX,[0x1db844]
LEA RAX,[0x1db82d]
CMP ECX,0x0
CMOVNZ RDX,RAX
LEA RSI,[RBP + -0x430]
CALL 0x00139350
CMP EAX,0x0
JZ 0x0013b78c
CMP byte ptr [0x00501674],0x0
JNZ 0x0013b771
MOV RAX,qword ptr [0x00344fe0]
MOV RDI,qword ptr [RAX]
LEA RAX,[0x50cbd8]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x1dbccc]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b771:
MOV RDI,qword ptr [RBP + -0x430]
CALL 0x00148d00
MOV dword ptr [RBP + -0x414],0x1
JMP 0x0013ba20
LAB_0013b78c:
JMP 0x0013b78e
LAB_0013b78e:
MOV RDI,qword ptr [RBP + -0x430]
CALL 0x00151800
MOV qword ptr [RBP + -0x438],RAX
CMP RAX,0x0
JZ 0x0013ba0a
CMP dword ptr [0x00501620],0x0
JZ 0x0013b833
CMP dword ptr [RBP + -0x454],0x0
JNZ 0x0013b833
CMP dword ptr [RBP + -0x428],0x0
JZ 0x0013b7e8
LEA RDI,[RBP + -0x410]
XOR ESI,ESI
CALL 0x0013e0f0
CMP EAX,0x0
JZ 0x0013b7e8
MOV dword ptr [RBP + -0x414],0x1
JMP 0x0013ba20
LAB_0013b7e8:
CMP byte ptr [0x005015ea],0x0
JZ 0x0013b806
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1dbce9]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b806:
MOV RDI,qword ptr [0x005014b0]
MOV RDX,qword ptr [RBP + -0x448]
LEA RCX,[RBP + -0x410]
LEA RSI,[0x1dbc22]
MOV AL,0x0
CALL 0x001381d0
MOV dword ptr [RBP + -0x454],0x1
LAB_0013b833:
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x9
MOV ECX,ECX
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x0013ba05
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x15
MOV ECX,ECX
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x0013ba05
CMP dword ptr [RBP + -0x424],0x0
JZ 0x0013b8c5
CMP dword ptr [0x00501620],0x0
JZ 0x0013b8a7
MOV RDI,qword ptr [0x005014b0]
MOV RDX,qword ptr [RBP + -0x448]
MOV RAX,qword ptr [RBP + -0x438]
MOV RCX,qword ptr [RAX]
LEA RSI,[0x1dbd1d]
MOV AL,0x0
CALL 0x001381d0
JMP 0x0013b8c3
LAB_0013b8a7:
MOV RDI,qword ptr [0x005014b0]
MOV RDX,qword ptr [RBP + -0x448]
LEA RSI,[0x1dbbf3]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b8c3:
JMP 0x0013b8c5
LAB_0013b8c5:
CMP byte ptr [0x005015ea],0x0
JZ 0x0013b8e3
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1dbd54]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b8e3:
CMP dword ptr [0x00501620],0x0
JZ 0x0013b914
MOV RDI,qword ptr [0x005014b0]
MOV RDX,qword ptr [RBP + -0x450]
MOV RAX,qword ptr [RBP + -0x438]
MOV RCX,qword ptr [RAX]
LEA RSI,[0x1dbdb8]
MOV AL,0x0
CALL 0x001381d0
JMP 0x0013b930
LAB_0013b914:
MOV RDI,qword ptr [0x005014b0]
MOV RDX,qword ptr [RBP + -0x450]
LEA RSI,[0x1dbdd4]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b930:
CMP byte ptr [0x00501837],0x0
JZ 0x0013b9b8
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x1
MOV ECX,ECX
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x0013b97d
MOV RDI,qword ptr [0x005014b0]
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x1
MOV ECX,ECX
MOV RDX,qword ptr [RAX + RCX*0x8]
LEA RSI,[0x1dbde8]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b97d:
MOV RAX,qword ptr [RBP + -0x438]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0013b9b6
MOV RDI,qword ptr [0x005014b0]
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x3
MOV ECX,ECX
MOV RDX,qword ptr [RAX + RCX*0x8]
LEA RSI,[0x1dbdfb]
MOV AL,0x0
CALL 0x001381d0
LAB_0013b9b6:
JMP 0x0013b9b8
LAB_0013b9b8:
MOV RDI,qword ptr [0x005014b0]
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x9
MOV ECX,ECX
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x438]
MOV ECX,dword ptr [0x00501620]
ADD ECX,0x15
MOV ECX,ECX
MOV RCX,qword ptr [RAX + RCX*0x8]
LEA RSI,[0x1dbb9e]
MOV AL,0x0
CALL 0x001381d0
MOV RDI,qword ptr [0x005014b0]
CALL 0x00138d60
LAB_0013ba05:
JMP 0x0013b78e
LAB_0013ba0a:
MOV RDI,qword ptr [RBP + -0x430]
CALL 0x00148d00
MOV dword ptr [RBP + -0x414],0x0
LAB_0013ba20:
MOV EAX,dword ptr [RBP + -0x414]
MOV dword ptr [RBP + -0x46c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0013ba4d
MOV EAX,dword ptr [RBP + -0x46c]
ADD RSP,0x470
POP RBP
RET
LAB_0013ba4d:
CALL 0x001382c0
|
int4 do_show_slave_status(int8 param_1,int param_2,int param_3)
{
bool bVar1;
int iVar2;
int *puVar3;
int8 *puVar4;
char *pcVar5;
long in_FS_OFFSET;
int *local_470;
int *local_468;
int8 local_438;
int local_430;
int local_42c;
int8 local_428;
int4 local_41c;
int1 local_418 [1032];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
puVar3 = &DAT_001dcb4c;
if (opt_slave_data == 2) {
puVar3 = &DAT_001db81f;
}
if (param_2 == 0) {
local_468 = &DAT_001db81f;
local_470 = puVar3;
puVar3 = local_468;
}
else {
local_470 = &DAT_001db81f;
}
bVar1 = false;
pcVar5 = "SHOW SLAVE STATUS";
if (multi_source != 0) {
pcVar5 = "SHOW ALL SLAVES STATUS";
}
local_430 = param_3;
local_42c = param_2;
local_428 = param_1;
iVar2 = mysql_query_with_error_report(param_1,&local_438,pcVar5);
if (iVar2 == 0) {
while (puVar4 = (int8 *)mysql_fetch_row(local_438), puVar4 != (int8 *)0x0) {
if ((multi_source != 0) && (!bVar1)) {
if ((local_430 != 0) && (iVar2 = get_gtid_pos(local_418,0), iVar2 != 0)) {
local_41c = 1;
goto LAB_0013ba20;
}
if (opt_comments != '\0') {
fprintf(md_result_file,"\n--\n-- Gtid position to start replication from\n--\n\n");
}
fprintf(md_result_file,"%sSET GLOBAL gtid_slave_pos=\'%s\';\n",puVar3,local_418);
bVar1 = true;
}
if ((puVar4[multi_source + 9] != 0) && (puVar4[multi_source + 0x15] != 0)) {
if (local_42c != 0) {
if (multi_source == 0) {
fprintf(md_result_file,"%sCHANGE MASTER TO MASTER_USE_GTID=slave_pos;\n",puVar3);
}
else {
fprintf(md_result_file,"%sCHANGE MASTER \'%.80s\' TO MASTER_USE_GTID=slave_pos;\n",
puVar3,*puVar4);
}
}
if (opt_comments != '\0') {
fprintf(md_result_file,
"\n--\n-- Position to start replication or point-in-time recovery from (the master of this slave)\n--\n\n"
);
}
if (multi_source == 0) {
fprintf(md_result_file,"%sCHANGE MASTER TO ",local_470);
}
else {
fprintf(md_result_file,"%sCHANGE MASTER \'%.80s\' TO ",local_470,*puVar4);
}
if (opt_include_master_host_port != '\0') {
if (puVar4[multi_source + 1] != 0) {
fprintf(md_result_file,"MASTER_HOST=\'%s\', ",puVar4[multi_source + 1]);
}
if (puVar4[3] != 0) {
fprintf(md_result_file,"MASTER_PORT=%s, ",puVar4[multi_source + 3]);
}
}
fprintf(md_result_file,"MASTER_LOG_FILE=\'%s\', MASTER_LOG_POS=%s;\n",
puVar4[multi_source + 9],puVar4[multi_source + 0x15]);
check_io(md_result_file);
}
}
mysql_free_result(local_438);
local_41c = 0;
}
else {
if (ignore_errors == '\0') {
fprintf(*(FILE **)PTR_stderr_00344fe0,"%s: Error: Slave not set up\n",my_progname_short);
}
mysql_free_result(local_438);
local_41c = 1;
}
LAB_0013ba20:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_41c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
10,017 |
ggml_easy::ctx::set_tensor_data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void const*)
|
ngxson[P]ggml-easy/ggml-easy.h
|
void set_tensor_data(const std::string & name, const void * data) {
ggml_tensor * t = ggml_get_tensor(ctx_gf, name.c_str());
if (!t) {
throw std::runtime_error(string_format("tensor not found: %s", name.c_str()));
}
ggml_backend_tensor_set(t, data, 0, ggml_nbytes(t));
}
|
O1
|
c
|
ggml_easy::ctx::set_tensor_data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq 0x48(%rdi), %rdi
movq (%rsi), %rsi
callq 0x4600
testq %rax, %rax
je 0x8968
movq %rax, %r15
movq %rax, %rdi
callq 0x40a0
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x42a0
movl $0x10, %edi
callq 0x4260
movq %rax, %rbx
movq (%r14), %rdx
leaq 0x4e05(%rip), %rsi # 0xd784
leaq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x5b89
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4730
xorl %ebp, %ebp
movq 0x964c(%rip), %rsi # 0x11ff0
movq 0x961d(%rip), %rdx # 0x11fc8
movq %rbx, %rdi
callq 0x47b0
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x89d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4450
jmp 0x89d9
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x89e6
movq %rbx, %rdi
callq 0x4380
movq %r14, %rdi
callq 0x47f0
|
_ZN9ggml_easy3ctx15set_tensor_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKv:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov rbx, rdx
mov r14, rsi
mov rdi, [rdi+48h]
mov rsi, [rsi]
call _ggml_get_tensor
test rax, rax
jz short loc_8968
mov r15, rax
mov rdi, rax
call _ggml_nbytes
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
jmp _ggml_backend_tensor_set
loc_8968:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdx, [r14]
lea rsi, aWeightTensorNo+7; "tensor not found: %s"
lea rdi, [rsp+48h+var_40]
xor eax, eax
call _ZN9ggml_easy13string_formatB5cxx11EPKcz; ggml_easy::string_format(char const*,...)
mov bpl, 1
lea rsi, [rsp+48h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_89D9
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_89D9
mov r14, rax
mov bpl, 1
loc_89D9:
test bpl, bpl
jz short loc_89E6
mov rdi, rbx; void *
call ___cxa_free_exception
loc_89E6:
mov rdi, r14
call __Unwind_Resume
|
long long ggml_easy::ctx::set_tensor_data(
long long a1,
long long *a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long tensor; // rax
long long v13; // r15
long long v14; // rax
void *exception; // rbx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
char v22; // [rsp+0h] [rbp-48h]
long long v23; // [rsp+8h] [rbp-40h] BYREF
tensor = ggml_get_tensor(*(_QWORD *)(a1 + 72), *a2);
if ( !tensor )
{
exception = __cxa_allocate_exception(0x10uLL);
ggml_easy::string_format[abi:cxx11](
&v23,
(long long)"tensor not found: %s",
*a2,
v17,
v18,
v19,
a4,
a5,
a6,
a7,
v20,
v21,
a10,
a11,
v22);
std::runtime_error::runtime_error(exception);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v13 = tensor;
v14 = ggml_nbytes(tensor);
return ggml_backend_tensor_set(v13, a3, 0LL, v14);
}
|
set_tensor_data:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOV R14,RSI
MOV RDI,qword ptr [RDI + 0x48]
MOV RSI,qword ptr [RSI]
CALL 0x00104600
TEST RAX,RAX
JZ 0x00108968
MOV R15,RAX
MOV RDI,RAX
CALL 0x001040a0
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001042a0
LAB_00108968:
MOV EDI,0x10
CALL 0x00104260
MOV RBX,RAX
MOV RDX,qword ptr [R14]
LAB_00108978:
LEA RSI,[0x10d784]
LEA RDI,[RSP + 0x8]
XOR EAX,EAX
CALL 0x00105b89
MOV BPL,0x1
LAB_0010898e:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00104730
XOR EBP,EBP
MOV RSI,qword ptr [0x00111ff0]
MOV RDX,qword ptr [0x00111fc8]
MOV RDI,RBX
CALL 0x001047b0
|
/* ggml_easy::ctx::set_tensor_data(std::__cxx11::string const&, void const*) */
void __thiscall ggml_easy::ctx::set_tensor_data(ctx *this,string *param_1,void *param_2)
{
long lVar1;
int8 uVar2;
runtime_error *this_00;
string local_40 [32];
lVar1 = ggml_get_tensor(*(int8 *)(this + 0x48),*(int8 *)param_1);
if (lVar1 != 0) {
uVar2 = ggml_nbytes(lVar1);
ggml_backend_tensor_set(lVar1,param_2,0,uVar2);
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00108978 to 0010898a has its CatchHandler @ 001089d3 */
string_format_abi_cxx11_((char *)local_40,"tensor not found: %s",*(int8 *)param_1);
/* try { // try from 0010898e to 001089b2 has its CatchHandler @ 001089b3 */
std::runtime_error::runtime_error(this_00,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00111ff0,PTR__runtime_error_00111fc8);
}
|
|
10,018 |
ggml_easy::ctx::set_tensor_data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void const*)
|
ngxson[P]ggml-easy/ggml-easy.h
|
void set_tensor_data(const std::string & name, const void * data) {
ggml_tensor * t = ggml_get_tensor(ctx_gf, name.c_str());
if (!t) {
throw std::runtime_error(string_format("tensor not found: %s", name.c_str()));
}
ggml_backend_tensor_set(t, data, 0, ggml_nbytes(t));
}
|
O3
|
c
|
ggml_easy::ctx::set_tensor_data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq 0x48(%rdi), %rdi
movq (%rsi), %rsi
callq 0x4600
testq %rax, %rax
je 0x8a46
movq %rax, %r15
movq %rax, %rdi
callq 0x40a0
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x42a0
movl $0x10, %edi
callq 0x4260
movq %rax, %rbx
movq (%r14), %rdx
leaq 0x4d27(%rip), %rsi # 0xd784
leaq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x5be1
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4730
xorl %ebp, %ebp
movq 0x956e(%rip), %rsi # 0x11ff0
movq 0x953f(%rip), %rdx # 0x11fc8
movq %rbx, %rdi
callq 0x47b0
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8aaf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4450
testb %bpl, %bpl
jne 0x8ab9
jmp 0x8ac1
movq %rax, %r14
movq %rbx, %rdi
callq 0x4380
movq %r14, %rdi
callq 0x47f0
nop
|
_ZN9ggml_easy3ctx15set_tensor_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKv:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov rbx, rdx
mov r14, rsi
mov rdi, [rdi+48h]
mov rsi, [rsi]
call _ggml_get_tensor
test rax, rax
jz short loc_8A46
mov r15, rax
mov rdi, rax
call _ggml_nbytes
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
jmp _ggml_backend_tensor_set
loc_8A46:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdx, [r14]
lea rsi, aWeightTensorNo+7; "tensor not found: %s"
lea rdi, [rsp+48h+var_40]
xor eax, eax
call _ZN9ggml_easy13string_formatB5cxx11EPKcz; ggml_easy::string_format(char const*,...)
mov bpl, 1
lea rsi, [rsp+48h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8AAF
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8AAF:
test bpl, bpl
jnz short loc_8AB9
jmp short loc_8AC1
mov r14, rax
loc_8AB9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_8AC1:
mov rdi, r14
call __Unwind_Resume
|
long long ggml_easy::ctx::set_tensor_data(
long long a1,
long long *a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long tensor; // rax
long long v13; // r15
long long v14; // rax
void *exception; // rbx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
char v22; // [rsp+0h] [rbp-48h]
long long v23; // [rsp+8h] [rbp-40h] BYREF
tensor = ggml_get_tensor(*(_QWORD *)(a1 + 72), *a2);
if ( !tensor )
{
exception = __cxa_allocate_exception(0x10uLL);
ggml_easy::string_format[abi:cxx11](
&v23,
(long long)"tensor not found: %s",
*a2,
v17,
v18,
v19,
a4,
a5,
a6,
a7,
v20,
v21,
a10,
a11,
v22);
std::runtime_error::runtime_error(exception);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v13 = tensor;
v14 = ggml_nbytes(tensor);
return ggml_backend_tensor_set(v13, a3, 0LL, v14);
}
|
set_tensor_data:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOV R14,RSI
MOV RDI,qword ptr [RDI + 0x48]
MOV RSI,qword ptr [RSI]
CALL 0x00104600
TEST RAX,RAX
JZ 0x00108a46
MOV R15,RAX
MOV RDI,RAX
CALL 0x001040a0
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001042a0
LAB_00108a46:
MOV EDI,0x10
CALL 0x00104260
MOV RBX,RAX
MOV RDX,qword ptr [R14]
LAB_00108a56:
LEA RSI,[0x10d784]
LEA RDI,[RSP + 0x8]
XOR EAX,EAX
CALL 0x00105be1
MOV BPL,0x1
LAB_00108a6c:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00104730
XOR EBP,EBP
MOV RSI,qword ptr [0x00111ff0]
MOV RDX,qword ptr [0x00111fc8]
MOV RDI,RBX
CALL 0x001047b0
|
/* ggml_easy::ctx::set_tensor_data(std::__cxx11::string const&, void const*) */
void __thiscall ggml_easy::ctx::set_tensor_data(ctx *this,string *param_1,void *param_2)
{
long lVar1;
int8 uVar2;
runtime_error *this_00;
string local_40 [32];
lVar1 = ggml_get_tensor(*(int8 *)(this + 0x48),*(int8 *)param_1);
if (lVar1 != 0) {
uVar2 = ggml_nbytes(lVar1);
ggml_backend_tensor_set(lVar1,param_2,0,uVar2);
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00108a56 to 00108a68 has its CatchHandler @ 00108ab6 */
string_format_abi_cxx11_((char *)local_40,"tensor not found: %s",*(int8 *)param_1);
/* try { // try from 00108a6c to 00108a90 has its CatchHandler @ 00108a91 */
std::runtime_error::runtime_error(this_00,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00111ff0,PTR__runtime_error_00111fc8);
}
|
|
10,019 |
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const
|
monkey531[P]llama/common/minja.hpp
|
inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq %rsi, %rdi
callq 0x62ef0
testb %al, %al
je 0x82647
addq $0x40, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x41faa
jmp 0x8280b
movq %r14, %rdi
callq 0x634ea
testb %al, %al
je 0x82662
movq %r13, %rdi
xorl %esi, %esi
callq 0x3d266
jmp 0x8280b
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x826cd
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
movq (%rax), %r15
movq 0x8(%rax), %rbx
leaq 0x38(%rsp), %r12
cmpq %rbx, %r15
je 0x826b1
movq %r12, %rdi
movq %r15, %rsi
callq 0x82610
movq %r14, %rdi
movq %r12, %rsi
callq 0x41b30
movq %r12, %rdi
callq 0x3d252
addq $0x50, %r15
jmp 0x82688
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x83016
leaq 0x10(%rsp), %rdi
callq 0x42cfa
jmp 0x8280b
cmpq $0x0, 0x20(%r14)
je 0x82883
movq %r13, 0x8(%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8304e
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x78(%rsp), %rbp
leaq 0xa8(%rsp), %r13
leaq 0x88(%rsp), %r12
cmpq 0x30(%rsp), %r15
je 0x827c6
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0x82773
cmpl $0x4, %eax
je 0x82773
cmpl $0x3, %eax
jne 0x82769
leaq 0x68(%rsp), %rdi
callq 0x82610
movq %r12, %rdi
movq %r15, %rsi
callq 0x63bca
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x7e216
movq %r12, %rbx
movq %rax, %rdi
leaq 0x68(%rsp), %r12
movq %r12, %rsi
callq 0x3fdd8
movq %rbx, %rdi
jmp 0x827b0
addb $-0x5, %al
cmpb $0x3, %al
ja 0x82820
movq %rbp, %rdi
callq 0x82610
movq %r13, %rdi
movq %r15, %rsi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5d0e4
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x7e216
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3fdd8
movq %r13, %rdi
movq %rbp, %r12
callq 0x24208
movq %r12, %rdi
callq 0x3d252
addq $0x60, %r15
jmp 0x82706
cmpq $0x0, 0x30(%r14)
movq 0x8(%rsp), %r13
je 0x8280b
leaq 0x10(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x58(%rsp), %rdi
callq 0x83062
leaq 0x32a08(%rip), %rsi # 0xb51f3
movq %r13, %rdi
callq 0x7a55e
leaq 0x58(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x3fdd8
movq %r14, %rdi
callq 0x3d252
movq %r13, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %r12
leaq 0x38(%rsp), %rdi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
movq %r15, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5d0e4
leaq 0x3297e(%rip), %rsi # 0xb51c9
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x58626
movb $0x1, %bl
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x23e60
xorl %ebx, %ebx
movq 0x7b77e(%rip), %rsi # 0xfdff0
movq 0x7b6df(%rip), %rdx # 0xfdf58
movq %r12, %rdi
callq 0x23f30
jmp 0x828de
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x62f00
leaq 0x32959(%rip), %rsi # 0xb5200
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x58626
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x7b721(%rip), %rsi # 0xfdff0
movq 0x7b682(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x24208
jmp 0x828f3
movq %rax, %r14
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0x24208
testb %bpl, %bpl
jne 0x8290a
jmp 0x829bc
movq %rax, %r14
movq %rbx, %rdi
callq 0x236b0
jmp 0x829bc
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x8298a
jmp 0x829a0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x24208
jmp 0x82937
movq %rax, %r14
movb $0x1, %bl
leaq 0x38(%rsp), %rdi
callq 0x24208
testb %bl, %bl
jne 0x8294a
jmp 0x82994
movq %rax, %r14
movq %r12, %rdi
callq 0x236b0
jmp 0x82994
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x24208
jmp 0x82969
movq %rax, %r14
leaq 0x68(%rsp), %rdi
jmp 0x8298a
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x24208
jmp 0x82985
movq %rax, %r14
leaq 0x78(%rsp), %rdi
callq 0x3d252
jmp 0x82994
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x3d252
jmp 0x829bc
movq %rax, %r14
jmp 0x829b2
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x3d252
leaq 0x10(%rsp), %rdi
callq 0x42cfa
movq %r14, %rdi
callq 0x23fd0
|
_ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov r14, rsi
mov r13, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_82647
add r14, 40h ; '@'
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp loc_8280B
loc_82647:
mov rdi, r14; this
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jz short loc_82662
mov rdi, r13
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
jmp loc_8280B
loc_82662:
mov rax, [r14+10h]
test rax, rax
jz short loc_826CD
xorps xmm0, xmm0
lea r14, [rsp+0F8h+var_E8]
and qword ptr [r14+10h], 0
movaps xmmword ptr [r14], xmm0
mov r15, [rax]
mov rbx, [rax+8]
lea r12, [rsp+0F8h+var_C0]
loc_82688:
cmp r15, rbx
jz short loc_826B1
mov rdi, r12
mov rsi, r15
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r14
mov rsi, r12
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 50h ; 'P'
jmp short loc_82688
loc_826B1:
lea rsi, [rsp+0F8h+var_E8]
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
lea rdi, [rsp+0F8h+var_E8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_8280B
loc_826CD:
cmp qword ptr [r14+20h], 0
jz loc_82883
mov [rsp+0F8h+var_F0], r13
mov rdi, r13
xor esi, esi
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6objectESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::object(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov rax, [r14+20h]
mov r15, [rax]
mov rax, [rax+8]
mov [rsp+0F8h+var_C8], rax
lea rbp, [rsp+0F8h+var_80]
lea r13, [rsp+0F8h+var_50]
loc_82706:
lea r12, [rsp+0F8h+var_70]
cmp r15, [rsp+0F8h+var_C8]
jz loc_827C6
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_82773
cmp eax, 4
jz short loc_82773
cmp eax, 3
jnz short loc_82769
lea rdi, [rsp+0F8h+var_90]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, [rsp+0F8h+var_F0]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rbx, r12
mov rdi, rax
lea r12, [rsp+0F8h+var_90]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, rbx
jmp short loc_827B0
loc_82769:
add al, 0FBh
cmp al, 3
ja loc_82820
loc_82773:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r13
mov rsi, r15
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
mov rdi, [rsp+0F8h+var_F0]
mov rsi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r13; void *
mov r12, rbp
loc_827B0:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 60h ; '`'
jmp loc_82706
loc_827C6:
cmp qword ptr [r14+30h], 0
mov r13, [rsp+0F8h+var_F0]
jz short loc_8280B
lea rsi, [rsp+0F8h+var_E8]
mov byte ptr [rsi], 1
lea rdi, [rsp+0F8h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
lea rsi, aCallable; "__callable__"
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r14, [rsp+0F8h+var_A0]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_8280B:
mov rax, r13
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82820:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0F8h+var_C0]
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
mov rsi, r15
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
lea rdi, [rsp+0F8h+var_E8]
lea rdx, [rsp+0F8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bl, 1
lea rsi, [rsp+0F8h+var_E8]
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebx, ebx
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_828DE
loc_82883:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0F8h+var_C0]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
lea rdi, [rsp+0F8h+var_E8]
lea rdx, [rsp+0F8h+var_C0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+0F8h+var_E8]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_828DE:
mov r14, rax
lea rdi, [rsp+0F8h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_828F3
mov r14, rax
mov bpl, 1
loc_828F3:
lea rdi, [rsp+0F8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_8290A
jmp loc_829BC
mov r14, rax
loc_8290A:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_829BC
mov r14, rax
lea rdi, [rsp+0F8h+var_A0]
jmp short loc_8298A
jmp short loc_829A0
mov r14, rax
lea rdi, [rsp+0F8h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82937
mov r14, rax
mov bl, 1
loc_82937:
lea rdi, [rsp+0F8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bl, bl
jnz short loc_8294A
jmp short loc_82994
mov r14, rax
loc_8294A:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_82994
mov r14, rax
lea rdi, [rsp+0F8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82969
mov r14, rax
loc_82969:
lea rdi, [rsp+0F8h+var_90]
jmp short loc_8298A
mov r14, rax
lea rdi, [rsp+0F8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_82985
mov r14, rax
loc_82985:
lea rdi, [rsp+0F8h+var_80]
loc_8298A:
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_82994
mov r14, rax
loc_82994:
mov rdi, [rsp+0F8h+var_F0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_829BC
loc_829A0:
mov r14, rax
jmp short loc_829B2
mov r14, rax
lea rdi, [rsp+0F8h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_829B2:
lea rdi, [rsp+0F8h+var_E8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_829BC:
mov rdi, r14
call __Unwind_Resume
|
unsigned __int8 * minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
unsigned __int8 *a1,
long long a2)
{
long long *v4; // rax
long long v5; // r15
long long v6; // rbx
long long v7; // rax
_BYTE *v8; // r15
_BYTE *v9; // rsi
int v10; // eax
long long v11; // rax
_BYTE *v12; // r12
_QWORD *v13; // rdi
long long v14; // rax
long long v15; // rax
void *v17; // r12
void *exception; // rbx
__int128 v20; // [rsp+10h] [rbp-E8h] BYREF
long long v21; // [rsp+20h] [rbp-D8h]
_BYTE *v22; // [rsp+30h] [rbp-C8h]
_BYTE v23[32]; // [rsp+38h] [rbp-C0h] BYREF
_BYTE v24[16]; // [rsp+58h] [rbp-A0h] BYREF
_BYTE v25[16]; // [rsp+68h] [rbp-90h] BYREF
_BYTE v26[16]; // [rsp+78h] [rbp-80h] BYREF
_QWORD v27[4]; // [rsp+88h] [rbp-70h] BYREF
_QWORD v28[10]; // [rsp+A8h] [rbp-50h] BYREF
if ( minja::Value::is_primitive((minja::Value *)a2) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
(unsigned __int8 *)(a2 + 64));
return a1;
}
if ( minja::Value::is_null((minja::Value *)a2) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)a1);
return a1;
}
v4 = *(long long **)(a2 + 16);
if ( v4 )
{
v21 = 0LL;
v20 = 0LL;
v5 = *v4;
v6 = v4[1];
while ( v5 != v6 )
{
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v23,
v5);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v20,
(long long)v23);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v23);
v5 += 80LL;
}
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_(
a1,
&v20);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long *)&v20);
return a1;
}
if ( !*(_QWORD *)(a2 + 32) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v23, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v20, (long long)"get<json> not defined for this value type: ", (long long)v23);
std::runtime_error::runtime_error(exception, &v20);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::object(
a1,
0LL,
0LL);
v7 = *(_QWORD *)(a2 + 32);
v8 = *(_BYTE **)v7;
v22 = *(_BYTE **)(v7 + 8);
while ( v8 != v22 )
{
v9 = v8 + 16;
v10 = (unsigned __int8)*v8;
if ( *v8 && v10 != 4 )
{
if ( v10 == 3 )
{
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v25,
v9);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v27,
(long long)v8);
v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
(long long)a1,
v27);
v12 = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v11,
(long long)v25);
v13 = v27;
goto LABEL_19;
}
if ( (unsigned __int8)(v10 - 5) > 3u )
{
v17 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v23,
(long long)v8,
-1,
32,
0,
0);
std::operator+<char>((long long)&v20, (long long)"Invalid key type for conversion to JSON: ", (long long)v23);
std::runtime_error::runtime_error(v17, &v20);
__cxa_throw(
v17,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v26,
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>::dump(
(long long)v28,
(long long)v8,
-1,
32,
0,
0);
v14 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
(long long)a1,
v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v14,
(long long)v26);
v13 = v28;
v12 = v26;
LABEL_19:
std::string::~string(v13);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v12);
v8 += 96;
}
if ( *(_QWORD *)(a2 + 48) )
{
LOBYTE(v20) = 1;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(
v24,
&v20);
v15 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
(long long)a1,
(long long)"__callable__");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v15,
(long long)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v24);
}
return a1;
}
|
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV R14,RSI
MOV R13,RDI
MOV RDI,RSI
CALL 0x00162ef0
TEST AL,AL
JZ 0x00182647
ADD R14,0x40
MOV RDI,R13
MOV RSI,R14
CALL 0x00141faa
JMP 0x0018280b
LAB_00182647:
MOV RDI,R14
CALL 0x001634ea
TEST AL,AL
JZ 0x00182662
MOV RDI,R13
XOR ESI,ESI
CALL 0x0013d266
JMP 0x0018280b
LAB_00182662:
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x001826cd
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
AND qword ptr [R14 + 0x10],0x0
MOVAPS xmmword ptr [R14],XMM0
MOV R15,qword ptr [RAX]
MOV RBX,qword ptr [RAX + 0x8]
LEA R12,[RSP + 0x38]
LAB_00182688:
CMP R15,RBX
JZ 0x001826b1
LAB_0018268d:
MOV RDI,R12
MOV RSI,R15
CALL 0x00182610
LAB_00182698:
MOV RDI,R14
MOV RSI,R12
CALL 0x00141b30
MOV RDI,R12
CALL 0x0013d252
ADD R15,0x50
JMP 0x00182688
LAB_001826b1:
LEA RSI,[RSP + 0x10]
MOV RDI,R13
CALL 0x00183016
LAB_001826be:
LEA RDI,[RSP + 0x10]
CALL 0x00142cfa
JMP 0x0018280b
LAB_001826cd:
CMP qword ptr [R14 + 0x20],0x0
JZ 0x00182883
MOV qword ptr [RSP + 0x8],R13
MOV RDI,R13
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0018304e
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RAX
LEA RBP,[RSP + 0x78]
LEA R13,[RSP + 0xa8]
LAB_00182706:
LEA R12,[RSP + 0x88]
CMP R15,qword ptr [RSP + 0x30]
JZ 0x001827c6
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x00182773
CMP EAX,0x4
JZ 0x00182773
CMP EAX,0x3
JNZ 0x00182769
LAB_0018272f:
LEA RDI,[RSP + 0x68]
CALL 0x00182610
LAB_00182739:
MOV RDI,R12
MOV RSI,R15
CALL 0x00163bca
LAB_00182744:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0017e216
MOV RBX,R12
MOV RDI,RAX
LEA R12,[RSP + 0x68]
MOV RSI,R12
CALL 0x0013fdd8
MOV RDI,RBX
JMP 0x001827b0
LAB_00182769:
ADD AL,0xfb
CMP AL,0x3
JA 0x00182820
LAB_00182773:
MOV RDI,RBP
CALL 0x00182610
LAB_0018277b:
MOV RDI,R13
MOV RSI,R15
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0015d0e4
LAB_00182792:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R13
CALL 0x0017e216
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0013fdd8
MOV RDI,R13
MOV R12,RBP
LAB_001827b0:
CALL 0x00124208
MOV RDI,R12
CALL 0x0013d252
ADD R15,0x60
JMP 0x00182706
LAB_001827c6:
CMP qword ptr [R14 + 0x30],0x0
MOV R13,qword ptr [RSP + 0x8]
JZ 0x0018280b
LEA RSI,[RSP + 0x10]
MOV byte ptr [RSI],0x1
LEA RDI,[RSP + 0x58]
CALL 0x00183062
LAB_001827e4:
LEA RSI,[0x1b51f3]
MOV RDI,R13
CALL 0x0017a55e
LAB_001827f3:
LEA R14,[RSP + 0x58]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0013fdd8
MOV RDI,R14
CALL 0x0013d252
LAB_0018280b:
MOV RAX,R13
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182820:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV R12,RAX
LAB_0018282b:
LEA RDI,[RSP + 0x38]
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
MOV RSI,R15
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0015d0e4
LAB_00182844:
LEA RSI,[0x1b51c9]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x38]
CALL 0x00158626
MOV BL,0x1
LAB_0018285c:
LEA RSI,[RSP + 0x10]
MOV RDI,R12
CALL 0x00123e60
XOR EBX,EBX
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,R12
CALL 0x00123f30
LAB_00182883:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV RBX,RAX
LAB_0018288e:
LEA RDI,[RSP + 0x38]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00162f00
LAB_001828a0:
LEA RSI,[0x1b5200]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x38]
CALL 0x00158626
MOV BPL,0x1
LAB_001828b9:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >() const */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(void)
{
long *plVar1;
long lVar2;
char cVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar4;
runtime_error *prVar5;
Value *in_RSI;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*in_RDI;
string *this;
long lVar6;
char *pcVar7;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
char *local_c8;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_a0 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_80 [16];
string local_70 [32];
string local_50 [32];
cVar3 = is_primitive(in_RSI);
if (cVar3 == '\0') {
cVar3 = is_null(in_RSI);
if (cVar3 == '\0') {
plVar1 = *(long **)(in_RSI + 0x10);
if (plVar1 == (long *)0x0) {
if (*(long *)(in_RSI + 0x20) == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018288e to 0018289f has its CatchHandler @ 00182907 */
dump_abi_cxx11_((int)local_c0,SUB81(in_RSI,0));
/* try { // try from 001828a0 to 001828b5 has its CatchHandler @ 001828ed */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 001828b9 to 001828dd has its CatchHandler @ 001828de */
std::runtime_error::runtime_error(prVar5,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::object();
local_c8 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
for (pcVar7 = (char *)**(int8 **)(in_RSI + 0x20); pcVar7 != local_c8;
pcVar7 = pcVar7 + 0x60) {
cVar3 = *pcVar7;
if ((cVar3 == '\0') || (cVar3 == '\x04')) {
LAB_00182773:
/* try { // try from 00182773 to 0018277a has its CatchHandler @ 00182991 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 0018277b to 00182791 has its CatchHandler @ 00182982 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_50,pcVar7,0xffffffffffffffff,0x20,0,0);
/* try { // try from 00182792 to 0018279e has its CatchHandler @ 00182970 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[](in_RDI,local_50);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_80);
this = local_50;
pbVar4 = local_80;
}
else {
if (cVar3 != '\x03') {
if (3 < (byte)(cVar3 - 5U)) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar7 + 0x10);
/* try { // try from 0018282b to 00182843 has its CatchHandler @ 00182947 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_c0,pcVar7,0xffffffffffffffff,0x20,0,0);
/* try { // try from 00182844 to 00182859 has its CatchHandler @ 00182932 */
std::operator+((char *)&local_e8,
(string *)"Invalid key type for conversion to JSON: ");
/* try { // try from 0018285c to 00182880 has its CatchHandler @ 00182923 */
std::runtime_error::runtime_error(prVar5,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
goto LAB_00182773;
}
/* try { // try from 0018272f to 00182738 has its CatchHandler @ 00182991 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00182739 to 00182743 has its CatchHandler @ 00182966 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_70,pcVar7);
/* try { // try from 00182744 to 00182750 has its CatchHandler @ 00182954 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[](in_RDI,local_70);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_90);
this = local_70;
pbVar4 = local_90;
}
std::__cxx11::string::~string(this);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pbVar4);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_e8 = CONCAT71(local_e8._1_7_,1);
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_a0);
/* try { // try from 001827e4 to 001827f2 has its CatchHandler @ 00182917 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(in_RDI,"__callable__");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_a0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_a0);
}
}
else {
local_d8 = 0;
local_e8 = 0;
uStack_e0 = 0;
lVar2 = plVar1[1];
for (lVar6 = *plVar1; lVar6 != lVar2; lVar6 = lVar6 + 0x50) {
/* try { // try from 0018268d to 00182697 has its CatchHandler @ 001829a0 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00182698 to 001826a2 has its CatchHandler @ 001829a5 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,local_c0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_c0);
}
/* try { // try from 001826b1 to 001826bd has its CatchHandler @ 00182921 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8);
}
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)in_RDI);
}
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(in_RDI,in_RSI + 0x40);
}
return in_RDI;
}
|
|
10,020 |
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const
|
monkey531[P]llama/common/json.hpp
|
const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const:
pushq %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x99d72
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x99d60
cmpl $0x2, %eax
jne 0x99d69
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x99d5a
leaq 0x30(%rbx), %rdi
callq 0x9c657
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0x99d6d
movq %rbx, %rdi
popq %rbx
jmp 0x8418e
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
leaq 0x35506(%rip), %rdi # 0xcf27f
leaq 0x2dbc3(%rip), %rdx # 0xc7943
leaq 0x397f6(%rip), %rcx # 0xd357d
movl $0x1491, %esi # imm = 0x1491
xorl %eax, %eax
callq 0x27520
nop
|
_ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv:
push rbx
mov rax, [rdi]
test rax, rax
jz short loc_99D72
mov rbx, rdi
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_99D60
cmp eax, 2
jnz short loc_99D69
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_99D5A
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_36detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_99D5A:
add rbx, 30h ; '0'
jmp short loc_99D6D
loc_99D60:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::key(void)
loc_99D69:
add rbx, 50h ; 'P'
loc_99D6D:
mov rax, rbx
pop rbx
retn
loc_99D72:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN; "anchor.m_object != nullptr"
mov esi, 1491h
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(
unsigned __int8 **a1)
{
int v1; // eax
if ( *a1 )
{
v1 = **a1;
if ( v1 == 1 )
{
return nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::key(a1);
}
else
{
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
5265LL,
"GGML_ASSERT(%s) failed",
"anchor.m_object != nullptr");
return nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::operator++("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
}
|
key:
PUSH RBX
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00199d72
MOV RBX,RDI
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x1
JZ 0x00199d60
CMP EAX,0x2
JNZ 0x00199d69
MOV RSI,qword ptr [RBX + 0x20]
CMP RSI,qword ptr [RBX + 0x28]
JZ 0x00199d5a
LEA RDI,[RBX + 0x30]
CALL 0x0019c657
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBX + 0x28],RAX
LAB_00199d5a:
ADD RBX,0x30
JMP 0x00199d6d
LAB_00199d60:
MOV RDI,RBX
POP RBX
JMP 0x0018418e
LAB_00199d69:
ADD RBX,0x50
LAB_00199d6d:
MOV RAX,RBX
POP RBX
RET
LAB_00199d72:
LEA RDI,[0x1cf27f]
LEA RDX,[0x1c7943]
LEA RCX,[0x1d357d]
MOV ESI,0x1491
XOR EAX,EAX
CALL 0x00127520
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const> >::key() const */
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::key(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*this)
{
char cVar1;
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*piVar2;
if (*(char **)this == (char *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1491,
"GGML_ASSERT(%s) failed","anchor.m_object != nullptr");
}
cVar1 = **(char **)this;
if (cVar1 != '\x01') {
if (cVar1 == '\x02') {
if (*(ulong *)(this + 0x20) != *(ulong *)(this + 0x28)) {
int_to_string<std::__cxx11::string>((string *)(this + 0x30),*(ulong *)(this + 0x20));
*(int8 *)(this + 0x28) = *(int8 *)(this + 0x20);
}
piVar2 = this + 0x30;
}
else {
piVar2 = this + 0x50;
}
return piVar2;
}
piVar2 = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::key((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)this);
return piVar2;
}
|
|
10,021 |
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const
|
monkey531[P]llama/common/json.hpp
|
const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const:
pushq %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xd14be
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0xd14ac
cmpl $0x2, %eax
jne 0xd14b5
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0xd14a6
leaq 0x30(%rbx), %rdi
callq 0xd1573
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0xd14b9
movq %rbx, %rdi
popq %rbx
jmp 0xd1634
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
leaq 0x40ed7(%rip), %rdi # 0x11239c
leaq 0x395a7(%rip), %rdx # 0x10aa73
leaq 0x451ba(%rip), %rcx # 0x11668d
movl $0x1491, %esi # imm = 0x1491
xorl %eax, %eax
callq 0x1e500
nop
|
_ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv:
push rbx
mov rax, [rdi]
test rax, rax
jz short loc_D14BE
mov rbx, rdi
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_D14AC
cmp eax, 2
jnz short loc_D14B5
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_D14A6
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_36detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_D14A6:
add rbx, 30h ; '0'
jmp short loc_D14B9
loc_D14AC:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::key(void)
loc_D14B5:
add rbx, 50h ; 'P'
loc_D14B9:
mov rax, rbx
pop rbx
retn
loc_D14BE:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN; "anchor.m_object != nullptr"
mov esi, 1491h
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
if ( *a1 )
{
v1 = **a1;
if ( v1 == 1 )
{
return nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(a1);
}
else
{
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
5265LL,
"GGML_ASSERT(%s) failed",
"anchor.m_object != nullptr");
return nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~iteration_proxy_value("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
}
|
key:
PUSH RBX
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x001d14be
MOV RBX,RDI
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x1
JZ 0x001d14ac
CMP EAX,0x2
JNZ 0x001d14b5
MOV RSI,qword ptr [RBX + 0x20]
CMP RSI,qword ptr [RBX + 0x28]
JZ 0x001d14a6
LEA RDI,[RBX + 0x30]
CALL 0x001d1573
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBX + 0x28],RAX
LAB_001d14a6:
ADD RBX,0x30
JMP 0x001d14b9
LAB_001d14ac:
MOV RDI,RBX
POP RBX
JMP 0x001d1634
LAB_001d14b5:
ADD RBX,0x50
LAB_001d14b9:
MOV RAX,RBX
POP RBX
RET
LAB_001d14be:
LEA RDI,[0x21239c]
LEA RDX,[0x20aa73]
LEA RCX,[0x21668d]
MOV ESI,0x1491
XOR EAX,EAX
CALL 0x0011e500
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >::key() const */
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::key(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this)
{
char cVar1;
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*piVar2;
if (*(char **)this == (char *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1491,
"GGML_ASSERT(%s) failed","anchor.m_object != nullptr");
}
cVar1 = **(char **)this;
if (cVar1 != '\x01') {
if (cVar1 == '\x02') {
if (*(ulong *)(this + 0x20) != *(ulong *)(this + 0x28)) {
int_to_string<std::__cxx11::string>((string *)(this + 0x30),*(ulong *)(this + 0x20));
*(int8 *)(this + 0x28) = *(int8 *)(this + 0x20);
}
piVar2 = this + 0x30;
}
else {
piVar2 = this + 0x50;
}
return piVar2;
}
piVar2 = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::key((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)this);
return piVar2;
}
|
|
10,022 |
unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type::~type()
|
aimrt_mujoco_sim/_deps/libunifex-src/include/unifex/sequence.hpp
|
~type() {
switch (status_) {
case status::predecessor_operation_constructed:
unifex::deactivate_union_member(predOp_);
break;
case status::successor_operation_constructed:
unifex::deactivate_union_member(succOp_);
break;
case status::empty: break;
}
}
|
O0
|
cpp
|
unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type::~type():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movl 0x28(%rax), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0xf3853
jmp 0xf381f
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0xf3835
jmp 0xf382a
movl 0xc(%rsp), %eax
subl $0x2, %eax
je 0xf3844
jmp 0xf3855
movq (%rsp), %rdi
addq $0x30, %rdi
callq 0xf15e0
jmp 0xf3855
movq (%rsp), %rdi
addq $0x30, %rdi
callq 0xf3870
jmp 0xf3855
jmp 0xf3855
movq (%rsp), %rdi
callq 0xda980
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN6unifex4_seq3_opIONS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES3_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS0_7_senderIS4_SF_E4typeEE4typeEE4typeD2Ev:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_18], rax
mov eax, [rax+28h]
mov [rsp+18h+var_C], eax
test eax, eax
jz short loc_F3853
jmp short $+2
loc_F381F:
mov eax, [rsp+18h+var_C]
sub eax, 1
jz short loc_F3835
jmp short $+2
loc_F382A:
mov eax, [rsp+18h+var_C]
sub eax, 2
jz short loc_F3844
jmp short loc_F3855
loc_F3835:
mov rdi, [rsp+18h+var_18]
add rdi, 30h ; '0'
call _ZN6unifex23deactivate_union_memberINS_13_inline_sched3_opINS_4_seq21_predecessor_receiverIONS1_9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES5_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS3_7_senderIS6_SH_E4typeEE4typeEE4typeEE4typeEEEvRNS_15manual_lifetimeIT_EE; unifex::deactivate_union_member<unifex::_inline_sched::_op<unifex::_seq::_predecessor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::manual_lifetime<unifex::_inline_sched::_op<unifex::_seq::_predecessor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type> &)
jmp short loc_F3855
loc_F3844:
mov rdi, [rsp+18h+var_18]
add rdi, 30h ; '0'
call _ZN6unifex23deactivate_union_memberINS_17_with_query_value3_opINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerEONS_5_task5_taskIvE4typeENS_4_seq19_successor_receiverIONS6_13schedule_taskENS1_7_senderIS4_S6_SA_E4typeENS_12_async_scope9_receiverINSC_7_senderISE_SI_E4typeEE4typeEE4typeEE4typeEEEvRNS_15manual_lifetimeIT_EE; unifex::deactivate_union_member<unifex::_with_query_value::_op<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type &&,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_task::_task<void>::type &&::_sender<unifex::_seq::_successor_receiver,unifex::_with_query_value::_sender>::type>::type>::type>::type>(unifex::manual_lifetime<unifex::_with_query_value::_op<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type &&,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_task::_task<void>::type &&::_sender<unifex::_seq::_successor_receiver,unifex::_with_query_value::_sender>::type>::type>::type>::type> &)
jmp short loc_F3855
loc_F3853:
jmp short $+2
loc_F3855:
mov rdi, [rsp+18h+var_18]
call _ZN6unifex17_with_query_value7_senderINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_5_task5_taskIvE4typeEE4typeD2Ev; unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type::~type()
add rsp, 18h
retn
|
long long unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type::~type(
long long a1)
{
int v2; // [rsp+Ch] [rbp-Ch]
v2 = *(_DWORD *)(a1 + 40);
if ( v2 )
{
if ( v2 == 1 )
{
unifex::deactivate_union_member<unifex::_inline_sched::_op<unifex::_seq::_predecessor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(a1 + 48);
}
else if ( v2 == 2 )
{
unifex::deactivate_union_member<unifex::_with_query_value::_op<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type &&,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_task::_task<void>::type &&::_sender<unifex::_seq::_successor_receiver,unifex::_with_query_value::_sender>::type>::type>::type>::type>(a1 + 48);
}
}
return unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type::~type(a1);
}
|
~type:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RAX + 0x28]
MOV dword ptr [RSP + 0xc],EAX
TEST EAX,EAX
JZ 0x001f3853
JMP 0x001f381f
LAB_001f381f:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x1
JZ 0x001f3835
JMP 0x001f382a
LAB_001f382a:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x2
JZ 0x001f3844
JMP 0x001f3855
LAB_001f3835:
MOV RDI,qword ptr [RSP]
ADD RDI,0x30
CALL 0x001f15e0
JMP 0x001f3855
LAB_001f3844:
MOV RDI,qword ptr [RSP]
ADD RDI,0x30
CALL 0x001f3870
JMP 0x001f3855
LAB_001f3853:
JMP 0x001f3855
LAB_001f3855:
MOV RDI,qword ptr [RSP]
CALL 0x001da980
ADD RSP,0x18
RET
|
/* unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type,
unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type>::type>::type>::type::~type() */
void __thiscall
unifex::_seq::
_op<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>
::type::~type(type *this)
{
int iVar1;
iVar1 = *(int *)(this + 0x28);
if (iVar1 != 0) {
if (iVar1 == 1) {
deactivate_union_member<unifex::_inline_sched::_op<unifex::_seq::_predecessor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
((manual_lifetime *)(this + 0x30));
}
else if (iVar1 == 2) {
deactivate_union_member<unifex::_with_query_value::_op<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type&&,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
((manual_lifetime *)(this + 0x30));
}
}
unifex::_with_query_value::
_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>
::type::~type((type *)this);
return;
}
|
|
10,023 |
unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type::~type()
|
aimrt_mujoco_sim/_deps/libunifex-src/include/unifex/sequence.hpp
|
~type() {
switch (status_) {
case status::predecessor_operation_constructed:
unifex::deactivate_union_member(predOp_);
break;
case status::successor_operation_constructed:
unifex::deactivate_union_member(succOp_);
break;
case status::empty: break;
}
}
|
O3
|
cpp
|
unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type::~type():
pushq %rbx
movq %rdi, %rbx
cmpl $0x2, 0x28(%rdi)
jne 0x4efc0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x4efc0
callq *0x8(%rdi)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4efcb
callq *0x8(%rdi)
popq %rbx
retq
jmp 0x4efcf
movq %rax, %rdi
callq 0x33bfc
|
_ZN6unifex4_seq3_opIONS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES3_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS0_7_senderIS4_SF_E4typeEE4typeEE4typeD2Ev:
push rbx
mov rbx, rdi
cmp dword ptr [rdi+28h], 2
jnz short loc_4EFC0
mov rdi, [rbx+30h]
test rdi, rdi
jz short loc_4EFC0
call qword ptr [rdi+8]
loc_4EFC0:
mov rdi, [rbx]
test rdi, rdi
jz short loc_4EFCB
call qword ptr [rdi+8]
loc_4EFCB:
pop rbx
retn
jmp short $+2
loc_4EFCF:
mov rdi, rax
call __clang_call_terminate
|
void unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type::~type(
long long a1)
{
long long v2; // rdi
if ( *(_DWORD *)(a1 + 40) == 2 )
{
v2 = *(_QWORD *)(a1 + 48);
if ( v2 )
(*(void (**)(void))(v2 + 8))();
}
if ( *(_QWORD *)a1 )
(*(void (**)(void))(*(_QWORD *)a1 + 8LL))();
}
|
~type:
PUSH RBX
MOV RBX,RDI
CMP dword ptr [RDI + 0x28],0x2
JNZ 0x0014efc0
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x0014efc0
LAB_0014efbd:
CALL qword ptr [RDI + 0x8]
LAB_0014efc0:
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x0014efcb
LAB_0014efc8:
CALL qword ptr [RDI + 0x8]
LAB_0014efcb:
POP RBX
RET
|
/* unifex::_seq::_op<unifex::_inline_sched::scheduler::schedule_task&&,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type,
unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type>::type>::type>::type::~type() */
void __thiscall
unifex::_seq::
_op<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>
::type::~type(type *this)
{
if ((*(int *)(this + 0x28) == 2) && (*(long *)(this + 0x30) != 0)) {
/* try { // try from 0014efbd to 0014efbf has its CatchHandler @ 0014efcd */
(**(code **)(*(long *)(this + 0x30) + 8))();
}
if (*(long *)this != 0) {
/* try { // try from 0014efc8 to 0014efca has its CatchHandler @ 0014efcf */
(**(code **)(*(long *)this + 8))();
}
return;
}
|
|
10,024 |
mysql_stmt_fetch_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_stmt_fetch_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_fetch,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
}
|
O3
|
c
|
mysql_stmt_fetch_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x236bb
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_stmt_fetch_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_fetch
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
|
long long mysql_stmt_fetch_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_fetch(v1);
v2[2] = result;
*v2 = 0;
return result;
}
|
mysql_stmt_fetch_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x001236bb
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_fetch_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_fetch();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
10,025 |
minja::Parser::parseLogicalOr()
|
llama.cpp/common/minja/minja.hpp
|
std::shared_ptr<Expression> parseLogicalOr() {
auto left = parseLogicalAnd();
if (!left) throw std::runtime_error("Expected left side of 'logical or' expression");
static std::regex or_tok(R"(or\b)");
auto location = get_location();
while (!consumeToken(or_tok).empty()) {
auto right = parseLogicalAnd();
if (!right) throw std::runtime_error("Expected right side of 'or' expression");
left = std::make_shared<BinaryOpExpr>(location, std::move(left), std::move(right), BinaryOpExpr::Op::Or);
}
return left;
}
|
O3
|
cpp
|
minja::Parser::parseLogicalOr():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r15
movq %rdi, %rbx
callq 0xe2806
cmpq $0x0, (%rbx)
je 0xe24f6
leaq 0x84242(%rip), %rax # 0x1665c0
movb (%rax), %al
testb %al, %al
je 0xe2528
movq (%r15), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xe23b3
movq 0x82bf3(%rip), %rcx # 0x164f98
cmpb $0x0, (%rcx)
je 0xe23af
incl 0x8(%rax)
jmp 0xe23b3
lock
incl 0x8(%rax)
leaq 0x20(%rsp), %rcx
movq 0x20(%r15), %rax
subq 0x10(%r15), %rax
movq %rax, 0x8(%rcx)
leaq 0x8(%rsp), %r13
leaq 0x81b40(%rip), %rbp # 0x163f10
addq $0x10, %rbp
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
leaq 0x841bd(%rip), %rdx # 0x1665a0
movl $0x1, %ecx
callq 0xe111a
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %r14
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xe240e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21190
testq %r14, %r14
je 0xe24a6
movq %r13, %rdi
movq %r15, %rsi
callq 0xe2806
cmpq $0x0, 0x8(%rsp)
je 0xe24c2
movl $0x58, %edi
callq 0x21220
movq %rax, %r14
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
movq %rbp, (%r14)
movq %r14, %r12
addq $0x10, %r12
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq %r13, %rcx
movl $0xf, %r8d
callq 0xee832
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movups (%rbx), %xmm0
movq %r12, (%rbx)
movq %r14, 0x8(%rbx)
movaps %xmm0, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x72cea
leaq 0x58(%rsp), %rdi
callq 0x72cea
leaq 0x10(%rsp), %rdi
callq 0x72cea
jmp 0xe23d4
leaq 0x20(%rsp), %rdi
callq 0x72cea
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x216d0
movq %rax, %r15
leaq 0x40ce0(%rip), %rsi # 0x1231b6
movq %rax, %rdi
callq 0x21430
movq 0x82adb(%rip), %rsi # 0x164fc0
movq 0x82a94(%rip), %rdx # 0x164f80
movq %r15, %rdi
callq 0x21b60
jmp 0xe2528
movl $0x10, %edi
callq 0x216d0
movq %rax, %r15
leaq 0x40c79(%rip), %rsi # 0x123183
movq %rax, %rdi
callq 0x21430
movq 0x82aa7(%rip), %rsi # 0x164fc0
movq 0x82a60(%rip), %rdx # 0x164f80
movq %r15, %rdi
callq 0x21b60
leaq 0x84091(%rip), %rdi # 0x1665c0
callq 0x215f0
testl %eax, %eax
je 0xe2388
leaq 0x8405d(%rip), %rdi # 0x1665a0
leaq 0x40c67(%rip), %rsi # 0x1231b1
movl $0x10, %edx
callq 0x68604
leaq -0x79eab(%rip), %rdi # 0x686b0
leaq 0x8403e(%rip), %rsi # 0x1665a0
leaq 0x8361f(%rip), %rdx # 0x165b88
callq 0x22060
leaq 0x8404b(%rip), %rdi # 0x1665c0
callq 0x21a60
jmp 0xe2388
movq %rax, %r14
leaq 0x84037(%rip), %rdi # 0x1665c0
callq 0x21780
jmp 0xe25cf
movq %rax, %r14
jmp 0xe25cf
movq %rax, %r14
movq %r15, %rdi
callq 0x22080
jmp 0xe25cf
jmp 0xe25b3
movq %rax, %r14
movq %r15, %rdi
callq 0x22080
jmp 0xe25b6
jmp 0xe25c2
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x72cea
jmp 0xe25c5
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x72cea
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x72cea
movq %r14, %rdi
callq 0x21c20
nop
|
_ZN5minja6Parser14parseLogicalOrEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, rsi
mov rbx, rdi
call _ZN5minja6Parser15parseLogicalAndEv; minja::Parser::parseLogicalAnd(void)
cmp qword ptr [rbx], 0
jz loc_E24F6
lea rax, _ZGVZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; `guard variable for'minja::Parser::parseLogicalOr(void)::or_tok
mov al, [rax]
test al, al
jz loc_E2528
loc_E2388:
mov rax, [r15]
mov [rsp+98h+var_80], rax; __int64
mov rax, [r15+8]
mov [rsp+98h+var_78], rax
test rax, rax
jz short loc_E23B3
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_E23AF
inc dword ptr [rax+8]
jmp short loc_E23B3
loc_E23AF:
lock inc dword ptr [rax+8]
loc_E23B3:
lea rcx, [rsp+98h+var_78]
mov rax, [r15+20h]
sub rax, [r15+10h]
mov [rcx+8], rax
lea r13, [rsp+98h+var_90]
lea rbp, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja12BinaryOpExprESaIvELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
add rbp, 10h
loc_E23D4:
lea rdi, [rsp+98h+var_68]; int
mov rsi, r15; int
lea rdx, _ZZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; int
mov ecx, 1; int
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
mov rdi, [rsp+98h+var_68]; void *
mov r14, [rsp+98h+var_68+8]
lea rax, [rsp+98h+var_58]
cmp rdi, rax
jz short loc_E240E
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E240E:
test r14, r14
jz loc_E24A6
mov rdi, r13; this
mov rsi, r15
call _ZN5minja6Parser15parseLogicalAndEv; minja::Parser::parseLogicalAnd(void)
cmp [rsp+98h+var_90], 0
jz loc_E24C2
mov edi, 58h ; 'X'; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rax, 100000001h
mov [r14+8], rax
mov [r14], rbp
mov r12, r14
add r12, 10h
mov rdi, r12
lea rsi, [rsp+98h+var_80]
mov rdx, rbx
mov rcx, r13
mov r8d, 0Fh
call _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE; minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,minja::BinaryOpExpr::Op)
xorps xmm0, xmm0
movaps [rsp+98h+var_48], xmm0
movups xmm0, xmmword ptr [rbx]
mov [rbx], r12
mov [rbx+8], r14
movaps xmmword ptr [rsp+98h+var_68], xmm0
lea rdi, [rsp+98h+var_68+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+98h+var_48+8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+98h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp loc_E23D4
loc_E24A6:
lea rdi, [rsp+98h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_E24C2:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedRightS; "Expected right side of 'or' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_E2528
loc_E24F6:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedLeftSi; "Expected left side of 'logical or' expr"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
loc_E2528:
lea rdi, _ZGVZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_E2388
lea rdi, _ZZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; minja::Parser::parseLogicalOr(void)::or_tok
lea rsi, aOrB; "or\\b"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_E2388
mov r14, rax
lea rdi, _ZGVZN5minja6Parser14parseLogicalOrEvE6or_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_E25CF
mov r14, rax
jmp short loc_E25CF
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_E25CF
jmp short loc_E25B3
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_E25B6
jmp short loc_E25C2
loc_E25B3:
mov r14, rax
loc_E25B6:
lea rdi, [rsp+arg_8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_E25C5
loc_E25C2:
mov r14, rax
loc_E25C5:
lea rdi, [rsp+arg_18]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_E25CF:
add rbx, 8
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseLogicalOr(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
void *v3; // r14
_QWORD *v4; // r14
__int128 v5; // xmm0
std::runtime_error *v7; // r15
std::runtime_error *exception; // r15
long long v9; // [rsp+8h] [rbp-90h] BYREF
volatile signed __int32 *v10; // [rsp+10h] [rbp-88h] BYREF
long long v11; // [rsp+18h] [rbp-80h] BYREF
volatile signed __int32 *v12[2]; // [rsp+20h] [rbp-78h] BYREF
void *v13[2]; // [rsp+30h] [rbp-68h] BYREF
long long v14; // [rsp+40h] [rbp-58h] BYREF
__int128 v15; // [rsp+50h] [rbp-48h] BYREF
minja::Parser::parseLogicalAnd(this);
if ( !*(_QWORD *)this )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected left side of 'logical or' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11],
(long long)"or\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11]);
}
v11 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v12[0] = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v12[1] = (volatile signed __int32 *)(a2[4] - a2[2]);
while ( 1 )
{
minja::Parser::consumeToken(v13, (long long)a2, (long long)&minja::Parser::parseLogicalOr(void)::or_tok[abi:cxx11], 1u);
v3 = v13[1];
if ( v13[0] != &v14 )
operator delete(v13[0], v14 + 1);
if ( !v3 )
break;
minja::Parser::parseLogicalAnd((minja::Parser *)&v9);
if ( !v9 )
{
v7 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v7, "Expected right side of 'or' expression");
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v4 = (_QWORD *)operator new(0x58uLL);
v4[1] = 0x100000001LL;
*v4 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2>
+ 2;
minja::BinaryOpExpr::BinaryOpExpr(v4 + 2, &v11, this, &v9, 15LL);
v15 = 0LL;
v5 = *(_OWORD *)this;
*(_QWORD *)this = v4 + 2;
*((_QWORD *)this + 1) = v4;
*(_OWORD *)v13 = v5;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v13[1]);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v15 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v10);
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v12);
return this;
}
|
parseLogicalOr:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,RSI
MOV RBX,RDI
CALL 0x001e2806
CMP qword ptr [RBX],0x0
JZ 0x001e24f6
LEA RAX,[0x2665c0]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001e2528
LAB_001e2388:
MOV RAX,qword ptr [R15]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RSP + 0x20],RAX
TEST RAX,RAX
JZ 0x001e23b3
MOV RCX,qword ptr [0x00264f98]
CMP byte ptr [RCX],0x0
JZ 0x001e23af
INC dword ptr [RAX + 0x8]
JMP 0x001e23b3
LAB_001e23af:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001e23b3:
LEA RCX,[RSP + 0x20]
MOV RAX,qword ptr [R15 + 0x20]
SUB RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RCX + 0x8],RAX
LEA R13,[RSP + 0x8]
LEA RBP,[0x263f10]
ADD RBP,0x10
LAB_001e23d4:
LEA RDI,[RSP + 0x30]
MOV RSI,R15
LEA RDX,[0x2665a0]
MOV ECX,0x1
CALL 0x001e111a
MOV RDI,qword ptr [RSP + 0x30]
MOV R14,qword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x40]
CMP RDI,RAX
JZ 0x001e240e
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x00121190
LAB_001e240e:
TEST R14,R14
JZ 0x001e24a6
LAB_001e2417:
MOV RDI,R13
MOV RSI,R15
CALL 0x001e2806
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001e24c2
LAB_001e242e:
MOV EDI,0x58
CALL 0x00121220
LAB_001e2438:
MOV R14,RAX
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
MOV qword ptr [R14],RBP
MOV R12,R14
ADD R12,0x10
MOV RDI,R12
LEA RSI,[RSP + 0x18]
MOV RDX,RBX
MOV RCX,R13
MOV R8D,0xf
CALL 0x001ee832
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVUPS XMM0,xmmword ptr [RBX]
MOV qword ptr [RBX],R12
MOV qword ptr [RBX + 0x8],R14
MOVAPS xmmword ptr [RSP + 0x30],XMM0
LEA RDI,[RSP + 0x38]
CALL 0x00172cea
LEA RDI,[RSP + 0x58]
CALL 0x00172cea
LEA RDI,[RSP + 0x10]
CALL 0x00172cea
JMP 0x001e23d4
LAB_001e24a6:
LEA RDI,[RSP + 0x20]
CALL 0x00172cea
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001e24c2:
MOV EDI,0x10
CALL 0x001216d0
MOV R15,RAX
LAB_001e24cf:
LEA RSI,[0x2231b6]
MOV RDI,RAX
CALL 0x00121430
LAB_001e24de:
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f80]
MOV RDI,R15
CALL 0x00121b60
LAB_001e24f6:
MOV EDI,0x10
CALL 0x001216d0
MOV R15,RAX
LAB_001e2503:
LEA RSI,[0x223183]
MOV RDI,RAX
CALL 0x00121430
LAB_001e2512:
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f80]
MOV RDI,R15
CALL 0x00121b60
LAB_001e2528:
LEA RDI,[0x2665c0]
CALL 0x001215f0
TEST EAX,EAX
JZ 0x001e2388
LAB_001e253c:
LEA RDI,[0x2665a0]
LEA RSI,[0x2231b1]
MOV EDX,0x10
CALL 0x00168604
LAB_001e2554:
LEA RDI,[0x1686b0]
LEA RSI,[0x2665a0]
LEA RDX,[0x265b88]
CALL 0x00122060
LEA RDI,[0x2665c0]
CALL 0x00121a60
JMP 0x001e2388
|
/* minja::Parser::parseLogicalOr() */
void minja::Parser::parseLogicalOr(void)
{
long lVar1;
int iVar2;
int8 *puVar3;
runtime_error *prVar4;
int8 *in_RSI;
long *in_RDI;
long local_90;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8];
int8 local_80;
long local_78;
long local_70;
long *local_68;
long lStack_60;
long local_58 [2];
int8 local_48;
int8 auStack_40 [2];
parseLogicalAnd();
if (*in_RDI == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e2503 to 001e2511 has its CatchHandler @ 001e2595 */
std::runtime_error::runtime_error(prVar4,"Expected left side of \'logical or\' expression");
/* try { // try from 001e2512 to 001e2527 has its CatchHandler @ 001e2590 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f80);
}
if (parseLogicalOr()::or_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseLogicalOr()::or_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 001e253c to 001e2553 has its CatchHandler @ 001e257f */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseLogicalOr()::or_tok_abi_cxx11_,&DAT_002231b1,0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseLogicalOr()::or_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseLogicalOr()::or_tok_abi_cxx11_);
}
}
local_80 = *in_RSI;
local_78 = in_RSI[1];
if (local_78 != 0) {
if (*PTR___libc_single_threaded_00264f98 == '\0') {
LOCK();
*(int *)(local_78 + 8) = *(int *)(local_78 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_78 + 8) = *(int *)(local_78 + 8) + 1;
}
}
local_70 = in_RSI[4] - in_RSI[2];
while( true ) {
/* try { // try from 001e23d4 to 001e23ec has its CatchHandler @ 001e25c2 */
consumeToken(&local_68);
lVar1 = lStack_60;
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
if (lVar1 == 0) break;
/* try { // try from 001e2417 to 001e2421 has its CatchHandler @ 001e25b1 */
parseLogicalAnd();
if (local_90 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e24cf to 001e24dd has its CatchHandler @ 001e25a4 */
std::runtime_error::runtime_error(prVar4,"Expected right side of \'or\' expression");
/* try { // try from 001e24de to 001e24f3 has its CatchHandler @ 001e25a2 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f80);
}
/* try { // try from 001e242e to 001e2437 has its CatchHandler @ 001e25b3 */
puVar3 = (int8 *)operator_new(0x58);
puVar3[1] = 0x100000001;
*puVar3 = &PTR___Sp_counted_base_00263f20;
BinaryOpExpr::BinaryOpExpr((BinaryOpExpr *)(puVar3 + 2),&local_80);
local_48 = 0;
auStack_40[0] = 0;
local_68 = (long *)*in_RDI;
lStack_60 = in_RDI[1];
*in_RDI = (long)(puVar3 + 2);
in_RDI[1] = (long)puVar3;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_60);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_40);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88);
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_78);
return;
}
|
|
10,026 |
JS_GetImportMeta
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_GetImportMeta(JSContext *ctx, JSModuleDef *m)
{
JSValue obj;
/* allocate meta_obj only if requested to save memory */
obj = m->meta_obj;
if (JS_IsUndefined(obj)) {
obj = JS_NewObjectProto(ctx, JS_NULL);
if (JS_IsException(obj))
return JS_EXCEPTION;
m->meta_obj = obj;
}
return js_dup(obj);
}
|
O0
|
c
|
JS_GetImportMeta:
subq $0x58, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x108(%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x110(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x2e260
cmpl $0x0, %eax
je 0x4a38a
movq 0x40(%rsp), %rdi
movl $0x0, 0x8(%rsp)
movq $0x2, 0x10(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x2a4d0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x4a36d
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0x4a3a3
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x108(%rax)
movq 0x30(%rsp), %rcx
movq %rcx, 0x110(%rax)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x216d0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
|
JS_GetImportMeta:
sub rsp, 58h
mov [rsp+58h+var_18], rdi
mov [rsp+58h+var_20], rsi
mov rax, [rsp+58h+var_20]
mov rcx, [rax+108h]
mov [rsp+58h+var_30], rcx
mov rax, [rax+110h]
mov [rsp+58h+var_28], rax
mov rdi, [rsp+58h+var_30]
mov rsi, [rsp+58h+var_28]
call JS_IsUndefined_0
cmp eax, 0
jz loc_4A38A
mov rdi, [rsp+58h+var_18]
mov dword ptr [rsp+58h+var_50], 0
mov [rsp+58h+var_48], 2
mov rsi, [rsp+58h+var_50]
mov rdx, [rsp+58h+var_48]
call JS_NewObjectProto
mov [rsp+58h+var_40], rax
mov [rsp+58h+var_38], rdx
mov rax, [rsp+58h+var_40]
mov [rsp+58h+var_30], rax
mov rax, [rsp+58h+var_38]
mov [rsp+58h+var_28], rax
mov rdi, [rsp+58h+var_30]
mov rsi, [rsp+58h+var_28]
call JS_IsException_1
cmp eax, 0
jz short loc_4A36D
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 6
jmp short loc_4A3A3
loc_4A36D:
mov rax, [rsp+58h+var_20]
mov rcx, [rsp+58h+var_30]
mov [rax+108h], rcx
mov rcx, [rsp+58h+var_28]
mov [rax+110h], rcx
loc_4A38A:
mov rdi, [rsp+58h+var_30]
mov rsi, [rsp+58h+var_28]
call js_dup
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
loc_4A3A3:
mov rax, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_8]
add rsp, 58h
retn
|
_DWORD * JS_GetImportMeta(long long a1, long long a2)
{
long long v2; // rdx
long long v4; // [rsp+8h] [rbp-50h]
long long v5; // [rsp+18h] [rbp-40h]
_DWORD *v6; // [rsp+28h] [rbp-30h]
long long v7; // [rsp+30h] [rbp-28h]
long long v8; // [rsp+48h] [rbp-10h]
v6 = *(_DWORD **)(a2 + 264);
v7 = *(_QWORD *)(a2 + 272);
if ( !JS_IsUndefined_0((long long)v6, v7) )
return js_dup(v6, v7);
LODWORD(v4) = 0;
v5 = JS_NewObjectProto(a1, v4, 2LL);
v6 = (_DWORD *)v5;
v7 = v2;
if ( !JS_IsException_1(v5, v2) )
{
*(_QWORD *)(a2 + 264) = v5;
*(_QWORD *)(a2 + 272) = v7;
return js_dup(v6, v7);
}
LODWORD(v8) = 0;
return (_DWORD *)v8;
}
|
JS_GetImportMeta:
SUB RSP,0x58
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RAX + 0x108]
MOV qword ptr [RSP + 0x28],RCX
MOV RAX,qword ptr [RAX + 0x110]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x0012e260
CMP EAX,0x0
JZ 0x0014a38a
MOV RDI,qword ptr [RSP + 0x40]
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x2
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0012a4d0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0014a36d
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x0014a3a3
LAB_0014a36d:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x108],RCX
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX + 0x110],RCX
LAB_0014a38a:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x001216d0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
LAB_0014a3a3:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
int1 [16] JS_GetImportMeta(int8 param_1,long param_2)
{
int iVar1;
int1 auVar2 [16];
uint uStack_4c;
int8 local_30;
int8 local_28;
int4 local_10;
int4 uStack_c;
int8 local_8;
auVar2 = *(int1 (*) [16])(param_2 + 0x108);
iVar1 = JS_IsUndefined(*(int8 *)*(int1 (*) [16])(param_2 + 0x108),
*(int8 *)(param_2 + 0x110));
if (iVar1 != 0) {
auVar2 = JS_NewObjectProto(param_1,(ulong)uStack_4c << 0x20,2);
iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_);
if (iVar1 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_0014a3a3;
}
*(int1 (*) [16])(param_2 + 0x108) = auVar2;
}
local_28 = auVar2._8_8_;
local_30 = auVar2._0_8_;
auVar2 = js_dup(local_30,local_28);
local_8 = auVar2._8_8_;
local_10 = auVar2._0_4_;
uStack_c = auVar2._4_4_;
LAB_0014a3a3:
auVar2._4_4_ = uStack_c;
auVar2._0_4_ = local_10;
auVar2._8_8_ = local_8;
return auVar2;
}
|
|
10,027 |
JS_GetImportMeta
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_GetImportMeta(JSContext *ctx, JSModuleDef *m)
{
JSValue obj;
/* allocate meta_obj only if requested to save memory */
obj = m->meta_obj;
if (JS_IsUndefined(obj)) {
obj = JS_NewObjectProto(ctx, JS_NULL);
if (JS_IsException(obj))
return JS_EXCEPTION;
m->meta_obj = obj;
}
return js_dup(obj);
}
|
O2
|
c
|
JS_GetImportMeta:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x110(%rsi), %rdx
cmpl $0x3, %edx
jne 0x294c6
xorl %ebx, %ebx
pushq $0x2
popq %rdx
xorl %esi, %esi
callq 0x1b2b3
cmpl $0x6, %edx
jne 0x294cf
pushq $0x6
popq %rdx
jmp 0x294e7
movq 0x108(%r14), %rbx
jmp 0x294e0
movq %rax, 0x108(%r14)
movq %rdx, 0x110(%r14)
movq %rax, %rbx
cmpl $-0x9, %edx
jb 0x294e7
incl (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
JS_GetImportMeta:
push r14
push rbx
push rax
mov r14, rsi
mov rdx, [rsi+110h]
cmp edx, 3
jnz short loc_294C6
xor ebx, ebx
push 2
pop rdx
xor esi, esi
call JS_NewObjectProto
cmp edx, 6
jnz short loc_294CF
push 6
pop rdx
jmp short loc_294E7
loc_294C6:
mov rbx, [r14+108h]
jmp short loc_294E0
loc_294CF:
mov [r14+108h], rax
mov [r14+110h], rdx
mov rbx, rax
loc_294E0:
cmp edx, 0FFFFFFF7h
jb short loc_294E7
inc dword ptr [rbx]
loc_294E7:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
_DWORD * JS_GetImportMeta(long long a1, long long a2)
{
long long v2; // rdx
_DWORD *v3; // rbx
long long v4; // rax
v2 = *(_QWORD *)(a2 + 272);
if ( (_DWORD)v2 == 3 )
{
v3 = 0LL;
v4 = JS_NewObjectProto(a1, 0LL, 2);
if ( (_DWORD)v2 == 6 )
return v3;
*(_QWORD *)(a2 + 264) = v4;
*(_QWORD *)(a2 + 272) = v2;
v3 = (_DWORD *)v4;
}
else
{
v3 = *(_DWORD **)(a2 + 264);
}
if ( (unsigned int)v2 >= 0xFFFFFFF7 )
++*v3;
return v3;
}
|
JS_GetImportMeta:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RDX,qword ptr [RSI + 0x110]
CMP EDX,0x3
JNZ 0x001294c6
XOR EBX,EBX
PUSH 0x2
POP RDX
XOR ESI,ESI
CALL 0x0011b2b3
CMP EDX,0x6
JNZ 0x001294cf
PUSH 0x6
POP RDX
JMP 0x001294e7
LAB_001294c6:
MOV RBX,qword ptr [R14 + 0x108]
JMP 0x001294e0
LAB_001294cf:
MOV qword ptr [R14 + 0x108],RAX
MOV qword ptr [R14 + 0x110],RDX
MOV RBX,RAX
LAB_001294e0:
CMP EDX,-0x9
JC 0x001294e7
INC dword ptr [RBX]
LAB_001294e7:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int * JS_GetImportMeta(int8 param_1,long param_2)
{
int1 auVar1 [12];
int *piVar2;
int1 auVar3 [16];
if ((int)*(int8 *)(param_2 + 0x110) == 3) {
auVar3 = JS_NewObjectProto(param_1,0,2);
auVar1 = auVar3._0_12_;
if (auVar3._8_4_ == 6) {
return (int *)0x0;
}
*(int1 (*) [16])(param_2 + 0x108) = auVar3;
}
else {
auVar3._8_8_ = *(int8 *)(param_2 + 0x110);
auVar3._0_8_ = *(int8 *)(param_2 + 0x108);
auVar1 = auVar3._0_12_;
}
piVar2 = auVar1._0_8_;
if (0xfffffff6 < auVar1._8_4_) {
*piVar2 = *piVar2 + 1;
}
return piVar2;
}
|
|
10,028 |
MainWindow::qt_metacall(QMetaObject::Call, int, void**)
|
The-SGR[P]silly-clicker/build_O0/SillyClicker_autogen/EWIEGA46WW/moc_mainwindow.cpp
|
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 5)
qt_static_metacall(this, _c, _id, _a);
_id -= 5;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 5)
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
_id -= 5;
}
return _id;
}
|
O0
|
cpp
|
MainWindow::qt_metacall(QMetaObject::Call, int, void**):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x4320
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jge 0x490e
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x497c
cmpl $0x0, -0x14(%rbp)
jne 0x4938
cmpl $0x5, -0x18(%rbp)
jge 0x492d
movq -0x30(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x4770
movl -0x18(%rbp), %eax
subl $0x5, %eax
movl %eax, -0x18(%rbp)
jmp 0x4976
cmpl $0x7, -0x14(%rbp)
jne 0x4974
cmpl $0x5, -0x18(%rbp)
jge 0x496b
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x40f0
leaq -0x28(%rbp), %rdi
callq 0x49b0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq %rcx, (%rax)
movl -0x18(%rbp), %eax
subl $0x5, %eax
movl %eax, -0x18(%rbp)
jmp 0x4976
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN10MainWindow11qt_metacallEN11QMetaObject4CallEiPPv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_10]
mov [rbp+var_30], rdi
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZN11QMainWindow11qt_metacallEN11QMetaObject4CallEiPPv; QMainWindow::qt_metacall(QMetaObject::Call,int,void **)
mov [rbp+var_18], eax
cmp [rbp+var_18], 0
jge short loc_490E
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
jmp short loc_497C
loc_490E:
cmp [rbp+var_14], 0
jnz short loc_4938
cmp [rbp+var_18], 5
jge short loc_492D
mov rdi, [rbp+var_30]
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
call _ZN10MainWindow18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv; MainWindow::qt_static_metacall(QObject *,QMetaObject::Call,int,void **)
loc_492D:
mov eax, [rbp+var_18]
sub eax, 5
mov [rbp+var_18], eax
jmp short loc_4976
loc_4938:
cmp [rbp+var_14], 7
jnz short loc_4974
cmp [rbp+var_18], 5
jge short loc_496B
lea rdi, [rbp+var_28]
xor esi, esi
mov edx, 8
call _memset
lea rdi, [rbp+var_28]; this
call _ZN9QMetaTypeC2Ev; QMetaType::QMetaType(void)
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rbp+var_28]
mov [rax], rcx
loc_496B:
mov eax, [rbp+var_18]
sub eax, 5
mov [rbp+var_18], eax
loc_4974:
jmp short $+2
loc_4976:
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_497C:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long MainWindow::qt_metacall(MainWindow *a1, unsigned int a2, unsigned int a3, _QWORD **a4)
{
long long v5; // [rsp+8h] [rbp-28h] BYREF
_QWORD **v6; // [rsp+10h] [rbp-20h]
signed int v7; // [rsp+18h] [rbp-18h]
unsigned int v8; // [rsp+1Ch] [rbp-14h]
MainWindow *v9; // [rsp+20h] [rbp-10h]
v9 = a1;
v8 = a2;
v6 = a4;
v7 = QMainWindow::qt_metacall(a1, a2, a3, a4);
if ( v7 >= 0 )
{
if ( v8 )
{
if ( v8 == 7 )
{
if ( v7 < 5 )
{
memset(&v5, 0LL, sizeof(v5));
QMetaType::QMetaType((QMetaType *)&v5);
**v6 = v5;
}
v7 -= 5;
}
}
else
{
if ( v7 < 5 )
MainWindow::qt_static_metacall(a1, v8, v7);
v7 -= 5;
}
return (unsigned int)v7;
}
else
{
return (unsigned int)v7;
}
}
|
qt_metacall:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RDI
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x00104320
MOV dword ptr [RBP + -0x18],EAX
CMP dword ptr [RBP + -0x18],0x0
JGE 0x0010490e
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0010497c
LAB_0010490e:
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x00104938
CMP dword ptr [RBP + -0x18],0x5
JGE 0x0010492d
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x00104770
LAB_0010492d:
MOV EAX,dword ptr [RBP + -0x18]
SUB EAX,0x5
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00104976
LAB_00104938:
CMP dword ptr [RBP + -0x14],0x7
JNZ 0x00104974
CMP dword ptr [RBP + -0x18],0x5
JGE 0x0010496b
LEA RDI,[RBP + -0x28]
XOR ESI,ESI
MOV EDX,0x8
CALL 0x001040f0
LEA RDI,[RBP + -0x28]
CALL 0x001049b0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_0010496b:
MOV EAX,dword ptr [RBP + -0x18]
SUB EAX,0x5
MOV dword ptr [RBP + -0x18],EAX
LAB_00104974:
JMP 0x00104976
LAB_00104976:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_0010497c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
/* MainWindow::qt_metacall(QMetaObject::Call, int, void**) */
int __thiscall
MainWindow::qt_metacall(MainWindow *this,int param_2,int4 param_3,int8 *param_4)
{
int8 local_30;
int8 *local_28;
int local_20;
int local_1c;
MainWindow *local_18;
int local_c;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = this;
local_20 = QMainWindow::qt_metacall(this,param_2,param_3,param_4);
local_c = local_20;
if (-1 < local_20) {
if (local_1c == 0) {
if (local_20 < 5) {
qt_static_metacall(this,0,local_20,local_28);
}
local_20 = local_20 + -5;
}
else if (local_1c == 7) {
if (local_20 < 5) {
memset(&local_30,0,8);
QMetaType::QMetaType((QMetaType *)&local_30);
*(int8 *)*local_28 = local_30;
}
local_20 = local_20 + -5;
}
local_c = local_20;
}
return local_c;
}
|
|
10,029 |
my_instr_bin
|
eloqsql/strings/ctype-bin.c
|
static
uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)),
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const uchar *str, *search, *end, *search_end;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
str= (const uchar*) b;
search= (const uchar*) s;
end= (const uchar*) b+b_length-s_length+1;
search_end= (const uchar*) s + s_length;
skip:
while (str != end)
{
if ( (*str++) == (*search))
{
register const uchar *i,*j;
i= str;
j= search+1;
while (j != search_end)
if ((*i++) != (*j++))
goto skip;
if (nmatch > 0)
{
match[0].beg= 0;
match[0].end= (uint) (str- (const uchar*)b-1);
match[0].mb_len= match[0].end;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= match[1].end-match[1].beg;
}
}
return 2;
}
}
}
return 0;
}
|
O3
|
c
|
my_instr_bin:
xorl %eax, %eax
cmpq %rdx, %r8
ja 0xac92e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movl 0x10(%rbp), %r10d
testq %r8, %r8
je 0xac8f9
addq %rsi, %rdx
subq %r8, %rdx
incq %rdx
movq %rsi, %rdi
cmpq %rdx, %rdi
je 0xac928
movq %rdi, %r11
incq %rdi
movb (%r11), %bl
cmpb (%rcx), %bl
jne 0xac890
movl $0x1, %ebx
cmpq %rbx, %r8
je 0xac8c3
movb (%r11,%rbx), %r14b
leaq 0x1(%rbx), %r15
cmpb (%rcx,%rbx), %r14b
movq %r15, %rbx
je 0xac8ab
jmp 0xac890
movl $0x2, %eax
testl %r10d, %r10d
je 0xac928
movl $0x0, (%r9)
notl %esi
addl %esi, %edi
movl %edi, 0x4(%r9)
movl %edi, 0x8(%r9)
cmpl $0x1, %r10d
je 0xac928
movl %edi, 0xc(%r9)
addl %r8d, %edi
movl $0x14, %ecx
movl $0x10, %edx
jmp 0xac919
testl %r10d, %r10d
je 0xac923
movl $0x0, (%r9)
movl $0x1, %eax
movl $0x8, %ecx
xorl %edi, %edi
movl $0x4, %edx
xorl %r8d, %r8d
movl %edi, (%r9,%rdx)
movl %r8d, (%r9,%rcx)
jmp 0xac928
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
my_instr_bin:
xor eax, eax
cmp r8, rdx
ja locret_AC92E
push rbp
mov rbp, rsp
push r15
push r14
push rbx
mov r10d, [rbp+10h]
test r8, r8
jz short loc_AC8F9
add rdx, rsi
sub rdx, r8
inc rdx
mov rdi, rsi
loc_AC890:
cmp rdi, rdx
jz loc_AC928
mov r11, rdi
inc rdi
mov bl, [r11]
cmp bl, [rcx]
jnz short loc_AC890
mov ebx, 1
loc_AC8AB:
cmp r8, rbx
jz short loc_AC8C3
mov r14b, [r11+rbx]
lea r15, [rbx+1]
cmp r14b, [rcx+rbx]
mov rbx, r15
jz short loc_AC8AB
jmp short loc_AC890
loc_AC8C3:
mov eax, 2
test r10d, r10d
jz short loc_AC928
mov dword ptr [r9], 0
not esi
add edi, esi
mov [r9+4], edi
mov [r9+8], edi
cmp r10d, 1
jz short loc_AC928
mov [r9+0Ch], edi
add edi, r8d
mov ecx, 14h
mov edx, 10h
jmp short loc_AC919
loc_AC8F9:
test r10d, r10d
jz short loc_AC923
mov dword ptr [r9], 0
mov eax, 1
mov ecx, 8
xor edi, edi
mov edx, 4
xor r8d, r8d
loc_AC919:
mov [r9+rdx], edi
mov [r9+rcx], r8d
jmp short loc_AC928
loc_AC923:
mov eax, 1
loc_AC928:
pop rbx
pop r14
pop r15
pop rbp
locret_AC92E:
retn
|
long long my_instr_bin(
long long a1,
_BYTE *a2,
unsigned long long a3,
_BYTE *a4,
unsigned long long a5,
_DWORD *a6,
int a7)
{
long long result; // rax
long long v8; // rdx
_BYTE *v9; // rdi
_BYTE *v10; // r11
long long v11; // rbx
bool v12; // zf
int v13; // edi
int v14; // edi
long long v15; // rcx
long long v16; // rdx
result = 0LL;
if ( a5 <= a3 )
{
if ( a5 )
{
v8 = (long long)&a2[a3 - a5 + 1];
v9 = a2;
LABEL_4:
while ( v9 != (_BYTE *)v8 )
{
v10 = v9++;
if ( *v10 == *a4 )
{
v11 = 1LL;
while ( a5 != v11 )
{
v12 = v10[v11] == a4[v11];
++v11;
if ( !v12 )
goto LABEL_4;
}
result = 2LL;
if ( a7 )
{
*a6 = 0;
v13 = ~(_DWORD)a2 + (_DWORD)v9;
a6[1] = v13;
a6[2] = v13;
if ( a7 != 1 )
{
a6[3] = v13;
v14 = a5 + v13;
v15 = 5LL;
v16 = 4LL;
goto LABEL_15;
}
}
return result;
}
}
}
else if ( a7 )
{
*a6 = 0;
result = 1LL;
v15 = 2LL;
v14 = 0;
v16 = 1LL;
LODWORD(a5) = 0;
LABEL_15:
a6[v16] = v14;
a6[v15] = a5;
}
else
{
return 1LL;
}
}
return result;
}
|
my_instr_bin:
XOR EAX,EAX
CMP R8,RDX
JA 0x001ac92e
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
MOV R10D,dword ptr [RBP + 0x10]
TEST R8,R8
JZ 0x001ac8f9
ADD RDX,RSI
SUB RDX,R8
INC RDX
MOV RDI,RSI
LAB_001ac890:
CMP RDI,RDX
JZ 0x001ac928
MOV R11,RDI
INC RDI
MOV BL,byte ptr [R11]
CMP BL,byte ptr [RCX]
JNZ 0x001ac890
MOV EBX,0x1
LAB_001ac8ab:
CMP R8,RBX
JZ 0x001ac8c3
MOV R14B,byte ptr [R11 + RBX*0x1]
LEA R15,[RBX + 0x1]
CMP R14B,byte ptr [RCX + RBX*0x1]
MOV RBX,R15
JZ 0x001ac8ab
JMP 0x001ac890
LAB_001ac8c3:
MOV EAX,0x2
TEST R10D,R10D
JZ 0x001ac928
MOV dword ptr [R9],0x0
NOT ESI
ADD EDI,ESI
MOV dword ptr [R9 + 0x4],EDI
MOV dword ptr [R9 + 0x8],EDI
CMP R10D,0x1
JZ 0x001ac928
MOV dword ptr [R9 + 0xc],EDI
ADD EDI,R8D
MOV ECX,0x14
MOV EDX,0x10
JMP 0x001ac919
LAB_001ac8f9:
TEST R10D,R10D
JZ 0x001ac923
MOV dword ptr [R9],0x0
MOV EAX,0x1
MOV ECX,0x8
XOR EDI,EDI
MOV EDX,0x4
XOR R8D,R8D
LAB_001ac919:
MOV dword ptr [R9 + RDX*0x1],EDI
MOV dword ptr [R9 + RCX*0x1],R8D
JMP 0x001ac928
LAB_001ac923:
MOV EAX,0x1
LAB_001ac928:
POP RBX
POP R14
POP R15
POP RBP
LAB_001ac92e:
RET
|
int8
my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5,
int4 *param_6,int param_7)
{
char *pcVar1;
char *pcVar2;
int8 uVar3;
long lVar4;
long lVar5;
ulong uVar6;
int iVar7;
char *pcVar8;
char *pcVar9;
uVar3 = 0;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 == 0) {
uVar3 = 1;
}
else {
*param_6 = 0;
uVar3 = 1;
lVar4 = 8;
iVar7 = 0;
lVar5 = 4;
param_5 = 0;
LAB_001ac919:
*(int *)((long)param_6 + lVar5) = iVar7;
*(int *)((long)param_6 + lVar4) = (int)param_5;
}
}
else {
pcVar9 = param_2;
while (pcVar8 = pcVar9, pcVar8 != param_2 + (param_3 - param_5) + 1) {
pcVar9 = pcVar8 + 1;
if (*pcVar8 == *param_4) {
uVar6 = 1;
do {
if (param_5 == uVar6) {
uVar3 = 2;
if (param_7 == 0) {
return 2;
}
*param_6 = 0;
iVar7 = (int)pcVar9 + ~(uint)param_2;
param_6[1] = iVar7;
param_6[2] = iVar7;
if (param_7 == 1) {
return 2;
}
param_6[3] = iVar7;
iVar7 = iVar7 + (int)param_5;
lVar4 = 0x14;
lVar5 = 0x10;
goto LAB_001ac919;
}
pcVar1 = pcVar8 + uVar6;
pcVar2 = param_4 + uVar6;
uVar6 = uVar6 + 1;
} while (*pcVar1 == *pcVar2);
}
}
}
}
return uVar3;
}
|
|
10,030 |
testing::internal::DeathTestAbort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-death-test.cc
|
[[noreturn]] static void DeathTestAbort(const std::string& message) {
// On a POSIX system, this function may be called from a threadsafe-style
// death test child process, which operates on a very small stack. Use
// the heap for any additional non-minuscule memory requirements.
const InternalRunDeathTestFlag* const flag =
GetUnitTestImpl()->internal_run_death_test_flag();
if (flag != nullptr) {
FILE* parent = posix::FDOpen(flag->write_fd(), "w");
fputc(kDeathTestInternalError, parent);
fprintf(parent, "%s", message.c_str());
fflush(parent);
_Exit(1);
} else {
fprintf(stderr, "%s", message.c_str());
fflush(stderr);
posix::Abort();
}
}
|
O1
|
cpp
|
testing::internal::DeathTestAbort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x19012
movq 0x4a4a0(%rip), %rax # 0x597b0
movq 0x2a8(%rax), %rax
testq %rax, %rax
jne 0xf33b
movq 0x49ca5(%rip), %r14 # 0x58fc8
movq (%r14), %rsi
movq (%rbx), %rdi
callq 0x8580
movq (%r14), %rdi
callq 0x8600
callq 0x326af
movl 0x28(%rax), %edi
leaq 0x34627(%rip), %rsi # 0x4396c
callq 0x36025
movq %rax, %r14
movl $0x49, %edi
movq %rax, %rsi
callq 0x8690
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8580
movq %r14, %rdi
callq 0x8600
movl $0x1, %edi
callq 0x8920
nop
|
_ZN7testing8internalL14DeathTestAbortERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx
push rax
mov rbx, rdi
call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void)
mov rax, cs:qword_597B0
mov rax, [rax+2A8h]
test rax, rax
jnz short loc_F33B
mov r14, cs:stderr_ptr
mov rsi, [r14]
mov rdi, [rbx]
call _fputs
mov rdi, [r14]; this
call _fflush
call _ZN7testing8internal5posix5AbortEv; testing::internal::posix::Abort(void)
loc_F33B:
mov edi, [rax+28h]; this
lea rsi, aW; "w"
call _ZN7testing8internal5posix6FDOpenEiPKc; testing::internal::posix::FDOpen(int,char const*)
mov r14, rax
mov edi, 49h ; 'I'
mov rsi, rax
call _fputc
mov rdi, [rbx]
mov rsi, r14
call _fputs
mov rdi, r14
call _fflush
mov edi, 1
call __Exit
nop
|
long long testing::internal::DeathTestAbort(
testing::UnitTest *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
char a7)
{
const char *v7; // rdx
long long v8; // rax
testing::internal::posix *v9; // rdi
long long v10; // r14
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
testing::UnitTest::GetInstance(a1);
v8 = *((_QWORD *)qword_597B0 + 85);
if ( !v8 )
{
fputs(*(_QWORD *)a1, stderr);
v9 = (testing::internal::posix *)stderr;
fflush(stderr);
testing::internal::posix::Abort(v9);
}
v10 = testing::internal::posix::FDOpen((testing::internal::posix *)*(unsigned int *)(v8 + 40), (int)"w", v7);
fputc(73LL, v10);
fputs(*(_QWORD *)a1, v10);
fflush(v10);
_Exit(1LL);
return testing::internal::DeathTest::Create(1, v10, v11, v12, v13, v14, a7);
}
|
DeathTestAbort:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00119012
MOV RAX,qword ptr [0x001597b0]
MOV RAX,qword ptr [RAX + 0x2a8]
TEST RAX,RAX
JNZ 0x0010f33b
MOV R14,qword ptr [0x00158fc8]
MOV RSI,qword ptr [R14]
MOV RDI,qword ptr [RBX]
CALL 0x00108580
MOV RDI,qword ptr [R14]
CALL 0x00108600
CALL 0x001326af
LAB_0010f33b:
MOV EDI,dword ptr [RAX + 0x28]
LEA RSI,[0x14396c]
CALL 0x00136025
MOV R14,RAX
MOV EDI,0x49
MOV RSI,RAX
CALL 0x00108690
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x00108580
MOV RDI,R14
CALL 0x00108600
MOV EDI,0x1
CALL 0x00108920
NOP
|
/* testing::internal::DeathTestAbort(std::__cxx11::string const&) */
int4 testing::internal::DeathTestAbort(string *param_1)
{
long *plVar1;
int *puVar2;
int4 uVar3;
long lVar4;
FILE *__stream;
int4 in_ECX;
int8 extraout_RDX;
FILE *pFVar5;
int8 uVar6;
int8 in_R8;
int **ppuStack_58;
char *pcStack_50;
char *pcStack_48;
string *psStack_40;
UnitTest::GetInstance();
puVar2 = PTR_stderr_00158fc8;
lVar4 = *(long *)(UnitTest::GetInstance()::instance._64_8_ + 0x2a8);
if (lVar4 == 0) {
fputs(*(char **)param_1,*(FILE **)PTR_stderr_00158fc8);
fflush(*(FILE **)puVar2);
lVar4 = posix::Abort();
}
__stream = (FILE *)posix::FDOpen(*(int *)(lVar4 + 0x28),"w");
fputc(0x49,__stream);
pFVar5 = __stream;
fputs(*(char **)param_1,__stream);
fflush(__stream);
uVar6 = 1;
_Exit(1);
psStack_40 = param_1;
UnitTest::GetInstance();
plVar1 = *(long **)(UnitTest::GetInstance()::instance._64_8_ + 0x2b0);
pcStack_50 = pFVar5->_IO_read_ptr;
pcStack_48 = pFVar5->_IO_read_end;
pFVar5->_IO_read_ptr = (char *)0x0;
ppuStack_58 = &PTR__MatcherBase_00158898;
uVar3 = (**(code **)(*plVar1 + 0x10))(plVar1,uVar6,&ppuStack_58,extraout_RDX,in_ECX,in_R8);
MatcherBase<std::__cxx11::string_const&>::~MatcherBase
((MatcherBase<std::__cxx11::string_const&> *)&ppuStack_58);
return uVar3;
}
|
|
10,031 |
ggml_norm_impl
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
static struct ggml_tensor * ggml_norm_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
float eps,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, &eps, sizeof(eps));
result->op = GGML_OP_NORM;
result->src[0] = a;
return result;
}
|
O2
|
c
|
ggml_norm_impl:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movss %xmm0, 0x4(%rsp)
testl %edx, %edx
je 0x21092
callq 0x1c3e0
jmp 0x21097
callq 0x1d660
movq %rax, %r14
leaq 0x4(%rsp), %rsi
pushq $0x4
popq %rdx
movq %rax, %rdi
callq 0x20fbc
movl $0x16, 0x50(%r14)
movq %rbx, 0x98(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
ggml_norm_impl:
push r14
push rbx
push rax
mov rbx, rsi
movss [rsp+18h+var_14], xmm0
test edx, edx
jz short loc_21092
call _ggml_view_tensor
jmp short loc_21097
loc_21092:
call _ggml_dup_tensor
loc_21097:
mov r14, rax
lea rsi, [rsp+18h+var_14]
push 4
pop rdx
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r14+50h], 16h
mov [r14+98h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
|
long long ggml_norm_impl(
long long a1,
unsigned int *a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11)
{
long long v11; // rax
long long v12; // rcx
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
long long v17; // r14
__int32 v19[5]; // [rsp+0h] [rbp-14h] BYREF
v19[0] = a4.m128_i32[0];
if ( a3 )
v11 = ggml_view_tensor(a1, (long long)a2, a4, a5, a6, a7, a8, a9, a10, a11);
else
v11 = ggml_dup_tensor(a1, a2);
v17 = v11;
ggml_set_op_params(v11, (long long)v19, 4LL, a4, a5, a6, a7, v15, v16, a10, a11, v12, v13, v14);
*(_DWORD *)(v17 + 80) = 22;
*(_QWORD *)(v17 + 152) = a2;
return v17;
}
|
ggml_norm_impl:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOVSS dword ptr [RSP + 0x4],XMM0
TEST EDX,EDX
JZ 0x00121092
CALL 0x0011c3e0
JMP 0x00121097
LAB_00121092:
CALL 0x0011d660
LAB_00121097:
MOV R14,RAX
LEA RSI,[RSP + 0x4]
PUSH 0x4
POP RDX
MOV RDI,RAX
CALL 0x00120fbc
MOV dword ptr [R14 + 0x50],0x16
MOV qword ptr [R14 + 0x98],RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
long ggml_norm_impl(int8 param_1,int8 param_2,int param_3)
{
long lVar1;
int1 local_14 [4];
if (param_3 == 0) {
lVar1 = ggml_dup_tensor();
}
else {
lVar1 = ggml_view_tensor();
}
ggml_set_op_params(lVar1,local_14,4);
*(int4 *)(lVar1 + 0x50) = 0x16;
*(int8 *)(lVar1 + 0x98) = param_2;
return lVar1;
}
|
|
10,032 |
ggml_norm_impl
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
static struct ggml_tensor * ggml_norm_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
float eps,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, &eps, sizeof(eps));
result->op = GGML_OP_NORM;
result->src[0] = a;
return result;
}
|
O3
|
c
|
ggml_norm_impl:
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movq %rsi, %rbx
testl %edx, %edx
je 0x1af8e
movq %rbx, %rsi
callq 0x16260
jmp 0x1afa4
movl (%rbx), %esi
leaq 0x10(%rbx), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19c13
testq %rax, %rax
je 0x1afc8
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x54(%rax)
movl $0x16, 0x50(%rax)
movq %rbx, 0x98(%rax)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x3180d(%rip), %rdi # 0x4c7dc
leaq 0x2f688(%rip), %rdx # 0x4a65e
leaq 0x3184f(%rip), %rcx # 0x4c82c
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c60
|
ggml_norm_impl:
push rbx
sub rsp, 10h
movss [rsp+18h+var_C], xmm0
mov rbx, rsi
test edx, edx
jz short loc_1AF8E
mov rsi, rbx
call _ggml_view_tensor
jmp short loc_1AFA4
loc_1AF8E:
mov esi, [rbx]
lea rcx, [rbx+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_1AFA4:
test rax, rax
jz short loc_1AFC8
movss xmm0, [rsp+18h+var_C]
movss dword ptr [rax+54h], xmm0
mov dword ptr [rax+50h], 16h
mov [rax+98h], rbx
add rsp, 10h
pop rbx
retn
loc_1AFC8:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
|
long long ggml_norm_impl(long long a1, long long a2, int a3, float a4)
{
long long result; // rax
int v5; // r8d
int v6; // r9d
if ( a3 )
result = ggml_view_tensor(a1, a2);
else
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (_QWORD *)(a2 + 16), 0LL, 0LL);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v5,
v6);
*(float *)(result + 84) = a4;
*(_DWORD *)(result + 80) = 22;
*(_QWORD *)(result + 152) = a2;
return result;
}
|
ggml_norm_impl:
PUSH RBX
SUB RSP,0x10
MOVSS dword ptr [RSP + 0xc],XMM0
MOV RBX,RSI
TEST EDX,EDX
JZ 0x0011af8e
MOV RSI,RBX
CALL 0x00116260
JMP 0x0011afa4
LAB_0011af8e:
MOV ESI,dword ptr [RBX]
LEA RCX,[RBX + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119c13
LAB_0011afa4:
TEST RAX,RAX
JZ 0x0011afc8
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RAX + 0x54],XMM0
MOV dword ptr [RAX + 0x50],0x16
MOV qword ptr [RAX + 0x98],RBX
ADD RSP,0x10
POP RBX
RET
LAB_0011afc8:
LEA RDI,[0x14c7dc]
LEA RDX,[0x14a65e]
LEA RCX,[0x14c82c]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117c60
|
void ggml_norm_impl(int4 param_1,int8 param_2,int4 *param_3,int param_4)
{
long lVar1;
if (param_4 == 0) {
lVar1 = ggml_new_tensor_impl(param_2,*param_3,4,param_3 + 4,0,0);
}
else {
lVar1 = ggml_view_tensor(param_2,param_3);
}
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_1;
*(int4 *)(lVar1 + 0x50) = 0x16;
*(int4 **)(lVar1 + 0x98) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",0x70,
"GGML_ASSERT(%s) failed","tensor != NULL");
}
|
|
10,033 |
my_string_metadata_get
|
eloqsql/strings/ctype.c
|
void
my_string_metadata_get(MY_STRING_METADATA *metadata,
CHARSET_INFO *cs, const char *str, size_t length)
{
if (cs->mbmaxlen == 1 && !(cs->state & MY_CS_NONASCII))
{
metadata->char_length= length;
metadata->repertoire= my_string_repertoire_8bit(cs, str, (ulong)length);
}
else
{
my_string_metadata_get_mb(metadata, cs, str, (ulong)length);
}
}
|
O3
|
c
|
my_string_metadata_get:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x1, 0x9c(%rsi)
jne 0xda2bd
testb $0x20, 0xd(%r12)
jne 0xda2bd
movq %r14, (%rbx)
movl $0x3, %eax
testq %r14, %r14
je 0xda29d
movl $0x2000, %ecx # imm = 0x2000
andl 0xc(%r12), %ecx
jne 0xda2b8
testq %r14, %r14
jle 0xda2b3
addq %r15, %r14
cmpb $0x0, (%r15)
js 0xda2b8
incq %r15
cmpq %r14, %r15
jb 0xda2a5
movl $0x1, %eax
movl %eax, 0x8(%rbx)
jmp 0xda327
movl $0x1, 0x8(%rbx)
movq $0x0, (%rbx)
testq %r14, %r14
jle 0xda327
addq %r15, %r14
leaq -0x30(%rbp), %r13
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq *0x28(%rax)
testl %eax, %eax
jle 0xda302
cmpq $0x80, -0x30(%rbp)
jb 0xda31a
orb $0x2, 0x8(%rbx)
jmp 0xda31a
je 0xda311
orb $0x2, 0x8(%rbx)
cmpl $-0x64, %eax
jb 0xda327
negl %eax
jmp 0xda31a
orb $0x2, 0x8(%rbx)
movl $0x1, %eax
movl %eax, %eax
addq %rax, %r15
incq (%rbx)
cmpq %r14, %r15
jb 0xda2d7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_string_metadata_get:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
cmp dword ptr [rsi+9Ch], 1
jnz short loc_DA2BD
test byte ptr [r12+0Dh], 20h
jnz short loc_DA2BD
mov [rbx], r14
mov eax, 3
test r14, r14
jz short loc_DA29D
mov ecx, 2000h
and ecx, [r12+0Ch]
jnz short loc_DA2B8
loc_DA29D:
test r14, r14
jle short loc_DA2B3
add r14, r15
loc_DA2A5:
cmp byte ptr [r15], 0
js short loc_DA2B8
inc r15
cmp r15, r14
jb short loc_DA2A5
loc_DA2B3:
mov eax, 1
loc_DA2B8:
mov [rbx+8], eax
jmp short loc_DA327
loc_DA2BD:
mov dword ptr [rbx+8], 1
mov qword ptr [rbx], 0
test r14, r14
jle short loc_DA327
add r14, r15
lea r13, [rbp+var_30]
loc_DA2D7:
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r13
mov rdx, r15
mov rcx, r14
call qword ptr [rax+28h]
test eax, eax
jle short loc_DA302
cmp [rbp+var_30], 80h
jb short loc_DA31A
or byte ptr [rbx+8], 2
jmp short loc_DA31A
loc_DA302:
jz short loc_DA311
or byte ptr [rbx+8], 2
cmp eax, 0FFFFFF9Ch
jb short loc_DA327
neg eax
jmp short loc_DA31A
loc_DA311:
or byte ptr [rbx+8], 2
mov eax, 1
loc_DA31A:
mov eax, eax
add r15, rax
inc qword ptr [rbx]
cmp r15, r14
jb short loc_DA2D7
loc_DA327:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_string_metadata_get(long long a1, long long a2, char *a3, long long a4)
{
long long result; // rax
char *v5; // r15
unsigned long long v6; // r14
unsigned long long v7[6]; // [rsp+0h] [rbp-30h] BYREF
v7[0] = result;
v5 = a3;
if ( *(_DWORD *)(a2 + 156) != 1 || (*(_BYTE *)(a2 + 13) & 0x20) != 0 )
{
*(_DWORD *)(a1 + 8) = 1;
*(_QWORD *)a1 = 0LL;
if ( a4 > 0 )
{
v6 = (unsigned long long)&a3[a4];
do
{
result = (*(long long ( **)(long long, unsigned long long *, char *, unsigned long long))(*(_QWORD *)(a2 + 184)
+ 40LL))(
a2,
v7,
v5,
v6);
if ( (int)result <= 0 )
{
if ( (_DWORD)result )
{
*(_BYTE *)(a1 + 8) |= 2u;
if ( (unsigned int)result < 0xFFFFFF9C )
return result;
LODWORD(result) = -(int)result;
}
else
{
*(_BYTE *)(a1 + 8) |= 2u;
LODWORD(result) = 1;
}
}
else if ( v7[0] >= 0x80 )
{
*(_BYTE *)(a1 + 8) |= 2u;
}
result = (unsigned int)result;
v5 += (unsigned int)result;
++*(_QWORD *)a1;
}
while ( (unsigned long long)v5 < v6 );
}
}
else
{
*(_QWORD *)a1 = a4;
result = 3LL;
if ( !a4 || (*(_DWORD *)(a2 + 12) & 0x2000) == 0 )
{
if ( a4 <= 0 )
{
LABEL_8:
result = 1LL;
}
else
{
while ( *v5 >= 0 )
{
if ( ++v5 >= &a3[a4] )
goto LABEL_8;
}
}
}
*(_DWORD *)(a1 + 8) = result;
}
return result;
}
|
my_string_metadata_get:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
CMP dword ptr [RSI + 0x9c],0x1
JNZ 0x001da2bd
TEST byte ptr [R12 + 0xd],0x20
JNZ 0x001da2bd
MOV qword ptr [RBX],R14
MOV EAX,0x3
TEST R14,R14
JZ 0x001da29d
MOV ECX,0x2000
AND ECX,dword ptr [R12 + 0xc]
JNZ 0x001da2b8
LAB_001da29d:
TEST R14,R14
JLE 0x001da2b3
ADD R14,R15
LAB_001da2a5:
CMP byte ptr [R15],0x0
JS 0x001da2b8
INC R15
CMP R15,R14
JC 0x001da2a5
LAB_001da2b3:
MOV EAX,0x1
LAB_001da2b8:
MOV dword ptr [RBX + 0x8],EAX
JMP 0x001da327
LAB_001da2bd:
MOV dword ptr [RBX + 0x8],0x1
MOV qword ptr [RBX],0x0
TEST R14,R14
JLE 0x001da327
ADD R14,R15
LEA R13,[RBP + -0x30]
LAB_001da2d7:
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R13
MOV RDX,R15
MOV RCX,R14
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
JLE 0x001da302
CMP qword ptr [RBP + -0x30],0x80
JC 0x001da31a
OR byte ptr [RBX + 0x8],0x2
JMP 0x001da31a
LAB_001da302:
JZ 0x001da311
OR byte ptr [RBX + 0x8],0x2
CMP EAX,-0x64
JC 0x001da327
NEG EAX
JMP 0x001da31a
LAB_001da311:
OR byte ptr [RBX + 0x8],0x2
MOV EAX,0x1
LAB_001da31a:
MOV EAX,EAX
ADD R15,RAX
INC qword ptr [RBX]
CMP R15,R14
JC 0x001da2d7
LAB_001da327:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_string_metadata_get(long *param_1,long param_2,char *param_3,long param_4)
{
int4 uVar1;
uint uVar2;
ulong in_RAX;
char *pcVar3;
ulong local_38;
if ((*(int *)(param_2 + 0x9c) == 1) && ((*(byte *)(param_2 + 0xd) & 0x20) == 0)) {
*param_1 = param_4;
uVar1 = 3;
if ((param_4 == 0) || ((*(uint *)(param_2 + 0xc) & 0x2000) == 0)) {
if (0 < param_4) {
pcVar3 = param_3 + param_4;
do {
if (*param_3 < '\0') goto LAB_001da2b8;
param_3 = param_3 + 1;
} while (param_3 < pcVar3);
}
uVar1 = 1;
}
LAB_001da2b8:
*(int4 *)(param_1 + 1) = uVar1;
}
else {
*(int4 *)(param_1 + 1) = 1;
*param_1 = 0;
if (0 < param_4) {
pcVar3 = param_3 + param_4;
local_38 = in_RAX;
do {
uVar2 = (**(code **)(*(long *)(param_2 + 0xb8) + 0x28))(param_2,&local_38,param_3,pcVar3);
if ((int)uVar2 < 1) {
if (uVar2 == 0) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
uVar2 = 1;
}
else {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
if (uVar2 < 0xffffff9c) {
return;
}
uVar2 = -uVar2;
}
}
else if (0x7f < local_38) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
}
param_3 = param_3 + uVar2;
*param_1 = *param_1 + 1;
} while (param_3 < pcVar3);
}
}
return;
}
|
|
10,034 |
translog_filename_by_fileno
|
eloqsql/storage/maria/ma_loghandler.c
|
char *translog_filename_by_fileno(uint32 file_no, char *path)
{
char buff[11], *end;
uint length;
DBUG_ENTER("translog_filename_by_fileno");
DBUG_ASSERT(file_no <= 0xfffffff);
/* log_descriptor.directory is already formated */
end= strxmov(path, log_descriptor.directory, "aria_log.0000000", NullS);
length= (uint) (int10_to_str(file_no, buff, 10) - buff);
strmov(end - length +1, buff);
DBUG_PRINT("info", ("Path: '%s' path: %p", path, path));
DBUG_RETURN(path);
}
|
O0
|
c
|
translog_filename_by_fileno:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
jmp 0xa52ae
movq -0x20(%rbp), %rdi
leaq 0x436557(%rip), %rsi # 0x4db810
addq $0x28, %rsi
leaq 0xe6ebe(%rip), %rdx # 0x18c182
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x1822f0
movq %rax, -0x28(%rbp)
movl -0x18(%rbp), %eax
movl %eax, %edi
leaq -0x13(%rbp), %rsi
movl $0xa, %edx
callq 0x17e8a0
leaq -0x13(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq -0x13(%rbp), %rsi
callq 0x2c8c0
jmp 0xa5310
jmp 0xa5312
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xa5336
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
callq 0x2c290
nopl (%rax,%rax)
|
translog_filename_by_fileno:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_18], edi
mov [rbp+var_20], rsi
jmp short $+2
loc_A52AE:
mov rdi, [rbp+var_20]
lea rsi, log_descriptor
add rsi, 28h ; '('
lea rdx, aAriaLog0000000; "aria_log.0000000"
xor eax, eax
mov ecx, eax
mov al, 0
call strxmov
mov [rbp+var_28], rax
mov eax, [rbp+var_18]
mov edi, eax
lea rsi, [rbp+var_13]
mov edx, 0Ah
call int10_to_str
lea rcx, [rbp+var_13]
sub rax, rcx
mov [rbp+var_2C], eax
mov rdi, [rbp+var_28]
mov eax, [rbp+var_2C]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
add rdi, 1
lea rsi, [rbp+var_13]
call _stpcpy
jmp short $+2
loc_A5310:
jmp short $+2
loc_A5312:
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_A5336
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
loc_A5336:
call ___stack_chk_fail
|
long long translog_filename_by_fileno(unsigned int a1, long long a2, long long a3, long long a4, int a5, int a6)
{
unsigned int v7; // [rsp+14h] [rbp-2Ch]
long long v8; // [rsp+18h] [rbp-28h]
_BYTE v9[11]; // [rsp+2Dh] [rbp-13h] BYREF
unsigned long long v10; // [rsp+38h] [rbp-8h]
long long savedregs; // [rsp+40h] [rbp+0h] BYREF
v10 = __readfsqword(0x28u);
v8 = strxmov(a2, (unsigned int)(&log_descriptor + 5), (unsigned int)"aria_log.0000000", 0, a5, a6);
v7 = int10_to_str(a1, v9, 10LL) - ((unsigned int)&savedregs - 19);
stpcpy(v8 - v7 + 1, v9);
return a2;
}
|
translog_filename_by_fileno:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x18],EDI
MOV qword ptr [RBP + -0x20],RSI
JMP 0x001a52ae
LAB_001a52ae:
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[0x5db810]
ADD RSI,0x28
LEA RDX,[0x28c182]
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x002822f0
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x18]
MOV EDI,EAX
LEA RSI,[RBP + -0x13]
MOV EDX,0xa
CALL 0x0027e8a0
LEA RCX,[RBP + -0x13]
SUB RAX,RCX
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
ADD RDI,0x1
LEA RSI,[RBP + -0x13]
CALL 0x0012c8c0
JMP 0x001a5310
LAB_001a5310:
JMP 0x001a5312
LAB_001a5312:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001a5336
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
LAB_001a5336:
CALL 0x0012c290
|
int8 translog_filename_by_fileno(int4 param_1,int8 param_2)
{
int iVar1;
long lVar2;
long in_FS_OFFSET;
char local_1b [11];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
lVar2 = strxmov(param_2,&DAT_005db838,"aria_log.0000000",0);
iVar1 = int10_to_str(param_1,local_1b,10);
stpcpy((char *)((lVar2 - (ulong)(uint)(iVar1 - (int)local_1b)) + 1),local_1b);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return param_2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
10,035 |
tree_insert
|
eloqsql/mysys/tree.c
|
TREE_ELEMENT *tree_insert(TREE *tree, void *key, uint key_size,
void* custom_arg)
{
int cmp;
TREE_ELEMENT *element,***parent;
parent= tree->parents;
*parent = &tree->root; element= tree->root;
for (;;)
{
if (element == &null_element ||
(cmp = (*tree->compare)(custom_arg, ELEMENT_KEY(tree,element),
key)) == 0)
break;
if (cmp < 0)
{
*++parent= &element->right; element= element->right;
}
else
{
*++parent = &element->left; element= element->left;
}
}
if (element == &null_element)
{
uint alloc_size;
if (tree->flag & TREE_ONLY_DUPS)
return TREE_ELEMENT_UNIQUE;
alloc_size=sizeof(TREE_ELEMENT)+key_size+tree->size_of_element;
tree->allocated+=alloc_size;
if (tree->memory_limit && tree->elements_in_tree
&& tree->allocated > tree->memory_limit)
{
reset_tree(tree);
return tree_insert(tree, key, key_size, custom_arg);
}
key_size+=tree->size_of_element;
if (tree->with_delete)
element=(TREE_ELEMENT *) my_malloc(key_memory_TREE, alloc_size,
MYF(tree->my_flags | MY_WME));
else
element=(TREE_ELEMENT *) alloc_root(&tree->mem_root,alloc_size);
if (!element)
return(NULL);
**parent=element;
element->left=element->right= &null_element;
if (!tree->offset_to_key)
{
if (key_size == sizeof(void*)) /* no length, save pointer */
*((void**) (element+1))=key;
else
{
*((void**) (element+1))= (void*) ((void **) (element+1)+1);
memcpy((uchar*) *((void **) (element+1)),key,
(size_t) (key_size-sizeof(void*)));
}
}
else
memcpy((uchar*) element+tree->offset_to_key,key,(size_t) key_size);
element->count=1; /* May give warning in purify */
tree->elements_in_tree++;
rb_insert(tree,parent,element); /* rebalance tree */
}
else
{
if (tree->flag & TREE_NO_DUPS)
return(NULL);
element->count++;
/* Avoid a wrap over of the count. */
if (! element->count)
element->count--;
}
DBUG_EXECUTE("check_tree", test_rb_tree(tree->root););
return element;
}
|
O3
|
c
|
tree_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
movq %rdx, -0x38(%rbp)
leal 0x18(%rdx), %eax
movq %rax, -0x40(%rbp)
leaq 0x2e145a(%rip), %rax # 0x385bc0
movq %r12, -0x30(%rbp)
movq %rbx, 0x8(%rbx)
movq (%rbx), %r14
cmpq %rax, %r14
je 0xa47c1
movq -0x30(%rbp), %r12
movl 0x208(%rbx), %esi
testq %rsi, %rsi
je 0xa478a
addq %r14, %rsi
jmp 0xa478e
movq 0x18(%r14), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq *0x228(%rbx)
testl %eax, %eax
je 0xa4825
shrl $0x1f, %eax
leaq (%r14,%rax,8), %rax
movq %rax, 0x8(%r12)
addq $0x8, %r12
movq (%rax), %r14
leaq 0x2e1404(%rip), %rax # 0x385bc0
cmpq %rax, %r14
jne 0xa477a
testb $0x2, 0x290(%rbx)
jne 0xa4883
movl 0x210(%rbx), %edx
movq -0x40(%rbp), %rax
leal (%rax,%rdx), %esi
movq 0x220(%rbx), %rax
addq %rsi, %rax
movq %rax, 0x220(%rbx)
movq 0x218(%rbx), %rcx
testq %rcx, %rcx
je 0xa485c
cmpl $0x0, 0x20c(%rbx)
je 0xa485c
cmpq %rcx, %rax
jbe 0xa485c
movl $0x2, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa4657
leaq 0x2e13a4(%rip), %rax # 0x385bc0
movq -0x30(%rbp), %r12
jmp 0xa476a
testb $0x1, 0x290(%rbx)
jne 0xa48cb
movl 0x10(%r14), %eax
leal 0x1(%rax), %ecx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
movl %eax, %edx
andl $0x80000000, %edx # imm = 0x80000000
orl %ecx, %edx
movl %edx, 0x10(%r14)
testl %ecx, %ecx
jne 0xa48ce
orl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movl %eax, 0x10(%r14)
jmp 0xa48ce
movq %rdx, %r13
cmpb $0x0, 0x278(%rbx)
je 0xa488b
leaq 0xb63e6d(%rip), %rax # 0xc086dc
movl (%rax), %edi
movq 0x288(%rbx), %rdx
orq $0x10, %rdx
callq 0x9fc95
jmp 0xa4897
movl $0x1, %r14d
jmp 0xa48ce
leaq 0x238(%rbx), %rdi
callq 0x9cb7f
movq %rax, %r14
testq %rax, %rax
je 0xa48cb
addl -0x38(%rbp), %r13d
movq (%r12), %rax
movq %r14, (%rax)
leaq 0x2e130f(%rip), %rax # 0x385bc0
movq %rax, 0x8(%r14)
movq %rax, (%r14)
movl 0x208(%rbx), %edi
testq %rdi, %rdi
je 0xa48e0
addq %r14, %rdi
movl %r13d, %edx
jmp 0xa48fb
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x8, %r13d
jne 0xa48ec
movq %r15, 0x18(%r14)
jmp 0xa4903
movl %r13d, %edx
leaq 0x20(%r14), %rdi
movq %rdi, 0x18(%r14)
addq $-0x8, %rdx
movq %r15, %rsi
callq 0x29080
movl $0x80000000, %eax # imm = 0x80000000
andl 0x10(%r14), %eax
incl %eax
movl %eax, 0x10(%r14)
incl 0x20c(%rbx)
andb $0x7f, 0x13(%r14)
cmpq %r14, (%rbx)
je 0xa4a0c
addq $-0x10, %r12
movq %r14, %rcx
movq 0x8(%r12), %rdi
movq (%rdi), %rsi
movl 0x10(%rsi), %edx
testl %edx, %edx
js 0xa4a0c
movq (%r12), %rax
movq (%rax), %rax
movq (%rax), %r8
cmpq %r8, %rsi
je 0xa4958
cmpl $0x0, 0x10(%r8)
jns 0xa4963
jmp 0xa498a
movq 0x8(%rax), %r8
cmpl $0x0, 0x10(%r8)
js 0xa4997
addq $0x10, %r8
orl $0x80000000, %edx # imm = 0x80000000
movl %edx, 0x10(%rsi)
orb $-0x80, 0x3(%r8)
andb $0x7f, 0x13(%rax)
addq $-0x10, %r12
movq %rax, %rcx
cmpq (%rbx), %rax
jne 0xa492d
jmp 0xa4a0c
movq (%rsi), %r8
cmpq %r8, %rcx
je 0xa49a5
movq %rsi, %rcx
jmp 0xa49b6
movq 0x8(%rsi), %r8
cmpq %r8, %rcx
je 0xa49d7
movq %rsi, %rcx
jmp 0xa49e7
movq 0x8(%r8), %rdx
movq %rdx, (%rsi)
movq %r8, (%rdi)
movq %rsi, 0x8(%r8)
movl 0x10(%rcx), %edx
orl $0x80000000, %edx # imm = 0x80000000
movl %edx, 0x10(%rcx)
andb $0x7f, 0x13(%rax)
movq (%r12), %rdx
movq 0x8(%rax), %rcx
movq (%rcx), %rsi
movq %rsi, 0x8(%rax)
movq %rcx, (%rdx)
jmp 0xa4a09
movq (%r8), %rdx
movq %rdx, 0x8(%rsi)
movq %r8, (%rdi)
movq %rsi, (%r8)
movl 0x10(%rcx), %edx
orl $0x80000000, %edx # imm = 0x80000000
movl %edx, 0x10(%rcx)
andb $0x7f, 0x13(%rax)
movq (%r12), %rdx
movq (%rax), %rsi
leaq 0x8(%rsi), %rcx
movq 0x8(%rsi), %rdi
movq %rdi, (%rax)
movq %rsi, (%rdx)
movq %rax, (%rcx)
movq (%rbx), %rax
orl $0x80000000, 0x10(%rax) # imm = 0x80000000
jmp 0xa48ce
|
tree_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, rcx
mov r15, rsi
mov rbx, rdi
lea r12, [rdi+8]
mov [rbp+var_38], rdx
lea eax, [rdx+18h]
mov [rbp+var_40], rax
lea rax, null_element
mov [rbp+var_30], r12
loc_A476A:
mov [rbx+8], rbx
mov r14, [rbx]
cmp r14, rax
jz short loc_A47C1
mov r12, [rbp+var_30]
loc_A477A:
mov esi, [rbx+208h]
test rsi, rsi
jz short loc_A478A
add rsi, r14
jmp short loc_A478E
loc_A478A:
mov rsi, [r14+18h]
loc_A478E:
mov rdi, r13
mov rdx, r15
call qword ptr [rbx+228h]
test eax, eax
jz loc_A4825
shr eax, 1Fh
lea rax, [r14+rax*8]
mov [r12+8], rax
add r12, 8
mov r14, [rax]
lea rax, null_element
cmp r14, rax
jnz short loc_A477A
loc_A47C1:
test byte ptr [rbx+290h], 2
jnz loc_A4883
mov edx, [rbx+210h]
mov rax, [rbp+var_40]
lea esi, [rax+rdx]
mov rax, [rbx+220h]
add rax, rsi
mov [rbx+220h], rax
mov rcx, [rbx+218h]
test rcx, rcx
jz short loc_A485C
cmp dword ptr [rbx+20Ch], 0
jz short loc_A485C
cmp rax, rcx
jbe short loc_A485C
mov edx, 2
mov rdi, rbx
xor esi, esi
call free_tree
lea rax, null_element
mov r12, [rbp+var_30]
jmp loc_A476A
loc_A4825:
test byte ptr [rbx+290h], 1
jnz loc_A48CB
mov eax, [r14+10h]
lea ecx, [rax+1]
and ecx, 7FFFFFFFh
mov edx, eax
and edx, 80000000h
or edx, ecx
mov [r14+10h], edx
test ecx, ecx
jnz short loc_A48CE
or eax, 7FFFFFFFh
mov [r14+10h], eax
jmp short loc_A48CE
loc_A485C:
mov r13, rdx
cmp byte ptr [rbx+278h], 0
jz short loc_A488B
lea rax, key_memory_TREE
mov edi, [rax]
mov rdx, [rbx+288h]
or rdx, 10h
call my_malloc
jmp short loc_A4897
loc_A4883:
mov r14d, 1
jmp short loc_A48CE
loc_A488B:
lea rdi, [rbx+238h]
call alloc_root
loc_A4897:
mov r14, rax
test rax, rax
jz short loc_A48CB
add r13d, dword ptr [rbp+var_38]
mov rax, [r12]
mov [rax], r14
lea rax, null_element
mov [r14+8], rax
mov [r14], rax
mov edi, [rbx+208h]
test rdi, rdi
jz short loc_A48E0
add rdi, r14
mov edx, r13d
jmp short loc_A48FB
loc_A48CB:
xor r14d, r14d
loc_A48CE:
mov rax, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A48E0:
cmp r13d, 8
jnz short loc_A48EC
mov [r14+18h], r15
jmp short loc_A4903
loc_A48EC:
mov edx, r13d
lea rdi, [r14+20h]
mov [r14+18h], rdi
add rdx, 0FFFFFFFFFFFFFFF8h
loc_A48FB:
mov rsi, r15
call _memcpy
loc_A4903:
mov eax, 80000000h
and eax, [r14+10h]
inc eax
mov [r14+10h], eax
inc dword ptr [rbx+20Ch]
and byte ptr [r14+13h], 7Fh
cmp [rbx], r14
jz loc_A4A0C
add r12, 0FFFFFFFFFFFFFFF0h
mov rcx, r14
loc_A492D:
mov rdi, [r12+8]
mov rsi, [rdi]
mov edx, [rsi+10h]
test edx, edx
js loc_A4A0C
mov rax, [r12]
mov rax, [rax]
mov r8, [rax]
cmp rsi, r8
jz short loc_A4958
cmp dword ptr [r8+10h], 0
jns short loc_A4963
jmp short loc_A498A
loc_A4958:
mov r8, [rax+8]
cmp dword ptr [r8+10h], 0
js short loc_A4997
loc_A4963:
add r8, 10h
or edx, 80000000h
mov [rsi+10h], edx
or byte ptr [r8+3], 80h
and byte ptr [rax+13h], 7Fh
add r12, 0FFFFFFFFFFFFFFF0h
mov rcx, rax
cmp rax, [rbx]
jnz short loc_A492D
jmp loc_A4A0C
loc_A498A:
mov r8, [rsi]
cmp rcx, r8
jz short loc_A49A5
mov rcx, rsi
jmp short loc_A49B6
loc_A4997:
mov r8, [rsi+8]
cmp rcx, r8
jz short loc_A49D7
mov rcx, rsi
jmp short loc_A49E7
loc_A49A5:
mov rdx, [r8+8]
mov [rsi], rdx
mov [rdi], r8
mov [r8+8], rsi
mov edx, [rcx+10h]
loc_A49B6:
or edx, 80000000h
mov [rcx+10h], edx
and byte ptr [rax+13h], 7Fh
mov rdx, [r12]
mov rcx, [rax+8]
mov rsi, [rcx]
mov [rax+8], rsi
mov [rdx], rcx
jmp short loc_A4A09
loc_A49D7:
mov rdx, [r8]
mov [rsi+8], rdx
mov [rdi], r8
mov [r8], rsi
mov edx, [rcx+10h]
loc_A49E7:
or edx, 80000000h
mov [rcx+10h], edx
and byte ptr [rax+13h], 7Fh
mov rdx, [r12]
mov rsi, [rax]
lea rcx, [rsi+8]
mov rdi, [rsi+8]
mov [rax], rdi
mov [rdx], rsi
loc_A4A09:
mov [rcx], rax
loc_A4A0C:
mov rax, [rbx]
or dword ptr [rax+10h], 80000000h
jmp loc_A48CE
|
long long tree_insert(long long a1, long long a2, int a3, long long a4)
{
long long v7; // r12
_QWORD *v8; // r14
char *v9; // rsi
unsigned int v10; // eax
_QWORD *v11; // rax
int v12; // edx
long long v13; // rsi
unsigned long long v14; // rax
unsigned long long v15; // rcx
int v16; // eax
int v17; // ecx
int v18; // r13d
_QWORD *v19; // rax
unsigned int v20; // r13d
long long v21; // rdi
_QWORD *v22; // rdi
long long v23; // rdx
long long v25; // r12
_QWORD *v26; // rcx
long long *v27; // rdi
long long v28; // rsi
int v29; // edx
_QWORD *v30; // rax
long long v31; // r8
_QWORD *v32; // r8
_QWORD *v33; // r8
_QWORD *v34; // rdx
_QWORD *v35; // rcx
_QWORD *v36; // rdx
long long v37; // rsi
int v38; // [rsp+0h] [rbp-40h]
v7 = a1 + 8;
v38 = a3 + 24;
while ( 1 )
{
*(_QWORD *)(a1 + 8) = a1;
v8 = *(_QWORD **)a1;
if ( *(_UNKNOWN **)a1 != &null_element )
{
v7 = a1 + 8;
while ( 1 )
{
v9 = *(_DWORD *)(a1 + 520) ? (char *)v8 + *(unsigned int *)(a1 + 520) : (char *)v8[3];
v10 = (*(long long ( **)(long long, char *, long long))(a1 + 552))(a4, v9, a2);
if ( !v10 )
break;
v11 = &v8[v10 >> 31];
*(_QWORD *)(v7 + 8) = v11;
v7 += 8LL;
v8 = (_QWORD *)*v11;
if ( (_UNKNOWN *)*v11 == &null_element )
goto LABEL_9;
}
if ( (*(_BYTE *)(a1 + 656) & 1) == 0 )
{
v16 = *((_DWORD *)v8 + 4);
v17 = (v16 + 1) & 0x7FFFFFFF;
*((_DWORD *)v8 + 4) = v17 | v16 & 0x80000000;
if ( !v17 )
*((_DWORD *)v8 + 4) = v16 | 0x7FFFFFFF;
return (long long)v8;
}
return 0LL;
}
LABEL_9:
if ( (*(_BYTE *)(a1 + 656) & 2) != 0 )
return 1LL;
v12 = *(_DWORD *)(a1 + 528);
v13 = (unsigned int)(v38 + v12);
v14 = v13 + *(_QWORD *)(a1 + 544);
*(_QWORD *)(a1 + 544) = v14;
v15 = *(_QWORD *)(a1 + 536);
if ( !v15 || !*(_DWORD *)(a1 + 524) || v14 <= v15 )
break;
free_tree((long long *)a1, 0, 2);
v7 = a1 + 8;
}
v18 = v12;
if ( *(_BYTE *)(a1 + 632) )
v19 = (_QWORD *)my_malloc(key_memory_TREE, (const char *)v13, *(_DWORD *)(a1 + 648) | 0x10u);
else
v19 = alloc_root(a1 + 568, v13);
v8 = v19;
if ( !v19 )
return 0LL;
v20 = a3 + v18;
**(_QWORD **)v7 = v19;
v19[1] = &null_element;
*v19 = &null_element;
v21 = *(unsigned int *)(a1 + 520);
if ( *(_DWORD *)(a1 + 520) )
{
v22 = (_QWORD *)((char *)v19 + v21);
v23 = v20;
goto LABEL_29;
}
if ( v20 == 8 )
{
v19[3] = a2;
}
else
{
v22 = v19 + 4;
v19[3] = v19 + 4;
v23 = v20 - 8LL;
LABEL_29:
memcpy(v22, a2, v23);
}
*((_DWORD *)v8 + 4) = (v8[2] & 0x80000000) + 1;
++*(_DWORD *)(a1 + 524);
*((_BYTE *)v8 + 19) &= ~0x80u;
if ( *(_QWORD **)a1 != v8 )
{
v25 = v7 - 16;
v26 = v8;
do
{
v27 = *(long long **)(v25 + 8);
v28 = *v27;
v29 = *(_DWORD *)(*v27 + 16);
if ( v29 < 0 )
break;
v30 = **(_QWORD ***)v25;
v31 = *v30;
if ( v28 == *v30 )
{
v31 = v30[1];
if ( *(int *)(v31 + 16) < 0 )
{
v33 = *(_QWORD **)(v28 + 8);
if ( v26 == v33 )
{
*(_QWORD *)(v28 + 8) = *v33;
*v27 = (long long)v33;
*v33 = v28;
v29 = *((_DWORD *)v26 + 4);
}
else
{
v26 = (_QWORD *)*v27;
}
*((_DWORD *)v26 + 4) = v29 | 0x80000000;
*((_BYTE *)v30 + 19) &= ~0x80u;
v36 = *(_QWORD **)v25;
v37 = *v30;
v35 = (_QWORD *)(*v30 + 8LL);
*v30 = *v35;
*v36 = v37;
goto LABEL_47;
}
}
else if ( *(int *)(v31 + 16) < 0 )
{
v32 = *(_QWORD **)v28;
if ( v26 == *(_QWORD **)v28 )
{
*(_QWORD *)v28 = v32[1];
*v27 = (long long)v32;
v32[1] = v28;
v29 = *((_DWORD *)v26 + 4);
}
else
{
v26 = (_QWORD *)*v27;
}
*((_DWORD *)v26 + 4) = v29 | 0x80000000;
*((_BYTE *)v30 + 19) &= ~0x80u;
v34 = *(_QWORD **)v25;
v35 = (_QWORD *)v30[1];
v30[1] = *v35;
*v34 = v35;
LABEL_47:
*v35 = v30;
break;
}
*(_DWORD *)(v28 + 16) = v29 | 0x80000000;
*(_BYTE *)(v31 + 19) |= 0x80u;
*((_BYTE *)v30 + 19) &= ~0x80u;
v25 -= 16LL;
v26 = v30;
}
while ( v30 != *(_QWORD **)a1 );
}
*(_DWORD *)(*(_QWORD *)a1 + 16LL) |= 0x80000000;
return (long long)v8;
}
|
tree_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,RCX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x8]
MOV qword ptr [RBP + -0x38],RDX
LEA EAX,[RDX + 0x18]
MOV qword ptr [RBP + -0x40],RAX
LEA RAX,[0x485bc0]
MOV qword ptr [RBP + -0x30],R12
LAB_001a476a:
MOV qword ptr [RBX + 0x8],RBX
MOV R14,qword ptr [RBX]
CMP R14,RAX
JZ 0x001a47c1
MOV R12,qword ptr [RBP + -0x30]
LAB_001a477a:
MOV ESI,dword ptr [RBX + 0x208]
TEST RSI,RSI
JZ 0x001a478a
ADD RSI,R14
JMP 0x001a478e
LAB_001a478a:
MOV RSI,qword ptr [R14 + 0x18]
LAB_001a478e:
MOV RDI,R13
MOV RDX,R15
CALL qword ptr [RBX + 0x228]
TEST EAX,EAX
JZ 0x001a4825
SHR EAX,0x1f
LEA RAX,[R14 + RAX*0x8]
MOV qword ptr [R12 + 0x8],RAX
ADD R12,0x8
MOV R14,qword ptr [RAX]
LEA RAX,[0x485bc0]
CMP R14,RAX
JNZ 0x001a477a
LAB_001a47c1:
TEST byte ptr [RBX + 0x290],0x2
JNZ 0x001a4883
MOV EDX,dword ptr [RBX + 0x210]
MOV RAX,qword ptr [RBP + -0x40]
LEA ESI,[RAX + RDX*0x1]
MOV RAX,qword ptr [RBX + 0x220]
ADD RAX,RSI
MOV qword ptr [RBX + 0x220],RAX
MOV RCX,qword ptr [RBX + 0x218]
TEST RCX,RCX
JZ 0x001a485c
CMP dword ptr [RBX + 0x20c],0x0
JZ 0x001a485c
CMP RAX,RCX
JBE 0x001a485c
MOV EDX,0x2
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001a4657
LEA RAX,[0x485bc0]
MOV R12,qword ptr [RBP + -0x30]
JMP 0x001a476a
LAB_001a4825:
TEST byte ptr [RBX + 0x290],0x1
JNZ 0x001a48cb
MOV EAX,dword ptr [R14 + 0x10]
LEA ECX,[RAX + 0x1]
AND ECX,0x7fffffff
MOV EDX,EAX
AND EDX,0x80000000
OR EDX,ECX
MOV dword ptr [R14 + 0x10],EDX
TEST ECX,ECX
JNZ 0x001a48ce
OR EAX,0x7fffffff
MOV dword ptr [R14 + 0x10],EAX
JMP 0x001a48ce
LAB_001a485c:
MOV R13,RDX
CMP byte ptr [RBX + 0x278],0x0
JZ 0x001a488b
LEA RAX,[0xd086dc]
MOV EDI,dword ptr [RAX]
MOV RDX,qword ptr [RBX + 0x288]
OR RDX,0x10
CALL 0x0019fc95
JMP 0x001a4897
LAB_001a4883:
MOV R14D,0x1
JMP 0x001a48ce
LAB_001a488b:
LEA RDI,[RBX + 0x238]
CALL 0x0019cb7f
LAB_001a4897:
MOV R14,RAX
TEST RAX,RAX
JZ 0x001a48cb
ADD R13D,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [R12]
MOV qword ptr [RAX],R14
LEA RAX,[0x485bc0]
MOV qword ptr [R14 + 0x8],RAX
MOV qword ptr [R14],RAX
MOV EDI,dword ptr [RBX + 0x208]
TEST RDI,RDI
JZ 0x001a48e0
ADD RDI,R14
MOV EDX,R13D
JMP 0x001a48fb
LAB_001a48cb:
XOR R14D,R14D
LAB_001a48ce:
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a48e0:
CMP R13D,0x8
JNZ 0x001a48ec
MOV qword ptr [R14 + 0x18],R15
JMP 0x001a4903
LAB_001a48ec:
MOV EDX,R13D
LEA RDI,[R14 + 0x20]
MOV qword ptr [R14 + 0x18],RDI
ADD RDX,-0x8
LAB_001a48fb:
MOV RSI,R15
CALL 0x00129080
LAB_001a4903:
MOV EAX,0x80000000
AND EAX,dword ptr [R14 + 0x10]
INC EAX
MOV dword ptr [R14 + 0x10],EAX
INC dword ptr [RBX + 0x20c]
AND byte ptr [R14 + 0x13],0x7f
CMP qword ptr [RBX],R14
JZ 0x001a4a0c
ADD R12,-0x10
MOV RCX,R14
LAB_001a492d:
MOV RDI,qword ptr [R12 + 0x8]
MOV RSI,qword ptr [RDI]
MOV EDX,dword ptr [RSI + 0x10]
TEST EDX,EDX
JS 0x001a4a0c
MOV RAX,qword ptr [R12]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX]
CMP RSI,R8
JZ 0x001a4958
CMP dword ptr [R8 + 0x10],0x0
JNS 0x001a4963
JMP 0x001a498a
LAB_001a4958:
MOV R8,qword ptr [RAX + 0x8]
CMP dword ptr [R8 + 0x10],0x0
JS 0x001a4997
LAB_001a4963:
ADD R8,0x10
OR EDX,0x80000000
MOV dword ptr [RSI + 0x10],EDX
OR byte ptr [R8 + 0x3],0x80
AND byte ptr [RAX + 0x13],0x7f
ADD R12,-0x10
MOV RCX,RAX
CMP RAX,qword ptr [RBX]
JNZ 0x001a492d
JMP 0x001a4a0c
LAB_001a498a:
MOV R8,qword ptr [RSI]
CMP RCX,R8
JZ 0x001a49a5
MOV RCX,RSI
JMP 0x001a49b6
LAB_001a4997:
MOV R8,qword ptr [RSI + 0x8]
CMP RCX,R8
JZ 0x001a49d7
MOV RCX,RSI
JMP 0x001a49e7
LAB_001a49a5:
MOV RDX,qword ptr [R8 + 0x8]
MOV qword ptr [RSI],RDX
MOV qword ptr [RDI],R8
MOV qword ptr [R8 + 0x8],RSI
MOV EDX,dword ptr [RCX + 0x10]
LAB_001a49b6:
OR EDX,0x80000000
MOV dword ptr [RCX + 0x10],EDX
AND byte ptr [RAX + 0x13],0x7f
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RCX]
MOV qword ptr [RAX + 0x8],RSI
MOV qword ptr [RDX],RCX
JMP 0x001a4a09
LAB_001a49d7:
MOV RDX,qword ptr [R8]
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RDI],R8
MOV qword ptr [R8],RSI
MOV EDX,dword ptr [RCX + 0x10]
LAB_001a49e7:
OR EDX,0x80000000
MOV dword ptr [RCX + 0x10],EDX
AND byte ptr [RAX + 0x13],0x7f
MOV RDX,qword ptr [R12]
MOV RSI,qword ptr [RAX]
LEA RCX,[RSI + 0x8]
MOV RDI,qword ptr [RSI + 0x8]
MOV qword ptr [RAX],RDI
MOV qword ptr [RDX],RSI
LAB_001a4a09:
MOV qword ptr [RCX],RAX
LAB_001a4a0c:
MOV RAX,qword ptr [RBX]
OR dword ptr [RAX + 0x10],0x80000000
JMP 0x001a48ce
|
long * tree_insert(long *param_1,void *param_2,int param_3,int8 param_4)
{
int8 *puVar1;
long *plVar2;
long *plVar3;
uint uVar4;
ulong uVar5;
long *plVar6;
uint uVar7;
long *plVar8;
size_t __n;
int1 *puVar9;
ulong uVar10;
long *plVar11;
long lVar12;
long *plVar13;
while( true ) {
param_1[1] = (long)param_1;
plVar6 = (long *)*param_1;
plVar8 = param_1 + 1;
if (plVar6 != (long *)null_element) {
do {
if ((ulong)*(uint *)(param_1 + 0x41) == 0) {
puVar9 = (int1 *)plVar6[3];
}
else {
puVar9 = (int1 *)((ulong)*(uint *)(param_1 + 0x41) + (long)plVar6);
}
uVar4 = (*(code *)param_1[0x45])(param_4,puVar9,param_2);
if (uVar4 == 0) {
if ((*(byte *)(param_1 + 0x52) & 1) != 0) {
return (long *)0x0;
}
uVar4 = *(uint *)(plVar6 + 2);
uVar7 = uVar4 + 1 & 0x7fffffff;
*(uint *)(plVar6 + 2) = uVar4 & 0x80000000 | uVar7;
if (uVar7 == 0) {
*(uint *)(plVar6 + 2) = uVar4 | 0x7fffffff;
return plVar6;
}
return plVar6;
}
plVar8[1] = (long)(plVar6 + (uVar4 >> 0x1f));
plVar8 = plVar8 + 1;
plVar6 = (long *)plVar6[uVar4 >> 0x1f];
} while (plVar6 != (long *)null_element);
}
if ((*(byte *)(param_1 + 0x52) & 2) != 0) {
return (long *)0x1;
}
lVar12 = param_1[0x42];
uVar10 = (ulong)(uint)(param_3 + 0x18 + (int)lVar12);
uVar5 = param_1[0x44] + uVar10;
param_1[0x44] = uVar5;
if (((param_1[0x43] == 0) || (*(int *)((long)param_1 + 0x20c) == 0)) ||
(uVar5 <= (ulong)param_1[0x43])) break;
free_tree(param_1,0,2);
}
if ((char)param_1[0x4f] == '\0') {
plVar6 = (long *)alloc_root(param_1 + 0x47);
}
else {
plVar6 = (long *)my_malloc(key_memory_TREE,uVar10,param_1[0x51] | 0x10);
}
if (plVar6 == (long *)0x0) {
return (long *)0x0;
}
uVar4 = (int)lVar12 + param_3;
*(long **)*plVar8 = plVar6;
plVar6[1] = (long)null_element;
*plVar6 = (long)null_element;
if ((ulong)*(uint *)(param_1 + 0x41) == 0) {
if (uVar4 == 8) {
plVar6[3] = (long)param_2;
goto LAB_001a4903;
}
plVar11 = plVar6 + 4;
plVar6[3] = (long)plVar11;
__n = (ulong)uVar4 - 8;
}
else {
plVar11 = (long *)((ulong)*(uint *)(param_1 + 0x41) + (long)plVar6);
__n = (size_t)uVar4;
}
memcpy(plVar11,param_2,__n);
LAB_001a4903:
*(uint *)(plVar6 + 2) = (*(uint *)(plVar6 + 2) & 0x80000000) + 1;
*(int *)((long)param_1 + 0x20c) = *(int *)((long)param_1 + 0x20c) + 1;
*(byte *)((long)plVar6 + 0x13) = *(byte *)((long)plVar6 + 0x13) & 0x7f;
plVar11 = plVar6;
if ((long *)*param_1 != plVar6) {
do {
plVar13 = plVar8 + -2;
puVar1 = (int8 *)plVar8[-1];
plVar8 = (long *)*puVar1;
uVar4 = *(uint *)(plVar8 + 2);
if ((int)uVar4 < 0) break;
plVar2 = *(long **)*plVar13;
lVar12 = *plVar2;
if (plVar8 == (long *)lVar12) {
lVar12 = plVar2[1];
if (*(int *)(lVar12 + 0x10) < 0) {
plVar3 = (long *)plVar8[1];
if (plVar11 == plVar3) {
plVar8[1] = *plVar3;
*puVar1 = plVar3;
*plVar3 = (long)plVar8;
uVar4 = *(uint *)(plVar11 + 2);
plVar8 = plVar11;
}
*(uint *)(plVar8 + 2) = uVar4 | 0x80000000;
*(byte *)((long)plVar2 + 0x13) = *(byte *)((long)plVar2 + 0x13) & 0x7f;
plVar13 = (long *)*plVar13;
lVar12 = *plVar2;
plVar8 = (long *)(lVar12 + 8);
*plVar2 = *(long *)(lVar12 + 8);
*plVar13 = lVar12;
goto LAB_001a4a09;
}
}
else if (*(int *)(lVar12 + 0x10) < 0) {
plVar3 = (long *)*plVar8;
if (plVar11 == plVar3) {
*plVar8 = plVar3[1];
*puVar1 = plVar3;
plVar3[1] = (long)plVar8;
uVar4 = *(uint *)(plVar11 + 2);
plVar8 = plVar11;
}
*(uint *)(plVar8 + 2) = uVar4 | 0x80000000;
*(byte *)((long)plVar2 + 0x13) = *(byte *)((long)plVar2 + 0x13) & 0x7f;
plVar13 = (long *)*plVar13;
plVar8 = (long *)plVar2[1];
plVar2[1] = *plVar8;
*plVar13 = (long)plVar8;
LAB_001a4a09:
*plVar8 = (long)plVar2;
break;
}
*(uint *)(plVar8 + 2) = uVar4 | 0x80000000;
*(byte *)(lVar12 + 0x13) = *(byte *)(lVar12 + 0x13) | 0x80;
*(byte *)((long)plVar2 + 0x13) = *(byte *)((long)plVar2 + 0x13) & 0x7f;
plVar11 = plVar2;
plVar8 = plVar13;
} while (plVar2 != (long *)*param_1);
}
*(uint *)(*param_1 + 0x10) = *(uint *)(*param_1 + 0x10) | 0x80000000;
return plVar6;
}
|
|
10,036 |
my_instr_mb
|
eloqsql/strings/ctype-mb.c
|
uint my_instr_mb(CHARSET_INFO *cs,
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const char *end, *b0;
int res= 0;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
b0= b;
end= b+b_length-s_length+1;
while (b < end)
{
int mb_len;
if (!my_ci_strnncoll(cs, (const uchar *) b, s_length,
(const uchar *) s, s_length, 0))
{
if (nmatch)
{
match[0].beg= 0;
match[0].end= (uint) (b-b0);
match[0].mb_len= res;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= 0; /* Not computed */
}
}
return 2;
}
mb_len= (mb_len= my_ismbchar(cs, b, end)) ? mb_len : 1;
b+= mb_len;
b_length-= mb_len;
res++;
}
}
return 0;
}
|
O3
|
c
|
my_instr_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x40(%rbp)
xorl %eax, %eax
cmpq %rdx, %r8
ja 0x497cb
movq %r8, %r14
testq %r8, %r8
je 0x4975e
movq %rdx, %r13
addq %rsi, %r13
subq %r14, %r13
incq %r13
cmpq %rsi, %r13
jbe 0x497cb
movq %rdi, %rbx
movq %r9, -0x38(%rbp)
xorl %r12d, %r12d
movq %rsi, -0x30(%rbp)
movq %rsi, %r15
movq 0xc0(%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq -0x40(%rbp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq *0x8(%rax)
testl %eax, %eax
je 0x4978b
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x1, %ecx
cmovbl %ecx, %eax
cmovll %ecx, %eax
cltq
addq %rax, %r15
incl %r12d
cmpq %r13, %r15
jb 0x49708
xorl %eax, %eax
jmp 0x497cb
cmpl $0x0, 0x10(%rbp)
je 0x497c6
movl $0x0, (%r9)
movl $0x1, %eax
movl $0x8, %ecx
xorl %r14d, %r14d
movl $0x4, %edx
movl %r14d, (%r9,%rdx)
movl $0x0, (%r9,%rcx)
jmp 0x497cb
movl $0x2, %eax
movl 0x10(%rbp), %ecx
testl %ecx, %ecx
je 0x497cb
movq -0x38(%rbp), %r9
movl $0x0, (%r9)
subl -0x30(%rbp), %r15d
movl %r15d, 0x4(%r9)
movl %r12d, 0x8(%r9)
cmpl $0x1, %ecx
je 0x497cb
movl %r15d, 0xc(%r9)
addl %r15d, %r14d
movl $0x14, %ecx
movl $0x10, %edx
jmp 0x4977d
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_instr_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], rcx
xor eax, eax
cmp r8, rdx
ja loc_497CB
mov r14, r8
test r8, r8
jz short loc_4975E
mov r13, rdx
add r13, rsi
sub r13, r14
inc r13
cmp r13, rsi
jbe loc_497CB
mov rbx, rdi
mov [rbp+var_38], r9
xor r12d, r12d
mov [rbp+var_30], rsi
mov r15, rsi
loc_49708:
mov rax, [rbx+0C0h]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov rcx, [rbp+var_40]
mov r8, r14
xor r9d, r9d
call qword ptr [rax+8]
test eax, eax
jz short loc_4978B
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r15
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 1
cmovb eax, ecx
cmovl eax, ecx
cdqe
add r15, rax
inc r12d
cmp r15, r13
jb short loc_49708
xor eax, eax
jmp short loc_497CB
loc_4975E:
cmp [rbp+arg_0], 0
jz short loc_497C6
mov dword ptr [r9], 0
mov eax, 1
mov ecx, 8
xor r14d, r14d
mov edx, 4
loc_4977D:
mov [r9+rdx], r14d
mov dword ptr [r9+rcx], 0
jmp short loc_497CB
loc_4978B:
mov eax, 2
mov ecx, [rbp+arg_0]
test ecx, ecx
jz short loc_497CB
mov r9, [rbp+var_38]
mov dword ptr [r9], 0
sub r15d, dword ptr [rbp+var_30]
mov [r9+4], r15d
mov [r9+8], r12d
cmp ecx, 1
jz short loc_497CB
mov [r9+0Ch], r15d
add r14d, r15d
mov ecx, 14h
mov edx, 10h
jmp short loc_4977D
loc_497C6:
mov eax, 1
loc_497CB:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_instr_mb(
long long a1,
unsigned long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
_DWORD *a6,
int a7)
{
long long result; // rax
unsigned long long v9; // r13
int v10; // r12d
unsigned long long v11; // r15
int v12; // eax
bool v13; // cc
long long v14; // rcx
int v15; // r14d
long long v16; // rdx
int v17; // r15d
_DWORD *v19; // [rsp+8h] [rbp-38h]
result = 0LL;
if ( a5 <= a3 )
{
if ( a5 )
{
v9 = a2 + a3 - a5 + 1;
if ( v9 > a2 )
{
v19 = a6;
v10 = 0;
v11 = a2;
while ( (*(unsigned int ( **)(long long, unsigned long long, unsigned long long, long long, unsigned long long, _QWORD))(*(_QWORD *)(a1 + 192) + 8LL))(
a1,
v11,
a5,
a4,
a5,
0LL) )
{
v12 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v11,
v9);
v13 = v12 < 2;
if ( (unsigned int)v12 < 2 )
v12 = 1;
if ( v13 )
v12 = 1;
v11 += v12;
++v10;
if ( v11 >= v9 )
return 0LL;
}
result = 2LL;
if ( a7 )
{
a6 = v19;
*v19 = 0;
v17 = v11 - a2;
v19[1] = v17;
v19[2] = v10;
if ( a7 != 1 )
{
v19[3] = v17;
v15 = v17 + a5;
v14 = 5LL;
v16 = 4LL;
goto LABEL_14;
}
}
}
}
else
{
if ( a7 )
{
*a6 = 0;
result = 1LL;
v14 = 2LL;
v15 = 0;
v16 = 1LL;
LABEL_14:
a6[v16] = v15;
a6[v14] = 0;
return result;
}
return 1LL;
}
}
return result;
}
|
my_instr_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],RCX
XOR EAX,EAX
CMP R8,RDX
JA 0x001497cb
MOV R14,R8
TEST R8,R8
JZ 0x0014975e
MOV R13,RDX
ADD R13,RSI
SUB R13,R14
INC R13
CMP R13,RSI
JBE 0x001497cb
MOV RBX,RDI
MOV qword ptr [RBP + -0x38],R9
XOR R12D,R12D
MOV qword ptr [RBP + -0x30],RSI
MOV R15,RSI
LAB_00149708:
MOV RAX,qword ptr [RBX + 0xc0]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x40]
MOV R8,R14
XOR R9D,R9D
CALL qword ptr [RAX + 0x8]
TEST EAX,EAX
JZ 0x0014978b
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x1
CMOVC EAX,ECX
CMOVL EAX,ECX
CDQE
ADD R15,RAX
INC R12D
CMP R15,R13
JC 0x00149708
XOR EAX,EAX
JMP 0x001497cb
LAB_0014975e:
CMP dword ptr [RBP + 0x10],0x0
JZ 0x001497c6
MOV dword ptr [R9],0x0
MOV EAX,0x1
MOV ECX,0x8
XOR R14D,R14D
MOV EDX,0x4
LAB_0014977d:
MOV dword ptr [R9 + RDX*0x1],R14D
MOV dword ptr [R9 + RCX*0x1],0x0
JMP 0x001497cb
LAB_0014978b:
MOV EAX,0x2
MOV ECX,dword ptr [RBP + 0x10]
TEST ECX,ECX
JZ 0x001497cb
MOV R9,qword ptr [RBP + -0x38]
MOV dword ptr [R9],0x0
SUB R15D,dword ptr [RBP + -0x30]
MOV dword ptr [R9 + 0x4],R15D
MOV dword ptr [R9 + 0x8],R12D
CMP ECX,0x1
JZ 0x001497cb
MOV dword ptr [R9 + 0xc],R15D
ADD R14D,R15D
MOV ECX,0x14
MOV EDX,0x10
JMP 0x0014977d
LAB_001497c6:
MOV EAX,0x1
LAB_001497cb:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
my_instr_mb(long param_1,ulong param_2,ulong param_3,int8 param_4,ulong param_5,
int4 *param_6,int param_7)
{
int iVar1;
uint uVar2;
uint uVar3;
int8 uVar4;
long lVar5;
long lVar6;
int iVar7;
ulong uVar8;
ulong uVar9;
int local_38;
uVar4 = 0;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 == 0) {
uVar4 = 1;
}
else {
*param_6 = 0;
uVar4 = 1;
lVar5 = 8;
local_38 = 0;
lVar6 = 4;
LAB_0014977d:
*(int *)((long)param_6 + lVar6) = local_38;
*(int4 *)((long)param_6 + lVar5) = 0;
}
}
else {
uVar8 = ((param_3 + param_2) - param_5) + 1;
if (param_2 < uVar8) {
iVar7 = 0;
uVar9 = param_2;
do {
iVar1 = (**(code **)(*(long *)(param_1 + 0xc0) + 8))
(param_1,uVar9,param_5,param_4,param_5,0);
if (iVar1 == 0) {
uVar4 = 2;
if (param_7 == 0) {
return 2;
}
*param_6 = 0;
local_38 = (int)param_2;
local_38 = (int)uVar9 - local_38;
param_6[1] = local_38;
param_6[2] = iVar7;
if (param_7 == 1) {
return 2;
}
param_6[3] = local_38;
local_38 = (int)param_5 + local_38;
lVar5 = 0x14;
lVar6 = 0x10;
goto LAB_0014977d;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,uVar9,uVar8);
uVar3 = uVar2;
if (uVar2 < 2) {
uVar3 = 1;
}
if ((int)uVar2 < 2) {
uVar3 = 1;
}
uVar9 = uVar9 + (long)(int)uVar3;
iVar7 = iVar7 + 1;
} while (uVar9 < uVar8);
uVar4 = 0;
}
}
}
return uVar4;
}
|
|
10,037 |
ma_get_static_key
|
eloqsql/storage/maria/ma_search.c
|
uint _ma_get_static_key(MARIA_KEY *key, uint page_flag, uint nod_flag,
register uchar **page)
{
register MARIA_KEYDEF *keyinfo= key->keyinfo;
uint key_length= keyinfo->keylength;
key->ref_length= keyinfo->share->rec_reflength;
key->data_length= key_length - key->ref_length;
key->flag= 0;
if (page_flag & KEYPAGE_FLAG_HAS_TRANSID)
{
uchar *end= *page + keyinfo->keylength;
if (key_has_transid(end-1))
{
uint trans_length= transid_packed_length(end);
key->ref_length+= trans_length;
key_length+= trans_length;
key->flag= SEARCH_PAGE_KEY_HAS_TRANSID;
}
}
key_length+= nod_flag;
memcpy(key->data, *page, key_length);
*page+= key_length;
return key_length - nod_flag;
}
|
O3
|
c
|
ma_get_static_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %r14d
movl %esi, %eax
movq 0x8(%rdi), %rdx
movzwl 0xaa(%rdx), %r15d
movq (%rdx), %rcx
movl 0x740(%rcx), %ecx
movl %ecx, 0x14(%rdi)
movl %r15d, %esi
subl %ecx, %esi
movl %esi, 0x10(%rdi)
movl $0x0, 0x18(%rdi)
movq (%rbx), %rsi
testb $0x2, %al
je 0x705e3
movzwl 0xaa(%rdx), %eax
testb $0x1, -0x1(%rsi,%rax)
je 0x705e3
movzbl (%rsi,%rax), %eax
leal -0xf8(%rax), %edx
cmpl $0xf3, %eax
movl $0x1, %eax
cmovael %edx, %eax
addl %eax, %ecx
movl %ecx, 0x14(%rdi)
addl %eax, %r15d
movl $0x100000, 0x18(%rdi) # imm = 0x100000
movq (%rbx), %rsi
addl %r15d, %r14d
movq (%rdi), %rdi
movq %r14, %rdx
callq 0x2a0a0
addq %r14, (%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ma_get_static_key:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rcx
mov r14d, edx
mov eax, esi
mov rdx, [rdi+8]
movzx r15d, word ptr [rdx+0AAh]
mov rcx, [rdx]
mov ecx, [rcx+740h]
mov [rdi+14h], ecx
mov esi, r15d
sub esi, ecx
mov [rdi+10h], esi
mov dword ptr [rdi+18h], 0
mov rsi, [rbx]
test al, 2
jz short loc_705E3
movzx eax, word ptr [rdx+0AAh]
test byte ptr [rsi+rax-1], 1
jz short loc_705E3
movzx eax, byte ptr [rsi+rax]
lea edx, [rax-0F8h]
cmp eax, 0F3h
mov eax, 1
cmovnb eax, edx
add ecx, eax
mov [rdi+14h], ecx
add r15d, eax
mov dword ptr [rdi+18h], offset xmmword_100000
mov rsi, [rbx]
loc_705E3:
add r14d, r15d
mov rdi, [rdi]
mov rdx, r14
call _memcpy
add [rbx], r14
mov eax, r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long ma_get_static_key(long long a1, char a2, int a3, long long *a4)
{
unsigned __int16 *v7; // rdx
unsigned int v8; // r15d
int v9; // ecx
long long v10; // rsi
long long v11; // rax
unsigned int v12; // eax
int v13; // edx
bool v14; // cf
int v15; // eax
long long v16; // r14
v7 = *(unsigned __int16 **)(a1 + 8);
v8 = v7[85];
v9 = *(_DWORD *)(*(_QWORD *)v7 + 1856LL);
*(_DWORD *)(a1 + 20) = v9;
*(_DWORD *)(a1 + 16) = v8 - v9;
*(_DWORD *)(a1 + 24) = 0;
v10 = *a4;
if ( (a2 & 2) != 0 )
{
v11 = v7[85];
if ( (*(_BYTE *)(v10 + v11 - 1) & 1) != 0 )
{
v12 = *(unsigned __int8 *)(v10 + v11);
v13 = v12 - 248;
v14 = v12 < 0xF3;
v15 = 1;
if ( !v14 )
v15 = v13;
*(_DWORD *)(a1 + 20) = v15 + v9;
v8 += v15;
*(_DWORD *)(a1 + 24) = (_DWORD)&xmmword_100000;
v10 = *a4;
}
}
v16 = v8 + a3;
memcpy(*(_QWORD *)a1, v10, v16);
*a4 += v16;
return v8;
}
|
_ma_get_static_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14D,EDX
MOV EAX,ESI
MOV RDX,qword ptr [RDI + 0x8]
MOVZX R15D,word ptr [RDX + 0xaa]
MOV RCX,qword ptr [RDX]
MOV ECX,dword ptr [RCX + 0x740]
MOV dword ptr [RDI + 0x14],ECX
MOV ESI,R15D
SUB ESI,ECX
MOV dword ptr [RDI + 0x10],ESI
MOV dword ptr [RDI + 0x18],0x0
MOV RSI,qword ptr [RBX]
TEST AL,0x2
JZ 0x001705e3
MOVZX EAX,word ptr [RDX + 0xaa]
TEST byte ptr [RSI + RAX*0x1 + -0x1],0x1
JZ 0x001705e3
MOVZX EAX,byte ptr [RSI + RAX*0x1]
LEA EDX,[RAX + -0xf8]
CMP EAX,0xf3
MOV EAX,0x1
CMOVNC EAX,EDX
ADD ECX,EAX
MOV dword ptr [RDI + 0x14],ECX
ADD R15D,EAX
MOV dword ptr [RDI + 0x18],0x100000
MOV RSI,qword ptr [RBX]
LAB_001705e3:
ADD R14D,R15D
MOV RDI,qword ptr [RDI]
MOV RDX,R14
CALL 0x0012a0a0
ADD qword ptr [RBX],R14
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
uint _ma_get_static_key(int8 *param_1,uint param_2,int param_3,long *param_4)
{
byte bVar1;
ushort uVar2;
int iVar3;
long *plVar4;
int iVar5;
void *__src;
uint uVar6;
plVar4 = (long *)param_1[1];
uVar2 = *(ushort *)((long)plVar4 + 0xaa);
uVar6 = (uint)uVar2;
iVar3 = *(int *)(*plVar4 + 0x740);
*(int *)((long)param_1 + 0x14) = iVar3;
*(uint *)(param_1 + 2) = uVar6 - iVar3;
*(int4 *)(param_1 + 3) = 0;
__src = (void *)*param_4;
if (((param_2 & 2) != 0) &&
((*(byte *)((long)__src + ((ulong)*(ushort *)((long)plVar4 + 0xaa) - 1)) & 1) != 0)) {
bVar1 = *(byte *)((long)__src + (ulong)*(ushort *)((long)plVar4 + 0xaa));
iVar5 = 1;
if (0xf2 < bVar1) {
iVar5 = bVar1 - 0xf8;
}
*(int *)((long)param_1 + 0x14) = iVar3 + iVar5;
uVar6 = (uint)uVar2 + iVar5;
*(int4 *)(param_1 + 3) = 0x100000;
__src = (void *)*param_4;
}
memcpy((void *)*param_1,__src,(ulong)(param_3 + uVar6));
*param_4 = *param_4 + (ulong)(param_3 + uVar6);
return uVar6;
}
|
|
10,038 |
show_ssl_get_cipher_list(THD*, st_mysql_show_var*, char*, enum_var_type)
|
eloqsql/sql/mysqld.cc
|
static int show_ssl_get_cipher_list(THD *thd, SHOW_VAR *var, char *buff,
enum enum_var_type scope)
{
var->type= SHOW_CHAR;
var->value= buff;
if (thd->vio_ok() && thd->net.vio->ssl_arg)
{
int i;
const char *p;
char *end= buff + SHOW_VAR_FUNC_BUFF_SIZE;
for (i=0; (p= SSL_get_cipher_list((SSL*) thd->net.vio->ssl_arg,i)) &&
buff < end; i++)
{
buff= strnmov(buff, p, end-buff-1);
*buff++= ':';
}
if (i)
buff--;
}
*buff=0;
return 0;
}
|
O0
|
cpp
|
show_ssl_get_cipher_list(THD*, st_mysql_show_var*, char*, enum_var_type):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movl $0x5, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
callq 0x8a16b0
testb $0x1, %al
jne 0x899000
jmp 0x8990c2
movq -0x8(%rbp), %rax
movq 0x2c8(%rax), %rax
cmpq $0x0, 0x1e0(%rax)
je 0x8990c2
movq -0x18(%rbp), %rax
addq $0x800, %rax # imm = 0x800
movq %rax, -0x30(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x2c8(%rax), %rax
movq 0x1e0(%rax), %rdi
movl -0x20(%rbp), %esi
callq 0x777380
movq %rax, %rcx
movq %rcx, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x31(%rbp)
je 0x899068
movq -0x18(%rbp), %rax
cmpq -0x30(%rbp), %rax
setb %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x899071
jmp 0x8990ae
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
subq $0x1, %rdx
callq 0x13956b0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb $0x3a, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x89902e
cmpl $0x0, -0x20(%rbp)
je 0x8990c0
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x8990c2
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
xorl %eax, %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZL24show_ssl_get_cipher_listP3THDP17st_mysql_show_varPc13enum_var_type:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+10h], 5
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rdi, [rbp+var_8]; this
call _ZNK3THD6vio_okEv; THD::vio_ok(void)
test al, 1
jnz short loc_899000
jmp loc_8990C2
loc_899000:
mov rax, [rbp+var_8]
mov rax, [rax+2C8h]
cmp qword ptr [rax+1E0h], 0
jz loc_8990C2
mov rax, [rbp+var_18]
add rax, 800h
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_89902E:
mov rax, [rbp+var_8]
mov rax, [rax+2C8h]
mov rdi, [rax+1E0h]
mov esi, [rbp+var_20]
call _SSL_get_cipher_list
mov rcx, rax
mov [rbp+var_28], rcx
xor eax, eax
cmp rcx, 0
mov [rbp+var_31], al
jz short loc_899068
mov rax, [rbp+var_18]
cmp rax, [rbp+var_30]
setb al
mov [rbp+var_31], al
loc_899068:
mov al, [rbp+var_31]
test al, 1
jnz short loc_899071
jmp short loc_8990AE
loc_899071:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
mov rax, [rbp+var_18]
sub rdx, rax
sub rdx, 1
call strnmov
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
mov byte ptr [rax], 3Ah ; ':'
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp short loc_89902E
loc_8990AE:
cmp [rbp+var_20], 0
jz short loc_8990C0
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
loc_8990C0:
jmp short $+2
loc_8990C2:
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
xor eax, eax
add rsp, 40h
pop rbp
retn
|
long long show_ssl_get_cipher_list(THD *a1, long long a2, _BYTE *a3)
{
_BYTE *v3; // rax
bool v5; // [rsp+Fh] [rbp-31h]
_BYTE *v6; // [rsp+10h] [rbp-30h]
long long cipher_list; // [rsp+18h] [rbp-28h]
unsigned int i; // [rsp+20h] [rbp-20h]
_BYTE *v9; // [rsp+28h] [rbp-18h]
v9 = a3;
*(_DWORD *)(a2 + 16) = 5;
*(_QWORD *)(a2 + 8) = a3;
if ( (THD::vio_ok(a1) & 1) != 0 && *(_QWORD *)(*((_QWORD *)a1 + 89) + 480LL) )
{
v6 = v9 + 2048;
for ( i = 0; ; ++i )
{
cipher_list = SSL_get_cipher_list(*(_QWORD *)(*((_QWORD *)a1 + 89) + 480LL), i);
v5 = 0;
if ( cipher_list )
v5 = v9 < v6;
if ( !v5 )
break;
v3 = (_BYTE *)strnmov(v9, cipher_list, v6 - v9 - 1);
v9 = v3 + 1;
*v3 = 58;
}
if ( i )
--v9;
}
*v9 = 0;
return 0LL;
}
|
__cxx_global_var_init:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x1e5e3bc]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x008fd530
POP RBP
RET
|
void __cxx_global_var_init(void)
{
date_conv_mode_t::date_conv_mode_t((date_conv_mode_t *)&TIME_CONV_NONE,0);
return;
}
|
|
10,039 |
show_ssl_get_cipher_list(THD*, st_mysql_show_var*, char*, enum_var_type)
|
eloqsql/sql/mysqld.cc
|
static int show_ssl_get_cipher_list(THD *thd, SHOW_VAR *var, char *buff,
enum enum_var_type scope)
{
var->type= SHOW_CHAR;
var->value= buff;
if (thd->vio_ok() && thd->net.vio->ssl_arg)
{
int i;
const char *p;
char *end= buff + SHOW_VAR_FUNC_BUFF_SIZE;
for (i=0; (p= SSL_get_cipher_list((SSL*) thd->net.vio->ssl_arg,i)) &&
buff < end; i++)
{
buff= strnmov(buff, p, end-buff-1);
*buff++= ':';
}
if (i)
buff--;
}
*buff=0;
return 0;
}
|
O3
|
cpp
|
show_ssl_get_cipher_list(THD*, st_mysql_show_var*, char*, enum_var_type):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl $0x5, 0x10(%rsi)
movq %rdx, 0x8(%rsi)
movq 0x2c8(%rdi), %rax
testq %rax, %rax
je 0x72afe1
movq %rdi, %r14
movq 0x1e0(%rax), %rdi
testq %rdi, %rdi
je 0x72afe1
xorl %esi, %esi
callq 0x629d10
movq %rax, %r15
testq %rax, %rax
je 0x72afd9
leaq 0x800(%rbx), %r13
movl $0x1, %r12d
movq %r15, %rax
movq %rbx, %rdx
notq %rdx
addq %r13, %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd3b0d4
movq %rax, %rbx
movb $0x3a, (%rax)
incq %rbx
movq 0x2c8(%r14), %rax
movq 0x1e0(%rax), %rdi
movl %r12d, %esi
callq 0x629d10
testq %rax, %rax
je 0x72afd9
incl %r12d
cmpq %r13, %rbx
jb 0x72af99
cmpq $0x1, %r15
adcq $-0x1, %rbx
movb $0x0, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZL24show_ssl_get_cipher_listP3THDP17st_mysql_show_varPc13enum_var_type:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov dword ptr [rsi+10h], 5
mov [rsi+8], rdx
mov rax, [rdi+2C8h]
test rax, rax
jz short loc_72AFE1
mov r14, rdi
mov rdi, [rax+1E0h]
test rdi, rdi
jz short loc_72AFE1
xor esi, esi
call _SSL_get_cipher_list
mov r15, rax
test rax, rax
jz short loc_72AFD9
lea r13, [rbx+800h]
mov r12d, 1
mov rax, r15
loc_72AF99:
mov rdx, rbx
not rdx
add rdx, r13
mov rdi, rbx
mov rsi, rax
call strnmov
mov rbx, rax
mov byte ptr [rax], 3Ah ; ':'
inc rbx
mov rax, [r14+2C8h]
mov rdi, [rax+1E0h]
mov esi, r12d
call _SSL_get_cipher_list
test rax, rax
jz short loc_72AFD9
inc r12d
cmp rbx, r13
jb short loc_72AF99
loc_72AFD9:
cmp r15, 1
adc rbx, 0FFFFFFFFFFFFFFFFh
loc_72AFE1:
mov byte ptr [rbx], 0
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long show_ssl_get_cipher_list(long long a1, long long a2, unsigned long long a3)
{
unsigned long long v3; // rbx
long long v4; // rax
long long v6; // rdi
long long cipher_list; // rax
long long v8; // r15
unsigned long long v9; // r13
unsigned int v10; // r12d
_BYTE *v11; // rax
v3 = a3;
*(_DWORD *)(a2 + 16) = 5;
*(_QWORD *)(a2 + 8) = a3;
v4 = *(_QWORD *)(a1 + 712);
if ( v4 )
{
v6 = *(_QWORD *)(v4 + 480);
if ( v6 )
{
cipher_list = SSL_get_cipher_list(v6, 0LL);
v8 = cipher_list;
if ( cipher_list )
{
v9 = v3 + 2048;
v10 = 1;
do
{
v11 = (_BYTE *)strnmov(v3, cipher_list, v9 + ~v3);
*v11 = 58;
v3 = (unsigned long long)(v11 + 1);
cipher_list = SSL_get_cipher_list(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 480LL), v10);
if ( !cipher_list )
break;
++v10;
}
while ( v3 < v9 );
}
v3 = (v8 == 0) + v3 - 1;
}
}
*(_BYTE *)v3 = 0;
return 0LL;
}
| |||
10,040 |
void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::PlanArray<google::protobuf::FileDescriptor>(int)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
|
void PlanArray(int array_size) {
// We can't call PlanArray after FinalizePlanning has been called.
GOOGLE_CHECK(!has_allocated());
if (std::is_trivially_destructible<U>::value) {
// Trivial types are aligned to 8 bytes.
static_assert(alignof(U) <= 8, "");
total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
} else {
// Since we can't use `if constexpr`, just make the expression compile
// when this path is not taken.
using TypeToUse =
typename std::conditional<std::is_trivially_destructible<U>::value,
char, U>::type;
total_.template Get<TypeToUse>() += array_size;
}
}
|
O0
|
cpp
|
void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::PlanArray<google::protobuf::FileDescriptor>(int):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movl %esi, 0x7c(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x63b70
movb $0x0, 0x3f(%rsp)
testb $0x1, %al
jne 0x66840
jmp 0x66890
leaq 0x186c8d(%rip), %rdx # 0x1ed4d4
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl $0x3, %esi
movl $0x172, %ecx # imm = 0x172
callq 0x237e0
movq 0x10(%rsp), %rdi
movb $0x1, 0x3f(%rsp)
leaq 0x1896b7(%rip), %rsi # 0x1eff28
callq 0x230a0
movq %rax, 0x18(%rsp)
jmp 0x6687d
movq 0x18(%rsp), %rsi
leaq 0x2b(%rsp), %rdi
callq 0x23250
jmp 0x6688e
jmp 0x66890
testb $0x1, 0x3f(%rsp)
jne 0x66899
jmp 0x668a3
leaq 0x40(%rsp), %rdi
callq 0x23820
movq 0x20(%rsp), %rdi
movl 0x7c(%rsp), %eax
movl %eax, 0xc(%rsp)
addq $0x68, %rdi
callq 0x66900
movl 0xc(%rsp), %ecx
addl (%rax), %ecx
movl %ecx, (%rax)
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
testb $0x1, 0x3f(%rsp)
jne 0x668e0
jmp 0x668ea
leaq 0x40(%rsp), %rdi
callq 0x23820
jmp 0x668ec
movq 0x30(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
|
_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayISE_EEvi:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_C], esi
mov rdi, [rsp+88h+var_8]
mov [rsp+88h+var_68], rdi
call _ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13has_allocatedEv; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::has_allocated(void)
mov [rsp+88h+var_49], 0
test al, 1
jnz short loc_66840
jmp short loc_66890
loc_66840:
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+88h+var_48]
mov [rsp+88h+var_78], rdi
mov esi, 3
mov ecx, 172h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+88h+var_78]
mov [rsp+88h+var_49], 1
lea rsi, aCheckFailedHas_0; "CHECK failed: !has_allocated(): "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+88h+var_70], rax
jmp short $+2
loc_6687D:
mov rsi, [rsp+88h+var_70]
lea rdi, [rsp+88h+var_5D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_6688E:
jmp short $+2
loc_66890:
test [rsp+88h+var_49], 1
jnz short loc_66899
jmp short loc_668A3
loc_66899:
lea rdi, [rsp+88h+var_48]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_668A3:
mov rdi, [rsp+88h+var_68]
mov eax, [rsp+88h+var_C]
mov [rsp+88h+var_7C], eax
add rdi, 68h ; 'h'
call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(void)
mov ecx, [rsp+88h+var_7C]
add ecx, [rax]
mov [rax], ecx
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
test [rsp+arg_37], 1
jnz short loc_668E0
jmp short loc_668EA
loc_668E0:
lea rdi, [rsp+arg_38]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_668EA:
jmp short $+2
loc_668EC:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
|
_DWORD * google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<google::protobuf::EnumValueOptions>(
long long a1,
int a2)
{
google::protobuf::internal::LogMessage *v2; // rsi
_DWORD *result; // rax
int v4; // [rsp+Ch] [rbp-7Ch]
_BYTE v5[20]; // [rsp+2Bh] [rbp-5Dh] BYREF
char v6; // [rsp+3Fh] [rbp-49h]
_BYTE v7[60]; // [rsp+40h] [rbp-48h] BYREF
int v8; // [rsp+7Ch] [rbp-Ch]
long long v9; // [rsp+80h] [rbp-8h]
v9 = a1;
v8 = a2;
v6 = 0;
if ( google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::has_allocated(a1) )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v7,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc",
370);
v6 = 1;
v2 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)v7,
(long long)"CHECK failed: !has_allocated(): ");
google::protobuf::internal::LogFinisher::operator=((long long)v5, v2);
}
if ( (v6 & 1) != 0 )
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v7);
v4 = v8;
result = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(a1 + 104);
*result += v4;
return result;
}
|
PlanArray<google::protobuf::EnumValueOptions>:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV dword ptr [RSP + 0x7c],ESI
MOV RDI,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00163b70
MOV byte ptr [RSP + 0x3f],0x0
TEST AL,0x1
JNZ 0x00166840
JMP 0x00166890
LAB_00166840:
LEA RDX,[0x2ed4d4]
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x10],RDI
MOV ESI,0x3
MOV ECX,0x172
CALL 0x001237e0
MOV RDI,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x3f],0x1
LAB_0016686a:
LEA RSI,[0x2eff28]
CALL 0x001230a0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0016687d
LAB_0016687d:
MOV RSI,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0x2b]
CALL 0x00123250
LAB_0016688c:
JMP 0x0016688e
LAB_0016688e:
JMP 0x00166890
LAB_00166890:
TEST byte ptr [RSP + 0x3f],0x1
JNZ 0x00166899
JMP 0x001668a3
LAB_00166899:
LEA RDI,[RSP + 0x40]
CALL 0x00123820
LAB_001668a3:
MOV RDI,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RSP + 0x7c]
MOV dword ptr [RSP + 0xc],EAX
ADD RDI,0x68
CALL 0x00166900
MOV ECX,dword ptr [RSP + 0xc]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
ADD RSP,0x88
RET
|
/* void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::string,
google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables,
google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions,
google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions,
google::protobuf::OneofOptions, google::protobuf::ServiceOptions,
google::protobuf::MethodOptions,
google::protobuf::FileOptions>::PlanArray<google::protobuf::EnumValueOptions>(int) */
void __thiscall
google::protobuf::(anonymous_namespace)::
FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
::PlanArray<google::protobuf::EnumValueOptions>
(FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
*this,int param_1)
{
int iVar1;
ulong uVar2;
LogMessage *pLVar3;
int *piVar4;
LogFinisher local_5d [20];
byte local_49;
LogMessage local_48 [60];
int local_c;
FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
*local_8;
local_c = param_1;
local_8 = this;
uVar2 = has_allocated(this);
local_49 = 0;
if ((uVar2 & 1) != 0) {
internal::LogMessage::LogMessage
(local_48,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc"
,0x172);
local_49 = 1;
/* try { // try from 0016686a to 0016688b has its CatchHandler @ 001668c9 */
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(local_48,"CHECK failed: !has_allocated(): ");
internal::LogFinisher::operator=(local_5d,pLVar3);
}
if ((local_49 & 1) != 0) {
internal::LogMessage::~LogMessage(local_48);
}
iVar1 = local_c;
piVar4 = TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
::Get<google::protobuf::EnumValueOptions>
((TypeMap<google::protobuf::(anonymous_namespace)::IntT,char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
*)(this + 0x68));
*piVar4 = iVar1 + *piVar4;
return;
}
|
|
10,041 |
void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::PlanArray<google::protobuf::FileDescriptor>(int)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
|
void PlanArray(int array_size) {
// We can't call PlanArray after FinalizePlanning has been called.
GOOGLE_CHECK(!has_allocated());
if (std::is_trivially_destructible<U>::value) {
// Trivial types are aligned to 8 bytes.
static_assert(alignof(U) <= 8, "");
total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
} else {
// Since we can't use `if constexpr`, just make the expression compile
// when this path is not taken.
using TypeToUse =
typename std::conditional<std::is_trivially_destructible<U>::value,
char, U>::type;
total_.template Get<TypeToUse>() += array_size;
}
}
|
O3
|
cpp
|
void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::PlanArray<google::protobuf::FileDescriptor>(int):
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
movq %rdi, %r14
cmpq $0x0, (%rdi)
je 0x291b6
leaq 0x8cc6b(%rip), %rdx # 0xb5de4
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x172, %ecx # imm = 0x172
callq 0x169ca
leaq 0x8f4cf(%rip), %rsi # 0xb8666
movq %r15, %rdi
callq 0x164c8
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x8(%rsp), %rdi
callq 0x169e8
addl %ebx, 0x6c(%r14)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x291c6
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x169e8
movq %rbx, %rdi
callq 0xf570
nop
|
_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIS8_EEvi:
push r15
push r14
push rbx
sub rsp, 40h
mov ebx, esi
mov r14, rdi
cmp qword ptr [rdi], 0
jz short loc_291B6
lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/aimrt_"...
lea r15, [rsp+58h+var_50]
mov rdi, r15
mov esi, 3
mov ecx, 172h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedHas_0; "CHECK failed: !has_allocated(): "
mov rdi, r15
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+58h+var_51]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+58h+var_50]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_291B6:
add [r14+6Ch], ebx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_291C6:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
|
void google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<std::string>(
long long a1,
int a2)
{
google::protobuf::internal::LogMessage *v2; // rax
char v3; // [rsp+7h] [rbp-51h] BYREF
_BYTE v4[80]; // [rsp+8h] [rbp-50h] BYREF
if ( *(_QWORD *)a1 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v4,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc",
370);
v2 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)v4,
(long long)"CHECK failed: !has_allocated(): ");
google::protobuf::internal::LogFinisher::operator=((long long)&v3, v2);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v4);
}
*(_DWORD *)(a1 + 108) += a2;
}
|
PlanArray<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV EBX,ESI
MOV R14,RDI
CMP qword ptr [RDI],0x0
JZ 0x001291b6
LEA RDX,[0x1b5de4]
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV ESI,0x3
MOV ECX,0x172
CALL 0x001169ca
LAB_00129190:
LEA RSI,[0x1b8666]
MOV RDI,R15
CALL 0x001164c8
LAB_0012919f:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x001165a2
LAB_001291ac:
LEA RDI,[RSP + 0x8]
CALL 0x001169e8
LAB_001291b6:
ADD dword ptr [R14 + 0x6c],EBX
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* void google::protobuf::(anonymous namespace)::FlatAllocatorImpl<char, std::__cxx11::string,
google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables,
google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions,
google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions,
google::protobuf::OneofOptions, google::protobuf::ServiceOptions,
google::protobuf::MethodOptions, google::protobuf::FileOptions>::PlanArray<std::__cxx11::string
>(int) */
void __thiscall
google::protobuf::(anonymous_namespace)::
FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
::PlanArray<std::__cxx11::string>
(FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
*this,int param_1)
{
LogMessage *pLVar1;
LogFinisher local_51;
LogMessage local_50 [56];
if (*(long *)this != 0) {
internal::LogMessage::LogMessage
(local_50,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc"
,0x172);
/* try { // try from 00129190 to 0012919e has its CatchHandler @ 001291c6 */
pLVar1 = (LogMessage *)
internal::LogMessage::operator<<(local_50,"CHECK failed: !has_allocated(): ");
/* try { // try from 0012919f to 001291ab has its CatchHandler @ 001291c4 */
internal::LogFinisher::operator=(&local_51,pLVar1);
internal::LogMessage::~LogMessage(local_50);
}
*(int *)(this + 0x6c) = *(int *)(this + 0x6c) + param_1;
return;
}
|
|
10,042 |
qdevtools::PropertyConnection::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)
|
HuaiminNotSleepYet[P]QDevTools/build_O0/QDevTools_autogen/EWIEGA46WW/moc_qdevtools.cpp
|
void qdevtools::PropertyConnection::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<PropertyConnection *>(_o);
(void)_t;
switch (_id) {
case 0: _t->updateSource(); break;
case 1: _t->updateEditor(); break;
default: ;
}
}
(void)_a;
}
|
O0
|
cpp
|
qdevtools::PropertyConnection::qt_static_metacall(QObject*, QMetaObject::Call, int, void**):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x105b4
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x24(%rbp)
testl %eax, %eax
je 0x1059a
jmp 0x10590
movl -0x24(%rbp), %eax
subl $0x1, %eax
je 0x105a5
jmp 0x105b0
movq -0x20(%rbp), %rdi
callq 0x10f40
jmp 0x105b2
movq -0x20(%rbp), %rdi
callq 0x10fc0
jmp 0x105b2
jmp 0x105b2
jmp 0x105b4
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ZN9qdevtools18PropertyConnection18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_18], rcx
cmp [rbp+var_C], 0
jnz short loc_105B4
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov eax, [rbp+var_10]
mov [rbp+var_24], eax
test eax, eax
jz short loc_1059A
jmp short $+2
loc_10590:
mov eax, [rbp+var_24]
sub eax, 1
jz short loc_105A5
jmp short loc_105B0
loc_1059A:
mov rdi, [rbp+var_20]; this
call _ZN9qdevtools18PropertyConnection12updateSourceEv; qdevtools::PropertyConnection::updateSource(void)
jmp short loc_105B2
loc_105A5:
mov rdi, [rbp+var_20]; this
call _ZN9qdevtools18PropertyConnection12updateEditorEv; qdevtools::PropertyConnection::updateEditor(void)
jmp short loc_105B2
loc_105B0:
jmp short $+2
loc_105B2:
jmp short $+2
loc_105B4:
add rsp, 30h
pop rbp
retn
|
long long qdevtools::PropertyConnection::qt_static_metacall(qdevtools::PropertyConnection *a1, int a2, int a3)
{
long long result; // rax
if ( !a2 )
{
if ( a3 )
{
result = (unsigned int)(a3 - 1);
if ( a3 == 1 )
return qdevtools::PropertyConnection::updateEditor(a1);
}
else
{
return qdevtools::PropertyConnection::updateSource(a1);
}
}
return result;
}
|
qt_static_metacall:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV qword ptr [RBP + -0x18],RCX
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x001105b4
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x24],EAX
TEST EAX,EAX
JZ 0x0011059a
JMP 0x00110590
LAB_00110590:
MOV EAX,dword ptr [RBP + -0x24]
SUB EAX,0x1
JZ 0x001105a5
JMP 0x001105b0
LAB_0011059a:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00110f40
JMP 0x001105b2
LAB_001105a5:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00110fc0
JMP 0x001105b2
LAB_001105b0:
JMP 0x001105b2
LAB_001105b2:
JMP 0x001105b4
LAB_001105b4:
ADD RSP,0x30
POP RBP
RET
|
/* qdevtools::PropertyConnection::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) */
void qdevtools::PropertyConnection::qt_static_metacall
(PropertyConnection *param_1,int param_2,int param_3)
{
if (param_2 == 0) {
if (param_3 == 0) {
updateSource(param_1);
}
else if (param_3 == 1) {
updateEditor(param_1);
}
}
return;
}
|
|
10,043 |
multi_alloc_root
|
eloqsql/mysys/my_alloc.c
|
void *multi_alloc_root(MEM_ROOT *root, ...)
{
va_list args;
char **ptr, *start, *res;
size_t tot_length, length;
DBUG_ENTER("multi_alloc_root");
/*
We don't need to do DBUG_PRINT here as it will be done when alloc_root
is called
*/
va_start(args, root);
tot_length= 0;
while ((ptr= va_arg(args, char **)))
{
length= va_arg(args, uint);
tot_length+= ALIGN_SIZE(length);
}
va_end(args);
if (!(start= (char*) alloc_root(root, tot_length)))
DBUG_RETURN(0); /* purecov: inspected */
va_start(args, root);
res= start;
while ((ptr= va_arg(args, char **)))
{
*ptr= res;
length= va_arg(args, uint);
res+= ALIGN_SIZE(length);
}
va_end(args);
DBUG_RETURN((void*) start);
}
|
O3
|
c
|
multi_alloc_root:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
leaq -0xe0(%rbp), %r14
movq %rsi, 0x8(%r14)
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
testb %al, %al
je 0x9c95e
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movabsq $0x1fffffff8, %rbx # imm = 0x1FFFFFFF8
movq %r14, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movabsq $0x3000000008, %r15 # imm = 0x3000000008
movq %r15, -0x30(%rbp)
movl $0x8, %eax
xorl %esi, %esi
cmpl $0x28, %eax
ja 0x9c99e
movq %rcx, %rdx
movl %eax, %ecx
addq %r14, %rcx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0x9c9a6
leaq 0x8(%rcx), %rdx
movq %rdx, -0x28(%rbp)
cmpq $0x0, (%rcx)
je 0x9c9d7
cmpl $0x28, %eax
ja 0x9c9c1
movq %rdx, %rcx
movl %eax, %edx
addq %r14, %rdx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0x9c9c9
leaq 0x8(%rdx), %rcx
movq %rcx, -0x28(%rbp)
movl (%rdx), %edx
addq $0x7, %rdx
andq %rbx, %rdx
addq %rdx, %rsi
jmp 0x9c989
callq 0x9c7eb
testq %rax, %rax
je 0x9ca55
movq %r14, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq %r15, -0x30(%rbp)
movl $0x8, %edx
movq %rax, %rcx
cmpl $0x28, %edx
ja 0x9ca0c
movl %edx, %esi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0x9ca18
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdx
movq %rdx, -0x28(%rbp)
movq (%rsi), %rdx
testq %rdx, %rdx
je 0x9ca55
movq %rcx, (%rdx)
movl -0x30(%rbp), %edx
cmpq $0x28, %rdx
ja 0x9ca3b
movq %rdx, %rsi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0x9ca47
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdi
movq %rdi, -0x28(%rbp)
movl (%rsi), %esi
addq $0x7, %rsi
andq %rbx, %rsi
addq %rsi, %rcx
jmp 0x9c9f9
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
multi_alloc_root:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
lea r14, [rbp+var_E0]
mov [r14+8], rsi
mov [r14+10h], rdx
mov [r14+18h], rcx
mov [r14+20h], r8
mov [r14+28h], r9
test al, al
jz short loc_9C95E
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_9C95E:
mov rbx, 1FFFFFFF8h
mov [rbp+var_20], r14
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov r15, 3000000008h
mov [rbp+var_30], r15
mov eax, 8
xor esi, esi
loc_9C989:
cmp eax, 28h ; '('
ja short loc_9C99E
mov rdx, rcx
mov ecx, eax
add rcx, r14
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_9C9A6
loc_9C99E:
lea rdx, [rcx+8]
mov [rbp+var_28], rdx
loc_9C9A6:
cmp qword ptr [rcx], 0
jz short loc_9C9D7
cmp eax, 28h ; '('
ja short loc_9C9C1
mov rcx, rdx
mov edx, eax
add rdx, r14
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_9C9C9
loc_9C9C1:
lea rcx, [rdx+8]
mov [rbp+var_28], rcx
loc_9C9C9:
mov edx, [rdx]
add rdx, 7
and rdx, rbx
add rsi, rdx
jmp short loc_9C989
loc_9C9D7:
call alloc_root
test rax, rax
jz short loc_9CA55
mov [rbp+var_20], r14
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov [rbp+var_30], r15
mov edx, 8
mov rcx, rax
loc_9C9F9:
cmp edx, 28h ; '('
ja short loc_9CA0C
mov esi, edx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_9CA18
loc_9CA0C:
mov rsi, [rbp+var_28]
lea rdx, [rsi+8]
mov [rbp+var_28], rdx
loc_9CA18:
mov rdx, [rsi]
test rdx, rdx
jz short loc_9CA55
mov [rdx], rcx
mov edx, dword ptr [rbp+var_30]
cmp rdx, 28h ; '('
ja short loc_9CA3B
mov rsi, rdx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_9CA47
loc_9CA3B:
mov rsi, [rbp+var_28]
lea rdi, [rsi+8]
mov [rbp+var_28], rdi
loc_9CA47:
mov esi, [rsi]
add rsi, 7
and rsi, rbx
add rcx, rsi
jmp short loc_9C9F9
loc_9CA55:
add rsp, 0C8h
pop rbx
pop r14
pop r15
pop rbp
retn
|
char * multi_alloc_root(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char *v15; // rcx
unsigned int v16; // eax
long long i; // rsi
char *v18; // rdx
char *result; // rax
unsigned int v20; // edx
char *j; // rcx
char *v22; // rsi
char *v23; // rsi
_BYTE v24[8]; // [rsp+0h] [rbp-E0h] BYREF
long long v25; // [rsp+8h] [rbp-D8h]
long long v26; // [rsp+10h] [rbp-D0h]
long long v27; // [rsp+18h] [rbp-C8h]
long long v28; // [rsp+20h] [rbp-C0h]
long long v29; // [rsp+28h] [rbp-B8h]
__m128 v30; // [rsp+30h] [rbp-B0h]
__m128 v31; // [rsp+40h] [rbp-A0h]
__m128 v32; // [rsp+50h] [rbp-90h]
__m128 v33; // [rsp+60h] [rbp-80h]
__m128 v34; // [rsp+70h] [rbp-70h]
__m128 v35; // [rsp+80h] [rbp-60h]
__m128 v36; // [rsp+90h] [rbp-50h]
__m128 v37; // [rsp+A0h] [rbp-40h]
long long v38; // [rsp+B0h] [rbp-30h]
char *v39; // [rsp+B8h] [rbp-28h]
_BYTE *v40; // [rsp+C0h] [rbp-20h]
v30 = a7;
v31 = a8;
v32 = a9;
v33 = a10;
v34 = a11;
v35 = a12;
v36 = a13;
v37 = a14;
v25 = a2;
v26 = a3;
v27 = a4;
v28 = a5;
v29 = a6;
v40 = v24;
v15 = &a15;
v39 = &a15;
v38 = 0x3000000008LL;
v16 = 8;
for ( i = 0LL; ; i += (*(unsigned int *)v18 + 7LL) & 0x1FFFFFFF8LL )
{
if ( v16 > 0x28 )
{
v18 = v15 + 8;
v39 = v15 + 8;
}
else
{
v18 = v15;
v15 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
if ( !*(_QWORD *)v15 )
break;
if ( v16 > 0x28 )
{
v15 = v18 + 8;
v39 = v18 + 8;
}
else
{
v15 = v18;
v18 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
}
result = alloc_root(a1, i);
if ( result )
{
v40 = v24;
v39 = &a15;
v38 = 0x3000000008LL;
v20 = 8;
for ( j = result; ; j += (*(unsigned int *)v23 + 7LL) & 0x1FFFFFFF8LL )
{
if ( v20 > 0x28 )
{
v22 = v39;
v39 += 8;
}
else
{
v22 = &v40[v20];
LODWORD(v38) = v20 + 8;
}
if ( !*(_QWORD *)v22 )
break;
**(_QWORD **)v22 = j;
v20 = v38;
if ( (unsigned int)v38 > 0x28uLL )
{
v23 = v39;
v39 += 8;
}
else
{
v23 = &v40[(unsigned int)v38];
v20 = v38 + 8;
LODWORD(v38) = v38 + 8;
}
}
}
return result;
}
|
multi_alloc_root:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
LEA R14,[RBP + -0xe0]
MOV qword ptr [R14 + 0x8],RSI
MOV qword ptr [R14 + 0x10],RDX
MOV qword ptr [R14 + 0x18],RCX
MOV qword ptr [R14 + 0x20],R8
MOV qword ptr [R14 + 0x28],R9
TEST AL,AL
JZ 0x0019c95e
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_0019c95e:
MOV RBX,0x1fffffff8
MOV qword ptr [RBP + -0x20],R14
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV R15,0x3000000008
MOV qword ptr [RBP + -0x30],R15
MOV EAX,0x8
XOR ESI,ESI
LAB_0019c989:
CMP EAX,0x28
JA 0x0019c99e
MOV RDX,RCX
MOV ECX,EAX
ADD RCX,R14
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c9a6
LAB_0019c99e:
LEA RDX,[RCX + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_0019c9a6:
CMP qword ptr [RCX],0x0
JZ 0x0019c9d7
CMP EAX,0x28
JA 0x0019c9c1
MOV RCX,RDX
MOV EDX,EAX
ADD RDX,R14
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c9c9
LAB_0019c9c1:
LEA RCX,[RDX + 0x8]
MOV qword ptr [RBP + -0x28],RCX
LAB_0019c9c9:
MOV EDX,dword ptr [RDX]
ADD RDX,0x7
AND RDX,RBX
ADD RSI,RDX
JMP 0x0019c989
LAB_0019c9d7:
CALL 0x0019c7eb
TEST RAX,RAX
JZ 0x0019ca55
MOV qword ptr [RBP + -0x20],R14
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R15
MOV EDX,0x8
MOV RCX,RAX
LAB_0019c9f9:
CMP EDX,0x28
JA 0x0019ca0c
MOV ESI,EDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x0019ca18
LAB_0019ca0c:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDX,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_0019ca18:
MOV RDX,qword ptr [RSI]
TEST RDX,RDX
JZ 0x0019ca55
MOV qword ptr [RDX],RCX
MOV EDX,dword ptr [RBP + -0x30]
CMP RDX,0x28
JA 0x0019ca3b
MOV RSI,RDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x0019ca47
LAB_0019ca3b:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDI,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDI
LAB_0019ca47:
MOV ESI,dword ptr [RSI]
ADD RSI,0x7
AND RSI,RBX
ADD RCX,RSI
JMP 0x0019c9f9
LAB_0019ca55:
ADD RSP,0xc8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void multi_alloc_root(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;
uint uVar1;
uint *puVar2;
uint *puVar3;
ulong uVar4;
long lVar5;
uint *puVar6;
uint local_e8 [2];
int8 local_e0;
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
uint local_38;
int4 uStack_34;
uint *local_30;
uint *local_28;
local_e0 = param_10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
puVar6 = (uint *)&stack0x00000008;
local_30 = puVar6;
local_38 = 8;
uStack_34 = 0x30;
uVar1 = 8;
lVar5 = 0;
while( true ) {
if (uVar1 < 0x29) {
uVar4 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
puVar2 = (uint *)((long)local_e8 + uVar4);
puVar3 = puVar6;
}
else {
puVar3 = puVar6 + 2;
local_30 = puVar3;
puVar2 = puVar6;
}
if (*(long *)puVar2 == 0) break;
if (uVar1 < 0x29) {
uVar4 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
puVar6 = puVar3;
puVar3 = (uint *)((long)local_e8 + uVar4);
}
else {
puVar6 = puVar3 + 2;
local_30 = puVar6;
}
lVar5 = lVar5 + ((ulong)*puVar3 + 7 & 0x1fffffff8);
}
lVar5 = alloc_root(param_9,lVar5);
if (lVar5 != 0) {
local_30 = (uint *)&stack0x00000008;
uVar1 = 8;
uVar4 = 8;
while( true ) {
if ((uint)uVar4 < 0x29) {
uVar1 = (uint)uVar4 + 8;
puVar6 = (uint *)((long)local_e8 + uVar4);
}
else {
puVar6 = local_30;
local_30 = local_30 + 2;
}
if (*(long **)puVar6 == (long *)0x0) break;
**(long **)puVar6 = lVar5;
uVar4 = (ulong)uVar1;
if (uVar4 < 0x29) {
puVar6 = (uint *)((long)local_e8 + uVar4);
uVar1 = uVar1 + 8;
uVar4 = (ulong)uVar1;
}
else {
puVar6 = local_30;
local_30 = local_30 + 2;
}
lVar5 = lVar5 + ((ulong)*puVar6 + 7 & 0x1fffffff8);
}
}
return;
}
|
|
10,044 |
translog_truncate_log
|
eloqsql/storage/maria/ma_loghandler.c
|
static my_bool translog_truncate_log(TRANSLOG_ADDRESS addr)
{
uchar *page;
TRANSLOG_ADDRESS current_page;
uint32 next_page_offset, page_rest;
uint32 i;
File fd;
int rc;
TRANSLOG_VALIDATOR_DATA data;
char path[FN_REFLEN];
uchar page_buff[TRANSLOG_PAGE_SIZE];
DBUG_ENTER("translog_truncate_log");
/* TODO: write warning to the client */
DBUG_PRINT("warning", ("removing all records from " LSN_FMT " "
"till " LSN_FMT,
LSN_IN_PARTS(addr),
LSN_IN_PARTS(log_descriptor.horizon)));
DBUG_ASSERT(cmp_translog_addr(addr, log_descriptor.horizon) < 0);
/* remove files between the address and horizon */
for (i= LSN_FILE_NO(addr) + 1; i <= LSN_FILE_NO(log_descriptor.horizon); i++)
if (mysql_file_delete(key_file_translog,
translog_filename_by_fileno(i, path), MYF(MY_WME)))
{
translog_unlock();
DBUG_RETURN(1);
}
/* truncate the last file up to the last page */
next_page_offset= LSN_OFFSET(addr);
next_page_offset= (next_page_offset -
((next_page_offset - 1) % TRANSLOG_PAGE_SIZE + 1) +
TRANSLOG_PAGE_SIZE);
page_rest= next_page_offset - LSN_OFFSET(addr);
memset(page_buff, TRANSLOG_FILLER, page_rest);
rc= ((fd= open_logfile_by_number_no_cache(LSN_FILE_NO(addr))) < 0 ||
((mysql_file_chsize(fd, next_page_offset, TRANSLOG_FILLER, MYF(MY_WME)) ||
(page_rest && my_pwrite(fd, page_buff, page_rest, LSN_OFFSET(addr),
log_write_flags)) ||
mysql_file_sync(fd, MYF(MY_WME)))));
translog_syncs++;
rc|= (fd > 0 && mysql_file_close(fd, MYF(MY_WME)));
if (sync_log_dir >= TRANSLOG_SYNC_DIR_ALWAYS)
{
rc|= sync_dir(log_descriptor.directory_fd, MYF(MY_WME | MY_IGNORE_BADFD));
translog_syncs++;
}
if (rc)
DBUG_RETURN(1);
/* fix the horizon */
log_descriptor.horizon= addr;
/* fix the buffer data */
current_page= MAKE_LSN(LSN_FILE_NO(addr), (next_page_offset -
TRANSLOG_PAGE_SIZE));
data.addr= ¤t_page;
if ((page= translog_get_page(&data, log_descriptor.buffers->buffer, NULL)) ==
NULL)
DBUG_RETURN(1);
if (page != log_descriptor.buffers->buffer)
memcpy(log_descriptor.buffers->buffer, page, TRANSLOG_PAGE_SIZE);
log_descriptor.bc.buffer->offset= current_page;
log_descriptor.bc.buffer->size= LSN_OFFSET(addr) - LSN_OFFSET(current_page);
log_descriptor.bc.ptr=
log_descriptor.buffers->buffer + log_descriptor.bc.buffer->size;
log_descriptor.bc.current_page_fill= log_descriptor.bc.buffer->size;
DBUG_RETURN(0);
}
|
O0
|
c
|
translog_truncate_log:
pushq %rbp
movq %rsp, %rbp
subq $0x2260, %rsp # imm = 0x2260
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x2220(%rbp)
jmp 0x531b1
jmp 0x531b3
jmp 0x531b5
movq -0x2220(%rbp), %rax
sarq $0x20, %rax
addl $0x1, %eax
movl %eax, -0x223c(%rbp)
movl -0x223c(%rbp), %eax
movq 0xc26e32(%rip), %rcx # 0xc7a008
sarq $0x20, %rcx
cmpl %ecx, %eax
ja 0x53248
leaq 0x424b2f(%rip), %rax # 0x477d14
movl (%rax), %eax
movl %eax, -0x225c(%rbp)
movl -0x223c(%rbp), %edi
leaq -0x210(%rbp), %rsi
callq 0x4f7f0
movl -0x225c(%rbp), %edi
movq %rax, %rcx
leaq 0xfeabf(%rip), %rsi # 0x151cce
movl $0xd6f, %edx # imm = 0xD6F
movl $0x10, %r8d
callq 0x57940
cmpl $0x0, %eax
je 0x53235
callq 0x501b0
movb $0x1, -0x2211(%rbp)
jmp 0x535ac
jmp 0x53237
movl -0x223c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x223c(%rbp)
jmp 0x531c9
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x2220(%rbp), %rax
movl %eax, -0x2234(%rbp)
movl -0x2234(%rbp), %eax
movl -0x2234(%rbp), %ecx
subl $0x1, %ecx
andl $0x1fff, %ecx # imm = 0x1FFF
addl $0x1, %ecx
subl %ecx, %eax
addl $0x2000, %eax # imm = 0x2000
movl %eax, -0x2234(%rbp)
movl -0x2234(%rbp), %eax
movabsq $0xffffffff, %rcx # imm = 0xFFFFFFFF
andq -0x2220(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x2238(%rbp)
leaq -0x2210(%rbp), %rdi
movl -0x2238(%rbp), %eax
movl %eax, %edx
movl $0xff, %esi
callq 0x2a2c0
movq -0x2220(%rbp), %rax
sarq $0x20, %rax
movl %eax, %edi
callq 0x4fdc0
movl %eax, %ecx
movl %ecx, -0x2240(%rbp)
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x225d(%rbp)
jl 0x533a1
movl -0x2240(%rbp), %edx
movl -0x2234(%rbp), %eax
movl %eax, %ecx
leaq 0xfe9d1(%rip), %rdi # 0x151cce
movl $0xd7d, %esi # imm = 0xD7D
movl $0xff, %r8d
movl $0x10, %r9d
callq 0x597e0
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x225e(%rbp)
jne 0x53395
cmpl $0x0, -0x2238(%rbp)
je 0x5336d
movl -0x2240(%rbp), %edi
leaq -0x2210(%rbp), %rsi
movl -0x2238(%rbp), %eax
movl %eax, %edx
movabsq $0xffffffff, %rcx # imm = 0xFFFFFFFF
andq -0x2220(%rbp), %rcx
movl $0x34, %r8d
callq 0xf4860
movq %rax, %rcx
movb $0x1, %al
cmpq $0x0, %rcx
movb %al, -0x225e(%rbp)
jne 0x53395
movl -0x2240(%rbp), %edx
leaq 0xfe954(%rip), %rdi # 0x151cce
movl $0xd80, %esi # imm = 0xD80
movl $0x10, %ecx
callq 0x59160
cmpl $0x0, %eax
setne %al
movb %al, -0x225e(%rbp)
movb -0x225e(%rbp), %al
movb %al, -0x225d(%rbp)
movb -0x225d(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x2244(%rbp)
movq 0x424dff(%rip), %rax # 0x4781b8
addq $0x1, %rax
movq %rax, 0x424df4(%rip) # 0x4781b8
xorl %eax, %eax
cmpl $0x0, -0x2240(%rbp)
movb %al, -0x225f(%rbp)
jle 0x533fd
movl -0x2240(%rbp), %edx
leaq 0xfe8ec(%rip), %rdi # 0x151cce
movl $0xd82, %esi # imm = 0xD82
movl $0x10, %ecx
callq 0x4fe90
cmpl $0x0, %eax
setne %al
movb %al, -0x225f(%rbp)
movb -0x225f(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
orl -0x2244(%rbp), %eax
movl %eax, -0x2244(%rbp)
cmpq $0x2, 0x269fbc(%rip) # 0x2bd3d8
jb 0x53458
movl 0x42628c(%rip), %edx # 0x4796b0
leaq 0xfe8a3(%rip), %rdi # 0x151cce
movl $0xd85, %esi # imm = 0xD85
movl $0x30, %ecx
callq 0x59160
orl -0x2244(%rbp), %eax
movl %eax, -0x2244(%rbp)
movq 0x424d6b(%rip), %rax # 0x4781b8
addq $0x1, %rax
movq %rax, 0x424d60(%rip) # 0x4781b8
cmpl $0x0, -0x2244(%rbp)
je 0x5346f
jmp 0x53463
movb $0x1, -0x2211(%rbp)
jmp 0x535ac
movq -0x2220(%rbp), %rax
movq %rax, 0xc26b8b(%rip) # 0xc7a008
movq -0x2220(%rbp), %rax
sarq $0x20, %rax
movl %eax, %eax
shlq $0x20, %rax
movl -0x2234(%rbp), %ecx
subl $0x2000, %ecx # imm = 0x2000
movl %ecx, %ecx
orq %rcx, %rax
movq %rax, -0x2230(%rbp)
leaq -0x2230(%rbp), %rax
movq %rax, -0x2258(%rbp)
leaq -0x2258(%rbp), %rdi
leaq 0x425efe(%rip), %rsi # 0x4793c0
addq $0x2f8, %rsi # imm = 0x2F8
xorl %eax, %eax
movl %eax, %edx
callq 0x52160
movq %rax, -0x2228(%rbp)
cmpq $0x0, %rax
jne 0x534ed
jmp 0x534e1
movb $0x1, -0x2211(%rbp)
jmp 0x535ac
leaq 0x425ecc(%rip), %rax # 0x4793c0
addq $0x2f8, %rax # imm = 0x2F8
cmpq %rax, -0x2228(%rbp)
je 0x53522
movq -0x2228(%rbp), %rsi
leaq 0x425eaf(%rip), %rdi # 0x4793c0
addq $0x2f8, %rdi # imm = 0x2F8
movl $0x2000, %edx # imm = 0x2000
callq 0x2a090
movq -0x2230(%rbp), %rcx
movq 0xc26b08(%rip), %rax # 0xc7a038
movq %rcx, 0x100010(%rax)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x2220(%rbp), %rax
movabsq $0xffffffff, %rcx # imm = 0xFFFFFFFF
andq -0x2230(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq 0xc26ad3(%rip), %rax # 0xc7a038
movl %ecx, 0x100030(%rax)
movq 0xc26ac6(%rip), %rax # 0xc7a038
movl 0x100030(%rax), %eax
movl %eax, %ecx
leaq 0x425e3f(%rip), %rax # 0x4793c0
addq $0x2f8, %rax # imm = 0x2F8
addq %rcx, %rax
movq %rax, 0xc26a9f(%rip) # 0xc7a030
movq 0xc26aa0(%rip), %rax # 0xc7a038
movl 0x100030(%rax), %eax
movw %ax, 0xc26a9b(%rip) # 0xc7a040
movb $0x0, -0x2211(%rbp)
movb -0x2211(%rbp), %al
movb %al, -0x2260(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x535d9
movb -0x2260(%rbp), %al
addq $0x2260, %rsp # imm = 0x2260
popq %rbp
retq
callq 0x2a270
nop
|
translog_truncate_log:
push rbp
mov rbp, rsp
sub rsp, 2260h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_2220], rdi
jmp short $+2
loc_531B1:
jmp short $+2
loc_531B3:
jmp short $+2
loc_531B5:
mov rax, [rbp+var_2220]
sar rax, 20h
add eax, 1
mov [rbp+var_223C], eax
loc_531C9:
mov eax, [rbp+var_223C]
mov rcx, cs:qword_C7A008
sar rcx, 20h
cmp eax, ecx
ja short loc_53248
lea rax, key_file_translog
mov eax, [rax]
mov [rbp+var_225C], eax
mov edi, [rbp+var_223C]
lea rsi, [rbp+var_210]
call translog_filename_by_fileno
mov edi, [rbp+var_225C]
mov rcx, rax
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0D6Fh
mov r8d, 10h
call inline_mysql_file_delete_0
cmp eax, 0
jz short loc_53235
call translog_unlock
mov [rbp+var_2211], 1
jmp loc_535AC
loc_53235:
jmp short $+2
loc_53237:
mov eax, [rbp+var_223C]
add eax, 1
mov [rbp+var_223C], eax
jmp short loc_531C9
loc_53248:
mov rax, 0FFFFFFFFh
and rax, [rbp+var_2220]
mov [rbp+var_2234], eax
mov eax, [rbp+var_2234]
mov ecx, [rbp+var_2234]
sub ecx, 1
and ecx, 1FFFh
add ecx, 1
sub eax, ecx
add eax, 2000h
mov [rbp+var_2234], eax
mov eax, [rbp+var_2234]
mov rcx, 0FFFFFFFFh
and rcx, [rbp+var_2220]
sub rax, rcx
mov [rbp+var_2238], eax
lea rdi, [rbp+var_2210]
mov eax, [rbp+var_2238]
mov edx, eax
mov esi, 0FFh
call _memset
mov rax, [rbp+var_2220]
sar rax, 20h
mov edi, eax
call open_logfile_by_number_no_cache
mov ecx, eax
mov [rbp+var_2240], ecx
mov al, 1
cmp ecx, 0
mov [rbp+var_225D], al
jl loc_533A1
mov edx, [rbp+var_2240]
mov eax, [rbp+var_2234]
mov ecx, eax
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0D7Dh
mov r8d, 0FFh
mov r9d, 10h
call inline_mysql_file_chsize_1
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_225E], al
jnz short loc_53395
cmp [rbp+var_2238], 0
jz short loc_5336D
mov edi, [rbp+var_2240]
lea rsi, [rbp+var_2210]
mov eax, [rbp+var_2238]
mov edx, eax
mov rcx, 0FFFFFFFFh
and rcx, [rbp+var_2220]
mov r8d, 34h ; '4'
call my_pwrite
mov rcx, rax
mov al, 1
cmp rcx, 0
mov [rbp+var_225E], al
jnz short loc_53395
loc_5336D:
mov edx, [rbp+var_2240]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0D80h
mov ecx, 10h
call inline_mysql_file_sync_3
cmp eax, 0
setnz al
mov [rbp+var_225E], al
loc_53395:
mov al, [rbp+var_225E]
mov [rbp+var_225D], al
loc_533A1:
mov al, [rbp+var_225D]
and al, 1
movzx eax, al
mov [rbp+var_2244], eax
mov rax, cs:translog_syncs
add rax, 1
mov cs:translog_syncs, rax
xor eax, eax
cmp [rbp+var_2240], 0
mov [rbp+var_225F], al
jle short loc_533FD
mov edx, [rbp+var_2240]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0D82h
mov ecx, 10h
call inline_mysql_file_close_2
cmp eax, 0
setnz al
mov [rbp+var_225F], al
loc_533FD:
mov al, [rbp+var_225F]
and al, 1
movzx eax, al
or eax, [rbp+var_2244]
mov [rbp+var_2244], eax
cmp cs:sync_log_dir, 2
jb short loc_53458
mov edx, cs:dword_4796B0
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0D85h
mov ecx, 30h ; '0'
call inline_mysql_file_sync_3
or eax, [rbp+var_2244]
mov [rbp+var_2244], eax
mov rax, cs:translog_syncs
add rax, 1
mov cs:translog_syncs, rax
loc_53458:
cmp [rbp+var_2244], 0
jz short loc_5346F
jmp short $+2
loc_53463:
mov [rbp+var_2211], 1
jmp loc_535AC
loc_5346F:
mov rax, [rbp+var_2220]
mov cs:qword_C7A008, rax
mov rax, [rbp+var_2220]
sar rax, 20h
mov eax, eax
shl rax, 20h
mov ecx, [rbp+var_2234]
sub ecx, 2000h
mov ecx, ecx
or rax, rcx
mov [rbp+var_2230], rax
lea rax, [rbp+var_2230]
mov [rbp+var_2258], rax
lea rdi, [rbp+var_2258]
lea rsi, log_descriptor
add rsi, 2F8h
xor eax, eax
mov edx, eax
call translog_get_page
mov [rbp+var_2228], rax
cmp rax, 0
jnz short loc_534ED
jmp short $+2
loc_534E1:
mov [rbp+var_2211], 1
jmp loc_535AC
loc_534ED:
lea rax, log_descriptor
add rax, 2F8h
cmp [rbp+var_2228], rax
jz short loc_53522
mov rsi, [rbp+var_2228]
lea rdi, log_descriptor
add rdi, 2F8h
mov edx, 2000h
call _memcpy
loc_53522:
mov rcx, [rbp+var_2230]
mov rax, cs:qword_C7A038
mov qword ptr ds:loc_100010[rax], rcx
mov rax, 0FFFFFFFFh
and rax, [rbp+var_2220]
mov rcx, 0FFFFFFFFh
and rcx, [rbp+var_2230]
sub rax, rcx
mov ecx, eax
mov rax, cs:qword_C7A038
mov [rax+100030h], ecx
mov rax, cs:qword_C7A038
mov eax, [rax+100030h]
mov ecx, eax
lea rax, log_descriptor
add rax, 2F8h
add rax, rcx
mov cs:qword_C7A030, rax
mov rax, cs:qword_C7A038
mov eax, [rax+100030h]
mov cs:word_C7A040, ax
mov [rbp+var_2211], 0
loc_535AC:
mov al, [rbp+var_2211]
mov [rbp+var_2260], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_535D9
mov al, [rbp+var_2260]
add rsp, 2260h
pop rbp
retn
loc_535D9:
call ___stack_chk_fail
|
char translog_truncate_log(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rax
long long v7; // rdx
long long v8; // rcx
int v9; // r8d
int v10; // r9d
bool v12; // [rsp+1h] [rbp-225Fh]
bool v13; // [rsp+2h] [rbp-225Eh]
char v14; // [rsp+3h] [rbp-225Dh]
unsigned int v15; // [rsp+4h] [rbp-225Ch]
unsigned long long *v16; // [rsp+8h] [rbp-2258h] BYREF
int v17; // [rsp+1Ch] [rbp-2244h]
signed int v18; // [rsp+20h] [rbp-2240h]
unsigned int i; // [rsp+24h] [rbp-223Ch]
unsigned int v20; // [rsp+28h] [rbp-2238h]
unsigned int v21; // [rsp+2Ch] [rbp-2234h]
unsigned long long v22; // [rsp+30h] [rbp-2230h] BYREF
long long *page; // [rsp+38h] [rbp-2228h]
long long v24; // [rsp+40h] [rbp-2220h]
_BYTE v26[8192]; // [rsp+50h] [rbp-2210h] BYREF
_BYTE v27[520]; // [rsp+2050h] [rbp-210h] BYREF
unsigned long long v28; // [rsp+2258h] [rbp-8h]
v28 = __readfsqword(0x28u);
v24 = a1;
for ( i = HIDWORD(a1) + 1; i <= HIDWORD(qword_C7A008); ++i )
{
v15 = key_file_translog;
v6 = translog_filename_by_fileno(i, (long long)v27, a3, qword_C7A008 >> 32, a5, a6);
if ( (unsigned int)inline_mysql_file_delete_0(
v15,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3439LL,
v6,
16LL) )
{
translog_unlock();
return 1;
}
}
v21 = v24 - ((((_WORD)v24 - 1) & 0x1FFF) + 1) + 0x2000;
v20 = 0x2000 - ((((_WORD)v24 - 1) & 0x1FFF) + 1);
memset(v26, 255LL, v20);
v18 = open_logfile_by_number_no_cache(HIDWORD(v24), 255LL, v7, v8, v9, v10);
v14 = 1;
if ( v18 >= 0 )
{
v13 = 1;
if ( !(unsigned int)inline_mysql_file_chsize_1(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3453LL,
(unsigned int)v18,
v21,
255LL,
16LL) )
{
if ( !v20 || (v13 = 1, !my_pwrite((unsigned int)v18, v26, v20, (unsigned int)v24)) )
v13 = (unsigned int)inline_mysql_file_sync_3(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3456LL,
(unsigned int)v18,
16LL) != 0;
}
v14 = v13;
}
v17 = v14 & 1;
++translog_syncs;
v12 = 0;
if ( v18 > 0 )
v12 = (unsigned int)inline_mysql_file_close_2(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xD82u,
v18,
16LL) != 0;
v17 |= v12;
if ( (unsigned long long)sync_log_dir >= 2 )
{
v17 |= inline_mysql_file_sync_3(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3461LL,
(unsigned int)dword_4796B0,
48LL);
++translog_syncs;
}
if ( v17 )
return 1;
qword_C7A008 = v24;
v22 = (v21 - 0x2000) | ((unsigned long long)HIDWORD(v24) << 32);
v16 = &v22;
page = (long long *)translog_get_page((long long **)&v16, (long long)&log_descriptor[95], 0LL);
if ( !page )
return 1;
if ( page != &log_descriptor[95] )
memcpy(&log_descriptor[95], page, 0x2000LL);
*(_QWORD *)((char *)&loc_100010 + qword_C7A038) = v22;
*(_DWORD *)(qword_C7A038 + 1048624) = v24 - v22;
qword_C7A030 = (long long)&log_descriptor[95] + *(unsigned int *)(qword_C7A038 + 1048624);
word_C7A040 = *(_DWORD *)(qword_C7A038 + 1048624);
return 0;
}
|
translog_truncate_log:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2260
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x2220],RDI
JMP 0x001531b1
LAB_001531b1:
JMP 0x001531b3
LAB_001531b3:
JMP 0x001531b5
LAB_001531b5:
MOV RAX,qword ptr [RBP + -0x2220]
SAR RAX,0x20
ADD EAX,0x1
MOV dword ptr [RBP + -0x223c],EAX
LAB_001531c9:
MOV EAX,dword ptr [RBP + -0x223c]
MOV RCX,qword ptr [0x00d7a008]
SAR RCX,0x20
CMP EAX,ECX
JA 0x00153248
LEA RAX,[0x577d14]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x225c],EAX
MOV EDI,dword ptr [RBP + -0x223c]
LEA RSI,[RBP + -0x210]
CALL 0x0014f7f0
MOV EDI,dword ptr [RBP + -0x225c]
MOV RCX,RAX
LEA RSI,[0x251cce]
MOV EDX,0xd6f
MOV R8D,0x10
CALL 0x00157940
CMP EAX,0x0
JZ 0x00153235
CALL 0x001501b0
MOV byte ptr [RBP + -0x2211],0x1
JMP 0x001535ac
LAB_00153235:
JMP 0x00153237
LAB_00153237:
MOV EAX,dword ptr [RBP + -0x223c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x223c],EAX
JMP 0x001531c9
LAB_00153248:
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x2220]
MOV dword ptr [RBP + -0x2234],EAX
MOV EAX,dword ptr [RBP + -0x2234]
MOV ECX,dword ptr [RBP + -0x2234]
SUB ECX,0x1
AND ECX,0x1fff
ADD ECX,0x1
SUB EAX,ECX
ADD EAX,0x2000
MOV dword ptr [RBP + -0x2234],EAX
MOV EAX,dword ptr [RBP + -0x2234]
MOV RCX,0xffffffff
AND RCX,qword ptr [RBP + -0x2220]
SUB RAX,RCX
MOV dword ptr [RBP + -0x2238],EAX
LEA RDI,[RBP + -0x2210]
MOV EAX,dword ptr [RBP + -0x2238]
MOV EDX,EAX
MOV ESI,0xff
CALL 0x0012a2c0
MOV RAX,qword ptr [RBP + -0x2220]
SAR RAX,0x20
MOV EDI,EAX
CALL 0x0014fdc0
MOV ECX,EAX
MOV dword ptr [RBP + -0x2240],ECX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x225d],AL
JL 0x001533a1
MOV EDX,dword ptr [RBP + -0x2240]
MOV EAX,dword ptr [RBP + -0x2234]
MOV ECX,EAX
LEA RDI,[0x251cce]
MOV ESI,0xd7d
MOV R8D,0xff
MOV R9D,0x10
CALL 0x001597e0
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x225e],AL
JNZ 0x00153395
CMP dword ptr [RBP + -0x2238],0x0
JZ 0x0015336d
MOV EDI,dword ptr [RBP + -0x2240]
LEA RSI,[RBP + -0x2210]
MOV EAX,dword ptr [RBP + -0x2238]
MOV EDX,EAX
MOV RCX,0xffffffff
AND RCX,qword ptr [RBP + -0x2220]
MOV R8D,0x34
CALL 0x001f4860
MOV RCX,RAX
MOV AL,0x1
CMP RCX,0x0
MOV byte ptr [RBP + -0x225e],AL
JNZ 0x00153395
LAB_0015336d:
MOV EDX,dword ptr [RBP + -0x2240]
LEA RDI,[0x251cce]
MOV ESI,0xd80
MOV ECX,0x10
CALL 0x00159160
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x225e],AL
LAB_00153395:
MOV AL,byte ptr [RBP + -0x225e]
MOV byte ptr [RBP + -0x225d],AL
LAB_001533a1:
MOV AL,byte ptr [RBP + -0x225d]
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x2244],EAX
MOV RAX,qword ptr [0x005781b8]
ADD RAX,0x1
MOV qword ptr [0x005781b8],RAX
XOR EAX,EAX
CMP dword ptr [RBP + -0x2240],0x0
MOV byte ptr [RBP + -0x225f],AL
JLE 0x001533fd
MOV EDX,dword ptr [RBP + -0x2240]
LEA RDI,[0x251cce]
MOV ESI,0xd82
MOV ECX,0x10
CALL 0x0014fe90
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x225f],AL
LAB_001533fd:
MOV AL,byte ptr [RBP + -0x225f]
AND AL,0x1
MOVZX EAX,AL
OR EAX,dword ptr [RBP + -0x2244]
MOV dword ptr [RBP + -0x2244],EAX
CMP qword ptr [0x003bd3d8],0x2
JC 0x00153458
MOV EDX,dword ptr [0x005796b0]
LEA RDI,[0x251cce]
MOV ESI,0xd85
MOV ECX,0x30
CALL 0x00159160
OR EAX,dword ptr [RBP + -0x2244]
MOV dword ptr [RBP + -0x2244],EAX
MOV RAX,qword ptr [0x005781b8]
ADD RAX,0x1
MOV qword ptr [0x005781b8],RAX
LAB_00153458:
CMP dword ptr [RBP + -0x2244],0x0
JZ 0x0015346f
JMP 0x00153463
LAB_00153463:
MOV byte ptr [RBP + -0x2211],0x1
JMP 0x001535ac
LAB_0015346f:
MOV RAX,qword ptr [RBP + -0x2220]
MOV qword ptr [0x00d7a008],RAX
MOV RAX,qword ptr [RBP + -0x2220]
SAR RAX,0x20
MOV EAX,EAX
SHL RAX,0x20
MOV ECX,dword ptr [RBP + -0x2234]
SUB ECX,0x2000
MOV ECX,ECX
OR RAX,RCX
MOV qword ptr [RBP + -0x2230],RAX
LEA RAX,[RBP + -0x2230]
MOV qword ptr [RBP + -0x2258],RAX
LEA RDI,[RBP + -0x2258]
LEA RSI,[0x5793c0]
ADD RSI,0x2f8
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00152160
MOV qword ptr [RBP + -0x2228],RAX
CMP RAX,0x0
JNZ 0x001534ed
JMP 0x001534e1
LAB_001534e1:
MOV byte ptr [RBP + -0x2211],0x1
JMP 0x001535ac
LAB_001534ed:
LEA RAX,[0x5793c0]
ADD RAX,0x2f8
CMP qword ptr [RBP + -0x2228],RAX
JZ 0x00153522
MOV RSI,qword ptr [RBP + -0x2228]
LEA RDI,[0x5793c0]
ADD RDI,0x2f8
MOV EDX,0x2000
CALL 0x0012a090
LAB_00153522:
MOV RCX,qword ptr [RBP + -0x2230]
MOV RAX,qword ptr [0x00d7a038]
MOV qword ptr [RAX + 0x100010],RCX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x2220]
MOV RCX,0xffffffff
AND RCX,qword ptr [RBP + -0x2230]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [0x00d7a038]
MOV dword ptr [RAX + 0x100030],ECX
MOV RAX,qword ptr [0x00d7a038]
MOV EAX,dword ptr [RAX + 0x100030]
MOV ECX,EAX
LEA RAX,[0x5793c0]
ADD RAX,0x2f8
ADD RAX,RCX
MOV qword ptr [0x00d7a030],RAX
MOV RAX,qword ptr [0x00d7a038]
MOV EAX,dword ptr [RAX + 0x100030]
MOV word ptr [0x00d7a040],AX
MOV byte ptr [RBP + -0x2211],0x0
LAB_001535ac:
MOV AL,byte ptr [RBP + -0x2211]
MOV byte ptr [RBP + -0x2260],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001535d9
MOV AL,byte ptr [RBP + -0x2260]
ADD RSP,0x2260
POP RBP
RET
LAB_001535d9:
CALL 0x0012a270
|
int8 translog_truncate_log(ulong param_1)
{
int4 uVar1;
int iVar2;
uint uVar3;
int8 uVar4;
long lVar5;
long in_FS_OFFSET;
bool local_2267;
bool local_2266;
bool local_2265;
ulong *local_2260 [2];
uint local_224c;
int local_2248;
uint local_2244;
uint local_2240;
int local_223c;
ulong local_2238;
int *local_2230;
ulong local_2228;
int1 local_2219;
int1 local_2218 [8192];
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_2244 = (uint)(param_1 >> 0x20);
local_2228 = param_1;
do {
uVar1 = key_file_translog;
local_2244 = local_2244 + 1;
if ((uint)(DAT_00d7a008 >> 0x20) < local_2244) {
iVar2 = (int)local_2228;
local_223c = (iVar2 - ((iVar2 - 1U & 0x1fff) + 1)) + 0x2000;
local_2240 = local_223c - iVar2;
memset(local_2218,0xff,(ulong)local_2240);
local_2248 = open_logfile_by_number_no_cache((long)local_2228 >> 0x20 & 0xffffffff);
local_2265 = true;
if (-1 < local_2248) {
iVar2 = inline_mysql_file_chsize
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xd7d,local_2248,local_223c,0xff,0x10);
local_2266 = true;
if (iVar2 == 0) {
if (local_2240 != 0) {
lVar5 = my_pwrite(local_2248,local_2218,local_2240,local_2228 & 0xffffffff,0x34);
local_2266 = true;
if (lVar5 != 0) goto LAB_00153395;
}
iVar2 = inline_mysql_file_sync
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c"
,0xd80,local_2248,0x10);
local_2266 = iVar2 != 0;
}
LAB_00153395:
local_2265 = local_2266;
}
local_224c = (uint)local_2265;
translog_syncs = translog_syncs + 1;
local_2267 = false;
if (0 < local_2248) {
iVar2 = inline_mysql_file_close
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xd82,local_2248,0x10);
local_2267 = iVar2 != 0;
}
local_224c = local_2267 | local_224c;
if (1 < sync_log_dir) {
uVar3 = inline_mysql_file_sync
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xd85,DAT_005796b0,0x30);
local_224c = uVar3 | local_224c;
translog_syncs = translog_syncs + 1;
}
if (local_224c == 0) {
DAT_00d7a008 = local_2228;
local_2238 = ((long)local_2228 >> 0x20) << 0x20 | (ulong)(local_223c - 0x2000);
local_2260[0] = &local_2238;
local_2230 = (int *)translog_get_page(local_2260,&DAT_005796b8,0);
if (local_2230 == (int *)0x0) {
local_2219 = 1;
}
else {
if (local_2230 != &DAT_005796b8) {
memcpy(&DAT_005796b8,local_2230,0x2000);
}
*(ulong *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00d7a038 + 7) = local_2238;
*(int *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00d7a038 + 0x27) =
(int)local_2228 - (int)local_2238;
DAT_00d7a030 = &DAT_005796b8 +
*(uint *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00d7a038 + 0x27);
DAT_00d7a040 = (int2)
*(int4 *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00d7a038 + 0x27);
local_2219 = 0;
}
}
else {
local_2219 = 1;
}
goto LAB_001535ac;
}
uVar4 = translog_filename_by_fileno(local_2244,local_218);
iVar2 = inline_mysql_file_delete
(uVar1,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xd6f,uVar4,0x10);
} while (iVar2 == 0);
translog_unlock();
local_2219 = 1;
LAB_001535ac:
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_2219);
}
|
|
10,045 |
namelist_free
|
bluesky950520[P]quickjs/qjsc.c
|
void namelist_free(namelist_t *lp)
{
while (lp->count > 0) {
namelist_entry_t *e = &lp->array[--lp->count];
free(e->name);
free(e->short_name);
}
free(lp->array);
lp->array = NULL;
lp->size = 0;
}
|
O1
|
c
|
namelist_free:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x13b9f
movq (%rbx), %r14
decl %eax
movl %eax, 0x8(%rbx)
leaq (%rax,%rax,2), %r15
movq (%r14,%r15,8), %rdi
callq 0xe060
movq 0x8(%r14,%r15,8), %rdi
callq 0xe060
movl 0x8(%rbx), %eax
jmp 0x13b77
movq (%rbx), %rdi
callq 0xe060
movq $0x0, (%rbx)
movl $0x0, 0xc(%rbx)
popq %rbx
popq %r14
popq %r15
retq
|
namelist_free:
push r15
push r14
push rbx
mov rbx, rdi
mov eax, [rdi+8]
loc_13B77:
test eax, eax
jle short loc_13B9F
mov r14, [rbx]
dec eax
mov [rbx+8], eax
lea r15, [rax+rax*2]
mov rdi, [r14+r15*8]
call _free
mov rdi, [r14+r15*8+8]
call _free
mov eax, [rbx+8]
jmp short loc_13B77
loc_13B9F:
mov rdi, [rbx]
call _free
mov qword ptr [rbx], 0
mov dword ptr [rbx+0Ch], 0
pop rbx
pop r14
pop r15
retn
|
long long namelist_free(long long *a1)
{
int i; // eax
long long v2; // r14
unsigned int v3; // eax
long long v4; // r15
long long result; // rax
for ( i = *((_DWORD *)a1 + 2); i > 0; i = *((_DWORD *)a1 + 2) )
{
v2 = *a1;
v3 = i - 1;
*((_DWORD *)a1 + 2) = v3;
v4 = 3LL * v3;
free(*(_QWORD *)(v2 + 24LL * v3));
free(*(_QWORD *)(v2 + 8 * v4 + 8));
}
result = free(*a1);
*a1 = 0LL;
*((_DWORD *)a1 + 3) = 0;
return result;
}
| |||
10,046 |
namelist_free
|
bluesky950520[P]quickjs/qjsc.c
|
void namelist_free(namelist_t *lp)
{
while (lp->count > 0) {
namelist_entry_t *e = &lp->array[--lp->count];
free(e->name);
free(e->short_name);
}
free(lp->array);
lp->array = NULL;
lp->size = 0;
}
|
O2
|
c
|
namelist_free:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rbx), %eax
movq (%rbx), %r14
testl %eax, %eax
jle 0xeba9
decl %eax
movl %eax, 0x8(%rbx)
imulq $0x18, %rax, %r15
movq (%r14,%r15), %rdi
callq 0xe060
movq 0x8(%r14,%r15), %rdi
callq 0xe060
jmp 0xeb81
movq %r14, %rdi
callq 0xe060
andq $0x0, (%rbx)
andl $0x0, 0xc(%rbx)
popq %rbx
popq %r14
popq %r15
retq
|
namelist_free:
push r15
push r14
push rbx
mov rbx, rdi
loc_EB81:
mov eax, [rbx+8]
mov r14, [rbx]
test eax, eax
jle short loc_EBA9
dec eax
mov [rbx+8], eax
imul r15, rax, 18h
mov rdi, [r14+r15]
call _free
mov rdi, [r14+r15+8]
call _free
jmp short loc_EB81
loc_EBA9:
mov rdi, r14
call _free
and qword ptr [rbx], 0
and dword ptr [rbx+0Ch], 0
pop rbx
pop r14
pop r15
retn
|
long long namelist_free(long long *a1)
{
int v1; // eax
long long v2; // r14
long long v3; // rax
long long v4; // r15
long long result; // rax
while ( 1 )
{
v1 = *((_DWORD *)a1 + 2);
v2 = *a1;
if ( v1 <= 0 )
break;
v3 = (unsigned int)(v1 - 1);
*((_DWORD *)a1 + 2) = v3;
v4 = 24 * v3;
free(*(_QWORD *)(v2 + 24 * v3));
free(*(_QWORD *)(v2 + v4 + 8));
}
result = free(*a1);
*a1 = 0LL;
*((_DWORD *)a1 + 3) = 0;
return result;
}
|
namelist_free:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
LAB_0010eb81:
MOV EAX,dword ptr [RBX + 0x8]
MOV R14,qword ptr [RBX]
TEST EAX,EAX
JLE 0x0010eba9
DEC EAX
MOV dword ptr [RBX + 0x8],EAX
IMUL R15,RAX,0x18
MOV RDI,qword ptr [R14 + R15*0x1]
CALL 0x0010e060
MOV RDI,qword ptr [R14 + R15*0x1 + 0x8]
CALL 0x0010e060
JMP 0x0010eb81
LAB_0010eba9:
MOV RDI,R14
CALL 0x0010e060
AND qword ptr [RBX],0x0
AND dword ptr [RBX + 0xc],0x0
POP RBX
POP R14
POP R15
RET
|
void namelist_free(int8 *param_1)
{
void *__ptr;
uint uVar1;
long lVar2;
while( true ) {
__ptr = (void *)*param_1;
if (*(int *)(param_1 + 1) < 1) break;
uVar1 = *(int *)(param_1 + 1) - 1;
*(uint *)(param_1 + 1) = uVar1;
lVar2 = (ulong)uVar1 * 0x18;
free(*(void **)((long)__ptr + lVar2));
free(*(void **)((long)__ptr + lVar2 + 8));
}
free(__ptr);
*param_1 = 0;
*(int4 *)((long)param_1 + 0xc) = 0;
return;
}
|
|
10,047 |
mthd_stmt_fetch_to_bind
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
int mthd_stmt_fetch_to_bind(MYSQL_STMT *stmt, unsigned char *row)
{
uint i;
size_t truncations= 0;
unsigned char *null_ptr, bit_offset= 4;
row++; /* skip status byte */
null_ptr= row;
row+= (stmt->field_count + 9) / 8;
for (i=0; i < stmt->field_count; i++)
{
/* save row position for fetching values in pieces */
if (*null_ptr & bit_offset)
{
if (stmt->result_callback)
stmt->result_callback(stmt->user_data, i, NULL);
else
{
if (!stmt->bind[i].is_null)
stmt->bind[i].is_null= &stmt->bind[i].is_null_value;
*stmt->bind[i].is_null= 1;
stmt->bind[i].u.row_ptr= NULL;
}
} else
{
stmt->bind[i].u.row_ptr= row;
if (!stmt->bind_result_done ||
stmt->bind[i].flags & MADB_BIND_DUMMY)
{
unsigned long length;
if (stmt->result_callback)
stmt->result_callback(stmt->user_data, i, &row);
else {
if (mysql_ps_fetch_functions[stmt->fields[i].type].pack_len >= 0)
length= mysql_ps_fetch_functions[stmt->fields[i].type].pack_len;
else
length= net_field_length(&row);
row+= length;
if (!stmt->bind[i].length)
stmt->bind[i].length= &stmt->bind[i].length_value;
*stmt->bind[i].length= stmt->bind[i].length_value= length;
}
}
else
{
if (!stmt->bind[i].length)
stmt->bind[i].length= &stmt->bind[i].length_value;
if (!stmt->bind[i].is_null)
stmt->bind[i].is_null= &stmt->bind[i].is_null_value;
*stmt->bind[i].is_null= 0;
mysql_ps_fetch_functions[stmt->fields[i].type].func(&stmt->bind[i], &stmt->fields[i], &row);
if (stmt->mysql->options.report_data_truncation)
truncations+= *stmt->bind[i].error;
}
}
if (!((bit_offset <<=1) & 255)) {
bit_offset= 1; /* To next byte */
null_ptr++;
}
}
return((truncations) ? MYSQL_DATA_TRUNCATED : 0);
}
|
O0
|
c
|
mthd_stmt_fetch_to_bind:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movb $0x4, -0x29(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %ecx
addl $0x9, %ecx
shrl $0x3, %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x60(%rcx), %eax
jae 0x2342a
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movzbl -0x29(%rbp), %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x23163
movq -0x8(%rbp), %rax
cmpq $0x0, 0x388(%rax)
je 0x230e6
movq -0x8(%rbp), %rax
movq 0x388(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x380(%rcx), %rdi
movl -0x14(%rbp), %esi
xorl %ecx, %ecx
movl %ecx, %edx
callq *%rax
jmp 0x2315e
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
jne 0x2312b
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rcx
movl -0x14(%rbp), %eax
imulq $0x70, %rax, %rax
addq %rax, %rcx
addq $0x67, %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movb $0x1, (%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x20(%rax)
jmp 0x233f4
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
cmpb $0x0, 0xe8(%rax)
je 0x231ab
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movl 0x58(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x232ca
movq -0x8(%rbp), %rax
cmpq $0x0, 0x388(%rax)
je 0x231dd
movq -0x8(%rbp), %rax
movq 0x388(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x380(%rcx), %rdi
movl -0x14(%rbp), %esi
leaq -0x10(%rbp), %rdx
callq *%rax
jmp 0x232c5
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x14(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x70(%rax), %eax
movl %eax, %ecx
leaq 0x38f45(%rip), %rax # 0x5c140
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
jl 0x23237
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x14(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x70(%rax), %eax
movl %eax, %ecx
leaq 0x38f1a(%rip), %rax # 0x5c140
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x23244
leaq -0x10(%rbp), %rdi
callq 0x13580
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jne 0x23293
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rcx
movl -0x14(%rbp), %eax
imulq $0x70, %rax, %rax
addq %rax, %rcx
addq $0x50, %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x50(%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq %rcx, (%rax)
jmp 0x233f2
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jne 0x2330d
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rcx
movl -0x14(%rbp), %eax
imulq $0x70, %rax, %rax
addq %rax, %rcx
addq $0x50, %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
jne 0x23352
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rcx
movl -0x14(%rbp), %eax
imulq $0x70, %rax, %rax
addq %rax, %rcx
addq $0x67, %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x14(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x70(%rax), %eax
movl %eax, %ecx
leaq 0x38db7(%rip), %rax # 0x5c140
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x78(%rcx), %rdi
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rdi
movq -0x8(%rbp), %rcx
movq 0x58(%rcx), %rsi
movl -0x14(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rsi
leaq -0x10(%rbp), %rdx
callq *%rax
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
cmpb $0x0, 0x451(%rax)
je 0x233f0
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movsbq (%rax), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x233f2
jmp 0x233f4
movzbl -0x29(%rbp), %eax
shll %eax
movb %al, -0x29(%rbp)
movzbl %al, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x2341a
movb $0x1, -0x29(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2341c
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x23091
movq -0x20(%rbp), %rdx
xorl %eax, %eax
movl $0x65, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mthd_stmt_fetch_to_bind:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_20], 0
mov [rbp+var_29], 4
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_8]
mov ecx, [rax+60h]
add ecx, 9
shr ecx, 3
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov [rbp+var_14], 0
loc_23091:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_8]
cmp eax, [rcx+60h]
jnb loc_2342A
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
movzx ecx, [rbp+var_29]
and eax, ecx
cmp eax, 0
jz loc_23163
mov rax, [rbp+var_8]
cmp qword ptr [rax+388h], 0
jz short loc_230E6
mov rax, [rbp+var_8]
mov rax, [rax+388h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+380h]
mov esi, [rbp+var_14]
xor ecx, ecx
mov edx, ecx
call rax
jmp short loc_2315E
loc_230E6:
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax+8], 0
jnz short loc_2312B
mov rax, [rbp+var_8]
mov rcx, [rax+78h]
mov eax, [rbp+var_14]
imul rax, 70h ; 'p'
add rcx, rax
add rcx, 67h ; 'g'
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax+8], rcx
loc_2312B:
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+8]
mov byte ptr [rax], 1
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov qword ptr [rax+20h], 0
loc_2315E:
jmp loc_233F4
loc_23163:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax+20h], rcx
mov rax, [rbp+var_8]
cmp byte ptr [rax+0E8h], 0
jz short loc_231AB
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov eax, [rax+58h]
and eax, 1
cmp eax, 0
jz loc_232CA
loc_231AB:
mov rax, [rbp+var_8]
cmp qword ptr [rax+388h], 0
jz short loc_231DD
mov rax, [rbp+var_8]
mov rax, [rax+388h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+380h]
mov esi, [rbp+var_14]
lea rdx, [rbp+var_10]
call rax
jmp loc_232C5
loc_231DD:
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov ecx, [rbp+var_14]
shl rcx, 7
add rax, rcx
mov eax, [rax+70h]
mov ecx, eax
lea rax, mysql_ps_fetch_functions
imul rcx, 18h
add rax, rcx
cmp dword ptr [rax+8], 0
jl short loc_23237
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov ecx, [rbp+var_14]
shl rcx, 7
add rax, rcx
mov eax, [rax+70h]
mov ecx, eax
lea rax, mysql_ps_fetch_functions
imul rcx, 18h
add rax, rcx
movsxd rax, dword ptr [rax+8]
mov [rbp+var_38], rax
jmp short loc_23244
loc_23237:
lea rdi, [rbp+var_10]
call net_field_length
mov [rbp+var_38], rax
loc_23244:
mov rax, [rbp+var_38]
add rax, [rbp+var_10]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax], 0
jnz short loc_23293
mov rax, [rbp+var_8]
mov rcx, [rax+78h]
mov eax, [rbp+var_14]
imul rax, 70h ; 'p'
add rcx, rax
add rcx, 50h ; 'P'
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax], rcx
loc_23293:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax+50h], rcx
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov rax, [rax]
mov [rax], rcx
loc_232C5:
jmp loc_233F2
loc_232CA:
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax], 0
jnz short loc_2330D
mov rax, [rbp+var_8]
mov rcx, [rax+78h]
mov eax, [rbp+var_14]
imul rax, 70h ; 'p'
add rcx, rax
add rcx, 50h ; 'P'
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax], rcx
loc_2330D:
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax+8], 0
jnz short loc_23352
mov rax, [rbp+var_8]
mov rcx, [rax+78h]
mov eax, [rbp+var_14]
imul rax, 70h ; 'p'
add rcx, rax
add rcx, 67h ; 'g'
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov edx, [rbp+var_14]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax+8], rcx
loc_23352:
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+8]
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov ecx, [rbp+var_14]
shl rcx, 7
add rax, rcx
mov eax, [rax+70h]
mov ecx, eax
lea rax, mysql_ps_fetch_functions
imul rcx, 18h
add rax, rcx
mov rax, [rax]
mov rcx, [rbp+var_8]
mov rdi, [rcx+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rdi, rcx
mov rcx, [rbp+var_8]
mov rsi, [rcx+58h]
mov ecx, [rbp+var_14]
shl rcx, 7
add rsi, rcx
lea rdx, [rbp+var_10]
call rax
mov rax, [rbp+var_8]
mov rax, [rax+38h]
cmp byte ptr [rax+451h], 0
jz short loc_233F0
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+18h]
movsx rax, byte ptr [rax]
add rax, [rbp+var_20]
mov [rbp+var_20], rax
loc_233F0:
jmp short $+2
loc_233F2:
jmp short $+2
loc_233F4:
movzx eax, [rbp+var_29]
shl eax, 1
mov [rbp+var_29], al
movzx eax, al
and eax, 0FFh
cmp eax, 0
jnz short loc_2341A
mov [rbp+var_29], 1
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_2341A:
jmp short $+2
loc_2341C:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp loc_23091
loc_2342A:
mov rdx, [rbp+var_20]
xor eax, eax
mov ecx, 65h ; 'e'
cmp rdx, 0
cmovnz eax, ecx
add rsp, 40h
pop rbp
retn
|
long long mthd_stmt_fetch_to_bind(long long a1, long long a2)
{
long long result; // rax
long long v3; // [rsp+8h] [rbp-38h]
char v4; // [rsp+17h] [rbp-29h]
_BYTE *v5; // [rsp+18h] [rbp-28h]
long long v6; // [rsp+20h] [rbp-20h]
unsigned int i; // [rsp+2Ch] [rbp-14h]
unsigned __int8 *v8; // [rsp+30h] [rbp-10h] BYREF
long long v9; // [rsp+38h] [rbp-8h]
v9 = a1;
v6 = 0LL;
v4 = 4;
v8 = (unsigned __int8 *)(a2 + 1);
v5 = (_BYTE *)(a2 + 1);
v8 = (unsigned __int8 *)(((unsigned int)(*(_DWORD *)(a1 + 96) + 9) >> 3) + a2 + 1);
for ( i = 0; i < *(_DWORD *)(v9 + 96); ++i )
{
if ( ((unsigned __int8)v4 & *v5) != 0 )
{
if ( *(_QWORD *)(v9 + 904) )
{
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v9 + 904))(*(_QWORD *)(v9 + 896), i, 0LL);
}
else
{
if ( !*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 8) )
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 8) = 112LL * i + *(_QWORD *)(v9 + 120) + 103;
**(_BYTE **)(112LL * i + *(_QWORD *)(v9 + 120) + 8) = 1;
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 32) = 0LL;
}
}
else
{
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 32) = v8;
if ( *(_BYTE *)(v9 + 232) && (*(_DWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 88) & 1) == 0 )
{
if ( !*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120)) )
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120)) = 112LL * i + *(_QWORD *)(v9 + 120) + 80;
if ( !*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 8) )
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 8) = 112LL * i + *(_QWORD *)(v9 + 120) + 103;
**(_BYTE **)(112LL * i + *(_QWORD *)(v9 + 120) + 8) = 0;
(*((void ( **)(long long, unsigned long long, unsigned __int8 **))&mysql_ps_fetch_functions
+ 3 * *(unsigned int *)(((unsigned long long)i << 7) + *(_QWORD *)(v9 + 88) + 112)))(
112LL * i + *(_QWORD *)(v9 + 120),
((unsigned long long)i << 7) + *(_QWORD *)(v9 + 88),
&v8);
if ( *(_BYTE *)(*(_QWORD *)(v9 + 56) + 1105LL) )
v6 += **(char **)(112LL * i + *(_QWORD *)(v9 + 120) + 24);
}
else if ( *(_QWORD *)(v9 + 904) )
{
(*(void ( **)(_QWORD, _QWORD, unsigned __int8 **))(v9 + 904))(*(_QWORD *)(v9 + 896), i, &v8);
}
else
{
if ( *((int *)&mysql_ps_fetch_functions
+ 6 * *(unsigned int *)(((unsigned long long)i << 7) + *(_QWORD *)(v9 + 88) + 112)
+ 2) < 0 )
v3 = net_field_length(&v8);
else
v3 = *((int *)&mysql_ps_fetch_functions
+ 6 * *(unsigned int *)(((unsigned long long)i << 7) + *(_QWORD *)(v9 + 88) + 112)
+ 2);
v8 += v3;
if ( !*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120)) )
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120)) = 112LL * i + *(_QWORD *)(v9 + 120) + 80;
*(_QWORD *)(112LL * i + *(_QWORD *)(v9 + 120) + 80) = v3;
**(_QWORD **)(112LL * i + *(_QWORD *)(v9 + 120)) = v3;
}
}
v4 *= 2;
if ( !v4 )
{
v4 = 1;
++v5;
}
}
result = 0LL;
if ( v6 )
return 101LL;
return result;
}
|
mthd_stmt_fetch_to_bind:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x20],0x0
MOV byte ptr [RBP + -0x29],0x4
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x60]
ADD ECX,0x9
SHR ECX,0x3
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV dword ptr [RBP + -0x14],0x0
LAB_00123091:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x60]
JNC 0x0012342a
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOVZX ECX,byte ptr [RBP + -0x29]
AND EAX,ECX
CMP EAX,0x0
JZ 0x00123163
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x388],0x0
JZ 0x001230e6
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x388]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x380]
MOV ESI,dword ptr [RBP + -0x14]
XOR ECX,ECX
MOV EDX,ECX
CALL RAX
JMP 0x0012315e
LAB_001230e6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0012312b
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x78]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x70
ADD RCX,RAX
ADD RCX,0x67
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX + 0x8],RCX
LAB_0012312b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV byte ptr [RAX],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RAX + 0x20],0x0
LAB_0012315e:
JMP 0x001233f4
LAB_00123163:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0xe8],0x0
JZ 0x001231ab
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x58]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001232ca
LAB_001231ab:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x388],0x0
JZ 0x001231dd
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x388]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x380]
MOV ESI,dword ptr [RBP + -0x14]
LEA RDX,[RBP + -0x10]
CALL RAX
JMP 0x001232c5
LAB_001231dd:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x14]
SHL RCX,0x7
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x70]
MOV ECX,EAX
LEA RAX,[0x15c140]
IMUL RCX,RCX,0x18
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x0
JL 0x00123237
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x14]
SHL RCX,0x7
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x70]
MOV ECX,EAX
LEA RAX,[0x15c140]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOVSXD RAX,dword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00123244
LAB_00123237:
LEA RDI,[RBP + -0x10]
CALL 0x00113580
MOV qword ptr [RBP + -0x38],RAX
LAB_00123244:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JNZ 0x00123293
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x78]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x70
ADD RCX,RAX
ADD RCX,0x50
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX],RCX
LAB_00123293:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX + 0x50],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
LAB_001232c5:
JMP 0x001233f2
LAB_001232ca:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JNZ 0x0012330d
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x78]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x70
ADD RCX,RAX
ADD RCX,0x50
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX],RCX
LAB_0012330d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00123352
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x78]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x70
ADD RCX,RAX
ADD RCX,0x67
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x14]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX + 0x8],RCX
LAB_00123352:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x14]
SHL RCX,0x7
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x70]
MOV ECX,EAX
LEA RAX,[0x15c140]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RDI,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x58]
MOV ECX,dword ptr [RBP + -0x14]
SHL RCX,0x7
ADD RSI,RCX
LEA RDX,[RBP + -0x10]
CALL RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x38]
CMP byte ptr [RAX + 0x451],0x0
JZ 0x001233f0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x18]
MOVSX RAX,byte ptr [RAX]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x20],RAX
LAB_001233f0:
JMP 0x001233f2
LAB_001233f2:
JMP 0x001233f4
LAB_001233f4:
MOVZX EAX,byte ptr [RBP + -0x29]
SHL EAX,0x1
MOV byte ptr [RBP + -0x29],AL
MOVZX EAX,AL
AND EAX,0xff
CMP EAX,0x0
JNZ 0x0012341a
MOV byte ptr [RBP + -0x29],0x1
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_0012341a:
JMP 0x0012341c
LAB_0012341c:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00123091
LAB_0012342a:
MOV RDX,qword ptr [RBP + -0x20]
XOR EAX,EAX
MOV ECX,0x65
CMP RDX,0x0
CMOVNZ EAX,ECX
ADD RSP,0x40
POP RBP
RET
|
int8 mthd_stmt_fetch_to_bind(long param_1,long param_2)
{
ulong uVar1;
int8 uVar2;
long local_40;
byte local_31;
byte *local_30;
long local_28;
uint local_1c;
byte *local_18;
long local_10;
local_28 = 0;
local_31 = 4;
local_30 = (byte *)(param_2 + 1);
local_18 = local_30 + (*(int *)(param_1 + 0x60) + 9U >> 3);
local_10 = param_1;
for (local_1c = 0; local_1c < *(uint *)(local_10 + 0x60); local_1c = local_1c + 1) {
if ((*local_30 & local_31) == 0) {
*(byte **)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x20) = local_18;
if ((*(char *)(local_10 + 0xe8) == '\0') ||
((*(uint *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x58) & 1) != 0)) {
if (*(long *)(local_10 + 0x388) == 0) {
if ((int)(&DAT_0015c148)
[(ulong)*(uint *)(*(long *)(local_10 + 0x58) + (ulong)local_1c * 0x80 + 0x70) * 6
] < 0) {
local_40 = net_field_length(&local_18);
}
else {
local_40 = (long)(int)(&DAT_0015c148)
[(ulong)*(uint *)(*(long *)(local_10 + 0x58) +
(ulong)local_1c * 0x80 + 0x70) * 6];
}
local_18 = local_18 + local_40;
if (*(long *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70) == 0) {
*(ulong *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70) =
*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x50;
}
*(long *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x50) = local_40;
**(long **)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70) = local_40;
}
else {
(**(code **)(local_10 + 0x388))(*(int8 *)(local_10 + 0x380),local_1c,&local_18);
}
}
else {
if (*(long *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70) == 0) {
*(ulong *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70) =
*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x50;
}
if (*(long *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) == 0) {
*(ulong *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) =
*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x67;
}
**(int1 **)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) = 0;
(*(code *)(&mysql_ps_fetch_functions)
[(ulong)*(uint *)(*(long *)(local_10 + 0x58) + (ulong)local_1c * 0x80 + 0x70) * 3]
)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70,
*(long *)(local_10 + 0x58) + (ulong)local_1c * 0x80,&local_18);
if (*(char *)(*(long *)(local_10 + 0x38) + 0x451) != '\0') {
local_28 = **(char **)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x18) +
local_28;
}
}
}
else if (*(long *)(local_10 + 0x388) == 0) {
if (*(long *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) == 0) {
*(ulong *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) =
*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x67;
}
**(int1 **)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 8) = 1;
*(int8 *)(*(long *)(local_10 + 0x78) + (ulong)local_1c * 0x70 + 0x20) = 0;
}
else {
(**(code **)(local_10 + 0x388))(*(int8 *)(local_10 + 0x380),local_1c,0);
}
uVar1 = (ulong)local_31;
local_31 = (byte)(uVar1 << 1);
if ((uVar1 << 1 & 0xff) == 0) {
local_31 = 1;
local_30 = local_30 + 1;
}
}
uVar2 = 0;
if (local_28 != 0) {
uVar2 = 0x65;
}
return uVar2;
}
|
|
10,048 |
exec_REDO_LOGREC_FILE_ID
|
eloqsql/storage/maria/ma_recovery.c
|
prototype_redo_exec_hook(FILE_ID)
{
uint16 sid;
int error= 1;
const char *name;
MARIA_HA *info;
DBUG_ENTER("exec_REDO_LOGREC_FILE_ID");
if (cmp_translog_addr(rec->lsn, checkpoint_start) < 0)
{
/*
If that mapping was still true at checkpoint time, it was found in
checkpoint record, no need to recreate it. If that mapping had ended at
checkpoint time (table was closed or repaired), a flush and force
happened and so mapping is not needed.
*/
tprint(tracef, "ignoring because before checkpoint\n");
DBUG_RETURN(0);
}
enlarge_buffer(rec);
if (log_record_buffer.str == NULL ||
translog_read_record(rec->lsn, 0, rec->record_length,
log_record_buffer.str, NULL) !=
rec->record_length)
{
eprint(tracef, "Failed to read record");
goto end;
}
sid= fileid_korr(log_record_buffer.str);
info= all_tables[sid].info;
if (info != NULL)
{
tprint(tracef, " Closing table '%s'\n", info->s->open_file_name.str);
prepare_table_for_close(info, rec->lsn);
/*
Ensure that open count is 1 on close. This is needed as the
table may initially had an open_count > 0 when we initially
opened it as the server may have crashed without closing it
properly. As we now have applied all redo's for the table up to
now, we know the table is ok, so it's safe to reset the open
count to 0.
*/
if (info->s->state.open_count != 0 && info->s->reopen == 1)
{
/* let ma_close() mark the table properly closed */
info->s->state.open_count= 1;
info->s->global_changed= 1;
info->s->changed= 1;
}
if (maria_close(info))
{
eprint(tracef, "Failed to close table");
goto end;
}
all_tables[sid].info= NULL;
}
name= (char *)log_record_buffer.str + FILEID_STORE_SIZE;
if (new_table(sid, name, rec->lsn))
goto end;
error= 0;
end:
DBUG_RETURN(error);
}
|
O0
|
c
|
exec_REDO_LOGREC_FILE_ID:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x1, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq 0xc1e217(%rip), %rcx # 0xcdca98
subq (%rcx), %rax
cmpq $0x0, %rax
jge 0xbe8ae
leaq 0xc1e287(%rip), %rax # 0xcdcb18
movq (%rax), %rdi
leaq 0xcf232(%rip), %rsi # 0x18dacd
movb $0x0, %al
callq 0xc2dd0
movl $0x0, -0x4(%rbp)
jmp 0xbea2e
movq -0x10(%rbp), %rdi
callq 0xc1040
cmpq $0x0, 0xc1e139(%rip) # 0xcdc9f8
je 0xbe8eb
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x14(%rax), %edx
movq 0xc1e122(%rip), %rcx # 0xcdc9f8
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %r8d
callq 0xa90c0
movq -0x10(%rbp), %rcx
cmpl 0x14(%rcx), %eax
je 0xbe908
leaq 0xc1e226(%rip), %rax # 0xcdcb18
movq (%rax), %rdi
leaq 0xceb21(%rip), %rsi # 0x18d41d
movb $0x0, %al
callq 0xc2e80
jmp 0xbea26
movq 0xc1e0e9(%rip), %rax # 0xcdc9f8
movw (%rax), %ax
movw %ax, -0x12(%rbp)
movq 0xc1e0a3(%rip), %rax # 0xcdc9c0
movzwl -0x12(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xbe9f2
leaq 0xc1e1dd(%rip), %rax # 0xcdcb18
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x5e0(%rax), %rdx
leaq 0xcf19e(%rip), %rsi # 0x18daf1
movb $0x0, %al
callq 0xc2dd0
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0xc1740
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x16c(%rax)
je 0xbe9b7
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpl $0x1, 0x7a8(%rax)
jne 0xbe9b7
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl $0x1, 0x16c(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x7df(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x7de(%rax)
movq -0x28(%rbp), %rdi
callq 0x73d50
cmpl $0x0, %eax
je 0xbe9df
leaq 0xc1e14c(%rip), %rax # 0xcdcb18
movq (%rax), %rdi
leaq 0xcf132(%rip), %rsi # 0x18db08
movb $0x0, %al
callq 0xc2e80
jmp 0xbea26
movq 0xc1dfda(%rip), %rax # 0xcdc9c0
movzwl -0x12(%rbp), %ecx
movq $0x0, (%rax,%rcx,8)
movq 0xc1dfff(%rip), %rax # 0xcdc9f8
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rcx
movq (%rcx), %rdx
movzwl %ax, %edi
callq 0xc1d90
cmpl $0x0, %eax
je 0xbea1f
jmp 0xbea26
movl $0x0, -0x18(%rbp)
jmp 0xbea28
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
exec_REDO_LOGREC_FILE_ID:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], 1
mov rax, [rbp+var_10]
mov rax, [rax]
lea rcx, checkpoint_start
sub rax, [rcx]
cmp rax, 0
jge short loc_BE8AE
lea rax, tracef
mov rdi, [rax]
lea rsi, aIgnoringBecaus; "ignoring because before checkpoint\n"
mov al, 0
call tprint
mov [rbp+var_4], 0
jmp loc_BEA2E
loc_BE8AE:
mov rdi, [rbp+var_10]
call enlarge_buffer
cmp cs:log_record_buffer, 0
jz short loc_BE8EB
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov edx, [rax+14h]
mov rcx, cs:log_record_buffer
xor esi, esi
xor eax, eax
mov r8d, eax
call translog_read_record
mov rcx, [rbp+var_10]
cmp eax, [rcx+14h]
jz short loc_BE908
loc_BE8EB:
lea rax, tracef
mov rdi, [rax]
lea rsi, aFailedToReadRe; "Failed to read record"
mov al, 0
call eprint
jmp loc_BEA26
loc_BE908:
mov rax, cs:log_record_buffer
mov ax, [rax]
mov [rbp+var_12], ax
mov rax, cs:all_tables
movzx ecx, [rbp+var_12]
mov rax, [rax+rcx*8]
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jz loc_BE9F2
lea rax, tracef
mov rdi, [rax]
mov rax, [rbp+var_28]
mov rax, [rax]
mov rdx, [rax+5E0h]
lea rsi, aClosingTableS; " Closing table '%s'\n"
mov al, 0
call tprint
mov rdi, [rbp+var_28]
mov rax, [rbp+var_10]
mov rsi, [rax]
call prepare_table_for_close
mov rax, [rbp+var_28]
mov rax, [rax]
cmp dword ptr [rax+16Ch], 0
jz short loc_BE9B7
mov rax, [rbp+var_28]
mov rax, [rax]
cmp dword ptr [rax+7A8h], 1
jnz short loc_BE9B7
mov rax, [rbp+var_28]
mov rax, [rax]
mov dword ptr [rax+16Ch], 1
mov rax, [rbp+var_28]
mov rax, [rax]
mov byte ptr [rax+7DFh], 1
mov rax, [rbp+var_28]
mov rax, [rax]
mov byte ptr [rax+7DEh], 1
loc_BE9B7:
mov rdi, [rbp+var_28]
call maria_close
cmp eax, 0
jz short loc_BE9DF
lea rax, tracef
mov rdi, [rax]
lea rsi, aFailedToCloseT; "Failed to close table"
mov al, 0
call eprint
jmp short loc_BEA26
loc_BE9DF:
mov rax, cs:all_tables
movzx ecx, [rbp+var_12]
mov qword ptr [rax+rcx*8], 0
loc_BE9F2:
mov rax, cs:log_record_buffer
add rax, 2
mov [rbp+var_20], rax
mov ax, [rbp+var_12]
mov rsi, [rbp+var_20]
mov rcx, [rbp+var_10]
mov rdx, [rcx]
movzx edi, ax
call new_table
cmp eax, 0
jz short loc_BEA1F
jmp short loc_BEA26
loc_BEA1F:
mov [rbp+var_18], 0
loc_BEA26:
jmp short $+2
loc_BEA28:
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_BEA2E:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long exec_REDO_LOGREC_FILE_ID(_QWORD *a1, long long a2, int a3, long long a4, int a5, int a6)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
int record; // eax
const char *v11; // rsi
int v12; // edx
int v13; // ecx
int v14; // r8d
int v15; // r9d
long long v17; // [rsp+8h] [rbp-28h]
unsigned int v18; // [rsp+18h] [rbp-18h]
unsigned __int16 v19; // [rsp+1Eh] [rbp-12h]
v18 = 1;
if ( *a1 - checkpoint_start >= 0 )
{
enlarge_buffer(a1);
if ( !log_record_buffer
|| (record = translog_read_record(*a1, 0, *((_DWORD *)a1 + 5), log_record_buffer, 0LL),
v7 = (int)a1,
record != *((_DWORD *)a1 + 5)) )
{
eprint(tracef, (unsigned int)"Failed to read record", v6, v7, v8, v9);
return v18;
}
v19 = *(_WORD *)log_record_buffer;
v17 = *(_QWORD *)(all_tables + 8LL * *(unsigned __int16 *)log_record_buffer);
if ( v17 )
{
tprint(
tracef,
(unsigned int)" Closing table '%s'\n",
*(_QWORD *)(*(_QWORD *)v17 + 1504LL),
*(unsigned __int16 *)log_record_buffer,
v8,
v9);
v11 = (const char *)*a1;
prepare_table_for_close(v17, *a1);
if ( *(_DWORD *)(*(_QWORD *)v17 + 364LL) && *(_DWORD *)(*(_QWORD *)v17 + 1960LL) == 1 )
{
*(_DWORD *)(*(_QWORD *)v17 + 364LL) = 1;
*(_BYTE *)(*(_QWORD *)v17 + 2015LL) = 1;
*(_BYTE *)(*(_QWORD *)v17 + 2014LL) = 1;
}
if ( (unsigned int)maria_close(v17, v11) )
{
eprint(tracef, (unsigned int)"Failed to close table", v12, v13, v14, v15);
return v18;
}
*(_QWORD *)(all_tables + 8LL * v19) = 0LL;
}
if ( !(unsigned int)new_table(v19, log_record_buffer + 2, *a1) )
return 0;
return v18;
}
tprint(tracef, (unsigned int)"ignoring because before checkpoint\n", a3, (unsigned int)&checkpoint_start, a5, a6);
return 0;
}
|
exec_REDO_LOGREC_FILE_ID:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x18],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
LEA RCX,[0xddca98]
SUB RAX,qword ptr [RCX]
CMP RAX,0x0
JGE 0x001be8ae
LEA RAX,[0xddcb18]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x28dacd]
MOV AL,0x0
CALL 0x001c2dd0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001bea2e
LAB_001be8ae:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c1040
CMP qword ptr [0x00ddc9f8],0x0
JZ 0x001be8eb
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x14]
MOV RCX,qword ptr [0x00ddc9f8]
XOR ESI,ESI
XOR EAX,EAX
MOV R8D,EAX
CALL 0x001a90c0
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x14]
JZ 0x001be908
LAB_001be8eb:
LEA RAX,[0xddcb18]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x28d41d]
MOV AL,0x0
CALL 0x001c2e80
JMP 0x001bea26
LAB_001be908:
MOV RAX,qword ptr [0x00ddc9f8]
MOV AX,word ptr [RAX]
MOV word ptr [RBP + -0x12],AX
MOV RAX,qword ptr [0x00ddc9c0]
MOVZX ECX,word ptr [RBP + -0x12]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001be9f2
LEA RAX,[0xddcb18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x5e0]
LEA RSI,[0x28daf1]
MOV AL,0x0
CALL 0x001c2dd0
MOV RDI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
CALL 0x001c1740
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x16c],0x0
JZ 0x001be9b7
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x7a8],0x1
JNZ 0x001be9b7
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0x16c],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX + 0x7df],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX + 0x7de],0x1
LAB_001be9b7:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00173d50
CMP EAX,0x0
JZ 0x001be9df
LEA RAX,[0xddcb18]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x28db08]
MOV AL,0x0
CALL 0x001c2e80
JMP 0x001bea26
LAB_001be9df:
MOV RAX,qword ptr [0x00ddc9c0]
MOVZX ECX,word ptr [RBP + -0x12]
MOV qword ptr [RAX + RCX*0x8],0x0
LAB_001be9f2:
MOV RAX,qword ptr [0x00ddc9f8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV AX,word ptr [RBP + -0x12]
MOV RSI,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX]
MOVZX EDI,AX
CALL 0x001c1d90
CMP EAX,0x0
JZ 0x001bea1f
JMP 0x001bea26
LAB_001bea1f:
MOV dword ptr [RBP + -0x18],0x0
LAB_001bea26:
JMP 0x001bea28
LAB_001bea28:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_001bea2e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 exec_REDO_LOGREC_FILE_ID(long *param_1)
{
ushort uVar1;
long *plVar2;
int iVar3;
int4 local_20;
local_20 = 1;
if (*param_1 - checkpoint_start < 0) {
tprint(tracef,"ignoring because before checkpoint\n");
return 0;
}
enlarge_buffer(param_1);
if ((log_record_buffer == (ushort *)0x0) ||
(iVar3 = translog_read_record
(*param_1,0,*(int4 *)((long)param_1 + 0x14),log_record_buffer,0),
iVar3 != *(int *)((long)param_1 + 0x14))) {
eprint(tracef,"Failed to read record");
}
else {
uVar1 = *log_record_buffer;
plVar2 = *(long **)(all_tables + (ulong)uVar1 * 8);
if (plVar2 != (long *)0x0) {
tprint(tracef," Closing table \'%s\'\n",*(int8 *)(*plVar2 + 0x5e0));
prepare_table_for_close(plVar2,*param_1);
if ((*(int *)(*plVar2 + 0x16c) != 0) && (*(int *)(*plVar2 + 0x7a8) == 1)) {
*(int4 *)(*plVar2 + 0x16c) = 1;
*(int1 *)(*plVar2 + 0x7df) = 1;
*(int1 *)(*plVar2 + 0x7de) = 1;
}
iVar3 = maria_close(plVar2);
if (iVar3 != 0) {
eprint(tracef,"Failed to close table");
return 1;
}
*(int8 *)(all_tables + (ulong)uVar1 * 8) = 0;
}
iVar3 = new_table(uVar1,log_record_buffer + 1,*param_1);
if (iVar3 == 0) {
local_20 = 0;
}
}
return local_20;
}
|
|
10,049 |
spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
|
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override {
if (msg.source.empty()) {
ScopedPadder p(0, padinfo_, dest);
return;
}
auto filename = basename(msg.source.filename);
size_t text_size = padinfo_.enabled() ? std::char_traits<char>::length(filename) : 0;
ScopedPadder p(text_size, padinfo_, dest);
fmt_helper::append_string_view(filename, dest);
}
|
O0
|
c
|
spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&):
subq $0xc8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xa8(%rsp), %rdi
addq $0x38, %rdi
callq 0x8f690
testb $0x1, %al
jne 0xa109b
jmp 0xa10c9
movq 0x10(%rsp), %rdx
addq $0x8, %rdx
movq 0x98(%rsp), %rcx
leaq 0x70(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x95af0
leaq 0x70(%rsp), %rdi
callq 0x95be0
jmp 0xa11a3
movq 0xa8(%rsp), %rax
movq 0x38(%rax), %rdi
callq 0xa11d0
movq 0x10(%rsp), %rdi
movq %rax, 0x68(%rsp)
addq $0x8, %rdi
callq 0x7e440
testb $0x1, %al
jne 0xa10f3
jmp 0xa1104
movq 0x68(%rsp), %rdi
callq 0x20510
movq %rax, 0x8(%rsp)
jmp 0xa110d
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0xa110d
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rsi
addq $0x8, %rdx
movq 0x98(%rsp), %rcx
leaq 0x38(%rsp), %rdi
callq 0x95af0
movq 0x68(%rsp), %rax
leaq 0x28(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movq %rax, 0xb8(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, (%rsp)
movq 0xb8(%rsp), %rcx
movq %rcx, (%rax)
movq 0xb8(%rsp), %rdi
callq 0x152e0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x98(%rsp), %rdx
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x7e1d0
jmp 0xa1199
leaq 0x38(%rsp), %rdi
callq 0x95be0
addq $0xc8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x95be0
movq 0x20(%rsp), %rdi
callq 0x15dd0
nopl (%rax)
|
_ZN6spdlog7details24short_filename_formatterINS0_13scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE:
sub rsp, 0C8h
mov [rsp+0C8h+var_18], rdi
mov [rsp+0C8h+var_20], rsi
mov [rsp+0C8h+var_28], rdx
mov [rsp+0C8h+var_30], rcx
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_B8], rax
mov rdi, [rsp+0C8h+var_20]
add rdi, 38h ; '8'; this
call _ZNK6spdlog10source_loc5emptyEv; spdlog::source_loc::empty(void)
test al, 1
jnz short loc_A109B
jmp short loc_A10C9
loc_A109B:
mov rdx, [rsp+0C8h+var_B8]
add rdx, 8
mov rcx, [rsp+0C8h+var_30]
lea rdi, [rsp+0C8h+var_58]
xor eax, eax
mov esi, eax
call _ZN6spdlog7details13scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::scoped_padder::scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
lea rdi, [rsp+0C8h+var_58]; this
call _ZN6spdlog7details13scoped_padderD2Ev; spdlog::details::scoped_padder::~scoped_padder()
jmp loc_A11A3
loc_A10C9:
mov rax, [rsp+0C8h+var_20]
mov rdi, [rax+38h]
call _ZN6spdlog7details24short_filename_formatterINS0_13scoped_padderEE8basenameEPKc; spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::basename(char const*)
mov rdi, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_60], rax
add rdi, 8; this
call _ZNK6spdlog7details12padding_info7enabledEv; spdlog::details::padding_info::enabled(void)
test al, 1
jnz short loc_A10F3
jmp short loc_A1104
loc_A10F3:
mov rdi, [rsp+0C8h+var_60]
call _ZNSt11char_traitsIcE6lengthEPKc; std::char_traits<char>::length(char const*)
mov [rsp+0C8h+var_C0], rax
jmp short loc_A110D
loc_A1104:
xor eax, eax
mov [rsp+0C8h+var_C0], rax
jmp short $+2
loc_A110D:
mov rdx, [rsp+0C8h+var_B8]
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_68], rax
mov rsi, [rsp+0C8h+var_68]
add rdx, 8
mov rcx, [rsp+0C8h+var_30]
lea rdi, [rsp+0C8h+var_90]
call _ZN6spdlog7details13scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::scoped_padder::scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
mov rax, [rsp+0C8h+var_60]
lea rcx, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_8], rcx
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_8]
mov [rsp+0C8h+var_C8], rax
mov rcx, [rsp+0C8h+var_10]
mov [rax], rcx
mov rdi, [rsp+0C8h+var_10]
call _strlen
mov rcx, rax
mov rax, [rsp+0C8h+var_C8]
mov [rax+8], rcx
mov rdx, [rsp+0C8h+var_30]
mov rdi, [rsp+0C8h+var_A0]
mov rsi, [rsp+0C8h+var_98]
call _ZN6spdlog7details10fmt_helper18append_string_viewEN3fmt3v1017basic_string_viewIcEERNS3_19basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::fmt_helper::append_string_view(fmt::v10::basic_string_view<char>,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
jmp short $+2
loc_A1199:
lea rdi, [rsp+0C8h+var_90]; this
call _ZN6spdlog7details13scoped_padderD2Ev; spdlog::details::scoped_padder::~scoped_padder()
loc_A11A3:
add rsp, 0C8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_30]; this
call _ZN6spdlog7details13scoped_padderD2Ev; spdlog::details::scoped_padder::~scoped_padder()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
|
void spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::format(
long long a1,
long long a2,
long long a3,
_QWORD *a4)
{
long long v4; // [rsp+8h] [rbp-C0h]
long long v5; // [rsp+28h] [rbp-A0h] BYREF
long long v6; // [rsp+30h] [rbp-98h]
_BYTE v7[40]; // [rsp+38h] [rbp-90h] BYREF
long long v8; // [rsp+60h] [rbp-68h]
long long v9; // [rsp+68h] [rbp-60h]
_BYTE v10[40]; // [rsp+70h] [rbp-58h] BYREF
_QWORD *v11; // [rsp+98h] [rbp-30h]
long long v12; // [rsp+A0h] [rbp-28h]
long long v13; // [rsp+A8h] [rbp-20h]
long long v14; // [rsp+B0h] [rbp-18h]
long long v15; // [rsp+B8h] [rbp-10h]
long long *v16; // [rsp+C0h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
if ( spdlog::source_loc::empty((spdlog::source_loc *)(a2 + 56)) )
{
spdlog::details::scoped_padder::scoped_padder(
(spdlog::details::scoped_padder *)v10,
0LL,
(_QWORD *)(a1 + 8),
(long long)v11);
spdlog::details::scoped_padder::~scoped_padder((spdlog::details::scoped_padder *)v10);
}
else
{
v9 = spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::basename(*(_QWORD *)(v13 + 56));
if ( (spdlog::details::padding_info::enabled((spdlog::details::padding_info *)(a1 + 8)) & 1) != 0 )
v4 = std::char_traits<char>::length(v9);
else
v4 = 0LL;
v8 = v4;
spdlog::details::scoped_padder::scoped_padder(
(spdlog::details::scoped_padder *)v7,
v4,
(_QWORD *)(a1 + 8),
(long long)v11);
v16 = &v5;
v15 = v9;
v5 = v9;
v6 = strlen(v9);
spdlog::details::fmt_helper::append_string_view(v5, v6, v11);
spdlog::details::scoped_padder::~scoped_padder((spdlog::details::scoped_padder *)v7);
}
}
|
format:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x98],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0xa8]
ADD RDI,0x38
CALL 0x0018f690
TEST AL,0x1
JNZ 0x001a109b
JMP 0x001a10c9
LAB_001a109b:
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,0x8
MOV RCX,qword ptr [RSP + 0x98]
LEA RDI,[RSP + 0x70]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00195af0
LEA RDI,[RSP + 0x70]
CALL 0x00195be0
JMP 0x001a11a3
LAB_001a10c9:
MOV RAX,qword ptr [RSP + 0xa8]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x001a11d0
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x68],RAX
ADD RDI,0x8
CALL 0x0017e440
TEST AL,0x1
JNZ 0x001a10f3
JMP 0x001a1104
LAB_001a10f3:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x00120510
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001a110d
LAB_001a1104:
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001a110d
LAB_001a110d:
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x60],RAX
MOV RSI,qword ptr [RSP + 0x60]
ADD RDX,0x8
MOV RCX,qword ptr [RSP + 0x98]
LEA RDI,[RSP + 0x38]
CALL 0x00195af0
MOV RAX,qword ptr [RSP + 0x68]
LEA RCX,[RSP + 0x28]
MOV qword ptr [RSP + 0xc0],RCX
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP],RAX
MOV RCX,qword ptr [RSP + 0xb8]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RSP + 0xb8]
CALL 0x001152e0
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX + 0x8],RCX
MOV RDX,qword ptr [RSP + 0x98]
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
LAB_001a1192:
CALL 0x0017e1d0
LAB_001a1197:
JMP 0x001a1199
LAB_001a1199:
LEA RDI,[RSP + 0x38]
CALL 0x00195be0
LAB_001a11a3:
ADD RSP,0xc8
RET
|
/* spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::format(spdlog::details::log_msg
const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */
void __thiscall
spdlog::details::short_filename_formatter<spdlog::details::scoped_padder>::format
(short_filename_formatter<spdlog::details::scoped_padder> *this,log_msg *param_1,
tm *param_2,basic_memory_buffer *param_3)
{
ulong uVar1;
size_t sVar2;
ulong local_c0;
fmt_helper *local_a0 [2];
scoped_padder local_90 [40];
ulong local_68;
fmt_helper *local_60;
scoped_padder local_58 [40];
basic_memory_buffer *local_30;
tm *local_28;
log_msg *local_20;
short_filename_formatter<spdlog::details::scoped_padder> *local_18;
fmt_helper *local_10;
fmt_helper **local_8;
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
local_18 = this;
uVar1 = source_loc::empty((source_loc *)(param_1 + 0x38));
if ((uVar1 & 1) == 0) {
local_60 = (fmt_helper *)basename(*(char **)(local_20 + 0x38));
uVar1 = padding_info::enabled((padding_info *)(this + 8));
if ((uVar1 & 1) == 0) {
local_c0 = 0;
}
else {
local_c0 = std::char_traits<char>::length((char *)local_60);
}
local_68 = local_c0;
scoped_padder::scoped_padder(local_90,local_c0,(padding_info *)(this + 8),local_30);
local_8 = local_a0;
local_10 = local_60;
local_a0[0] = local_60;
sVar2 = strlen((char *)local_60);
/* try { // try from 001a1192 to 001a1196 has its CatchHandler @ 001a11ab */
fmt_helper::append_string_view(local_a0[0],sVar2,local_30);
scoped_padder::~scoped_padder(local_90);
}
else {
scoped_padder::scoped_padder(local_58,0,(padding_info *)(this + 8),local_30);
scoped_padder::~scoped_padder(local_58);
}
return;
}
|
|
10,050 |
alaya::LinearPoolTest_BoundaryConditionsTest_Test::LinearPoolTest_BoundaryConditionsTest_Test()
|
AlayaLite/tests/utils/query_utils_test.cpp
|
TEST_F(LinearPoolTest, BoundaryConditionsTest) {
// Fill the pool
pool_->insert(1, 2.5);
pool_->insert(2, 1.5);
pool_->insert(3, 3.0);
pool_->insert(4, 0.5);
pool_->insert(5, 4.0);
// Try to insert an element exceeding capacity
EXPECT_FALSE(pool_->insert(6, 5.0)); // Should return false
EXPECT_EQ(pool_->size(), 5); // Size should still be 5
// Try to insert a negative value
EXPECT_TRUE(pool_->insert(7, -1.0)); // Should successfully insert
EXPECT_EQ(pool_->size(), 5); // Size should increase
}
|
O0
|
cpp
|
alaya::LinearPoolTest_BoundaryConditionsTest_Test::LinearPoolTest_BoundaryConditionsTest_Test():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x1b9f0
movq 0x8(%rsp), %rax
leaq 0x157cf4(%rip), %rcx # 0x173dd8
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x18, %rsp
retq
|
_ZN5alaya42LinearPoolTest_BoundaryConditionsTest_TestC2Ev:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]; this
mov [rsp+18h+var_10], rdi
call _ZN5alaya14LinearPoolTestC2Ev; alaya::LinearPoolTest::LinearPoolTest(void)
mov rax, [rsp+18h+var_10]
lea rcx, _ZTVN5alaya42LinearPoolTest_BoundaryConditionsTest_TestE; `vtable for'alaya::LinearPoolTest_BoundaryConditionsTest_Test
add rcx, 10h
mov [rax], rcx
add rsp, 18h
retn
|
alaya::LinearPoolTest_BoundaryConditionsTest_Test * alaya::LinearPoolTest_BoundaryConditionsTest_Test::LinearPoolTest_BoundaryConditionsTest_Test(
alaya::LinearPoolTest_BoundaryConditionsTest_Test *this)
{
alaya::LinearPoolTest_BoundaryConditionsTest_Test *result; // rax
alaya::LinearPoolTest::LinearPoolTest(this);
result = this;
*(_QWORD *)this = &`vtable for'alaya::LinearPoolTest_BoundaryConditionsTest_Test + 2;
return result;
}
|
LinearPoolTest_BoundaryConditionsTest_Test:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0011b9f0
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x273dd8]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RSP,0x18
RET
|
/* alaya::LinearPoolTest_BoundaryConditionsTest_Test::LinearPoolTest_BoundaryConditionsTest_Test()
*/
void __thiscall
alaya::LinearPoolTest_BoundaryConditionsTest_Test::LinearPoolTest_BoundaryConditionsTest_Test
(LinearPoolTest_BoundaryConditionsTest_Test *this)
{
LinearPoolTest::LinearPoolTest((LinearPoolTest *)this);
*(int ***)this = &PTR__LinearPoolTest_BoundaryConditionsTest_Test_00273de8;
return;
}
|
|
10,051 |
composition_destination_atop
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
|
static void composition_destination_atop(uint32_t* dest, int length, const uint32_t* src, uint32_t const_alpha)
{
if(const_alpha == 255) {
for(int i = 0; i < length; i++) {
uint32_t s = src[i];
uint32_t d = dest[i];
dest[i] = INTERPOLATE_PIXEL(d, plutovg_alpha(s), s, plutovg_alpha(~d));
}
} else {
uint32_t cia = 255 - const_alpha;
for(int i = 0; i < length; i++) {
uint32_t s = BYTE_MUL(src[i], const_alpha);
uint32_t d = dest[i];
uint32_t a = plutovg_alpha(s) + cia;
dest[i] = INTERPOLATE_PIXEL(d, a, s, plutovg_alpha(~d));
}
}
}
|
O2
|
c
|
composition_destination_atop:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
testl %esi, %esi
cmovgl %esi, %r15d
cmpl $0xff, %ecx
jne 0x3931f
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x3935c
movl (%rbx,%r12,4), %edx
movl (%r14,%r12,4), %edi
movl %edx, %esi
shrl $0x18, %esi
movl %edi, %ecx
notl %ecx
shrl $0x18, %ecx
callq 0x38dbb
movl %eax, (%r14,%r12,4)
incq %r12
jmp 0x392f8
movl %ecx, %ebp
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x3935c
movl (%rbx,%r12,4), %edi
movl %ebp, %esi
callq 0x38d7d
movl (%r14,%r12,4), %edi
movl %eax, %esi
shrl $0x18, %esi
subl %ebp, %esi
addl $0xff, %esi
movl %edi, %ecx
notl %ecx
shrl $0x18, %ecx
movl %eax, %edx
callq 0x38dbb
movl %eax, (%r14,%r12,4)
incq %r12
jmp 0x39324
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
composition_destination_atop:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rdx
mov r14, rdi
xor r15d, r15d
test esi, esi
cmovg r15d, esi
cmp ecx, 0FFh
jnz short loc_3931F
xor r12d, r12d
loc_392F8:
cmp r15, r12
jz short loc_3935C
mov edx, [rbx+r12*4]
mov edi, [r14+r12*4]
mov esi, edx
shr esi, 18h
mov ecx, edi
not ecx
shr ecx, 18h
call INTERPOLATE_PIXEL
mov [r14+r12*4], eax
inc r12
jmp short loc_392F8
loc_3931F:
mov ebp, ecx
xor r12d, r12d
loc_39324:
cmp r15, r12
jz short loc_3935C
mov edi, [rbx+r12*4]
mov esi, ebp
call BYTE_MUL
mov edi, [r14+r12*4]
mov esi, eax
shr esi, 18h
sub esi, ebp
add esi, 0FFh
mov ecx, edi
not ecx
shr ecx, 18h
mov edx, eax
call INTERPOLATE_PIXEL
mov [r14+r12*4], eax
inc r12
jmp short loc_39324
loc_3935C:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
void composition_destination_atop(long long a1, int a2, long long a3, int a4)
{
long long v5; // r15
long long i; // r12
long long j; // r12
unsigned int v9; // eax
v5 = 0LL;
if ( a2 > 0 )
v5 = (unsigned int)a2;
if ( a4 == 255 )
{
for ( i = 0LL; v5 != i; ++i )
*(_DWORD *)(a1 + 4 * i) = INTERPOLATE_PIXEL(
*(_DWORD *)(a1 + 4 * i),
HIBYTE(*(_DWORD *)(a3 + 4 * i)),
*(_DWORD *)(a3 + 4 * i),
(unsigned int)~*(_DWORD *)(a1 + 4 * i) >> 24);
}
else
{
for ( j = 0LL; v5 != j; ++j )
{
v9 = BYTE_MUL(*(_DWORD *)(a3 + 4 * j), a4);
*(_DWORD *)(a1 + 4 * j) = INTERPOLATE_PIXEL(
*(_DWORD *)(a1 + 4 * j),
HIBYTE(v9) - a4 + 255,
v9,
(unsigned int)~*(_DWORD *)(a1 + 4 * j) >> 24);
}
}
}
|
composition_destination_atop:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDX
MOV R14,RDI
XOR R15D,R15D
TEST ESI,ESI
CMOVG R15D,ESI
CMP ECX,0xff
JNZ 0x0013931f
XOR R12D,R12D
LAB_001392f8:
CMP R15,R12
JZ 0x0013935c
MOV EDX,dword ptr [RBX + R12*0x4]
MOV EDI,dword ptr [R14 + R12*0x4]
MOV ESI,EDX
SHR ESI,0x18
MOV ECX,EDI
NOT ECX
SHR ECX,0x18
CALL 0x00138dbb
MOV dword ptr [R14 + R12*0x4],EAX
INC R12
JMP 0x001392f8
LAB_0013931f:
MOV EBP,ECX
XOR R12D,R12D
LAB_00139324:
CMP R15,R12
JZ 0x0013935c
MOV EDI,dword ptr [RBX + R12*0x4]
MOV ESI,EBP
CALL 0x00138d7d
MOV EDI,dword ptr [R14 + R12*0x4]
MOV ESI,EAX
SHR ESI,0x18
SUB ESI,EBP
ADD ESI,0xff
MOV ECX,EDI
NOT ECX
SHR ECX,0x18
MOV EDX,EAX
CALL 0x00138dbb
MOV dword ptr [R14 + R12*0x4],EAX
INC R12
JMP 0x00139324
LAB_0013935c:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void composition_destination_atop(long param_1,uint param_2,long param_3,int param_4)
{
uint uVar1;
int4 uVar2;
uint uVar3;
ulong uVar4;
ulong uVar5;
uVar5 = 0;
if (0 < (int)param_2) {
uVar5 = (ulong)param_2;
}
if (param_4 == 0xff) {
for (uVar4 = 0; uVar5 != uVar4; uVar4 = uVar4 + 1) {
uVar1 = *(uint *)(param_3 + uVar4 * 4);
uVar3 = *(uint *)(param_1 + uVar4 * 4);
uVar2 = INTERPOLATE_PIXEL(uVar3,uVar1 >> 0x18,uVar1,~uVar3 >> 0x18);
*(int4 *)(param_1 + uVar4 * 4) = uVar2;
}
}
else {
for (uVar4 = 0; uVar5 != uVar4; uVar4 = uVar4 + 1) {
uVar3 = BYTE_MUL(*(int4 *)(param_3 + uVar4 * 4),param_4);
uVar1 = *(uint *)(param_1 + uVar4 * 4);
uVar2 = INTERPOLATE_PIXEL(uVar1,((uVar3 >> 0x18) - param_4) + 0xff,uVar3,~uVar1 >> 0x18);
*(int4 *)(param_1 + uVar4 * 4) = uVar2;
}
}
return;
}
|
|
10,052 |
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>::empty() const
|
monkey531[P]llama/common/json.hpp
|
bool empty() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
{
// null values are empty
return true;
}
case value_t::array:
{
// delegate call to array_t::empty()
return m_data.m_value.array->empty();
}
case value_t::object:
{
// delegate call to object_t::empty()
return m_data.m_value.object->empty();
}
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 are nonempty
return false;
}
}
}
|
O2
|
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>::empty() const:
movzbl (%rdi), %eax
testl %eax, %eax
je 0x683a8
cmpl $0x1, %eax
je 0x68399
cmpl $0x2, %eax
jne 0x683ab
movq 0x8(%rdi), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
sete %al
retq
movb $0x1, %al
retq
xorl %eax, %eax
retq
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5emptyEv:
movzx eax, byte ptr [rdi]
test eax, eax
jz short loc_683A8
cmp eax, 1
jz short loc_68399
cmp eax, 2
jnz short loc_683AB
loc_68399:
mov rax, [rdi+8]
mov rcx, [rax]
cmp rcx, [rax+8]
setz al
retn
loc_683A8:
mov al, 1
retn
loc_683AB:
xor eax, eax
retn
|
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::empty(
unsigned __int8 *a1)
{
int v1; // eax
v1 = *a1;
if ( !*a1 )
return 1;
if ( v1 == 1 || v1 == 2 )
return **((_QWORD **)a1 + 1) == *(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL);
return 0;
}
|
empty:
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x001683a8
CMP EAX,0x1
JZ 0x00168399
CMP EAX,0x2
JNZ 0x001683ab
LAB_00168399:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
SETZ AL
RET
LAB_001683a8:
MOV AL,0x1
RET
LAB_001683ab:
XOR EAX,EAX
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>::empty() const */
int8 __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>
::empty(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
long *plVar2;
bVar1 = *this;
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) {
return 1;
}
if ((bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) &&
(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 0;
}
plVar2 = *(long **)(this + 8);
return CONCAT71((int7)((ulong)plVar2 >> 8),*plVar2 == plVar2[1]);
}
|
|
10,053 |
google::protobuf::internal::ImplicitWeakMessage::~ImplicitWeakMessage()
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/implicit_weak_message.h
|
~ImplicitWeakMessage() override {
// data_ will be null in the default instance, but we can safely call delete
// here because the default instance will never be destroyed.
delete data_;
}
|
O3
|
c
|
google::protobuf::internal::ImplicitWeakMessage::~ImplicitWeakMessage():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x5636a(%rip), %rax # 0x1014a8
movq %rax, (%rdi)
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0xab15b
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0xab15b
callq 0xf330
movq %r14, %rdi
callq 0xf330
leaq 0x561b6(%rip), %rax # 0x101320
addq $0x10, %rax
movq %rax, (%rbx)
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x59494
|
_ZN6google8protobuf8internal19ImplicitWeakMessageD2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, off_1014A8
mov [rdi], rax
mov r14, [rdi+10h]
test r14, r14
jz short loc_AB15B
mov rdi, [r14]; void *
lea rax, [r14+10h]
cmp rdi, rax
jz short loc_AB15B
call __ZdlPv; operator delete(void *)
loc_AB15B:
mov rdi, r14; void *
call __ZdlPv; operator delete(void *)
lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite
add rax, 10h
mov [rbx], rax
add rbx, 8
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata()
|
void google::protobuf::internal::ImplicitWeakMessage::~ImplicitWeakMessage(
google::protobuf::internal::ImplicitWeakMessage *this)
{
void **v1; // r14
*(_QWORD *)this = off_1014A8;
v1 = (void **)*((_QWORD *)this + 2);
if ( v1 && *v1 != v1 + 2 )
operator delete(*v1);
operator delete(v1);
*(_QWORD *)this = &`vtable for'google::protobuf::MessageLite + 2;
google::protobuf::internal::InternalMetadata::~InternalMetadata((google::protobuf::internal::ImplicitWeakMessage *)((char *)this + 8));
}
|
~ImplicitWeakMessage:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x2014a8]
MOV qword ptr [RDI],RAX
MOV R14,qword ptr [RDI + 0x10]
TEST R14,R14
JZ 0x001ab15b
MOV RDI,qword ptr [R14]
LEA RAX,[R14 + 0x10]
CMP RDI,RAX
JZ 0x001ab15b
CALL 0x0010f330
LAB_001ab15b:
MOV RDI,R14
CALL 0x0010f330
LEA RAX,[0x201320]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
ADD RBX,0x8
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00159494
|
/* google::protobuf::internal::ImplicitWeakMessage::~ImplicitWeakMessage() */
void __thiscall
google::protobuf::internal::ImplicitWeakMessage::~ImplicitWeakMessage(ImplicitWeakMessage *this)
{
int8 *puVar1;
*(int ***)this = &PTR__ImplicitWeakMessage_002014a8;
puVar1 = *(int8 **)(this + 0x10);
if ((puVar1 != (int8 *)0x0) && ((int8 *)*puVar1 != puVar1 + 2)) {
operator_delete((int8 *)*puVar1);
}
operator_delete(puVar1);
*(int ***)this = &PTR__MessageLite_00201330;
InternalMetadata::~InternalMetadata((InternalMetadata *)(this + 8));
return;
}
|
|
10,054 |
inline_mysql_cond_init
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_cond_init(
#ifdef HAVE_PSI_COND_INTERFACE
PSI_cond_key key,
#endif
mysql_cond_t *that,
const pthread_condattr_t *attr)
{
#ifdef HAVE_PSI_COND_INTERFACE
that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond);
#else
that->m_psi= NULL;
#endif
return pthread_cond_init(&that->m_cond, attr);
}
|
O0
|
c
|
inline_mysql_cond_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x25ddde(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x60(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2a360
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
inline_mysql_cond_init_1:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+60h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_cond_init
add rsp, 20h
pop rbp
retn
|
long long inline_mysql_cond_init_1(unsigned int a1, long long a2, long long a3)
{
*(_QWORD *)(a2 + 48) = ((long long ( *)(_QWORD, long long))PSI_server[12])(a1, a2);
return pthread_cond_init(a2, a3);
}
|
inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0012a360
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_cond_init(int4 param_1,pthread_cond_t *param_2,pthread_condattr_t *param_3)
{
longlong lVar1;
lVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2);
param_2[1].__align = lVar1;
pthread_cond_init(param_2,param_3);
return;
}
|
|
10,055 |
init_partitioned_key_cache
|
eloqsql/mysys/mf_keycache.c
|
static
int init_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache,
uint key_cache_block_size,
size_t use_mem, uint division_limit,
uint age_threshold, uint changed_blocks_hash_size)
{
int i;
size_t mem_per_cache;
size_t mem_decr;
int cnt;
SIMPLE_KEY_CACHE_CB *partition;
SIMPLE_KEY_CACHE_CB **partition_ptr;
uint partitions= keycache->partitions;
int blocks= 0;
DBUG_ENTER("partitioned_init_key_cache");
keycache->key_cache_block_size = key_cache_block_size;
if (keycache->key_cache_inited)
partition_ptr= keycache->partition_array;
else
{
if(!(partition_ptr=
(SIMPLE_KEY_CACHE_CB **) my_malloc(key_memory_KEY_CACHE,
sizeof(SIMPLE_KEY_CACHE_CB *) *
partitions, MYF(MY_WME))))
DBUG_RETURN(-1);
bzero(partition_ptr, sizeof(SIMPLE_KEY_CACHE_CB *) * partitions);
keycache->partition_array= partition_ptr;
}
mem_per_cache = use_mem / partitions;
mem_decr= mem_per_cache / 5;
for (i= 0; i < (int) partitions; i++)
{
my_bool key_cache_inited= keycache->key_cache_inited;
if (key_cache_inited)
partition= *partition_ptr;
else
{
if (!(partition=
(SIMPLE_KEY_CACHE_CB *) my_malloc(key_memory_KEY_CACHE,
sizeof(SIMPLE_KEY_CACHE_CB),
MYF(MY_WME))))
continue;
partition->key_cache_inited= 0;
}
cnt= init_simple_key_cache(partition, key_cache_block_size, mem_per_cache,
division_limit, age_threshold,
changed_blocks_hash_size);
if (cnt <= 0)
{
end_simple_key_cache(partition, 1);
if (!key_cache_inited)
{
my_free(partition);
partition= 0;
}
if ((i == 0 && cnt < 0) || i > 0)
{
/*
Here we have two cases:
1. i == 0 and cnt < 0
cnt < 0 => mem_per_cache is not big enough to allocate minimal
number of key blocks in the key cache of the partition.
Decrease the the number of the partitions by 1 and start again.
2. i > 0
There is not enough memory for one of the succeeding partitions.
Just skip this partition decreasing the number of partitions in
the key cache by one.
Do not change the value of mem_per_cache in both cases.
*/
if (key_cache_inited)
{
my_free(partition);
partition= 0;
if(key_cache_inited)
memmove(partition_ptr, partition_ptr+1,
sizeof(partition_ptr)*(partitions-i-1));
}
if (!--partitions)
break;
}
else
{
/*
We come here when i == 0 && cnt == 0.
cnt == 0 => the memory allocator fails to allocate a block of
memory of the size mem_per_cache. Decrease the value of
mem_per_cache without changing the current number of partitions
and start again. Make sure that such a decrease may happen not
more than 5 times in total.
*/
if (use_mem <= mem_decr)
break;
use_mem-= mem_decr;
}
i--;
mem_per_cache= use_mem/partitions;
continue;
}
else
{
blocks+= cnt;
*partition_ptr++= partition;
}
}
keycache->partitions= partitions= (uint) (partition_ptr-keycache->partition_array);
keycache->key_cache_mem_size= mem_per_cache * partitions;
for (i= 0; i < (int) partitions; i++)
keycache->partition_array[i]->hash_factor= partitions;
keycache->key_cache_inited= 1;
if (!partitions)
blocks= -1;
DBUG_RETURN(blocks);
}
|
O0
|
c
|
init_partitioned_key_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x5c(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0xe7a10
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0xe7a64
leaq 0xb9b561(%rip), %rax # 0xc82f78
movl (%rax), %edi
movl -0x5c(%rbp), %eax
movl %eax, %esi
shlq $0x3, %rsi
movl $0x10, %edx
callq 0xf3820
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0xe7a44
jmp 0xe7a38
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe7c7b
movq -0x58(%rbp), %rdi
movl -0x5c(%rbp), %eax
movl %eax, %edx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x2a2a0
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl -0x5c(%rbp), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x5, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x40(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jge 0xe7bfa
movq -0x10(%rbp), %rax
movb (%rax), %al
movb %al, -0x61(%rbp)
cmpb $0x0, -0x61(%rbp)
je 0xe7ab5
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0xe7ae3
leaq 0xb9b4bc(%rip), %rax # 0xc82f78
movl (%rax), %edi
movl $0x170, %esi # imm = 0x170
movl $0x10, %edx
callq 0xf3820
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
jne 0xe7adc
jmp 0xe7bec
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
movq -0x50(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x38(%rbp), %rdx
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %r8d
movl -0x2c(%rbp), %r9d
callq 0xe5740
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
jg 0xe7bcb
movq -0x50(%rbp), %rdi
movl $0x1, %esi
callq 0xe6860
cmpb $0x0, -0x61(%rbp)
jne 0xe7b30
movq -0x50(%rbp), %rdi
callq 0xf3ba0
movq $0x0, -0x50(%rbp)
cmpl $0x0, -0x30(%rbp)
jne 0xe7b3c
cmpl $0x0, -0x44(%rbp)
jl 0xe7b42
cmpl $0x0, -0x30(%rbp)
jle 0xe7b95
cmpb $0x0, -0x61(%rbp)
je 0xe7b83
movq -0x50(%rbp), %rdi
callq 0xf3ba0
movq $0x0, -0x50(%rbp)
cmpb $0x0, -0x61(%rbp)
je 0xe7b81
movq -0x58(%rbp), %rdi
movq -0x58(%rbp), %rsi
addq $0x8, %rsi
movl -0x5c(%rbp), %eax
subl -0x30(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x2a120
jmp 0xe7b83
movl -0x5c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x5c(%rbp)
cmpl $0x0, %eax
jne 0xe7b93
jmp 0xe7bfa
jmp 0xe7bb0
movq -0x20(%rbp), %rax
cmpq -0x40(%rbp), %rax
ja 0xe7ba1
jmp 0xe7bfa
movq -0x40(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl -0x5c(%rbp), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x38(%rbp)
jmp 0xe7bec
movl -0x44(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x60(%rbp)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x58(%rbp)
movq %rcx, (%rax)
jmp 0xe7bec
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xe7a8d
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, %ecx
movl %ecx, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x38(%rbp), %rcx
movl -0x5c(%rbp), %eax
imulq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jge 0xe7c5f
movl -0x5c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x30(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, 0x164(%rax)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xe7c33
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
cmpl $0x0, -0x5c(%rbp)
jne 0xe7c73
movl $0xffffffff, -0x60(%rbp) # imm = 0xFFFFFFFF
jmp 0xe7c75
movl -0x60(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
init_partitioned_key_cache:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], r8d
mov [rbp+var_2C], r9d
mov rax, [rbp+var_10]
mov eax, [rax+1Ch]
mov [rbp+var_5C], eax
mov [rbp+var_60], 0
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov [rax+18h], ecx
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_E7A10
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_58], rax
jmp short loc_E7A64
loc_E7A10:
lea rax, key_memory_KEY_CACHE
mov edi, [rax]
mov eax, [rbp+var_5C]
mov esi, eax
shl rsi, 3
mov edx, 10h
call my_malloc
mov [rbp+var_58], rax
cmp rax, 0
jnz short loc_E7A44
jmp short $+2
loc_E7A38:
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_E7C7B
loc_E7A44:
mov rdi, [rbp+var_58]
mov eax, [rbp+var_5C]
mov edx, eax
shl rdx, 3
xor esi, esi
call _memset
mov rcx, [rbp+var_58]
mov rax, [rbp+var_10]
mov [rax+8], rcx
loc_E7A64:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_5C]
xor edx, edx
div rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov ecx, 5
xor edx, edx
div rcx
mov [rbp+var_40], rax
mov [rbp+var_30], 0
loc_E7A8D:
mov eax, [rbp+var_30]
cmp eax, [rbp+var_5C]
jge loc_E7BFA
mov rax, [rbp+var_10]
mov al, [rax]
mov [rbp+var_61], al
cmp [rbp+var_61], 0
jz short loc_E7AB5
mov rax, [rbp+var_58]
mov rax, [rax]
mov [rbp+var_50], rax
jmp short loc_E7AE3
loc_E7AB5:
lea rax, key_memory_KEY_CACHE
mov edi, [rax]
mov esi, 170h
mov edx, 10h
call my_malloc
mov [rbp+var_50], rax
cmp rax, 0
jnz short loc_E7ADC
jmp loc_E7BEC
loc_E7ADC:
mov rax, [rbp+var_50]
mov byte ptr [rax], 0
loc_E7AE3:
mov rdi, [rbp+var_50]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_38]
mov ecx, [rbp+var_24]
mov r8d, [rbp+var_28]
mov r9d, [rbp+var_2C]
call init_simple_key_cache
mov [rbp+var_44], eax
cmp [rbp+var_44], 0
jg loc_E7BCB
mov rdi, [rbp+var_50]
mov esi, 1
call end_simple_key_cache
cmp [rbp+var_61], 0
jnz short loc_E7B30
mov rdi, [rbp+var_50]
call my_free
mov [rbp+var_50], 0
loc_E7B30:
cmp [rbp+var_30], 0
jnz short loc_E7B3C
cmp [rbp+var_44], 0
jl short loc_E7B42
loc_E7B3C:
cmp [rbp+var_30], 0
jle short loc_E7B95
loc_E7B42:
cmp [rbp+var_61], 0
jz short loc_E7B83
mov rdi, [rbp+var_50]
call my_free
mov [rbp+var_50], 0
cmp [rbp+var_61], 0
jz short loc_E7B81
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_58]
add rsi, 8
mov eax, [rbp+var_5C]
sub eax, [rbp+var_30]
sub eax, 1
mov eax, eax
mov edx, eax
shl rdx, 3
call _memmove
loc_E7B81:
jmp short $+2
loc_E7B83:
mov eax, [rbp+var_5C]
add eax, 0FFFFFFFFh
mov [rbp+var_5C], eax
cmp eax, 0
jnz short loc_E7B93
jmp short loc_E7BFA
loc_E7B93:
jmp short loc_E7BB0
loc_E7B95:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_40]
ja short loc_E7BA1
jmp short loc_E7BFA
loc_E7BA1:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
loc_E7BB0:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
mov rax, [rbp+var_20]
mov ecx, [rbp+var_5C]
xor edx, edx
div rcx
mov [rbp+var_38], rax
jmp short loc_E7BEC
loc_E7BCB:
mov eax, [rbp+var_44]
add eax, [rbp+var_60]
mov [rbp+var_60], eax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_58]
mov rdx, rax
add rdx, 8
mov [rbp+var_58], rdx
mov [rax], rcx
jmp short $+2
loc_E7BEC:
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp loc_E7A8D
loc_E7BFA:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
sub rax, rcx
sar rax, 3
mov ecx, eax
mov [rbp+var_5C], ecx
mov rax, [rbp+var_10]
mov [rax+1Ch], ecx
mov rcx, [rbp+var_38]
mov eax, [rbp+var_5C]
imul rcx, rax
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov [rbp+var_30], 0
loc_E7C33:
mov eax, [rbp+var_30]
cmp eax, [rbp+var_5C]
jge short loc_E7C5F
mov ecx, [rbp+var_5C]
mov rax, [rbp+var_10]
mov rax, [rax+8]
movsxd rdx, [rbp+var_30]
mov rax, [rax+rdx*8]
mov [rax+164h], ecx
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp short loc_E7C33
loc_E7C5F:
mov rax, [rbp+var_10]
mov byte ptr [rax], 1
cmp [rbp+var_5C], 0
jnz short loc_E7C73
mov [rbp+var_60], 0FFFFFFFFh
loc_E7C73:
jmp short $+2
loc_E7C75:
mov eax, [rbp+var_60]
mov [rbp+var_4], eax
loc_E7C7B:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
|
long long init_partitioned_key_cache(
char *a1,
unsigned int a2,
unsigned long long a3,
unsigned int a4,
unsigned int a5,
unsigned int a6)
{
int inited; // eax
long long *v7; // rax
char v9; // [rsp+Fh] [rbp-61h]
unsigned int v10; // [rsp+10h] [rbp-60h]
unsigned int v11; // [rsp+14h] [rbp-5Ch]
unsigned int v12; // [rsp+14h] [rbp-5Ch]
long long *v13; // [rsp+18h] [rbp-58h]
_BYTE *v14; // [rsp+20h] [rbp-50h]
int v15; // [rsp+2Ch] [rbp-44h]
unsigned long long v16; // [rsp+30h] [rbp-40h]
unsigned long long v17; // [rsp+38h] [rbp-38h]
int i; // [rsp+40h] [rbp-30h]
int j; // [rsp+40h] [rbp-30h]
v11 = *((_DWORD *)a1 + 7);
v10 = 0;
*((_DWORD *)a1 + 6) = a2;
if ( *a1 )
{
v13 = (long long *)*((_QWORD *)a1 + 1);
}
else
{
v13 = (long long *)my_malloc(key_memory_KEY_CACHE, 8LL * v11, 16LL);
if ( !v13 )
return (unsigned int)-1;
memset(v13, 0LL, 8LL * v11);
*((_QWORD *)a1 + 1) = v13;
}
v17 = a3 / v11;
v16 = v17 / 5;
for ( i = 0; i < (int)v11; ++i )
{
v9 = *a1;
if ( *a1 )
{
v14 = (_BYTE *)*v13;
inited = init_simple_key_cache(*v13, a2, v17, a4, a5, a6);
}
else
{
v14 = (_BYTE *)my_malloc(key_memory_KEY_CACHE, 368LL, 16LL);
if ( !v14 )
continue;
*v14 = 0;
inited = init_simple_key_cache((long long)v14, a2, v17, a4, a5, a6);
}
v15 = inited;
if ( inited > 0 )
{
v10 += inited;
v7 = v13++;
*v7 = (long long)v14;
}
else
{
end_simple_key_cache((long long)v14, 1);
if ( !v9 )
{
my_free(v14);
v14 = 0LL;
}
if ( (i || v15 >= 0) && i <= 0 )
{
if ( a3 <= v16 )
break;
a3 -= v16;
}
else
{
if ( v9 )
{
my_free(v14);
memmove(v13, v13 + 1, 8LL * (v11 - i - 1));
}
if ( !--v11 )
break;
}
--i;
v17 = a3 / v11;
}
}
v12 = ((long long)v13 - *((_QWORD *)a1 + 1)) >> 3;
*((_DWORD *)a1 + 7) = v12;
*((_QWORD *)a1 + 2) = v12 * v17;
for ( j = 0; j < (int)v12; ++j )
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL * j) + 356LL) = v12;
*a1 = 1;
if ( !v12 )
return (unsigned int)-1;
return v10;
}
|
init_partitioned_key_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV dword ptr [RBP + -0x2c],R9D
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0x5c],EAX
MOV dword ptr [RBP + -0x60],0x0
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x18],ECX
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x001e7a10
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001e7a64
LAB_001e7a10:
LEA RAX,[0xd82f78]
MOV EDI,dword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x5c]
MOV ESI,EAX
SHL RSI,0x3
MOV EDX,0x10
CALL 0x001f3820
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JNZ 0x001e7a44
JMP 0x001e7a38
LAB_001e7a38:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001e7c7b
LAB_001e7a44:
MOV RDI,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RBP + -0x5c]
MOV EDX,EAX
SHL RDX,0x3
XOR ESI,ESI
CALL 0x0012a2a0
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_001e7a64:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x5c]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,0x5
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x30],0x0
LAB_001e7a8d:
MOV EAX,dword ptr [RBP + -0x30]
CMP EAX,dword ptr [RBP + -0x5c]
JGE 0x001e7bfa
MOV RAX,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x61],AL
CMP byte ptr [RBP + -0x61],0x0
JZ 0x001e7ab5
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001e7ae3
LAB_001e7ab5:
LEA RAX,[0xd82f78]
MOV EDI,dword ptr [RAX]
MOV ESI,0x170
MOV EDX,0x10
CALL 0x001f3820
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JNZ 0x001e7adc
JMP 0x001e7bec
LAB_001e7adc:
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RAX],0x0
LAB_001e7ae3:
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8D,dword ptr [RBP + -0x28]
MOV R9D,dword ptr [RBP + -0x2c]
CALL 0x001e5740
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],0x0
JG 0x001e7bcb
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,0x1
CALL 0x001e6860
CMP byte ptr [RBP + -0x61],0x0
JNZ 0x001e7b30
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001f3ba0
MOV qword ptr [RBP + -0x50],0x0
LAB_001e7b30:
CMP dword ptr [RBP + -0x30],0x0
JNZ 0x001e7b3c
CMP dword ptr [RBP + -0x44],0x0
JL 0x001e7b42
LAB_001e7b3c:
CMP dword ptr [RBP + -0x30],0x0
JLE 0x001e7b95
LAB_001e7b42:
CMP byte ptr [RBP + -0x61],0x0
JZ 0x001e7b83
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001f3ba0
MOV qword ptr [RBP + -0x50],0x0
CMP byte ptr [RBP + -0x61],0x0
JZ 0x001e7b81
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x58]
ADD RSI,0x8
MOV EAX,dword ptr [RBP + -0x5c]
SUB EAX,dword ptr [RBP + -0x30]
SUB EAX,0x1
MOV EAX,EAX
MOV EDX,EAX
SHL RDX,0x3
CALL 0x0012a120
LAB_001e7b81:
JMP 0x001e7b83
LAB_001e7b83:
MOV EAX,dword ptr [RBP + -0x5c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x5c],EAX
CMP EAX,0x0
JNZ 0x001e7b93
JMP 0x001e7bfa
LAB_001e7b93:
JMP 0x001e7bb0
LAB_001e7b95:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x40]
JA 0x001e7ba1
JMP 0x001e7bfa
LAB_001e7ba1:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001e7bb0:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x5c]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001e7bec
LAB_001e7bcb:
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x60],EAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x58]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RBP + -0x58],RDX
MOV qword ptr [RAX],RCX
JMP 0x001e7bec
LAB_001e7bec:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001e7a8d
LAB_001e7bfa:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
SUB RAX,RCX
SAR RAX,0x3
MOV ECX,EAX
MOV dword ptr [RBP + -0x5c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x1c],ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x5c]
IMUL RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV dword ptr [RBP + -0x30],0x0
LAB_001e7c33:
MOV EAX,dword ptr [RBP + -0x30]
CMP EAX,dword ptr [RBP + -0x5c]
JGE 0x001e7c5f
MOV ECX,dword ptr [RBP + -0x5c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + RDX*0x8]
MOV dword ptr [RAX + 0x164],ECX
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001e7c33
LAB_001e7c5f:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x1
CMP dword ptr [RBP + -0x5c],0x0
JNZ 0x001e7c73
MOV dword ptr [RBP + -0x60],0xffffffff
LAB_001e7c73:
JMP 0x001e7c75
LAB_001e7c75:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x4],EAX
LAB_001e7c7b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int init_partitioned_key_cache
(char *param_1,int4 param_2,ulong param_3,int4 param_4,int4 param_5,
int4 param_6)
{
char cVar1;
int iVar2;
ulong uVar3;
int local_68;
uint local_64;
int8 *local_60;
int1 *local_58;
ulong local_40;
int local_38;
ulong local_28;
local_64 = *(uint *)(param_1 + 0x1c);
local_68 = 0;
*(int4 *)(param_1 + 0x18) = param_2;
if (*param_1 == '\0') {
local_60 = (int8 *)my_malloc(key_memory_KEY_CACHE,(ulong)local_64 << 3,0x10);
if (local_60 == (int8 *)0x0) {
return -1;
}
memset(local_60,0,(ulong)local_64 << 3);
*(int8 **)(param_1 + 8) = local_60;
}
else {
local_60 = *(int8 **)(param_1 + 8);
}
local_40 = param_3 / local_64;
uVar3 = local_40 / 5;
local_28 = param_3;
for (local_38 = 0; local_38 < (int)local_64; local_38 = local_38 + 1) {
cVar1 = *param_1;
if (cVar1 == '\0') {
local_58 = (int1 *)my_malloc(key_memory_KEY_CACHE,0x170,0x10);
if (local_58 != (int1 *)0x0) {
*local_58 = 0;
goto LAB_001e7ae3;
}
}
else {
local_58 = (int1 *)*local_60;
LAB_001e7ae3:
iVar2 = init_simple_key_cache(local_58,param_2,local_40,param_4,param_5,param_6);
if (iVar2 < 1) {
end_simple_key_cache(local_58,1);
if (cVar1 == '\0') {
my_free(local_58);
local_58 = (int1 *)0x0;
}
if (((local_38 == 0) && (iVar2 < 0)) || (0 < local_38)) {
if ((cVar1 != '\0') && (my_free(local_58), cVar1 != '\0')) {
memmove(local_60,local_60 + 1,(ulong)((local_64 - local_38) - 1) << 3);
}
local_64 = local_64 - 1;
if (local_64 == 0) break;
}
else {
if (local_28 <= uVar3) break;
local_28 = local_28 - uVar3;
}
local_38 = local_38 + -1;
local_40 = local_28 / local_64;
}
else {
local_68 = iVar2 + local_68;
*local_60 = local_58;
local_60 = local_60 + 1;
}
}
}
uVar3 = (long)local_60 - *(long *)(param_1 + 8) >> 3;
iVar2 = (int)uVar3;
*(int *)(param_1 + 0x1c) = iVar2;
*(ulong *)(param_1 + 0x10) = local_40 * (uVar3 & 0xffffffff);
for (local_38 = 0; local_38 < iVar2; local_38 = local_38 + 1) {
*(int *)(*(long *)(*(long *)(param_1 + 8) + (long)local_38 * 8) + 0x164) = iVar2;
}
*param_1 = '\x01';
if (iVar2 == 0) {
local_68 = -1;
}
return local_68;
}
|
|
10,056 |
fn_format
|
eloqsql/mysys/mf_format.c
|
char * fn_format(char * to, const char *name, const char *dir,
const char *extension, uint flag)
{
char dev[FN_REFLEN], buff[FN_REFLEN], *pos, *startpos;
const char *ext;
reg1 size_t length;
size_t dev_length;
DBUG_ENTER("fn_format");
DBUG_ASSERT(name != NULL);
DBUG_ASSERT(extension != NULL);
DBUG_PRINT("enter",("name: %s dir: %s extension: %s flag: %d",
name,dir,extension,flag));
/* Copy and skip directory */
name+=(length=dirname_part(dev, (startpos=(char *) name), &dev_length));
if (length == 0 || (flag & MY_REPLACE_DIR))
{
/* Use given directory */
convert_dirname(dev,dir,NullS); /* Fix to this OS */
}
else if ((flag & MY_RELATIVE_PATH) && !test_if_hard_path(dev))
{
/* Put 'dir' before the given path */
strmake_buf(buff, dev);
pos=convert_dirname(dev,dir,NullS);
strmake(pos,buff,sizeof(buff)-1- (int) (pos-dev));
}
if (flag & MY_PACK_FILENAME)
pack_dirname(dev,dev); /* Put in ./.. and ~/.. */
if (flag & MY_UNPACK_FILENAME)
(void) unpack_dirname(dev,dev); /* Replace ~/.. with dir */
if (!(flag & MY_APPEND_EXT) &&
(pos= (char*) strchr(name,FN_EXTCHAR)) != NullS)
{
if ((flag & MY_REPLACE_EXT) == 0) /* If we should keep old ext */
{
length=strlength(name); /* Use old extension */
ext = "";
}
else
{
length= (size_t) (pos-(char*) name); /* Change extension */
ext= extension;
}
}
else
{
length=strlength(name); /* No ext, use the now one */
ext=extension;
}
if (strlen(dev)+length+strlen(ext) >= FN_REFLEN || length >= FN_LEN )
{
/* To long path, return original or NULL */
size_t tmp_length;
if (flag & MY_SAFE_PATH)
DBUG_RETURN(NullS);
tmp_length= strlength(startpos);
DBUG_PRINT("error",("dev: '%s' ext: '%s' length: %u",dev,ext,
(uint) length));
(void) strmake(to,startpos,MY_MIN(tmp_length,FN_REFLEN-1));
}
else
{
if (to == startpos)
{
bmove(buff,(uchar*) name,length); /* Save name for last copy */
name=buff;
}
pos=strmake(strmov(to,dev),name,length);
(void) strmov(pos,ext); /* Don't convert extension */
}
if (flag & MY_RETURN_REAL_PATH)
(void) my_realpath(to, to, MYF(0));
else if (flag & MY_RESOLVE_SYMLINKS)
{
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
DBUG_RETURN(to);
}
|
O0
|
c
|
fn_format:
pushq %rbp
movq %rsp, %rbp
subq $0x6a0, %rsp # imm = 0x6A0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x620(%rbp)
movq %rsi, -0x628(%rbp)
movq %rdx, -0x630(%rbp)
movq %rcx, -0x638(%rbp)
movl %r8d, -0x63c(%rbp)
jmp 0xdf7fd
jmp 0xdf7ff
jmp 0xdf801
jmp 0xdf803
jmp 0xdf805
leaq -0x210(%rbp), %rdi
movq -0x628(%rbp), %rsi
movq %rsi, -0x650(%rbp)
leaq -0x668(%rbp), %rdx
callq 0xdf6a0
movq %rax, -0x660(%rbp)
addq -0x628(%rbp), %rax
movq %rax, -0x628(%rbp)
cmpq $0x0, -0x660(%rbp)
je 0xdf853
movl -0x63c(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xdf86f
leaq -0x210(%rbp), %rdi
movq -0x630(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xdf700
jmp 0xdf91f
movl -0x63c(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xdf91d
leaq -0x210(%rbp), %rdi
callq 0xf03e0
cmpl $0x0, %eax
jne 0xdf91d
leaq -0x610(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx # imm = 0x200
callq 0x2a2c0
movb $0x2, -0x610(%rbp)
leaq -0x410(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14de60
movq %rax, -0x670(%rbp)
leaq -0x210(%rbp), %rdi
movq -0x630(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xdf700
movq %rax, -0x648(%rbp)
movq -0x648(%rbp), %rdi
leaq -0x410(%rbp), %rsi
movq -0x648(%rbp), %rax
leaq -0x210(%rbp), %rcx
subq %rcx, %rax
cltq
movl $0x1ff, %edx # imm = 0x1FF
subq %rax, %rdx
callq 0x14de60
jmp 0xdf91f
movl -0x63c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xdf940
leaq -0x210(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0xe8920
movl -0x63c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xdf961
leaq -0x210(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0xe93a0
movl -0x63c(%rbp), %eax
andl $0x100, %eax # imm = 0x100
cmpl $0x0, %eax
jne 0xdf9e8
movq -0x628(%rbp), %rdi
movl $0x2e, %esi
callq 0x2a410
movq %rax, -0x648(%rbp)
cmpq $0x0, %rax
je 0xdf9e8
movl -0x63c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0xdf9c0
movq -0x628(%rbp), %rdi
callq 0xdfc10
movq %rax, -0x660(%rbp)
leaq 0x782f6(%rip), %rax # 0x157cad
movq %rax, -0x658(%rbp)
jmp 0xdf9e6
movq -0x648(%rbp), %rax
movq -0x628(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x660(%rbp)
movq -0x638(%rbp), %rax
movq %rax, -0x658(%rbp)
jmp 0xdfa09
movq -0x628(%rbp), %rdi
callq 0xdfc10
movq %rax, -0x660(%rbp)
movq -0x638(%rbp), %rax
movq %rax, -0x658(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x2a350
addq -0x660(%rbp), %rax
movq %rax, -0x680(%rbp)
movq -0x658(%rbp), %rdi
callq 0x2a350
movq %rax, %rcx
movq -0x680(%rbp), %rax
addq %rcx, %rax
cmpq $0x200, %rax # imm = 0x200
jae 0xdfa55
cmpq $0x100, -0x660(%rbp) # imm = 0x100
jb 0xdfaed
movl -0x63c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xdfa75
jmp 0xdfa65
movq $0x0, -0x618(%rbp)
jmp 0xdfbd9
movq -0x650(%rbp), %rdi
callq 0xdfc10
movq %rax, -0x678(%rbp)
jmp 0xdfa8a
movq -0x620(%rbp), %rax
movq %rax, -0x690(%rbp)
movq -0x650(%rbp), %rax
movq %rax, -0x688(%rbp)
cmpq $0x1ff, -0x678(%rbp) # imm = 0x1FF
jae 0xdfac3
movq -0x678(%rbp), %rax
movq %rax, -0x698(%rbp)
jmp 0xdfad1
movl $0x1ff, %eax # imm = 0x1FF
movq %rax, -0x698(%rbp)
jmp 0xdfad1
movq -0x688(%rbp), %rsi
movq -0x690(%rbp), %rdi
movq -0x698(%rbp), %rdx
callq 0x14de60
jmp 0xdfb68
movq -0x620(%rbp), %rax
cmpq -0x650(%rbp), %rax
jne 0xdfb25
leaq -0x410(%rbp), %rdi
movq -0x628(%rbp), %rsi
movq -0x660(%rbp), %rdx
callq 0x2a130
leaq -0x410(%rbp), %rax
movq %rax, -0x628(%rbp)
movq -0x620(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x2a730
movq %rax, %rdi
movq -0x628(%rbp), %rsi
movq -0x660(%rbp), %rdx
callq 0x14de60
movq %rax, -0x648(%rbp)
movq -0x648(%rbp), %rdi
movq -0x658(%rbp), %rsi
callq 0x2a730
movl -0x63c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xdfb8f
movq -0x620(%rbp), %rdi
movq -0x620(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xf5080
jmp 0xdfbc9
movl -0x63c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xdfbc7
leaq -0x410(%rbp), %rdi
movq -0x620(%rbp), %rsi
callq 0x2a730
movq -0x620(%rbp), %rdi
leaq -0x410(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xf4e80
jmp 0xdfbc9
jmp 0xdfbcb
movq -0x620(%rbp), %rax
movq %rax, -0x618(%rbp)
movq -0x618(%rbp), %rax
movq %rax, -0x6a0(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xdfc09
movq -0x6a0(%rbp), %rax
addq $0x6a0, %rsp # imm = 0x6A0
popq %rbp
retq
callq 0x2a270
nop
|
fn_format:
push rbp
mov rbp, rsp
sub rsp, 6A0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_620], rdi
mov [rbp+var_628], rsi
mov [rbp+var_630], rdx
mov [rbp+var_638], rcx
mov [rbp+var_63C], r8d
jmp short $+2
loc_DF7FD:
jmp short $+2
loc_DF7FF:
jmp short $+2
loc_DF801:
jmp short $+2
loc_DF803:
jmp short $+2
loc_DF805:
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_628]
mov [rbp+var_650], rsi
lea rdx, [rbp+var_668]
call dirname_part
mov [rbp+var_660], rax
add rax, [rbp+var_628]
mov [rbp+var_628], rax
cmp [rbp+var_660], 0
jz short loc_DF853
mov eax, [rbp+var_63C]
and eax, 1
cmp eax, 0
jz short loc_DF86F
loc_DF853:
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_630]
xor eax, eax
mov edx, eax
call convert_dirname
jmp loc_DF91F
loc_DF86F:
mov eax, [rbp+var_63C]
and eax, 80h
cmp eax, 0
jz loc_DF91D
lea rdi, [rbp+var_210]
call test_if_hard_path
cmp eax, 0
jnz loc_DF91D
lea rdi, [rbp+var_610]
xor esi, esi
mov edx, 200h
call _memset
mov [rbp+var_610], 2
lea rdi, [rbp+var_410]
lea rsi, [rbp+var_210]
mov edx, 1FFh
call strmake
mov [rbp+var_670], rax
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_630]
xor eax, eax
mov edx, eax
call convert_dirname
mov [rbp+var_648], rax
mov rdi, [rbp+var_648]
lea rsi, [rbp+var_410]
mov rax, [rbp+var_648]
lea rcx, [rbp+var_210]
sub rax, rcx
cdqe
mov edx, 1FFh
sub rdx, rax
call strmake
loc_DF91D:
jmp short $+2
loc_DF91F:
mov eax, [rbp+var_63C]
and eax, 8
cmp eax, 0
jz short loc_DF940
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_210]
call pack_dirname
loc_DF940:
mov eax, [rbp+var_63C]
and eax, 4
cmp eax, 0
jz short loc_DF961
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_210]
call unpack_dirname
loc_DF961:
mov eax, [rbp+var_63C]
and eax, 100h
cmp eax, 0
jnz short loc_DF9E8
mov rdi, [rbp+var_628]
mov esi, 2Eh ; '.'
call _strchr
mov [rbp+var_648], rax
cmp rax, 0
jz short loc_DF9E8
mov eax, [rbp+var_63C]
and eax, 2
cmp eax, 0
jnz short loc_DF9C0
mov rdi, [rbp+var_628]
call strlength
mov [rbp+var_660], rax
lea rax, asc_157CA9+4; ""
mov [rbp+var_658], rax
jmp short loc_DF9E6
loc_DF9C0:
mov rax, [rbp+var_648]
mov rcx, [rbp+var_628]
sub rax, rcx
mov [rbp+var_660], rax
mov rax, [rbp+var_638]
mov [rbp+var_658], rax
loc_DF9E6:
jmp short loc_DFA09
loc_DF9E8:
mov rdi, [rbp+var_628]
call strlength
mov [rbp+var_660], rax
mov rax, [rbp+var_638]
mov [rbp+var_658], rax
loc_DFA09:
lea rdi, [rbp+var_210]
call _strlen
add rax, [rbp+var_660]
mov [rbp+var_680], rax
mov rdi, [rbp+var_658]
call _strlen
mov rcx, rax
mov rax, [rbp+var_680]
add rax, rcx
cmp rax, 200h
jnb short loc_DFA55
cmp [rbp+var_660], 100h
jb loc_DFAED
loc_DFA55:
mov eax, [rbp+var_63C]
and eax, 40h
cmp eax, 0
jz short loc_DFA75
jmp short $+2
loc_DFA65:
mov [rbp+var_618], 0
jmp loc_DFBD9
loc_DFA75:
mov rdi, [rbp+var_650]
call strlength
mov [rbp+var_678], rax
jmp short $+2
loc_DFA8A:
mov rax, [rbp+var_620]
mov [rbp+var_690], rax
mov rax, [rbp+var_650]
mov [rbp+var_688], rax
cmp [rbp+var_678], 1FFh
jnb short loc_DFAC3
mov rax, [rbp+var_678]
mov [rbp+var_698], rax
jmp short loc_DFAD1
loc_DFAC3:
mov eax, 1FFh
mov [rbp+var_698], rax
jmp short $+2
loc_DFAD1:
mov rsi, [rbp+var_688]
mov rdi, [rbp+var_690]
mov rdx, [rbp+var_698]
call strmake
jmp short loc_DFB68
loc_DFAED:
mov rax, [rbp+var_620]
cmp rax, [rbp+var_650]
jnz short loc_DFB25
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_628]
mov rdx, [rbp+var_660]
call _memmove
lea rax, [rbp+var_410]
mov [rbp+var_628], rax
loc_DFB25:
mov rdi, [rbp+var_620]
lea rsi, [rbp+var_210]
call _stpcpy
mov rdi, rax
mov rsi, [rbp+var_628]
mov rdx, [rbp+var_660]
call strmake
mov [rbp+var_648], rax
mov rdi, [rbp+var_648]
mov rsi, [rbp+var_658]
call _stpcpy
loc_DFB68:
mov eax, [rbp+var_63C]
and eax, 20h
cmp eax, 0
jz short loc_DFB8F
mov rdi, [rbp+var_620]
mov rsi, [rbp+var_620]
xor eax, eax
mov edx, eax
call my_realpath
jmp short loc_DFBC9
loc_DFB8F:
mov eax, [rbp+var_63C]
and eax, 10h
cmp eax, 0
jz short loc_DFBC7
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_620]
call _stpcpy
mov rdi, [rbp+var_620]
lea rsi, [rbp+var_410]
xor eax, eax
mov edx, eax
call my_readlink
loc_DFBC7:
jmp short $+2
loc_DFBC9:
jmp short $+2
loc_DFBCB:
mov rax, [rbp+var_620]
mov [rbp+var_618], rax
loc_DFBD9:
mov rax, [rbp+var_618]
mov [rbp+var_6A0], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_DFC09
mov rax, [rbp+var_6A0]
add rsp, 6A0h
pop rbp
retn
loc_DFC09:
call ___stack_chk_fail
|
_BYTE * fn_format(_BYTE *a1, _BYTE *a2, long long a3, char *a4, int a5)
{
long long v5; // rax
long long v6; // rax
unsigned long long v8; // [rsp+20h] [rbp-680h]
unsigned long long v9; // [rsp+28h] [rbp-678h]
long long v10; // [rsp+38h] [rbp-668h] BYREF
unsigned long long v11; // [rsp+40h] [rbp-660h]
char *v12; // [rsp+48h] [rbp-658h]
_BYTE *v13; // [rsp+50h] [rbp-650h]
_BYTE *v14; // [rsp+58h] [rbp-648h]
int v15; // [rsp+64h] [rbp-63Ch]
char *v16; // [rsp+68h] [rbp-638h]
long long v17; // [rsp+70h] [rbp-630h]
_BYTE *v18; // [rsp+78h] [rbp-628h]
_BYTE *v19; // [rsp+80h] [rbp-620h]
char v21[512]; // [rsp+90h] [rbp-610h] BYREF
_BYTE v22[512]; // [rsp+290h] [rbp-410h] BYREF
_BYTE v23[520]; // [rsp+490h] [rbp-210h] BYREF
unsigned long long v24; // [rsp+698h] [rbp-8h]
v24 = __readfsqword(0x28u);
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
v13 = a2;
v11 = dirname_part((long long)v23, a2, &v10);
v18 += v11;
if ( v11 && (v15 & 1) == 0 )
{
if ( (v15 & 0x80) != 0 && !(unsigned int)test_if_hard_path(v23) )
{
memset(v21, 0LL, sizeof(v21));
v21[0] = 2;
strmake(v22, v23, 511LL);
v14 = convert_dirname(v23, v17, 0LL);
strmake(v14, v22, 511LL - (int)((_DWORD)v14 - (unsigned int)v23));
}
}
else
{
convert_dirname(v23, v17, 0LL);
}
if ( (v15 & 8) != 0 )
pack_dirname(v23, v23);
if ( (v15 & 4) != 0 )
unpack_dirname(v23, v23);
if ( (v15 & 0x100) != 0 || (v14 = (_BYTE *)strchr(v18, 46LL)) == 0LL )
{
v11 = strlength(v18);
v12 = v16;
}
else if ( (v15 & 2) != 0 )
{
v11 = v14 - v18;
v12 = v16;
}
else
{
v11 = strlength(v18);
v12 = "";
}
v5 = strlen(v23);
v8 = v11 + v5;
if ( strlen(v12) + v8 < 0x200 && v11 < 0x100 )
{
if ( v19 == v13 )
{
memmove(v22, v18, v11);
v18 = v22;
}
v6 = stpcpy(v19, v23);
v14 = (_BYTE *)strmake(v6, v18, v11);
stpcpy(v14, v12);
}
else
{
if ( (v15 & 0x40) != 0 )
return 0LL;
v9 = strlength(v13);
if ( v9 >= 0x1FF )
strmake(v19, v13, 511LL);
else
strmake(v19, v13, v9);
}
if ( (v15 & 0x20) != 0 )
{
my_realpath(v19, v19, 0LL);
}
else if ( (v15 & 0x10) != 0 )
{
stpcpy(v22, v19);
my_readlink(v19, v22, 0LL);
}
return v19;
}
|
fn_format:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x6a0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x620],RDI
MOV qword ptr [RBP + -0x628],RSI
MOV qword ptr [RBP + -0x630],RDX
MOV qword ptr [RBP + -0x638],RCX
MOV dword ptr [RBP + -0x63c],R8D
JMP 0x001df7fd
LAB_001df7fd:
JMP 0x001df7ff
LAB_001df7ff:
JMP 0x001df801
LAB_001df801:
JMP 0x001df803
LAB_001df803:
JMP 0x001df805
LAB_001df805:
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x628]
MOV qword ptr [RBP + -0x650],RSI
LEA RDX,[RBP + -0x668]
CALL 0x001df6a0
MOV qword ptr [RBP + -0x660],RAX
ADD RAX,qword ptr [RBP + -0x628]
MOV qword ptr [RBP + -0x628],RAX
CMP qword ptr [RBP + -0x660],0x0
JZ 0x001df853
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001df86f
LAB_001df853:
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x630]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001df700
JMP 0x001df91f
LAB_001df86f:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001df91d
LEA RDI,[RBP + -0x210]
CALL 0x001f03e0
CMP EAX,0x0
JNZ 0x001df91d
LEA RDI,[RBP + -0x610]
XOR ESI,ESI
MOV EDX,0x200
CALL 0x0012a2c0
MOV byte ptr [RBP + -0x610],0x2
LEA RDI,[RBP + -0x410]
LEA RSI,[RBP + -0x210]
MOV EDX,0x1ff
CALL 0x0024de60
MOV qword ptr [RBP + -0x670],RAX
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x630]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001df700
MOV qword ptr [RBP + -0x648],RAX
MOV RDI,qword ptr [RBP + -0x648]
LEA RSI,[RBP + -0x410]
MOV RAX,qword ptr [RBP + -0x648]
LEA RCX,[RBP + -0x210]
SUB RAX,RCX
CDQE
MOV EDX,0x1ff
SUB RDX,RAX
CALL 0x0024de60
LAB_001df91d:
JMP 0x001df91f
LAB_001df91f:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001df940
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x210]
CALL 0x001e8920
LAB_001df940:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001df961
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x210]
CALL 0x001e93a0
LAB_001df961:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x100
CMP EAX,0x0
JNZ 0x001df9e8
MOV RDI,qword ptr [RBP + -0x628]
MOV ESI,0x2e
CALL 0x0012a410
MOV qword ptr [RBP + -0x648],RAX
CMP RAX,0x0
JZ 0x001df9e8
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x001df9c0
MOV RDI,qword ptr [RBP + -0x628]
CALL 0x001dfc10
MOV qword ptr [RBP + -0x660],RAX
LEA RAX,[0x257cad]
MOV qword ptr [RBP + -0x658],RAX
JMP 0x001df9e6
LAB_001df9c0:
MOV RAX,qword ptr [RBP + -0x648]
MOV RCX,qword ptr [RBP + -0x628]
SUB RAX,RCX
MOV qword ptr [RBP + -0x660],RAX
MOV RAX,qword ptr [RBP + -0x638]
MOV qword ptr [RBP + -0x658],RAX
LAB_001df9e6:
JMP 0x001dfa09
LAB_001df9e8:
MOV RDI,qword ptr [RBP + -0x628]
CALL 0x001dfc10
MOV qword ptr [RBP + -0x660],RAX
MOV RAX,qword ptr [RBP + -0x638]
MOV qword ptr [RBP + -0x658],RAX
LAB_001dfa09:
LEA RDI,[RBP + -0x210]
CALL 0x0012a350
ADD RAX,qword ptr [RBP + -0x660]
MOV qword ptr [RBP + -0x680],RAX
MOV RDI,qword ptr [RBP + -0x658]
CALL 0x0012a350
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x680]
ADD RAX,RCX
CMP RAX,0x200
JNC 0x001dfa55
CMP qword ptr [RBP + -0x660],0x100
JC 0x001dfaed
LAB_001dfa55:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001dfa75
JMP 0x001dfa65
LAB_001dfa65:
MOV qword ptr [RBP + -0x618],0x0
JMP 0x001dfbd9
LAB_001dfa75:
MOV RDI,qword ptr [RBP + -0x650]
CALL 0x001dfc10
MOV qword ptr [RBP + -0x678],RAX
JMP 0x001dfa8a
LAB_001dfa8a:
MOV RAX,qword ptr [RBP + -0x620]
MOV qword ptr [RBP + -0x690],RAX
MOV RAX,qword ptr [RBP + -0x650]
MOV qword ptr [RBP + -0x688],RAX
CMP qword ptr [RBP + -0x678],0x1ff
JNC 0x001dfac3
MOV RAX,qword ptr [RBP + -0x678]
MOV qword ptr [RBP + -0x698],RAX
JMP 0x001dfad1
LAB_001dfac3:
MOV EAX,0x1ff
MOV qword ptr [RBP + -0x698],RAX
JMP 0x001dfad1
LAB_001dfad1:
MOV RSI,qword ptr [RBP + -0x688]
MOV RDI,qword ptr [RBP + -0x690]
MOV RDX,qword ptr [RBP + -0x698]
CALL 0x0024de60
JMP 0x001dfb68
LAB_001dfaed:
MOV RAX,qword ptr [RBP + -0x620]
CMP RAX,qword ptr [RBP + -0x650]
JNZ 0x001dfb25
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x628]
MOV RDX,qword ptr [RBP + -0x660]
CALL 0x0012a130
LEA RAX,[RBP + -0x410]
MOV qword ptr [RBP + -0x628],RAX
LAB_001dfb25:
MOV RDI,qword ptr [RBP + -0x620]
LEA RSI,[RBP + -0x210]
CALL 0x0012a730
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x628]
MOV RDX,qword ptr [RBP + -0x660]
CALL 0x0024de60
MOV qword ptr [RBP + -0x648],RAX
MOV RDI,qword ptr [RBP + -0x648]
MOV RSI,qword ptr [RBP + -0x658]
CALL 0x0012a730
LAB_001dfb68:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001dfb8f
MOV RDI,qword ptr [RBP + -0x620]
MOV RSI,qword ptr [RBP + -0x620]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f5080
JMP 0x001dfbc9
LAB_001dfb8f:
MOV EAX,dword ptr [RBP + -0x63c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001dfbc7
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x620]
CALL 0x0012a730
MOV RDI,qword ptr [RBP + -0x620]
LEA RSI,[RBP + -0x410]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f4e80
LAB_001dfbc7:
JMP 0x001dfbc9
LAB_001dfbc9:
JMP 0x001dfbcb
LAB_001dfbcb:
MOV RAX,qword ptr [RBP + -0x620]
MOV qword ptr [RBP + -0x618],RAX
LAB_001dfbd9:
MOV RAX,qword ptr [RBP + -0x618]
MOV qword ptr [RBP + -0x6a0],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001dfc09
MOV RAX,qword ptr [RBP + -0x6a0]
ADD RSP,0x6a0
POP RBP
RET
LAB_001dfc09:
CALL 0x0012a270
|
char * fn_format(char *param_1,char *param_2,int8 param_3,char *param_4,uint param_5)
{
int iVar1;
size_t sVar2;
long lVar3;
char *pcVar4;
long in_FS_OFFSET;
ulong local_6a0;
int1 local_670 [8];
ulong local_668;
char *local_660;
char *local_658;
char *local_650;
uint local_644;
char *local_640;
int8 local_638;
char *local_630;
char *local_628;
char *local_620;
int1 local_618 [512];
char local_418 [512];
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_658 = param_2;
local_644 = param_5;
local_640 = param_4;
local_638 = param_3;
local_630 = param_2;
local_628 = param_1;
local_668 = dirname_part(local_218,param_2,local_670);
local_630 = local_630 + local_668;
if ((local_668 == 0) || ((local_644 & 1) != 0)) {
convert_dirname(local_218,local_638,0);
}
else if (((local_644 & 0x80) != 0) && (iVar1 = test_if_hard_path(local_218), iVar1 == 0)) {
memset(local_618,0,0x200);
local_618[0] = 2;
strmake(local_418,local_218,0x1ff);
local_650 = (char *)convert_dirname(local_218,local_638,0);
strmake(local_650,local_418,0x1ff - (long)((int)local_650 - (int)local_218));
}
if ((local_644 & 8) != 0) {
pack_dirname(local_218,local_218);
}
if ((local_644 & 4) != 0) {
unpack_dirname(local_218,local_218);
}
if (((local_644 & 0x100) == 0) && (local_650 = strchr(local_630,0x2e), local_650 != (char *)0x0))
{
if ((local_644 & 2) == 0) {
local_668 = strlength(local_630);
local_660 = "";
}
else {
local_668 = (long)local_650 - (long)local_630;
local_660 = local_640;
}
}
else {
local_668 = strlength(local_630);
local_660 = local_640;
}
sVar2 = strlen(local_218);
lVar3 = sVar2 + local_668;
sVar2 = strlen(local_660);
if ((lVar3 + sVar2 < 0x200) && (local_668 < 0x100)) {
if (local_628 == local_658) {
memmove(local_418,local_630,local_668);
local_630 = local_418;
}
pcVar4 = stpcpy(local_628,local_218);
local_650 = (char *)strmake(pcVar4,local_630,local_668);
stpcpy(local_650,local_660);
}
else {
if ((local_644 & 0x40) != 0) {
local_620 = (char *)0x0;
goto LAB_001dfbd9;
}
local_6a0 = strlength(local_658);
if (0x1fe < local_6a0) {
local_6a0 = 0x1ff;
}
strmake(local_628,local_658,local_6a0);
}
if ((local_644 & 0x20) == 0) {
if ((local_644 & 0x10) != 0) {
stpcpy(local_418,local_628);
my_readlink(local_628,local_418,0);
}
}
else {
my_realpath(local_628,local_628,0);
}
local_620 = local_628;
LAB_001dfbd9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_620;
}
|
|
10,057 |
fn_format
|
eloqsql/mysys/mf_format.c
|
char * fn_format(char * to, const char *name, const char *dir,
const char *extension, uint flag)
{
char dev[FN_REFLEN], buff[FN_REFLEN], *pos, *startpos;
const char *ext;
reg1 size_t length;
size_t dev_length;
DBUG_ENTER("fn_format");
DBUG_ASSERT(name != NULL);
DBUG_ASSERT(extension != NULL);
DBUG_PRINT("enter",("name: %s dir: %s extension: %s flag: %d",
name,dir,extension,flag));
/* Copy and skip directory */
name+=(length=dirname_part(dev, (startpos=(char *) name), &dev_length));
if (length == 0 || (flag & MY_REPLACE_DIR))
{
/* Use given directory */
convert_dirname(dev,dir,NullS); /* Fix to this OS */
}
else if ((flag & MY_RELATIVE_PATH) && !test_if_hard_path(dev))
{
/* Put 'dir' before the given path */
strmake_buf(buff, dev);
pos=convert_dirname(dev,dir,NullS);
strmake(pos,buff,sizeof(buff)-1- (int) (pos-dev));
}
if (flag & MY_PACK_FILENAME)
pack_dirname(dev,dev); /* Put in ./.. and ~/.. */
if (flag & MY_UNPACK_FILENAME)
(void) unpack_dirname(dev,dev); /* Replace ~/.. with dir */
if (!(flag & MY_APPEND_EXT) &&
(pos= (char*) strchr(name,FN_EXTCHAR)) != NullS)
{
if ((flag & MY_REPLACE_EXT) == 0) /* If we should keep old ext */
{
length=strlength(name); /* Use old extension */
ext = "";
}
else
{
length= (size_t) (pos-(char*) name); /* Change extension */
ext= extension;
}
}
else
{
length=strlength(name); /* No ext, use the now one */
ext=extension;
}
if (strlen(dev)+length+strlen(ext) >= FN_REFLEN || length >= FN_LEN )
{
/* To long path, return original or NULL */
size_t tmp_length;
if (flag & MY_SAFE_PATH)
DBUG_RETURN(NullS);
tmp_length= strlength(startpos);
DBUG_PRINT("error",("dev: '%s' ext: '%s' length: %u",dev,ext,
(uint) length));
(void) strmake(to,startpos,MY_MIN(tmp_length,FN_REFLEN-1));
}
else
{
if (to == startpos)
{
bmove(buff,(uchar*) name,length); /* Save name for last copy */
name=buff;
}
pos=strmake(strmov(to,dev),name,length);
(void) strmov(pos,ext); /* Don't convert extension */
}
if (flag & MY_RETURN_REAL_PATH)
(void) my_realpath(to, to, MYF(0));
else if (flag & MY_RESOLVE_SYMLINKS)
{
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
DBUG_RETURN(to);
}
|
O3
|
c
|
fn_format:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp # imm = 0x428
movl %r8d, %r14d
movq %rcx, -0x438(%rbp)
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, -0x440(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x230(%rbp), %rdi
leaq -0x448(%rbp), %rdx
callq 0x94929
movq %rax, %r13
testq %rax, %rax
setne %al
testb $0x1, %r14b
sete %cl
testb %al, %cl
je 0x94a9b
testb %r14b, %r14b
jns 0x94aac
leaq -0x230(%rbp), %rdi
callq 0x9e7b6
testl %eax, %eax
jne 0x94aac
leaq -0x430(%rbp), %rdi
leaq -0x230(%rbp), %rsi
movl $0x1ff, %ebx # imm = 0x1FF
movl $0x1ff, %edx # imm = 0x1FF
callq 0xd71d8
leaq -0x230(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x9497b
movl %eax, %ecx
leaq -0x230(%rbp), %rdx
subl %edx, %ecx
movslq %ecx, %rcx
subq %rcx, %rbx
movq %rax, %rdi
leaq -0x430(%rbp), %rsi
movq %rbx, %rdx
callq 0xd71d8
jmp 0x94aac
leaq -0x230(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x9497b
testb $0x8, %r14b
je 0x94ac1
leaq -0x230(%rbp), %rdi
movq %rdi, %rsi
callq 0x9af30
testb $0x4, %r14b
je 0x94ad6
leaq -0x230(%rbp), %rdi
movq %rdi, %rsi
callq 0x9b4b6
addq %r15, %r13
btl $0x8, %r14d
jb 0x94b3b
movq %r13, %rdi
movl $0x2e, %esi
callq 0x29440
testq %rax, %rax
je 0x94b3b
movq %rax, %r12
testb $0x2, %r14b
jne 0x94b98
movb (%r13), %al
movq %r13, %rcx
movq %r13, %r12
cmpb $0x20, %al
je 0x94b26
movzbl %al, %eax
testl %eax, %eax
je 0x94b87
movzbl 0x1(%r12), %eax
incq %r12
testl %eax, %eax
je 0x94b77
cmpl $0x20, %eax
jne 0x94b14
movq %r12, %rdx
movb 0x1(%rdx), %al
incq %rdx
cmpb $0x20, %al
je 0x94b29
movq %r12, %rcx
movq %rdx, %r12
jmp 0x94b09
movb (%r13), %al
movq %r13, %rcx
movq %r13, %r12
cmpb $0x20, %al
je 0x94b62
movzbl %al, %eax
testl %eax, %eax
je 0x94b95
movzbl 0x1(%r12), %eax
incq %r12
testl %eax, %eax
je 0x94b98
cmpl $0x20, %eax
jne 0x94b50
movq %r12, %rdx
movb 0x1(%rdx), %al
incq %rdx
cmpb $0x20, %al
je 0x94b65
movq %r12, %rcx
movq %rdx, %r12
jmp 0x94b45
leaq 0x4b29b(%rip), %rax # 0xdfe19
movq %rax, -0x438(%rbp)
jmp 0x94b98
leaq 0x4b28b(%rip), %rax # 0xdfe19
movq %rax, -0x438(%rbp)
movq %rcx, %r12
subq %r13, %r12
leaq -0x230(%rbp), %rdi
callq 0x29350
movq %rax, %rbx
movq -0x438(%rbp), %rdi
callq 0x29350
cmpq $0xff, %r12
ja 0x94c28
addq %r12, %rbx
addq %rax, %rbx
cmpq $0x200, %rbx # imm = 0x200
jae 0x94c28
movq -0x440(%rbp), %rax
cmpq %r15, %rax
movq %rax, %r15
jne 0x94bfa
leaq -0x430(%rbp), %rbx
movl $0x200, %ecx # imm = 0x200
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x294c0
movq %rbx, %r13
leaq -0x230(%rbp), %rsi
movq %r15, %rdi
callq 0x29780
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0xd71d8
movq %rax, %rdi
movq -0x438(%rbp), %rsi
callq 0x29360
jmp 0x94c92
testb $0x40, %r14b
jne 0x94c69
movb (%r15), %cl
movq %r15, %rdx
movq %r15, %rax
cmpb $0x20, %cl
je 0x94c53
movzbl %cl, %ecx
testl %ecx, %ecx
je 0x94c71
movzbl 0x1(%rax), %ecx
incq %rax
testl %ecx, %ecx
je 0x94c6e
cmpl $0x20, %ecx
jne 0x94c43
movq %rax, %rsi
movb 0x1(%rsi), %cl
incq %rsi
cmpb $0x20, %cl
je 0x94c56
movq %rax, %rdx
movq %rsi, %rax
jmp 0x94c37
xorl %r15d, %r15d
jmp 0x94ccc
movq %rax, %rdx
subq %r15, %rdx
movl $0x1ff, %eax # imm = 0x1FF
cmpq %rax, %rdx
cmovaeq %rax, %rdx
movq -0x440(%rbp), %rdi
movq %r15, %rsi
movq %rdi, %r15
callq 0xd71d8
testb $0x20, %r14b
jne 0x94cbf
testb $0x10, %r14b
je 0x94ccc
leaq -0x430(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x29360
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa0cc8
jmp 0x94ccc
movq %r15, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xa0e25
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x94cf0
movq %r15, %rax
addq $0x428, %rsp # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
|
fn_format:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 428h
mov r14d, r8d
mov [rbp+var_438], rcx
mov r12, rdx
mov r15, rsi
mov [rbp+var_440], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rdi, [rbp+var_230]
lea rdx, [rbp+var_448]
call dirname_part
mov r13, rax
test rax, rax
setnz al
test r14b, 1
setz cl
test cl, al
jz short loc_94A9B
test r14b, r14b
jns short loc_94AAC
lea rdi, [rbp+var_230]
call test_if_hard_path
test eax, eax
jnz short loc_94AAC
lea rdi, [rbp+var_430]
lea rsi, [rbp+var_230]
mov ebx, 1FFh
mov edx, 1FFh
call strmake
lea rdi, [rbp+var_230]
mov rsi, r12
xor edx, edx
call convert_dirname
mov ecx, eax
lea rdx, [rbp+var_230]
sub ecx, edx
movsxd rcx, ecx
sub rbx, rcx
mov rdi, rax
lea rsi, [rbp+var_430]
mov rdx, rbx
call strmake
jmp short loc_94AAC
loc_94A9B:
lea rdi, [rbp+var_230]
mov rsi, r12
xor edx, edx
call convert_dirname
loc_94AAC:
test r14b, 8
jz short loc_94AC1
lea rdi, [rbp+var_230]
mov rsi, rdi
call pack_dirname
loc_94AC1:
test r14b, 4
jz short loc_94AD6
lea rdi, [rbp+var_230]
mov rsi, rdi
call unpack_dirname
loc_94AD6:
add r13, r15
bt r14d, 8
jb short loc_94B3B
mov rdi, r13
mov esi, 2Eh ; '.'
call _strchr
test rax, rax
jz short loc_94B3B
mov r12, rax
test r14b, 2
jnz loc_94B98
mov al, [r13+0]
mov rcx, r13
mov r12, r13
loc_94B09:
cmp al, 20h ; ' '
jz short loc_94B26
movzx eax, al
test eax, eax
jz short loc_94B87
loc_94B14:
movzx eax, byte ptr [r12+1]
inc r12
test eax, eax
jz short loc_94B77
cmp eax, 20h ; ' '
jnz short loc_94B14
loc_94B26:
mov rdx, r12
loc_94B29:
mov al, [rdx+1]
inc rdx
cmp al, 20h ; ' '
jz short loc_94B29
mov rcx, r12
mov r12, rdx
jmp short loc_94B09
loc_94B3B:
mov al, [r13+0]
mov rcx, r13
mov r12, r13
loc_94B45:
cmp al, 20h ; ' '
jz short loc_94B62
movzx eax, al
test eax, eax
jz short loc_94B95
loc_94B50:
movzx eax, byte ptr [r12+1]
inc r12
test eax, eax
jz short loc_94B98
cmp eax, 20h ; ' '
jnz short loc_94B50
loc_94B62:
mov rdx, r12
loc_94B65:
mov al, [rdx+1]
inc rdx
cmp al, 20h ; ' '
jz short loc_94B65
mov rcx, r12
mov r12, rdx
jmp short loc_94B45
loc_94B77:
lea rax, asc_DFE15+4; ""
mov [rbp+var_438], rax
jmp short loc_94B98
loc_94B87:
lea rax, asc_DFE15+4; ""
mov [rbp+var_438], rax
loc_94B95:
mov r12, rcx
loc_94B98:
sub r12, r13
lea rdi, [rbp+var_230]
call _strlen
mov rbx, rax
mov rdi, [rbp+var_438]
call _strlen
cmp r12, 0FFh
ja short loc_94C28
add rbx, r12
add rbx, rax
cmp rbx, 200h
jnb short loc_94C28
mov rax, [rbp+var_440]
cmp rax, r15
mov r15, rax
jnz short loc_94BFA
lea rbx, [rbp+var_430]
mov ecx, 200h
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call ___memmove_chk
mov r13, rbx
loc_94BFA:
lea rsi, [rbp+var_230]
mov rdi, r15
call _stpcpy
mov rdi, rax
mov rsi, r13
mov rdx, r12
call strmake
mov rdi, rax
mov rsi, [rbp+var_438]
call _strcpy
jmp short loc_94C92
loc_94C28:
test r14b, 40h
jnz short loc_94C69
mov cl, [r15]
mov rdx, r15
mov rax, r15
loc_94C37:
cmp cl, 20h ; ' '
jz short loc_94C53
movzx ecx, cl
test ecx, ecx
jz short loc_94C71
loc_94C43:
movzx ecx, byte ptr [rax+1]
inc rax
test ecx, ecx
jz short loc_94C6E
cmp ecx, 20h ; ' '
jnz short loc_94C43
loc_94C53:
mov rsi, rax
loc_94C56:
mov cl, [rsi+1]
inc rsi
cmp cl, 20h ; ' '
jz short loc_94C56
mov rdx, rax
mov rax, rsi
jmp short loc_94C37
loc_94C69:
xor r15d, r15d
jmp short loc_94CCC
loc_94C6E:
mov rdx, rax
loc_94C71:
sub rdx, r15
mov eax, 1FFh
cmp rdx, rax
cmovnb rdx, rax
mov rdi, [rbp+var_440]
mov rsi, r15
mov r15, rdi
call strmake
loc_94C92:
test r14b, 20h
jnz short loc_94CBF
test r14b, 10h
jz short loc_94CCC
lea rbx, [rbp+var_430]
mov rdi, rbx
mov rsi, r15
call _strcpy
mov rdi, r15
mov rsi, rbx
xor edx, edx
call my_readlink
jmp short loc_94CCC
loc_94CBF:
mov rdi, r15
mov rsi, r15
xor edx, edx
call my_realpath
loc_94CCC:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_94CF0
mov rax, r15
add rsp, 428h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_94CF0:
call ___stack_chk_fail
|
_BYTE * fn_format(_BYTE *a1, _BYTE *a2, long long a3, char *a4, __int16 a5)
{
long long v8; // r13
_WORD *v9; // rax
_BYTE *v10; // r13
long long v11; // rax
_BYTE *v12; // r12
char v13; // al
_BYTE *v14; // rcx
int v15; // eax
_BYTE *v16; // rdx
char v17; // al
int v18; // eax
_BYTE *v19; // rdx
unsigned long long v20; // r12
long long v21; // rbx
long long v22; // rax
_BYTE *v23; // r15
long long v24; // rax
long long v25; // rax
char v26; // cl
_BYTE *v27; // rdx
_BYTE *v28; // rax
int v29; // ecx
_BYTE *v30; // rsi
unsigned long long v31; // rdx
_BYTE *v32; // rsi
long long v34; // [rsp+8h] [rbp-448h] BYREF
_BYTE *v35; // [rsp+10h] [rbp-440h]
char *v36; // [rsp+18h] [rbp-438h]
_BYTE v37[512]; // [rsp+20h] [rbp-430h] BYREF
_WORD v38[256]; // [rsp+220h] [rbp-230h] BYREF
unsigned long long v39; // [rsp+420h] [rbp-30h]
long long savedregs; // [rsp+450h] [rbp+0h] BYREF
v36 = a4;
v35 = a1;
v39 = __readfsqword(0x28u);
v8 = dirname_part((long long)v38, a2, &v34);
if ( v8 != 0 && (a5 & 1) == 0 )
{
if ( (a5 & 0x80u) != 0 && !(unsigned int)test_if_hard_path(v38) )
{
strmake(v37, v38, 511LL);
v9 = convert_dirname(v38, a3, 0LL);
strmake(v9, v37, 511LL - (int)((_DWORD)v9 - ((unsigned int)&savedregs - 560)));
}
}
else
{
convert_dirname(v38, a3, 0LL);
}
if ( (a5 & 8) != 0 )
pack_dirname(v38, v38);
if ( (a5 & 4) != 0 )
unpack_dirname(v38, v38);
v10 = &a2[v8];
if ( (a5 & 0x100) == 0 )
{
v11 = strchr(v10, 46LL);
if ( v11 )
{
v12 = (_BYTE *)v11;
if ( (a5 & 2) != 0 )
goto LABEL_32;
v13 = *v10;
v14 = v10;
v12 = v10;
while ( v13 == 32 )
{
LABEL_18:
v16 = v12;
do
v13 = *++v16;
while ( v13 == 32 );
v14 = v12;
v12 = v16;
}
if ( v13 )
{
while ( 1 )
{
v15 = (unsigned __int8)*++v12;
if ( !v15 )
break;
if ( v15 == 32 )
goto LABEL_18;
}
v36 = "";
goto LABEL_32;
}
v36 = "";
LABEL_31:
v12 = v14;
goto LABEL_32;
}
}
v17 = *v10;
v14 = v10;
v12 = v10;
while ( v17 == 32 )
{
LABEL_26:
v19 = v12;
do
v17 = *++v19;
while ( v17 == 32 );
v14 = v12;
v12 = v19;
}
if ( !v17 )
goto LABEL_31;
while ( 1 )
{
v18 = (unsigned __int8)*++v12;
if ( !v18 )
break;
if ( v18 == 32 )
goto LABEL_26;
}
LABEL_32:
v20 = v12 - v10;
v21 = strlen(v38);
v22 = strlen(v36);
if ( v20 > 0xFF || v22 + v20 + v21 >= 0x200 )
{
if ( (a5 & 0x40) != 0 )
return 0LL;
v26 = *a2;
v27 = a2;
v28 = a2;
while ( v26 == 32 )
{
LABEL_43:
v30 = v28;
do
v26 = *++v30;
while ( v26 == 32 );
v27 = v28;
v28 = v30;
}
if ( v26 )
{
while ( 1 )
{
v29 = (unsigned __int8)*++v28;
if ( !v29 )
break;
if ( v29 == 32 )
goto LABEL_43;
}
v27 = v28;
}
v31 = v27 - a2;
if ( v31 >= 0x1FF )
v31 = 511LL;
v32 = a2;
v23 = v35;
strmake(v35, v32, v31);
}
else
{
v23 = v35;
if ( v35 == a2 )
{
__memmove_chk(v37, v10, v20, 512LL);
v10 = v37;
}
v24 = stpcpy(v23, v38);
v25 = strmake(v24, v10, v20);
strcpy(v25, v36);
}
if ( (a5 & 0x20) != 0 )
{
my_realpath(v23, v23, 0LL);
}
else if ( (a5 & 0x10) != 0 )
{
strcpy(v37, v23);
my_readlink(v23, v37, 0LL);
}
return v23;
}
|
fn_format:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x428
MOV R14D,R8D
MOV qword ptr [RBP + -0x438],RCX
MOV R12,RDX
MOV R15,RSI
MOV qword ptr [RBP + -0x440],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x230]
LEA RDX,[RBP + -0x448]
CALL 0x00194929
MOV R13,RAX
TEST RAX,RAX
SETNZ AL
TEST R14B,0x1
SETZ CL
TEST CL,AL
JZ 0x00194a9b
TEST R14B,R14B
JNS 0x00194aac
LEA RDI,[RBP + -0x230]
CALL 0x0019e7b6
TEST EAX,EAX
JNZ 0x00194aac
LEA RDI,[RBP + -0x430]
LEA RSI,[RBP + -0x230]
MOV EBX,0x1ff
MOV EDX,0x1ff
CALL 0x001d71d8
LEA RDI,[RBP + -0x230]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0019497b
MOV ECX,EAX
LEA RDX,[RBP + -0x230]
SUB ECX,EDX
MOVSXD RCX,ECX
SUB RBX,RCX
MOV RDI,RAX
LEA RSI,[RBP + -0x430]
MOV RDX,RBX
CALL 0x001d71d8
JMP 0x00194aac
LAB_00194a9b:
LEA RDI,[RBP + -0x230]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0019497b
LAB_00194aac:
TEST R14B,0x8
JZ 0x00194ac1
LEA RDI,[RBP + -0x230]
MOV RSI,RDI
CALL 0x0019af30
LAB_00194ac1:
TEST R14B,0x4
JZ 0x00194ad6
LEA RDI,[RBP + -0x230]
MOV RSI,RDI
CALL 0x0019b4b6
LAB_00194ad6:
ADD R13,R15
BT R14D,0x8
JC 0x00194b3b
MOV RDI,R13
MOV ESI,0x2e
CALL 0x00129440
TEST RAX,RAX
JZ 0x00194b3b
MOV R12,RAX
TEST R14B,0x2
JNZ 0x00194b98
MOV AL,byte ptr [R13]
MOV RCX,R13
MOV R12,R13
LAB_00194b09:
CMP AL,0x20
JZ 0x00194b26
MOVZX EAX,AL
TEST EAX,EAX
JZ 0x00194b87
LAB_00194b14:
MOVZX EAX,byte ptr [R12 + 0x1]
INC R12
TEST EAX,EAX
JZ 0x00194b77
CMP EAX,0x20
JNZ 0x00194b14
LAB_00194b26:
MOV RDX,R12
LAB_00194b29:
MOV AL,byte ptr [RDX + 0x1]
INC RDX
CMP AL,0x20
JZ 0x00194b29
MOV RCX,R12
MOV R12,RDX
JMP 0x00194b09
LAB_00194b3b:
MOV AL,byte ptr [R13]
MOV RCX,R13
MOV R12,R13
LAB_00194b45:
CMP AL,0x20
JZ 0x00194b62
MOVZX EAX,AL
TEST EAX,EAX
JZ 0x00194b95
LAB_00194b50:
MOVZX EAX,byte ptr [R12 + 0x1]
INC R12
TEST EAX,EAX
JZ 0x00194b98
CMP EAX,0x20
JNZ 0x00194b50
LAB_00194b62:
MOV RDX,R12
LAB_00194b65:
MOV AL,byte ptr [RDX + 0x1]
INC RDX
CMP AL,0x20
JZ 0x00194b65
MOV RCX,R12
MOV R12,RDX
JMP 0x00194b45
LAB_00194b77:
LEA RAX,[0x1dfe19]
MOV qword ptr [RBP + -0x438],RAX
JMP 0x00194b98
LAB_00194b87:
LEA RAX,[0x1dfe19]
MOV qword ptr [RBP + -0x438],RAX
LAB_00194b95:
MOV R12,RCX
LAB_00194b98:
SUB R12,R13
LEA RDI,[RBP + -0x230]
CALL 0x00129350
MOV RBX,RAX
MOV RDI,qword ptr [RBP + -0x438]
CALL 0x00129350
CMP R12,0xff
JA 0x00194c28
ADD RBX,R12
ADD RBX,RAX
CMP RBX,0x200
JNC 0x00194c28
MOV RAX,qword ptr [RBP + -0x440]
CMP RAX,R15
MOV R15,RAX
JNZ 0x00194bfa
LEA RBX,[RBP + -0x430]
MOV ECX,0x200
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x001294c0
MOV R13,RBX
LAB_00194bfa:
LEA RSI,[RBP + -0x230]
MOV RDI,R15
CALL 0x00129780
MOV RDI,RAX
MOV RSI,R13
MOV RDX,R12
CALL 0x001d71d8
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x438]
CALL 0x00129360
JMP 0x00194c92
LAB_00194c28:
TEST R14B,0x40
JNZ 0x00194c69
MOV CL,byte ptr [R15]
MOV RDX,R15
MOV RAX,R15
LAB_00194c37:
CMP CL,0x20
JZ 0x00194c53
MOVZX ECX,CL
TEST ECX,ECX
JZ 0x00194c71
LAB_00194c43:
MOVZX ECX,byte ptr [RAX + 0x1]
INC RAX
TEST ECX,ECX
JZ 0x00194c6e
CMP ECX,0x20
JNZ 0x00194c43
LAB_00194c53:
MOV RSI,RAX
LAB_00194c56:
MOV CL,byte ptr [RSI + 0x1]
INC RSI
CMP CL,0x20
JZ 0x00194c56
MOV RDX,RAX
MOV RAX,RSI
JMP 0x00194c37
LAB_00194c69:
XOR R15D,R15D
JMP 0x00194ccc
LAB_00194c6e:
MOV RDX,RAX
LAB_00194c71:
SUB RDX,R15
MOV EAX,0x1ff
CMP RDX,RAX
CMOVNC RDX,RAX
MOV RDI,qword ptr [RBP + -0x440]
MOV RSI,R15
MOV R15,RDI
CALL 0x001d71d8
LAB_00194c92:
TEST R14B,0x20
JNZ 0x00194cbf
TEST R14B,0x10
JZ 0x00194ccc
LEA RBX,[RBP + -0x430]
MOV RDI,RBX
MOV RSI,R15
CALL 0x00129360
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
CALL 0x001a0cc8
JMP 0x00194ccc
LAB_00194cbf:
MOV RDI,R15
MOV RSI,R15
XOR EDX,EDX
CALL 0x001a0e25
LAB_00194ccc:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00194cf0
MOV RAX,R15
ADD RSP,0x428
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00194cf0:
CALL 0x00129270
|
char * fn_format(char *param_1,char *param_2,int8 param_3,char *param_4,uint param_5)
{
char *pcVar1;
char *pcVar2;
char cVar3;
int iVar4;
long lVar5;
int8 uVar6;
char *pcVar7;
size_t sVar8;
size_t sVar9;
char *pcVar10;
ulong uVar11;
char *pcVar12;
long in_FS_OFFSET;
int1 local_450 [8];
char *local_448;
char *local_440;
char local_438 [512];
char local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_448 = param_1;
local_440 = param_4;
lVar5 = dirname_part(local_238,param_2,local_450);
if ((param_5 & 1) == 0 && lVar5 != 0) {
if (((char)param_5 < '\0') && (iVar4 = test_if_hard_path(local_238), iVar4 == 0)) {
strmake(local_438,local_238,0x1ff);
uVar6 = convert_dirname(local_238,param_3,0);
strmake(uVar6,local_438,0x1ff - (long)((int)uVar6 - (int)local_238));
}
}
else {
convert_dirname(local_238,param_3,0);
}
if ((param_5 & 8) != 0) {
pack_dirname(local_238,local_238);
}
if ((param_5 & 4) != 0) {
unpack_dirname(local_238,local_238);
}
pcVar12 = param_2 + lVar5;
if (((param_5 >> 8 & 1) != 0) || (pcVar7 = strchr(pcVar12,0x2e), pcVar7 == (char *)0x0)) {
cVar3 = *pcVar12;
pcVar7 = pcVar12;
pcVar10 = pcVar12;
do {
pcVar2 = pcVar10;
if (cVar3 != ' ') {
if (cVar3 == '\0') goto LAB_00194b98;
do {
pcVar1 = pcVar10 + 1;
pcVar10 = pcVar10 + 1;
pcVar7 = pcVar10;
if (*pcVar1 == '\0') goto LAB_00194b98;
pcVar2 = pcVar10;
} while (*pcVar1 != ' ');
}
do {
pcVar7 = pcVar2;
cVar3 = pcVar10[1];
pcVar10 = pcVar10 + 1;
pcVar2 = pcVar7;
} while (cVar3 == ' ');
} while( true );
}
if ((param_5 & 2) == 0) {
cVar3 = *pcVar12;
pcVar7 = pcVar12;
pcVar10 = pcVar12;
do {
pcVar2 = pcVar10;
if (cVar3 != ' ') {
if (cVar3 == '\0') {
local_440 = "";
break;
}
do {
pcVar7 = pcVar10 + 1;
pcVar10 = pcVar10 + 1;
if (*pcVar7 == '\0') {
local_440 = "";
pcVar7 = pcVar10;
goto LAB_00194b98;
}
pcVar2 = pcVar10;
} while (*pcVar7 != ' ');
}
do {
pcVar7 = pcVar2;
cVar3 = pcVar10[1];
pcVar10 = pcVar10 + 1;
pcVar2 = pcVar7;
} while (cVar3 == ' ');
} while( true );
}
LAB_00194b98:
uVar11 = (long)pcVar7 - (long)pcVar12;
sVar8 = strlen(local_238);
sVar9 = strlen(local_440);
pcVar7 = local_448;
if ((0xff < uVar11) || (0x1ff < sVar8 + uVar11 + sVar9)) {
if ((param_5 & 0x40) == 0) {
cVar3 = *param_2;
pcVar12 = param_2;
pcVar10 = param_2;
do {
pcVar2 = pcVar12;
if (cVar3 != ' ') {
if (cVar3 == '\0') goto LAB_00194c71;
do {
pcVar1 = pcVar12 + 1;
pcVar12 = pcVar12 + 1;
pcVar10 = pcVar12;
if (*pcVar1 == '\0') goto LAB_00194c71;
pcVar2 = pcVar12;
} while (*pcVar1 != ' ');
}
do {
pcVar10 = pcVar2;
cVar3 = pcVar12[1];
pcVar12 = pcVar12 + 1;
pcVar2 = pcVar10;
} while (cVar3 == ' ');
} while( true );
}
pcVar7 = (char *)0x0;
goto LAB_00194ccc;
}
pcVar10 = pcVar12;
if (local_448 == param_2) {
pcVar10 = local_438;
__memmove_chk(pcVar10,pcVar12,uVar11,0x200);
}
pcVar12 = stpcpy(pcVar7,local_238);
pcVar12 = (char *)strmake(pcVar12,pcVar10,uVar11);
strcpy(pcVar12,local_440);
LAB_00194c92:
if ((param_5 & 0x20) == 0) {
if ((param_5 & 0x10) != 0) {
strcpy(local_438,pcVar7);
my_readlink(pcVar7,local_438,0);
}
}
else {
my_realpath(pcVar7,pcVar7,0);
}
LAB_00194ccc:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return pcVar7;
LAB_00194c71:
uVar11 = (long)pcVar10 - (long)param_2;
if (0x1fe < uVar11) {
uVar11 = 0x1ff;
}
strmake(local_448,param_2,uVar11);
goto LAB_00194c92;
}
|
|
10,058 |
void OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask>(OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex const&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, int const*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../sdc/loopScheme.h
|
inline void
Scheme<SCHEME_LOOP>::assignCreaseLimitTangentMasks(VERTEX const& vertex,
MASK& tan1Mask, MASK& tan2Mask, int const creaseEnds[2]) const {
typedef typename MASK::Weight Weight;
//
// First, the tangent along the crease:
// The first crease edge is considered the "leading" edge of the span
// of surface for which we are evaluating tangents and the second edge the
// "trailing edge". By convention, the tangent along the crease is oriented
// in the direction of the leading edge.
//
int valence = vertex.GetNumEdges();
tan1Mask.SetNumVertexWeights(1);
tan1Mask.SetNumEdgeWeights(valence);
tan1Mask.SetNumFaceWeights(0);
tan1Mask.SetFaceWeightsForFaceCenters(false);
tan1Mask.VertexWeight(0) = 0.0f;
for (int i = 0; i < valence; ++i) {
tan1Mask.EdgeWeight(i) = 0.0f;
}
// See the note above regarding scale factor of 1.5:
tan1Mask.EdgeWeight(creaseEnds[0]) = 1.5f;
tan1Mask.EdgeWeight(creaseEnds[1]) = -1.5f;
//
// Second, the tangent across the interior faces:
// Note this is ambiguous for an interior vertex. We currently return
// the tangent for the surface in the counter-clockwise span between the
// leading and trailing edges that form the crease. Given the expected
// computation of a surface normal as Tan1 X Tan2, this tangent should be
// oriented "inward" from the crease/boundary -- across the surface rather
// than outward and away from it.
//
// There is inconsistency in the orientation of this tangent in commonly
// published results: the general formula provided for arbitrary valence
// has the tangent pointing across the crease and "outward" from the surface,
// while the special cases for regular valence and lower have the tangent
// pointing across the surface and "inward" from the crease. So if we are
// to consistently orient the first tangent along the crease, regardless of
// the interior topology, we have to correct this. With the first tangent
// following the direction of the leading crease edge, we want the second
// tangent pointing inward/across the surface -- so we flip the result of
// the general formula.
//
tan2Mask.SetNumVertexWeights(1);
tan2Mask.SetNumEdgeWeights(valence);
tan2Mask.SetNumFaceWeights(0);
tan2Mask.SetFaceWeightsForFaceCenters(false);
for (int i = 0; i < creaseEnds[0]; ++i) {
tan2Mask.EdgeWeight(i) = 0.0f;
}
int interiorEdgeCount = creaseEnds[1] - creaseEnds[0] - 1;
if (interiorEdgeCount == 2) {
// See note above regarding scale factor of (sin(60 degs) == sqrt(3)/2:
static Weight const Root3 = (Weight) 1.73205080756887729352;
static Weight const Root3by2 = (Weight) (Root3 * 0.5);
tan2Mask.VertexWeight(0) = -Root3;
tan2Mask.EdgeWeight(creaseEnds[0]) = -Root3by2;
tan2Mask.EdgeWeight(creaseEnds[1]) = -Root3by2;
tan2Mask.EdgeWeight(creaseEnds[0] + 1) = Root3;
tan2Mask.EdgeWeight(creaseEnds[0] + 2) = Root3;
} else if (interiorEdgeCount > 2) {
// See notes above regarding scale factor of -3.0 (-1 for orientation,
// 2.0 for considering the region as a half-disk, and 1.5 in keeping
// with the crease tangent):
double theta = std::numbers::pi / (interiorEdgeCount + 1);
tan2Mask.VertexWeight(0) = 0.0f;
Weight cWeight = (Weight) (-3.0f * std::sin(theta));
tan2Mask.EdgeWeight(creaseEnds[0]) = cWeight;
tan2Mask.EdgeWeight(creaseEnds[1]) = cWeight;
double eCoeff = -3.0f * 2.0f * (std::cos(theta) - 1.0f);
for (int i = 1; i <= interiorEdgeCount; ++i) {
tan2Mask.EdgeWeight(creaseEnds[0] + i) = (Weight) (eCoeff * std::sin(i * theta));
}
} else if (interiorEdgeCount == 1) {
// See notes above regarding scale factor of 3.0:
tan2Mask.VertexWeight(0) = -3.0f;
tan2Mask.EdgeWeight(creaseEnds[0]) = 0.0f;
tan2Mask.EdgeWeight(creaseEnds[1]) = 0.0f;
tan2Mask.EdgeWeight(creaseEnds[0] + 1) = 3.0f;
} else {
// See notes above regarding scale factor of 3.0:
tan2Mask.VertexWeight(0) = -6.0f;
tan2Mask.EdgeWeight(creaseEnds[0]) = 3.0f;
tan2Mask.EdgeWeight(creaseEnds[1]) = 3.0f;
}
for (int i = creaseEnds[1] + 1; i < valence; ++i) {
tan2Mask.EdgeWeight(i) = 0.0f;
}
}
|
O0
|
c
|
void OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask>(OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex const&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, int const*) const:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0xd0610
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1, %esi
callq 0xcfda0
movq -0x18(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xc8e80
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0xd72c0
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0xd69b0
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0xca270
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x124e8a
movq -0x18(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0xc37e0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x124e64
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0xc37e0
movsd 0xc91b7(%rip), %xmm0 # 0x1ee058
movsd %xmm0, (%rax)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
callq 0xc37e0
movsd 0xc9193(%rip), %xmm0 # 0x1ee050
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0xcfda0
movq -0x20(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xc8e80
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xd72c0
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xd69b0
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x124f21
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0xc37e0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x124ef8
movq -0x28(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x28(%rbp), %rcx
subl (%rcx), %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
cmpl $0x2, -0x38(%rbp)
jne 0x124fcd
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xca270
movsd 0xc9117(%rip), %xmm0 # 0x1ee068
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0xc37e0
movsd 0xc90cc(%rip), %xmm0 # 0x1ee038
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
callq 0xc37e0
movsd 0xc90b0(%rip), %xmm0 # 0x1ee038
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
addl $0x1, %esi
callq 0xc37e0
movsd 0xc90ba(%rip), %xmm0 # 0x1ee060
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
addl $0x2, %esi
callq 0xc37e0
movsd 0xc909c(%rip), %xmm0 # 0x1ee060
movsd %xmm0, (%rax)
jmp 0x1251b1
cmpl $0x2, -0x38(%rbp)
jle 0x1250f5
movl -0x38(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm1
movsd 0xc75ef(%rip), %xmm0 # 0x1ec5d8
divsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xca270
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movsd -0x40(%rbp), %xmm0
callq 0xc4890
movaps %xmm0, %xmm1
movsd 0xc900f(%rip), %xmm0 # 0x1ee028
mulsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0xc37e0
movsd -0x68(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
callq 0xc37e0
movsd -0x60(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x40(%rbp), %xmm0
callq 0xd67d0
movaps %xmm0, %xmm1
movsd 0xc751c(%rip), %xmm0 # 0x1ec598
subsd %xmm0, %xmm1
movsd 0xc8f98(%rip), %xmm0 # 0x1ee020
mulsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movl $0x1, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x38(%rbp), %eax
jg 0x1250f0
movsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x78(%rbp)
cvtsi2sdl -0x54(%rbp), %xmm0
mulsd -0x40(%rbp), %xmm0
callq 0xc4890
movaps %xmm0, %xmm1
movsd -0x78(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x70(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
addl -0x54(%rbp), %esi
callq 0xc37e0
movsd -0x70(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x125098
jmp 0x1251af
cmpl $0x1, -0x38(%rbp)
jne 0x12515f
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xca270
movsd 0xc8f1a(%rip), %xmm0 # 0x1ee028
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0xc37e0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
callq 0xc37e0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
addl $0x1, %esi
callq 0xc37e0
movsd 0xc748f(%rip), %xmm0 # 0x1ec5e8
movsd %xmm0, (%rax)
jmp 0x1251ad
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xca270
movsd 0xc8eae(%rip), %xmm0 # 0x1ee020
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0xc37e0
movsd 0xc745b(%rip), %xmm0 # 0x1ec5e8
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
callq 0xc37e0
movsd 0xc743f(%rip), %xmm0 # 0x1ec5e8
movsd %xmm0, (%rax)
jmp 0x1251af
jmp 0x1251b1
movq -0x28(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x1251e4
movq -0x20(%rbp), %rdi
movl -0x58(%rbp), %esi
callq 0xc37e0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x1251be
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZNK10OpenSubdiv6v3_6_03Sdc6SchemeILNS1_10SchemeTypeE2EE29assignCreaseLimitTangentMasksINS0_3Far10LoopLimitsIdE11LimitVertexENS8_9LimitMaskEEEvRKT_RT0_SF_PKi:
push rbp
mov rbp, rsp
sub rsp, 80h
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 rdi, [rbp+var_10]
call __ZNK10OpenSubdiv6v3_6_03Far10LoopLimitsIdE11LimitVertex11GetNumEdgesEv; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex::GetNumEdges(void)
mov [rbp+var_2C], eax
mov rdi, [rbp+var_18]
mov esi, 1
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask19SetNumVertexWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumVertexWeights(int)
mov rdi, [rbp+var_18]
mov esi, [rbp+var_2C]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask17SetNumEdgeWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumEdgeWeights(int)
mov rdi, [rbp+var_18]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask17SetNumFaceWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumFaceWeights(int)
mov rdi, [rbp+var_18]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask28SetFaceWeightsForFaceCentersEb; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetFaceWeightsForFaceCenters(bool)
mov rdi, [rbp+var_18]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask12VertexWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov [rbp+var_30], 0
loc_124E64:
mov eax, [rbp+var_30]
cmp eax, [rbp+var_2C]
jge short loc_124E8A
mov rdi, [rbp+var_18]
mov esi, [rbp+var_30]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp short loc_124E64
loc_124E8A:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_28]
mov esi, [rax]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE058
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_18]
mov rax, [rbp+var_28]
mov esi, [rax+4]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE050
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov esi, 1
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask19SetNumVertexWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumVertexWeights(int)
mov rdi, [rbp+var_20]
mov esi, [rbp+var_2C]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask17SetNumEdgeWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumEdgeWeights(int)
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask17SetNumFaceWeightsEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumFaceWeights(int)
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask28SetFaceWeightsForFaceCentersEb; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetFaceWeightsForFaceCenters(bool)
mov [rbp+var_34], 0
loc_124EF8:
mov eax, [rbp+var_34]
mov rcx, [rbp+var_28]
cmp eax, [rcx]
jge short loc_124F21
mov rdi, [rbp+var_20]
mov esi, [rbp+var_34]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov eax, [rbp+var_34]
add eax, 1
mov [rbp+var_34], eax
jmp short loc_124EF8
loc_124F21:
mov rax, [rbp+var_28]
mov eax, [rax+4]
mov rcx, [rbp+var_28]
sub eax, [rcx]
sub eax, 1
mov [rbp+var_38], eax
cmp [rbp+var_38], 2
jnz loc_124FCD
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask12VertexWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(int)
movsd xmm0, cs:qword_1EE068
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE038
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax+4]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE038
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
add esi, 1
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE060
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
add esi, 2
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EE060
movsd qword ptr [rax], xmm0
jmp loc_1251B1
loc_124FCD:
cmp [rbp+var_38], 2
jle loc_1250F5
mov eax, [rbp+var_38]
add eax, 1
cvtsi2sd xmm1, eax
movsd xmm0, cs:qword_1EC5D8
divsd xmm0, xmm1
movsd [rbp+var_40], xmm0
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask12VertexWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
movsd xmm0, [rbp+var_40]
call _sin
movaps xmm1, xmm0
movsd xmm0, cs:qword_1EE028
mulsd xmm0, xmm1
movsd [rbp+var_48], xmm0
movsd xmm0, [rbp+var_48]
movsd [rbp+var_68], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, [rbp+var_68]
movsd qword ptr [rax], xmm0
movsd xmm0, [rbp+var_48]
movsd [rbp+var_60], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax+4]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, [rbp+var_60]
movsd qword ptr [rax], xmm0
movsd xmm0, [rbp+var_40]
call _cos
movaps xmm1, xmm0
movsd xmm0, cs:qword_1EC598
subsd xmm1, xmm0
movsd xmm0, cs:qword_1EE020
mulsd xmm0, xmm1
movsd [rbp+var_50], xmm0
mov [rbp+var_54], 1
loc_125098:
mov eax, [rbp+var_54]
cmp eax, [rbp+var_38]
jg short loc_1250F0
movsd xmm0, [rbp+var_50]
movsd [rbp+var_78], xmm0
cvtsi2sd xmm0, [rbp+var_54]
mulsd xmm0, [rbp+var_40]
call _sin
movaps xmm1, xmm0
movsd xmm0, [rbp+var_78]
mulsd xmm0, xmm1
movsd [rbp+var_70], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
add esi, [rbp+var_54]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, [rbp+var_70]
movsd qword ptr [rax], xmm0
mov eax, [rbp+var_54]
add eax, 1
mov [rbp+var_54], eax
jmp short loc_125098
loc_1250F0:
jmp loc_1251AF
loc_1250F5:
cmp [rbp+var_38], 1
jnz short loc_12515F
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask12VertexWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(int)
movsd xmm0, cs:qword_1EE028
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax+4]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
add esi, 1
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EC5E8
movsd qword ptr [rax], xmm0
jmp short loc_1251AD
loc_12515F:
mov rdi, [rbp+var_20]
xor esi, esi
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask12VertexWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(int)
movsd xmm0, cs:qword_1EE020
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EC5E8
movsd qword ptr [rax], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_28]
mov esi, [rax+4]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
movsd xmm0, cs:qword_1EC5E8
movsd qword ptr [rax], xmm0
loc_1251AD:
jmp short $+2
loc_1251AF:
jmp short $+2
loc_1251B1:
mov rax, [rbp+var_28]
mov eax, [rax+4]
add eax, 1
mov [rbp+var_58], eax
loc_1251BE:
mov eax, [rbp+var_58]
cmp eax, [rbp+var_2C]
jge short loc_1251E4
mov rdi, [rbp+var_20]
mov esi, [rbp+var_58]
call __ZN10OpenSubdiv6v3_6_03Far10LoopLimitsIdE9LimitMask10EdgeWeightEi; OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(int)
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov eax, [rbp+var_58]
add eax, 1
mov [rbp+var_58], eax
jmp short loc_1251BE
loc_1251E4:
add rsp, 80h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex,OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask>(
long long a1,
long long a2,
long long a3,
long long a4,
signed int *a5)
{
double v5; // xmm1_8
long long result; // rax
double v7; // [rsp+10h] [rbp-70h]
double v8; // [rsp+18h] [rbp-68h]
unsigned int m; // [rsp+28h] [rbp-58h]
int k; // [rsp+2Ch] [rbp-54h]
double v11; // [rsp+40h] [rbp-40h]
int v12; // [rsp+48h] [rbp-38h]
signed int j; // [rsp+4Ch] [rbp-34h]
signed int i; // [rsp+50h] [rbp-30h]
signed int NumEdges; // [rsp+54h] [rbp-2Ch]
NumEdges = OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex::GetNumEdges(a2);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumVertexWeights(a3, 1LL);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumEdgeWeights(a3, (unsigned int)NumEdges);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumFaceWeights(a3, 0LL);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetFaceWeightsForFaceCenters(a3, 0LL);
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(a3, 0LL) = 0LL;
for ( i = 0; i < NumEdges; ++i )
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a3, (unsigned int)i) = 0LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a3, (unsigned int)*a5) = 0x3FF8000000000000LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a3, (unsigned int)a5[1]) = 0xBFF8000000000000LL;
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumVertexWeights(a4, 1LL);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumEdgeWeights(a4, (unsigned int)NumEdges);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetNumFaceWeights(a4, 0LL);
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::SetFaceWeightsForFaceCenters(a4, 0LL);
for ( j = 0; j < *a5; ++j )
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)j) = 0LL;
v12 = a5[1] - *a5 - 1;
if ( a5[1] - *a5 == 3 )
{
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(a4, 0LL) = 0xBFFBB67AE8584CAALL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)*a5) = 0xBFEBB67AE8584CAALL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)a5[1]) = 0xBFEBB67AE8584CAALL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)(*a5 + 1)) = 0x3FFBB67AE8584CAALL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)(*a5 + 2)) = 0x3FFBB67AE8584CAALL;
}
else if ( v12 <= 2 )
{
if ( a5[1] - *a5 == 2 )
{
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(a4, 0LL) = 0xC008000000000000LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)*a5) = 0LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)a5[1]) = 0LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)(*a5 + 1)) = 0x4008000000000000LL;
}
else
{
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(a4, 0LL) = 0xC018000000000000LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)*a5) = 0x4008000000000000LL;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)a5[1]) = 0x4008000000000000LL;
}
}
else
{
v11 = 3.141592653589793 / (double)(a5[1] - *a5);
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::VertexWeight(a4, 0LL) = 0LL;
v8 = -3.0 * sin(v11);
*(double *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)*a5) = v8;
*(double *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)a5[1]) = v8;
v5 = cos(v11) - 1.0;
for ( k = 1; k <= v12; ++k )
{
v7 = -6.0 * v5 * sin((double)k * v11);
*(double *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, (unsigned int)(k + *a5)) = v7;
}
}
for ( m = a5[1] + 1; ; ++m )
{
result = m;
if ( (int)m >= NumEdges )
break;
*(_QWORD *)OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask::EdgeWeight(a4, m) = 0LL;
}
return result;
}
| |||
10,059 |
void OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask>(OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex const&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, int const*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../sdc/loopScheme.h
|
inline void
Scheme<SCHEME_LOOP>::assignCreaseLimitTangentMasks(VERTEX const& vertex,
MASK& tan1Mask, MASK& tan2Mask, int const creaseEnds[2]) const {
typedef typename MASK::Weight Weight;
//
// First, the tangent along the crease:
// The first crease edge is considered the "leading" edge of the span
// of surface for which we are evaluating tangents and the second edge the
// "trailing edge". By convention, the tangent along the crease is oriented
// in the direction of the leading edge.
//
int valence = vertex.GetNumEdges();
tan1Mask.SetNumVertexWeights(1);
tan1Mask.SetNumEdgeWeights(valence);
tan1Mask.SetNumFaceWeights(0);
tan1Mask.SetFaceWeightsForFaceCenters(false);
tan1Mask.VertexWeight(0) = 0.0f;
for (int i = 0; i < valence; ++i) {
tan1Mask.EdgeWeight(i) = 0.0f;
}
// See the note above regarding scale factor of 1.5:
tan1Mask.EdgeWeight(creaseEnds[0]) = 1.5f;
tan1Mask.EdgeWeight(creaseEnds[1]) = -1.5f;
//
// Second, the tangent across the interior faces:
// Note this is ambiguous for an interior vertex. We currently return
// the tangent for the surface in the counter-clockwise span between the
// leading and trailing edges that form the crease. Given the expected
// computation of a surface normal as Tan1 X Tan2, this tangent should be
// oriented "inward" from the crease/boundary -- across the surface rather
// than outward and away from it.
//
// There is inconsistency in the orientation of this tangent in commonly
// published results: the general formula provided for arbitrary valence
// has the tangent pointing across the crease and "outward" from the surface,
// while the special cases for regular valence and lower have the tangent
// pointing across the surface and "inward" from the crease. So if we are
// to consistently orient the first tangent along the crease, regardless of
// the interior topology, we have to correct this. With the first tangent
// following the direction of the leading crease edge, we want the second
// tangent pointing inward/across the surface -- so we flip the result of
// the general formula.
//
tan2Mask.SetNumVertexWeights(1);
tan2Mask.SetNumEdgeWeights(valence);
tan2Mask.SetNumFaceWeights(0);
tan2Mask.SetFaceWeightsForFaceCenters(false);
for (int i = 0; i < creaseEnds[0]; ++i) {
tan2Mask.EdgeWeight(i) = 0.0f;
}
int interiorEdgeCount = creaseEnds[1] - creaseEnds[0] - 1;
if (interiorEdgeCount == 2) {
// See note above regarding scale factor of (sin(60 degs) == sqrt(3)/2:
static Weight const Root3 = (Weight) 1.73205080756887729352;
static Weight const Root3by2 = (Weight) (Root3 * 0.5);
tan2Mask.VertexWeight(0) = -Root3;
tan2Mask.EdgeWeight(creaseEnds[0]) = -Root3by2;
tan2Mask.EdgeWeight(creaseEnds[1]) = -Root3by2;
tan2Mask.EdgeWeight(creaseEnds[0] + 1) = Root3;
tan2Mask.EdgeWeight(creaseEnds[0] + 2) = Root3;
} else if (interiorEdgeCount > 2) {
// See notes above regarding scale factor of -3.0 (-1 for orientation,
// 2.0 for considering the region as a half-disk, and 1.5 in keeping
// with the crease tangent):
double theta = std::numbers::pi / (interiorEdgeCount + 1);
tan2Mask.VertexWeight(0) = 0.0f;
Weight cWeight = (Weight) (-3.0f * std::sin(theta));
tan2Mask.EdgeWeight(creaseEnds[0]) = cWeight;
tan2Mask.EdgeWeight(creaseEnds[1]) = cWeight;
double eCoeff = -3.0f * 2.0f * (std::cos(theta) - 1.0f);
for (int i = 1; i <= interiorEdgeCount; ++i) {
tan2Mask.EdgeWeight(creaseEnds[0] + i) = (Weight) (eCoeff * std::sin(i * theta));
}
} else if (interiorEdgeCount == 1) {
// See notes above regarding scale factor of 3.0:
tan2Mask.VertexWeight(0) = -3.0f;
tan2Mask.EdgeWeight(creaseEnds[0]) = 0.0f;
tan2Mask.EdgeWeight(creaseEnds[1]) = 0.0f;
tan2Mask.EdgeWeight(creaseEnds[0] + 1) = 3.0f;
} else {
// See notes above regarding scale factor of 3.0:
tan2Mask.VertexWeight(0) = -6.0f;
tan2Mask.EdgeWeight(creaseEnds[0]) = 3.0f;
tan2Mask.EdgeWeight(creaseEnds[1]) = 3.0f;
}
for (int i = creaseEnds[1] + 1; i < valence; ++i) {
tan2Mask.EdgeWeight(i) = 0.0f;
}
}
|
O2
|
c
|
void OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask>(OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitVertex const&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, OpenSubdiv::v3_6_0::Far::LoopLimits<float>::LimitMask&, int const*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r8, %r14
movq %rcx, %rbx
movl 0x4(%rsi), %eax
movslq %eax, %r15
movl %r15d, 0x8(%rdx)
movq (%rdx), %rcx
andq $0x0, (%rcx)
xorl %edx, %edx
testl %r15d, %r15d
movl $0x0, %esi
cmovgl %eax, %esi
cmpq %rdx, %rsi
je 0x6f99e
andq $0x0, 0x8(%rcx,%rdx,8)
incq %rdx
jmp 0x6f98e
movslq (%r14), %rdx
movabsq $0x3ff8000000000000, %rsi # imm = 0x3FF8000000000000
movq %rsi, 0x8(%rcx,%rdx,8)
movslq 0x4(%r14), %rdx
movabsq $-0x4008000000000000, %rsi # imm = 0xBFF8000000000000
movq %rsi, 0x8(%rcx,%rdx,8)
movl %eax, 0x8(%rbx)
movslq (%r14), %rdx
movq (%rbx), %rcx
xorl %eax, %eax
testl %edx, %edx
movl $0x0, %esi
cmovgl %edx, %esi
cmpq %rax, %rsi
je 0x6f9e8
andq $0x0, 0x8(%rcx,%rax,8)
incq %rax
jmp 0x6f9d8
movslq 0x4(%r14), %rax
movl %eax, %r12d
subl %edx, %r12d
leal -0x1(%r12), %esi
cmpl $0x2, %esi
jne 0x6fa30
movabsq $-0x4004498517a7b356, %rsi # imm = 0xBFFBB67AE8584CAA
movq %rsi, (%rcx)
movabsq $-0x4014498517a7b356, %rsi # imm = 0xBFEBB67AE8584CAA
movq %rsi, 0x8(%rcx,%rdx,8)
movq %rsi, 0x8(%rcx,%rax,8)
movapd 0x5080b(%rip), %xmm0 # 0xc0230
movupd %xmm0, 0x10(%rcx,%rdx,8)
jmp 0x6fb3c
cmpl $0x4, %r12d
jl 0x6fae6
cvtsi2sd %r12d, %xmm1
movsd 0x4ead9(%rip), %xmm0 # 0xbe520
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
andq $0x0, (%rcx)
callq 0x4f860
mulsd 0x5060e(%rip), %xmm0 # 0xc0070
movslq (%r14), %rax
movq (%rbx), %rcx
movsd %xmm0, 0x8(%rcx,%rax,8)
movslq 0x4(%r14), %rax
movsd %xmm0, 0x8(%rcx,%rax,8)
movsd 0x8(%rsp), %xmm0
callq 0x557b0
addsd 0x4eacd(%rip), %xmm0 # 0xbe558
mulsd 0x505e5(%rip), %xmm0 # 0xc0078
movsd %xmm0, 0x10(%rsp)
pushq $0x1
popq %rbp
movsd 0x4ea64(%rip), %xmm1 # 0xbe508
cmpl %ebp, %r12d
je 0x6fb15
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm1, 0x18(%rsp)
callq 0x4f860
movsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm0
movl (%r14), %eax
addl %ebp, %eax
movq (%rbx), %rcx
cltq
movsd %xmm0, 0x8(%rcx,%rax,8)
addsd 0x4ea26(%rip), %xmm1 # 0xbe508
incl %ebp
jmp 0x6faa4
cmpl $0x1, %esi
jne 0x6fb1b
movabsq $-0x3ff8000000000000, %rsi # imm = 0xC008000000000000
movq %rsi, (%rcx)
andq $0x0, 0x8(%rcx,%rdx,8)
andq $0x0, 0x8(%rcx,%rax,8)
movabsq $0x4008000000000000, %rsi # imm = 0x4008000000000000
movq %rsi, 0x10(%rcx,%rdx,8)
jmp 0x6fb3c
movslq 0x4(%r14), %rax
jmp 0x6fb3c
movabsq $-0x3fe8000000000000, %rsi # imm = 0xC018000000000000
movq %rsi, (%rcx)
movabsq $0x4008000000000000, %rsi # imm = 0x4008000000000000
movq %rsi, 0x8(%rcx,%rdx,8)
movq %rsi, 0x8(%rcx,%rax,8)
movq (%rbx), %rcx
incq %rax
cmpq %r15, %rax
jge 0x6fb4f
andq $0x0, 0x8(%rcx,%rax,8)
jmp 0x6fb3f
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZNK10OpenSubdiv6v3_6_03Sdc6SchemeILNS1_10SchemeTypeE2EE29assignCreaseLimitTangentMasksINS0_3Far10LoopLimitsIdE11LimitVertexENS8_9LimitMaskEEEvRKT_RT0_SF_PKi:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov r14, r8
mov rbx, rcx
mov eax, [rsi+4]
movsxd r15, eax
mov [rdx+8], r15d
mov rcx, [rdx]
and qword ptr [rcx], 0
xor edx, edx
test r15d, r15d
mov esi, 0
cmovg esi, eax
loc_6F98E:
cmp rsi, rdx
jz short loc_6F99E
and qword ptr [rcx+rdx*8+8], 0
inc rdx
jmp short loc_6F98E
loc_6F99E:
movsxd rdx, dword ptr [r14]
mov rsi, 3FF8000000000000h
mov [rcx+rdx*8+8], rsi
movsxd rdx, dword ptr [r14+4]
mov rsi, 0BFF8000000000000h
mov [rcx+rdx*8+8], rsi
mov [rbx+8], eax
movsxd rdx, dword ptr [r14]
mov rcx, [rbx]
xor eax, eax
test edx, edx
mov esi, 0
cmovg esi, edx
loc_6F9D8:
cmp rsi, rax
jz short loc_6F9E8
and qword ptr [rcx+rax*8+8], 0
inc rax
jmp short loc_6F9D8
loc_6F9E8:
movsxd rax, dword ptr [r14+4]
mov r12d, eax
sub r12d, edx
lea esi, [r12-1]
cmp esi, 2
jnz short loc_6FA30
mov rsi, 0BFFBB67AE8584CAAh
mov [rcx], rsi
mov rsi, 0BFEBB67AE8584CAAh
mov [rcx+rdx*8+8], rsi
mov [rcx+rax*8+8], rsi
movapd xmm0, cs:xmmword_C0230
movupd xmmword ptr [rcx+rdx*8+10h], xmm0
jmp loc_6FB3C
loc_6FA30:
cmp r12d, 4
jl loc_6FAE6
cvtsi2sd xmm1, r12d
movsd xmm0, cs:qword_BE520
divsd xmm0, xmm1
movsd [rsp+48h+var_40], xmm0
and qword ptr [rcx], 0
call _sin
mulsd xmm0, cs:qword_C0070
movsxd rax, dword ptr [r14]
mov rcx, [rbx]
movsd qword ptr [rcx+rax*8+8], xmm0
movsxd rax, dword ptr [r14+4]
movsd qword ptr [rcx+rax*8+8], xmm0
movsd xmm0, [rsp+48h+var_40]
call _cos
addsd xmm0, cs:qword_BE558
mulsd xmm0, cs:qword_C0078
movsd [rsp+48h+var_38], xmm0
push 1
pop rbp
movsd xmm1, cs:qword_BE508
loc_6FAA4:
cmp r12d, ebp
jz short loc_6FB15
movsd xmm0, [rsp+48h+var_40]
mulsd xmm0, xmm1
movsd [rsp+48h+var_30], xmm1
call _sin
movsd xmm1, [rsp+48h+var_30]
mulsd xmm0, [rsp+48h+var_38]
mov eax, [r14]
add eax, ebp
mov rcx, [rbx]
cdqe
movsd qword ptr [rcx+rax*8+8], xmm0
addsd xmm1, cs:qword_BE508
inc ebp
jmp short loc_6FAA4
loc_6FAE6:
cmp esi, 1
jnz short loc_6FB1B
mov rsi, 0C008000000000000h
mov [rcx], rsi
and qword ptr [rcx+rdx*8+8], 0
and qword ptr [rcx+rax*8+8], 0
mov rsi, 4008000000000000h
mov [rcx+rdx*8+10h], rsi
jmp short loc_6FB3C
loc_6FB15:
movsxd rax, dword ptr [r14+4]
jmp short loc_6FB3C
loc_6FB1B:
mov rsi, 0C018000000000000h
mov [rcx], rsi
mov rsi, 4008000000000000h
mov [rcx+rdx*8+8], rsi
mov [rcx+rax*8+8], rsi
loc_6FB3C:
mov rcx, [rbx]
loc_6FB3F:
inc rax
cmp rax, r15
jge short loc_6FB4F
and qword ptr [rcx+rax*8+8], 0
jmp short loc_6FB3F
loc_6FB4F:
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex,OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask>(
long long a1,
long long a2,
long long a3,
long long a4,
int *a5)
{
int v7; // eax
long long v8; // r15
_QWORD *v9; // rcx
long long v10; // rdx
long long v11; // rsi
long long v12; // rdx
_QWORD *v13; // rcx
long long v14; // rax
long long v15; // rsi
long long result; // rax
int v17; // r12d
double v18; // xmm0_8
_QWORD *v19; // rcx
int v20; // ebp
double v21; // xmm1_8
_QWORD *i; // rcx
double v23; // [rsp+8h] [rbp-40h]
double v24; // [rsp+10h] [rbp-38h]
v7 = *(_DWORD *)(a2 + 4);
v8 = v7;
*(_DWORD *)(a3 + 8) = v7;
v9 = *(_QWORD **)a3;
**(_QWORD **)a3 = 0LL;
v10 = 0LL;
v11 = 0LL;
if ( v7 > 0 )
v11 = (unsigned int)v7;
while ( v11 != v10 )
v9[++v10] = 0LL;
v9[*a5 + 1] = 0x3FF8000000000000LL;
v9[a5[1] + 1] = 0xBFF8000000000000LL;
*(_DWORD *)(a4 + 8) = v7;
v12 = *a5;
v13 = *(_QWORD **)a4;
v14 = 0LL;
v15 = 0LL;
if ( (int)v12 > 0 )
v15 = (unsigned int)v12;
while ( v15 != v14 )
v13[++v14] = 0LL;
result = a5[1];
v17 = a5[1] - v12;
if ( v17 == 3 )
{
*v13 = 0xBFFBB67AE8584CAALL;
v13[v12 + 1] = 0xBFEBB67AE8584CAALL;
v13[result + 1] = 0xBFEBB67AE8584CAALL;
*(_OWORD *)&v13[v12 + 2] = xmmword_C0230;
}
else if ( v17 < 4 )
{
if ( v17 == 2 )
{
*v13 = 0xC008000000000000LL;
v13[v12 + 1] = 0LL;
v13[result + 1] = 0LL;
v13[v12 + 2] = 0x4008000000000000LL;
}
else
{
*v13 = 0xC018000000000000LL;
v13[v12 + 1] = 0x4008000000000000LL;
v13[result + 1] = 0x4008000000000000LL;
}
}
else
{
v23 = 3.141592653589793 / (double)v17;
*v13 = 0LL;
v18 = sin(v23) * -3.0;
v19 = *(_QWORD **)a4;
*(double *)&v19[*a5 + 1] = v18;
*(double *)&v19[a5[1] + 1] = v18;
v24 = (cos(v23) + -1.0) * -6.0;
v20 = 1;
v21 = 1.0;
while ( v17 != v20 )
{
*(double *)(*(_QWORD *)a4 + 8LL * (v20 + *a5) + 8) = sin(v23 * v21) * v24;
v21 = v21 + 1.0;
++v20;
}
result = a5[1];
}
for ( i = *(_QWORD **)a4; ++result < v8; i[result + 1] = 0LL )
;
return result;
}
|
assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex,OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV R14,R8
MOV RBX,RCX
MOV EAX,dword ptr [RSI + 0x4]
MOVSXD R15,EAX
MOV dword ptr [RDX + 0x8],R15D
MOV RCX,qword ptr [RDX]
AND qword ptr [RCX],0x0
XOR EDX,EDX
TEST R15D,R15D
MOV ESI,0x0
CMOVG ESI,EAX
LAB_0016f98e:
CMP RSI,RDX
JZ 0x0016f99e
AND qword ptr [RCX + RDX*0x8 + 0x8],0x0
INC RDX
JMP 0x0016f98e
LAB_0016f99e:
MOVSXD RDX,dword ptr [R14]
MOV RSI,0x3ff8000000000000
MOV qword ptr [RCX + RDX*0x8 + 0x8],RSI
MOVSXD RDX,dword ptr [R14 + 0x4]
MOV RSI,-0x4008000000000000
MOV qword ptr [RCX + RDX*0x8 + 0x8],RSI
MOV dword ptr [RBX + 0x8],EAX
MOVSXD RDX,dword ptr [R14]
MOV RCX,qword ptr [RBX]
XOR EAX,EAX
TEST EDX,EDX
MOV ESI,0x0
CMOVG ESI,EDX
LAB_0016f9d8:
CMP RSI,RAX
JZ 0x0016f9e8
AND qword ptr [RCX + RAX*0x8 + 0x8],0x0
INC RAX
JMP 0x0016f9d8
LAB_0016f9e8:
MOVSXD RAX,dword ptr [R14 + 0x4]
MOV R12D,EAX
SUB R12D,EDX
LEA ESI,[R12 + -0x1]
CMP ESI,0x2
JNZ 0x0016fa30
MOV RSI,-0x4004498517a7b356
MOV qword ptr [RCX],RSI
MOV RSI,-0x4014498517a7b356
MOV qword ptr [RCX + RDX*0x8 + 0x8],RSI
MOV qword ptr [RCX + RAX*0x8 + 0x8],RSI
MOVAPD XMM0,xmmword ptr [0x001c0230]
MOVUPD xmmword ptr [RCX + RDX*0x8 + 0x10],XMM0
JMP 0x0016fb3c
LAB_0016fa30:
CMP R12D,0x4
JL 0x0016fae6
CVTSI2SD XMM1,R12D
MOVSD XMM0,qword ptr [0x001be520]
DIVSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x8],XMM0
AND qword ptr [RCX],0x0
CALL 0x0014f860
MULSD XMM0,qword ptr [0x001c0070]
MOVSXD RAX,dword ptr [R14]
MOV RCX,qword ptr [RBX]
MOVSD qword ptr [RCX + RAX*0x8 + 0x8],XMM0
MOVSXD RAX,dword ptr [R14 + 0x4]
MOVSD qword ptr [RCX + RAX*0x8 + 0x8],XMM0
MOVSD XMM0,qword ptr [RSP + 0x8]
CALL 0x001557b0
ADDSD XMM0,qword ptr [0x001be558]
MULSD XMM0,qword ptr [0x001c0078]
MOVSD qword ptr [RSP + 0x10],XMM0
PUSH 0x1
POP RBP
MOVSD XMM1,qword ptr [0x001be508]
LAB_0016faa4:
CMP R12D,EBP
JZ 0x0016fb15
MOVSD XMM0,qword ptr [RSP + 0x8]
MULSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x18],XMM1
CALL 0x0014f860
MOVSD XMM1,qword ptr [RSP + 0x18]
MULSD XMM0,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [R14]
ADD EAX,EBP
MOV RCX,qword ptr [RBX]
CDQE
MOVSD qword ptr [RCX + RAX*0x8 + 0x8],XMM0
ADDSD XMM1,qword ptr [0x001be508]
INC EBP
JMP 0x0016faa4
LAB_0016fae6:
CMP ESI,0x1
JNZ 0x0016fb1b
MOV RSI,-0x3ff8000000000000
MOV qword ptr [RCX],RSI
AND qword ptr [RCX + RDX*0x8 + 0x8],0x0
AND qword ptr [RCX + RAX*0x8 + 0x8],0x0
MOV RSI,0x4008000000000000
MOV qword ptr [RCX + RDX*0x8 + 0x10],RSI
JMP 0x0016fb3c
LAB_0016fb15:
MOVSXD RAX,dword ptr [R14 + 0x4]
JMP 0x0016fb3c
LAB_0016fb1b:
MOV RSI,-0x3fe8000000000000
MOV qword ptr [RCX],RSI
MOV RSI,0x4008000000000000
MOV qword ptr [RCX + RDX*0x8 + 0x8],RSI
MOV qword ptr [RCX + RAX*0x8 + 0x8],RSI
LAB_0016fb3c:
MOV RCX,qword ptr [RBX]
LAB_0016fb3f:
INC RAX
CMP RAX,R15
JGE 0x0016fb4f
AND qword ptr [RCX + RAX*0x8 + 0x8],0x0
JMP 0x0016fb3f
LAB_0016fb4f:
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* void
OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex,
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask>(OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex
const&, OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask&,
OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask&, int const*) const */
void __thiscall
OpenSubdiv::v3_6_0::Sdc::Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2>::
assignCreaseLimitTangentMasks<OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitVertex,OpenSubdiv::v3_6_0::Far::LoopLimits<double>::LimitMask>
(Scheme<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2> *this,LimitVertex *param_1,
LimitMask *param_2,LimitMask *param_3,int *param_4)
{
uint uVar1;
uint uVar2;
int8 *puVar3;
long lVar4;
int8 uVar5;
long lVar6;
ulong uVar7;
int iVar8;
ulong uVar9;
int iVar10;
double __x;
double dVar11;
double dVar12;
double dVar13;
uVar1 = *(uint *)(param_1 + 4);
*(uint *)(param_2 + 8) = uVar1;
puVar3 = *(int8 **)param_2;
*puVar3 = 0;
uVar7 = 0;
uVar9 = 0;
if (0 < (int)uVar1) {
uVar9 = (ulong)uVar1;
}
for (; uVar9 != uVar7; uVar7 = uVar7 + 1) {
puVar3[uVar7 + 1] = 0;
}
puVar3[(long)*param_4 + 1] = 0x3ff8000000000000;
puVar3[(long)param_4[1] + 1] = 0xbff8000000000000;
*(uint *)(param_3 + 8) = uVar1;
uVar2 = *param_4;
puVar3 = *(int8 **)param_3;
uVar7 = 0;
uVar9 = 0;
if (0 < (int)uVar2) {
uVar9 = (ulong)uVar2;
}
for (; uVar9 != uVar7; uVar7 = uVar7 + 1) {
puVar3[uVar7 + 1] = 0;
}
lVar6 = (long)param_4[1];
iVar10 = param_4[1] - uVar2;
if (iVar10 == 3) {
*puVar3 = 0xbffbb67ae8584caa;
puVar3[(long)(int)uVar2 + 1] = 0xbfebb67ae8584caa;
puVar3[lVar6 + 1] = 0xbfebb67ae8584caa;
uVar5 = _UNK_001c0238;
puVar3[(long)(int)uVar2 + 2] = _DAT_001c0230;
(puVar3 + (long)(int)uVar2 + 2)[1] = uVar5;
}
else if (iVar10 < 4) {
if (iVar10 == 2) {
*puVar3 = 0xc008000000000000;
puVar3[(long)(int)uVar2 + 1] = 0;
puVar3[lVar6 + 1] = 0;
puVar3[(long)(int)uVar2 + 2] = 0x4008000000000000;
}
else {
*puVar3 = 0xc018000000000000;
puVar3[(long)(int)uVar2 + 1] = 0x4008000000000000;
puVar3[lVar6 + 1] = 0x4008000000000000;
}
}
else {
__x = DAT_001be520 / (double)iVar10;
*puVar3 = 0;
dVar11 = sin(__x);
dVar11 = dVar11 * DAT_001c0070;
lVar6 = *(long *)param_3;
*(double *)(lVar6 + 8 + (long)*param_4 * 8) = dVar11;
*(double *)(lVar6 + 8 + (long)param_4[1] * 8) = dVar11;
dVar11 = cos(__x);
dVar12 = (dVar11 + DAT_001be558) * DAT_001c0078;
dVar11 = DAT_001be508;
for (iVar8 = 1; iVar10 != iVar8; iVar8 = iVar8 + 1) {
dVar13 = sin(__x * dVar11);
*(double *)(*(long *)param_3 + 8 + (long)(*param_4 + iVar8) * 8) = dVar13 * dVar12;
dVar11 = dVar11 + DAT_001be508;
}
lVar6 = (long)param_4[1];
}
lVar4 = *(long *)param_3;
while (lVar6 = lVar6 + 1, lVar6 < (int)uVar1) {
*(int8 *)(lVar4 + 8 + lVar6 * 8) = 0;
}
return;
}
|
|
10,060 |
ma_ck_real_write_btree
|
eloqsql/storage/maria/ma_write.c
|
my_bool _ma_ck_real_write_btree(MARIA_HA *info, MARIA_KEY *key, my_off_t *root,
uint32 comp_flag)
{
int error;
DBUG_ENTER("_ma_ck_real_write_btree");
/* key_length parameter is used only if comp_flag is SEARCH_FIND */
if (*root == HA_OFFSET_ERROR ||
(error= w_search(info, comp_flag, key, *root, (MARIA_PAGE *) 0,
(uchar*) 0, 1)) > 0)
error= _ma_enlarge_root(info, key, root);
DBUG_RETURN(error != 0);
}
|
O3
|
c
|
ma_ck_real_write_btree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rax
cmpq $-0x1, %rax
je 0x5739d
movl $0x1, (%rsp)
movq %r15, %rdi
movl %ecx, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x573be
testl %eax, %eax
jle 0x573ae
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x57808
movzbl %al, %eax
testl %eax, %eax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ma_ck_real_write_btree:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rax, [rdx]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_5739D
mov [rsp+20h+var_20], 1
mov rdi, r15
mov esi, ecx
mov rdx, r14
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call w_search
test eax, eax
jle short loc_573AE
loc_5739D:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _ma_enlarge_root
movzx eax, al
loc_573AE:
test eax, eax
setnz al
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
bool ma_ck_real_write_btree(long long a1, long long a2, _QWORD *a3, int a4)
{
int v5; // eax
if ( *a3 == -1LL || (v5 = w_search(a1, a4, a2, *a3, 0, 0, 1), v5 > 0) )
v5 = (unsigned __int8)ma_enlarge_root(a1, a2, a3);
return v5 != 0;
}
|
_ma_ck_real_write_btree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDX]
CMP RAX,-0x1
JZ 0x0015739d
MOV dword ptr [RSP],0x1
MOV RDI,R15
MOV ESI,ECX
MOV RDX,R14
MOV RCX,RAX
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001573be
TEST EAX,EAX
JLE 0x001573ae
LAB_0015739d:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00157808
MOVZX EAX,AL
LAB_001573ae:
TEST EAX,EAX
SETNZ AL
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
bool _ma_ck_real_write_btree(int8 param_1,int8 param_2,long *param_3,int4 param_4)
{
byte bVar1;
uint uVar2;
if (*param_3 != -1) {
uVar2 = w_search(param_1,param_4,param_2,*param_3,0,0,1);
if ((int)uVar2 < 1) goto LAB_001573ae;
}
bVar1 = _ma_enlarge_root(param_1,param_2,param_3);
uVar2 = (uint)bVar1;
LAB_001573ae:
return uVar2 != 0;
}
|
|
10,061 |
start_of_next_entry
|
eloqsql/storage/maria/ma_blockrec.c
|
static inline uint start_of_next_entry(uchar *dir)
{
uchar *prev;
/*
Find previous used entry. (There is always a previous entry as
the directory never starts with a deleted entry)
*/
for (prev= dir - DIR_ENTRY_SIZE ;
prev[0] == 0 && prev[1] == 0 ;
prev-= DIR_ENTRY_SIZE)
{}
return (uint) uint2korr(prev);
}
|
O0
|
c
|
start_of_next_entry:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x11(%rbp)
jne 0x80276
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
testb $0x1, %al
jne 0x8027f
jmp 0x8028f
jmp 0x80281
movq -0x10(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0x80254
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
start_of_next_entry:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_10], rax
loc_80254:
mov rax, [rbp+var_10]
movzx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_11], al
jnz short loc_80276
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
cmp eax, 0
setz al
mov [rbp+var_11], al
loc_80276:
mov al, [rbp+var_11]
test al, 1
jnz short loc_8027F
jmp short loc_8028F
loc_8027F:
jmp short $+2
loc_80281:
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_10], rax
jmp short loc_80254
loc_8028F:
mov rax, [rbp+var_10]
movzx eax, word ptr [rax]
pop rbp
retn
|
long long start_of_next_entry(long long a1)
{
bool v2; // [rsp+1h] [rbp-11h]
_BYTE *i; // [rsp+2h] [rbp-10h]
for ( i = (_BYTE *)(a1 - 4); ; i -= 4 )
{
v2 = 0;
if ( !*i )
v2 = i[1] == 0;
if ( !v2 )
break;
}
return *(unsigned __int16 *)i;
}
|
start_of_next_entry:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x10],RAX
LAB_00180254:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x11],AL
JNZ 0x00180276
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
SETZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_00180276:
MOV AL,byte ptr [RBP + -0x11]
TEST AL,0x1
JNZ 0x0018027f
JMP 0x0018028f
LAB_0018027f:
JMP 0x00180281
LAB_00180281:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00180254
LAB_0018028f:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX]
POP RBP
RET
|
int2 start_of_next_entry(long param_1)
{
bool bVar1;
char *local_18;
local_18 = (char *)(param_1 + -4);
while( true ) {
bVar1 = false;
if (*local_18 == '\0') {
bVar1 = local_18[1] == '\0';
}
if (!bVar1) break;
local_18 = local_18 + -4;
}
return *(int2 *)local_18;
}
|
|
10,062 |
ftxui::HorizontalContainer::HorizontalContainer(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*)
|
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/container.cpp
|
Element Render() override {
Elements elements;
elements.reserve(children_.size());
for (auto& it : children_) {
elements.push_back(it->Render());
}
if (elements.empty()) {
return text("Empty container");
}
return hbox(std::move(elements));
}
|
O0
|
cpp
|
ftxui::HorizontalContainer::HorizontalContainer(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq -0x18(%rbp), %rdx
callq 0x532b0
movq -0x20(%rbp), %rax
leaq 0x88f90(%rip), %rcx # 0xdde50
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN5ftxui19HorizontalContainerCI2NS_13ContainerBaseEESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EEPi:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
mov [rbp+var_20], rdi
mov rdx, [rbp+var_18]
call _ZN5ftxui13ContainerBaseC2ESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EEPi; ftxui::ContainerBase::ContainerBase(std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *)
mov rax, [rbp+var_20]
lea rcx, _ZTVN5ftxui19HorizontalContainerE; `vtable for'ftxui::HorizontalContainer
add rcx, 10h
mov [rax], rcx
add rsp, 20h
pop rbp
retn
|
_QWORD * ZN5ftxui19HorizontalContainerCI2NS_13ContainerBaseEESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EEPi(
_QWORD *a1,
long long a2,
long long a3)
{
_QWORD *result; // rax
ftxui::ContainerBase::ContainerBase((long long)a1, a2, a3);
result = a1;
*a1 = &`vtable for'ftxui::HorizontalContainer + 2;
return result;
}
|
ContainerBase:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RDI
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001532b0
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x1dde50]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RSP,0x20
POP RBP
RET
|
/* ftxui::HorizontalContainer::ContainerBase(std::vector<std::shared_ptr<ftxui::ComponentBase>,
std::allocator<ftxui::ComponentBase> >, int*) */
void __thiscall
ftxui::HorizontalContainer::ContainerBase
(HorizontalContainer *this,int8 param_2,int8 param_3)
{
ftxui::ContainerBase::ContainerBase((ContainerBase *)this,param_2,param_3);
*(int ***)this = &PTR__HorizontalContainer_001dde60;
return;
}
|
|
10,063 |
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [11], 0>(char const (&) [11]) const
|
monkey531[P]llama/common/json.hpp
|
constexpr bool is_object() const noexcept
{
return m_data.m_type == value_t::object;
}
|
O1
|
cpp
|
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [11], 0>(char const (&) [11]) const:
cmpb $0x1, (%rdi)
jne 0xc7406
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq (%r12), %r15
movq 0x8(%r12), %rax
cmpq %rax, %r15
je 0xc740c
movq %rsi, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x1b210
testl %eax, %eax
je 0xc7409
addq $0x30, %r15
movq 0x8(%r12), %rax
cmpq %rax, %r15
jne 0xc73e7
jmp 0xc740c
xorl %eax, %eax
retq
movq %r15, %rax
movq 0x8(%rbx), %rcx
cmpq 0x8(%rcx), %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
cmp byte ptr [rdi], 1
jnz short loc_C7406
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov r12, [rdi+8]
mov r15, [r12]
mov rax, [r12+8]
cmp r15, rax
jz short loc_C740C
mov r14, rsi
loc_C73E7:
mov rdi, r15
mov rsi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_C7409
add r15, 30h ; '0'
mov rax, [r12+8]
cmp r15, rax
jnz short loc_C73E7
jmp short loc_C740C
loc_C7406:
xor eax, eax
retn
loc_C7409:
mov rax, r15
loc_C740C:
mov rcx, [rbx+8]
cmp rax, [rcx+8]
setnz al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
long long a1,
long long a2)
{
long long *v2; // r12
long long v3; // r15
long long v4; // rax
if ( *(_BYTE *)a1 != 1 )
return 0;
v2 = *(long long **)(a1 + 8);
v3 = *v2;
v4 = v2[1];
if ( *v2 != v4 )
{
while ( (unsigned int)std::string::compare(v3, a2) )
{
v3 += 48LL;
v4 = v2[1];
if ( v3 == v4 )
return v4 != *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
v4 = v3;
}
return v4 != *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
CMP byte ptr [RDI],0x1
JNZ 0x001c7406
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV R15,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP R15,RAX
JZ 0x001c740c
MOV R14,RSI
LAB_001c73e7:
MOV RDI,R15
MOV RSI,R14
CALL 0x0011b210
TEST EAX,EAX
JZ 0x001c7409
ADD R15,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP R15,RAX
JNZ 0x001c73e7
JMP 0x001c740c
LAB_001c7406:
XOR EAX,EAX
RET
LAB_001c7409:
MOV RAX,R15
LAB_001c740c:
MOV RCX,qword ptr [RBX + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int8
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(char *param_1)
{
long *plVar1;
int iVar2;
char *pcVar3;
char *pcVar4;
if (*param_1 != '\x01') {
return 0;
}
plVar1 = *(long **)(param_1 + 8);
pcVar3 = (char *)plVar1[1];
pcVar4 = (char *)*plVar1;
if ((char *)*plVar1 != pcVar3) {
do {
pcVar3 = pcVar4;
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar4 = pcVar3 + 0x30;
pcVar3 = (char *)plVar1[1];
} while (pcVar4 != pcVar3);
}
return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != *(char **)(*(long *)(param_1 + 8) + 8));
}
|
|
10,064 |
ma_write_undo_key_insert
|
eloqsql/storage/maria/ma_write.c
|
int _ma_write_undo_key_insert(MARIA_HA *info, const MARIA_KEY *key,
my_off_t *root, my_off_t new_root, LSN *res_lsn)
{
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
uchar log_data[LSN_STORE_SIZE + FILEID_STORE_SIZE +
KEY_NR_STORE_SIZE];
const uchar *key_value;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2];
struct st_msg_to_write_hook_for_undo_key msg;
uint key_length;
/* Save if we need to write a clr record */
lsn_store(log_data, info->trn->undo_lsn);
key_nr_store(log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE,
keyinfo->key_nr);
key_length= key->data_length + key->ref_length;
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data);
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key->data;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= key_length;
msg.root= root;
msg.value= new_root;
msg.auto_increment= 0;
key_value= key->data;
if (share->base.auto_key == ((uint) keyinfo->key_nr + 1))
{
const HA_KEYSEG *keyseg= keyinfo->seg;
uchar reversed[MARIA_MAX_KEY_BUFF];
if (keyseg->flag & HA_SWAP_KEY)
{
/* We put key from log record to "data record" packing format... */
const uchar *key_ptr= key->data, *key_end= key->data + keyseg->length;
uchar *to= reversed + keyseg->length;
do
{
*--to= *key_ptr++;
} while (key_ptr != key_end);
key_value= to;
}
/* ... so that we can read it with: */
msg.auto_increment=
ma_retrieve_auto_increment(key_value, keyseg->type);
/* and write_hook_for_undo_key_insert() will pick this. */
}
return translog_write_record(res_lsn, LOGREC_UNDO_KEY_INSERT,
info->trn, info,
(translog_size_t)
log_array[TRANSLOG_INTERNAL_PARTS + 0].length +
key_length,
TRANSLOG_INTERNAL_PARTS + 2, log_array,
log_data + LSN_STORE_SIZE, &msg) ? -1 : 0;
}
|
O3
|
c
|
ma_write_undo_key_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa50, %rsp # imm = 0xA50
movq %r8, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq (%rdi), %r9
movq 0x8(%rsi), %r8
movq 0x8(%rdi), %rax
movq 0x98(%rax), %rdi
movq %rdi, %r10
shrq $0x20, %r10
leaq -0x32(%rbp), %r11
movb %r10b, (%r11)
movq %rdi, %r10
shrq $0x28, %r10
movb %r10b, 0x1(%r11)
movq %rdi, %r10
shrq $0x30, %r10
movb %r10b, 0x2(%r11)
movl %edi, 0x3(%r11)
movzbl 0xa5(%r8), %r10d
movb %r10b, 0x9(%r11)
movl 0x14(%rsi), %r15d
addl 0x10(%rsi), %r15d
movq %r11, -0xa50(%rbp)
movq $0xa, -0xa48(%rbp)
movq (%rsi), %rdi
movq %rdi, -0xa40(%rbp)
movq %r15, -0xa38(%rbp)
movq %rdx, -0xa30(%rbp)
movq %rcx, -0xa28(%rbp)
movq $0x0, -0xa18(%rbp)
incl %r10d
cmpl %r10d, 0x3ec(%r9)
jne 0x584e6
movq 0xc0(%r8), %rax
testb $0x40, 0x12(%rax)
je 0x584d2
movzwl 0x14(%rax), %ecx
leaq -0xa10(%rbp), %rdx
movb (%rdi), %sil
incq %rdi
movb %sil, -0xa11(%rbp,%rcx)
decq %rcx
jne 0x584bc
movq %rdx, %rdi
movzbl 0x18(%rax), %esi
callq 0x42263
movq %rax, -0xa18(%rbp)
movq 0x8(%r14), %rax
leaq -0x2b(%rbp), %r10
addl $0xa, %r15d
subq $0x8, %rsp
leaq -0xa30(%rbp), %r11
leaq -0xa70(%rbp), %r12
movq %rbx, %rdi
movl $0x15, %esi
movq %rax, %rdx
movq %r14, %rcx
movl %r15d, %r8d
movl $0x4, %r9d
pushq %r11
pushq %r10
pushq %r12
callq 0x29c44
addq $0x20, %rsp
movl %eax, %ecx
xorl %eax, %eax
negb %cl
sbbl %eax, %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x5854d
addq $0xa50, %rsp # imm = 0xA50
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
|
_ma_write_undo_key_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 0A50h
mov rbx, r8
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
mov r9, [rdi]
mov r8, [rsi+8]
mov rax, [rdi+8]
mov rdi, [rax+98h]
mov r10, rdi
shr r10, 20h
lea r11, [rbp+var_32]
mov [r11], r10b
mov r10, rdi
shr r10, 28h
mov [r11+1], r10b
mov r10, rdi
shr r10, 30h
mov [r11+2], r10b
mov [r11+3], edi
movzx r10d, byte ptr [r8+0A5h]
mov [r11+9], r10b
mov r15d, [rsi+14h]
add r15d, [rsi+10h]
mov [rbp+var_A50], r11
mov [rbp+var_A48], 0Ah
mov rdi, [rsi]
mov [rbp+var_A40], rdi
mov [rbp+var_A38], r15
mov [rbp+var_A30], rdx
mov [rbp+var_A28], rcx
mov [rbp+var_A18], 0
inc r10d
cmp [r9+3ECh], r10d
jnz short loc_584E6
mov rax, [r8+0C0h]
test byte ptr [rax+12h], 40h
jz short loc_584D2
movzx ecx, word ptr [rax+14h]
lea rdx, [rbp+var_A10]
loc_584BC:
mov sil, [rdi]
inc rdi
mov byte ptr [rbp+rcx+var_A18+7], sil
dec rcx
jnz short loc_584BC
mov rdi, rdx
loc_584D2:
movzx esi, byte ptr [rax+18h]
call ma_retrieve_auto_increment
mov [rbp+var_A18], rax
mov rax, [r14+8]
loc_584E6:
lea r10, [rbp+var_2B]
add r15d, 0Ah
sub rsp, 8
lea r11, [rbp+var_A30]
lea r12, [rbp+var_A70]
mov rdi, rbx
mov esi, 15h
mov rdx, rax
mov rcx, r14
mov r8d, r15d
mov r9d, 4
push r11
push r10
push r12
call translog_write_record
add rsp, 20h
mov ecx, eax
xor eax, eax
neg cl
sbb eax, eax
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_5854D
add rsp, 0A50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_5854D:
call ___stack_chk_fail
|
long long ma_write_undo_key_insert(long long *a1, long long a2, long long a3, long long a4, unsigned long long a5)
{
long long v7; // r9
long long v8; // r8
long long v9; // rax
long long v10; // rdi
long long v11; // r15
unsigned __int8 *v12; // rdi
long long v13; // rax
long long v14; // rcx
char v15; // si
__int128 v17; // [rsp+0h] [rbp-A70h] BYREF
_BYTE *v18; // [rsp+20h] [rbp-A50h]
long long v19; // [rsp+28h] [rbp-A48h]
unsigned __int8 *v20; // [rsp+30h] [rbp-A40h]
long long v21; // [rsp+38h] [rbp-A38h]
_QWORD v22[3]; // [rsp+40h] [rbp-A30h] BYREF
long long auto_increment; // [rsp+58h] [rbp-A18h]
char v24; // [rsp+60h] [rbp-A10h] BYREF
_BYTE v25[3]; // [rsp+A3Eh] [rbp-32h] BYREF
int v26; // [rsp+A41h] [rbp-2Fh]
__int16 v27; // [rsp+A45h] [rbp-2Bh] BYREF
unsigned __int8 v28; // [rsp+A47h] [rbp-29h]
unsigned long long v29; // [rsp+A48h] [rbp-28h]
v29 = __readfsqword(0x28u);
v7 = *a1;
v8 = *(_QWORD *)(a2 + 8);
v9 = a1[1];
v10 = *(_QWORD *)(v9 + 152);
v25[0] = BYTE4(v10);
v25[1] = BYTE5(v10);
v25[2] = BYTE6(v10);
v26 = v10;
v28 = *(_BYTE *)(v8 + 165);
v11 = (unsigned int)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 20));
v18 = v25;
v19 = 10LL;
v12 = *(unsigned __int8 **)a2;
v20 = *(unsigned __int8 **)a2;
v21 = v11;
v22[0] = a3;
v22[1] = a4;
auto_increment = 0LL;
if ( *(_DWORD *)(v7 + 1004) == v28 + 1 )
{
v13 = *(_QWORD *)(v8 + 192);
if ( (*(_BYTE *)(v13 + 18) & 0x40) != 0 )
{
v14 = *(unsigned __int16 *)(v13 + 20);
do
{
v15 = *v12++;
*((_BYTE *)&auto_increment + v14-- + 7) = v15;
}
while ( v14 );
v12 = (unsigned __int8 *)&v24;
}
auto_increment = ma_retrieve_auto_increment(v12, *(unsigned __int8 *)(v13 + 24));
v9 = a1[1];
}
return (unsigned int)-((unsigned __int8)translog_write_record(
a5,
(int *)((char *)&dword_14 + 1),
v9,
a1,
(int)v11 + 10,
4,
&v17,
&v27,
(long long)v22) != 0);
}
|
_ma_write_undo_key_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xa50
MOV RBX,R8
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV R9,qword ptr [RDI]
MOV R8,qword ptr [RSI + 0x8]
MOV RAX,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RAX + 0x98]
MOV R10,RDI
SHR R10,0x20
LEA R11,[RBP + -0x32]
MOV byte ptr [R11],R10B
MOV R10,RDI
SHR R10,0x28
MOV byte ptr [R11 + 0x1],R10B
MOV R10,RDI
SHR R10,0x30
MOV byte ptr [R11 + 0x2],R10B
MOV dword ptr [R11 + 0x3],EDI
MOVZX R10D,byte ptr [R8 + 0xa5]
MOV byte ptr [R11 + 0x9],R10B
MOV R15D,dword ptr [RSI + 0x14]
ADD R15D,dword ptr [RSI + 0x10]
MOV qword ptr [RBP + -0xa50],R11
MOV qword ptr [RBP + -0xa48],0xa
MOV RDI,qword ptr [RSI]
MOV qword ptr [RBP + -0xa40],RDI
MOV qword ptr [RBP + -0xa38],R15
MOV qword ptr [RBP + -0xa30],RDX
MOV qword ptr [RBP + -0xa28],RCX
MOV qword ptr [RBP + -0xa18],0x0
INC R10D
CMP dword ptr [R9 + 0x3ec],R10D
JNZ 0x001584e6
MOV RAX,qword ptr [R8 + 0xc0]
TEST byte ptr [RAX + 0x12],0x40
JZ 0x001584d2
MOVZX ECX,word ptr [RAX + 0x14]
LEA RDX,[RBP + -0xa10]
LAB_001584bc:
MOV SIL,byte ptr [RDI]
INC RDI
MOV byte ptr [RBP + RCX*0x1 + -0xa11],SIL
DEC RCX
JNZ 0x001584bc
MOV RDI,RDX
LAB_001584d2:
MOVZX ESI,byte ptr [RAX + 0x18]
CALL 0x00142263
MOV qword ptr [RBP + -0xa18],RAX
MOV RAX,qword ptr [R14 + 0x8]
LAB_001584e6:
LEA R10,[RBP + -0x2b]
ADD R15D,0xa
SUB RSP,0x8
LEA R11,[RBP + -0xa30]
LEA R12,[RBP + -0xa70]
MOV RDI,RBX
MOV ESI,0x15
MOV RDX,RAX
MOV RCX,R14
MOV R8D,R15D
MOV R9D,0x4
PUSH R11
PUSH R10
PUSH R12
CALL 0x00129c44
ADD RSP,0x20
MOV ECX,EAX
XOR EAX,EAX
NEG CL
SBB EAX,EAX
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x0015854d
ADD RSP,0xa50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0015854d:
CALL 0x00129250
|
int _ma_write_undo_key_insert
(long *param_1,long *param_2,int8 param_3,int8 param_4,int8 param_5)
{
int1 uVar1;
int8 uVar2;
char cVar3;
long lVar4;
ulong uVar5;
int1 *puVar6;
int1 *puVar7;
uint uVar8;
long in_FS_OFFSET;
int1 local_a78 [32];
int1 *local_a58;
int8 local_a50;
int1 *local_a48;
ulong local_a40;
int8 local_a38;
int8 local_a30;
int8 local_a20;
int1 local_a18 [2526];
int1 local_3a;
int1 local_39;
int1 local_38;
int4 local_37;
int1 local_33 [2];
byte local_31;
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
lVar4 = param_1[1];
uVar2 = *(int8 *)(lVar4 + 0x98);
local_a58 = &local_3a;
local_3a = (int1)((ulong)uVar2 >> 0x20);
local_39 = (int1)((ulong)uVar2 >> 0x28);
local_38 = (int1)((ulong)uVar2 >> 0x30);
local_37 = (int4)uVar2;
local_31 = *(byte *)(param_2[1] + 0xa5);
uVar8 = *(int *)((long)param_2 + 0x14) + (int)param_2[2];
local_a40 = (ulong)uVar8;
local_a50 = 10;
local_a48 = (int1 *)*param_2;
local_a20 = 0;
local_a38 = param_3;
local_a30 = param_4;
if (*(int *)(*param_1 + 0x3ec) == local_31 + 1) {
lVar4 = *(long *)(param_2[1] + 0xc0);
puVar7 = local_a48;
if ((*(byte *)(lVar4 + 0x12) & 0x40) != 0) {
uVar5 = (ulong)*(ushort *)(lVar4 + 0x14);
puVar7 = local_a18;
puVar6 = local_a48;
do {
uVar1 = *puVar6;
puVar6 = puVar6 + 1;
local_a18[uVar5 - 1] = uVar1;
uVar5 = uVar5 - 1;
} while (uVar5 != 0);
}
local_a20 = ma_retrieve_auto_increment(puVar7,*(int1 *)(lVar4 + 0x18));
lVar4 = param_1[1];
}
cVar3 = translog_write_record
(param_5,0x15,lVar4,param_1,uVar8 + 10,4,local_a78,local_33,&local_a38);
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return -(uint)(cVar3 != '\0');
}
|
|
10,065 |
inline_mysql_cond_broadcast
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_cond_broadcast(
mysql_cond_t *that)
{
int result;
#ifdef HAVE_PSI_COND_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_COND_CALL(broadcast_cond)(that->m_psi);
#endif
result= pthread_cond_broadcast(&that->m_cond);
return result;
}
|
O0
|
c
|
inline_mysql_cond_broadcast:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5d9cb
leaq 0x261701(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x178(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0x2a6b0
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
|
inline_mysql_cond_broadcast_1:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5D9CB
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+178h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+30h]
call rax
loc_5D9CB:
mov rdi, [rbp+var_8]
call _pthread_cond_broadcast
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_cond_broadcast_1(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
((void ( *)(_QWORD))PSI_server[47])(*(_QWORD *)(a1 + 48));
return (unsigned int)pthread_cond_broadcast(a1);
}
|
inline_mysql_cond_broadcast:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015d9cb
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x178]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x30]
CALL RAX
LAB_0015d9cb:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a6b0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int inline_mysql_cond_broadcast(pthread_cond_t *param_1)
{
int iVar1;
if (param_1[1].__align != 0) {
(**(code **)(PSI_server + 0x178))(param_1[1].__align);
}
iVar1 = pthread_cond_broadcast(param_1);
return iVar1;
}
|
|
10,066 |
dequantize_row_q8_0
|
ngxson[P]ggml-easy/ggml/src/ggml-quants.c
|
void dequantize_row_q8_0(const block_q8_0 * GGML_RESTRICT x, float * GGML_RESTRICT y, int64_t k) {
static const int qk = QK8_0;
assert(k % qk == 0);
const int nb = k / qk;
for (int i = 0; i < nb; i++) {
const float d = GGML_FP16_TO_FP32(x[i].d);
for (int j = 0; j < qk; ++j) {
y[i*qk + j] = x[i].qs[j]*d;
}
}
}
|
O1
|
c
|
dequantize_row_q8_0:
leaq 0x1f(%rdx), %rax
testq %rdx, %rdx
cmovnsq %rdx, %rax
sarq $0x5, %rax
testl %eax, %eax
jle 0x2d05a
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
leaq 0x2(%rdi), %rcx
xorl %edx, %edx
movq 0x3cfa3(%rip), %r8 # 0x69fa8
movq %rdx, %r9
shlq $0x5, %r9
leaq (%r9,%rdx,2), %r9
movzwl (%rdi,%r9), %r9d
movss (%r8,%r9,4), %xmm0
shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
xorl %r9d, %r9d
movd (%rcx,%r9), %xmm1
punpcklbw %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
punpcklwd %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1,2,2,3,3]
psrad $0x18, %xmm1
cvtdq2ps %xmm1, %xmm1
mulps %xmm0, %xmm1
movups %xmm1, (%rsi,%r9,4)
addq $0x4, %r9
cmpq $0x20, %r9
jne 0x2d022
incq %rdx
subq $-0x80, %rsi
addq $0x22, %rcx
cmpq %rax, %rdx
jne 0x2d005
retq
|
dequantize_row_q8_0:
lea rax, [rdx+1Fh]
test rdx, rdx
cmovns rax, rdx
sar rax, 5
test eax, eax
jle short locret_2D05A
and eax, 7FFFFFFFh
lea rcx, [rdi+2]
xor edx, edx
mov r8, cs:ggml_table_f32_f16_ptr
loc_2D005:
mov r9, rdx
shl r9, 5
lea r9, [r9+rdx*2]
movzx r9d, word ptr [rdi+r9]
movss xmm0, dword ptr [r8+r9*4]
shufps xmm0, xmm0, 0
xor r9d, r9d
loc_2D022:
movd xmm1, dword ptr [rcx+r9]
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
psrad xmm1, 18h
cvtdq2ps xmm1, xmm1
mulps xmm1, xmm0
movups xmmword ptr [rsi+r9*4], xmm1
add r9, 4
cmp r9, 20h ; ' '
jnz short loc_2D022
inc rdx
sub rsi, 0FFFFFFFFFFFFFF80h
add rcx, 22h ; '"'
cmp rdx, rax
jnz short loc_2D005
locret_2D05A:
retn
|
long long dequantize_row_q8_0(long long a1, long long a2, long long a3)
{
long long result; // rax
long long v4; // rcx
long long v5; // rdx
__m128 v6; // xmm0
__m128 v7; // xmm0
long long i; // r9
__m128i v9; // xmm1
__m128i v10; // xmm1
result = a3 / 32;
if ( (int)(a3 / 32) > 0 )
{
result = (a3 / 32) & 0x7FFFFFFF;
v4 = a1 + 2;
v5 = 0LL;
do
{
v6 = (__m128)LODWORD(ggml_table_f32_f16[*(unsigned __int16 *)(a1 + 34 * v5)]);
v7 = _mm_shuffle_ps(v6, v6, 0);
for ( i = 0LL; i != 32; i += 4LL )
{
v9 = _mm_cvtsi32_si128(*(_DWORD *)(v4 + i));
v10 = _mm_unpacklo_epi8(v9, v9);
*(__m128 *)(a2 + 4 * i) = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_unpacklo_epi16(v10, v10), 0x18u)), v7);
}
++v5;
a2 += 128LL;
v4 += 34LL;
}
while ( v5 != result );
}
return result;
}
|
dequantize_row_q8_0:
LEA RAX,[RDX + 0x1f]
TEST RDX,RDX
CMOVNS RAX,RDX
SAR RAX,0x5
TEST EAX,EAX
JLE 0x0012d05a
AND EAX,0x7fffffff
LEA RCX,[RDI + 0x2]
XOR EDX,EDX
MOV R8,qword ptr [0x00169fa8]
LAB_0012d005:
MOV R9,RDX
SHL R9,0x5
LEA R9,[R9 + RDX*0x2]
MOVZX R9D,word ptr [RDI + R9*0x1]
MOVSS XMM0,dword ptr [R8 + R9*0x4]
SHUFPS XMM0,XMM0,0x0
XOR R9D,R9D
LAB_0012d022:
MOVD XMM1,dword ptr [RCX + R9*0x1]
PUNPCKLBW XMM1,XMM1
PUNPCKLWD XMM1,XMM1
PSRAD XMM1,0x18
CVTDQ2PS XMM1,XMM1
MULPS XMM1,XMM0
MOVUPS xmmword ptr [RSI + R9*0x4],XMM1
ADD R9,0x4
CMP R9,0x20
JNZ 0x0012d022
INC RDX
SUB RSI,-0x80
ADD RCX,0x22
CMP RDX,RAX
JNZ 0x0012d005
LAB_0012d05a:
RET
|
void dequantize_row_q8_0(long param_1,long param_2,long param_3)
{
float *pfVar1;
float fVar2;
int4 uVar3;
int8 uVar4;
ulong uVar5;
int6 uVar6;
int1 auVar7 [12];
int *puVar8;
uint uVar9;
long lVar10;
ulong uVar11;
long lVar12;
short sVar13;
int1 auVar14 [16];
int1 auVar15 [16];
int1 auVar16 [16];
int1 uVar17;
int2 uVar18;
puVar8 = PTR_ggml_table_f32_f16_00169fa8;
lVar10 = param_3 + 0x1f;
if (-1 < param_3) {
lVar10 = param_3;
}
uVar9 = (uint)(lVar10 >> 5);
if (0 < (int)uVar9) {
lVar10 = param_1 + 2;
uVar11 = 0;
do {
fVar2 = *(float *)(puVar8 + (ulong)*(ushort *)(param_1 + uVar11 * 0x22) * 4);
lVar12 = 0;
do {
uVar3 = *(int4 *)(lVar10 + lVar12);
uVar17 = (int1)((uint)uVar3 >> 0x18);
uVar18 = CONCAT11(uVar17,uVar17);
uVar17 = (int1)((uint)uVar3 >> 0x10);
uVar4 = CONCAT35(CONCAT21(uVar18,uVar17),CONCAT14(uVar17,uVar3));
uVar17 = (int1)((uint)uVar3 >> 8);
uVar6 = CONCAT51(CONCAT41((int)((ulong)uVar4 >> 0x20),uVar17),uVar17);
sVar13 = CONCAT11((char)uVar3,(char)uVar3);
uVar5 = CONCAT62(uVar6,sVar13);
auVar16._8_4_ = 0;
auVar16._0_8_ = uVar5;
auVar16._12_2_ = uVar18;
auVar16._14_2_ = uVar18;
uVar18 = (int2)((ulong)uVar4 >> 0x20);
auVar15._12_4_ = auVar16._12_4_;
auVar15._8_2_ = 0;
auVar15._0_8_ = uVar5;
auVar15._10_2_ = uVar18;
auVar14._10_6_ = auVar15._10_6_;
auVar14._8_2_ = uVar18;
auVar14._0_8_ = uVar5;
uVar18 = (int2)uVar6;
auVar7._4_8_ = auVar14._8_8_;
auVar7._2_2_ = uVar18;
auVar7._0_2_ = uVar18;
pfVar1 = (float *)(param_2 + lVar12 * 4);
*pfVar1 = (float)((int)sVar13 >> 8) * fVar2;
pfVar1[1] = (float)(auVar7._0_4_ >> 0x18) * fVar2;
pfVar1[2] = (float)(auVar14._8_4_ >> 0x18) * fVar2;
pfVar1[3] = (float)(auVar15._12_4_ >> 0x18) * fVar2;
lVar12 = lVar12 + 4;
} while (lVar12 != 0x20);
uVar11 = uVar11 + 1;
param_2 = param_2 + 0x80;
lVar10 = lVar10 + 0x22;
} while (uVar11 != (uVar9 & 0x7fffffff));
}
return;
}
|
|
10,067 |
dequantize_row_q8_0
|
ngxson[P]ggml-easy/ggml/src/ggml-quants.c
|
void dequantize_row_q8_0(const block_q8_0 * GGML_RESTRICT x, float * GGML_RESTRICT y, int64_t k) {
static const int qk = QK8_0;
assert(k % qk == 0);
const int nb = k / qk;
for (int i = 0; i < nb; i++) {
const float d = GGML_FP16_TO_FP32(x[i].d);
for (int j = 0; j < qk; ++j) {
y[i*qk + j] = x[i].qs[j]*d;
}
}
}
|
O3
|
c
|
dequantize_row_q8_0:
leaq 0x1f(%rdx), %rax
testq %rdx, %rdx
cmovnsq %rdx, %rax
sarq $0x5, %rax
testl %eax, %eax
jle 0x2ce8a
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
leaq 0x2(%rdi), %rcx
xorl %edx, %edx
movq 0x3d173(%rip), %r8 # 0x69fa8
movq %rdx, %r9
shlq $0x5, %r9
leaq (%r9,%rdx,2), %r9
movzwl (%rdi,%r9), %r9d
movss (%r8,%r9,4), %xmm0
shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
xorl %r9d, %r9d
movd (%rcx,%r9), %xmm1
punpcklbw %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
punpcklwd %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1,2,2,3,3]
psrad $0x18, %xmm1
cvtdq2ps %xmm1, %xmm1
mulps %xmm0, %xmm1
movups %xmm1, (%rsi,%r9,4)
addq $0x4, %r9
cmpq $0x20, %r9
jne 0x2ce52
incq %rdx
addq $0x22, %rcx
subq $-0x80, %rsi
cmpq %rax, %rdx
jne 0x2ce35
retq
|
dequantize_row_q8_0:
lea rax, [rdx+1Fh]
test rdx, rdx
cmovns rax, rdx
sar rax, 5
test eax, eax
jle short locret_2CE8A
and eax, 7FFFFFFFh
lea rcx, [rdi+2]
xor edx, edx
mov r8, cs:ggml_table_f32_f16_ptr
loc_2CE35:
mov r9, rdx
shl r9, 5
lea r9, [r9+rdx*2]
movzx r9d, word ptr [rdi+r9]
movss xmm0, dword ptr [r8+r9*4]
shufps xmm0, xmm0, 0
xor r9d, r9d
loc_2CE52:
movd xmm1, dword ptr [rcx+r9]
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
psrad xmm1, 18h
cvtdq2ps xmm1, xmm1
mulps xmm1, xmm0
movups xmmword ptr [rsi+r9*4], xmm1
add r9, 4
cmp r9, 20h ; ' '
jnz short loc_2CE52
inc rdx
add rcx, 22h ; '"'
sub rsi, 0FFFFFFFFFFFFFF80h
cmp rdx, rax
jnz short loc_2CE35
locret_2CE8A:
retn
|
long long dequantize_row_q8_0(long long a1, long long a2, long long a3)
{
long long result; // rax
long long v4; // rcx
long long v5; // rdx
__m128 v6; // xmm0
__m128 v7; // xmm0
long long i; // r9
__m128i v9; // xmm1
__m128i v10; // xmm1
result = a3 / 32;
if ( (int)(a3 / 32) > 0 )
{
result = (a3 / 32) & 0x7FFFFFFF;
v4 = a1 + 2;
v5 = 0LL;
do
{
v6 = (__m128)LODWORD(ggml_table_f32_f16[*(unsigned __int16 *)(a1 + 34 * v5)]);
v7 = _mm_shuffle_ps(v6, v6, 0);
for ( i = 0LL; i != 32; i += 4LL )
{
v9 = _mm_cvtsi32_si128(*(_DWORD *)(v4 + i));
v10 = _mm_unpacklo_epi8(v9, v9);
*(__m128 *)(a2 + 4 * i) = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_unpacklo_epi16(v10, v10), 0x18u)), v7);
}
++v5;
v4 += 34LL;
a2 += 128LL;
}
while ( v5 != result );
}
return result;
}
|
dequantize_row_q8_0:
LEA RAX,[RDX + 0x1f]
TEST RDX,RDX
CMOVNS RAX,RDX
SAR RAX,0x5
TEST EAX,EAX
JLE 0x0012ce8a
AND EAX,0x7fffffff
LEA RCX,[RDI + 0x2]
XOR EDX,EDX
MOV R8,qword ptr [0x00169fa8]
LAB_0012ce35:
MOV R9,RDX
SHL R9,0x5
LEA R9,[R9 + RDX*0x2]
MOVZX R9D,word ptr [RDI + R9*0x1]
MOVSS XMM0,dword ptr [R8 + R9*0x4]
SHUFPS XMM0,XMM0,0x0
XOR R9D,R9D
LAB_0012ce52:
MOVD XMM1,dword ptr [RCX + R9*0x1]
PUNPCKLBW XMM1,XMM1
PUNPCKLWD XMM1,XMM1
PSRAD XMM1,0x18
CVTDQ2PS XMM1,XMM1
MULPS XMM1,XMM0
MOVUPS xmmword ptr [RSI + R9*0x4],XMM1
ADD R9,0x4
CMP R9,0x20
JNZ 0x0012ce52
INC RDX
ADD RCX,0x22
SUB RSI,-0x80
CMP RDX,RAX
JNZ 0x0012ce35
LAB_0012ce8a:
RET
|
void dequantize_row_q8_0(long param_1,long param_2,long param_3)
{
float *pfVar1;
float fVar2;
int4 uVar3;
int8 uVar4;
ulong uVar5;
int6 uVar6;
int1 auVar7 [12];
int *puVar8;
uint uVar9;
long lVar10;
ulong uVar11;
long lVar12;
short sVar13;
int1 auVar14 [16];
int1 auVar15 [16];
int1 auVar16 [16];
int1 uVar17;
int2 uVar18;
puVar8 = PTR_ggml_table_f32_f16_00169fa8;
lVar10 = param_3 + 0x1f;
if (-1 < param_3) {
lVar10 = param_3;
}
uVar9 = (uint)(lVar10 >> 5);
if (0 < (int)uVar9) {
lVar10 = param_1 + 2;
uVar11 = 0;
do {
fVar2 = *(float *)(puVar8 + (ulong)*(ushort *)(param_1 + uVar11 * 0x22) * 4);
lVar12 = 0;
do {
uVar3 = *(int4 *)(lVar10 + lVar12);
uVar17 = (int1)((uint)uVar3 >> 0x18);
uVar18 = CONCAT11(uVar17,uVar17);
uVar17 = (int1)((uint)uVar3 >> 0x10);
uVar4 = CONCAT35(CONCAT21(uVar18,uVar17),CONCAT14(uVar17,uVar3));
uVar17 = (int1)((uint)uVar3 >> 8);
uVar6 = CONCAT51(CONCAT41((int)((ulong)uVar4 >> 0x20),uVar17),uVar17);
sVar13 = CONCAT11((char)uVar3,(char)uVar3);
uVar5 = CONCAT62(uVar6,sVar13);
auVar16._8_4_ = 0;
auVar16._0_8_ = uVar5;
auVar16._12_2_ = uVar18;
auVar16._14_2_ = uVar18;
uVar18 = (int2)((ulong)uVar4 >> 0x20);
auVar15._12_4_ = auVar16._12_4_;
auVar15._8_2_ = 0;
auVar15._0_8_ = uVar5;
auVar15._10_2_ = uVar18;
auVar14._10_6_ = auVar15._10_6_;
auVar14._8_2_ = uVar18;
auVar14._0_8_ = uVar5;
uVar18 = (int2)uVar6;
auVar7._4_8_ = auVar14._8_8_;
auVar7._2_2_ = uVar18;
auVar7._0_2_ = uVar18;
pfVar1 = (float *)(param_2 + lVar12 * 4);
*pfVar1 = (float)((int)sVar13 >> 8) * fVar2;
pfVar1[1] = (float)(auVar7._0_4_ >> 0x18) * fVar2;
pfVar1[2] = (float)(auVar14._8_4_ >> 0x18) * fVar2;
pfVar1[3] = (float)(auVar15._12_4_ >> 0x18) * fVar2;
lVar12 = lVar12 + 4;
} while (lVar12 != 0x20);
uVar11 = uVar11 + 1;
lVar10 = lVar10 + 0x22;
param_2 = param_2 + 0x80;
} while (uVar11 != (uVar9 & 0x7fffffff));
}
return;
}
|
|
10,068 |
mi_state_info_write
|
eloqsql/storage/myisam/mi_open.c
|
uint mi_state_info_write(File file, MI_STATE_INFO *state, uint pWrite)
{
uchar buff[MI_STATE_INFO_SIZE + MI_STATE_EXTRA_SIZE];
uchar *ptr=buff;
uint i, keys= (uint) state->header.keys,
key_blocks=state->header.max_block_size_index;
DBUG_ENTER("mi_state_info_write");
memcpy(ptr, &state->header, sizeof(state->header));
ptr+=sizeof(state->header);
/* open_count must be first because of _mi_mark_file_changed ! */
mi_int2store(ptr,state->open_count); ptr +=2;
*ptr++= (uchar)state->changed; *ptr++= state->sortkey;
mi_rowstore(ptr,state->state.records); ptr +=8;
mi_rowstore(ptr,state->state.del); ptr +=8;
mi_rowstore(ptr,state->split); ptr +=8;
mi_sizestore(ptr,state->dellink); ptr +=8;
mi_sizestore(ptr,state->state.key_file_length); ptr +=8;
mi_sizestore(ptr,state->state.data_file_length); ptr +=8;
mi_sizestore(ptr,state->state.empty); ptr +=8;
mi_sizestore(ptr,state->state.key_empty); ptr +=8;
mi_int8store(ptr,state->auto_increment); ptr +=8;
mi_int8store(ptr,(ulonglong) state->state.checksum);ptr +=8;
mi_int4store(ptr,state->process); ptr +=4;
mi_int4store(ptr,state->unique); ptr +=4;
mi_int4store(ptr,state->status); ptr +=4;
mi_int4store(ptr,state->update_count); ptr +=4;
ptr+=state->state_diff_length;
for (i=0; i < keys; i++)
{
mi_sizestore(ptr,state->key_root[i]); ptr +=8;
}
for (i=0; i < key_blocks; i++)
{
mi_sizestore(ptr,state->key_del[i]); ptr +=8;
}
if (pWrite & 2) /* From isamchk */
{
uint key_parts= mi_uint2korr(state->header.key_parts);
mi_int4store(ptr,state->sec_index_changed); ptr +=4;
mi_int4store(ptr,state->sec_index_used); ptr +=4;
mi_int4store(ptr,state->version); ptr +=4;
mi_int8store(ptr,state->key_map); ptr +=8;
mi_int8store(ptr,(ulonglong) state->create_time); ptr +=8;
mi_int8store(ptr,(ulonglong) state->recover_time); ptr +=8;
mi_int8store(ptr,(ulonglong) state->check_time); ptr +=8;
mi_sizestore(ptr,state->rec_per_key_rows); ptr+=8;
for (i=0 ; i < key_parts ; i++)
{
mi_int4store(ptr,state->rec_per_key_part[i]); ptr+=4;
}
}
if (pWrite & 1)
DBUG_RETURN(mysql_file_pwrite(file, buff, (size_t) (ptr-buff), 0L,
MYF(MY_NABP | MY_THREADSAFE)) != 0);
DBUG_RETURN(mysql_file_write(file, buff, (size_t) (ptr-buff),
MYF(MY_NABP)) != 0);
}
|
O3
|
c
|
mi_state_info_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2388, %rsp # imm = 0x2388
movl %edi, %r13d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzbl 0x12(%rsi), %ecx
movzbl 0x15(%rsi), %eax
movq 0x10(%rsi), %rdi
movq %rdi, -0x2350(%rbp)
movups (%rsi), %xmm0
movaps %xmm0, -0x2360(%rbp)
movzwl 0xec(%rsi), %edi
rolw $0x8, %di
movw %di, -0x2348(%rbp)
movb 0xf0(%rsi), %dil
movb %dil, -0x2346(%rbp)
movb 0xe8(%rsi), %dil
movb %dil, -0x2345(%rbp)
movq 0x18(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2344(%rbp)
movq 0x20(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x233c(%rbp)
movq 0x50(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2334(%rbp)
movq 0x58(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x232c(%rbp)
movq 0x38(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2324(%rbp)
movq 0x40(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x231c(%rbp)
movq 0x28(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2314(%rbp)
movq 0x30(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x230c(%rbp)
movq 0x60(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2304(%rbp)
movl 0x48(%rsi), %ebx
movl %ebx, %edi
movl $0x0, -0x22fc(%rbp)
movb %bl, -0x22f5(%rbp)
movb %bh, -0x22f6(%rbp)
shrl $0x10, %ebx
shrl $0x18, %edi
movb %bl, -0x22f7(%rbp)
movb %dil, -0x22f8(%rbp)
movl 0x68(%rsi), %edi
bswapl %edi
movl %edi, -0x22f4(%rbp)
movl 0x70(%rsi), %edi
bswapl %edi
movl %edi, -0x22f0(%rbp)
movl 0x80(%rsi), %edi
bswapl %edi
movl %edi, -0x22ec(%rbp)
movl 0x78(%rsi), %edi
bswapl %edi
movl %edi, -0x22e8(%rbp)
movl 0xf4(%rsi), %edi
leaq (%rdi,%rbp), %r14
addq $-0x22e4, %r14 # imm = 0xDD1C
testq %rcx, %rcx
je 0x7fdd8
movq 0x98(%rsi), %rdi
shll $0x3, %ecx
xorl %r8d, %r8d
movq (%rdi,%r8), %r9
bswapq %r9
movq %r9, (%r14,%r8)
addq $0x8, %r8
cmpq %r8, %rcx
jne 0x7fdc1
addq %r8, %r14
testq %rax, %rax
je 0x7fe00
shll $0x3, %eax
xorl %ecx, %ecx
movq 0xa0(%rsi), %rdi
movq (%rdi,%rcx), %rdi
bswapq %rdi
movq %rdi, (%r14,%rcx)
addq $0x8, %rcx
cmpq %rcx, %rax
jne 0x7fde2
addq %rcx, %r14
testb $0x2, %dl
je 0x7fea6
movzbl 0xf(%rsi), %ecx
movzbl 0xe(%rsi), %eax
movl 0xb0(%rsi), %edi
bswapl %edi
movl %edi, (%r14)
movl 0xb8(%rsi), %edi
bswapl %edi
movl %edi, 0x4(%r14)
movl 0xc8(%rsi), %edi
bswapl %edi
movl %edi, 0x8(%r14)
movq 0xc0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0xc(%r14)
movq 0xd0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x14(%r14)
movq 0xd8(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x1c(%r14)
movq 0xe0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x24(%r14)
movq 0xa8(%rsi), %rdi
bswapq %rdi
shll $0x8, %eax
movq %rdi, 0x2c(%r14)
addq $0x34, %r14
orl %ecx, %eax
je 0x7fea6
shll $0x2, %eax
xorl %ecx, %ecx
movq 0x88(%rsi), %rdi
movl (%rdi,%rcx,2), %edi
bswapl %edi
movl %edi, (%r14,%rcx)
addq $0x4, %rcx
cmpq %rcx, %rax
jne 0x7fe8a
addq %rcx, %r14
leaq -0x2360(%rbp), %rax
subq %rax, %r14
leaq 0x306159(%rip), %r12 # 0x386010
testb $0x1, %dl
jne 0x7fef7
movq (%r12), %rax
leaq -0x23a8(%rbp), %rdi
movl %r13d, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x7ff65
leaq -0x2360(%rbp), %rsi
movl $0x4, %ecx
movl %r13d, %edi
movq %r14, %rdx
callq 0x2efe4
jmp 0x7ff33
movq (%r12), %rax
leaq -0x23a8(%rbp), %rdi
movl %r13d, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x7ffa5
leaq -0x2360(%rbp), %rsi
movl $0x804, %r8d # imm = 0x804
movl %r13d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa07f2
movq %rax, %rbx
xorl %eax, %eax
testq %rbx, %rbx
setne %cl
movq %fs:0x28, %rdx
cmpq -0x30(%rbp), %rdx
jne 0x7ffff
movb %cl, %al
addq $0x2388, %rsp # imm = 0x2388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq (%r12), %rax
leaq 0x5b9fe(%rip), %rdx # 0xdb971
movq %r15, %rdi
movq %r14, %rsi
movl $0x3cd, %ecx # imm = 0x3CD
callq *0x210(%rax)
leaq -0x2360(%rbp), %rsi
movl $0x4, %ecx
movl %r13d, %edi
movq %r14, %rdx
callq 0x2efe4
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
jmp 0x7ffe9
movq %rax, %r15
movq (%r12), %rax
leaq 0x5b9be(%rip), %rdx # 0xdb971
movq %r15, %rdi
movq %r14, %rsi
movl $0x3cb, %ecx # imm = 0x3CB
callq *0x210(%rax)
leaq -0x2360(%rbp), %rsi
movl $0x804, %r8d # imm = 0x804
movl %r13d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa07f2
movq %rax, %rbx
testq %rax, %rax
movl $0x0, %esi
cmoveq %r14, %rsi
movq (%r12), %rax
movq %r15, %rdi
callq *0x218(%rax)
jmp 0x7ff36
callq 0x29250
|
mi_state_info_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2388h
mov r13d, edi
mov rax, fs:28h
mov [rbp+var_30], rax
movzx ecx, byte ptr [rsi+12h]
movzx eax, byte ptr [rsi+15h]
mov rdi, [rsi+10h]
mov [rbp+var_2350], rdi
movups xmm0, xmmword ptr [rsi]
movaps [rbp+var_2360], xmm0
movzx edi, word ptr [rsi+0ECh]
rol di, 8
mov [rbp+var_2348], di
mov dil, [rsi+0F0h]
mov [rbp+var_2346], dil
mov dil, [rsi+0E8h]
mov [rbp+var_2345], dil
mov rdi, [rsi+18h]
bswap rdi
mov [rbp+var_2344], rdi
mov rdi, [rsi+20h]
bswap rdi
mov [rbp+var_233C], rdi
mov rdi, [rsi+50h]
bswap rdi
mov [rbp+var_2334], rdi
mov rdi, [rsi+58h]
bswap rdi
mov [rbp+var_232C], rdi
mov rdi, [rsi+38h]
bswap rdi
mov [rbp+var_2324], rdi
mov rdi, [rsi+40h]
bswap rdi
mov [rbp+var_231C], rdi
mov rdi, [rsi+28h]
bswap rdi
mov [rbp+var_2314], rdi
mov rdi, [rsi+30h]
bswap rdi
mov [rbp+var_230C], rdi
mov rdi, [rsi+60h]
bswap rdi
mov [rbp+var_2304], rdi
mov ebx, [rsi+48h]
mov edi, ebx
mov [rbp+var_22FC], 0
mov [rbp+var_22F5], bl
mov [rbp+var_22F6], bh
shr ebx, 10h
shr edi, 18h
mov [rbp+var_22F7], bl
mov [rbp+var_22F8], dil
mov edi, [rsi+68h]
bswap edi
mov [rbp+var_22F4], edi
mov edi, [rsi+70h]
bswap edi
mov [rbp+var_22F0], edi
mov edi, [rsi+80h]
bswap edi
mov [rbp+var_22EC], edi
mov edi, [rsi+78h]
bswap edi
mov [rbp+var_22E8], edi
mov edi, [rsi+0F4h]
lea r14, [rdi+rbp]
add r14, 0FFFFFFFFFFFFDD1Ch
test rcx, rcx
jz short loc_7FDD8
mov rdi, [rsi+98h]
shl ecx, 3
xor r8d, r8d
loc_7FDC1:
mov r9, [rdi+r8]
bswap r9
mov [r14+r8], r9
add r8, 8
cmp rcx, r8
jnz short loc_7FDC1
add r14, r8
loc_7FDD8:
test rax, rax
jz short loc_7FE00
shl eax, 3
xor ecx, ecx
loc_7FDE2:
mov rdi, [rsi+0A0h]
mov rdi, [rdi+rcx]
bswap rdi
mov [r14+rcx], rdi
add rcx, 8
cmp rax, rcx
jnz short loc_7FDE2
add r14, rcx
loc_7FE00:
test dl, 2
jz loc_7FEA6
movzx ecx, byte ptr [rsi+0Fh]
movzx eax, byte ptr [rsi+0Eh]
mov edi, [rsi+0B0h]
bswap edi
mov [r14], edi
mov edi, [rsi+0B8h]
bswap edi
mov [r14+4], edi
mov edi, [rsi+0C8h]
bswap edi
mov [r14+8], edi
mov rdi, [rsi+0C0h]
bswap rdi
mov [r14+0Ch], rdi
mov rdi, [rsi+0D0h]
bswap rdi
mov [r14+14h], rdi
mov rdi, [rsi+0D8h]
bswap rdi
mov [r14+1Ch], rdi
mov rdi, [rsi+0E0h]
bswap rdi
mov [r14+24h], rdi
mov rdi, [rsi+0A8h]
bswap rdi
shl eax, 8
mov [r14+2Ch], rdi
add r14, 34h ; '4'
or eax, ecx
jz short loc_7FEA6
shl eax, 2
xor ecx, ecx
loc_7FE8A:
mov rdi, [rsi+88h]
mov edi, [rdi+rcx*2]
bswap edi
mov [r14+rcx], edi
add rcx, 4
cmp rax, rcx
jnz short loc_7FE8A
add r14, rcx
loc_7FEA6:
lea rax, [rbp+var_2360]
sub r14, rax
lea r12, PSI_server
test dl, 1
jnz short loc_7FEF7
mov rax, [r12]
lea rdi, [rbp+var_23A8]
mov esi, r13d
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz loc_7FF65
lea rsi, [rbp+var_2360]
mov ecx, 4
mov edi, r13d
mov rdx, r14
call my_write
jmp short loc_7FF33
loc_7FEF7:
mov rax, [r12]
lea rdi, [rbp+var_23A8]
mov esi, r13d
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz loc_7FFA5
lea rsi, [rbp+var_2360]
mov r8d, 804h
mov edi, r13d
mov rdx, r14
xor ecx, ecx
call my_pwrite
loc_7FF33:
mov rbx, rax
loc_7FF36:
xor eax, eax
test rbx, rbx
setnz cl
mov rdx, fs:28h
cmp rdx, [rbp+var_30]
jnz loc_7FFFF
mov al, cl
add rsp, 2388h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7FF65:
mov r15, rax
mov rax, [r12]
lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov rsi, r14
mov ecx, 3CDh
call qword ptr [rax+210h]
lea rsi, [rbp+var_2360]
mov ecx, 4
mov edi, r13d
mov rdx, r14
call my_write
mov rbx, rax
xor esi, esi
test rax, rax
jmp short loc_7FFE9
loc_7FFA5:
mov r15, rax
mov rax, [r12]
lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov rsi, r14
mov ecx, 3CBh
call qword ptr [rax+210h]
lea rsi, [rbp+var_2360]
mov r8d, 804h
mov edi, r13d
mov rdx, r14
xor ecx, ecx
call my_pwrite
mov rbx, rax
test rax, rax
mov esi, 0
loc_7FFE9:
cmovz rsi, r14
mov rax, [r12]
mov rdi, r15
call qword ptr [rax+218h]
jmp loc_7FF36
loc_7FFFF:
call ___stack_chk_fail
|
bool mi_state_info_write(unsigned int a1, __int128 *a2, char a3)
{
long long v4; // rcx
long long v5; // rax
int v6; // edi
_BYTE *v7; // r14
long long v8; // rdi
long long v9; // rcx
long long v10; // r8
long long v11; // rax
long long v12; // rcx
int v13; // ecx
int v14; // eax
int v15; // eax
long long v16; // rax
long long v17; // rcx
long long v18; // r14
long long v19; // rax
long long v20; // rax
long long v21; // rax
long long v22; // rbx
long long v24; // r15
long long v25; // rsi
bool v26; // zf
_BYTE v28[72]; // [rsp+8h] [rbp-23A8h] BYREF
__int128 v29; // [rsp+50h] [rbp-2360h] BYREF
long long v30; // [rsp+60h] [rbp-2350h]
__int16 v31; // [rsp+68h] [rbp-2348h]
char v32; // [rsp+6Ah] [rbp-2346h]
char v33; // [rsp+6Bh] [rbp-2345h]
unsigned long long v34; // [rsp+6Ch] [rbp-2344h]
unsigned long long v35; // [rsp+74h] [rbp-233Ch]
unsigned long long v36; // [rsp+7Ch] [rbp-2334h]
unsigned long long v37; // [rsp+84h] [rbp-232Ch]
unsigned long long v38; // [rsp+8Ch] [rbp-2324h]
unsigned long long v39; // [rsp+94h] [rbp-231Ch]
unsigned long long v40; // [rsp+9Ch] [rbp-2314h]
unsigned long long v41; // [rsp+A4h] [rbp-230Ch]
unsigned long long v42; // [rsp+ACh] [rbp-2304h]
int v43; // [rsp+B4h] [rbp-22FCh]
char v44; // [rsp+B8h] [rbp-22F8h]
char v45; // [rsp+B9h] [rbp-22F7h]
char v46; // [rsp+BAh] [rbp-22F6h]
char v47; // [rsp+BBh] [rbp-22F5h]
unsigned __int32 v48; // [rsp+BCh] [rbp-22F4h]
unsigned __int32 v49; // [rsp+C0h] [rbp-22F0h]
unsigned __int32 v50; // [rsp+C4h] [rbp-22ECh]
unsigned __int32 v51; // [rsp+C8h] [rbp-22E8h]
_BYTE v52[8884]; // [rsp+CCh] [rbp-22E4h] BYREF
unsigned long long v53; // [rsp+2380h] [rbp-30h]
v53 = __readfsqword(0x28u);
v4 = *((unsigned __int8 *)a2 + 18);
v5 = *((unsigned __int8 *)a2 + 21);
v30 = *((_QWORD *)a2 + 2);
v29 = *a2;
v31 = __ROL2__(*((_WORD *)a2 + 118), 8);
v32 = *((_BYTE *)a2 + 240);
v33 = *((_BYTE *)a2 + 232);
v34 = _byteswap_uint64(*((_QWORD *)a2 + 3));
v35 = _byteswap_uint64(*((_QWORD *)a2 + 4));
v36 = _byteswap_uint64(*((_QWORD *)a2 + 10));
v37 = _byteswap_uint64(*((_QWORD *)a2 + 11));
v38 = _byteswap_uint64(*((_QWORD *)a2 + 7));
v39 = _byteswap_uint64(*((_QWORD *)a2 + 8));
v40 = _byteswap_uint64(*((_QWORD *)a2 + 5));
v41 = _byteswap_uint64(*((_QWORD *)a2 + 6));
v42 = _byteswap_uint64(*((_QWORD *)a2 + 12));
v6 = *((_DWORD *)a2 + 18);
v43 = 0;
v46 = BYTE1(v6);
v47 = v6;
v45 = BYTE2(v6);
v44 = HIBYTE(v6);
v48 = _byteswap_ulong(*((_DWORD *)a2 + 26));
v49 = _byteswap_ulong(*((_DWORD *)a2 + 28));
v50 = _byteswap_ulong(*((_DWORD *)a2 + 32));
v51 = _byteswap_ulong(*((_DWORD *)a2 + 30));
v7 = &v52[*((unsigned int *)a2 + 61)];
if ( v4 )
{
v8 = *((_QWORD *)a2 + 19);
v9 = (unsigned int)(8 * v4);
v10 = 0LL;
do
{
*(_QWORD *)&v7[v10] = _byteswap_uint64(*(_QWORD *)(v8 + v10));
v10 += 8LL;
}
while ( v9 != v10 );
v7 += v10;
}
if ( v5 )
{
v11 = (unsigned int)(8 * v5);
v12 = 0LL;
do
{
*(_QWORD *)&v7[v12] = _byteswap_uint64(*(_QWORD *)(*((_QWORD *)a2 + 20) + v12));
v12 += 8LL;
}
while ( v11 != v12 );
v7 += v12;
}
if ( (a3 & 2) != 0 )
{
v13 = *((unsigned __int8 *)a2 + 15);
v14 = *((unsigned __int8 *)a2 + 14);
*(_DWORD *)v7 = _byteswap_ulong(*((_DWORD *)a2 + 44));
*((_DWORD *)v7 + 1) = _byteswap_ulong(*((_DWORD *)a2 + 46));
*((_DWORD *)v7 + 2) = _byteswap_ulong(*((_DWORD *)a2 + 50));
*(_QWORD *)(v7 + 12) = _byteswap_uint64(*((_QWORD *)a2 + 24));
*(_QWORD *)(v7 + 20) = _byteswap_uint64(*((_QWORD *)a2 + 26));
*(_QWORD *)(v7 + 28) = _byteswap_uint64(*((_QWORD *)a2 + 27));
*(_QWORD *)(v7 + 36) = _byteswap_uint64(*((_QWORD *)a2 + 28));
*(_QWORD *)(v7 + 44) = _byteswap_uint64(*((_QWORD *)a2 + 21));
v7 += 52;
v15 = v13 | (v14 << 8);
if ( v15 )
{
v16 = (unsigned int)(4 * v15);
v17 = 0LL;
do
{
*(_DWORD *)&v7[v17] = _byteswap_ulong(*(_DWORD *)(*((_QWORD *)a2 + 17) + 2 * v17));
v17 += 4LL;
}
while ( v16 != v17 );
v7 += v17;
}
}
v18 = v7 - (_BYTE *)&v29;
if ( (a3 & 1) != 0 )
{
v21 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v28, a1, 7LL);
if ( !v21 )
{
v20 = my_pwrite(a1, &v29, v18, 0LL, 2052LL);
goto LABEL_19;
}
v24 = v21;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v21,
v18,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
971LL);
v22 = my_pwrite(a1, &v29, v18, 0LL, 2052LL);
v26 = v22 == 0;
v25 = 0LL;
}
else
{
v19 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v28, a1, 7LL);
if ( !v19 )
{
v20 = my_write(a1, (long long)&v29, v18, 4LL);
LABEL_19:
v22 = v20;
return v22 != 0;
}
v24 = v19;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v19,
v18,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
973LL);
v22 = my_write(a1, (long long)&v29, v18, 4LL);
v25 = 0LL;
v26 = v22 == 0;
}
if ( v26 )
v25 = v18;
((void ( *)(long long, long long))PSI_server[67])(v24, v25);
return v22 != 0;
}
|
mi_state_info_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2388
MOV R13D,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX ECX,byte ptr [RSI + 0x12]
MOVZX EAX,byte ptr [RSI + 0x15]
MOV RDI,qword ptr [RSI + 0x10]
MOV qword ptr [RBP + -0x2350],RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVAPS xmmword ptr [RBP + -0x2360],XMM0
MOVZX EDI,word ptr [RSI + 0xec]
ROL DI,0x8
MOV word ptr [RBP + -0x2348],DI
MOV DIL,byte ptr [RSI + 0xf0]
MOV byte ptr [RBP + -0x2346],DIL
MOV DIL,byte ptr [RSI + 0xe8]
MOV byte ptr [RBP + -0x2345],DIL
MOV RDI,qword ptr [RSI + 0x18]
BSWAP RDI
MOV qword ptr [RBP + -0x2344],RDI
MOV RDI,qword ptr [RSI + 0x20]
BSWAP RDI
MOV qword ptr [RBP + -0x233c],RDI
MOV RDI,qword ptr [RSI + 0x50]
BSWAP RDI
MOV qword ptr [RBP + -0x2334],RDI
MOV RDI,qword ptr [RSI + 0x58]
BSWAP RDI
MOV qword ptr [RBP + -0x232c],RDI
MOV RDI,qword ptr [RSI + 0x38]
BSWAP RDI
MOV qword ptr [RBP + -0x2324],RDI
MOV RDI,qword ptr [RSI + 0x40]
BSWAP RDI
MOV qword ptr [RBP + -0x231c],RDI
MOV RDI,qword ptr [RSI + 0x28]
BSWAP RDI
MOV qword ptr [RBP + -0x2314],RDI
MOV RDI,qword ptr [RSI + 0x30]
BSWAP RDI
MOV qword ptr [RBP + -0x230c],RDI
MOV RDI,qword ptr [RSI + 0x60]
BSWAP RDI
MOV qword ptr [RBP + -0x2304],RDI
MOV EBX,dword ptr [RSI + 0x48]
MOV EDI,EBX
MOV dword ptr [RBP + -0x22fc],0x0
MOV byte ptr [RBP + -0x22f5],BL
MOV byte ptr [RBP + -0x22f6],BH
SHR EBX,0x10
SHR EDI,0x18
MOV byte ptr [RBP + -0x22f7],BL
MOV byte ptr [RBP + -0x22f8],DIL
MOV EDI,dword ptr [RSI + 0x68]
BSWAP EDI
MOV dword ptr [RBP + -0x22f4],EDI
MOV EDI,dword ptr [RSI + 0x70]
BSWAP EDI
MOV dword ptr [RBP + -0x22f0],EDI
MOV EDI,dword ptr [RSI + 0x80]
BSWAP EDI
MOV dword ptr [RBP + -0x22ec],EDI
MOV EDI,dword ptr [RSI + 0x78]
BSWAP EDI
MOV dword ptr [RBP + -0x22e8],EDI
MOV EDI,dword ptr [RSI + 0xf4]
LEA R14,[RDI + RBP*0x1]
ADD R14,-0x22e4
TEST RCX,RCX
JZ 0x0017fdd8
MOV RDI,qword ptr [RSI + 0x98]
SHL ECX,0x3
XOR R8D,R8D
LAB_0017fdc1:
MOV R9,qword ptr [RDI + R8*0x1]
BSWAP R9
MOV qword ptr [R14 + R8*0x1],R9
ADD R8,0x8
CMP RCX,R8
JNZ 0x0017fdc1
ADD R14,R8
LAB_0017fdd8:
TEST RAX,RAX
JZ 0x0017fe00
SHL EAX,0x3
XOR ECX,ECX
LAB_0017fde2:
MOV RDI,qword ptr [RSI + 0xa0]
MOV RDI,qword ptr [RDI + RCX*0x1]
BSWAP RDI
MOV qword ptr [R14 + RCX*0x1],RDI
ADD RCX,0x8
CMP RAX,RCX
JNZ 0x0017fde2
ADD R14,RCX
LAB_0017fe00:
TEST DL,0x2
JZ 0x0017fea6
MOVZX ECX,byte ptr [RSI + 0xf]
MOVZX EAX,byte ptr [RSI + 0xe]
MOV EDI,dword ptr [RSI + 0xb0]
BSWAP EDI
MOV dword ptr [R14],EDI
MOV EDI,dword ptr [RSI + 0xb8]
BSWAP EDI
MOV dword ptr [R14 + 0x4],EDI
MOV EDI,dword ptr [RSI + 0xc8]
BSWAP EDI
MOV dword ptr [R14 + 0x8],EDI
MOV RDI,qword ptr [RSI + 0xc0]
BSWAP RDI
MOV qword ptr [R14 + 0xc],RDI
MOV RDI,qword ptr [RSI + 0xd0]
BSWAP RDI
MOV qword ptr [R14 + 0x14],RDI
MOV RDI,qword ptr [RSI + 0xd8]
BSWAP RDI
MOV qword ptr [R14 + 0x1c],RDI
MOV RDI,qword ptr [RSI + 0xe0]
BSWAP RDI
MOV qword ptr [R14 + 0x24],RDI
MOV RDI,qword ptr [RSI + 0xa8]
BSWAP RDI
SHL EAX,0x8
MOV qword ptr [R14 + 0x2c],RDI
ADD R14,0x34
OR EAX,ECX
JZ 0x0017fea6
SHL EAX,0x2
XOR ECX,ECX
LAB_0017fe8a:
MOV RDI,qword ptr [RSI + 0x88]
MOV EDI,dword ptr [RDI + RCX*0x2]
BSWAP EDI
MOV dword ptr [R14 + RCX*0x1],EDI
ADD RCX,0x4
CMP RAX,RCX
JNZ 0x0017fe8a
ADD R14,RCX
LAB_0017fea6:
LEA RAX,[RBP + -0x2360]
SUB R14,RAX
LEA R12,[0x486010]
TEST DL,0x1
JNZ 0x0017fef7
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x23a8]
MOV ESI,R13D
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0017ff65
LEA RSI,[RBP + -0x2360]
MOV ECX,0x4
MOV EDI,R13D
MOV RDX,R14
CALL 0x0012efe4
JMP 0x0017ff33
LAB_0017fef7:
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x23a8]
MOV ESI,R13D
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0017ffa5
LEA RSI,[RBP + -0x2360]
MOV R8D,0x804
MOV EDI,R13D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a07f2
LAB_0017ff33:
MOV RBX,RAX
LAB_0017ff36:
XOR EAX,EAX
TEST RBX,RBX
SETNZ CL
MOV RDX,qword ptr FS:[0x28]
CMP RDX,qword ptr [RBP + -0x30]
JNZ 0x0017ffff
MOV AL,CL
ADD RSP,0x2388
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017ff65:
MOV R15,RAX
MOV RAX,qword ptr [R12]
LEA RDX,[0x1db971]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x3cd
CALL qword ptr [RAX + 0x210]
LEA RSI,[RBP + -0x2360]
MOV ECX,0x4
MOV EDI,R13D
MOV RDX,R14
CALL 0x0012efe4
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
JMP 0x0017ffe9
LAB_0017ffa5:
MOV R15,RAX
MOV RAX,qword ptr [R12]
LEA RDX,[0x1db971]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x3cb
CALL qword ptr [RAX + 0x210]
LEA RSI,[RBP + -0x2360]
MOV R8D,0x804
MOV EDI,R13D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a07f2
MOV RBX,RAX
TEST RAX,RAX
MOV ESI,0x0
LAB_0017ffe9:
CMOVZ RSI,R14
MOV RAX,qword ptr [R12]
MOV RDI,R15
CALL qword ptr [RAX + 0x218]
JMP 0x0017ff36
LAB_0017ffff:
CALL 0x00129250
|
bool mi_state_info_write(int4 param_1,int4 *param_2,ulong param_3)
{
byte bVar1;
byte bVar2;
int1 uVar3;
int1 uVar4;
int4 uVar5;
uint uVar6;
ulong uVar7;
ushort uVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
uint *puVar13;
long in_FS_OFFSET;
int1 local_23b0 [72];
int4 local_2368;
int4 uStack_2364;
int4 uStack_2360;
int4 uStack_235c;
int8 local_2358;
ushort local_2350;
int1 local_234e;
int1 local_234d;
ulong local_234c;
ulong local_2344;
ulong local_233c;
ulong local_2334;
ulong local_232c;
ulong local_2324;
ulong local_231c;
ulong local_2314;
ulong local_230c;
int4 local_2304;
int1 local_2300;
int1 local_22ff;
int1 local_22fe;
int1 local_22fd;
uint local_22fc;
uint local_22f8;
uint local_22f4;
uint local_22f0;
ulong uStack_22ec;
uint auStack_22e4 [2219];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
bVar1 = *(byte *)((long)param_2 + 0x12);
bVar2 = *(byte *)((long)param_2 + 0x15);
local_2358 = *(int8 *)(param_2 + 4);
local_2368 = *param_2;
uStack_2364 = param_2[1];
uStack_2360 = param_2[2];
uStack_235c = param_2[3];
local_2350 = *(ushort *)(param_2 + 0x3b) << 8 | *(ushort *)(param_2 + 0x3b) >> 8;
local_234e = *(int1 *)(param_2 + 0x3c);
local_234d = *(int1 *)(param_2 + 0x3a);
uVar7 = *(ulong *)(param_2 + 6);
local_234c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 8);
local_2344 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x14);
local_233c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x16);
local_2334 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0xe);
local_232c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x10);
local_2324 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 10);
local_231c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0xc);
local_2314 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x18);
local_230c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar5 = param_2[0x12];
local_2304 = 0;
local_22fd = (int1)uVar5;
local_22fe = (int1)((uint)uVar5 >> 8);
local_22ff = (int1)((uint)uVar5 >> 0x10);
local_2300 = (int1)((uint)uVar5 >> 0x18);
uVar6 = param_2[0x1a];
local_22fc = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x1c];
local_22f8 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x20];
local_22f4 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x1e];
local_22f0 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
puVar13 = (uint *)((long)&uStack_22ec + (ulong)(uint)param_2[0x3d]);
if (bVar1 != 0) {
lVar10 = *(long *)(param_2 + 0x26);
lVar12 = 0;
do {
uVar7 = *(ulong *)(lVar10 + lVar12);
*(ulong *)((long)puVar13 + lVar12) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
lVar12 = lVar12 + 8;
} while ((ulong)bVar1 * 8 != lVar12);
puVar13 = (uint *)((long)puVar13 + lVar12);
}
if (bVar2 != 0) {
lVar10 = 0;
do {
uVar7 = *(ulong *)(*(long *)(param_2 + 0x28) + lVar10);
*(ulong *)((long)puVar13 + lVar10) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
lVar10 = lVar10 + 8;
} while ((ulong)bVar2 * 8 != lVar10);
puVar13 = (uint *)((long)puVar13 + lVar10);
}
if ((param_3 & 2) != 0) {
uVar3 = *(int1 *)((long)param_2 + 0xf);
uVar4 = *(int1 *)((long)param_2 + 0xe);
uVar6 = param_2[0x2c];
*puVar13 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x2e];
puVar13[1] = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x32];
puVar13[2] = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar7 = *(ulong *)(param_2 + 0x30);
*(ulong *)(puVar13 + 3) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x34);
*(ulong *)(puVar13 + 5) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x36);
*(ulong *)(puVar13 + 7) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x38);
*(ulong *)(puVar13 + 9) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x2a);
*(ulong *)(puVar13 + 0xb) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
puVar13 = puVar13 + 0xd;
uVar8 = CONCAT11(uVar4,uVar3);
if (uVar8 != 0) {
lVar10 = 0;
do {
uVar6 = *(uint *)(*(long *)(param_2 + 0x22) + lVar10 * 2);
*(uint *)((long)puVar13 + lVar10) =
uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
lVar10 = lVar10 + 4;
} while ((ulong)uVar8 << 2 != lVar10);
puVar13 = (uint *)((long)puVar13 + lVar10);
}
}
lVar10 = (long)puVar13 - (long)&local_2368;
if ((param_3 & 1) == 0) {
lVar12 = (**(code **)(PSI_server + 0x158))(local_23b0,param_1,7);
if (lVar12 == 0) {
lVar9 = my_write(param_1,&local_2368,lVar10,4);
goto LAB_0017ff36;
}
(**(code **)(PSI_server + 0x210))
(lVar12,lVar10,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x3cd);
lVar9 = my_write(param_1,&local_2368,lVar10,4);
}
else {
lVar12 = (**(code **)(PSI_server + 0x158))(local_23b0,param_1,7);
if (lVar12 == 0) {
lVar9 = my_pwrite(param_1,&local_2368,lVar10,0,0x804);
goto LAB_0017ff36;
}
(**(code **)(PSI_server + 0x210))
(lVar12,lVar10,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x3cb);
lVar9 = my_pwrite(param_1,&local_2368,lVar10,0,0x804);
}
lVar11 = 0;
if (lVar9 == 0) {
lVar11 = lVar10;
}
(**(code **)(PSI_server + 0x218))(lVar12,lVar11);
LAB_0017ff36:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar9 != 0;
}
|
|
10,069 |
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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&, 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
|
friend bool operator==(const_reference lhs, const_reference rhs) noexcept
{
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
JSON_IMPLEMENT_OPERATOR( ==, true, false, false)
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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&, 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&):
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0xc8ae0
movb %al, 0x1f(%rsp)
movq 0x20(%rsp), %rdi
callq 0xc8ae0
movb %al, 0x1e(%rsp)
movb 0x1f(%rsp), %al
cmpb 0x1e(%rsp), %al
jne 0xc891f
movzbl 0x1f(%rsp), %eax
movq %rax, 0x10(%rsp)
subq $0x9, %rax
ja 0xc8915
movq 0x10(%rsp), %rax
leaq 0xfa62c(%rip), %rcx # 0x1c2df4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xc8af0
movb %al, 0xf(%rsp)
jmp 0xc87ee
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xc8b80
movb %al, 0xe(%rsp)
jmp 0xc881a
movb 0xe(%rsp), %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movb $0x1, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x62020
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movb 0x8(%rax), %al
andb $0x1, %al
movzbl %al, %eax
movq 0x20(%rsp), %rcx
movb 0x8(%rcx), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
sete %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
sete %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0x20(%rsp), %rax
ucomisd 0x8(%rax), %xmm0
sete %al
setnp %cl
andb %cl, %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xc8c10
movb %al, 0xd(%rsp)
jmp 0xc8904
movb 0xd(%rsp), %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
jmp 0xc8915
movb $0x0, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x5, 0x1f(%rsp)
jne 0xc8955
cmpb $0x7, 0x1e(%rsp)
jne 0xc8955
movq 0x28(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movq 0x20(%rsp), %rax
ucomisd 0x8(%rax), %xmm0
sete %al
setnp %cl
andb %cl, %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x7, 0x1f(%rsp)
jne 0xc898f
cmpb $0x5, 0x1e(%rsp)
jne 0xc898f
movq 0x28(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0x20(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm1
ucomisd %xmm1, %xmm0
sete %al
setnp %cl
andb %cl, %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x6, 0x1f(%rsp)
jne 0xc89e6
cmpb $0x7, 0x1e(%rsp)
jne 0xc89e6
movq 0x28(%rsp), %rax
movq 0x8(%rax), %xmm0
movaps 0xf9822(%rip), %xmm1 # 0x1c21d0
punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xf9826(%rip), %xmm1 # 0x1c21e0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq 0x20(%rsp), %rax
ucomisd 0x8(%rax), %xmm0
sete %al
setnp %cl
andb %cl, %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x7, 0x1f(%rsp)
jne 0xc8a41
cmpb $0x6, 0x1e(%rsp)
jne 0xc8a41
movq 0x28(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0x20(%rsp), %rax
movq 0x8(%rax), %xmm1
movaps 0xf97c1(%rip), %xmm2 # 0x1c21d0
punpckldq %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf97c5(%rip), %xmm2 # 0x1c21e0
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1 # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
sete %al
setnp %cl
andb %cl, %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x6, 0x1f(%rsp)
jne 0xc8a6c
cmpb $0x5, 0x1e(%rsp)
jne 0xc8a6c
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
sete %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
cmpb $0x5, 0x1f(%rsp)
jne 0xc8a97
cmpb $0x6, 0x1e(%rsp)
jne 0xc8a97
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
sete %al
andb $0x1, %al
movb %al, 0x37(%rsp)
jmp 0xc8ac8
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
xorl %edx, %edx
callq 0xc8c80
testb $0x1, %al
jne 0xc8aae
jmp 0xc8ab5
movb $0x0, 0x37(%rsp)
jmp 0xc8ac8
jmp 0xc8ab7
jmp 0xc8ab9
jmp 0xc8abb
jmp 0xc8abd
jmp 0xc8abf
jmp 0xc8ac1
jmp 0xc8ac3
movb $0x0, 0x37(%rsp)
movb 0x37(%rsp), %al
andb $0x1, %al
addq $0x38, %rsp
retq
movq %rax, %rdi
callq 0x6e170
nopl (%rax,%rax)
|
_ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov rdi, [rsp+38h+var_10]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4typeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type(void)
mov [rsp+38h+var_19], al
mov rdi, [rsp+38h+var_18]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4typeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type(void)
mov [rsp+38h+var_1A], al
mov al, [rsp+38h+var_19]
cmp al, [rsp+38h+var_1A]
jnz loc_C891F
movzx eax, [rsp+38h+var_19]
mov [rsp+38h+var_28], rax
sub rax, 9; switch 10 cases
ja def_C87CF; jumptable 00000000000C87CF default case
mov rax, [rsp+38h+var_28]
lea rcx, jpt_C87CF
movsxd rax, ds:(jpt_C87CF - 1C2DF4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C87D1:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 2
mov rdi, [rax+8]
mov rax, [rsp+38h+var_18]
mov rsi, [rax+8]
call _ZSteqIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISE_EEbRKS4_IT_T0_ESK_; std::operator==<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector const&<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::vector const&<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov [rsp+38h+var_29], al
jmp short $+2
loc_C87EE:
mov al, [rsp+38h+var_29]
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C87FD:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 1
mov rdi, [rax+8]
mov rax, [rsp+38h+var_18]
mov rsi, [rax+8]
call _ZSteqISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_EEbRKSC_IT_T0_ESN_; std::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(std::vector const&<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,std::vector const&<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>)
mov [rsp+38h+var_2A], al
jmp short $+2
loc_C881A:
mov al, [rsp+38h+var_2A]
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8829:
mov [rsp+38h+var_1], 1; jumptable 00000000000C87CF case 0
jmp loc_C8AC8
loc_C8833:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 3
mov rdi, [rax+8]
mov rax, [rsp+38h+var_18]
mov rsi, [rax+8]
call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8855:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 4
mov al, [rax+8]
and al, 1
movzx eax, al
mov rcx, [rsp+38h+var_18]
mov cl, [rcx+8]
and cl, 1
movzx ecx, cl
cmp eax, ecx
setz al
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8880:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 5
mov rax, [rax+8]
mov rcx, [rsp+38h+var_18]
cmp rax, [rcx+8]
setz al
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C88A0:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 6
mov rax, [rax+8]
mov rcx, [rsp+38h+var_18]
cmp rax, [rcx+8]
setz al
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C88C0:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 7
movsd xmm0, qword ptr [rax+8]
mov rax, [rsp+38h+var_18]
ucomisd xmm0, qword ptr [rax+8]
setz al
setnp cl
and al, cl
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C88E7:
mov rax, [rsp+38h+var_10]; jumptable 00000000000C87CF case 8
mov rdi, [rax+8]
mov rax, [rsp+38h+var_18]
mov rsi, [rax+8]
call _ZNK8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEeqERKS5_; nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>::operator==(nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> const&)
mov [rsp+38h+var_2B], al
jmp short $+2
loc_C8904:
mov al, [rsp+38h+var_2B]
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8913:
jmp short $+2; jumptable 00000000000C87CF case 9
def_C87CF:
mov [rsp+38h+var_1], 0; jumptable 00000000000C87CF default case
jmp loc_C8AC8
loc_C891F:
cmp [rsp+38h+var_19], 5
jnz short loc_C8955
cmp [rsp+38h+var_1A], 7
jnz short loc_C8955
mov rax, [rsp+38h+var_10]
cvtsi2sd xmm0, qword ptr [rax+8]
mov rax, [rsp+38h+var_18]
ucomisd xmm0, qword ptr [rax+8]
setz al
setnp cl
and al, cl
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8955:
cmp [rsp+38h+var_19], 7
jnz short loc_C898F
cmp [rsp+38h+var_1A], 5
jnz short loc_C898F
mov rax, [rsp+38h+var_10]
movsd xmm0, qword ptr [rax+8]
mov rax, [rsp+38h+var_18]
cvtsi2sd xmm1, qword ptr [rax+8]
ucomisd xmm0, xmm1
setz al
setnp cl
and al, cl
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C898F:
cmp [rsp+38h+var_19], 6
jnz short loc_C89E6
cmp [rsp+38h+var_1A], 7
jnz short loc_C89E6
mov rax, [rsp+38h+var_10]
movq xmm0, qword ptr [rax+8]
movaps xmm1, cs:xmmword_1C21D0
punpckldq xmm0, xmm1
movapd xmm1, cs:xmmword_1C21E0
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
mov rax, [rsp+38h+var_18]
ucomisd xmm0, qword ptr [rax+8]
setz al
setnp cl
and al, cl
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C89E6:
cmp [rsp+38h+var_19], 7
jnz short loc_C8A41
cmp [rsp+38h+var_1A], 6
jnz short loc_C8A41
mov rax, [rsp+38h+var_10]
movsd xmm0, qword ptr [rax+8]
mov rax, [rsp+38h+var_18]
movq xmm1, qword ptr [rax+8]
movaps xmm2, cs:xmmword_1C21D0
punpckldq xmm1, xmm2
movapd xmm2, cs:xmmword_1C21E0
subpd xmm1, xmm2
movaps xmm2, xmm1
unpckhpd xmm1, xmm1
addsd xmm1, xmm2
ucomisd xmm0, xmm1
setz al
setnp cl
and al, cl
and al, 1
mov [rsp+38h+var_1], al
jmp loc_C8AC8
loc_C8A41:
cmp [rsp+38h+var_19], 6
jnz short loc_C8A6C
cmp [rsp+38h+var_1A], 5
jnz short loc_C8A6C
mov rax, [rsp+38h+var_10]
mov rax, [rax+8]
mov rcx, [rsp+38h+var_18]
cmp rax, [rcx+8]
setz al
and al, 1
mov [rsp+38h+var_1], al
jmp short loc_C8AC8
loc_C8A6C:
cmp [rsp+38h+var_19], 5
jnz short loc_C8A97
cmp [rsp+38h+var_1A], 6
jnz short loc_C8A97
mov rax, [rsp+38h+var_10]
mov rax, [rax+8]
mov rcx, [rsp+38h+var_18]
cmp rax, [rcx+8]
setz al
and al, 1
mov [rsp+38h+var_1], al
jmp short loc_C8AC8
loc_C8A97:
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_18]
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE18compares_unorderedERKSD_SF_b; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::compares_unordered(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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)
test al, 1
jnz short loc_C8AAE
jmp short loc_C8AB5
loc_C8AAE:
mov [rsp+38h+var_1], 0
jmp short loc_C8AC8
loc_C8AB5:
jmp short $+2
loc_C8AB7:
jmp short $+2
loc_C8AB9:
jmp short $+2
loc_C8ABB:
jmp short $+2
loc_C8ABD:
jmp short $+2
loc_C8ABF:
jmp short $+2
loc_C8AC1:
jmp short $+2
loc_C8AC3:
mov [rsp+38h+var_1], 0
loc_C8AC8:
mov al, [rsp+38h+var_1]
and al, 1
add rsp, 38h
retn
mov rdi, rax
call __clang_call_terminate
|
char nlohmann::json_abi_v3_11_3::operator==(long long a1, long long a2)
{
__m128d v2; // xmm1
__m128d v3; // xmm2
char v5; // [rsp+1Eh] [rbp-1Ah]
char v6; // [rsp+1Fh] [rbp-19h]
char v7; // [rsp+37h] [rbp-1h]
v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type(a1);
v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type(a2);
if ( v6 == v5 )
{
switch ( v6 )
{
case 0:
v7 = 1;
break;
case 1:
v7 = std::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::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>>>>(
*(_QWORD *)(a1 + 8),
*(_QWORD *)(a2 + 8)) & 1;
break;
case 2:
v7 = std::operator==<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
*(_QWORD *)(a1 + 8),
*(_QWORD *)(a2 + 8)) & 1;
break;
case 3:
v7 = std::operator==<char>(*(_QWORD *)(a1 + 8), *(_QWORD *)(a2 + 8)) & 1;
break;
case 4:
v7 = (*(_BYTE *)(a1 + 8) & 1) == (*(_BYTE *)(a2 + 8) & 1);
break;
case 5:
v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8);
break;
case 6:
v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8);
break;
case 7:
v7 = *(double *)(a1 + 8) == *(double *)(a2 + 8);
break;
case 8:
v7 = nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>::operator==(
*(_QWORD *)(a1 + 8),
*(_QWORD *)(a2 + 8)) & 1;
break;
default:
v7 = 0;
break;
}
}
else if ( v6 == 5 && v5 == 7 )
{
v7 = (double)(int)*(_QWORD *)(a1 + 8) == *(double *)(a2 + 8);
}
else if ( v6 == 7 && v5 == 5 )
{
v7 = *(double *)(a1 + 8) == (double)(int)*(_QWORD *)(a2 + 8);
}
else if ( v6 == 6 && v5 == 7 )
{
v2 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a1 + 8)), (__m128i)xmmword_1C21D0),
(__m128d)xmmword_1C21E0);
v7 = _mm_unpackhi_pd(v2, v2).m128d_f64[0] + v2.m128d_f64[0] == *(double *)(a2 + 8);
}
else if ( v6 == 7 && v5 == 6 )
{
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a2 + 8)), (__m128i)xmmword_1C21D0),
(__m128d)xmmword_1C21E0);
v7 = *(double *)(a1 + 8) == _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0];
}
else if ( v6 == 6 && v5 == 5 )
{
v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8);
}
else if ( v6 == 5 && v5 == 6 )
{
v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8);
}
else
{
v7 = 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>::compares_unordered(
a1,
a2,
0LL);
}
return v7 & 1;
}
|
operator==:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001c8ae0
MOV byte ptr [RSP + 0x1f],AL
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001c8ae0
MOV byte ptr [RSP + 0x1e],AL
MOV AL,byte ptr [RSP + 0x1f]
CMP AL,byte ptr [RSP + 0x1e]
JNZ 0x001c891f
MOVZX EAX,byte ptr [RSP + 0x1f]
MOV qword ptr [RSP + 0x10],RAX
SUB RAX,0x9
JA 0x001c8915
MOV RAX,qword ptr [RSP + 0x10]
LEA RCX,[0x2c2df4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1c87d1:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
LAB_001c87e3:
CALL 0x001c8af0
MOV byte ptr [RSP + 0xf],AL
JMP 0x001c87ee
LAB_001c87ee:
MOV AL,byte ptr [RSP + 0xf]
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c87fd:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001c8b80
MOV byte ptr [RSP + 0xe],AL
JMP 0x001c881a
LAB_001c881a:
MOV AL,byte ptr [RSP + 0xe]
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c8829:
MOV byte ptr [RSP + 0x37],0x1
JMP 0x001c8ac8
caseD_1c8833:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00162020
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c8855:
MOV RAX,qword ptr [RSP + 0x28]
MOV AL,byte ptr [RAX + 0x8]
AND AL,0x1
MOVZX EAX,AL
MOV RCX,qword ptr [RSP + 0x20]
MOV CL,byte ptr [RCX + 0x8]
AND CL,0x1
MOVZX ECX,CL
CMP EAX,ECX
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c8880:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RCX + 0x8]
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c88a0:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RCX + 0x8]
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c88c0:
MOV RAX,qword ptr [RSP + 0x28]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
UCOMISD XMM0,qword ptr [RAX + 0x8]
SETZ AL
SETNP CL
AND AL,CL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c88e7:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001c8c10
MOV byte ptr [RSP + 0xd],AL
JMP 0x001c8904
LAB_001c8904:
MOV AL,byte ptr [RSP + 0xd]
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
caseD_1c8913:
JMP 0x001c8915
LAB_001c8915:
MOV byte ptr [RSP + 0x37],0x0
JMP 0x001c8ac8
LAB_001c891f:
CMP byte ptr [RSP + 0x1f],0x5
JNZ 0x001c8955
CMP byte ptr [RSP + 0x1e],0x7
JNZ 0x001c8955
MOV RAX,qword ptr [RSP + 0x28]
CVTSI2SD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
UCOMISD XMM0,qword ptr [RAX + 0x8]
SETZ AL
SETNP CL
AND AL,CL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c8955:
CMP byte ptr [RSP + 0x1f],0x7
JNZ 0x001c898f
CMP byte ptr [RSP + 0x1e],0x5
JNZ 0x001c898f
MOV RAX,qword ptr [RSP + 0x28]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
CVTSI2SD XMM1,qword ptr [RAX + 0x8]
UCOMISD XMM0,XMM1
SETZ AL
SETNP CL
AND AL,CL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c898f:
CMP byte ptr [RSP + 0x1f],0x6
JNZ 0x001c89e6
CMP byte ptr [RSP + 0x1e],0x7
JNZ 0x001c89e6
MOV RAX,qword ptr [RSP + 0x28]
MOVQ XMM0,qword ptr [RAX + 0x8]
MOVAPS XMM1,xmmword ptr [0x002c21d0]
PUNPCKLDQ XMM0,XMM1
MOVAPD XMM1,xmmword ptr [0x002c21e0]
SUBPD XMM0,XMM1
MOVAPS XMM1,XMM0
UNPCKHPD XMM0,XMM0
ADDSD XMM0,XMM1
MOV RAX,qword ptr [RSP + 0x20]
UCOMISD XMM0,qword ptr [RAX + 0x8]
SETZ AL
SETNP CL
AND AL,CL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c89e6:
CMP byte ptr [RSP + 0x1f],0x7
JNZ 0x001c8a41
CMP byte ptr [RSP + 0x1e],0x6
JNZ 0x001c8a41
MOV RAX,qword ptr [RSP + 0x28]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOVQ XMM1,qword ptr [RAX + 0x8]
MOVAPS XMM2,xmmword ptr [0x002c21d0]
PUNPCKLDQ XMM1,XMM2
MOVAPD XMM2,xmmword ptr [0x002c21e0]
SUBPD XMM1,XMM2
MOVAPS XMM2,XMM1
UNPCKHPD XMM1,XMM1
ADDSD XMM1,XMM2
UCOMISD XMM0,XMM1
SETZ AL
SETNP CL
AND AL,CL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c8a41:
CMP byte ptr [RSP + 0x1f],0x6
JNZ 0x001c8a6c
CMP byte ptr [RSP + 0x1e],0x5
JNZ 0x001c8a6c
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RCX + 0x8]
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c8a6c:
CMP byte ptr [RSP + 0x1f],0x5
JNZ 0x001c8a97
CMP byte ptr [RSP + 0x1e],0x6
JNZ 0x001c8a97
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RCX + 0x8]
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
JMP 0x001c8ac8
LAB_001c8a97:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
XOR EDX,EDX
CALL 0x001c8c80
TEST AL,0x1
JNZ 0x001c8aae
JMP 0x001c8ab5
LAB_001c8aae:
MOV byte ptr [RSP + 0x37],0x0
JMP 0x001c8ac8
LAB_001c8ab5:
JMP 0x001c8ab7
LAB_001c8ab7:
JMP 0x001c8ab9
LAB_001c8ab9:
JMP 0x001c8abb
LAB_001c8abb:
JMP 0x001c8abd
LAB_001c8abd:
JMP 0x001c8abf
LAB_001c8abf:
JMP 0x001c8ac1
LAB_001c8ac1:
JMP 0x001c8ac3
LAB_001c8ac3:
MOV byte ptr [RSP + 0x37],0x0
LAB_001c8ac8:
MOV AL,byte ptr [RSP + 0x37]
AND AL,0x1
ADD RSP,0x38
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nlohmann::json_abi_v3_11_3::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, 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&) */
bool nlohmann::json_abi_v3_11_3::operator==(basic_json *param_1,basic_json *param_2)
{
int8 uVar1;
byte bVar2;
byte bVar3;
ulong uVar4;
int1 auVar5 [16];
int1 auVar6 [16];
bool local_1;
bVar2 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
bVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_2);
if (bVar2 != bVar3) {
if ((bVar2 == 5) && (bVar3 == 7)) {
return (double)*(long *)(param_1 + 8) == *(double *)(param_2 + 8);
}
if ((bVar2 == 7) && (bVar3 == 5)) {
return *(double *)(param_1 + 8) == (double)*(long *)(param_2 + 8);
}
if ((bVar2 == 6) && (bVar3 == 7)) {
uVar1 = *(int8 *)(param_1 + 8);
auVar5._8_4_ = (int)((ulong)uVar1 >> 0x20);
auVar5._0_8_ = uVar1;
auVar5._12_4_ = _UNK_002c21d4;
return (auVar5._8_8_ - _UNK_002c21e8) +
((double)CONCAT44(_DAT_002c21d0,(int)uVar1) - _DAT_002c21e0) ==
*(double *)(param_2 + 8);
}
if ((bVar2 == 7) && (bVar3 == 6)) {
uVar1 = *(int8 *)(param_2 + 8);
auVar6._8_4_ = (int)((ulong)uVar1 >> 0x20);
auVar6._0_8_ = uVar1;
auVar6._12_4_ = _UNK_002c21d4;
return *(double *)(param_1 + 8) ==
(auVar6._8_8_ - _UNK_002c21e8) +
((double)CONCAT44(_DAT_002c21d0,(int)uVar1) - _DAT_002c21e0);
}
if ((bVar2 == 6) && (bVar3 == 5)) {
return *(long *)(param_1 + 8) == *(long *)(param_2 + 8);
}
if ((bVar2 == 5) && (bVar3 == 6)) {
return *(long *)(param_1 + 8) == *(long *)(param_2 + 8);
}
uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::compares_unordered(param_1,param_2,false);
if ((uVar4 & 1) == 0) {
return false;
}
return false;
}
if ((ulong)bVar2 < 10) {
switch((long)&switchD_001c87cf::switchdataD_002c2df4 +
(long)(int)(&switchD_001c87cf::switchdataD_002c2df4)[bVar2]) {
case 0x1c87d1:
/* try { // try from 001c87e3 to 001c88fd has its CatchHandler @ 001c8ad3 */
local_1 = std::operator==(*(vector **)(param_1 + 8),*(vector **)(param_2 + 8));
break;
case 0x1c87fd:
local_1 = std::operator==(*(vector **)(param_1 + 8),*(vector **)(param_2 + 8));
break;
case 0x1c8829:
local_1 = true;
break;
case 0x1c8833:
bVar2 = std::operator==(*(string **)(param_1 + 8),*(string **)(param_2 + 8));
local_1 = (bool)(bVar2 & 1);
break;
case 0x1c8855:
local_1 = ((byte)param_1[8] & 1) == ((byte)param_2[8] & 1);
break;
case 0x1c8880:
local_1 = *(long *)(param_1 + 8) == *(long *)(param_2 + 8);
break;
case 0x1c88a0:
local_1 = *(long *)(param_1 + 8) == *(long *)(param_2 + 8);
break;
case 0x1c88c0:
local_1 = *(double *)(param_1 + 8) == *(double *)(param_2 + 8);
break;
case 0x1c88e7:
bVar2 = byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>
::operator==(*(byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>
**)(param_1 + 8),*(byte_container_with_subtype **)(param_2 + 8));
local_1 = (bool)(bVar2 & 1);
break;
case 0x1c8913:
goto LAB_001c8915;
}
}
else {
LAB_001c8915:
local_1 = false;
}
return local_1;
}
|
|
10,070 |
google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter(google::protobuf::FieldDescriptor const*, google::protobuf::TextFormat::FastFieldValuePrinter const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
|
bool TextFormat::Printer::RegisterFieldValuePrinter(
const FieldDescriptor* field, const FastFieldValuePrinter* printer) {
if (field == nullptr || printer == nullptr) {
return false;
}
auto pair = custom_printers_.insert(std::make_pair(field, nullptr));
if (pair.second) {
pair.first->second.reset(printer);
return true;
} else {
return false;
}
}
|
O3
|
cpp
|
google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter(google::protobuf::FieldDescriptor const*, google::protobuf::TextFormat::FastFieldValuePrinter const*):
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x7d9ba
movq %rdx, %rbx
addq $0x20, %rdi
movq %rsp, %rax
movq %rsi, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, %rsi
callq 0x86490
testb $0x1, %dl
je 0x7d9ba
movq 0x28(%rax), %rdi
movq %rbx, 0x28(%rax)
movb $0x1, %bl
testq %rdi, %rdi
je 0x7d9bc
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x7d9bc
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
|
_ZN6google8protobuf10TextFormat7Printer25RegisterFieldValuePrinterEPKNS0_15FieldDescriptorEPKNS1_21FastFieldValuePrinterE:
push rbx
sub rsp, 10h
test rsi, rsi
setz al
test rdx, rdx
setz cl
or cl, al
jnz short loc_7D9BA
mov rbx, rdx
add rdi, 20h ; ' '
mov rax, rsp
mov [rax], rsi
mov qword ptr [rax+8], 0
mov rsi, rax
call _ZNSt8_Rb_treeIPKN6google8protobuf15FieldDescriptorESt4pairIKS4_St10unique_ptrIKNS1_10TextFormat21FastFieldValuePrinterESt14default_deleteISA_EEESt10_Select1stISE_ESt4lessIS4_ESaISE_EE17_M_emplace_uniqueIJS5_IS4_DnEEEES5_ISt17_Rb_tree_iteratorISE_EbEDpOT_; std::_Rb_tree<google::protobuf::FieldDescriptor const*,std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>,std::less<google::protobuf::FieldDescriptor const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>>::_M_emplace_unique<std::pair<google::protobuf::FieldDescriptor const*,decltype(nullptr)>>(std::pair<google::protobuf::FieldDescriptor const*,decltype(nullptr)> &&)
test dl, 1
jz short loc_7D9BA
mov rdi, [rax+28h]
mov [rax+28h], rbx
mov bl, 1
test rdi, rdi
jz short loc_7D9BC
mov rax, [rdi]
call qword ptr [rax+8]
jmp short loc_7D9BC
loc_7D9BA:
xor ebx, ebx
loc_7D9BC:
mov eax, ebx
add rsp, 10h
pop rbx
retn
|
long long google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter(
google::protobuf::TextFormat::Printer *this,
const google::protobuf::FieldDescriptor *a2,
const google::protobuf::TextFormat::FastFieldValuePrinter *a3)
{
const google::protobuf::TextFormat::FastFieldValuePrinter *v3; // rbx
long long v4; // rax
char v5; // dl
long long v6; // rdi
_QWORD v8[3]; // [rsp+0h] [rbp-18h] BYREF
if ( a2 == 0LL
|| a3 == 0LL
|| (v3 = a3,
v8[0] = a2,
v8[1] = 0LL,
v4 = std::_Rb_tree<google::protobuf::FieldDescriptor const*,std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>,std::less<google::protobuf::FieldDescriptor const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>>::_M_emplace_unique<std::pair<google::protobuf::FieldDescriptor const*,decltype(nullptr)>>((char *)this + 32),
(v5 & 1) == 0) )
{
LODWORD(v3) = 0;
}
else
{
v6 = *(_QWORD *)(v4 + 40);
*(_QWORD *)(v4 + 40) = v3;
LOBYTE(v3) = 1;
if ( v6 )
(*(void ( **)(long long, _QWORD *))(*(_QWORD *)v6 + 8LL))(v6, v8);
}
return (unsigned int)v3;
}
|
RegisterFieldValuePrinter:
PUSH RBX
SUB RSP,0x10
TEST RSI,RSI
SETZ AL
TEST RDX,RDX
SETZ CL
OR CL,AL
JNZ 0x0017d9ba
MOV RBX,RDX
ADD RDI,0x20
MOV RAX,RSP
MOV qword ptr [RAX],RSI
MOV qword ptr [RAX + 0x8],0x0
MOV RSI,RAX
CALL 0x00186490
TEST DL,0x1
JZ 0x0017d9ba
MOV RDI,qword ptr [RAX + 0x28]
MOV qword ptr [RAX + 0x28],RBX
MOV BL,0x1
TEST RDI,RDI
JZ 0x0017d9bc
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
JMP 0x0017d9bc
LAB_0017d9ba:
XOR EBX,EBX
LAB_0017d9bc:
MOV EAX,EBX
ADD RSP,0x10
POP RBX
RET
|
/* google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter(google::protobuf::FieldDescriptor
const*, google::protobuf::TextFormat::FastFieldValuePrinter const*) */
ulong __thiscall
google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter
(Printer *this,FieldDescriptor *param_1,FastFieldValuePrinter *param_2)
{
long *plVar1;
long lVar2;
byte extraout_DL;
ulong uVar3;
FieldDescriptor *local_18;
int8 local_10;
if (param_2 != (FastFieldValuePrinter *)0x0 && param_1 != (FieldDescriptor *)0x0) {
local_10 = 0;
local_18 = param_1;
lVar2 = std::
_Rb_tree<google::protobuf::FieldDescriptor_const*,std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>,std::less<google::protobuf::FieldDescriptor_const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>>
::
_M_emplace_unique<std::pair<google::protobuf::FieldDescriptor_const*,decltype(nullptr)>>
((_Rb_tree<google::protobuf::FieldDescriptor_const*,std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>,std::less<google::protobuf::FieldDescriptor_const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>>
*)(this + 0x20),(pair *)&local_18);
if ((extraout_DL & 1) != 0) {
plVar1 = *(long **)(lVar2 + 0x28);
*(FastFieldValuePrinter **)(lVar2 + 0x28) = param_2;
uVar3 = CONCAT71((int7)((ulong)param_2 >> 8),1);
if (plVar1 != (long *)0x0) {
(**(code **)(*plVar1 + 8))();
}
goto LAB_0017d9bc;
}
}
uVar3 = 0;
LAB_0017d9bc:
return uVar3 & 0xffffffff;
}
|
|
10,071 |
dump_remote_log_entries(st_print_event_info*, char const*)
|
eloqsql/client/mysqlbinlog.cc
|
static Exit_status dump_remote_log_entries(PRINT_EVENT_INFO *print_event_info,
const char* logname)
{
uchar buf[128];
ulong len;
uint logname_len;
NET* net;
my_off_t old_off= start_position_mot;
Exit_status retval= OK_CONTINUE;
short binlog_flags = 0;
ulong slave_id;
DBUG_ENTER("dump_remote_log_entries");
/*
Even if we already read one binlog (case of >=2 binlogs on command line),
we cannot re-use the same connection as before, because it is now dead
(COM_BINLOG_DUMP kills the thread when it finishes).
*/
if ((retval= safe_connect()) != OK_CONTINUE)
DBUG_RETURN(retval);
net= &mysql->net;
if ((retval= check_master_version()) != OK_CONTINUE)
DBUG_RETURN(retval);
/*
COM_BINLOG_DUMP accepts only 4 bytes for the position, so we are forced to
cast to uint32.
*/
DBUG_ASSERT(start_position <= UINT_MAX32);
int4store(buf, (uint32)start_position);
if (!opt_skip_annotate_row_events)
binlog_flags|= BINLOG_SEND_ANNOTATE_ROWS_EVENT;
if (!opt_stop_never)
binlog_flags|= BINLOG_DUMP_NON_BLOCK;
int2store(buf + BIN_LOG_HEADER_SIZE, binlog_flags);
size_t tlen = strlen(logname);
if (tlen > sizeof(buf) - 10)
{
error("Log name too long.");
DBUG_RETURN(ERROR_STOP);
}
logname_len = (uint) tlen;
if (opt_stop_never)
{
DBUG_ASSERT(to_last_remote_log);
slave_id= (opt_stop_never_slave_server_id == 0) ?
1 : opt_stop_never_slave_server_id;
}
else
slave_id= 0;
int4store(buf + 6, slave_id);
memcpy(buf + 10, logname, logname_len);
if (simple_command(mysql, COM_BINLOG_DUMP, buf, logname_len + 10, 1))
{
error("Got fatal error sending the log dump command.");
DBUG_RETURN(ERROR_STOP);
}
for (;;)
{
len= cli_safe_read(mysql);
if (len == packet_error)
{
error("Got error reading packet from server: %s", mysql_error(mysql));
DBUG_RETURN(ERROR_STOP);
}
if (len < 8 && net->read_pos[0] == 254)
break; // end of data
DBUG_PRINT("info",( "len: %lu net->read_pos[5]: %d\n",
len, net->read_pos[5]));
if (opt_raw_mode)
{
retval= handle_event_raw_mode(print_event_info, &len,
logname, logname_len);
}
else
{
retval= handle_event_text_mode(print_event_info, &len,
logname, logname_len, old_off);
}
if (retval != OK_CONTINUE)
{
if (retval == OK_EOF)
break;
DBUG_RETURN(retval);
}
/*
Let's adjust offset for remote log as for local log to produce
similar text and to have --stop-position to work identically.
*/
old_off+= len-1;
}
DBUG_RETURN(OK_CONTINUE);
}
|
O0
|
cpp
|
dump_remote_log_entries(st_print_event_info*, char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0xa0(%rbp)
movq %rsi, -0xa8(%rbp)
movq 0x3e2c9b(%rip), %rax # 0x445918
movq %rax, -0xc8(%rbp)
movl $0x0, -0xcc(%rbp)
movw $0x0, -0xce(%rbp)
callq 0x63430
movl %eax, -0xcc(%rbp)
cmpl $0x0, %eax
je 0x62cba
jmp 0x62ca9
movl -0xcc(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x62fb9
movq 0x3e2d37(%rip), %rax # 0x4459f8
movq %rax, -0xc0(%rbp)
callq 0x63660
movl %eax, -0xcc(%rbp)
cmpl $0x0, %eax
je 0x62ceb
jmp 0x62cda
movl -0xcc(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x62fb9
jmp 0x62ced
jmp 0x62cef
jmp 0x62cf1
leaq -0x90(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq 0x3e2c12(%rip), %rax # 0x445918
movl %eax, %ecx
movq -0xe0(%rbp), %rax
movl %ecx, (%rax)
testb $0x1, 0x3e2b4c(%rip) # 0x445864
jne 0x62d2b
movswl -0xce(%rbp), %eax
orl $0x2, %eax
movw %ax, -0xce(%rbp)
cmpb $0x0, 0x3e2bbe(%rip) # 0x4458f0
jne 0x62d45
movswl -0xce(%rbp), %eax
orl $0x1, %eax
movw %ax, -0xce(%rbp)
jmp 0x62d47
leaq -0x90(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xe8(%rbp)
movw -0xce(%rbp), %cx
movq -0xe8(%rbp), %rax
movw %cx, (%rax)
movq -0xa8(%rbp), %rdi
callq 0x3b4b0
movq %rax, -0xf0(%rbp)
cmpq $0x76, -0xf0(%rbp)
jbe 0x62da4
leaq 0xb1219(%rip), %rdi # 0x113fa7
movb $0x0, %al
callq 0x3c350
movl $0x1, -0x94(%rbp)
jmp 0x62fb9
movq -0xf0(%rbp), %rax
movl %eax, -0xb4(%rbp)
cmpb $0x0, 0x3e2b38(%rip) # 0x4458f0
je 0x62df4
jmp 0x62dbc
jmp 0x62dbe
cmpq $0x0, 0x3e2c22(%rip) # 0x4459e8
jne 0x62dd6
movl $0x1, %eax
movq %rax, -0x100(%rbp)
jmp 0x62de4
movq 0x3e2c0b(%rip), %rax # 0x4459e8
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xd8(%rbp)
jmp 0x62dff
movq $0x0, -0xd8(%rbp)
jmp 0x62e01
leaq -0x90(%rbp), %rax
addq $0x6, %rax
movq %rax, -0xf8(%rbp)
movq -0xd8(%rbp), %rax
movl %eax, %ecx
movq -0xf8(%rbp), %rax
movl %ecx, (%rax)
leaq -0x90(%rbp), %rdi
addq $0xa, %rdi
movq -0xa8(%rbp), %rsi
movl -0xb4(%rbp), %eax
movl %eax, %edx
callq 0x3b0c0
movq 0x3e2bad(%rip), %rdi # 0x4459f8
leaq -0x90(%rbp), %rdx
movl -0xb4(%rbp), %eax
addl $0xa, %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x12, %esi
movl $0x1, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0x71b30
cmpl $0x0, %eax
je 0x62e96
leaq 0xb113a(%rip), %rdi # 0x113fba
movb $0x0, %al
callq 0x3c350
movl $0x1, -0x94(%rbp)
jmp 0x62fb9
jmp 0x62e98
movq 0x3e2b59(%rip), %rdi # 0x4459f8
callq 0x7d700
movq %rax, -0xb0(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0xb0(%rbp)
jne 0x62ee5
movq 0x3e2b38(%rip), %rdi # 0x4459f8
callq 0x7c900
movq %rax, %rsi
leaq 0xb1119(%rip), %rdi # 0x113fe8
movb $0x0, %al
callq 0x3c350
movl $0x1, -0x94(%rbp)
jmp 0x62fb9
cmpq $0x8, -0xb0(%rbp)
jae 0x62f09
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jne 0x62f09
jmp 0x62fad
jmp 0x62f0b
jmp 0x62f0d
cmpb $0x0, 0x3e29de(%rip) # 0x4458f2
je 0x62f3e
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
movl -0xb4(%rbp), %ecx
leaq -0xb0(%rbp), %rsi
callq 0x63940
movl %eax, -0xcc(%rbp)
jmp 0x62f6b
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
movl -0xb4(%rbp), %ecx
movq -0xc8(%rbp), %r8
leaq -0xb0(%rbp), %rsi
callq 0x63c90
movl %eax, -0xcc(%rbp)
cmpl $0x0, -0xcc(%rbp)
je 0x62f8f
cmpl $0x3, -0xcc(%rbp)
jne 0x62f7f
jmp 0x62fad
jmp 0x62f81
movl -0xcc(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x62fb9
movq -0xb0(%rbp), %rax
subq $0x1, %rax
addq -0xc8(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x62e98
jmp 0x62faf
movl $0x0, -0x94(%rbp)
movl -0x94(%rbp), %eax
movl %eax, -0x104(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x62fe6
movl -0x104(%rbp), %eax
addq $0x110, %rsp # imm = 0x110
popq %rbp
retq
callq 0x3b340
nopl (%rax,%rax)
|
_ZL23dump_remote_log_entriesP19st_print_event_infoPKc:
push rbp
mov rbp, rsp
sub rsp, 110h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_A0], rdi
mov [rbp+var_A8], rsi
mov rax, cs:_ZL14start_position; start_position
mov [rbp+var_C8], rax
mov [rbp+var_CC], 0
mov [rbp+var_CE], 0
call _ZL12safe_connectv; safe_connect(void)
mov [rbp+var_CC], eax
cmp eax, 0
jz short loc_62CBA
jmp short $+2
loc_62CA9:
mov eax, [rbp+var_CC]
mov [rbp+var_94], eax
jmp loc_62FB9
loc_62CBA:
mov rax, cs:_ZL5mysql; mysql
mov [rbp+var_C0], rax
call _ZL20check_master_versionv; check_master_version(void)
mov [rbp+var_CC], eax
cmp eax, 0
jz short loc_62CEB
jmp short $+2
loc_62CDA:
mov eax, [rbp+var_CC]
mov [rbp+var_94], eax
jmp loc_62FB9
loc_62CEB:
jmp short $+2
loc_62CED:
jmp short $+2
loc_62CEF:
jmp short $+2
loc_62CF1:
lea rax, [rbp+var_90]
mov [rbp+var_E0], rax
mov rax, cs:_ZL14start_position; start_position
mov ecx, eax
mov rax, [rbp+var_E0]
mov [rax], ecx
test cs:_ZL28opt_skip_annotate_row_events, 1; opt_skip_annotate_row_events
jnz short loc_62D2B
movsx eax, [rbp+var_CE]
or eax, 2
mov [rbp+var_CE], ax
loc_62D2B:
cmp cs:_ZL14opt_stop_never, 0; opt_stop_never
jnz short loc_62D45
movsx eax, [rbp+var_CE]
or eax, 1
mov [rbp+var_CE], ax
loc_62D45:
jmp short $+2
loc_62D47:
lea rax, [rbp+var_90]
add rax, 4
mov [rbp+var_E8], rax
mov cx, [rbp+var_CE]
mov rax, [rbp+var_E8]
mov [rax], cx
mov rdi, [rbp+var_A8]
call _strlen
mov [rbp+var_F0], rax
cmp [rbp+var_F0], 76h ; 'v'
jbe short loc_62DA4
lea rdi, aLogNameTooLong; "Log name too long."
mov al, 0
call _ZL5errorPKcz; error(char const*,...)
mov [rbp+var_94], 1
jmp loc_62FB9
loc_62DA4:
mov rax, [rbp+var_F0]
mov [rbp+var_B4], eax
cmp cs:_ZL14opt_stop_never, 0; opt_stop_never
jz short loc_62DF4
jmp short $+2
loc_62DBC:
jmp short $+2
loc_62DBE:
cmp cs:_ZL30opt_stop_never_slave_server_id, 0; opt_stop_never_slave_server_id
jnz short loc_62DD6
mov eax, 1
mov [rbp+var_100], rax
jmp short loc_62DE4
loc_62DD6:
mov rax, cs:_ZL30opt_stop_never_slave_server_id; opt_stop_never_slave_server_id
mov [rbp+var_100], rax
loc_62DE4:
mov rax, [rbp+var_100]
mov [rbp+var_D8], rax
jmp short loc_62DFF
loc_62DF4:
mov [rbp+var_D8], 0
loc_62DFF:
jmp short $+2
loc_62E01:
lea rax, [rbp+var_90]
add rax, 6
mov [rbp+var_F8], rax
mov rax, [rbp+var_D8]
mov ecx, eax
mov rax, [rbp+var_F8]
mov [rax], ecx
lea rdi, [rbp+var_90]
add rdi, 0Ah
mov rsi, [rbp+var_A8]
mov eax, [rbp+var_B4]
mov edx, eax
call _memcpy
mov rdi, cs:_ZL5mysql; mysql
lea rdx, [rbp+var_90]
mov eax, [rbp+var_B4]
add eax, 0Ah
mov eax, eax
mov ecx, eax
mov esi, 12h
mov r8d, 1
xor eax, eax
mov r9d, eax
call ma_simple_command
cmp eax, 0
jz short loc_62E96
lea rdi, aGotFatalErrorS; "Got fatal error sending the log dump co"...
mov al, 0
call _ZL5errorPKcz; error(char const*,...)
mov [rbp+var_94], 1
jmp loc_62FB9
loc_62E96:
jmp short $+2
loc_62E98:
mov rdi, cs:_ZL5mysql; mysql
call mysql_net_read_packet
mov [rbp+var_B0], rax
mov eax, 0FFFFFFFFh
cmp [rbp+var_B0], rax
jnz short loc_62EE5
mov rdi, cs:_ZL5mysql; mysql
call mysql_error
mov rsi, rax
lea rdi, aGotErrorReadin; "Got error reading packet from server: %"...
mov al, 0
call _ZL5errorPKcz; error(char const*,...)
mov [rbp+var_94], 1
jmp loc_62FB9
loc_62EE5:
cmp [rbp+var_B0], 8
jnb short loc_62F09
mov rax, [rbp+var_C0]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0FEh
jnz short loc_62F09
jmp loc_62FAD
loc_62F09:
jmp short $+2
loc_62F0B:
jmp short $+2
loc_62F0D:
cmp cs:_ZL12opt_raw_mode, 0; opt_raw_mode
jz short loc_62F3E
mov rdi, [rbp+var_A0]; st_print_event_info *
mov rdx, [rbp+var_A8]; char *
mov ecx, [rbp+var_B4]; unsigned int
lea rsi, [rbp+var_B0]; unsigned __int64 *
call _ZL21handle_event_raw_modeP19st_print_event_infoPmPKcj; handle_event_raw_mode(st_print_event_info *,ulong *,char const*,uint)
mov [rbp+var_CC], eax
jmp short loc_62F6B
loc_62F3E:
mov rdi, [rbp+var_A0]; st_print_event_info *
mov rdx, [rbp+var_A8]; char *
mov ecx, [rbp+var_B4]; unsigned int
mov r8, [rbp+var_C8]; unsigned __int64
lea rsi, [rbp+var_B0]; unsigned __int64 *
call _ZL22handle_event_text_modeP19st_print_event_infoPmPKcjy; handle_event_text_mode(st_print_event_info *,ulong *,char const*,uint,ulong long)
mov [rbp+var_CC], eax
loc_62F6B:
cmp [rbp+var_CC], 0
jz short loc_62F8F
cmp [rbp+var_CC], 3
jnz short loc_62F7F
jmp short loc_62FAD
loc_62F7F:
jmp short $+2
loc_62F81:
mov eax, [rbp+var_CC]
mov [rbp+var_94], eax
jmp short loc_62FB9
loc_62F8F:
mov rax, [rbp+var_B0]
sub rax, 1
add rax, [rbp+var_C8]
mov [rbp+var_C8], rax
jmp loc_62E98
loc_62FAD:
jmp short $+2
loc_62FAF:
mov [rbp+var_94], 0
loc_62FB9:
mov eax, [rbp+var_94]
mov [rbp+var_104], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_62FE6
mov eax, [rbp+var_104]
add rsp, 110h
pop rbp
retn
loc_62FE6:
call ___stack_chk_fail
|
long long dump_remote_log_entries(
st_print_event_info *a1,
char *a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
__m128 v14; // xmm4
__m128 v15; // xmm5
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
long long v22; // rax
long long v23; // rdx
long long v24; // rcx
long long v25; // r8
long long v26; // r9
__m128 v27; // xmm4
__m128 v28; // xmm5
char v30; // [rsp+0h] [rbp-110h]
int v31; // [rsp+10h] [rbp-100h]
unsigned long long v32; // [rsp+20h] [rbp-F0h]
int v33; // [rsp+38h] [rbp-D8h]
__int16 v34; // [rsp+42h] [rbp-CEh]
unsigned int v35; // [rsp+44h] [rbp-CCh]
unsigned int v36; // [rsp+44h] [rbp-CCh]
unsigned int v37; // [rsp+44h] [rbp-CCh]
long long v38; // [rsp+48h] [rbp-C8h]
long long v39; // [rsp+50h] [rbp-C0h]
unsigned long long packet; // [rsp+60h] [rbp-B0h] BYREF
char *v41; // [rsp+68h] [rbp-A8h]
st_print_event_info *v42; // [rsp+70h] [rbp-A0h]
int v44; // [rsp+80h] [rbp-90h] BYREF
__int16 v45; // [rsp+84h] [rbp-8Ch]
int v46; // [rsp+86h] [rbp-8Ah]
_BYTE v47[134]; // [rsp+8Ah] [rbp-86h] BYREF
*(_QWORD *)&v47[126] = __readfsqword(0x28u);
v42 = a1;
v41 = a2;
v38 = start_position;
v34 = 0;
v35 = safe_connect();
if ( v35 )
{
return v35;
}
else
{
v39 = mysql;
v36 = check_master_version();
if ( v36 )
{
return v36;
}
else
{
v44 = start_position;
if ( (opt_skip_annotate_row_events & 1) == 0 )
v34 = 2;
if ( !opt_stop_never )
v34 |= 1u;
v45 = v34;
v32 = strlen(v41);
if ( v32 <= 0x76 )
{
if ( opt_stop_never )
{
if ( opt_stop_never_slave_server_id )
v31 = opt_stop_never_slave_server_id;
else
v31 = 1;
v33 = v31;
}
else
{
v33 = 0;
}
v46 = v33;
memcpy(v47, v41, (unsigned int)v32);
if ( (unsigned int)ma_simple_command(mysql, 18LL, &v44, (unsigned int)(v32 + 10), 1LL, 0LL) )
{
error(
"Got fatal error sending the log dump command.",
18LL,
v16,
v17,
v18,
v19,
a3,
a4,
a5,
a6,
v20,
v21,
a9,
a10,
v30);
return 1;
}
else
{
while ( 1 )
{
packet = mysql_net_read_packet(mysql);
if ( packet == 0xFFFFFFFF )
{
v22 = mysql_error(mysql);
error(
"Got error reading packet from server: %s",
v22,
v23,
v24,
v25,
v26,
a3,
a4,
a5,
a6,
v27,
v28,
a9,
a10,
v30);
return 1;
}
if ( packet < 8 && **(unsigned __int8 **)(v39 + 32) == 254 )
break;
if ( opt_raw_mode )
v37 = handle_event_raw_mode(v42, &packet, v41, v32);
else
v37 = handle_event_text_mode(v42, &packet, v41, v32, v38);
if ( v37 )
{
if ( v37 != 3 )
return v37;
break;
}
v38 += packet - 1;
}
return 0;
}
}
else
{
error("Log name too long.", (long long)a2, v10, v11, v12, v13, a3, a4, a5, a6, v14, v15, a9, a10, v30);
return 1;
}
}
}
}
|
dump_remote_log_entries:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x110
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0xa0],RDI
MOV qword ptr [RBP + -0xa8],RSI
MOV RAX,qword ptr [0x00545918]
MOV qword ptr [RBP + -0xc8],RAX
MOV dword ptr [RBP + -0xcc],0x0
MOV word ptr [RBP + -0xce],0x0
CALL 0x00163430
MOV dword ptr [RBP + -0xcc],EAX
CMP EAX,0x0
JZ 0x00162cba
JMP 0x00162ca9
LAB_00162ca9:
MOV EAX,dword ptr [RBP + -0xcc]
MOV dword ptr [RBP + -0x94],EAX
JMP 0x00162fb9
LAB_00162cba:
MOV RAX,qword ptr [0x005459f8]
MOV qword ptr [RBP + -0xc0],RAX
CALL 0x00163660
MOV dword ptr [RBP + -0xcc],EAX
CMP EAX,0x0
JZ 0x00162ceb
JMP 0x00162cda
LAB_00162cda:
MOV EAX,dword ptr [RBP + -0xcc]
MOV dword ptr [RBP + -0x94],EAX
JMP 0x00162fb9
LAB_00162ceb:
JMP 0x00162ced
LAB_00162ced:
JMP 0x00162cef
LAB_00162cef:
JMP 0x00162cf1
LAB_00162cf1:
LEA RAX,[RBP + -0x90]
MOV qword ptr [RBP + -0xe0],RAX
MOV RAX,qword ptr [0x00545918]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xe0]
MOV dword ptr [RAX],ECX
TEST byte ptr [0x00545864],0x1
JNZ 0x00162d2b
MOVSX EAX,word ptr [RBP + -0xce]
OR EAX,0x2
MOV word ptr [RBP + -0xce],AX
LAB_00162d2b:
CMP byte ptr [0x005458f0],0x0
JNZ 0x00162d45
MOVSX EAX,word ptr [RBP + -0xce]
OR EAX,0x1
MOV word ptr [RBP + -0xce],AX
LAB_00162d45:
JMP 0x00162d47
LAB_00162d47:
LEA RAX,[RBP + -0x90]
ADD RAX,0x4
MOV qword ptr [RBP + -0xe8],RAX
MOV CX,word ptr [RBP + -0xce]
MOV RAX,qword ptr [RBP + -0xe8]
MOV word ptr [RAX],CX
MOV RDI,qword ptr [RBP + -0xa8]
CALL 0x0013b4b0
MOV qword ptr [RBP + -0xf0],RAX
CMP qword ptr [RBP + -0xf0],0x76
JBE 0x00162da4
LEA RDI,[0x213fa7]
MOV AL,0x0
CALL 0x0013c350
MOV dword ptr [RBP + -0x94],0x1
JMP 0x00162fb9
LAB_00162da4:
MOV RAX,qword ptr [RBP + -0xf0]
MOV dword ptr [RBP + -0xb4],EAX
CMP byte ptr [0x005458f0],0x0
JZ 0x00162df4
JMP 0x00162dbc
LAB_00162dbc:
JMP 0x00162dbe
LAB_00162dbe:
CMP qword ptr [0x005459e8],0x0
JNZ 0x00162dd6
MOV EAX,0x1
MOV qword ptr [RBP + -0x100],RAX
JMP 0x00162de4
LAB_00162dd6:
MOV RAX,qword ptr [0x005459e8]
MOV qword ptr [RBP + -0x100],RAX
LAB_00162de4:
MOV RAX,qword ptr [RBP + -0x100]
MOV qword ptr [RBP + -0xd8],RAX
JMP 0x00162dff
LAB_00162df4:
MOV qword ptr [RBP + -0xd8],0x0
LAB_00162dff:
JMP 0x00162e01
LAB_00162e01:
LEA RAX,[RBP + -0x90]
ADD RAX,0x6
MOV qword ptr [RBP + -0xf8],RAX
MOV RAX,qword ptr [RBP + -0xd8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xf8]
MOV dword ptr [RAX],ECX
LEA RDI,[RBP + -0x90]
ADD RDI,0xa
MOV RSI,qword ptr [RBP + -0xa8]
MOV EAX,dword ptr [RBP + -0xb4]
MOV EDX,EAX
CALL 0x0013b0c0
MOV RDI,qword ptr [0x005459f8]
LEA RDX,[RBP + -0x90]
MOV EAX,dword ptr [RBP + -0xb4]
ADD EAX,0xa
MOV EAX,EAX
MOV ECX,EAX
MOV ESI,0x12
MOV R8D,0x1
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00171b30
CMP EAX,0x0
JZ 0x00162e96
LEA RDI,[0x213fba]
MOV AL,0x0
CALL 0x0013c350
MOV dword ptr [RBP + -0x94],0x1
JMP 0x00162fb9
LAB_00162e96:
JMP 0x00162e98
LAB_00162e98:
MOV RDI,qword ptr [0x005459f8]
CALL 0x0017d700
MOV qword ptr [RBP + -0xb0],RAX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0xb0],RAX
JNZ 0x00162ee5
MOV RDI,qword ptr [0x005459f8]
CALL 0x0017c900
MOV RSI,RAX
LEA RDI,[0x213fe8]
MOV AL,0x0
CALL 0x0013c350
MOV dword ptr [RBP + -0x94],0x1
JMP 0x00162fb9
LAB_00162ee5:
CMP qword ptr [RBP + -0xb0],0x8
JNC 0x00162f09
MOV RAX,qword ptr [RBP + -0xc0]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfe
JNZ 0x00162f09
JMP 0x00162fad
LAB_00162f09:
JMP 0x00162f0b
LAB_00162f0b:
JMP 0x00162f0d
LAB_00162f0d:
CMP byte ptr [0x005458f2],0x0
JZ 0x00162f3e
MOV RDI,qword ptr [RBP + -0xa0]
MOV RDX,qword ptr [RBP + -0xa8]
MOV ECX,dword ptr [RBP + -0xb4]
LEA RSI,[RBP + -0xb0]
CALL 0x00163940
MOV dword ptr [RBP + -0xcc],EAX
JMP 0x00162f6b
LAB_00162f3e:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RDX,qword ptr [RBP + -0xa8]
MOV ECX,dword ptr [RBP + -0xb4]
MOV R8,qword ptr [RBP + -0xc8]
LEA RSI,[RBP + -0xb0]
CALL 0x00163c90
MOV dword ptr [RBP + -0xcc],EAX
LAB_00162f6b:
CMP dword ptr [RBP + -0xcc],0x0
JZ 0x00162f8f
CMP dword ptr [RBP + -0xcc],0x3
JNZ 0x00162f7f
JMP 0x00162fad
LAB_00162f7f:
JMP 0x00162f81
LAB_00162f81:
MOV EAX,dword ptr [RBP + -0xcc]
MOV dword ptr [RBP + -0x94],EAX
JMP 0x00162fb9
LAB_00162f8f:
MOV RAX,qword ptr [RBP + -0xb0]
SUB RAX,0x1
ADD RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RBP + -0xc8],RAX
JMP 0x00162e98
LAB_00162fad:
JMP 0x00162faf
LAB_00162faf:
MOV dword ptr [RBP + -0x94],0x0
LAB_00162fb9:
MOV EAX,dword ptr [RBP + -0x94]
MOV dword ptr [RBP + -0x104],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00162fe6
MOV EAX,dword ptr [RBP + -0x104]
ADD RSP,0x110
POP RBP
RET
LAB_00162fe6:
CALL 0x0013b340
|
/* dump_remote_log_entries(st_print_event_info*, char const*) */
int dump_remote_log_entries(st_print_event_info *param_1,char *param_2)
{
long lVar1;
uint uVar2;
int iVar3;
size_t sVar4;
int8 uVar5;
long in_FS_OFFSET;
int4 local_108;
int4 local_e0;
ushort local_d6;
int local_d4;
ulonglong local_d0;
ulong local_b8;
char *local_b0;
st_print_event_info *local_a8;
int local_9c;
int4 local_98;
ushort local_94;
int4 local_92;
int1 auStack_8e [126];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_d0 = start_position;
local_d6 = 0;
local_b0 = param_2;
local_a8 = param_1;
local_9c = safe_connect();
lVar1 = mysql;
if ((local_9c == 0) && (local_9c = check_master_version(), local_9c == 0)) {
local_98 = (int4)start_position;
if ((opt_skip_annotate_row_events & 1) == 0) {
local_d6 = 2;
}
if (opt_stop_never == '\0') {
local_d6 = local_d6 | 1;
}
local_94 = local_d6;
sVar4 = strlen(local_b0);
if (sVar4 < 0x77) {
uVar2 = (uint)sVar4;
if (opt_stop_never == '\0') {
local_e0 = 0;
}
else {
if (opt_stop_never_slave_server_id == 0) {
local_108 = 1;
}
else {
local_108 = (int4)opt_stop_never_slave_server_id;
}
local_e0 = local_108;
}
local_92 = local_e0;
memcpy(auStack_8e,local_b0,sVar4 & 0xffffffff);
iVar3 = ma_simple_command(mysql,0x12,&local_98,uVar2 + 10,1,0);
if (iVar3 == 0) {
while (local_b8 = mysql_net_read_packet(mysql), local_b8 != 0xffffffff) {
if ((local_b8 < 8) && (**(char **)(lVar1 + 0x20) == -2)) {
LAB_00162fad:
local_9c = 0;
goto LAB_00162fb9;
}
if (opt_raw_mode == '\0') {
local_d4 = handle_event_text_mode(local_a8,&local_b8,local_b0,uVar2,local_d0);
}
else {
local_d4 = handle_event_raw_mode(local_a8,&local_b8,local_b0,uVar2);
}
if (local_d4 != 0) {
if (local_d4 == 3) goto LAB_00162fad;
local_9c = local_d4;
goto LAB_00162fb9;
}
local_d0 = (local_b8 - 1) + local_d0;
}
uVar5 = mysql_error(mysql);
error("Got error reading packet from server: %s",uVar5);
local_9c = 1;
}
else {
error("Got fatal error sending the log dump command.");
local_9c = 1;
}
}
else {
error("Log name too long.");
local_9c = 1;
}
}
LAB_00162fb9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_9c;
}
|
|
10,072 |
my_register_filename
|
eloqsql/mysys/my_open.c
|
File my_register_filename(File fd, const char *FileName, enum file_type
type_of_file, uint error_message_number, myf MyFlags)
{
DBUG_ENTER("my_register_filename");
if ((int) fd >= MY_FILE_MIN)
{
my_atomic_add32_explicit(&my_file_opened, 1, MY_MEMORY_ORDER_RELAXED);
if ((uint) fd >= my_file_limit || (MyFlags & MY_NO_REGISTER))
DBUG_RETURN(fd);
my_file_info[fd].name = my_strdup(key_memory_my_file_info, FileName, MyFlags);
statistic_increment(my_file_total_opened,&THR_LOCK_open);
my_file_info[fd].type = type_of_file;
DBUG_PRINT("exit",("fd: %d",fd));
DBUG_RETURN(fd);
}
my_errno= errno;
DBUG_PRINT("error",("Got error %d on open", my_errno));
if (MyFlags & (MY_FFNF | MY_FAE | MY_WME))
{
if (my_errno == EMFILE)
error_message_number= EE_OUT_OF_FILERESOURCES;
my_error(error_message_number,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
FileName, my_errno);
}
DBUG_RETURN(-1);
}
|
O3
|
c
|
my_register_filename:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rsi, %r15
testl %edi, %edi
js 0x2ce39
movl %edi, %ebx
leaq 0x33c369(%rip), %rax # 0x369144
lock
incl (%rax)
testl $0x2004, %r14d # imm = 0x2004
jne 0x2ce88
leaq 0x2c555e(%rip), %rax # 0x2f2350
cmpl %ebx, (%rax)
jbe 0x2ce88
movl %edx, %r13d
leaq 0x33c870(%rip), %rax # 0x369674
movl (%rax), %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2cc58
leaq 0x2c5540(%rip), %rcx # 0x2f2358
movq (%rcx), %rdx
movl %ebx, %esi
shlq $0x4, %rsi
movq %rax, (%rdx,%rsi)
leaq 0x33c304(%rip), %rax # 0x369130
incq (%rax)
movq (%rcx), %rax
movl %r13d, 0x8(%rax,%rsi)
jmp 0x2ce88
movl %ecx, %r12d
callq 0x24060
movl (%rax), %ebx
callq 0x268a6
movl %ebx, (%rax)
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
testb $0x19, %r14b
je 0x2ce88
callq 0x268a6
cmpl $0x18, (%rax)
movl $0x17, %eax
cmovel %eax, %r12d
andl $0x440, %r14d # imm = 0x440
orq $0x4, %r14
callq 0x268a6
movl (%rax), %ecx
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2bf8b
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_register_filename:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rsi
test edi, edi
js short loc_2CE39
mov ebx, edi
lea rax, my_file_opened
lock inc dword ptr [rax]
test r14d, 2004h
jnz loc_2CE88
lea rax, my_file_limit
cmp [rax], ebx
jbe loc_2CE88
mov r13d, edx
lea rax, key_memory_my_file_info
mov edi, [rax]
mov rsi, r15
mov rdx, r14
call my_strdup
lea rcx, my_file_info
mov rdx, [rcx]
mov esi, ebx
shl rsi, 4
mov [rdx+rsi], rax
lea rax, my_file_total_opened
inc qword ptr [rax]
mov rax, [rcx]
mov [rax+rsi+8], r13d
jmp short loc_2CE88
loc_2CE39:
mov r12d, ecx
call ___errno_location
mov ebx, [rax]
call _my_thread_var
mov [rax], ebx
mov ebx, 0FFFFFFFFh
test r14b, 19h
jz short loc_2CE88
call _my_thread_var
cmp dword ptr [rax], 18h
mov eax, 17h
cmovz r12d, eax
and r14d, 440h
or r14, 4
call _my_thread_var
mov ecx, [rax]
mov edi, r12d
mov rsi, r14
mov rdx, r15
xor eax, eax
call my_error
loc_2CE88:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_register_filename(long long a1, long long a2, int a3, unsigned int a4, __int16 a5)
{
unsigned int v6; // ebx
long long v8; // rax
long long v9; // rsi
int v11; // ebx
unsigned int *v12; // rax
if ( (int)a1 < 0 )
{
v11 = *(_DWORD *)__errno_location(a1);
*(_DWORD *)my_thread_var() = v11;
v6 = -1;
if ( (a5 & 0x19) != 0 )
{
if ( *(_DWORD *)my_thread_var() == 24 )
a4 = 23;
v12 = (unsigned int *)my_thread_var();
my_error(a4, a5 & 0x440 | 4, a2, *v12);
}
}
else
{
v6 = a1;
_InterlockedIncrement(my_file_opened);
if ( (a5 & 0x2004) == 0 && my_file_limit > (unsigned int)a1 )
{
v8 = my_strdup(key_memory_my_file_info, a2, a5);
v9 = 16LL * (unsigned int)a1;
*(_QWORD *)((char *)my_file_info + v9) = v8;
++my_file_total_opened;
*(_DWORD *)((char *)my_file_info + v9 + 8) = a3;
}
}
return v6;
}
|
my_register_filename:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RSI
TEST EDI,EDI
JS 0x0012ce39
MOV EBX,EDI
LEA RAX,[0x469144]
INC.LOCK dword ptr [RAX]
TEST R14D,0x2004
JNZ 0x0012ce88
LEA RAX,[0x3f2350]
CMP dword ptr [RAX],EBX
JBE 0x0012ce88
MOV R13D,EDX
LEA RAX,[0x469674]
MOV EDI,dword ptr [RAX]
MOV RSI,R15
MOV RDX,R14
CALL 0x0012cc58
LEA RCX,[0x3f2358]
MOV RDX,qword ptr [RCX]
MOV ESI,EBX
SHL RSI,0x4
MOV qword ptr [RDX + RSI*0x1],RAX
LEA RAX,[0x469130]
INC qword ptr [RAX]
MOV RAX,qword ptr [RCX]
MOV dword ptr [RAX + RSI*0x1 + 0x8],R13D
JMP 0x0012ce88
LAB_0012ce39:
MOV R12D,ECX
CALL 0x00124060
MOV EBX,dword ptr [RAX]
CALL 0x001268a6
MOV dword ptr [RAX],EBX
MOV EBX,0xffffffff
TEST R14B,0x19
JZ 0x0012ce88
CALL 0x001268a6
CMP dword ptr [RAX],0x18
MOV EAX,0x17
CMOVZ R12D,EAX
AND R14D,0x440
OR R14,0x4
CALL 0x001268a6
MOV ECX,dword ptr [RAX]
MOV EDI,R12D
MOV RSI,R14
MOV RDX,R15
XOR EAX,EAX
CALL 0x0012bf8b
LAB_0012ce88:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint my_register_filename
(uint param_1,int8 param_2,int4 param_3,int4 param_4,ulong param_5)
{
int iVar1;
int8 uVar2;
int *piVar3;
int4 *puVar4;
if ((int)param_1 < 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
param_1 = 0xffffffff;
if ((param_5 & 0x19) != 0) {
piVar3 = (int *)_my_thread_var();
if (*piVar3 == 0x18) {
param_4 = 0x17;
}
puVar4 = (int4 *)_my_thread_var();
my_error(param_4,(uint)param_5 & 0x440 | 4,param_2,*puVar4);
}
}
else {
LOCK();
my_file_opened = my_file_opened + 1;
UNLOCK();
if (((param_5 & 0x2004) == 0) && (param_1 < my_file_limit)) {
uVar2 = my_strdup(key_memory_my_file_info,param_2,param_5);
*(int8 *)(my_file_info + (ulong)param_1 * 0x10) = uVar2;
my_file_total_opened = my_file_total_opened + 1;
*(int4 *)(my_file_info + (ulong)param_1 * 0x10 + 8) = param_3;
}
}
return param_1;
}
|
|
10,073 |
Catch::filterTests(std::vector<Catch::TestCaseHandle, std::allocator<Catch::TestCaseHandle>> const&, Catch::TestSpec const&, Catch::IConfig const&)
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
std::vector<TestCaseHandle> filterTests( std::vector<TestCaseHandle> const& testCases, TestSpec const& testSpec, IConfig const& config ) {
std::vector<TestCaseHandle> filtered;
filtered.reserve( testCases.size() );
for (auto const& testCase : testCases) {
if ((!testSpec.hasFilters() && !testCase.getTestCaseInfo().isHidden()) ||
(testSpec.hasFilters() && matchTest(testCase, testSpec, config))) {
filtered.push_back(testCase);
}
}
return createShard(filtered, config.shardCount(), config.shardIndex());
}
|
O3
|
cpp
|
Catch::filterTests(std::vector<Catch::TestCaseHandle, std::allocator<Catch::TestCaseHandle>> const&, Catch::TestSpec const&, Catch::IConfig const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
callq 0x78bd8
movq (%r13), %r12
movq 0x8(%r13), %rbp
cmpq %rbp, %r12
je 0x6221f
movq %rsp, %r13
movq (%r15), %rax
cmpq 0x8(%r15), %rax
je 0x621e5
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x61eb7
testb %al, %al
jne 0x621ef
jmp 0x62216
movq (%r12), %rax
testb $0x2, 0x78(%rax)
jne 0x62216
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x6220b
movups (%r12), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x62216
movq %r13, %rdi
movq %r12, %rdx
callq 0x884ea
addq $0x10, %r12
cmpq %rbp, %r12
jne 0x621c8
movq (%r14), %rax
movq %r14, %rdi
callq *0x90(%rax)
movl %eax, %ebp
movq (%r14), %rax
movq %r14, %rdi
callq *0x98(%rax)
movl %ebp, %edx
movl %eax, %ecx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x78c7f
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6225e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x17150
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x62272
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6228b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x17150
movq %rbx, %rdi
callq 0x17740
|
_ZN5Catch11filterTestsERKSt6vectorINS_14TestCaseHandleESaIS1_EERKNS_8TestSpecERKNS_7IConfigE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rcx
mov r15, rdx
mov r13, rsi
mov rbx, rdi
xorps xmm0, xmm0
mov rdi, rsp
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
mov rsi, [rsi+8]
sub rsi, [r13+0]
sar rsi, 4
call _ZNSt6vectorIN5Catch14TestCaseHandleESaIS1_EE7reserveEm; std::vector<Catch::TestCaseHandle>::reserve(ulong)
mov r12, [r13+0]
mov rbp, [r13+8]
cmp r12, rbp
jz short loc_6221F
mov r13, rsp
loc_621C8:
mov rax, [r15]
cmp rax, [r15+8]
jz short loc_621E5
mov rdi, r12; this
mov rsi, r15; Catch::TestCaseHandle *
mov rdx, r14; Catch::TestSpec *
call _ZN5Catch9matchTestERKNS_14TestCaseHandleERKNS_8TestSpecERKNS_7IConfigE; Catch::matchTest(Catch::TestCaseHandle const&,Catch::TestSpec const&,Catch::IConfig const&)
test al, al
jnz short loc_621EF
jmp short loc_62216
loc_621E5:
mov rax, [r12]
test byte ptr [rax+78h], 2
jnz short loc_62216
loc_621EF:
mov rsi, [rsp+48h+var_40]
cmp rsi, [rsp+48h+var_38]
jz short loc_6220B
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rsi], xmm0
add [rsp+48h+var_40], 10h
jmp short loc_62216
loc_6220B:
mov rdi, r13
mov rdx, r12
call _ZNSt6vectorIN5Catch14TestCaseHandleESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<Catch::TestCaseHandle>::_M_realloc_insert<Catch::TestCaseHandle const&>(__gnu_cxx::__normal_iterator<Catch::TestCaseHandle*,std::vector<Catch::TestCaseHandle>>,Catch::TestCaseHandle const&)
loc_62216:
add r12, 10h
cmp r12, rbp
jnz short loc_621C8
loc_6221F:
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+90h]
mov ebp, eax
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+98h]
mov edx, ebp
mov ecx, eax
mov rsi, rsp
mov rdi, rbx
call _ZN5Catch11createShardISt6vectorINS_14TestCaseHandleESaIS2_EEEET_RKS5_mm; Catch::createShard<std::vector<Catch::TestCaseHandle>>(std::vector<Catch::TestCaseHandle> const&,ulong,ulong)
mov rdi, [rsp+48h+var_48]; void *
test rdi, rdi
jz short loc_6225E
mov rsi, [rsp+48h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6225E:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_62272:
mov rbx, rax
mov rdi, [rsp+0]; void *
test rdi, rdi
jz short loc_6228B
mov rsi, [rsp+arg_8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6228B:
mov rdi, rbx
call __Unwind_Resume
|
long long Catch::filterTests(
long long a1,
const Catch::TestCaseInfo ***a2,
const Catch::TestCaseHandle *a3,
const Catch::TestSpec *a4)
{
const Catch::IConfig *v6; // rcx
const Catch::TestCaseInfo **v7; // r12
const Catch::TestCaseInfo **v8; // rbp
unsigned int v9; // ebp
unsigned int v10; // eax
__int128 v12; // [rsp+0h] [rbp-48h] BYREF
long long v13; // [rsp+10h] [rbp-38h]
v12 = 0LL;
v13 = 0LL;
std::vector<Catch::TestCaseHandle>::reserve(&v12, ((char *)a2[1] - (char *)*a2) >> 4);
v7 = *a2;
v8 = a2[1];
if ( *a2 != v8 )
{
do
{
if ( *(_QWORD *)a3 == *((_QWORD *)a3 + 1) )
{
if ( (*((_BYTE *)*v7 + 120) & 2) == 0 )
{
LABEL_6:
if ( *((_QWORD *)&v12 + 1) == v13 )
{
std::vector<Catch::TestCaseHandle>::_M_realloc_insert<Catch::TestCaseHandle const&>(
&v12,
*((_QWORD *)&v12 + 1),
v7);
}
else
{
**((_OWORD **)&v12 + 1) = *(_OWORD *)v7;
*((_QWORD *)&v12 + 1) += 16LL;
}
}
}
else if ( Catch::matchTest(v7, a3, a4, v6) )
{
goto LABEL_6;
}
v7 += 2;
}
while ( v7 != v8 );
}
v9 = (*(long long ( **)(const Catch::TestSpec *))(*(_QWORD *)a4 + 144LL))(a4);
v10 = (*(long long ( **)(const Catch::TestSpec *))(*(_QWORD *)a4 + 152LL))(a4);
Catch::createShard<std::vector<Catch::TestCaseHandle>>(a1, &v12, v9, v10);
if ( (_QWORD)v12 )
operator delete((void *)v12, v13 - v12);
return a1;
}
|
filterTests:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RCX
MOV R15,RDX
MOV R13,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOV RSI,qword ptr [RSI + 0x8]
SUB RSI,qword ptr [R13]
SAR RSI,0x4
LAB_001621b3:
CALL 0x00178bd8
MOV R12,qword ptr [R13]
MOV RBP,qword ptr [R13 + 0x8]
CMP R12,RBP
JZ 0x0016221f
MOV R13,RSP
LAB_001621c8:
MOV RAX,qword ptr [R15]
CMP RAX,qword ptr [R15 + 0x8]
JZ 0x001621e5
LAB_001621d1:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x00161eb7
TEST AL,AL
JNZ 0x001621ef
JMP 0x00162216
LAB_001621e5:
MOV RAX,qword ptr [R12]
TEST byte ptr [RAX + 0x78],0x2
JNZ 0x00162216
LAB_001621ef:
MOV RSI,qword ptr [RSP + 0x8]
CMP RSI,qword ptr [RSP + 0x10]
JZ 0x0016220b
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RSP + 0x8],0x10
JMP 0x00162216
LAB_0016220b:
MOV RDI,R13
MOV RDX,R12
CALL 0x001884ea
LAB_00162216:
ADD R12,0x10
CMP R12,RBP
JNZ 0x001621c8
LAB_0016221f:
MOV RAX,qword ptr [R14]
LAB_00162222:
MOV RDI,R14
CALL qword ptr [RAX + 0x90]
MOV EBP,EAX
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x98]
MOV EDX,EBP
MOV ECX,EAX
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00178c7f
LAB_00162248:
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x0016225e
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x00117150
LAB_0016225e:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Catch::filterTests(std::vector<Catch::TestCaseHandle, std::allocator<Catch::TestCaseHandle> >
const&, Catch::TestSpec const&, Catch::IConfig const&) */
Catch * __thiscall
Catch::filterTests(Catch *this,vector *param_1,TestSpec *param_2,IConfig *param_3)
{
TestCaseHandle *pTVar1;
int8 uVar2;
char cVar3;
uint uVar4;
uint uVar5;
TestCaseHandle *pTVar6;
void *local_48;
int8 *puStack_40;
int8 *local_38;
local_48 = (void *)0x0;
puStack_40 = (int8 *)0x0;
local_38 = (int8 *)0x0;
/* try { // try from 001621b3 to 001621b7 has its CatchHandler @ 00162270 */
std::vector<Catch::TestCaseHandle,std::allocator<Catch::TestCaseHandle>>::reserve
((vector<Catch::TestCaseHandle,std::allocator<Catch::TestCaseHandle>> *)&local_48,
*(long *)(param_1 + 8) - *(long *)param_1 >> 4);
pTVar6 = *(TestCaseHandle **)param_1;
pTVar1 = *(TestCaseHandle **)(param_1 + 8);
do {
if (pTVar6 == pTVar1) {
/* try { // try from 00162222 to 00162247 has its CatchHandler @ 00162270 */
uVar4 = (**(code **)(*(long *)param_3 + 0x90))(param_3);
uVar5 = (**(code **)(*(long *)param_3 + 0x98))(param_3);
createShard<std::vector<Catch::TestCaseHandle,std::allocator<Catch::TestCaseHandle>>>
(this,(vector *)&local_48,(ulong)uVar4,(ulong)uVar5);
if (local_48 != (void *)0x0) {
operator_delete(local_48,(long)local_38 - (long)local_48);
}
return this;
}
if (*(long *)param_2 == *(long *)(param_2 + 8)) {
if ((*(byte *)(*(long *)pTVar6 + 0x78) & 2) == 0) goto LAB_001621ef;
}
else {
/* try { // try from 001621d1 to 00162215 has its CatchHandler @ 00162272 */
cVar3 = matchTest(pTVar6,param_2,param_3);
if (cVar3 != '\0') {
LAB_001621ef:
if (puStack_40 == local_38) {
std::vector<Catch::TestCaseHandle,std::allocator<Catch::TestCaseHandle>>::
_M_realloc_insert<Catch::TestCaseHandle_const&>
((vector<Catch::TestCaseHandle,std::allocator<Catch::TestCaseHandle>> *)
&local_48,puStack_40,pTVar6);
}
else {
uVar2 = *(int8 *)(pTVar6 + 8);
*puStack_40 = *(int8 *)pTVar6;
puStack_40[1] = uVar2;
puStack_40 = puStack_40 + 2;
}
}
}
pTVar6 = pTVar6 + 0x10;
} while( true );
}
|
|
10,074 |
R3D_SetLightAttenuation
|
r3d/src/r3d_lighting.c
|
void R3D_SetLightAttenuation(R3D_Light id, float attenuation)
{
r3d_get_and_check_light(light, id);
light->attenuation = 1.0f / attenuation;
}
|
O3
|
c
|
R3D_SetLightAttenuation:
pushq %rbp
movq %rsp, %rbp
movl %edi, %edx
testl %edi, %edi
je 0xbe405
leaq 0xf1855(%rip), %rax # 0x1afc20
cmpl %edx, 0x168(%rax)
jbe 0xbe405
movq 0x128(%rax), %rsi
leal -0x1(%rdx), %ecx
cmpb $0x1, (%rsi,%rcx)
jne 0xbe405
movq 0x108(%rax), %rsi
cmpq %rcx, 0x110(%rax)
setbe %dil
testq %rsi, %rsi
sete %r8b
orb %dil, %r8b
cmpb $0x1, %r8b
jne 0xbe419
leaq 0x539d7(%rip), %rsi # 0x111de3
movl $0x5, %edi
xorl %eax, %eax
popq %rbp
jmp 0xa9c29
imulq 0x120(%rax), %rcx
movss 0x23beb(%rip), %xmm1 # 0xe2014
divss %xmm0, %xmm1
movss %xmm1, 0xa4(%rsi,%rcx)
popq %rbp
retq
|
R3D_SetLightAttenuation:
push rbp
mov rbp, rsp
mov edx, edi
test edi, edi
jz short loc_BE405
lea rax, R3D
cmp [rax+168h], edx
jbe short loc_BE405
mov rsi, [rax+128h]
lea ecx, [rdx-1]
cmp byte ptr [rsi+rcx], 1
jnz short loc_BE405
mov rsi, [rax+108h]
cmp [rax+110h], rcx
setbe dil
test rsi, rsi
setz r8b
or r8b, dil
cmp r8b, 1
jnz short loc_BE419
loc_BE405:
lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid"
mov edi, 5
xor eax, eax
pop rbp
jmp TraceLog
loc_BE419:
imul rcx, [rax+120h]
movss xmm1, cs:dword_E2014
divss xmm1, xmm0
movss dword ptr [rsi+rcx+0A4h], xmm1
pop rbp
retn
|
void R3D_SetLightAttenuation(unsigned int a1, float a2)
{
unsigned long long v2; // rcx
long long v3; // rsi
if ( a1
&& *((_DWORD *)&R3D + 90) > a1
&& (v2 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1)
&& (v3 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v2 && v3 != 0) )
{
*(float *)(v3 + *((_QWORD *)&R3D + 36) * v2 + 164) = 1.0 / a2;
}
else
{
TraceLog(5, (long long)"Light [ID %i] is not valid", a1);
}
}
|
R3D_SetLightAttenuation:
PUSH RBP
MOV RBP,RSP
MOV EDX,EDI
TEST EDI,EDI
JZ 0x001be405
LEA RAX,[0x2afc20]
CMP dword ptr [RAX + 0x168],EDX
JBE 0x001be405
MOV RSI,qword ptr [RAX + 0x128]
LEA ECX,[RDX + -0x1]
CMP byte ptr [RSI + RCX*0x1],0x1
JNZ 0x001be405
MOV RSI,qword ptr [RAX + 0x108]
CMP qword ptr [RAX + 0x110],RCX
SETBE DIL
TEST RSI,RSI
SETZ R8B
OR R8B,DIL
CMP R8B,0x1
JNZ 0x001be419
LAB_001be405:
LEA RSI,[0x211de3]
MOV EDI,0x5
XOR EAX,EAX
POP RBP
JMP 0x001a9c29
LAB_001be419:
IMUL RCX,qword ptr [RAX + 0x120]
MOVSS XMM1,dword ptr [0x001e2014]
DIVSS XMM1,XMM0
MOVSS dword ptr [RSI + RCX*0x1 + 0xa4],XMM1
POP RBP
RET
|
void R3D_SetLightAttenuation(float param_1,uint param_2)
{
ulong uVar1;
if (((param_2 != 0) && (param_2 < DAT_002afd88)) &&
(uVar1 = (ulong)(param_2 - 1), *(char *)(DAT_002afd48 + uVar1) == '\x01')) {
if (DAT_002afd28 != 0 && uVar1 < DAT_002afd30) {
*(float *)(DAT_002afd28 + 0xa4 + uVar1 * DAT_002afd40) = DAT_001e2014 / param_1;
return;
}
}
TraceLog(5,"Light [ID %i] is not valid");
return;
}
|
|
10,075 |
DepthAnything::postprocessBatch(std::vector<cv::Size_<int>, std::allocator<cv::Size_<int>>> const&, Ort::Value const&)
|
Depths-CPP/include/depth_anything.hpp
|
std::vector<cv::Mat> DepthAnything::postprocessBatch(const std::vector<cv::Size> &originalImageSizes, const Ort::Value &outputTensor)
{
const float *rawOutput = outputTensor.GetTensorData<float>();
auto outputTypeInfo = outputTensor.GetTensorTypeAndShapeInfo();
std::vector<int64_t> outputShape = outputTypeInfo.GetShape();
if (outputShape.size() < 3 || outputShape[0] <= 0)
{
throw std::runtime_error("Invalid output tensor shape for batch processing.");
}
int batchSize = static_cast<int>(outputShape[0]);
int H = static_cast<int>(outputShape[1]);
int W = static_cast<int>(outputShape[2]);
size_t singleImageSize = H * W;
std::vector<cv::Mat> depthMaps;
depthMaps.reserve(batchSize);
for (int i = 0; i < batchSize; i++)
{
// Extract each depth map from the batch output
cv::Mat depthMap(H, W, CV_32FC1);
memcpy(depthMap.data, rawOutput + i * singleImageSize, singleImageSize * sizeof(float));
// Resize to original image dimensions
cv::Mat resizedDepth;
if (i < originalImageSizes.size()) {
cv::resize(depthMap, resizedDepth, originalImageSizes[i], 0, 0, cv::INTER_LINEAR);
} else {
resizedDepth = depthMap.clone();
}
depthMaps.push_back(resizedDepth);
}
return depthMaps;
}
|
O0
|
cpp
|
DepthAnything::postprocessBatch(std::vector<cv::Size_<int>, std::allocator<cv::Size_<int>>> const&, Ort::Value const&):
subq $0x1f8, %rsp # imm = 0x1F8
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x1f0(%rsp)
movq %rsi, 0x1e8(%rsp)
movq %rdx, 0x1e0(%rsp)
movq %rcx, 0x1d8(%rsp)
movq 0x1d8(%rsp), %rdi
callq 0x2d870
movq %rax, 0x1d0(%rsp)
movq 0x1d8(%rsp), %rsi
leaq 0x1c8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x2d8b0
movq 0x28(%rsp), %rsi
leaq 0x1b0(%rsp), %rdi
callq 0x2d920
jmp 0x254f7
leaq 0x1b0(%rsp), %rdi
callq 0x2c950
cmpq $0x3, %rax
jb 0x25525
leaq 0x1b0(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2c970
cmpq $0x0, (%rax)
jg 0x255ba
movl $0x10, %edi
callq 0x23230
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
leaq 0x1ac45(%rip), %rsi # 0x40186
callq 0x23060
jmp 0x25548
movq 0x10(%rsp), %rdi
movq 0x28a5c(%rip), %rsi # 0x4dfb0
movq 0x28a9d(%rip), %rdx # 0x4dff8
callq 0x23420
jmp 0x2593d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
jmp 0x25923
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
callq 0x232c0
jmp 0x25916
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
jmp 0x25916
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x2c970
movq 0x8(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x1a0(%rsp)
movl $0x1, %esi
callq 0x2c970
movq 0x8(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x19c(%rsp)
movl $0x2, %esi
callq 0x2c970
movq 0x18(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x198(%rsp)
movl 0x19c(%rsp), %eax
movl 0x198(%rsp), %ecx
imull %ecx, %eax
cltq
movq %rax, 0x190(%rsp)
movb $0x0, 0x18f(%rsp)
callq 0x2d140
movq 0x18(%rsp), %rdi
movslq 0x1a0(%rsp), %rsi
callq 0x2d5b0
jmp 0x2564a
movl $0x0, 0x188(%rsp)
movl 0x188(%rsp), %eax
cmpl 0x1a0(%rsp), %eax
jge 0x258c9
movl 0x19c(%rsp), %esi
movl 0x198(%rsp), %edx
leaq 0x128(%rsp), %rdi
movl $0x5, %ecx
callq 0x235c0
jmp 0x2568b
movq 0x138(%rsp), %rdi
movq 0x1d0(%rsp), %rsi
movslq 0x188(%rsp), %rax
imulq 0x190(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
movq 0x190(%rsp), %rdx
shlq $0x2, %rdx
callq 0x23530
leaq 0xc8(%rsp), %rdi
callq 0x23070
movslq 0x188(%rsp), %rax
movq %rax, (%rsp)
movq 0x1e0(%rsp), %rdi
callq 0x2da60
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jae 0x25815
leaq 0xb0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x2d150
jmp 0x25711
leaq 0x98(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x2d0d0
jmp 0x25728
movq 0x1e0(%rsp), %rdi
movslq 0x188(%rsp), %rsi
callq 0x2da80
movq %rax, %rsi
leaq 0x90(%rsp), %rdi
callq 0x2cf10
jmp 0x2574f
leaq 0xb0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x90(%rsp), %rdx
vpxor %xmm1, %xmm1, %xmm1
movl $0x1, %ecx
vmovaps %xmm1, %xmm0
callq 0x236a0
jmp 0x2577b
leaq 0x98(%rsp), %rdi
callq 0x2d130
leaq 0xb0(%rsp), %rdi
callq 0x2d1d0
jmp 0x25869
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
jmp 0x2590c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
jmp 0x258ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
jmp 0x25803
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x2d130
leaq 0xb0(%rsp), %rdi
callq 0x2d1d0
jmp 0x258ad
leaq 0x30(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x23180
jmp 0x25829
leaq 0xc8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x23090
jmp 0x2583d
leaq 0x30(%rsp), %rdi
callq 0x230a0
jmp 0x25869
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a8(%rsp)
movl %eax, 0x1a4(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x230a0
jmp 0x258ad
movq 0x18(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x2d7a0
jmp 0x2587d
leaq 0xc8(%rsp), %rdi
callq 0x230a0
leaq 0x128(%rsp), %rdi
callq 0x230a0
movl 0x188(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x188(%rsp)
jmp 0x25655
leaq 0xc8(%rsp), %rdi
callq 0x230a0
leaq 0x128(%rsp), %rdi
callq 0x230a0
jmp 0x2590c
movb $0x1, 0x18f(%rsp)
testb $0x1, 0x18f(%rsp)
jne 0x258e5
movq 0x18(%rsp), %rdi
callq 0x2d3d0
leaq 0x1b0(%rsp), %rdi
callq 0x2ccf0
leaq 0x1c8(%rsp), %rdi
callq 0x2da50
movq 0x20(%rsp), %rax
addq $0x1f8, %rsp # imm = 0x1F8
retq
movq 0x18(%rsp), %rdi
callq 0x2d3d0
leaq 0x1b0(%rsp), %rdi
callq 0x2ccf0
leaq 0x1c8(%rsp), %rdi
callq 0x2da50
movq 0x1a8(%rsp), %rdi
callq 0x23430
nopl (%rax)
|
_ZN13DepthAnything16postprocessBatchERKSt6vectorIN2cv5Size_IiEESaIS3_EERKN3Ort5ValueE:
sub rsp, 1F8h
mov [rsp+1F8h+var_1E0], rdi
mov rax, rdi
mov [rsp+1F8h+var_1D8], rax
mov [rsp+1F8h+var_8], rdi
mov [rsp+1F8h+var_10], rsi
mov [rsp+1F8h+var_18], rdx
mov [rsp+1F8h+var_20], rcx
mov rdi, [rsp+1F8h+var_20]
call _ZNK3Ort6detail14ConstValueImplI8OrtValueE13GetTensorDataIfEEPKT_v; Ort::detail::ConstValueImpl<OrtValue>::GetTensorData<float>(void)
mov [rsp+1F8h+var_28], rax
mov rsi, [rsp+1F8h+var_20]
lea rdi, [rsp+1F8h+var_30]
mov [rsp+1F8h+var_1D0], rdi
call _ZNK3Ort6detail14ConstValueImplI8OrtValueE25GetTensorTypeAndShapeInfoEv; Ort::detail::ConstValueImpl<OrtValue>::GetTensorTypeAndShapeInfo(void)
mov rsi, [rsp+1F8h+var_1D0]
lea rdi, [rsp+1F8h+var_48]
call _ZNK3Ort6detail26TensorTypeAndShapeInfoImplI25OrtTensorTypeAndShapeInfoE8GetShapeEv; Ort::detail::TensorTypeAndShapeInfoImpl<OrtTensorTypeAndShapeInfo>::GetShape(void)
jmp short $+2
loc_254F7:
lea rdi, [rsp+1F8h+var_48]
call _ZNKSt6vectorIlSaIlEE4sizeEv; std::vector<long>::size(void)
cmp rax, 3
jb short loc_25525
lea rdi, [rsp+1F8h+var_48]
xor eax, eax
mov esi, eax
call _ZNSt6vectorIlSaIlEEixEm; std::vector<long>::operator[](ulong)
cmp qword ptr [rax], 0
jg loc_255BA
loc_25525:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+1F8h+var_1E8], rax
lea rsi, aInvalidOutputT; "Invalid output tensor shape for batch p"...
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_25548:
mov rdi, [rsp+1F8h+var_1E8]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_2593D
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
jmp loc_25923
mov rdi, [rsp+arg_8]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
call ___cxa_free_exception
jmp loc_25916
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
jmp loc_25916
loc_255BA:
xor eax, eax
mov esi, eax
lea rdi, [rsp+1F8h+var_48]
mov [rsp+1F8h+var_1F0], rdi
call _ZNSt6vectorIlSaIlEEixEm; std::vector<long>::operator[](ulong)
mov rdi, [rsp+1F8h+var_1F0]
mov eax, [rax]
mov [rsp+1F8h+var_58], eax
mov esi, 1
call _ZNSt6vectorIlSaIlEEixEm; std::vector<long>::operator[](ulong)
mov rdi, [rsp+1F8h+var_1F0]
mov eax, [rax]
mov [rsp+1F8h+var_5C], eax
mov esi, 2
call _ZNSt6vectorIlSaIlEEixEm; std::vector<long>::operator[](ulong)
mov rdi, [rsp+1F8h+var_1E0]
mov eax, [rax]
mov [rsp+1F8h+var_60], eax
mov eax, [rsp+1F8h+var_5C]
mov ecx, [rsp+1F8h+var_60]
imul eax, ecx
cdqe
mov [rsp+1F8h+var_68], rax
mov [rsp+1F8h+var_69], 0
call _ZNSt6vectorIN2cv3MatESaIS1_EEC2Ev; std::vector<cv::Mat>::vector(void)
mov rdi, [rsp+1F8h+var_1E0]
movsxd rsi, [rsp+1F8h+var_58]
call _ZNSt6vectorIN2cv3MatESaIS1_EE7reserveEm; std::vector<cv::Mat>::reserve(ulong)
jmp short $+2
loc_2564A:
mov [rsp+1F8h+var_70], 0
loc_25655:
mov eax, [rsp+1F8h+var_70]
cmp eax, [rsp+1F8h+var_58]
jge loc_258C9
mov esi, [rsp+1F8h+var_5C]; int
mov edx, [rsp+1F8h+var_60]; int
lea rdi, [rsp+1F8h+var_D0]; this
mov ecx, 5; int
call __ZN2cv3MatC1Eiii; cv::Mat::Mat(int,int,int)
jmp short $+2
loc_2568B:
mov rdi, [rsp+1F8h+var_C0]
mov rsi, [rsp+1F8h+var_28]
movsxd rax, [rsp+1F8h+var_70]
imul rax, [rsp+1F8h+var_68]
shl rax, 2
add rsi, rax
mov rdx, [rsp+1F8h+var_68]
shl rdx, 2
call _memcpy
lea rdi, [rsp+1F8h+var_130]; this
call __ZN2cv3MatC1Ev; cv::Mat::Mat(void)
movsxd rax, [rsp+1F8h+var_70]
mov [rsp+1F8h+var_1F8], rax
mov rdi, [rsp+1F8h+var_18]
call _ZNKSt6vectorIN2cv5Size_IiEESaIS2_EE4sizeEv; std::vector<cv::Size_<int>>::size(void)
mov rcx, rax
mov rax, [rsp+1F8h+var_1F8]
cmp rax, rcx
jnb loc_25815
lea rdi, [rsp+1F8h+var_148]; this
lea rsi, [rsp+1F8h+var_D0]; cv::Mat *
call _ZN2cv11_InputArrayC2ERKNS_3MatE; cv::_InputArray::_InputArray(cv::Mat const&)
jmp short $+2
loc_25711:
lea rdi, [rsp+1F8h+var_160]; this
lea rsi, [rsp+1F8h+var_130]; cv::Mat *
call _ZN2cv12_OutputArrayC2ERNS_3MatE; cv::_OutputArray::_OutputArray(cv::Mat &)
jmp short $+2
loc_25728:
mov rdi, [rsp+1F8h+var_18]
movsxd rsi, [rsp+1F8h+var_70]
call _ZNKSt6vectorIN2cv5Size_IiEESaIS2_EEixEm; std::vector<cv::Size_<int>>::operator[](ulong)
mov rsi, rax
lea rdi, [rsp+1F8h+var_168]
call _ZN2cv5Size_IiEC2ERKS1_; cv::Size_<int>::Size_(cv::Size_<int> const&)
jmp short $+2
loc_2574F:
lea rdi, [rsp+1F8h+var_148]
lea rsi, [rsp+1F8h+var_160]
lea rdx, [rsp+1F8h+var_168]
vpxor xmm1, xmm1, xmm1
mov ecx, 1
vmovaps xmm0, xmm1
call __ZN2cv6resizeERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddi; cv::resize(cv::_InputArray const&,cv::_OutputArray const&,cv::Size_<int>,double,double,int)
jmp short $+2
loc_2577B:
lea rdi, [rsp+1F8h+var_160]; this
call _ZN2cv12_OutputArrayD2Ev; cv::_OutputArray::~_OutputArray()
lea rdi, [rsp+1F8h+var_148]; this
call _ZN2cv11_InputArrayD2Ev; cv::_InputArray::~_InputArray()
jmp loc_25869
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
jmp loc_2590C
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
jmp loc_258AD
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
jmp short loc_25803
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
lea rdi, [rsp+arg_90]; this
call _ZN2cv12_OutputArrayD2Ev; cv::_OutputArray::~_OutputArray()
loc_25803:
lea rdi, [rsp+arg_A8]; this
call _ZN2cv11_InputArrayD2Ev; cv::_InputArray::~_InputArray()
jmp loc_258AD
loc_25815:
lea rdi, [rsp+1F8h+var_1C8]; this
lea rsi, [rsp+1F8h+var_D0]
call __ZNK2cv3Mat5cloneEv; cv::Mat::clone(void)
jmp short $+2
loc_25829:
lea rdi, [rsp+1F8h+var_130]
lea rsi, [rsp+1F8h+var_1C8]
call __ZN2cv3MataSEOS0_; cv::Mat::operator=(cv::Mat&&)
jmp short $+2
loc_2583D:
lea rdi, [rsp+1F8h+var_1C8]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
jmp short loc_25869
mov rcx, rax
mov eax, edx
mov [rsp+arg_1A0], rcx
mov [rsp+arg_19C], eax
lea rdi, [rsp+arg_28]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
jmp short loc_258AD
loc_25869:
mov rdi, [rsp+1F8h+var_1E0]
lea rsi, [rsp+1F8h+var_130]
call _ZNSt6vectorIN2cv3MatESaIS1_EE9push_backERKS1_; std::vector<cv::Mat>::push_back(cv::Mat const&)
jmp short $+2
loc_2587D:
lea rdi, [rsp+1F8h+var_130]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
lea rdi, [rsp+1F8h+var_D0]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
mov eax, [rsp+1F8h+var_70]
add eax, 1
mov [rsp+1F8h+var_70], eax
jmp loc_25655
loc_258AD:
lea rdi, [rsp+arg_C0]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
lea rdi, [rsp+arg_120]; this
call __ZN2cv3MatD1Ev; cv::Mat::~Mat()
jmp short loc_2590C
loc_258C9:
mov [rsp+1F8h+var_69], 1
test [rsp+1F8h+var_69], 1
jnz short loc_258E5
mov rdi, [rsp+1F8h+var_1E0]
call _ZNSt6vectorIN2cv3MatESaIS1_EED2Ev; std::vector<cv::Mat>::~vector()
loc_258E5:
lea rdi, [rsp+1F8h+var_48]
call _ZNSt6vectorIlSaIlEED2Ev; std::vector<long>::~vector()
lea rdi, [rsp+1F8h+var_30]; this
call _ZN3Ort22TensorTypeAndShapeInfoD2Ev; Ort::TensorTypeAndShapeInfo::~TensorTypeAndShapeInfo()
mov rax, [rsp+1F8h+var_1D8]
add rsp, 1F8h
retn
loc_2590C:
mov rdi, [rsp+arg_10]
call _ZNSt6vectorIN2cv3MatESaIS1_EED2Ev; std::vector<cv::Mat>::~vector()
loc_25916:
lea rdi, [rsp+arg_1A8]
call _ZNSt6vectorIlSaIlEED2Ev; std::vector<long>::~vector()
loc_25923:
lea rdi, [rsp+arg_1C0]; this
call _ZN3Ort22TensorTypeAndShapeInfoD2Ev; Ort::TensorTypeAndShapeInfo::~TensorTypeAndShapeInfo()
mov rdi, [rsp+arg_1A0]
call __Unwind_Resume
loc_2593D:
nop dword ptr [rax]
|
long long DepthAnything::postprocessBatch(
long long a1,
long long a2,
long long a3,
long long a4,
double a5,
__m128 _XMM1)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // rax
unsigned long long v13; // [rsp+0h] [rbp-1F8h]
std::runtime_error *exception; // [rsp+10h] [rbp-1E8h]
_BYTE v15[96]; // [rsp+30h] [rbp-1C8h] BYREF
_BYTE v16[8]; // [rsp+90h] [rbp-168h] BYREF
_BYTE v17[24]; // [rsp+98h] [rbp-160h] BYREF
_BYTE v18[24]; // [rsp+B0h] [rbp-148h] BYREF
_BYTE v19[96]; // [rsp+C8h] [rbp-130h] BYREF
_BYTE v20[16]; // [rsp+128h] [rbp-D0h] BYREF
long long v21; // [rsp+138h] [rbp-C0h]
int i; // [rsp+188h] [rbp-70h]
char v23; // [rsp+18Fh] [rbp-69h]
long long v24; // [rsp+190h] [rbp-68h]
int v25; // [rsp+198h] [rbp-60h]
int v26; // [rsp+19Ch] [rbp-5Ch]
int v27; // [rsp+1A0h] [rbp-58h]
_BYTE v28[24]; // [rsp+1B0h] [rbp-48h] BYREF
_BYTE v29[8]; // [rsp+1C8h] [rbp-30h] BYREF
long long Tensor; // [rsp+1D0h] [rbp-28h]
long long v31; // [rsp+1D8h] [rbp-20h]
long long v32; // [rsp+1E0h] [rbp-18h]
long long v33; // [rsp+1E8h] [rbp-10h]
long long v34; // [rsp+1F0h] [rbp-8h]
v34 = a1;
v33 = a2;
v32 = a3;
v31 = a4;
Tensor = Ort::detail::ConstValueImpl<OrtValue>::GetTensorData<float>(a4);
Ort::detail::ConstValueImpl<OrtValue>::GetTensorTypeAndShapeInfo(v29, v31);
Ort::detail::TensorTypeAndShapeInfoImpl<OrtTensorTypeAndShapeInfo>::GetShape(
(unsigned int)v28,
(unsigned int)v29,
v6,
v7,
v8,
v9);
if ( (unsigned long long)std::vector<long>::size(v28) < 3 || *(long long *)std::vector<long>::operator[](v28, 0LL) <= 0 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Invalid output tensor shape for batch processing.");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v27 = *(_DWORD *)std::vector<long>::operator[](v28, 0LL);
v26 = *(_DWORD *)std::vector<long>::operator[](v28, 1LL);
v25 = *(_DWORD *)std::vector<long>::operator[](v28, 2LL);
v24 = v25 * v26;
v23 = 0;
std::vector<cv::Mat>::vector(a1);
std::vector<cv::Mat>::reserve(a1, v27);
for ( i = 0; i < v27; ++i )
{
cv::Mat::Mat((cv::Mat *)v20, v26, v25, 5);
memcpy(v21, 4 * v24 * i + Tensor, 4 * v24);
cv::Mat::Mat((cv::Mat *)v19);
v13 = i;
if ( v13 >= std::vector<cv::Size_<int>>::size(v32) )
{
cv::Mat::clone((cv::Mat *)v15);
cv::Mat::operator=(v19, v15);
cv::Mat::~Mat((cv::Mat *)v15);
}
else
{
cv::_InputArray::_InputArray((cv::_InputArray *)v18, (const cv::Mat *)v20);
cv::_OutputArray::_OutputArray((cv::_OutputArray *)v17, (cv::Mat *)v19);
v10 = std::vector<cv::Size_<int>>::operator[](v32, i);
cv::Size_<int>::Size_(v16, v10);
__asm
{
vpxor xmm1, xmm1, xmm1
vmovaps xmm0, xmm1
}
cv::resize(v18, v17, v16, 1LL, *(double *)&_XMM0);
cv::_OutputArray::~_OutputArray((cv::_OutputArray *)v17);
cv::_InputArray::~_InputArray((cv::_InputArray *)v18);
}
std::vector<cv::Mat>::push_back(a1, v19);
cv::Mat::~Mat((cv::Mat *)v19);
cv::Mat::~Mat((cv::Mat *)v20);
}
v23 = 1;
std::vector<long>::~vector(v28);
Ort::TensorTypeAndShapeInfo::~TensorTypeAndShapeInfo((Ort::TensorTypeAndShapeInfo *)v29);
return a1;
}
|
postprocessBatch:
SUB RSP,0x1f8
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x1f0],RDI
MOV qword ptr [RSP + 0x1e8],RSI
MOV qword ptr [RSP + 0x1e0],RDX
MOV qword ptr [RSP + 0x1d8],RCX
MOV RDI,qword ptr [RSP + 0x1d8]
CALL 0x0012d870
MOV qword ptr [RSP + 0x1d0],RAX
MOV RSI,qword ptr [RSP + 0x1d8]
LEA RDI,[RSP + 0x1c8]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x0012d8b0
MOV RSI,qword ptr [RSP + 0x28]
LAB_001254e8:
LEA RDI,[RSP + 0x1b0]
CALL 0x0012d920
LAB_001254f5:
JMP 0x001254f7
LAB_001254f7:
LEA RDI,[RSP + 0x1b0]
CALL 0x0012c950
CMP RAX,0x3
JC 0x00125525
LEA RDI,[RSP + 0x1b0]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0012c970
CMP qword ptr [RAX],0x0
JG 0x001255ba
LAB_00125525:
MOV EDI,0x10
CALL 0x00123230
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
LAB_0012553a:
LEA RSI,[0x140186]
CALL 0x00123060
JMP 0x00125548
LAB_00125548:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [0x0014dfb0]
MOV RDX,qword ptr [0x0014dff8]
CALL 0x00123420
LAB_001255ba:
XOR EAX,EAX
MOV ESI,EAX
LEA RDI,[RSP + 0x1b0]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0012c970
MOV RDI,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x1a0],EAX
MOV ESI,0x1
CALL 0x0012c970
MOV RDI,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x19c],EAX
MOV ESI,0x2
CALL 0x0012c970
MOV RDI,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x198],EAX
MOV EAX,dword ptr [RSP + 0x19c]
MOV ECX,dword ptr [RSP + 0x198]
IMUL EAX,ECX
CDQE
MOV qword ptr [RSP + 0x190],RAX
MOV byte ptr [RSP + 0x18f],0x0
CALL 0x0012d140
MOV RDI,qword ptr [RSP + 0x18]
MOVSXD RSI,dword ptr [RSP + 0x1a0]
LAB_00125643:
CALL 0x0012d5b0
JMP 0x0012564a
LAB_0012564a:
MOV dword ptr [RSP + 0x188],0x0
LAB_00125655:
MOV EAX,dword ptr [RSP + 0x188]
CMP EAX,dword ptr [RSP + 0x1a0]
JGE 0x001258c9
MOV ESI,dword ptr [RSP + 0x19c]
MOV EDX,dword ptr [RSP + 0x198]
LEA RDI,[RSP + 0x128]
MOV ECX,0x5
CALL 0x001235c0
LAB_00125689:
JMP 0x0012568b
LAB_0012568b:
MOV RDI,qword ptr [RSP + 0x138]
MOV RSI,qword ptr [RSP + 0x1d0]
MOVSXD RAX,dword ptr [RSP + 0x188]
IMUL RAX,qword ptr [RSP + 0x190]
SHL RAX,0x2
ADD RSI,RAX
MOV RDX,qword ptr [RSP + 0x190]
SHL RDX,0x2
CALL 0x00123530
LEA RDI,[RSP + 0xc8]
CALL 0x00123070
MOVSXD RAX,dword ptr [RSP + 0x188]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x1e0]
CALL 0x0012da60
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
CMP RAX,RCX
JNC 0x00125815
LAB_001256fa:
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x128]
CALL 0x0012d150
JMP 0x00125711
LAB_00125711:
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0xc8]
CALL 0x0012d0d0
JMP 0x00125728
LAB_00125728:
MOV RDI,qword ptr [RSP + 0x1e0]
MOVSXD RSI,dword ptr [RSP + 0x188]
CALL 0x0012da80
MOV RSI,RAX
LAB_00125740:
LEA RDI,[RSP + 0x90]
CALL 0x0012cf10
JMP 0x0012574f
LAB_0012574f:
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x98]
LEA RDX,[RSP + 0x90]
VPXOR XMM1,XMM1,XMM1
MOV ECX,0x1
VMOVAPS XMM0,XMM1
CALL 0x001236a0
JMP 0x0012577b
LAB_0012577b:
LEA RDI,[RSP + 0x98]
CALL 0x0012d130
LEA RDI,[RSP + 0xb0]
CALL 0x0012d1d0
JMP 0x00125869
LAB_00125815:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x128]
CALL 0x00123180
JMP 0x00125829
LAB_00125829:
LEA RDI,[RSP + 0xc8]
LEA RSI,[RSP + 0x30]
CALL 0x00123090
JMP 0x0012583d
LAB_0012583d:
LEA RDI,[RSP + 0x30]
CALL 0x001230a0
JMP 0x00125869
LAB_00125869:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0xc8]
CALL 0x0012d7a0
LAB_0012587b:
JMP 0x0012587d
LAB_0012587d:
LEA RDI,[RSP + 0xc8]
CALL 0x001230a0
LEA RDI,[RSP + 0x128]
CALL 0x001230a0
MOV EAX,dword ptr [RSP + 0x188]
ADD EAX,0x1
MOV dword ptr [RSP + 0x188],EAX
JMP 0x00125655
LAB_001258c9:
MOV byte ptr [RSP + 0x18f],0x1
TEST byte ptr [RSP + 0x18f],0x1
JNZ 0x001258e5
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0012d3d0
LAB_001258e5:
LEA RDI,[RSP + 0x1b0]
CALL 0x0012ccf0
LEA RDI,[RSP + 0x1c8]
CALL 0x0012da50
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x1f8
RET
|
/* WARNING: Removing unreachable block (ram,0x001258db) */
/* DepthAnything::postprocessBatch(std::vector<cv::Size_<int>, std::allocator<cv::Size_<int> > >
const&, Ort::Value const&) */
vector * DepthAnything::postprocessBatch(vector *param_1,Value *param_2)
{
ulong uVar1;
long *plVar2;
runtime_error *this;
int *piVar3;
ulong uVar4;
Size_ *pSVar5;
ConstValueImpl<OrtValue> *in_RCX;
vector<cv::Size_<int>,std::allocator<cv::Size_<int>>> *in_RDX;
Mat local_1c8 [96];
Size_<int> local_168 [8];
_OutputArray local_160 [24];
_InputArray local_148 [24];
Mat local_130 [96];
Mat local_d0 [16];
void *local_c0;
int local_70;
int1 local_69;
long local_68;
int local_60;
int local_5c;
int local_58;
vector<long,std::allocator<long>> local_48 [24];
TensorTypeAndShapeInfo local_30 [8];
float *local_28;
vector<cv::Size_<int>,std::allocator<cv::Size_<int>>> *local_18;
Value *local_10;
vector *local_8;
local_18 = in_RDX;
local_10 = param_2;
local_8 = param_1;
local_28 = Ort::detail::ConstValueImpl<OrtValue>::GetTensorData<float>(in_RCX);
Ort::detail::ConstValueImpl<OrtValue>::GetTensorTypeAndShapeInfo();
/* try { // try from 001254e8 to 001254f4 has its CatchHandler @ 00125565 */
Ort::detail::TensorTypeAndShapeInfoImpl<OrtTensorTypeAndShapeInfo>::GetShape();
uVar1 = std::vector<long,std::allocator<long>>::size(local_48);
if ((2 < uVar1) &&
(plVar2 = (long *)std::vector<long,std::allocator<long>>::operator[](local_48,0), 0 < *plVar2))
{
piVar3 = (int *)std::vector<long,std::allocator<long>>::operator[](local_48,0);
local_58 = *piVar3;
piVar3 = (int *)std::vector<long,std::allocator<long>>::operator[](local_48,1);
local_5c = *piVar3;
piVar3 = (int *)std::vector<long,std::allocator<long>>::operator[](local_48,2);
local_60 = *piVar3;
local_68 = (long)(local_5c * local_60);
local_69 = 0;
std::vector<cv::Mat,std::allocator<cv::Mat>>::vector
((vector<cv::Mat,std::allocator<cv::Mat>> *)param_1);
/* try { // try from 00125643 to 00125688 has its CatchHandler @ 0012579a */
std::vector<cv::Mat,std::allocator<cv::Mat>>::reserve
((vector<cv::Mat,std::allocator<cv::Mat>> *)param_1,(long)local_58);
for (local_70 = 0; local_70 < local_58; local_70 = local_70 + 1) {
cv::Mat::Mat(local_d0,local_5c,local_60,5);
memcpy(local_c0,local_28 + local_70 * local_68,local_68 << 2);
cv::Mat::Mat(local_130);
uVar1 = (ulong)local_70;
uVar4 = std::vector<cv::Size_<int>,std::allocator<cv::Size_<int>>>::size(local_18);
if (uVar1 < uVar4) {
/* try { // try from 001256fa to 0012570e has its CatchHandler @ 001257b3 */
cv::_InputArray::_InputArray(local_148,local_d0);
/* try { // try from 00125711 to 00125725 has its CatchHandler @ 001257cc */
cv::_OutputArray::_OutputArray(local_160,local_130);
pSVar5 = (Size_ *)std::vector<cv::Size_<int>,std::allocator<cv::Size_<int>>>::operator[]
(local_18,(long)local_70);
/* try { // try from 00125740 to 00125778 has its CatchHandler @ 001257e2 */
cv::Size_<int>::Size_(local_168,pSVar5);
cv::resize(0,local_148,local_160,local_168,1);
cv::_OutputArray::~_OutputArray(local_160);
cv::_InputArray::~_InputArray(local_148);
}
else {
/* try { // try from 00125815 to 00125826 has its CatchHandler @ 001257b3 */
cv::Mat::clone();
/* try { // try from 00125829 to 0012583a has its CatchHandler @ 00125849 */
cv::Mat::operator=(local_130,local_1c8);
cv::Mat::~Mat(local_1c8);
}
/* try { // try from 00125869 to 0012587a has its CatchHandler @ 001257b3 */
std::vector<cv::Mat,std::allocator<cv::Mat>>::push_back
((vector<cv::Mat,std::allocator<cv::Mat>> *)param_1,local_130);
cv::Mat::~Mat(local_130);
cv::Mat::~Mat(local_d0);
}
local_69 = 1;
std::vector<long,std::allocator<long>>::~vector(local_48);
Ort::TensorTypeAndShapeInfo::~TensorTypeAndShapeInfo(local_30);
return param_1;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0012553a to 00125545 has its CatchHandler @ 0012557e */
std::runtime_error::runtime_error(this,"Invalid output tensor shape for batch processing.");
/* try { // try from 00125548 to 0012555f has its CatchHandler @ 001255a1 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0014dfb0,PTR__runtime_error_0014dff8);
}
|
|
10,076 |
sp_get_polygon_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_linear_rings;
uint n_points;
n_linear_rings = uint4korr((*wkb));
(*wkb) += 4;
for (; n_linear_rings > 0; --n_linear_rings)
{
n_points = uint4korr((*wkb));
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
}
return 0;
}
|
O3
|
c
|
sp_get_polygon_mbr:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl (%rcx), %eax
addq $0x4, %rcx
movq %rcx, (%rdi)
testl %eax, %eax
je 0x62d30
addq $-0x8, %rsi
movq (%rdi), %r8
movl (%r8), %ecx
addq $0x4, %r8
movq %r8, (%rdi)
testl %ecx, %ecx
je 0x62d2c
movb $0x1, %r8b
xorl %r9d, %r9d
movq (%rdi), %r10
cmpq %rsi, %r10
ja 0x62d34
movsd (%r10), %xmm0
addq $0x8, %r10
movq %r10, (%rdi)
movsd (%rdx,%r9), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x62d03
movsd %xmm0, (%rdx,%r9)
ucomisd 0x8(%rdx,%r9), %xmm0
jbe 0x62d16
orq $0x8, %r9
movsd %xmm0, (%rdx,%r9)
movl $0x10, %r9d
testb $0x1, %r8b
movl $0x0, %r8d
jne 0x62cdd
decl %ecx
jne 0x62cd7
decl %eax
jne 0x62cc6
xorl %eax, %eax
jmp 0x62d39
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbp
retq
nop
|
sp_get_polygon_mbr:
push rbp
mov rbp, rsp
mov rcx, [rdi]
mov eax, [rcx]
add rcx, 4
mov [rdi], rcx
test eax, eax
jz short loc_62D30
add rsi, 0FFFFFFFFFFFFFFF8h
loc_62CC6:
mov r8, [rdi]
mov ecx, [r8]
add r8, 4
mov [rdi], r8
test ecx, ecx
jz short loc_62D2C
loc_62CD7:
mov r8b, 1
xor r9d, r9d
loc_62CDD:
mov r10, [rdi]
cmp r10, rsi
ja short loc_62D34
movsd xmm0, qword ptr [r10]
add r10, 8
mov [rdi], r10
movsd xmm1, qword ptr [rdx+r9]
ucomisd xmm1, xmm0
jbe short loc_62D03
movsd qword ptr [rdx+r9], xmm0
loc_62D03:
ucomisd xmm0, qword ptr [rdx+r9+8]
jbe short loc_62D16
or r9, 8
movsd qword ptr [rdx+r9], xmm0
loc_62D16:
mov r9d, 10h
test r8b, 1
mov r8d, 0
jnz short loc_62CDD
dec ecx
jnz short loc_62CD7
loc_62D2C:
dec eax
jnz short loc_62CC6
loc_62D30:
xor eax, eax
jmp short loc_62D39
loc_62D34:
mov eax, 0FFFFFFFFh
loc_62D39:
pop rbp
retn
|
long long sp_get_polygon_mbr(double **a1, long long a2, long long a3)
{
int v3; // eax
unsigned long long v4; // rsi
int v5; // ecx
char v6; // r8
long long v7; // r9
double *v8; // r10
double v9; // xmm0_8
bool v10; // zf
v3 = *(_DWORD *)*a1;
*a1 = (double *)((char *)*a1 + 4);
if ( v3 )
{
v4 = a2 - 8;
do
{
v5 = *(_DWORD *)*a1;
*a1 = (double *)((char *)*a1 + 4);
if ( v5 )
{
while ( 2 )
{
v6 = 1;
v7 = 0LL;
do
{
v8 = *a1;
if ( (unsigned long long)*a1 > v4 )
return 0xFFFFFFFFLL;
v9 = *v8;
*a1 = v8 + 1;
if ( *(double *)(a3 + v7) > v9 )
*(double *)(a3 + v7) = v9;
if ( v9 > *(double *)(a3 + v7 + 8) )
*(double *)(a3 + (v7 | 8)) = v9;
v7 = 16LL;
v10 = (v6 & 1) == 0;
v6 = 0;
}
while ( !v10 );
if ( --v5 )
continue;
break;
}
}
--v3;
}
while ( v3 );
}
return 0LL;
}
|
sp_get_polygon_mbr:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI]
MOV EAX,dword ptr [RCX]
ADD RCX,0x4
MOV qword ptr [RDI],RCX
TEST EAX,EAX
JZ 0x00162d30
ADD RSI,-0x8
LAB_00162cc6:
MOV R8,qword ptr [RDI]
MOV ECX,dword ptr [R8]
ADD R8,0x4
MOV qword ptr [RDI],R8
TEST ECX,ECX
JZ 0x00162d2c
LAB_00162cd7:
MOV R8B,0x1
XOR R9D,R9D
LAB_00162cdd:
MOV R10,qword ptr [RDI]
CMP R10,RSI
JA 0x00162d34
MOVSD XMM0,qword ptr [R10]
ADD R10,0x8
MOV qword ptr [RDI],R10
MOVSD XMM1,qword ptr [RDX + R9*0x1]
UCOMISD XMM1,XMM0
JBE 0x00162d03
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_00162d03:
UCOMISD XMM0,qword ptr [RDX + R9*0x1 + 0x8]
JBE 0x00162d16
OR R9,0x8
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_00162d16:
MOV R9D,0x10
TEST R8B,0x1
MOV R8D,0x0
JNZ 0x00162cdd
DEC ECX
JNZ 0x00162cd7
LAB_00162d2c:
DEC EAX
JNZ 0x00162cc6
LAB_00162d30:
XOR EAX,EAX
JMP 0x00162d39
LAB_00162d34:
MOV EAX,0xffffffff
LAB_00162d39:
POP RBP
RET
|
int8 sp_get_polygon_mbr(int8 *param_1,long param_2,long param_3)
{
double dVar1;
double *pdVar2;
bool bVar3;
int iVar4;
int iVar5;
bool bVar6;
ulong uVar7;
iVar4 = *(int *)*param_1;
*param_1 = (int *)*param_1 + 1;
if (iVar4 != 0) {
do {
iVar5 = *(int *)*param_1;
*param_1 = (int *)*param_1 + 1;
for (; iVar5 != 0; iVar5 = iVar5 + -1) {
uVar7 = 0;
bVar3 = true;
do {
bVar6 = bVar3;
pdVar2 = (double *)*param_1;
if ((double *)(param_2 + -8) < pdVar2) {
return 0xffffffff;
}
dVar1 = *pdVar2;
*param_1 = pdVar2 + 1;
if (dVar1 < *(double *)(param_3 + uVar7)) {
*(double *)(param_3 + uVar7) = dVar1;
}
pdVar2 = (double *)(param_3 + 8 + uVar7);
if (*pdVar2 <= dVar1 && dVar1 != *pdVar2) {
*(double *)(param_3 + (uVar7 | 8)) = dVar1;
}
uVar7 = 0x10;
bVar3 = false;
} while (bVar6);
}
iVar4 = iVar4 + -1;
} while (iVar4 != 0);
}
return 0;
}
|
|
10,077 |
bf_set
|
bluesky950520[P]quickjs/libbf.c
|
int bf_set(bf_t *r, const bf_t *a)
{
if (r == a)
return 0;
if (bf_resize(r, a->len)) {
bf_set_nan(r);
return BF_ST_MEM_ERROR;
}
r->sign = a->sign;
r->expn = a->expn;
if (a->len > 0)
memcpy(r->tab, a->tab, a->len * sizeof(limb_t));
return 0;
}
|
O1
|
c
|
bf_set:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebp, %ebp
cmpq %rsi, %rdi
je 0x840fe
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %rsi
callq 0x83e5c
testl %eax, %eax
je 0x840d5
cmpq $0x0, 0x18(%rbx)
je 0x840b9
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %ebp
jmp 0x840fe
movl 0x8(%r14), %eax
movl %eax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x840fe
movq 0x20(%rbx), %rdi
movq 0x20(%r14), %rsi
shlq $0x3, %rdx
callq 0xe5a0
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
bf_set:
push rbp
push r14
push rbx
xor ebp, ebp
cmp rdi, rsi
jz short loc_840FE
mov r14, rsi
mov rbx, rdi
mov rsi, [rsi+18h]
call bf_resize
test eax, eax
jz short loc_840D5
cmp qword ptr [rbx+18h], 0
jz short loc_840B9
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_840B9:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov ebp, 20h ; ' '
jmp short loc_840FE
loc_840D5:
mov eax, [r14+8]
mov [rbx+8], eax
mov rax, [r14+10h]
mov [rbx+10h], rax
mov rdx, [r14+18h]
test rdx, rdx
jz short loc_840FE
mov rdi, [rbx+20h]
mov rsi, [r14+20h]
shl rdx, 3
call _memcpy
loc_840FE:
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
|
long long bf_set(_QWORD *a1, long long a2)
{
unsigned int v2; // ebp
long long v3; // rdx
v2 = 0;
if ( a1 != (_QWORD *)a2 )
{
if ( (unsigned int)bf_resize((long long)a1, *(_QWORD *)(a2 + 24)) )
{
if ( a1[3] )
{
a1[4] = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*a1 + 8LL))(*(_QWORD *)*a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 32;
}
else
{
*((_DWORD *)a1 + 2) = *(_DWORD *)(a2 + 8);
a1[2] = *(_QWORD *)(a2 + 16);
v3 = *(_QWORD *)(a2 + 24);
if ( v3 )
memcpy(a1[4], *(_QWORD *)(a2 + 32), 8 * v3);
}
}
return v2;
}
|
bf_set:
PUSH RBP
PUSH R14
PUSH RBX
XOR EBP,EBP
CMP RDI,RSI
JZ 0x001840fe
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RSI + 0x18]
CALL 0x00183e5c
TEST EAX,EAX
JZ 0x001840d5
CMP qword ptr [RBX + 0x18],0x0
JZ 0x001840b9
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_001840b9:
MOV RAX,0x7fffffffffffffff
MOV qword ptr [RBX + 0x10],RAX
MOV dword ptr [RBX + 0x8],0x0
MOV EBP,0x20
JMP 0x001840fe
LAB_001840d5:
MOV EAX,dword ptr [R14 + 0x8]
MOV dword ptr [RBX + 0x8],EAX
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x10],RAX
MOV RDX,qword ptr [R14 + 0x18]
TEST RDX,RDX
JZ 0x001840fe
MOV RDI,qword ptr [RBX + 0x20]
MOV RSI,qword ptr [R14 + 0x20]
SHL RDX,0x3
CALL 0x0010e5a0
LAB_001840fe:
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
|
int8 bf_set(long *param_1,long *param_2)
{
int iVar1;
long lVar2;
int8 uVar3;
uVar3 = 0;
if (param_1 != param_2) {
iVar1 = bf_resize(param_1,param_2[3]);
if (iVar1 == 0) {
*(int *)(param_1 + 1) = (int)param_2[1];
param_1[2] = param_2[2];
if (param_2[3] != 0) {
memcpy((void *)param_1[4],(void *)param_2[4],param_2[3] << 3);
}
}
else {
if (param_1[3] != 0) {
lVar2 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar2;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
uVar3 = 0x20;
}
}
return uVar3;
}
|
|
10,078 |
check_mb_gb18030_valid
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
static unsigned int check_mb_gb18030_valid(const char * start, const char * end)
{
if (end - start <= 1 || !is_gb18030_odd(start[0])) {
return 0;
}
if (is_gb18030_even_2(start[1])) {
return 2;
} else if (end - start > 3 && is_gb18030_even_4(start[1]) && is_gb18030_odd(start[2]) && is_gb18030_even_4(start[3])) {
return 4;
}
return 0;
}
|
O3
|
c
|
check_mb_gb18030_valid:
pushq %rbp
movq %rsp, %rbp
subq %rdi, %rsi
xorl %eax, %eax
cmpq $0x2, %rsi
jl 0x33180
movb (%rdi), %cl
incb %cl
cmpb $-0x7e, %cl
jb 0x33180
movb 0x1(%rdi), %cl
leal -0x7f(%rcx), %eax
cmpb $-0x3f, %al
setae %dl
cmpb $-0x1, %cl
setl %r8b
movl $0x2, %eax
orb %dl, %r8b
jne 0x33180
cmpq $0x4, %rsi
setb %al
addb $-0x30, %cl
cmpb $0xa, %cl
setae %cl
orb %al, %cl
jne 0x3317e
movb 0x2(%rdi), %al
incb %al
cmpb $-0x7e, %al
jb 0x3317e
movb 0x3(%rdi), %cl
addb $-0x30, %cl
movl $0x4, %eax
cmpb $0xa, %cl
jb 0x33180
xorl %eax, %eax
popq %rbp
retq
|
check_mb_gb18030_valid:
push rbp
mov rbp, rsp
sub rsi, rdi
xor eax, eax
cmp rsi, 2
jl short loc_33180
mov cl, [rdi]
inc cl
cmp cl, 82h
jb short loc_33180
mov cl, [rdi+1]
lea eax, [rcx-7Fh]
cmp al, 0C1h
setnb dl
cmp cl, 0FFh
setl r8b
mov eax, 2
or r8b, dl
jnz short loc_33180
cmp rsi, 4
setb al
add cl, 0D0h
cmp cl, 0Ah
setnb cl
or cl, al
jnz short loc_3317E
mov al, [rdi+2]
inc al
cmp al, 82h
jb short loc_3317E
mov cl, [rdi+3]
add cl, 0D0h
mov eax, 4
cmp cl, 0Ah
jb short loc_33180
loc_3317E:
xor eax, eax
loc_33180:
pop rbp
retn
|
long long check_mb_gb18030_valid(_BYTE *a1, long long a2)
{
long long v2; // rsi
long long result; // rax
char v4; // cl
v2 = a2 - (_QWORD)a1;
result = 0LL;
if ( v2 >= 2 && (unsigned __int8)(*a1 + 1) >= 0x82u )
{
v4 = a1[1];
result = 2LL;
if ( (unsigned __int8)(v4 - 127) < 0xC1u && v4 >= -1 )
{
if ( (unsigned long long)v2 < 4 || (unsigned __int8)(v4 - 48) >= 0xAu )
return 0LL;
if ( (unsigned __int8)(a1[2] + 1) < 0x82u )
return 0LL;
result = 4LL;
if ( (unsigned __int8)(a1[3] - 48) >= 0xAu )
return 0LL;
}
}
return result;
}
|
check_mb_gb18030_valid:
PUSH RBP
MOV RBP,RSP
SUB RSI,RDI
XOR EAX,EAX
CMP RSI,0x2
JL 0x00133180
MOV CL,byte ptr [RDI]
INC CL
CMP CL,0x82
JC 0x00133180
MOV CL,byte ptr [RDI + 0x1]
LEA EAX,[RCX + -0x7f]
CMP AL,0xc1
SETNC DL
CMP CL,0xff
SETL R8B
MOV EAX,0x2
OR R8B,DL
JNZ 0x00133180
CMP RSI,0x4
SETC AL
ADD CL,0xd0
CMP CL,0xa
SETNC CL
OR CL,AL
JNZ 0x0013317e
MOV AL,byte ptr [RDI + 0x2]
INC AL
CMP AL,0x82
JC 0x0013317e
MOV CL,byte ptr [RDI + 0x3]
ADD CL,0xd0
MOV EAX,0x4
CMP CL,0xa
JC 0x00133180
LAB_0013317e:
XOR EAX,EAX
LAB_00133180:
POP RBP
RET
|
int8 check_mb_gb18030_valid(char *param_1,long param_2)
{
char cVar1;
int8 uVar2;
uVar2 = 0;
if ((1 < param_2 - (long)param_1) && (0x81 < (byte)(*param_1 + 1U))) {
cVar1 = param_1[1];
uVar2 = 2;
if ((-2 < cVar1 && (byte)(cVar1 + 0x81U) < 0xc1) &&
(((9 < (byte)(cVar1 - 0x30U) || (ulong)(param_2 - (long)param_1) < 4 ||
((byte)(param_1[2] + 1U) < 0x82)) || (uVar2 = 4, 9 < (byte)(param_1[3] - 0x30U))))) {
uVar2 = 0;
}
}
return uVar2;
}
|
|
10,079 |
my_instr_bin
|
eloqsql/strings/ctype-bin.c
|
static
uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)),
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const uchar *str, *search, *end, *search_end;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
str= (const uchar*) b;
search= (const uchar*) s;
end= (const uchar*) b+b_length-s_length+1;
search_end= (const uchar*) s + s_length;
skip:
while (str != end)
{
if ( (*str++) == (*search))
{
register const uchar *i,*j;
i= str;
j= search+1;
while (j != search_end)
if ((*i++) != (*j++))
goto skip;
if (nmatch > 0)
{
match[0].beg= 0;
match[0].end= (uint) (str- (const uchar*)b-1);
match[0].mb_len= match[0].end;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= match[1].end-match[1].beg;
}
}
return 2;
}
}
}
return 0;
}
|
O3
|
c
|
my_instr_bin:
xorl %eax, %eax
cmpq %rdx, %r8
ja 0x2eb7a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movl 0x10(%rbp), %r10d
testq %r8, %r8
je 0x2eb45
addq %rsi, %rdx
subq %r8, %rdx
incq %rdx
movq %rsi, %rdi
cmpq %rdx, %rdi
je 0x2eb74
movq %rdi, %r11
incq %rdi
movb (%r11), %bl
cmpb (%rcx), %bl
jne 0x2eadc
movl $0x1, %ebx
cmpq %rbx, %r8
je 0x2eb0f
movb (%r11,%rbx), %r14b
leaq 0x1(%rbx), %r15
cmpb (%rcx,%rbx), %r14b
movq %r15, %rbx
je 0x2eaf7
jmp 0x2eadc
movl $0x2, %eax
testl %r10d, %r10d
je 0x2eb74
movl $0x0, (%r9)
notl %esi
addl %esi, %edi
movl %edi, 0x4(%r9)
movl %edi, 0x8(%r9)
cmpl $0x1, %r10d
je 0x2eb74
movl %edi, 0xc(%r9)
addl %r8d, %edi
movl $0x14, %ecx
movl $0x10, %edx
jmp 0x2eb65
testl %r10d, %r10d
je 0x2eb6f
movl $0x0, (%r9)
movl $0x1, %eax
movl $0x8, %ecx
xorl %edi, %edi
movl $0x4, %edx
xorl %r8d, %r8d
movl %edi, (%r9,%rdx)
movl %r8d, (%r9,%rcx)
jmp 0x2eb74
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
my_instr_bin:
xor eax, eax
cmp r8, rdx
ja locret_2EB7A
push rbp
mov rbp, rsp
push r15
push r14
push rbx
mov r10d, [rbp+10h]
test r8, r8
jz short loc_2EB45
add rdx, rsi
sub rdx, r8
inc rdx
mov rdi, rsi
loc_2EADC:
cmp rdi, rdx
jz loc_2EB74
mov r11, rdi
inc rdi
mov bl, [r11]
cmp bl, [rcx]
jnz short loc_2EADC
mov ebx, 1
loc_2EAF7:
cmp r8, rbx
jz short loc_2EB0F
mov r14b, [r11+rbx]
lea r15, [rbx+1]
cmp r14b, [rcx+rbx]
mov rbx, r15
jz short loc_2EAF7
jmp short loc_2EADC
loc_2EB0F:
mov eax, 2
test r10d, r10d
jz short loc_2EB74
mov dword ptr [r9], 0
not esi
add edi, esi
mov [r9+4], edi
mov [r9+8], edi
cmp r10d, 1
jz short loc_2EB74
mov [r9+0Ch], edi
add edi, r8d
mov ecx, 14h
mov edx, 10h
jmp short loc_2EB65
loc_2EB45:
test r10d, r10d
jz short loc_2EB6F
mov dword ptr [r9], 0
mov eax, 1
mov ecx, 8
xor edi, edi
mov edx, 4
xor r8d, r8d
loc_2EB65:
mov [r9+rdx], edi
mov [r9+rcx], r8d
jmp short loc_2EB74
loc_2EB6F:
mov eax, 1
loc_2EB74:
pop rbx
pop r14
pop r15
pop rbp
locret_2EB7A:
retn
|
long long my_instr_bin(
long long a1,
_BYTE *a2,
unsigned long long a3,
_BYTE *a4,
unsigned long long a5,
_DWORD *a6,
int a7)
{
long long result; // rax
long long v8; // rdx
_BYTE *v9; // rdi
_BYTE *v10; // r11
long long v11; // rbx
bool v12; // zf
int v13; // edi
int v14; // edi
long long v15; // rcx
long long v16; // rdx
result = 0LL;
if ( a5 <= a3 )
{
if ( a5 )
{
v8 = (long long)&a2[a3 - a5 + 1];
v9 = a2;
LABEL_4:
while ( v9 != (_BYTE *)v8 )
{
v10 = v9++;
if ( *v10 == *a4 )
{
v11 = 1LL;
while ( a5 != v11 )
{
v12 = v10[v11] == a4[v11];
++v11;
if ( !v12 )
goto LABEL_4;
}
result = 2LL;
if ( a7 )
{
*a6 = 0;
v13 = ~(_DWORD)a2 + (_DWORD)v9;
a6[1] = v13;
a6[2] = v13;
if ( a7 != 1 )
{
a6[3] = v13;
v14 = a5 + v13;
v15 = 5LL;
v16 = 4LL;
goto LABEL_15;
}
}
return result;
}
}
}
else if ( a7 )
{
*a6 = 0;
result = 1LL;
v15 = 2LL;
v14 = 0;
v16 = 1LL;
LODWORD(a5) = 0;
LABEL_15:
a6[v16] = v14;
a6[v15] = a5;
}
else
{
return 1LL;
}
}
return result;
}
|
my_instr_bin:
XOR EAX,EAX
CMP R8,RDX
JA 0x0012eb7a
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
MOV R10D,dword ptr [RBP + 0x10]
TEST R8,R8
JZ 0x0012eb45
ADD RDX,RSI
SUB RDX,R8
INC RDX
MOV RDI,RSI
LAB_0012eadc:
CMP RDI,RDX
JZ 0x0012eb74
MOV R11,RDI
INC RDI
MOV BL,byte ptr [R11]
CMP BL,byte ptr [RCX]
JNZ 0x0012eadc
MOV EBX,0x1
LAB_0012eaf7:
CMP R8,RBX
JZ 0x0012eb0f
MOV R14B,byte ptr [R11 + RBX*0x1]
LEA R15,[RBX + 0x1]
CMP R14B,byte ptr [RCX + RBX*0x1]
MOV RBX,R15
JZ 0x0012eaf7
JMP 0x0012eadc
LAB_0012eb0f:
MOV EAX,0x2
TEST R10D,R10D
JZ 0x0012eb74
MOV dword ptr [R9],0x0
NOT ESI
ADD EDI,ESI
MOV dword ptr [R9 + 0x4],EDI
MOV dword ptr [R9 + 0x8],EDI
CMP R10D,0x1
JZ 0x0012eb74
MOV dword ptr [R9 + 0xc],EDI
ADD EDI,R8D
MOV ECX,0x14
MOV EDX,0x10
JMP 0x0012eb65
LAB_0012eb45:
TEST R10D,R10D
JZ 0x0012eb6f
MOV dword ptr [R9],0x0
MOV EAX,0x1
MOV ECX,0x8
XOR EDI,EDI
MOV EDX,0x4
XOR R8D,R8D
LAB_0012eb65:
MOV dword ptr [R9 + RDX*0x1],EDI
MOV dword ptr [R9 + RCX*0x1],R8D
JMP 0x0012eb74
LAB_0012eb6f:
MOV EAX,0x1
LAB_0012eb74:
POP RBX
POP R14
POP R15
POP RBP
LAB_0012eb7a:
RET
|
int8
my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5,
int4 *param_6,int param_7)
{
char *pcVar1;
char *pcVar2;
int8 uVar3;
long lVar4;
long lVar5;
ulong uVar6;
int iVar7;
char *pcVar8;
char *pcVar9;
uVar3 = 0;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 == 0) {
uVar3 = 1;
}
else {
*param_6 = 0;
uVar3 = 1;
lVar4 = 8;
iVar7 = 0;
lVar5 = 4;
param_5 = 0;
LAB_0012eb65:
*(int *)((long)param_6 + lVar5) = iVar7;
*(int *)((long)param_6 + lVar4) = (int)param_5;
}
}
else {
pcVar9 = param_2;
while (pcVar8 = pcVar9, pcVar8 != param_2 + (param_3 - param_5) + 1) {
pcVar9 = pcVar8 + 1;
if (*pcVar8 == *param_4) {
uVar6 = 1;
do {
if (param_5 == uVar6) {
uVar3 = 2;
if (param_7 == 0) {
return 2;
}
*param_6 = 0;
iVar7 = (int)pcVar9 + ~(uint)param_2;
param_6[1] = iVar7;
param_6[2] = iVar7;
if (param_7 == 1) {
return 2;
}
param_6[3] = iVar7;
iVar7 = iVar7 + (int)param_5;
lVar4 = 0x14;
lVar5 = 0x10;
goto LAB_0012eb65;
}
pcVar1 = pcVar8 + uVar6;
pcVar2 = param_4 + uVar6;
uVar6 = uVar6 + 1;
} while (*pcVar1 == *pcVar2);
}
}
}
}
return uVar3;
}
|
|
10,080 |
ma_open
|
eloqsql/libmariadb/libmariadb/ma_io.c
|
MA_FILE *ma_open(const char *location, const char *mode, MYSQL *mysql)
{
int CodePage= -1;
FILE *fp= NULL;
MA_FILE *ma_file= NULL;
if (!location || !location[0])
return NULL;
#ifdef HAVE_REMOTEIO
if (strstr(location, "://"))
goto remote;
#endif
#ifdef _WIN32
if (mysql && mysql->charset)
CodePage= madb_get_windows_cp(mysql->charset->csname);
#endif
if (CodePage == -1)
{
if (!(fp= fopen(location, mode)))
{
return NULL;
}
}
#ifdef _WIN32
/* See CONC-44: we need to support non ascii filenames too, so we convert
current character set to wchar_t and try to open the file via _wsopen */
else
{
wchar_t *w_filename= NULL;
wchar_t *w_mode= NULL;
int len;
DWORD Length;
len= MultiByteToWideChar(CodePage, 0, location, (int)strlen(location), NULL, 0);
if (!len)
return NULL;
if (!(w_filename= (wchar_t *)calloc(1, (len + 1) * sizeof(wchar_t))))
{
my_set_error(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return NULL;
}
Length= len;
len= MultiByteToWideChar(CodePage, 0, location, (int)strlen(location), w_filename, (int)Length);
if (!len)
{
/* todo: error handling */
free(w_filename);
return NULL;
}
len= (int)strlen(mode);
if (!(w_mode= (wchar_t *)calloc(1, (len + 1) * sizeof(wchar_t))))
{
my_set_error(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
free(w_filename);
return NULL;
}
Length= len;
len= MultiByteToWideChar(CodePage, 0, mode, (int)strlen(mode), w_mode, (int)Length);
if (!len)
{
/* todo: error handling */
free(w_filename);
free(w_mode);
return NULL;
}
fp= _wfopen(w_filename, w_mode);
free(w_filename);
free(w_mode);
}
#endif
if (fp)
{
ma_file= (MA_FILE *)malloc(sizeof(MA_FILE));
if (!ma_file)
{
fclose(fp);
my_set_error(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return NULL;
}
ma_file->type= MA_FILE_LOCAL;
ma_file->ptr= (void *)fp;
}
return ma_file;
#ifdef HAVE_REMOTEIO
remote:
/* check if plugin for remote io is available and try
* to open location */
{
MYSQL mysql;
if (rio_plugin ||(rio_plugin= (struct st_mysql_client_plugin_REMOTEIO *)
mysql_client_find_plugin(&mysql, NULL, MARIADB_CLIENT_REMOTEIO_PLUGIN)))
return rio_plugin->methods->mopen(location, mode);
return NULL;
}
#endif
}
|
O0
|
c
|
ma_open:
pushq %rbp
movq %rsp, %rbp
subq $0x540, %rsp # imm = 0x540
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x510(%rbp)
movq %rsi, -0x518(%rbp)
movq %rdx, -0x520(%rbp)
movl $0xffffffff, -0x524(%rbp) # imm = 0xFFFFFFFF
movq $0x0, -0x530(%rbp)
movq $0x0, -0x538(%rbp)
cmpq $0x0, -0x510(%rbp)
je 0x336e3
movq -0x510(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x336f3
movq $0x0, -0x508(%rbp)
jmp 0x33844
movq -0x510(%rbp), %rdi
leaq 0x14ce6(%rip), %rsi # 0x483e7
callq 0x120f0
cmpq $0x0, %rax
je 0x33711
jmp 0x337dd
cmpl $-0x1, -0x524(%rbp)
jne 0x3374c
movq -0x510(%rbp), %rdi
movq -0x518(%rbp), %rsi
callq 0x124b0
movq %rax, -0x530(%rbp)
cmpq $0x0, %rax
jne 0x3374a
movq $0x0, -0x508(%rbp)
jmp 0x33844
jmp 0x3374c
cmpq $0x0, -0x530(%rbp)
je 0x337cd
movl $0x10, %edi
callq 0x12590
movq %rax, -0x538(%rbp)
cmpq $0x0, -0x538(%rbp)
jne 0x337ae
movq -0x530(%rbp), %rdi
callq 0x12400
movq -0x520(%rbp), %rdi
leaq 0x28655(%rip), %rax # 0x5bde0
movq (%rax), %rdx
movl $0x7d8, %esi # imm = 0x7D8
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x13270
movq $0x0, -0x508(%rbp)
jmp 0x33844
movq -0x538(%rbp), %rax
movl $0x1, (%rax)
movq -0x530(%rbp), %rcx
movq -0x538(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x538(%rbp), %rax
movq %rax, -0x508(%rbp)
jmp 0x33844
leaq 0x2a20c(%rip), %rax # 0x5d9f0
cmpq $0x0, (%rax)
jne 0x3380f
leaq -0x500(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x64, %edx
callq 0x334b0
leaq 0x2a1ea(%rip), %rcx # 0x5d9f0
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x33839
leaq 0x2a1da(%rip), %rax # 0x5d9f0
movq (%rax), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movq -0x510(%rbp), %rdi
movq -0x518(%rbp), %rsi
callq *%rax
movq %rax, -0x508(%rbp)
jmp 0x33844
movq $0x0, -0x508(%rbp)
movq -0x508(%rbp), %rax
movq %rax, -0x540(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x33874
movq -0x540(%rbp), %rax
addq $0x540, %rsp # imm = 0x540
popq %rbp
retq
callq 0x12490
nopl (%rax)
|
ma_open:
push rbp
mov rbp, rsp
sub rsp, 540h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_510], rdi
mov [rbp+var_518], rsi
mov [rbp+var_520], rdx
mov [rbp+var_524], 0FFFFFFFFh
mov [rbp+var_530], 0
mov [rbp+var_538], 0
cmp [rbp+var_510], 0
jz short loc_336E3
mov rax, [rbp+var_510]
cmp byte ptr [rax], 0
jnz short loc_336F3
loc_336E3:
mov [rbp+var_508], 0
jmp loc_33844
loc_336F3:
mov rdi, [rbp+var_510]
lea rsi, asc_483E7; "://"
call _strstr
cmp rax, 0
jz short loc_33711
jmp loc_337DD
loc_33711:
cmp [rbp+var_524], 0FFFFFFFFh
jnz short loc_3374C
mov rdi, [rbp+var_510]
mov rsi, [rbp+var_518]
call _fopen64
mov [rbp+var_530], rax
cmp rax, 0
jnz short loc_3374A
mov [rbp+var_508], 0
jmp loc_33844
loc_3374A:
jmp short $+2
loc_3374C:
cmp [rbp+var_530], 0
jz short loc_337CD
mov edi, 10h
call _malloc
mov [rbp+var_538], rax
cmp [rbp+var_538], 0
jnz short loc_337AE
mov rdi, [rbp+var_530]
call _fclose
mov rdi, [rbp+var_520]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D8h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
mov [rbp+var_508], 0
jmp loc_33844
loc_337AE:
mov rax, [rbp+var_538]
mov dword ptr [rax], 1
mov rcx, [rbp+var_530]
mov rax, [rbp+var_538]
mov [rax+8], rcx
loc_337CD:
mov rax, [rbp+var_538]
mov [rbp+var_508], rax
jmp short loc_33844
loc_337DD:
lea rax, rio_plugin
cmp qword ptr [rax], 0
jnz short loc_3380F
lea rdi, [rbp+var_500]
xor eax, eax
mov esi, eax
mov edx, 64h ; 'd'
call mysql_client_find_plugin
lea rcx, rio_plugin
mov [rcx], rax
cmp rax, 0
jz short loc_33839
loc_3380F:
lea rax, rio_plugin
mov rax, [rax]
mov rax, [rax+58h]
mov rax, [rax]
mov rdi, [rbp+var_510]
mov rsi, [rbp+var_518]
call rax
mov [rbp+var_508], rax
jmp short loc_33844
loc_33839:
mov [rbp+var_508], 0
loc_33844:
mov rax, [rbp+var_508]
mov [rbp+var_540], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_33874
mov rax, [rbp+var_540]
add rsp, 540h
pop rbp
retn
loc_33874:
call ___stack_chk_fail
|
long long ma_open(_BYTE *a1, long long a2, long long a3)
{
long long v4; // [rsp+8h] [rbp-538h]
long long v5; // [rsp+10h] [rbp-530h]
_BYTE v8[1272]; // [rsp+40h] [rbp-500h] BYREF
unsigned long long v9; // [rsp+538h] [rbp-8h]
v9 = __readfsqword(0x28u);
if ( !a1 || !*a1 )
return 0LL;
if ( strstr(a1, "://") )
{
if ( rio_plugin )
return (**(long long ( ***)(_BYTE *, long long))(rio_plugin + 88LL))(a1, a2);
rio_plugin = mysql_client_find_plugin((long long)v8, 0LL, 0x64u);
if ( rio_plugin )
return (**(long long ( ***)(_BYTE *, long long))(rio_plugin + 88LL))(a1, a2);
else
return 0LL;
}
else
{
v5 = fopen64(a1, a2);
if ( v5 )
{
v4 = malloc(16LL);
if ( v4 )
{
*(_DWORD *)v4 = 1;
*(_QWORD *)(v4 + 8) = v5;
return v4;
}
else
{
fclose(v5);
my_set_error(a3, 0x7D8u, (long long)SQLSTATE_UNKNOWN, 0LL);
return 0LL;
}
}
else
{
return 0LL;
}
}
}
|
ma_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x540
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x510],RDI
MOV qword ptr [RBP + -0x518],RSI
MOV qword ptr [RBP + -0x520],RDX
MOV dword ptr [RBP + -0x524],0xffffffff
MOV qword ptr [RBP + -0x530],0x0
MOV qword ptr [RBP + -0x538],0x0
CMP qword ptr [RBP + -0x510],0x0
JZ 0x001336e3
MOV RAX,qword ptr [RBP + -0x510]
CMP byte ptr [RAX],0x0
JNZ 0x001336f3
LAB_001336e3:
MOV qword ptr [RBP + -0x508],0x0
JMP 0x00133844
LAB_001336f3:
MOV RDI,qword ptr [RBP + -0x510]
LEA RSI,[0x1483e7]
CALL 0x001120f0
CMP RAX,0x0
JZ 0x00133711
JMP 0x001337dd
LAB_00133711:
CMP dword ptr [RBP + -0x524],-0x1
JNZ 0x0013374c
MOV RDI,qword ptr [RBP + -0x510]
MOV RSI,qword ptr [RBP + -0x518]
CALL 0x001124b0
MOV qword ptr [RBP + -0x530],RAX
CMP RAX,0x0
JNZ 0x0013374a
MOV qword ptr [RBP + -0x508],0x0
JMP 0x00133844
LAB_0013374a:
JMP 0x0013374c
LAB_0013374c:
CMP qword ptr [RBP + -0x530],0x0
JZ 0x001337cd
MOV EDI,0x10
CALL 0x00112590
MOV qword ptr [RBP + -0x538],RAX
CMP qword ptr [RBP + -0x538],0x0
JNZ 0x001337ae
MOV RDI,qword ptr [RBP + -0x530]
CALL 0x00112400
MOV RDI,qword ptr [RBP + -0x520]
LEA RAX,[0x15bde0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d8
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x00113270
MOV qword ptr [RBP + -0x508],0x0
JMP 0x00133844
LAB_001337ae:
MOV RAX,qword ptr [RBP + -0x538]
MOV dword ptr [RAX],0x1
MOV RCX,qword ptr [RBP + -0x530]
MOV RAX,qword ptr [RBP + -0x538]
MOV qword ptr [RAX + 0x8],RCX
LAB_001337cd:
MOV RAX,qword ptr [RBP + -0x538]
MOV qword ptr [RBP + -0x508],RAX
JMP 0x00133844
LAB_001337dd:
LEA RAX,[0x15d9f0]
CMP qword ptr [RAX],0x0
JNZ 0x0013380f
LEA RDI,[RBP + -0x500]
XOR EAX,EAX
MOV ESI,EAX
MOV EDX,0x64
CALL 0x001334b0
LEA RCX,[0x15d9f0]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x00133839
LAB_0013380f:
LEA RAX,[0x15d9f0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x510]
MOV RSI,qword ptr [RBP + -0x518]
CALL RAX
MOV qword ptr [RBP + -0x508],RAX
JMP 0x00133844
LAB_00133839:
MOV qword ptr [RBP + -0x508],0x0
LAB_00133844:
MOV RAX,qword ptr [RBP + -0x508]
MOV qword ptr [RBP + -0x540],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00133874
MOV RAX,qword ptr [RBP + -0x540]
ADD RSP,0x540
POP RBP
RET
LAB_00133874:
CALL 0x00112490
|
int4 * ma_open(char *param_1,char *param_2,int8 param_3)
{
char *pcVar1;
FILE *__stream;
long in_FS_OFFSET;
int4 *local_540;
int4 *local_510;
int1 local_508 [1272];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_540 = (int4 *)0x0;
if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {
local_510 = (int4 *)0x0;
}
else {
pcVar1 = strstr(param_1,"://");
if (pcVar1 == (char *)0x0) {
__stream = fopen64(param_1,param_2);
if (__stream == (FILE *)0x0) {
local_510 = (int4 *)0x0;
}
else {
if (__stream != (FILE *)0x0) {
local_540 = (int4 *)malloc(0x10);
if (local_540 == (int4 *)0x0) {
fclose(__stream);
my_set_error(param_3,0x7d8,SQLSTATE_UNKNOWN,0);
local_510 = (int4 *)0x0;
goto LAB_00133844;
}
*local_540 = 1;
*(FILE **)(local_540 + 2) = __stream;
}
local_510 = local_540;
}
}
else if ((rio_plugin == 0) &&
(rio_plugin = mysql_client_find_plugin(local_508,0,100), rio_plugin == 0)) {
local_510 = (int4 *)0x0;
}
else {
local_510 = (int4 *)(*(code *)**(int8 **)(rio_plugin + 0x58))(param_1,param_2);
}
}
LAB_00133844:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_510;
}
|
|
10,081 |
compile_shader(char const*, char const*, unsigned int)
|
untodesu[P]voxelius/game/client/program.cc
|
static GLuint compile_shader(const char *path, const char *source, GLenum shader_stage)
{
GLuint shader = glCreateShader(shader_stage);
glShaderSource(shader, 1, &source, nullptr);
glCompileShader(shader);
GLint info_log_length;
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &info_log_length);
if(info_log_length >= 2) {
std::basic_string<GLchar> info_log;
info_log.resize(info_log_length);
glGetShaderInfoLog(shader, info_log_length, nullptr, info_log.data());
spdlog::info("gl_program: {}: shader information:", path);
spdlog::info(info_log);
}
GLint compile_status;
glGetShaderiv(shader, GL_COMPILE_STATUS, &compile_status);
if(!compile_status) {
glDeleteShader(shader);
return 0;
}
return shader;
}
|
O3
|
cpp
|
compile_shader(char const*, char const*, unsigned int):
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdi, 0x60(%rsp)
leaq 0x68(%rsp), %r14
movq %rsi, (%r14)
leaq 0x1fe65a(%rip), %rax # 0x25d658
movl %edx, %edi
callq *(%rax)
movl %eax, %ebx
leaq 0x1febc5(%rip), %rax # 0x25dbd0
movl %ebx, %edi
movl $0x1, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq *(%rax)
leaq 0x1fe5c8(%rip), %rax # 0x25d5e8
movl %ebx, %edi
callq *(%rax)
leaq 0x1fe955(%rip), %r15 # 0x25d980
leaq 0x1c(%rsp), %r14
movl %ebx, %edi
movl $0x8b84, %esi # imm = 0x8B84
movq %r14, %rdx
callq *(%r15)
movslq (%r14), %rsi
cmpq $0x2, %rsi
jl 0x5f11f
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x26230
leaq 0x1fe8fe(%rip), %rax # 0x25d970
movl 0x1c(%rsp), %esi
movq 0x40(%rsp), %rcx
movl %ebx, %edi
xorl %edx, %edx
callq *(%rax)
callq 0x15e96e
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x13a471(%rip), %rdx # 0x199522
leaq 0x60(%rsp), %r8
movl $0x23, %ecx
movq %rax, %rdi
movl $0x2, %esi
callq 0x4fdee
callq 0x15e96e
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x40(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rax, %rdi
movl $0x2, %esi
callq 0x2f194
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x5f11f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x268e0
leaq 0x40(%rsp), %r14
movl %ebx, %edi
movl $0x8b81, %esi # imm = 0x8B81
movq %r14, %rdx
callq *(%r15)
cmpl $0x0, (%r14)
jne 0x5f144
leaq 0x1fe572(%rip), %rax # 0x25d6b0
movl %ebx, %edi
callq *(%rax)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x5f16a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x268e0
movq %rbx, %rdi
callq 0x26ff0
|
_ZL14compile_shaderPKcS0_j:
push r15
push r14
push rbx
sub rsp, 70h
mov [rsp+88h+var_28], rdi
lea r14, [rsp+88h+var_20]
mov [r14], rsi
lea rax, glad_glCreateShader
mov edi, edx
call qword ptr [rax]
mov ebx, eax
lea rax, glad_glShaderSource
mov edi, ebx
mov esi, 1
mov rdx, r14
xor ecx, ecx
call qword ptr [rax]
lea rax, glad_glCompileShader
mov edi, ebx
call qword ptr [rax]
lea r15, glad_glGetShaderiv
lea r14, [rsp+88h+var_6C]
mov edi, ebx
mov esi, 8B84h
mov rdx, r14
call qword ptr [r15]
movsxd rsi, dword ptr [r14]
cmp rsi, 2
jl loc_5F11F
lea r14, [rsp+88h+var_38]
mov [r14-10h], r14
mov qword ptr [r14-8], 0
mov byte ptr [r14], 0
lea rdi, [rsp+88h+var_48]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
lea rax, glad_glGetShaderInfoLog
mov esi, [rsp+88h+var_6C]
mov rcx, [rsp+88h+var_48]
mov edi, ebx; this
xor edx, edx
call qword ptr [rax]
call _ZN6spdlog18default_logger_rawEv; spdlog::default_logger_raw(void)
xorps xmm0, xmm0
movaps [rsp+88h+var_68], xmm0
mov [rsp+88h+var_58], 0
mov rcx, [rsp+88h+var_58]
mov [rsp+88h+var_78], rcx
movaps xmm0, [rsp+88h+var_68]
movups [rsp+88h+var_88], xmm0
lea rdx, aGlProgramShade; "gl_program: {}: shader information:"
lea r8, [rsp+88h+var_28]
mov ecx, 23h ; '#'
mov rdi, rax; this
mov esi, 2
call _ZN6spdlog6logger4log_IJRPKcEEEvNS_10source_locENS_5level10level_enumEN3fmt3v1117basic_string_viewIcEEDpOT_; spdlog::logger::log_<char const*&>(spdlog::source_loc,spdlog::level::level_enum,fmt::v11::basic_string_view<char>,char const*&)
call _ZN6spdlog18default_logger_rawEv; spdlog::default_logger_raw(void)
xorps xmm0, xmm0
movaps [rsp+88h+var_68], xmm0
mov [rsp+88h+var_58], 0
mov rdx, [rsp+88h+var_48]
mov rcx, [rsp+88h+var_40]
mov rsi, [rsp+88h+var_58]
mov [rsp+88h+var_78], rsi
movaps xmm0, [rsp+88h+var_68]
movups [rsp+88h+var_88], xmm0
mov rdi, rax
mov esi, 2
call _ZN6spdlog6logger3logENS_10source_locENS_5level10level_enumEN3fmt3v1117basic_string_viewIcEE; spdlog::logger::log(spdlog::source_loc,spdlog::level::level_enum,fmt::v11::basic_string_view<char>)
mov rdi, [rsp+88h+var_48]; void *
cmp rdi, r14
jz short loc_5F11F
mov rsi, [rsp+88h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F11F:
lea r14, [rsp+88h+var_48]
mov edi, ebx
mov esi, 8B81h
mov rdx, r14
call qword ptr [r15]
cmp dword ptr [r14], 0
jnz short loc_5F144
lea rax, glad_glDeleteShader
mov edi, ebx
call qword ptr [rax]
xor ebx, ebx
loc_5F144:
mov eax, ebx
add rsp, 70h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_38]; void *
cmp rdi, r14
jz short loc_5F16A
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F16A:
mov rdi, rbx
call __Unwind_Resume
|
long long compile_shader(const char *a1, const char *a2, unsigned int a3)
{
long long Shader; // rbx
long long v4; // rax
spdlog *v5; // rdi
int v6; // r9d
long long v7; // rax
int v8; // r8d
int v9; // r9d
unsigned int v11; // [rsp+1Ch] [rbp-6Ch] BYREF
__int128 v12; // [rsp+20h] [rbp-68h]
long long v13; // [rsp+30h] [rbp-58h]
void *v14; // [rsp+40h] [rbp-48h] BYREF
long long v15; // [rsp+48h] [rbp-40h]
_QWORD v16[2]; // [rsp+50h] [rbp-38h] BYREF
const char *v17; // [rsp+60h] [rbp-28h] BYREF
const char *v18; // [rsp+68h] [rbp-20h] BYREF
v17 = a1;
v18 = a2;
Shader = (unsigned int)glad_glCreateShader(a3);
glad_glShaderSource(Shader, 1LL, &v18, 0LL);
glad_glCompileShader((unsigned int)Shader);
glad_glGetShaderiv((unsigned int)Shader, 35716LL, &v11);
if ( (int)v11 >= 2LL )
{
v14 = v16;
v15 = 0LL;
LOBYTE(v16[0]) = 0;
std::string::resize(&v14, (int)v11, 0LL);
glad_glGetShaderInfoLog((unsigned int)Shader, v11, 0LL, v14);
v4 = spdlog::default_logger_raw((spdlog *)(unsigned int)Shader);
v12 = 0LL;
v13 = 0LL;
v5 = (spdlog *)v4;
spdlog::logger::log_<char const*&>(
v4,
2,
(long long)"gl_program: {}: shader information:",
35LL,
&v17,
v6,
0LL,
0LL,
0LL);
v7 = spdlog::default_logger_raw(v5);
v12 = 0LL;
v13 = 0LL;
spdlog::logger::log(v7, 2, (int)v14, v15, v8, v9, 0LL, 0LL, 0LL);
if ( v14 != v16 )
operator delete(v14, v16[0] + 1LL);
}
glad_glGetShaderiv((unsigned int)Shader, 35713LL, &v14);
if ( !(_DWORD)v14 )
{
glad_glDeleteShader((unsigned int)Shader);
LODWORD(Shader) = 0;
}
return (unsigned int)Shader;
}
|
compile_shader:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV qword ptr [RSP + 0x60],RDI
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RSI
LEA RAX,[0x35d658]
MOV EDI,EDX
CALL qword ptr [RAX]
MOV EBX,EAX
LEA RAX,[0x35dbd0]
MOV EDI,EBX
MOV ESI,0x1
MOV RDX,R14
XOR ECX,ECX
CALL qword ptr [RAX]
LEA RAX,[0x35d5e8]
MOV EDI,EBX
CALL qword ptr [RAX]
LEA R15,[0x35d980]
LEA R14,[RSP + 0x1c]
MOV EDI,EBX
MOV ESI,0x8b84
MOV RDX,R14
CALL qword ptr [R15]
MOVSXD RSI,dword ptr [R14]
CMP RSI,0x2
JL 0x0015f11f
LEA R14,[RSP + 0x50]
MOV qword ptr [R14 + -0x10],R14
MOV qword ptr [R14 + -0x8],0x0
MOV byte ptr [R14],0x0
LAB_0015f05f:
LEA RDI,[RSP + 0x40]
XOR EDX,EDX
CALL 0x00126230
LEA RAX,[0x35d970]
MOV ESI,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x40]
MOV EDI,EBX
XOR EDX,EDX
CALL qword ptr [RAX]
CALL 0x0025e96e
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV qword ptr [RSP + 0x30],0x0
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RCX
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
LEA RDX,[0x299522]
LEA R8,[RSP + 0x60]
MOV ECX,0x23
MOV RDI,RAX
MOV ESI,0x2
CALL 0x0014fdee
CALL 0x0025e96e
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV qword ptr [RSP + 0x30],0x0
MOV RDX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RSI
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,RAX
MOV ESI,0x2
CALL 0x0012f194
LAB_0015f108:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,R14
JZ 0x0015f11f
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001268e0
LAB_0015f11f:
LEA R14,[RSP + 0x40]
MOV EDI,EBX
MOV ESI,0x8b81
MOV RDX,R14
CALL qword ptr [R15]
CMP dword ptr [R14],0x0
JNZ 0x0015f144
LEA RAX,[0x35d6b0]
MOV EDI,EBX
CALL qword ptr [RAX]
XOR EBX,EBX
LAB_0015f144:
MOV EAX,EBX
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
|
/* compile_shader(char const*, char const*, unsigned int) */
int4 compile_shader(char *param_1,char *param_2,uint param_3)
{
int4 uVar1;
int8 uVar2;
int8 in_R9;
int local_6c [9];
int1 *local_48;
int8 local_40;
int1 local_38;
int7 uStack_37;
char *local_28;
char *local_20;
local_28 = param_1;
local_20 = param_2;
uVar1 = (*glad_glCreateShader)(param_3);
(*glad_glShaderSource)(uVar1,1,&local_20,0);
(*glad_glCompileShader)(uVar1);
(*glad_glGetShaderiv)(uVar1,0x8b84,local_6c);
if (1 < local_6c[0]) {
local_40 = 0;
local_38 = 0;
/* try { // try from 0015f05f to 0015f107 has its CatchHandler @ 0015f150 */
local_48 = &local_38;
std::__cxx11::string::resize((ulong)&local_48,(char)local_6c[0]);
(*glad_glGetShaderInfoLog)(uVar1,local_6c[0],0,local_48);
uVar2 = spdlog::default_logger_raw();
local_6c[1] = 0;
local_6c[2] = 0;
local_6c[3] = 0;
local_6c[4] = 0;
local_6c[5] = 0;
local_6c[6] = 0;
spdlog::logger::log_<char_const*&>
(uVar2,2,"gl_program: {}: shader information:",0x23,&local_28,in_R9,0,0,0);
uVar2 = spdlog::default_logger_raw();
local_6c[1] = 0;
local_6c[2] = 0;
local_6c[3] = 0;
local_6c[4] = 0;
local_6c[5] = 0;
local_6c[6] = 0;
spdlog::logger::log(uVar2,2,local_48,local_40);
if (local_48 != &local_38) {
operator_delete(local_48,CONCAT71(uStack_37,local_38) + 1);
}
}
(*glad_glGetShaderiv)(uVar1,0x8b81,&local_48);
if ((int)local_48 == 0) {
(*glad_glDeleteShader)(uVar1);
uVar1 = 0;
}
return uVar1;
}
|
|
10,082 |
multadd
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc)
{
int i, wds;
ULong *x;
ULLong carry, y;
Bigint *b1;
wds= b->wds;
x= b->p.x;
i= 0;
carry= a;
do
{
y= *x * (ULLong)m + carry;
carry= y >> 32;
*x++= (ULong)(y & FFFFFFFF);
}
while (++i < wds);
if (carry)
{
if (wds >= b->maxwds)
{
b1= Balloc(b->k+1, alloc);
Bcopy(b1, b);
Bfree(b, alloc);
b= b1;
}
b->p.x[wds++]= (ULong) carry;
b->wds= wds;
}
return b;
}
|
O0
|
c
|
multadd:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movslq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movslq -0xc(%rbp), %rcx
imulq %rcx, %rax
addq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x30(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x38(%rbp), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x28(%rbp)
movl %ecx, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl -0x20(%rbp), %eax
jl 0x38f9a
cmpq $0x0, -0x30(%rbp)
je 0x3907b
movl -0x20(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jl 0x39053
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edi
addl $0x1, %edi
movq -0x18(%rbp), %rsi
callq 0x39090
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
addq $0x10, %rdi
movq -0x8(%rbp), %rsi
addq $0x10, %rsi
movq -0x8(%rbp), %rax
movslq 0x14(%rax), %rdx
shlq $0x2, %rdx
addq $0x8, %rdx
callq 0x13360
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x38b90
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x30(%rbp), %rax
movl %eax, %edx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x20(%rbp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x20(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
multadd:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_18], rcx
mov rax, [rbp+var_8]
mov eax, [rax+14h]
mov [rbp+var_20], eax
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_28], rax
mov [rbp+var_1C], 0
movsxd rax, [rbp+var_10]
mov [rbp+var_30], rax
loc_38F9A:
mov rax, [rbp+var_28]
mov eax, [rax]
movsxd rcx, [rbp+var_C]
imul rax, rcx
add rax, [rbp+var_30]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
shr rax, 20h
mov [rbp+var_30], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_38]
mov ecx, eax
mov rax, [rbp+var_28]
mov rdx, rax
add rdx, 4
mov [rbp+var_28], rdx
mov [rax], ecx
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
cmp eax, [rbp+var_20]
jl short loc_38F9A
cmp [rbp+var_30], 0
jz loc_3907B
mov eax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp eax, [rcx+0Ch]
jl short loc_39053
mov rax, [rbp+var_8]
mov edi, [rax+8]
add edi, 1
mov rsi, [rbp+var_18]
call Balloc
mov [rbp+var_40], rax
mov rdi, [rbp+var_40]
add rdi, 10h
mov rsi, [rbp+var_8]
add rsi, 10h
mov rax, [rbp+var_8]
movsxd rdx, dword ptr [rax+14h]
shl rdx, 2
add rdx, 8
call _memcpy
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
call Bfree
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_39053:
mov rax, [rbp+var_30]
mov edx, eax
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_20]
mov esi, ecx
add esi, 1
mov [rbp+var_20], esi
movsxd rcx, ecx
mov [rax+rcx*4], edx
mov ecx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax+14h], ecx
loc_3907B:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
unsigned long long multadd(unsigned long long a1, int a2, int a3, unsigned long long *a4)
{
unsigned int *v4; // rax
long long v6; // [rsp+0h] [rbp-40h]
unsigned long long v7; // [rsp+8h] [rbp-38h]
unsigned long long v8; // [rsp+10h] [rbp-30h]
unsigned int *v9; // [rsp+18h] [rbp-28h]
int v10; // [rsp+20h] [rbp-20h]
int v11; // [rsp+24h] [rbp-1Ch]
unsigned long long v13; // [rsp+38h] [rbp-8h]
v13 = a1;
v10 = *(_DWORD *)(a1 + 20);
v9 = *(unsigned int **)a1;
v11 = 0;
v8 = a3;
do
{
v7 = v8 + a2 * (unsigned long long)*v9;
v8 = HIDWORD(v7);
v4 = v9++;
*v4 = v7;
++v11;
}
while ( v11 < v10 );
if ( v8 )
{
if ( v10 >= *(_DWORD *)(a1 + 12) )
{
v6 = Balloc((unsigned int)(*(_DWORD *)(a1 + 8) + 1), a4);
memcpy(v6 + 16, a1 + 16, 4LL * *(int *)(a1 + 20) + 8);
Bfree(a1, a4);
v13 = v6;
}
*(_DWORD *)(*(_QWORD *)v13 + 4LL * v10) = HIDWORD(v7);
*(_DWORD *)(v13 + 20) = v10 + 1;
}
return v13;
}
|
multadd:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV qword ptr [RBP + -0x18],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV dword ptr [RBP + -0x1c],0x0
MOVSXD RAX,dword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
LAB_00138f9a:
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0xc]
IMUL RAX,RCX
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x20
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x38]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x28],RDX
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,dword ptr [RBP + -0x20]
JL 0x00138f9a
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0013907b
MOV EAX,dword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0xc]
JL 0x00139053
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x8]
ADD EDI,0x1
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00139090
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x10
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x10
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RDX,dword ptr [RAX + 0x14]
SHL RDX,0x2
ADD RDX,0x8
CALL 0x00113360
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00138b90
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_00139053:
MOV RAX,qword ptr [RBP + -0x30]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x20]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RBP + -0x20],ESI
MOVSXD RCX,ECX
MOV dword ptr [RAX + RCX*0x4],EDX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x14],ECX
LAB_0013907b:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
long * multadd(long *param_1,int param_2,int param_3,int8 param_4)
{
int iVar1;
ulong uVar2;
ulong local_38;
uint *local_30;
int local_24;
long *local_10;
iVar1 = *(int *)((long)param_1 + 0x14);
local_24 = 0;
local_38 = (ulong)param_3;
local_30 = (uint *)*param_1;
do {
uVar2 = (ulong)*local_30 * (long)param_2 + local_38;
local_38 = uVar2 >> 0x20;
*local_30 = (uint)uVar2;
local_24 = local_24 + 1;
local_30 = local_30 + 1;
} while (local_24 < iVar1);
local_10 = param_1;
if (local_38 != 0) {
if (*(int *)((long)param_1 + 0xc) <= iVar1) {
local_10 = (long *)Balloc((int)param_1[1] + 1,param_4);
memcpy(local_10 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8);
Bfree(param_1,param_4);
}
*(int *)(*local_10 + (long)iVar1 * 4) = (int)(uVar2 >> 0x20);
*(int *)((long)local_10 + 0x14) = iVar1 + 1;
}
return local_10;
}
|
|
10,083 |
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::get()
|
monkey531[P]llama/common/json.hpp
|
char_int_type get()
{
++position.chars_read_total;
++position.chars_read_current_line;
if (next_unget)
{
// just reset the next_unget variable and work with current
next_unget = false;
}
else
{
current = ia.get_character();
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
token_string.push_back(char_traits<char_type>::to_char_type(current));
}
if (current == '\n')
{
++position.lines_read;
position.chars_read_current_line = 0;
}
return current;
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::get():
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movdqu 0x20(%rdi), %xmm0
pcmpeqd %xmm1, %xmm1
psubq %xmm1, %xmm0
movdqu %xmm0, 0x20(%rdi)
cmpb $0x1, 0x18(%rdi)
jne 0x1c312
movb $0x0, 0x18(%rbx)
jmp 0x1c327
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
je 0x1c356
movzbl (%rcx), %eax
incq %rcx
movq %rcx, (%rbx)
movl %eax, 0x14(%rbx)
movl 0x14(%rbx), %eax
cmpl $-0x1, %eax
je 0x1c33f
leaq 0x38(%rbx), %rdi
leaq 0xf(%rsp), %rsi
movb %al, (%rsi)
callq 0x5a196
movl 0x14(%rbx), %eax
cmpl $0xa, %eax
jne 0x1c350
incq 0x30(%rbx)
andq $0x0, 0x28(%rbx)
addq $0x10, %rsp
popq %rbx
retq
pushq $-0x1
popq %rax
jmp 0x1c324
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv:
push rbx
sub rsp, 10h
mov rbx, rdi
movdqu xmm0, xmmword ptr [rdi+20h]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword ptr [rdi+20h], xmm0
cmp byte ptr [rdi+18h], 1
jnz short loc_1C312
mov byte ptr [rbx+18h], 0
jmp short loc_1C327
loc_1C312:
mov rcx, [rbx]
cmp rcx, [rbx+8]
jz short loc_1C356
movzx eax, byte ptr [rcx]
inc rcx
mov [rbx], rcx
loc_1C324:
mov [rbx+14h], eax
loc_1C327:
mov eax, [rbx+14h]
cmp eax, 0FFFFFFFFh
jz short loc_1C33F
lea rdi, [rbx+38h]
lea rsi, [rsp+18h+var_9]
mov [rsi], al
call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&)
loc_1C33F:
mov eax, [rbx+14h]
cmp eax, 0Ah
jnz short loc_1C350
inc qword ptr [rbx+30h]
and qword ptr [rbx+28h], 0
loc_1C350:
add rsp, 10h
pop rbx
retn
loc_1C356:
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_1C324
|
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(
__m128i *a1)
{
unsigned __int8 *v1; // rcx
int v2; // eax
long long result; // rax
a1[2] = _mm_sub_epi64(_mm_loadu_si128(a1 + 2), (__m128i)-1LL);
if ( a1[1].m128i_i8[8] == 1 )
{
a1[1].m128i_i8[8] = 0;
}
else
{
v1 = (unsigned __int8 *)a1->m128i_i64[0];
if ( a1->m128i_i64[0] == a1->m128i_i64[1] )
{
v2 = -1;
}
else
{
v2 = *v1;
a1->m128i_i64[0] = (long long)(v1 + 1);
}
a1[1].m128i_i32[1] = v2;
}
if ( a1[1].m128i_i32[1] != -1 )
std::vector<char>::emplace_back<char>(&a1[3].m128i_u64[1]);
result = a1[1].m128i_u32[1];
if ( (_DWORD)result == 10 )
{
++a1[3].m128i_i64[0];
a1[2].m128i_i64[1] = 0LL;
}
return result;
}
|
get:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVDQU XMM0,xmmword ptr [RDI + 0x20]
PCMPEQD XMM1,XMM1
PSUBQ XMM0,XMM1
MOVDQU xmmword ptr [RDI + 0x20],XMM0
CMP byte ptr [RDI + 0x18],0x1
JNZ 0x0011c312
MOV byte ptr [RBX + 0x18],0x0
JMP 0x0011c327
LAB_0011c312:
MOV RCX,qword ptr [RBX]
CMP RCX,qword ptr [RBX + 0x8]
JZ 0x0011c356
MOVZX EAX,byte ptr [RCX]
INC RCX
MOV qword ptr [RBX],RCX
LAB_0011c324:
MOV dword ptr [RBX + 0x14],EAX
LAB_0011c327:
MOV EAX,dword ptr [RBX + 0x14]
CMP EAX,-0x1
JZ 0x0011c33f
LEA RDI,[RBX + 0x38]
LEA RSI,[RSP + 0xf]
MOV byte ptr [RSI],AL
CALL 0x0015a196
LAB_0011c33f:
MOV EAX,dword ptr [RBX + 0x14]
CMP EAX,0xa
JNZ 0x0011c350
INC qword ptr [RBX + 0x30]
AND qword ptr [RBX + 0x28],0x0
LAB_0011c350:
ADD RSP,0x10
POP RBX
RET
LAB_0011c356:
PUSH -0x1
POP RAX
JMP 0x0011c324
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::get() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
byte *pbVar1;
uint uVar2;
char local_9;
*(long *)(this + 0x20) = *(long *)(this + 0x20) + 1;
*(long *)(this + 0x28) = *(long *)(this + 0x28) + 1;
if (this[0x18] ==
(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x1) {
this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x0;
}
else {
pbVar1 = *(byte **)this;
if (pbVar1 == *(byte **)(this + 8)) {
uVar2 = 0xffffffff;
}
else {
uVar2 = (uint)*pbVar1;
*(byte **)this = pbVar1 + 1;
}
*(uint *)(this + 0x14) = uVar2;
}
if (*(int *)(this + 0x14) != -1) {
local_9 = (char)*(int *)(this + 0x14);
std::vector<char,std::allocator<char>>::emplace_back<char>
((vector<char,std::allocator<char>> *)(this + 0x38),&local_9);
}
if (*(int *)(this + 0x14) == 10) {
*(long *)(this + 0x30) = *(long *)(this + 0x30) + 1;
*(int8 *)(this + 0x28) = 0;
}
return;
}
|
|
10,084 |
reciprocal_fp2
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/recip.c
|
static void reciprocal_fp2(vec384x out, const vec384x inp)
{
vec384 t0, t1;
/*
* |out| = 1/(a + b*i) = a/(a^2+b^2) - b/(a^2+b^2)*i
*/
sqr_fp(t0, inp[0]);
sqr_fp(t1, inp[1]);
add_fp(t0, t0, t1);
reciprocal_fp(t1, t0);
mul_fp(out[0], inp[0], t1);
mul_fp(out[1], inp[1], t1);
neg_fp(out[1], out[1]);
}
|
O3
|
c
|
reciprocal_fp2:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x2a2a7(%rip), %rdx # 0x8a910
leaq -0x90(%rbp), %r14
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
movq %r14, %rdi
callq 0x726e0
leaq 0x30(%r12), %r13
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movq %r13, %rsi
leaq 0x2a278(%rip), %rdx # 0x8a910
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
callq 0x726e0
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rdx
leaq 0x2a259(%rip), %rcx # 0x8a910
callq 0x6d600
movq %r15, %rdi
movq %r14, %rsi
callq 0x60544
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x2a239(%rip), %rcx # 0x8a910
movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD
movq %r12, %r8
callq 0x72e60
addq $0x30, %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
leaq 0x2a213(%rip), %rcx # 0x8a910
movq %rcx, %r14
movq %r12, %r8
callq 0x72e60
movl $0x1, %edx
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x6dc80
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
reciprocal_fp2:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r12, rsi
mov rbx, rdi
lea rdx, BLS12_381_P
lea r14, [rbp+var_90]
mov rcx, 89F3FFFCFFFCFFFDh
mov rdi, r14
call sqr_mont_384
lea r13, [r12+30h]
lea r15, [rbp+var_60]
mov rdi, r15
mov rsi, r13
lea rdx, BLS12_381_P
mov rcx, 89F3FFFCFFFCFFFDh
call sqr_mont_384
mov rdi, r14
mov rsi, r14
mov rdx, r15
lea rcx, BLS12_381_P
call add_mod_384
mov rdi, r15
mov rsi, r14
call reciprocal_fp
mov rdi, rbx
mov rsi, r12
mov rdx, r15
lea rcx, BLS12_381_P
mov r12, 89F3FFFCFFFCFFFDh
mov r8, r12
call mul_mont_384
add rbx, 30h ; '0'
mov rdi, rbx
mov rsi, r13
mov rdx, r15
lea rcx, BLS12_381_P
mov r14, rcx
mov r8, r12
call mul_mont_384
mov edx, 1
mov rdi, rbx
mov rsi, rbx
mov rcx, r14
call cneg_mod_384
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long reciprocal_fp2(long long a1, long long a2)
{
_BYTE v3[48]; // [rsp+0h] [rbp-90h] BYREF
_OWORD v4[6]; // [rsp+30h] [rbp-60h] BYREF
sqr_mont_384(v3, a2, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
sqr_mont_384(v4, a2 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
add_mod_384(v3, v3, v4, &BLS12_381_P);
reciprocal_fp(v4, (long long)v3);
mul_mont_384(a1, a2, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(a1 + 48, a2 + 48, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
return cneg_mod_384(a1 + 48, a1 + 48, 1LL, &BLS12_381_P);
}
|
reciprocal_fp2:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R12,RSI
MOV RBX,RDI
LEA RDX,[0x18a910]
LEA R14,[RBP + -0x90]
MOV RCX,-0x760c000300030003
MOV RDI,R14
CALL 0x001726e0
LEA R13,[R12 + 0x30]
LEA R15,[RBP + -0x60]
MOV RDI,R15
MOV RSI,R13
LEA RDX,[0x18a910]
MOV RCX,-0x760c000300030003
CALL 0x001726e0
MOV RDI,R14
MOV RSI,R14
MOV RDX,R15
LEA RCX,[0x18a910]
CALL 0x0016d600
MOV RDI,R15
MOV RSI,R14
CALL 0x00160544
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
LEA RCX,[0x18a910]
MOV R12,-0x760c000300030003
MOV R8,R12
CALL 0x00172e60
ADD RBX,0x30
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
LEA RCX,[0x18a910]
MOV R14,RCX
MOV R8,R12
CALL 0x00172e60
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R14
CALL 0x0016dc80
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void reciprocal_fp2(long param_1,long param_2)
{
int1 local_98 [48];
int1 local_68 [56];
sqr_mont_384(local_98,param_2,BLS12_381_P,0x89f3fffcfffcfffd);
sqr_mont_384(local_68,param_2 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd);
add_mod_384(local_98,local_98,local_68,BLS12_381_P);
reciprocal_fp(local_68,local_98);
mul_mont_384(param_1,param_2,local_68,BLS12_381_P,0x89f3fffcfffcfffd);
param_1 = param_1 + 0x30;
mul_mont_384(param_1,param_2 + 0x30,local_68,BLS12_381_P,0x89f3fffcfffcfffd);
cneg_mod_384(param_1,param_1,1,BLS12_381_P);
return;
}
|
|
10,085 |
plutovg_canvas_restore
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c
|
void plutovg_canvas_restore(plutovg_canvas_t* canvas)
{
if(canvas->state->next == NULL)
return;
plutovg_state_t* old_state = canvas->state;
canvas->state = old_state->next;
plutovg_state_reset(old_state);
old_state->next = canvas->freed_state;
canvas->freed_state = old_state;
}
|
O1
|
c
|
plutovg_canvas_restore:
pushq %r14
pushq %rbx
pushq %rax
movq 0x18(%rdi), %r14
movq 0x98(%r14), %rax
testq %rax, %rax
je 0x3940
movq %rdi, %rbx
movq %rax, 0x18(%rdi)
movq (%r14), %rdi
callq 0xa255
movq 0x8(%r14), %rdi
callq 0x4f8a
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%r14)
movups %xmm0, (%r14)
movsd 0x1f767(%rip), %xmm0 # 0x23040
movups %xmm0, 0x1c(%r14)
movaps 0x1f76b(%rip), %xmm0 # 0x23050
movups %xmm0, 0x2c(%r14)
movaps 0x1f76f(%rip), %xmm0 # 0x23060
movups %xmm0, 0x3c(%r14)
movl $0x0, 0x58(%r14)
leaq 0x60(%r14), %rdi
callq 0xcd47
movabsq $0x300000000, %rax # imm = 0x300000000
movq %rax, 0x80(%r14)
movabsq $0x3f80000041400000, %rax # imm = 0x3F80000041400000
movq %rax, 0x88(%r14)
movb $0x0, 0x90(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x98(%r14)
movq %r14, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
plutovg_canvas_restore:
push r14
push rbx
push rax
mov r14, [rdi+18h]
mov rax, [r14+98h]
test rax, rax
jz loc_3940
mov rbx, rdi
mov [rdi+18h], rax
mov rdi, [r14]
call plutovg_paint_destroy
mov rdi, [r14+8]
call plutovg_font_face_destroy
xorps xmm0, xmm0
movups xmmword ptr [r14+0Ch], xmm0
movups xmmword ptr [r14], xmm0
movsd xmm0, cs:qword_23040
movups xmmword ptr [r14+1Ch], xmm0
movaps xmm0, cs:xmmword_23050
movups xmmword ptr [r14+2Ch], xmm0
movaps xmm0, cs:xmmword_23060
movups xmmword ptr [r14+3Ch], xmm0
mov dword ptr [r14+58h], 0
lea rdi, [r14+60h]
call plutovg_span_buffer_reset
mov rax, 300000000h
mov [r14+80h], rax
mov rax, 3F80000041400000h
mov [r14+88h], rax
mov byte ptr [r14+90h], 0
mov rax, [rbx+20h]
mov [r14+98h], rax
mov [rbx+20h], r14
loc_3940:
add rsp, 8
pop rbx
pop r14
retn
|
long long plutovg_canvas_restore(long long a1)
{
long long v1; // r14
long long result; // rax
v1 = *(_QWORD *)(a1 + 24);
result = *(_QWORD *)(v1 + 152);
if ( result )
{
*(_QWORD *)(a1 + 24) = result;
plutovg_paint_destroy(*(_QWORD *)v1);
plutovg_font_face_destroy(*(_QWORD *)(v1 + 8));
*(_OWORD *)(v1 + 12) = 0LL;
*(_OWORD *)v1 = 0LL;
*(_OWORD *)(v1 + 28) = 0x3F8000003F800000uLL;
*(_OWORD *)(v1 + 44) = xmmword_23050;
*(_OWORD *)(v1 + 60) = xmmword_23060;
*(_DWORD *)(v1 + 88) = 0;
plutovg_span_buffer_reset(v1 + 96);
*(_QWORD *)(v1 + 128) = 0x300000000LL;
*(_QWORD *)(v1 + 136) = 0x3F80000041400000LL;
*(_BYTE *)(v1 + 144) = 0;
result = *(_QWORD *)(a1 + 32);
*(_QWORD *)(v1 + 152) = result;
*(_QWORD *)(a1 + 32) = v1;
}
return result;
}
|
plutovg_canvas_restore:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [RDI + 0x18]
MOV RAX,qword ptr [R14 + 0x98]
TEST RAX,RAX
JZ 0x00103940
MOV RBX,RDI
MOV qword ptr [RDI + 0x18],RAX
MOV RDI,qword ptr [R14]
CALL 0x0010a255
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00104f8a
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0xc],XMM0
MOVUPS xmmword ptr [R14],XMM0
MOVSD XMM0,qword ptr [0x00123040]
MOVUPS xmmword ptr [R14 + 0x1c],XMM0
MOVAPS XMM0,xmmword ptr [0x00123050]
MOVUPS xmmword ptr [R14 + 0x2c],XMM0
MOVAPS XMM0,xmmword ptr [0x00123060]
MOVUPS xmmword ptr [R14 + 0x3c],XMM0
MOV dword ptr [R14 + 0x58],0x0
LEA RDI,[R14 + 0x60]
CALL 0x0010cd47
MOV RAX,0x300000000
MOV qword ptr [R14 + 0x80],RAX
MOV RAX,0x3f80000041400000
MOV qword ptr [R14 + 0x88],RAX
MOV byte ptr [R14 + 0x90],0x0
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [R14 + 0x98],RAX
MOV qword ptr [RBX + 0x20],R14
LAB_00103940:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void plutovg_canvas_restore(long param_1)
{
int8 *puVar1;
int8 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
puVar1 = *(int8 **)(param_1 + 0x18);
if (puVar1[0x13] != 0) {
*(int8 *)(param_1 + 0x18) = puVar1[0x13];
plutovg_paint_destroy(*puVar1);
plutovg_font_face_destroy(puVar1[1]);
*(int8 *)((long)puVar1 + 0xc) = 0;
*(int8 *)((long)puVar1 + 0x14) = 0;
*puVar1 = 0;
puVar1[1] = 0;
*(int8 *)((long)puVar1 + 0x1c) = DAT_00123040;
*(int8 *)((long)puVar1 + 0x24) = 0;
uVar2 = _UNK_00123058;
*(int8 *)((long)puVar1 + 0x2c) = _DAT_00123050;
*(int8 *)((long)puVar1 + 0x34) = uVar2;
uVar5 = _UNK_0012306c;
uVar4 = _UNK_00123068;
uVar3 = _UNK_00123064;
*(int4 *)((long)puVar1 + 0x3c) = _DAT_00123060;
*(int4 *)(puVar1 + 8) = uVar3;
*(int4 *)((long)puVar1 + 0x44) = uVar4;
*(int4 *)(puVar1 + 9) = uVar5;
*(int4 *)(puVar1 + 0xb) = 0;
plutovg_span_buffer_reset(puVar1 + 0xc);
puVar1[0x10] = 0x300000000;
puVar1[0x11] = 0x3f80000041400000;
*(int1 *)(puVar1 + 0x12) = 0;
puVar1[0x13] = *(int8 *)(param_1 + 0x20);
*(int8 **)(param_1 + 0x20) = puVar1;
}
return;
}
|
|
10,086 |
_JS_AtomToValue
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue __JS_AtomToValue(JSContext *ctx, JSAtom atom, BOOL force_string)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (__JS_AtomIsTaggedInt(atom)) {
size_t len = u32toa(buf, __JS_AtomToUInt32(atom));
return js_new_string8_len(ctx, buf, len);
} else {
JSRuntime *rt = ctx->rt;
JSAtomStruct *p;
assert(atom < rt->atom_size);
p = rt->atom_array[atom];
if (p->atom_type == JS_ATOM_TYPE_STRING) {
goto ret_string;
} else if (force_string) {
if (p->len == 0 && p->is_wide_char != 0) {
/* no description string */
p = rt->atom_array[JS_ATOM_empty_string];
}
ret_string:
return js_dup(JS_MKPTR(JS_TAG_STRING, p));
} else {
return js_dup(JS_MKPTR(JS_TAG_SYMBOL, p));
}
}
}
|
O1
|
c
|
_JS_AtomToValue:
movq 0x18(%rdi), %rax
movq 0x68(%rax), %rcx
movq 0x5c0(%rcx), %rax
movq 0x4(%rax), %rdx
movq %rdx, %rsi
shrq $0x3e, %rsi
cmpl $0x1, %esi
sete %sil
negl %edx
setno %dl
orb %sil, %dl
jne 0x730a6
movq 0x178(%rcx), %rax
incl (%rax)
movq $-0x7, %rdx
retq
|
js_iterator_proto_get_toStringTag:
mov rax, [rdi+18h]
mov rcx, [rax+68h]
mov rax, [rcx+5C0h]
mov rdx, [rax+4]
mov rsi, rdx
shr rsi, 3Eh
cmp esi, 1
setz sil
neg edx
setno dl
or dl, sil
jnz short loc_730A6
mov rax, [rcx+178h]
loc_730A6:
inc dword ptr [rax]
mov rdx, 0FFFFFFFFFFFFFFF9h
retn
|
long long js_iterator_proto_get_toStringTag(long long a1)
{
long long v1; // rcx
long long result; // rax
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL);
result = *(_QWORD *)(v1 + 1472);
if ( !((*(_QWORD *)(result + 4) >> 62 == 1) | !__OFSUB__(-(int)*(_QWORD *)(result + 4), 1)) )
result = *(_QWORD *)(v1 + 376);
++*(_DWORD *)result;
return result;
}
| |||
10,087 |
_JS_AtomToValue
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue __JS_AtomToValue(JSContext *ctx, JSAtom atom, BOOL force_string)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (__JS_AtomIsTaggedInt(atom)) {
size_t len = u32toa(buf, __JS_AtomToUInt32(atom));
return js_new_string8_len(ctx, buf, len);
} else {
JSRuntime *rt = ctx->rt;
JSAtomStruct *p;
assert(atom < rt->atom_size);
p = rt->atom_array[atom];
if (p->atom_type == JS_ATOM_TYPE_STRING) {
goto ret_string;
} else if (force_string) {
if (p->len == 0 && p->is_wide_char != 0) {
/* no description string */
p = rt->atom_array[JS_ATOM_empty_string];
}
ret_string:
return js_dup(JS_MKPTR(JS_TAG_STRING, p));
} else {
return js_dup(JS_MKPTR(JS_TAG_SYMBOL, p));
}
}
}
|
O2
|
c
|
_JS_AtomToValue:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
testl %esi, %esi
js 0x1a964
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rcx
movl %esi, %eax
movq (%rcx,%rax,8), %rax
movq 0x4(%rax), %rsi
movq %rsi, %rdi
shrq $0x3e, %rdi
cmpl $0x1, %edi
je 0x1a95d
testl %edx, %edx
je 0x1a98a
negl %esi
jno 0x1a95d
movq 0x178(%rcx), %rax
incl (%rax)
pushq $-0x7
popq %rdx
jmp 0x1a982
andl $0x7fffffff, %esi # imm = 0x7FFFFFFF
movq %rsp, %r14
movq %r14, %rdi
callq 0x16482
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x1a4e8
addq $0x48, %rsp
popq %rbx
popq %r14
retq
incl (%rax)
pushq $-0x8
jmp 0x1a961
|
__JS_AtomToValue:
push r14
push rbx
sub rsp, 48h
mov rbx, rdi
test esi, esi
js short loc_1A964
mov rax, [rbx+18h]
mov rcx, [rax+68h]
mov eax, esi
mov rax, [rcx+rax*8]
mov rsi, [rax+4]
mov rdi, rsi
shr rdi, 3Eh
cmp edi, 1
jz short loc_1A95D
test edx, edx
jz short loc_1A98A
neg esi
jno short loc_1A95D
mov rax, [rcx+178h]
loc_1A95D:
inc dword ptr [rax]
push 0FFFFFFFFFFFFFFF9h
loc_1A961:
pop rdx
jmp short loc_1A982
loc_1A964:
and esi, 7FFFFFFFh
mov r14, rsp
mov rdi, r14
call u32toa
mov rdi, rbx
mov rsi, r14
mov edx, eax
call js_new_string8_len
loc_1A982:
add rsp, 48h
pop rbx
pop r14
retn
loc_1A98A:
inc dword ptr [rax]
push 0FFFFFFFFFFFFFFF8h
jmp short loc_1A961
|
long long _JS_AtomToValue(long long a1, int a2, int a3)
{
long long v3; // rcx
long long result; // rax
unsigned long long v5; // rsi
unsigned int v6; // eax
_BYTE v7[88]; // [rsp+0h] [rbp-58h] BYREF
if ( a2 < 0 )
{
v6 = u32toa(v7, a2 & 0x7FFFFFFF);
return js_new_string8_len(a1, (long long)v7, v6);
}
else
{
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL);
result = *(_QWORD *)(v3 + 8LL * (unsigned int)a2);
v5 = *(_QWORD *)(result + 4);
if ( v5 >> 62 == 1 )
{
LABEL_6:
++*(_DWORD *)result;
return result;
}
if ( a3 )
{
if ( __OFSUB__(-(int)v5, 1) )
result = *(_QWORD *)(v3 + 376);
goto LABEL_6;
}
++*(_DWORD *)result;
}
return result;
}
|
__JS_AtomToValue:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
TEST ESI,ESI
JS 0x0011a964
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RAX + 0x68]
MOV EAX,ESI
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV RSI,qword ptr [RAX + 0x4]
MOV RDI,RSI
SHR RDI,0x3e
CMP EDI,0x1
JZ 0x0011a95d
TEST EDX,EDX
JZ 0x0011a98a
NEG ESI
JNO 0x0011a95d
MOV RAX,qword ptr [RCX + 0x178]
LAB_0011a95d:
INC dword ptr [RAX]
PUSH -0x7
LAB_0011a961:
POP RDX
JMP 0x0011a982
LAB_0011a964:
AND ESI,0x7fffffff
MOV R14,RSP
MOV RDI,R14
CALL 0x00116482
MOV RDI,RBX
MOV RSI,R14
MOV EDX,EAX
CALL 0x0011a4e8
LAB_0011a982:
ADD RSP,0x48
POP RBX
POP R14
RET
LAB_0011a98a:
INC dword ptr [RAX]
PUSH -0x8
JMP 0x0011a961
|
/* WARNING: Removing unreachable block (ram,0x0011a956) */
void __JS_AtomToValue(long param_1,uint param_2,int param_3)
{
int *piVar1;
int4 uVar2;
int1 auStack_58 [72];
if ((int)param_2 < 0) {
uVar2 = u32toa(auStack_58,param_2 & 0x7fffffff);
js_new_string8_len(param_1,auStack_58,uVar2);
}
else {
piVar1 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8);
if (((uint)((ulong)*(int8 *)(piVar1 + 1) >> 0x3e) == 1) || (param_3 != 0)) {
*piVar1 = *piVar1 + 1;
}
else {
*piVar1 = *piVar1 + 1;
}
}
return;
}
|
|
10,088 |
ma_net_write_command
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_write_command(NET *net, uchar command,
const char *packet, size_t len,
my_bool disable_flush)
{
uchar buff[NET_HEADER_SIZE+1];
size_t buff_size= NET_HEADER_SIZE + 1;
size_t length= 1 + len; /* 1 extra byte for command */
int rc;
buff[NET_HEADER_SIZE]= 0;
buff[4]=command;
if (length >= MAX_PACKET_LENGTH)
{
len= MAX_PACKET_LENGTH - 1;
do
{
int3store(buff, MAX_PACKET_LENGTH);
buff[3]= (net->compress) ? 0 : (uchar) (net->pkt_nr++);
if (ma_net_write_buff(net, (char *)buff, buff_size) ||
ma_net_write_buff(net, packet, len))
return(1);
packet+= len;
length-= MAX_PACKET_LENGTH;
len= MAX_PACKET_LENGTH;
buff_size= NET_HEADER_SIZE; /* don't send command for further packets */
} while (length >= MAX_PACKET_LENGTH);
len= length;
}
int3store(buff,length);
buff[3]= (net->compress) ? 0 :(uchar) (net->pkt_nr++);
rc= test (ma_net_write_buff(net,(char *)buff, buff_size) ||
ma_net_write_buff(net,packet,len));
if (!rc && !disable_flush)
return test(ma_net_flush(net));
return rc;
}
|
O0
|
c
|
ma_net_write_command:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %r8b, %al
movq %fs:0x28, %r8
movq %r8, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movb %sil, -0x21(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movb %al, -0x39(%rbp)
movq $0x5, -0x48(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movb $0x0, -0x9(%rbp)
movb -0x21(%rbp), %al
movb %al, -0x9(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jb 0x46207
movq $0xfffffe, -0x38(%rbp) # imm = 0xFFFFFE
jmp 0x46151
movb $-0x1, -0xd(%rbp)
movb $-0x1, -0xc(%rbp)
movb $-0x1, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x46174
xorl %eax, %eax
movl %eax, -0x58(%rbp)
jmp 0x46189
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x45f10
cmpl $0x0, %eax
jne 0x461bb
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x45f10
cmpl $0x0, %eax
je 0x461c7
movl $0x1, -0x14(%rbp)
jmp 0x462d1
movq -0x38(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rax
subq $0xffffff, %rax # imm = 0xFFFFFF
movq %rax, -0x50(%rbp)
movq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF
movq $0x4, -0x48(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jae 0x4614f
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x46209
movq -0x50(%rbp), %rax
movb %al, -0xd(%rbp)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, -0xc(%rbp)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x4623d
xorl %eax, %eax
movl %eax, -0x5c(%rbp)
jmp 0x46252
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x45f10
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x5d(%rbp)
jne 0x4628f
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x45f10
cmpl $0x0, %eax
setne %al
movb %al, -0x5d(%rbp)
movb -0x5d(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jne 0x462cb
cmpb $0x0, -0x39(%rbp)
jne 0x462cb
movq -0x20(%rbp), %rdi
callq 0x459a0
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x14(%rbp)
jmp 0x462d1
movl -0x54(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x64(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x462f2
movl -0x64(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
callq 0x134b0
nopw (%rax,%rax)
|
ma_net_write_command:
push rbp
mov rbp, rsp
sub rsp, 70h
mov al, r8b
mov r8, fs:28h
mov [rbp+var_8], r8
mov [rbp+var_20], rdi
mov [rbp+var_21], sil
mov [rbp+var_30], rdx
mov [rbp+var_38], rcx
mov [rbp+var_39], al
mov [rbp+var_48], 5
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_50], rax
mov [rbp+var_9], 0
mov al, [rbp+var_21]
mov [rbp+var_9], al
cmp [rbp+var_50], 0FFFFFFh
jb loc_46207
mov [rbp+var_38], 0FFFFFEh
loc_4614F:
jmp short $+2
loc_46151:
mov [rbp+var_D], 0FFh
mov [rbp+var_C], 0FFh
mov [rbp+var_B], 0FFh
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_46174
xor eax, eax
mov [rbp+var_58], eax
jmp short loc_46189
loc_46174:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_58], eax
loc_46189:
mov eax, [rbp+var_58]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
cmp eax, 0
jnz short loc_461BB
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
jz short loc_461C7
loc_461BB:
mov [rbp+var_14], 1
jmp loc_462D1
loc_461C7:
mov rax, [rbp+var_38]
add rax, [rbp+var_30]
mov [rbp+var_30], rax
mov rax, [rbp+var_50]
sub rax, 0FFFFFFh
mov [rbp+var_50], rax
mov [rbp+var_38], 0FFFFFFh
mov [rbp+var_48], 4
cmp [rbp+var_50], 0FFFFFFh
jnb loc_4614F
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
loc_46207:
jmp short $+2
loc_46209:
mov rax, [rbp+var_50]
mov [rbp+var_D], al
mov rax, [rbp+var_50]
shr rax, 8
mov [rbp+var_C], al
mov rax, [rbp+var_50]
shr rax, 10h
mov [rbp+var_B], al
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_4623D
xor eax, eax
mov [rbp+var_5C], eax
jmp short loc_46252
loc_4623D:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_5C], eax
loc_46252:
mov eax, [rbp+var_5C]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_5D], al
jnz short loc_4628F
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
setnz al
mov [rbp+var_5D], al
loc_4628F:
mov dl, [rbp+var_5D]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_54], eax
cmp [rbp+var_54], 0
jnz short loc_462CB
cmp [rbp+var_39], 0
jnz short loc_462CB
mov rdi, [rbp+var_20]
call ma_net_flush
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_14], eax
jmp short loc_462D1
loc_462CB:
mov eax, [rbp+var_54]
mov [rbp+var_14], eax
loc_462D1:
mov eax, [rbp+var_14]
mov [rbp+var_64], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_462F2
mov eax, [rbp+var_64]
add rsp, 70h
pop rbp
retn
loc_462F2:
call ___stack_chk_fail
|
_BOOL8 ma_net_write_command(long long a1, char a2, long long a3, unsigned long long a4, char a5)
{
int v5; // eax
int v6; // eax
bool v8; // [rsp+13h] [rbp-5Dh]
char v9; // [rsp+14h] [rbp-5Ch]
char v10; // [rsp+18h] [rbp-58h]
unsigned long long v11; // [rsp+20h] [rbp-50h]
unsigned long long v12; // [rsp+28h] [rbp-48h]
unsigned long long v14; // [rsp+38h] [rbp-38h]
unsigned long long v15; // [rsp+38h] [rbp-38h]
__int16 v18; // [rsp+63h] [rbp-Dh] BYREF
char v19; // [rsp+65h] [rbp-Bh]
char v20; // [rsp+66h] [rbp-Ah]
char v21; // [rsp+67h] [rbp-9h]
unsigned long long v22; // [rsp+68h] [rbp-8h]
v22 = __readfsqword(0x28u);
v14 = a4;
v12 = 5LL;
v11 = a4 + 1;
v21 = a2;
if ( a4 + 1 >= 0xFFFFFF )
{
v15 = 16777214LL;
do
{
v18 = -1;
v19 = -1;
if ( *(_BYTE *)(a1 + 132) )
{
v10 = 0;
}
else
{
v5 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v5 + 1;
v10 = v5;
}
v20 = v10;
if ( ma_net_write_buff(a1, (long long)&v18, v12) || ma_net_write_buff(a1, a3, v15) )
return 1;
a3 += v15;
v11 -= 0xFFFFFFLL;
v15 = 0xFFFFFFLL;
v12 = 4LL;
}
while ( v11 >= 0xFFFFFF );
v14 = v11;
}
v18 = v11;
v19 = BYTE2(v11);
if ( *(_BYTE *)(a1 + 132) )
{
v9 = 0;
}
else
{
v6 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v6 + 1;
v9 = v6;
}
v20 = v9;
v8 = 1;
if ( !ma_net_write_buff(a1, (long long)&v18, v12) )
v8 = ma_net_write_buff(a1, a3, v14);
if ( v8 || a5 )
return v8;
else
return ma_net_flush(a1) != 0;
}
|
ma_net_write_command:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV AL,R8B
MOV R8,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],R8
MOV qword ptr [RBP + -0x20],RDI
MOV byte ptr [RBP + -0x21],SIL
MOV qword ptr [RBP + -0x30],RDX
MOV qword ptr [RBP + -0x38],RCX
MOV byte ptr [RBP + -0x39],AL
MOV qword ptr [RBP + -0x48],0x5
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV byte ptr [RBP + -0x9],0x0
MOV AL,byte ptr [RBP + -0x21]
MOV byte ptr [RBP + -0x9],AL
CMP qword ptr [RBP + -0x50],0xffffff
JC 0x00146207
MOV qword ptr [RBP + -0x38],0xfffffe
LAB_0014614f:
JMP 0x00146151
LAB_00146151:
MOV byte ptr [RBP + -0xd],0xff
MOV byte ptr [RBP + -0xc],0xff
MOV byte ptr [RBP + -0xb],0xff
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x00146174
XOR EAX,EAX
MOV dword ptr [RBP + -0x58],EAX
JMP 0x00146189
LAB_00146174:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x58],EAX
LAB_00146189:
MOV EAX,dword ptr [RBP + -0x58]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00145f10
CMP EAX,0x0
JNZ 0x001461bb
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00145f10
CMP EAX,0x0
JZ 0x001461c7
LAB_001461bb:
MOV dword ptr [RBP + -0x14],0x1
JMP 0x001462d1
LAB_001461c7:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0xffffff
MOV qword ptr [RBP + -0x50],RAX
MOV qword ptr [RBP + -0x38],0xffffff
MOV qword ptr [RBP + -0x48],0x4
CMP qword ptr [RBP + -0x50],0xffffff
JNC 0x0014614f
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
LAB_00146207:
JMP 0x00146209
LAB_00146209:
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RBP + -0xd],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV byte ptr [RBP + -0xc],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV byte ptr [RBP + -0xb],AL
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x0014623d
XOR EAX,EAX
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x00146252
LAB_0014623d:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x5c],EAX
LAB_00146252:
MOV EAX,dword ptr [RBP + -0x5c]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00145f10
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x5d],AL
JNZ 0x0014628f
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00145f10
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x5d],AL
LAB_0014628f:
MOV DL,byte ptr [RBP + -0x5d]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
CMP dword ptr [RBP + -0x54],0x0
JNZ 0x001462cb
CMP byte ptr [RBP + -0x39],0x0
JNZ 0x001462cb
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001459a0
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001462d1
LAB_001462cb:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x14],EAX
LAB_001462d1:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x64],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001462f2
MOV EAX,dword ptr [RBP + -0x64]
ADD RSP,0x70
POP RBP
RET
LAB_001462f2:
CALL 0x001134b0
|
bool ma_net_write_command(long param_1,int1 param_2,long param_3,ulong param_4,char param_5)
{
ulong uVar1;
int iVar2;
long in_FS_OFFSET;
bool bVar3;
int1 local_64;
int1 local_60;
ulong local_58;
int8 local_50;
ulong local_40;
long local_38;
int1 local_15;
int1 local_14;
int1 local_13;
int1 local_12;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_50 = 5;
local_58 = param_4 + 1;
uVar1 = param_4;
local_38 = param_3;
local_11 = param_2;
if (0xfffffe < local_58) {
local_40 = 0xfffffe;
do {
local_15 = 0xff;
local_14 = 0xff;
local_13 = 0xff;
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_60 = (int1)iVar2;
}
else {
local_60 = 0;
}
local_12 = local_60;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
if ((iVar2 != 0) || (iVar2 = ma_net_write_buff(param_1,local_38,local_40), iVar2 != 0)) {
bVar3 = true;
goto LAB_001462d1;
}
local_38 = local_40 + local_38;
local_58 = local_58 - 0xffffff;
local_40 = 0xffffff;
local_50 = 4;
uVar1 = local_58;
} while (0xfffffe < local_58);
}
local_40 = uVar1;
local_15 = (int1)local_58;
local_14 = (int1)(local_58 >> 8);
local_13 = (int1)(local_58 >> 0x10);
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_64 = (int1)iVar2;
}
else {
local_64 = 0;
}
local_12 = local_64;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
bVar3 = true;
if (iVar2 == 0) {
iVar2 = ma_net_write_buff(param_1,local_38,local_40);
bVar3 = iVar2 != 0;
}
if ((bVar3 == false) && (param_5 == '\0')) {
iVar2 = ma_net_flush(param_1);
bVar3 = iVar2 != 0;
}
LAB_001462d1:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return bVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
10,089 |
ChatHandler::SendWorldTextOptional(std::basic_string_view<char, std::char_traits<char>>, unsigned int)
|
SylCore-WoTLK/src/server/game/Chat/Chat.cpp
|
void ChatHandler::SendWorldTextOptional(std::string_view str, uint32 flag)
{
std::vector<std::string_view> lines = Acore::Tokenize(str, '\n', true);
Player* player = m_session->GetPlayer();
if (sWorld->getBoolConfig(CONFIG_PLAYER_SETTINGS_ENABLED))
if (player->GetPlayerSetting(AzerothcorePSSource, SETTING_ANNOUNCER_FLAGS).HasFlag(flag))
return;
for (std::string_view line : lines)
{
WorldPacket data;
ChatHandler::BuildChatPacket(data, CHAT_MSG_SYSTEM, LANG_UNIVERSAL, nullptr, nullptr, line);
player->SendDirectMessage(&data);
}
}
|
O3
|
cpp
|
ChatHandler::SendWorldTextOptional(std::basic_string_view<char, std::char_traits<char>>, unsigned int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %ecx, %ebp
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
movl $0xa, %ecx
movl $0x1, %r8d
callq 0x10926cc
movq 0x8(%rbx), %rax
movq 0xd0(%rax), %rax
movq %rax, 0x20(%rsp)
callq 0xf2e6db
movq (%rax), %rdi
movq (%rdi), %rax
movl $0x68, %esi
callq *0xe0(%rax)
testb %al, %al
je 0x9e25f4
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movabsq $0x75616665645f6361, %rax # imm = 0x75616665645F6361
movq %rax, (%r15)
movw $0x746c, 0x8(%r15) # imm = 0x746C
movq $0xa, -0x8(%r15)
movb $0x0, 0xa(%r15)
leaq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rdi
xorl %edx, %edx
callq 0xb0a6bc
movl %eax, %r14d
andl %ebp, %r14d
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e25eb
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x10a22f0
testl %r14d, %r14d
jne 0x9e26f8
movq 0x28(%rsp), %r14
movq 0x30(%rsp), %rbx
cmpq %rbx, %r14
je 0x9e26fd
leaq 0x50(%rsp), %rbp
leaq 0x80(%rsp), %r15
leaq 0x7b2541(%rip), %r12 # 0x1194b5c
leaq 0x40(%rsp), %r13
movups (%r14), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x4bee9e
leaq 0xd2ec23(%rip), %rax # 0x1711260
movq %rax, 0x80(%rsp)
movw $0x0, 0xb0(%rsp)
movq $0x0, 0xb8(%rsp)
movq %rbp, 0x40(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x491ad6
movaps 0xc0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9e2186
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9e26b2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x10a22f0
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0xabd1fc
leaq 0xd2ebe2(%rip), %rax # 0x17112a8
movq %rax, 0x80(%rsp)
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x9e26eb
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x10a22f0
addq $0x10, %r14
cmpq %rbx, %r14
jne 0x9e2620
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0x9e2712
movq 0x38(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0x10a22f0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e278f
movq 0x70(%rsp), %rsi
incq %rsi
jmp 0x9e278a
jmp 0x9e273d
movq %rax, %rbx
jmp 0x9e278f
jmp 0x9e2760
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9e2763
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x10a22f0
jmp 0x9e2763
movq %rax, %rbx
leaq 0xd2eb3e(%rip), %rax # 0x17112a8
movq %rax, 0x80(%rsp)
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x9e278f
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x10a22f0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x9e27a6
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x10a22f0
movq %rbx, %rdi
callq 0x45c850
|
_ZN11ChatHandler21SendWorldTextOptionalESt17basic_string_viewIcSt11char_traitsIcEEj:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov ebp, ecx
mov rbx, rdi
lea rdi, [rsp+108h+var_E0]
mov ecx, 0Ah
mov r8d, 1
call _ZN5Acore8TokenizeESt17basic_string_viewIcSt11char_traitsIcEEcb; Acore::Tokenize(std::string_view,char,bool)
mov rax, [rbx+8]
mov rax, [rax+0D0h]
mov [rsp+108h+var_E8], rax
call _Z16getWorldInstancev; getWorldInstance(void)
mov rdi, [rax]
mov rax, [rdi]
mov esi, 68h ; 'h'
call qword ptr [rax+0E0h]
test al, al
jz short loc_9E25F4
lea r15, [rsp+108h+var_98]
mov [r15-10h], r15
mov rax, 75616665645F6361h
mov [r15], rax
mov word ptr [r15+8], 746Ch
mov qword ptr [r15-8], 0Ah
mov byte ptr [r15+0Ah], 0
lea rsi, [rsp+108h+var_A8]
mov rdi, [rsp+108h+var_E8]
xor edx, edx
call _ZN6Player16GetPlayerSettingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEh; Player::GetPlayerSetting(std::string,uchar)
mov r14d, eax
and r14d, ebp
mov rdi, [rsp+108h+var_A8]; void *
cmp rdi, r15
jz short loc_9E25EB
mov rsi, [rsp+108h+var_98]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_9E25EB:
test r14d, r14d
jnz loc_9E26F8
loc_9E25F4:
mov r14, [rsp+108h+var_E0]
mov rbx, [rsp+108h+var_D8]
cmp r14, rbx
jz loc_9E26FD
lea rbp, [rsp+108h+var_B8]
lea r15, [rsp+108h+var_88]
lea r12, asc_1194B57+5; ""
lea r13, [rsp+108h+var_C8]
loc_9E2620:
movups xmm0, xmmword ptr [r14]
movaps [rsp+108h+var_48], xmm0
mov rdi, r15; this
xor esi, esi; unsigned __int64
call _ZN10ByteBufferC2Em; ByteBuffer::ByteBuffer(ulong)
lea rax, off_1711260
mov [rsp+108h+var_88], rax
mov [rsp+108h+var_58], 0
mov [rsp+108h+var_50], 0
mov [rsp+108h+var_C8], rbp
mov rdi, r13
mov rsi, r12
mov rdx, r12
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)
movaps xmm0, [rsp+108h+var_48]
movups [rsp+108h+var_108], xmm0
mov [rsp+108h+var_F8], r13
mov [rsp+108h+var_F0], 0
mov rdi, r15
xor esi, esi
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call _ZN11ChatHandler15BuildChatPacketER11WorldPacket7ChatMsg8LanguagePK11WorldObjectS6_St17basic_string_viewIcSt11char_traitsIcEEjRKNSt7__cxx1112basic_stringIcS9_SaIcEEE14LocaleConstant; ChatHandler::BuildChatPacket(WorldPacket &,ChatMsg,Language,WorldObject const*,WorldObject const*,std::string_view,uint,std::string const&,LocaleConstant)
mov rdi, [rsp+108h+var_C8]; void *
cmp rdi, rbp
jz short loc_9E26B2
mov rsi, [rsp+108h+var_B8]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_9E26B2:
mov rdi, [rsp+108h+var_E8]; this
mov rsi, r15; WorldPacket *
call _ZNK6Player17SendDirectMessageEPK11WorldPacket; Player::SendDirectMessage(WorldPacket const*)
lea rax, off_17112A8
mov [rsp+108h+var_88], rax
mov rdi, [rsp+108h+var_70]; void *
test rdi, rdi
jz short loc_9E26EB
mov rsi, [rsp+108h+var_60]
sub rsi, rdi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_9E26EB:
add r14, 10h
cmp r14, rbx
jnz loc_9E2620
loc_9E26F8:
mov r14, [rsp+108h+var_E0]
loc_9E26FD:
test r14, r14
jz short loc_9E2712
mov rsi, [rsp+108h+var_D0]
sub rsi, r14; unsigned __int64
mov rdi, r14; void *
call _ZdlPvm; operator delete(void *,ulong)
loc_9E2712:
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_58]
cmp rdi, r15
jz short loc_9E278F
mov rsi, [rsp+arg_68]
inc rsi
jmp short loc_9E278A
jmp short $+2
loc_9E273D:
mov rbx, rax
jmp short loc_9E278F
jmp short loc_9E2760
mov rbx, rax
mov rdi, [rsp+arg_38]; void *
cmp rdi, rbp
jz short loc_9E2763
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
jmp short loc_9E2763
loc_9E2760:
mov rbx, rax
loc_9E2763:
lea rax, off_17112A8
mov [rsp+arg_78], rax
mov rdi, [rsp+arg_90]; void *
test rdi, rdi
jz short loc_9E278F
mov rsi, [rsp+arg_A0]
sub rsi, rdi; unsigned __int64
loc_9E278A:
call _ZdlPvm; operator delete(void *,ulong)
loc_9E278F:
mov rdi, [rsp+arg_20]; void *
test rdi, rdi
jz short loc_9E27A6
mov rsi, [rsp+arg_30]
sub rsi, rdi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_9E27A6:
mov rdi, rbx
call __Unwind_Resume
|
void ChatHandler::SendWorldTextOptional(long long a1, long long a2, long long a3, int a4)
{
_QWORD *WorldInstance; // rax
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // r14d
__int128 *v10; // r14
__int128 *v11; // rbx
Player *v12; // [rsp+20h] [rbp-E8h]
void *v13; // [rsp+28h] [rbp-E0h] BYREF
__int128 *v14; // [rsp+30h] [rbp-D8h]
long long v15; // [rsp+38h] [rbp-D0h]
void *v16[2]; // [rsp+40h] [rbp-C8h] BYREF
_QWORD v17[2]; // [rsp+50h] [rbp-B8h] BYREF
void *v18[2]; // [rsp+60h] [rbp-A8h] BYREF
_QWORD v19[2]; // [rsp+70h] [rbp-98h] BYREF
_QWORD v20[3]; // [rsp+80h] [rbp-88h] BYREF
void *v21; // [rsp+98h] [rbp-70h]
long long v22; // [rsp+A8h] [rbp-60h]
__int16 v23; // [rsp+B0h] [rbp-58h]
long long v24; // [rsp+B8h] [rbp-50h]
__int128 v25; // [rsp+C0h] [rbp-48h]
Acore::Tokenize(&v13, a2, a3, 10LL, 1LL);
v12 = *(Player **)(*(_QWORD *)(a1 + 8) + 208LL);
WorldInstance = (_QWORD *)getWorldInstance();
if ( !(*(unsigned __int8 ( **)(_QWORD, long long))(*(_QWORD *)*WorldInstance + 224LL))(*WorldInstance, 104LL) )
goto LABEL_5;
v18[0] = v19;
strcpy((char *)v19, "ac_default");
v18[1] = byte_9 + 1;
v9 = a4 & Player::GetPlayerSetting((_DWORD)v12, (unsigned int)v18, 0, v6, v7, v8);
if ( v18[0] != v19 )
operator delete(v18[0], v19[0] + 1LL);
if ( !v9 )
{
LABEL_5:
v10 = (__int128 *)v13;
v11 = v14;
if ( v13 == v14 )
goto LABEL_12;
do
{
v25 = *v10;
ByteBuffer::ByteBuffer((ByteBuffer *)v20);
v20[0] = off_1711260;
v23 = 0;
v24 = 0LL;
v16[0] = v17;
std::string::_M_construct<char const*>((long long)v16, "", (long long)"");
ChatHandler::BuildChatPacket((ByteBuffer *)v20, 0LL, 0LL, 0LL, 0LL, 0, v25, SDWORD2(v25), (long long)v16, 0);
if ( v16[0] != v17 )
operator delete(v16[0], v17[0] + 1LL);
Player::SendDirectMessage(v12, (const WorldPacket *)v20);
v20[0] = &off_17112A8;
if ( v21 )
operator delete(v21, v22 - (_QWORD)v21);
++v10;
}
while ( v10 != v11 );
}
v10 = (__int128 *)v13;
LABEL_12:
if ( v10 )
operator delete(v10, v15 - (_QWORD)v10);
}
|
~GenericSpellAndAuraScriptLoader:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1811038]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x8]
LEA RAX,[RBX + 0x18]
CMP RDI,RAX
JZ 0x009e2564
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x011a22f0
LAB_009e2564:
MOV ESI,0x30
MOV RDI,RBX
POP RBX
JMP 0x011a22f0
|
/* GenericSpellAndAuraScriptLoader<spell_q10720_the_smallest_creature, std::tuple<>
>::~GenericSpellAndAuraScriptLoader() */
void __thiscall
GenericSpellAndAuraScriptLoader<spell_q10720_the_smallest_creature,std::tuple<>>::
~GenericSpellAndAuraScriptLoader
(GenericSpellAndAuraScriptLoader<spell_q10720_the_smallest_creature,std::tuple<>> *this)
{
*(int ***)this = &PTR_IsDatabaseBound_01811038;
if (*(GenericSpellAndAuraScriptLoader<spell_q10720_the_smallest_creature,std::tuple<>> **)
(this + 8) != this + 0x18) {
/* WARNING: Subroutine does not return */
operator_delete(*(GenericSpellAndAuraScriptLoader<spell_q10720_the_smallest_creature,std::tuple<>>
**)(this + 8),*(long *)(this + 0x18) + 1);
}
/* WARNING: Subroutine does not return */
operator_delete(this,0x30);
}
|
|
10,090 |
my_uca_generate_page
|
eloqsql/strings/ctype-uca.c
|
static my_bool
my_uca_generate_page(MY_CHARSET_LOADER *loader,
MY_UCA_WEIGHT_LEVEL *dst, const MY_UCA_WEIGHT_LEVEL *src,
uint pageno)
{
DBUG_ASSERT(dst->levelno == src->levelno);
return src->lengths[pageno] ?
/*
A page with explicit weights and some special rules.
Copy all weights from the page in "src".
*/
my_uca_copy_page(loader, src, dst, pageno) :
/*
A page with implicit weights and some special rules.
Generate default weights for all characters on this page
algorithmically now, at initialization time.
*/
my_uca_generate_implicit_page(loader, dst, pageno);
}
|
O0
|
c
|
my_uca_generate_page:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
jmp 0x9fef9
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x1c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x9ff2b
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x1c(%rbp), %eax
movl %eax, %ecx
callq 0x9ff50
movsbl %al, %eax
movl %eax, -0x20(%rbp)
jmp 0x9ff41
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0xa0080
movsbl %al, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_uca_generate_page:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
jmp short $+2
loc_9FEF9:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov ecx, [rbp+var_1C]
movzx eax, byte ptr [rax+rcx]
cmp eax, 0
jz short loc_9FF2B
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_10]
mov eax, [rbp+var_1C]
mov ecx, eax
call my_uca_copy_page
movsx eax, al
mov [rbp+var_20], eax
jmp short loc_9FF41
loc_9FF2B:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_1C]
call my_uca_generate_implicit_page
movsx eax, al
mov [rbp+var_20], eax
loc_9FF41:
mov eax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
|
long long my_uca_generate_page(long long a1, long long a2, long long a3, unsigned int a4)
{
if ( *(_BYTE *)(*(_QWORD *)(a3 + 8) + a4) )
return (unsigned int)(char)my_uca_copy_page(a1, a3, a2, a4);
else
return (unsigned int)(char)my_uca_generate_implicit_page(a1, a2, a4);
}
|
my_uca_generate_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
JMP 0x0019fef9
LAB_0019fef9:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x1c]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x0
JZ 0x0019ff2b
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x1c]
MOV ECX,EAX
CALL 0x0019ff50
MOVSX EAX,AL
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0019ff41
LAB_0019ff2b:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x1c]
CALL 0x001a0080
MOVSX EAX,AL
MOV dword ptr [RBP + -0x20],EAX
LAB_0019ff41:
MOV EAX,dword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int my_uca_generate_page(int8 param_1,int8 param_2,long param_3,uint param_4)
{
char cVar1;
int4 local_28;
if (*(char *)(*(long *)(param_3 + 8) + (ulong)param_4) == '\0') {
cVar1 = my_uca_generate_implicit_page(param_1,param_2,param_4);
}
else {
cVar1 = my_uca_copy_page(param_1,param_3,param_2,param_4);
}
local_28 = (int)cVar1;
return local_28;
}
|
|
10,091 |
js_proxy_mark
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_proxy_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSProxyData *s = JS_GetOpaque(val, JS_CLASS_PROXY);
if (s) {
JS_MarkValue(rt, s->target, mark_func);
JS_MarkValue(rt, s->handler, mark_func);
}
}
|
O1
|
c
|
js_proxy_mark:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdi, %r14
movq %rsi, (%rsp)
cmpl $-0x1, %edx
jne 0x4d51b
movq (%rsp), %rax
cmpw $0x30, 0x6(%rax)
jne 0x4d51b
movq 0x30(%rax), %r15
jmp 0x4d51e
xorl %r15d, %r15d
testq %r15, %r15
je 0x4d568
movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE
movsd (%r15), %xmm0
movl 0x8(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x4d548
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
movsd 0x10(%r15), %xmm0
movl 0x18(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x4d568
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
js_proxy_mark:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rcx
mov r14, rdi
mov [rsp+28h+var_28], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_4D51B
mov rax, [rsp+28h+var_28]
cmp word ptr [rax+6], 30h ; '0'
jnz short loc_4D51B
mov r15, [rax+30h]
jmp short loc_4D51E
loc_4D51B:
xor r15d, r15d
loc_4D51E:
test r15, r15
jz short loc_4D568
mov r12d, 0FFFFFFFEh
movsd xmm0, qword ptr [r15]
mov eax, [r15+8]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_4D548
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_4D548:
movsd xmm0, qword ptr [r15+10h]
mov eax, [r15+18h]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_4D568
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_4D568:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long js_proxy_mark(long long a1, long long a2, int a3, void ( *a4)(long long, _QWORD))
{
long long result; // rax
long long v6; // r15
if ( a3 == -1 && (result = a2, *(_WORD *)(a2 + 6) == 48) )
v6 = *(_QWORD *)(a2 + 48);
else
v6 = 0LL;
if ( v6 )
{
if ( (*(_DWORD *)(v6 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
a4(a1, *(_QWORD *)v6);
result = *(_DWORD *)(v6 + 24) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v6 + 16));
}
return result;
}
|
js_proxy_mark:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDI
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JNZ 0x0014d51b
MOV RAX,qword ptr [RSP]
CMP word ptr [RAX + 0x6],0x30
JNZ 0x0014d51b
MOV R15,qword ptr [RAX + 0x30]
JMP 0x0014d51e
LAB_0014d51b:
XOR R15D,R15D
LAB_0014d51e:
TEST R15,R15
JZ 0x0014d568
MOV R12D,0xfffffffe
MOVSD XMM0,qword ptr [R15]
MOV EAX,dword ptr [R15 + 0x8]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0014d548
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0014d548:
MOVSD XMM0,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [R15 + 0x18]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0014d568
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0014d568:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_proxy_mark(int8 param_1,long param_2,int param_3,code *param_4)
{
int8 *puVar1;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x30)) {
puVar1 = *(int8 **)(param_2 + 0x30);
}
else {
puVar1 = (int8 *)0x0;
}
if (puVar1 != (int8 *)0x0) {
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,*puVar1);
}
if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,puVar1[2]);
}
}
return;
}
|
|
10,092 |
js_std_unsetenv
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_unsetenv(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
const char *name;
name = JS_ToCString(ctx, argv[0]);
if (!name)
return JS_EXCEPTION;
unsetenv(name);
JS_FreeCString(ctx, name);
return JS_UNDEFINED;
}
|
O1
|
c
|
js_std_unsetenv:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%r8), %rdx
movq 0x8(%r8), %rcx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x1ffe3
testq %rax, %rax
je 0x165a6
movq %rax, %r14
movq %rax, %rdi
callq 0xe800
movq %rbx, %rdi
movq %r14, %rsi
callq 0x202c9
movl $0x3, %edx
jmp 0x165ab
movl $0x6, %edx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_std_unsetenv:
push r14
push rbx
push rax
mov rbx, rdi
mov rdx, [r8]
mov rcx, [r8+8]
xor esi, esi
xor r8d, r8d
call JS_ToCStringLen2
test rax, rax
jz short loc_165A6
mov r14, rax
mov rdi, rax
call _unsetenv
mov rdi, rbx
mov rsi, r14
call JS_FreeCString
mov edx, 3
jmp short loc_165AB
loc_165A6:
mov edx, 6
loc_165AB:
xor eax, eax
add rsp, 8
pop rbx
pop r14
retn
|
long long js_std_unsetenv(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
long long v5; // rax
long long v6; // r14
v5 = JS_ToCStringLen2(a1, 0LL, *a5, a5[1], 0LL);
if ( v5 )
{
v6 = v5;
unsetenv(v5);
JS_FreeCString(a1, v6);
}
return 0LL;
}
|
js_std_unsetenv:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
XOR ESI,ESI
XOR R8D,R8D
CALL 0x0011ffe3
TEST RAX,RAX
JZ 0x001165a6
MOV R14,RAX
MOV RDI,RAX
CALL 0x0010e800
MOV RDI,RBX
MOV RSI,R14
CALL 0x001202c9
MOV EDX,0x3
JMP 0x001165ab
LAB_001165a6:
MOV EDX,0x6
LAB_001165ab:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_std_unsetenv(int8 param_1)
{
int1 auVar1 [16];
char *__name;
ulong uVar2;
int8 *in_R8;
__name = (char *)JS_ToCStringLen2(param_1,0,*in_R8,in_R8[1],0);
if (__name == (char *)0x0) {
uVar2 = 6;
}
else {
unsetenv(__name);
JS_FreeCString(param_1,__name);
uVar2 = 3;
}
auVar1._8_8_ = 0;
auVar1._0_8_ = uVar2;
return auVar1 << 0x40;
}
|
|
10,093 |
js_std_unsetenv
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_unsetenv(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
const char *name;
name = JS_ToCString(ctx, argv[0]);
if (!name)
return JS_EXCEPTION;
unsetenv(name);
JS_FreeCString(ctx, name);
return JS_UNDEFINED;
}
|
O2
|
c
|
js_std_unsetenv:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%r8), %rsi
movq 0x8(%r8), %rdx
callq 0x10ef0
testq %rax, %rax
je 0x113f8
movq %rax, %r14
movq %rax, %rdi
callq 0xe820
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a4db
pushq $0x3
jmp 0x113fa
pushq $0x6
popq %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_std_unsetenv:
push r14
push rbx
push rax
mov rbx, rdi
mov rsi, [r8]
mov rdx, [r8+8]
call JS_ToCString
test rax, rax
jz short loc_113F8
mov r14, rax
mov rdi, rax
call _unsetenv
mov rdi, rbx
mov rsi, r14
call JS_FreeCString
push 3
jmp short loc_113FA
loc_113F8:
push 6
loc_113FA:
pop rdx
xor eax, eax
add rsp, 8
pop rbx
pop r14
retn
|
long long js_std_unsetenv(long long a1, long long a2, long long a3, long long a4, long long *a5)
{
long long v5; // rax
long long v6; // r14
v5 = JS_ToCString(a1, *a5, a5[1]);
if ( v5 )
{
v6 = v5;
unsetenv(v5);
JS_FreeCString(a1, v6);
}
return 0LL;
}
|
js_std_unsetenv:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
CALL 0x00110ef0
TEST RAX,RAX
JZ 0x001113f8
MOV R14,RAX
MOV RDI,RAX
CALL 0x0010e820
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011a4db
PUSH 0x3
JMP 0x001113fa
LAB_001113f8:
PUSH 0x6
LAB_001113fa:
POP RDX
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_std_unsetenv(int8 param_1)
{
int1 auVar1 [16];
char *__name;
int8 *in_R8;
ulong uStack_20;
__name = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]);
if (__name == (char *)0x0) {
uStack_20 = 6;
}
else {
unsetenv(__name);
JS_FreeCString(param_1,__name);
uStack_20 = 3;
}
auVar1._8_8_ = 0;
auVar1._0_8_ = uStack_20;
return auVar1 << 0x40;
}
|
|
10,094 |
js_std_unsetenv
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_unsetenv(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
const char *name;
name = JS_ToCString(ctx, argv[0]);
if (!name)
return JS_EXCEPTION;
unsetenv(name);
JS_FreeCString(ctx, name);
return JS_UNDEFINED;
}
|
O3
|
c
|
js_std_unsetenv:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%r8), %rdx
movq 0x8(%r8), %rcx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x20717
testq %rax, %rax
je 0x16f77
movq %rax, %r14
movq %rax, %rdi
callq 0xe800
movq %rbx, %rdi
movq %r14, %rsi
callq 0x209ed
movl $0x3, %edx
jmp 0x16f7c
movl $0x6, %edx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_std_unsetenv:
push r14
push rbx
push rax
mov rbx, rdi
mov rdx, [r8]
mov rcx, [r8+8]
xor esi, esi
xor r8d, r8d
call JS_ToCStringLen2
test rax, rax
jz short loc_16F77
mov r14, rax
mov rdi, rax
call _unsetenv
mov rdi, rbx
mov rsi, r14
call JS_FreeCString
mov edx, 3
jmp short loc_16F7C
loc_16F77:
mov edx, 6
loc_16F7C:
xor eax, eax
add rsp, 8
pop rbx
pop r14
retn
|
long long js_std_unsetenv(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
long long v5; // rax
long long v6; // r14
v5 = JS_ToCStringLen2(a1, 0LL, *a5, a5[1], 0LL);
if ( v5 )
{
v6 = v5;
unsetenv(v5);
JS_FreeCString(a1, v6);
}
return 0LL;
}
|
js_std_unsetenv:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
XOR ESI,ESI
XOR R8D,R8D
CALL 0x00120717
TEST RAX,RAX
JZ 0x00116f77
MOV R14,RAX
MOV RDI,RAX
CALL 0x0010e800
MOV RDI,RBX
MOV RSI,R14
CALL 0x001209ed
MOV EDX,0x3
JMP 0x00116f7c
LAB_00116f77:
MOV EDX,0x6
LAB_00116f7c:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_std_unsetenv(int8 param_1)
{
int1 auVar1 [16];
char *__name;
ulong uVar2;
int8 *in_R8;
__name = (char *)JS_ToCStringLen2(param_1,0,*in_R8,in_R8[1],0);
if (__name == (char *)0x0) {
uVar2 = 6;
}
else {
unsetenv(__name);
JS_FreeCString(param_1,__name);
uVar2 = 3;
}
auVar1._8_8_ = 0;
auVar1._0_8_ = uVar2;
return auVar1 << 0x40;
}
|
|
10,095 |
ps_fetch_int64
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
static
void ps_fetch_int64(MYSQL_BIND *r_param, const MYSQL_FIELD * const field,
unsigned char **row)
{
switch(r_param->buffer_type)
{
/* case MYSQL_TYPE_TINY:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 1);
break;
case MYSQL_TYPE_YEAR:
case MYSQL_TYPE_SHORT:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 2);
break;
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_LONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 4);
break; */
case MYSQL_TYPE_LONGLONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 8);
break;
default:
{
longlong sval= (longlong)sint8korr(*row);
longlong lval= field->flags & UNSIGNED_FLAG ? (longlong)(ulonglong) sval : (longlong)sval;
convert_from_long(r_param, field, lval, field->flags & UNSIGNED_FLAG);
(*row) += 8;
}
break;
}
}
|
O0
|
c
|
ps_fetch_int64:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %eax
subl $0x8, %eax
jne 0x4977d
jmp 0x49762
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl $0x8, %ecx
callq 0x48310
jmp 0x49856
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
shll $0x18, %ecx
addl %ecx, %eax
movl %eax, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x4(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x5(%rdx), %edx
shll $0x8, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x6(%rdx), %edx
shll $0x10, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x7(%rdx), %edx
shll $0x18, %edx
addl %edx, %ecx
movl %ecx, %ecx
shlq $0x20, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x4981a
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x49822
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
andl $0x20, %eax
movsbl %al, %ecx
callq 0x4a020
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
ps_fetch_int64:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov eax, [rax+60h]
sub eax, 8
jnz short loc_4977D
jmp short $+2
loc_49762:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov ecx, 8
call ps_fetch_from_1_to_8_bytes
jmp loc_49856
loc_4977D:
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
shl ecx, 18h
add eax, ecx
mov eax, eax
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+4]
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+5]
shl edx, 8
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+6]
shl edx, 10h
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+7]
shl edx, 18h
add ecx, edx
mov ecx, ecx
shl rcx, 20h
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov eax, [rax+64h]
and eax, 20h
cmp eax, 0
jz short loc_4981A
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
jmp short loc_49822
loc_4981A:
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
loc_49822:
mov rax, [rbp+var_30]
mov [rbp+var_28], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_28]
mov rax, [rbp+var_10]
mov eax, [rax+64h]
and eax, 20h
movsx ecx, al
call convert_from_long
mov rax, [rbp+var_18]
mov rcx, [rax]
add rcx, 8
mov [rax], rcx
loc_49856:
add rsp, 30h
pop rbp
retn
|
_BYTE ** ps_fetch_int64(long long a1, long long a2, _BYTE **a3)
{
_BYTE **result; // rax
if ( *(_DWORD *)(a1 + 96) == 8 )
return ps_fetch_from_1_to_8_bytes(a1, a2, a3, 8u);
convert_from_long(
a1,
a2,
((unsigned long long)(((unsigned __int8)(*a3)[7] << 24)
+ ((unsigned __int8)(*a3)[6] << 16)
+ ((unsigned __int8)(*a3)[5] << 8)
+ (unsigned int)(unsigned __int8)(*a3)[4]) << 32)
+ ((unsigned __int8)(*a3)[3] << 24)
+ ((unsigned __int8)(*a3)[2] << 16)
+ ((unsigned __int8)(*a3)[1] << 8)
+ (unsigned int)(unsigned __int8)**a3,
*(_BYTE *)(a2 + 100) & 0x20);
result = a3;
*a3 += 8;
return result;
}
|
ps_fetch_int64:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x60]
SUB EAX,0x8
JNZ 0x0014977d
JMP 0x00149762
LAB_00149762:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,0x8
CALL 0x00148310
JMP 0x00149856
LAB_0014977d:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x18
ADD EAX,ECX
MOV EAX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x4]
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x5]
SHL EDX,0x8
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x6]
SHL EDX,0x10
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x7]
SHL EDX,0x18
ADD ECX,EDX
MOV ECX,ECX
SHL RCX,0x20
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x64]
AND EAX,0x20
CMP EAX,0x0
JZ 0x0014981a
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00149822
LAB_0014981a:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
LAB_00149822:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x64]
AND EAX,0x20
MOVSX ECX,AL
CALL 0x0014a020
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
ADD RCX,0x8
MOV qword ptr [RAX],RCX
LAB_00149856:
ADD RSP,0x30
POP RBP
RET
|
void ps_fetch_int64(long param_1,long param_2,long *param_3)
{
if (*(int *)(param_1 + 0x60) == 8) {
ps_fetch_from_1_to_8_bytes(param_1,param_2,param_3,8);
}
else {
convert_from_long(param_1,param_2,
CONCAT44((uint)*(byte *)(*param_3 + 4) + (uint)*(byte *)(*param_3 + 5) * 0x100
+ (uint)*(byte *)(*param_3 + 6) * 0x10000 +
(uint)*(byte *)(*param_3 + 7) * 0x1000000,
(uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 +
(uint)*(byte *)(*param_3 + 2) * 0x10000 +
(uint)*(byte *)(*param_3 + 3) * 0x1000000),
(byte)*(int4 *)(param_2 + 100) & 0x20);
*param_3 = *param_3 + 8;
}
return;
}
|
|
10,096 |
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_string()
|
monkey531[P]llama/common/json.hpp
|
token_type scan_string()
{
// reset token_buffer (ignore opening quote)
reset();
// we entered the function by reading an open quote
JSON_ASSERT(current == '\"');
while (true)
{
// get next character
switch (get())
{
// end of file while parsing string
case char_traits<char_type>::eof():
{
error_message = "invalid string: missing closing quote";
return token_type::parse_error;
}
// closing quote
case '\"':
{
return token_type::value_string;
}
// escapes
case '\\':
{
switch (get())
{
// quotation mark
case '\"':
add('\"');
break;
// reverse solidus
case '\\':
add('\\');
break;
// solidus
case '/':
add('/');
break;
// backspace
case 'b':
add('\b');
break;
// form feed
case 'f':
add('\f');
break;
// line feed
case 'n':
add('\n');
break;
// carriage return
case 'r':
add('\r');
break;
// tab
case 't':
add('\t');
break;
// unicode escapes
case 'u':
{
const int codepoint1 = get_codepoint();
int codepoint = codepoint1; // start with codepoint1
if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if code point is a high surrogate
if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
{
// expect next \uxxxx entry
if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
{
const int codepoint2 = get_codepoint();
if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if codepoint2 is a low surrogate
if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
{
// overwrite codepoint
codepoint = static_cast<int>(
// high surrogate occupies the most significant 22 bits
(static_cast<unsigned int>(codepoint1) << 10u)
// low surrogate occupies the least significant 15 bits
+ static_cast<unsigned int>(codepoint2)
// there is still the 0xD800, 0xDC00 and 0x10000 noise
// in the result, so we have to subtract with:
// (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
- 0x35FDC00u);
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
{
error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
return token_type::parse_error;
}
}
// result of the above calculation yields a proper codepoint
JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
// translate codepoint into bytes
if (codepoint < 0x80)
{
// 1-byte characters: 0xxxxxxx (ASCII)
add(static_cast<char_int_type>(codepoint));
}
else if (codepoint <= 0x7FF)
{
// 2-byte characters: 110xxxxx 10xxxxxx
add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else if (codepoint <= 0xFFFF)
{
// 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else
{
// 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
break;
}
// other characters after escape
default:
error_message = "invalid string: forbidden character after backslash";
return token_type::parse_error;
}
break;
}
// invalid control characters
case 0x00:
{
error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
return token_type::parse_error;
}
case 0x01:
{
error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
return token_type::parse_error;
}
case 0x02:
{
error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
return token_type::parse_error;
}
case 0x03:
{
error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
return token_type::parse_error;
}
case 0x04:
{
error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
return token_type::parse_error;
}
case 0x05:
{
error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
return token_type::parse_error;
}
case 0x06:
{
error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
return token_type::parse_error;
}
case 0x07:
{
error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
return token_type::parse_error;
}
case 0x08:
{
error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
return token_type::parse_error;
}
case 0x09:
{
error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
return token_type::parse_error;
}
case 0x0A:
{
error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
return token_type::parse_error;
}
case 0x0B:
{
error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
return token_type::parse_error;
}
case 0x0C:
{
error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
return token_type::parse_error;
}
case 0x0D:
{
error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
return token_type::parse_error;
}
case 0x0E:
{
error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
return token_type::parse_error;
}
case 0x0F:
{
error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
return token_type::parse_error;
}
case 0x10:
{
error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
return token_type::parse_error;
}
case 0x11:
{
error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
return token_type::parse_error;
}
case 0x12:
{
error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
return token_type::parse_error;
}
case 0x13:
{
error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
return token_type::parse_error;
}
case 0x14:
{
error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
return token_type::parse_error;
}
case 0x15:
{
error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
return token_type::parse_error;
}
case 0x16:
{
error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
return token_type::parse_error;
}
case 0x17:
{
error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
return token_type::parse_error;
}
case 0x18:
{
error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
return token_type::parse_error;
}
case 0x19:
{
error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
return token_type::parse_error;
}
case 0x1A:
{
error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
return token_type::parse_error;
}
case 0x1B:
{
error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
return token_type::parse_error;
}
case 0x1C:
{
error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
return token_type::parse_error;
}
case 0x1D:
{
error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
return token_type::parse_error;
}
case 0x1E:
{
error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
return token_type::parse_error;
}
case 0x1F:
{
error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
return token_type::parse_error;
}
// U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2A:
case 0x2B:
case 0x2C:
case 0x2D:
case 0x2E:
case 0x2F:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3A:
case 0x3B:
case 0x3C:
case 0x3D:
case 0x3E:
case 0x3F:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4A:
case 0x4B:
case 0x4C:
case 0x4D:
case 0x4E:
case 0x4F:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5A:
case 0x5B:
case 0x5D:
case 0x5E:
case 0x5F:
case 0x60:
case 0x61:
case 0x62:
case 0x63:
case 0x64:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6A:
case 0x6B:
case 0x6C:
case 0x6D:
case 0x6E:
case 0x6F:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7A:
case 0x7B:
case 0x7C:
case 0x7D:
case 0x7E:
case 0x7F:
{
add(current);
break;
}
// U+0080..U+07FF: bytes C2..DF 80..BF
case 0xC2:
case 0xC3:
case 0xC4:
case 0xC5:
case 0xC6:
case 0xC7:
case 0xC8:
case 0xC9:
case 0xCA:
case 0xCB:
case 0xCC:
case 0xCD:
case 0xCE:
case 0xCF:
case 0xD0:
case 0xD1:
case 0xD2:
case 0xD3:
case 0xD4:
case 0xD5:
case 0xD6:
case 0xD7:
case 0xD8:
case 0xD9:
case 0xDA:
case 0xDB:
case 0xDC:
case 0xDD:
case 0xDE:
case 0xDF:
{
if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
{
return token_type::parse_error;
}
break;
}
// U+0800..U+0FFF: bytes E0 A0..BF 80..BF
case 0xE0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
// U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
case 0xE1:
case 0xE2:
case 0xE3:
case 0xE4:
case 0xE5:
case 0xE6:
case 0xE7:
case 0xE8:
case 0xE9:
case 0xEA:
case 0xEB:
case 0xEC:
case 0xEE:
case 0xEF:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+D000..U+D7FF: bytes ED 80..9F 80..BF
case 0xED:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
case 0xF0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
case 0xF1:
case 0xF2:
case 0xF3:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
case 0xF4:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// remaining bytes (80..C1 and F5..FF) are ill-formed
default:
{
error_message = "invalid string: ill-formed UTF-8 byte";
return token_type::parse_error;
}
}
}
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_string():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x44066
cmpl $0x22, 0x14(%rbx)
jne 0x43c24
leaq 0x50(%rbx), %r14
leaq 0x49ea3(%rip), %r12 # 0x8d6d0
pushq $0xe
popq %rbp
movq %rbx, %rdi
callq 0x43f8c
incl %eax
cmpl $0xf5, %eax
ja 0x43bf6
movslq (%r12,%rax,4), %rcx
addq %r12, %rcx
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
jmpq *%rcx
movb 0x14(%rbx), %r15b
movsbl %r15b, %esi
movq %r14, %rdi
callq 0x205c0
jmp 0x43830
movq %rsp, %rsi
movq %rax, (%rsi)
pushq $0x2
jmp 0x43902
movaps 0x49ce2(%rip), %xmm0 # 0x8d560
movq %rsp, %rsi
movaps %xmm0, (%rsi)
pushq $0x4
jmp 0x43902
movups 0x49ae9(%rip), %xmm0 # 0x8d378
jmp 0x438f6
movaps 0x49cb8(%rip), %xmm0 # 0x8d550
jmp 0x4387e
movq %rbx, %rdi
callq 0x43f8c
leaq 0x4c778(%rip), %r13 # 0x90021
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x43924
cmpl $0x22, %eax
je 0x43a1d
cmpl $0x2f, %eax
je 0x43a2d
cmpl $0x66, %eax
je 0x43a25
cmpl $0x62, %eax
je 0x43a35
cmpl $0x5c, %eax
jne 0x43bfd
movb $0x5c, %r15b
jmp 0x4385c
movups 0x49aa3(%rip), %xmm0 # 0x8d390
jmp 0x438f6
movups 0x49a6a(%rip), %xmm0 # 0x8d360
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rax, 0x10(%rsi)
pushq $0x6
popq %rdx
movq %rbx, %rdi
callq 0x44168
testb %al, %al
jne 0x43830
jmp 0x43c01
movaps 0x49c51(%rip), %xmm0 # 0x8d570
jmp 0x4387e
leaq 0x4a17d(%rip), %rax # 0x8daa8
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movb $0xa, %r15b
jmp 0x4385c
movb $0xd, %r15b
jmp 0x4385c
movq %rbx, %rdi
callq 0x440a2
leaq 0x4c5dd(%rip), %r13 # 0x8ff30
cmpl $-0x1, %eax
je 0x43bfd
movl %eax, %r15d
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x43a3d
movq %rbx, %rdi
callq 0x43f8c
cmpl $0x5c, %eax
jne 0x43c12
movq %rbx, %rdi
callq 0x43f8c
cmpl $0x75, %eax
jne 0x43c12
movq %rbx, %rdi
callq 0x440a2
cmpl $-0x1, %eax
je 0x43bfd
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
leaq 0x4c5b5(%rip), %r13 # 0x8ff66
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x43bfd
shll $0xa, %r15d
addl %eax, %r15d
addl $0xfca02400, %r15d # imm = 0xFCA02400
movl %r15d, %eax
shrl $0x12, %eax
orb $-0x10, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x205c0
movl %r15d, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x205c0
movl %r15d, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x205c0
andb $0x3f, %r15b
orb $-0x80, %r15b
jmp 0x4385c
movb $0x9, %r15b
jmp 0x4385c
movb $0x22, %r15b
jmp 0x4385c
movb $0xc, %r15b
jmp 0x4385c
movb $0x2f, %r15b
jmp 0x4385c
movb $0x8, %r15b
jmp 0x4385c
cmpl $0xdc00, %eax # imm = 0xDC00
je 0x43c1b
cmpl $0x110000, %r15d # imm = 0x110000
jae 0x43c45
cmpl $0x7f, %r15d
jbe 0x4385c
cmpl $0x7ff, %r15d # imm = 0x7FF
ja 0x43a72
movl %r15d, %eax
shrl $0x6, %eax
orb $-0x40, %al
jmp 0x439fd
cmpl $0xffff, %r15d # imm = 0xFFFF
ja 0x439cb
movl %r15d, %eax
shrl $0xc, %eax
orb $-0x20, %al
jmp 0x439e8
leaq 0x4ce63(%rip), %r13 # 0x908f6
jmp 0x43bfd
leaq 0x4cced(%rip), %r13 # 0x9078c
jmp 0x43bfd
leaq 0x4cb2b(%rip), %r13 # 0x905d6
jmp 0x43bfd
leaq 0x4c918(%rip), %r13 # 0x903cf
jmp 0x43bfd
leaq 0x4cb5c(%rip), %r13 # 0x9061f
jmp 0x43bfd
leaq 0x4c94e(%rip), %r13 # 0x9041d
jmp 0x43bfd
leaq 0x4cc1f(%rip), %r13 # 0x906fa
jmp 0x43bfd
leaq 0x4cdc7(%rip), %r13 # 0x908ae
jmp 0x43bfd
leaq 0x4c6cf(%rip), %r13 # 0x901c2
jmp 0x43bfd
leaq 0x4ca8e(%rip), %r13 # 0x9058d
jmp 0x43bfd
leaq 0x4cc38(%rip), %r13 # 0x90743
jmp 0x43bfd
leaq 0x4c662(%rip), %r13 # 0x90179
jmp 0x43bfd
leaq 0x4c60d(%rip), %r13 # 0x90130
jmp 0x43bfd
leaq 0x4c80a(%rip), %r13 # 0x90339
jmp 0x43bfd
leaq 0x4c6d0(%rip), %r13 # 0x9020b
jmp 0x43bfd
leaq 0x4ccd6(%rip), %r13 # 0x9081d
jmp 0x43bfd
leaq 0x4c594(%rip), %r13 # 0x900e7
jmp 0x43bfd
leaq 0x4c3ab(%rip), %r13 # 0x8ff0a
jmp 0x43bfd
leaq 0x4c990(%rip), %r13 # 0x904fb
jmp 0x43bfd
leaq 0x4c527(%rip), %r13 # 0x9009e
jmp 0x43bfd
leaq 0x4c4d2(%rip), %r13 # 0x90055
jmp 0x43bfd
leaq 0x4c9b8(%rip), %r13 # 0x90544
jmp 0x43bfd
leaq 0x4c756(%rip), %r13 # 0x902eb
jmp 0x43bfd
leaq 0x4cda0(%rip), %r13 # 0x9093e
jmp 0x43bfd
leaq 0x4c6ad(%rip), %r13 # 0x90254
jmp 0x43bfd
leaq 0x4cb01(%rip), %r13 # 0x906b1
jmp 0x43bfd
leaq 0x4c7ce(%rip), %r13 # 0x90387
jmp 0x43bfd
leaq 0x4c8a9(%rip), %r13 # 0x9046b
jmp 0x43bfd
leaq 0x4c6d2(%rip), %r13 # 0x9029d
jmp 0x43bfd
leaq 0x4ca94(%rip), %r13 # 0x90668
jmp 0x43bfd
leaq 0x4cbf7(%rip), %r13 # 0x907d4
jmp 0x43bfd
leaq 0x4c8cd(%rip), %r13 # 0x904b3
jmp 0x43bfd
leaq 0x4cc77(%rip), %r13 # 0x90866
jmp 0x43bfd
pushq $0x4
popq %rbp
jmp 0x43c01
leaq 0x4cd89(%rip), %r13 # 0x90986
movq %r13, 0x70(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4c34d(%rip), %r13 # 0x8ff66
jmp 0x43bfd
leaq 0x4c390(%rip), %r13 # 0x8ffb2
jmp 0x43bfd
leaq 0x4bb42(%rip), %rdi # 0x8f76d
leaq 0x4a30f(%rip), %rdx # 0x8df41
leaq 0x4c2c1(%rip), %rcx # 0x8fefa
movl $0x1dd1, %esi # imm = 0x1DD1
xorl %eax, %eax
callq 0x20b40
leaq 0x4bb21(%rip), %rdi # 0x8f76d
leaq 0x4a2ee(%rip), %rdx # 0x8df41
leaq 0x4c39c(%rip), %rcx # 0x8fff6
movl $0x1e49, %esi # imm = 0x1E49
jmp 0x43c3e
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void)
cmp dword ptr [rbx+14h], 22h ; '"'
jnz loc_43C24
lea r14, [rbx+50h]
lea r12, jpt_43856
push 0Eh
pop rbp
loc_43830:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
inc eax; switch 246 cases
cmp eax, 0F5h
ja def_43856; jumptable 0000000000043856 default case, cases 128-193
movsxd rcx, ds:(jpt_43856 - 8D6D0h)[r12+rax*4]
add rcx, r12
mov rax, 0BF00000080h
jmp rcx; switch jump
loc_43858:
mov r15b, [rbx+14h]; jumptable 0000000000043856 cases 32,33,35-91,93-127
loc_4385C:
movsx esi, r15b
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_43830
loc_4386A:
mov rsi, rsp; jumptable 0000000000043856 cases 194-223
mov [rsi], rax
push 2
jmp loc_43902
loc_43877:
movaps xmm0, cs:xmmword_8D560; jumptable 0000000000043856 cases 225-236,238,239
loc_4387E:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
push 4
jmp short loc_43902
loc_43888:
movups xmm0, cs:xmmword_8D378; jumptable 0000000000043856 cases 241-243
jmp short loc_438F6
loc_43891:
movaps xmm0, cs:xmmword_8D550; jumptable 0000000000043856 case 237
jmp short loc_4387E
loc_4389A:
mov rdi, rbx; jumptable 0000000000043856 case 92
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea r13, aInvalidStringF; "invalid string: forbidden character aft"...
lea ecx, [rax-6Eh]; switch 8 cases
cmp ecx, 7
jbe short loc_43924
def_43932:
cmp eax, 22h ; '"'; jumptable 0000000000043932 default case
jz loc_43A1D
cmp eax, 2Fh ; '/'
jz loc_43A2D
cmp eax, 66h ; 'f'
jz loc_43A25
cmp eax, 62h ; 'b'
jz loc_43A35
cmp eax, 5Ch ; '\'
jnz loc_43BFD; jumptable 0000000000043932 cases 111-113,115
mov r15b, 5Ch ; '\'
jmp loc_4385C
loc_438E6:
movups xmm0, cs:xmmword_8D390; jumptable 0000000000043856 case 244
jmp short loc_438F6
loc_438EF:
movups xmm0, cs:xmmword_8D360; jumptable 0000000000043856 case 240
loc_438F6:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov [rsi+10h], rax
push 6
loc_43902:
pop rdx
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(std::initializer_list<int>)
test al, al
jnz loc_43830
jmp loc_43C01
loc_43918:
movaps xmm0, cs:xmmword_8D570; jumptable 0000000000043856 case 224
jmp loc_4387E
loc_43924:
lea rax, jpt_43932
movsxd rcx, ds:(jpt_43932 - 8DAA8h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_43934:
mov r15b, 0Ah; jumptable 0000000000043932 case 110
jmp loc_4385C
loc_4393C:
mov r15b, 0Dh; jumptable 0000000000043932 case 114
jmp loc_4385C
loc_43944:
mov rdi, rbx; jumptable 0000000000043932 case 117
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void)
lea r13, aInvalidStringU; "invalid string: '\\u' must be followed "...
cmp eax, 0FFFFFFFFh
jz loc_43BFD; jumptable 0000000000043932 cases 111-113,115
mov r15d, eax
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz loc_43A3D
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 5Ch ; '\'
jnz loc_43C12
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 75h ; 'u'
jnz loc_43C12
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void)
cmp eax, 0FFFFFFFFh
jz loc_43BFD; jumptable 0000000000043932 cases 111-113,115
mov ecx, eax
and ecx, 0FFFFFC00h
lea r13, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
cmp ecx, 0DC00h
jnz loc_43BFD; jumptable 0000000000043932 cases 111-113,115
shl r15d, 0Ah
add r15d, eax
add r15d, 0FCA02400h
loc_439CB:
mov eax, r15d
shr eax, 12h
or al, 0F0h
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 0Ch
and al, 3Fh
or al, 80h
loc_439E8:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 6
and al, 3Fh
or al, 80h
loc_439FD:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
and r15b, 3Fh
or r15b, 80h
jmp loc_4385C
loc_43A15:
mov r15b, 9; jumptable 0000000000043932 case 116
jmp loc_4385C
loc_43A1D:
mov r15b, 22h ; '"'
jmp loc_4385C
loc_43A25:
mov r15b, 0Ch
jmp loc_4385C
loc_43A2D:
mov r15b, 2Fh ; '/'
jmp loc_4385C
loc_43A35:
mov r15b, 8
jmp loc_4385C
loc_43A3D:
cmp eax, 0DC00h
jz loc_43C1B
cmp r15d, 110000h
jnb loc_43C45
cmp r15d, 7Fh
jbe loc_4385C
cmp r15d, 7FFh
ja short loc_43A72
mov eax, r15d
shr eax, 6
or al, 0C0h
jmp short loc_439FD
loc_43A72:
cmp r15d, 0FFFFh
ja loc_439CB
mov eax, r15d
shr eax, 0Ch
or al, 0E0h
jmp loc_439E8
loc_43A8C:
lea r13, aInvalidStringC; jumptable 0000000000043856 case 30
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43A98:
lea r13, aInvalidStringC_0; jumptable 0000000000043856 case 25
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AA4:
lea r13, aInvalidStringC_1; jumptable 0000000000043856 case 19
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AB0:
lea r13, aInvalidStringC_2; jumptable 0000000000043856 case 12
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43ABC:
lea r13, aInvalidStringC_3; jumptable 0000000000043856 case 20
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AC8:
lea r13, aInvalidStringC_4; jumptable 0000000000043856 case 13
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AD4:
lea r13, aInvalidStringC_5; jumptable 0000000000043856 case 23
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AE0:
lea r13, aInvalidStringC_6; jumptable 0000000000043856 case 29
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AEC:
lea r13, aInvalidStringC_7; jumptable 0000000000043856 case 5
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43AF8:
lea r13, aInvalidStringC_8; jumptable 0000000000043856 case 18
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B04:
lea r13, aInvalidStringC_9; jumptable 0000000000043856 case 24
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B10:
lea r13, aInvalidStringC_10; jumptable 0000000000043856 case 4
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B1C:
lea r13, aInvalidStringC_11; jumptable 0000000000043856 case 3
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B28:
lea r13, aInvalidStringC_12; jumptable 0000000000043856 case 10
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B34:
lea r13, aInvalidStringC_13; jumptable 0000000000043856 case 6
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B40:
lea r13, aInvalidStringC_14; jumptable 0000000000043856 case 27
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B4C:
lea r13, aInvalidStringC_15; jumptable 0000000000043856 case 2
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B58:
lea r13, aInvalidStringM; jumptable 0000000000043856 case -1
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B64:
lea r13, aInvalidStringC_16; jumptable 0000000000043856 case 16
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B70:
lea r13, aInvalidStringC_17; jumptable 0000000000043856 case 1
jmp loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B7C:
lea r13, aInvalidStringC_18; jumptable 0000000000043856 case 0
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B85:
lea r13, aInvalidStringC_19; jumptable 0000000000043856 case 17
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B8E:
lea r13, aInvalidStringC_20; jumptable 0000000000043856 case 9
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43B97:
lea r13, aInvalidStringC_21; jumptable 0000000000043856 case 31
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BA0:
lea r13, aInvalidStringC_22; jumptable 0000000000043856 case 7
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BA9:
lea r13, aInvalidStringC_23; jumptable 0000000000043856 case 22
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BB2:
lea r13, aInvalidStringC_24; jumptable 0000000000043856 case 11
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BBB:
lea r13, aInvalidStringC_25; jumptable 0000000000043856 case 14
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BC4:
lea r13, aInvalidStringC_26; jumptable 0000000000043856 case 8
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BCD:
lea r13, aInvalidStringC_27; jumptable 0000000000043856 case 21
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BD6:
lea r13, aInvalidStringC_28; jumptable 0000000000043856 case 26
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BDF:
lea r13, aInvalidStringC_29; jumptable 0000000000043856 case 15
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BE8:
lea r13, aInvalidStringC_30; jumptable 0000000000043856 case 28
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43BF1:
push 4; jumptable 0000000000043856 case 34
pop rbp
jmp short loc_43C01
def_43856:
lea r13, aInvalidStringI; jumptable 0000000000043856 default case, cases 128-193
loc_43BFD:
mov [rbx+70h], r13; jumptable 0000000000043932 cases 111-113,115
loc_43C01:
mov eax, ebp
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_43C12:
lea r13, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43C1B:
lea r13, aInvalidStringS_0; "invalid string: surrogate U+DC00..U+DFF"...
jmp short loc_43BFD; jumptable 0000000000043932 cases 111-113,115
loc_43C24:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurrent; "current == '\\\"'"
mov esi, 1DD1h
loc_43C3E:
xor eax, eax
call _ggml_abort
loc_43C45:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, a0x00CodepointC; "0x00 <= codepoint && codepoint <= 0x10F"...
mov esi, 1E49h
jmp short loc_43C3E
|
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(
long long a1)
{
unsigned int v1; // ebp
long long v2; // rcx
long long v3; // r8
long long v4; // r9
unsigned int v5; // r15d
char byte_in_range; // al
__int128 v7; // xmm0
__int128 v8; // xmm0
int v9; // eax
const char *v10; // r13
unsigned int codepoint; // eax
unsigned int v12; // eax
int v13; // eax
char v14; // al
char v15; // al
_QWORD v17[2]; // [rsp+0h] [rbp-48h] BYREF
long long v18; // [rsp+10h] [rbp-38h]
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset();
if ( *(_DWORD *)(a1 + 20) != 34 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7633LL,
"GGML_ASSERT(%s) failed",
"current == '\\\"'");
while ( 1 )
LABEL_89:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7753LL,
"GGML_ASSERT(%s) failed",
"0x00 <= codepoint && codepoint <= 0x10FFFF");
}
v1 = 14;
while ( 2 )
{
while ( 2 )
{
switch ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) )
{
case 0xFFFFFFFF:
v10 = "invalid string: missing closing quote";
goto LABEL_84;
case 0u:
v10 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
goto LABEL_84;
case 1u:
v10 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
goto LABEL_84;
case 2u:
v10 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
goto LABEL_84;
case 3u:
v10 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
goto LABEL_84;
case 4u:
v10 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
goto LABEL_84;
case 5u:
v10 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
goto LABEL_84;
case 6u:
v10 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
goto LABEL_84;
case 7u:
v10 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
goto LABEL_84;
case 8u:
v10 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
goto LABEL_84;
case 9u:
v10 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
goto LABEL_84;
case 0xAu:
v10 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
goto LABEL_84;
case 0xBu:
v10 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
goto LABEL_84;
case 0xCu:
v10 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
goto LABEL_84;
case 0xDu:
v10 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
goto LABEL_84;
case 0xEu:
v10 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
goto LABEL_84;
case 0xFu:
v10 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
goto LABEL_84;
case 0x10u:
v10 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
goto LABEL_84;
case 0x11u:
v10 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
goto LABEL_84;
case 0x12u:
v10 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
goto LABEL_84;
case 0x13u:
v10 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
goto LABEL_84;
case 0x14u:
v10 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
goto LABEL_84;
case 0x15u:
v10 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
goto LABEL_84;
case 0x16u:
v10 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
goto LABEL_84;
case 0x17u:
v10 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
goto LABEL_84;
case 0x18u:
v10 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
goto LABEL_84;
case 0x19u:
v10 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
goto LABEL_84;
case 0x1Au:
v10 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
goto LABEL_84;
case 0x1Bu:
v10 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
goto LABEL_84;
case 0x1Cu:
v10 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
goto LABEL_84;
case 0x1Du:
v10 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
goto LABEL_84;
case 0x1Eu:
v10 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
goto LABEL_84;
case 0x1Fu:
v10 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
goto LABEL_84;
case 0x20u:
case 0x21u:
case 0x23u:
case 0x24u:
case 0x25u:
case 0x26u:
case 0x27u:
case 0x28u:
case 0x29u:
case 0x2Au:
case 0x2Bu:
case 0x2Cu:
case 0x2Du:
case 0x2Eu:
case 0x2Fu:
case 0x30u:
case 0x31u:
case 0x32u:
case 0x33u:
case 0x34u:
case 0x35u:
case 0x36u:
case 0x37u:
case 0x38u:
case 0x39u:
case 0x3Au:
case 0x3Bu:
case 0x3Cu:
case 0x3Du:
case 0x3Eu:
case 0x3Fu:
case 0x40u:
case 0x41u:
case 0x42u:
case 0x43u:
case 0x44u:
case 0x45u:
case 0x46u:
case 0x47u:
case 0x48u:
case 0x49u:
case 0x4Au:
case 0x4Bu:
case 0x4Cu:
case 0x4Du:
case 0x4Eu:
case 0x4Fu:
case 0x50u:
case 0x51u:
case 0x52u:
case 0x53u:
case 0x54u:
case 0x55u:
case 0x56u:
case 0x57u:
case 0x58u:
case 0x59u:
case 0x5Au:
case 0x5Bu:
case 0x5Du:
case 0x5Eu:
case 0x5Fu:
case 0x60u:
case 0x61u:
case 0x62u:
case 0x63u:
case 0x64u:
case 0x65u:
case 0x66u:
case 0x67u:
case 0x68u:
case 0x69u:
case 0x6Au:
case 0x6Bu:
case 0x6Cu:
case 0x6Du:
case 0x6Eu:
case 0x6Fu:
case 0x70u:
case 0x71u:
case 0x72u:
case 0x73u:
case 0x74u:
case 0x75u:
case 0x76u:
case 0x77u:
case 0x78u:
case 0x79u:
case 0x7Au:
case 0x7Bu:
case 0x7Cu:
case 0x7Du:
case 0x7Eu:
case 0x7Fu:
LOBYTE(v5) = *(_BYTE *)(a1 + 20);
goto LABEL_5;
case 0x22u:
return 4;
case 0x5Cu:
v9 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
v10 = "invalid string: forbidden character after backslash";
break;
case 0xC2u:
case 0xC3u:
case 0xC4u:
case 0xC5u:
case 0xC6u:
case 0xC7u:
case 0xC8u:
case 0xC9u:
case 0xCAu:
case 0xCBu:
case 0xCCu:
case 0xCDu:
case 0xCEu:
case 0xCFu:
case 0xD0u:
case 0xD1u:
case 0xD2u:
case 0xD3u:
case 0xD4u:
case 0xD5u:
case 0xD6u:
case 0xD7u:
case 0xD8u:
case 0xD9u:
case 0xDAu:
case 0xDBu:
case 0xDCu:
case 0xDDu:
case 0xDEu:
case 0xDFu:
byte_in_range = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
v17,
2LL,
v2,
v3,
v4,
0xBF00000080LL,
v17[1],
v18);
goto LABEL_21;
case 0xE0u:
v7 = xmmword_8D570;
goto LABEL_8;
case 0xE1u:
case 0xE2u:
case 0xE3u:
case 0xE4u:
case 0xE5u:
case 0xE6u:
case 0xE7u:
case 0xE8u:
case 0xE9u:
case 0xEAu:
case 0xEBu:
case 0xECu:
case 0xEEu:
case 0xEFu:
v7 = xmmword_8D560;
goto LABEL_8;
case 0xEDu:
v7 = xmmword_8D550;
LABEL_8:
byte_in_range = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
v17,
4LL,
v2,
v3,
v4,
v7,
*((_QWORD *)&v7 + 1),
v18);
goto LABEL_21;
case 0xF0u:
v8 = xmmword_8D360;
goto LABEL_20;
case 0xF1u:
case 0xF2u:
case 0xF3u:
v8 = xmmword_8D378;
goto LABEL_20;
case 0xF4u:
v8 = xmmword_8D390;
LABEL_20:
byte_in_range = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
v17,
6LL,
v2,
v3,
v4,
v8,
*((_QWORD *)&v8 + 1),
0xBF00000080LL);
LABEL_21:
if ( !byte_in_range )
return v1;
continue;
default:
v10 = "invalid string: ill-formed UTF-8 byte";
goto LABEL_84;
}
break;
}
switch ( v9 )
{
case 'n':
LOBYTE(v5) = 10;
goto LABEL_5;
case 'o':
case 'p':
case 'q':
case 's':
goto LABEL_84;
case 'r':
LOBYTE(v5) = 13;
goto LABEL_5;
case 't':
LOBYTE(v5) = 9;
goto LABEL_5;
case 'u':
codepoint = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(a1);
v10 = "invalid string: '\\u' must be followed by 4 hex digits";
if ( codepoint == -1 )
goto LABEL_84;
v5 = codepoint;
v12 = codepoint & 0xFFFFFC00;
if ( v12 != 55296 )
{
if ( v12 == 56320 )
{
v10 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto LABEL_84;
}
if ( v5 >= 0x110000 )
goto LABEL_89;
if ( v5 > 0x7F )
{
if ( v5 <= 0x7FF )
{
v15 = (v5 >> 6) | 0xC0;
goto LABEL_36;
}
if ( v5 <= 0xFFFF )
{
v14 = (v5 >> 12) | 0xE0;
goto LABEL_35;
}
LABEL_34:
std::string::push_back(a1 + 80, (unsigned int)(char)((v5 >> 18) | 0xF0));
v14 = (v5 >> 12) & 0x3F | 0x80;
LABEL_35:
std::string::push_back(a1 + 80, (unsigned int)v14);
v15 = (v5 >> 6) & 0x3F | 0x80;
LABEL_36:
std::string::push_back(a1 + 80, (unsigned int)v15);
LOBYTE(v5) = v5 & 0x3F | 0x80;
}
LABEL_5:
std::string::push_back(a1 + 80, (unsigned int)(char)v5);
continue;
}
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 92
&& (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 117 )
{
v13 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(a1);
if ( v13 == -1 )
goto LABEL_84;
v10 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
if ( (v13 & 0xFFFFFC00) != 0xDC00 )
goto LABEL_84;
v5 = v13 + (v5 << 10) - 56613888;
goto LABEL_34;
}
v10 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
LABEL_84:
*(_QWORD *)(a1 + 112) = v10;
return v1;
default:
switch ( v9 )
{
case '"':
LOBYTE(v5) = 34;
break;
case '/':
LOBYTE(v5) = 47;
break;
case 'f':
LOBYTE(v5) = 12;
break;
case 'b':
LOBYTE(v5) = 8;
break;
case '\\':
LOBYTE(v5) = 92;
break;
default:
goto LABEL_84;
}
goto LABEL_5;
}
}
}
|
scan_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CALL 0x00144066
CMP dword ptr [RBX + 0x14],0x22
JNZ 0x00143c24
LEA R14,[RBX + 0x50]
LEA R12,[0x18d6d0]
PUSH 0xe
POP RBP
LAB_00143830:
MOV RDI,RBX
CALL 0x00143f8c
INC EAX
CMP EAX,0xf5
JA 0x00143bf6
MOVSXD RCX,dword ptr [R12 + RAX*0x4]
ADD RCX,R12
MOV RAX,0xbf00000080
switchD:
JMP RCX
caseD_20:
MOV R15B,byte ptr [RBX + 0x14]
LAB_0014385c:
MOVSX ESI,R15B
MOV RDI,R14
CALL 0x001205c0
JMP 0x00143830
caseD_c2:
MOV RSI,RSP
MOV qword ptr [RSI],RAX
PUSH 0x2
JMP 0x00143902
caseD_e1:
MOVAPS XMM0,xmmword ptr [0x0018d560]
LAB_0014387e:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
PUSH 0x4
JMP 0x00143902
caseD_f1:
MOVUPS XMM0,xmmword ptr [0x0018d378]
JMP 0x001438f6
caseD_ed:
MOVAPS XMM0,xmmword ptr [0x0018d550]
JMP 0x0014387e
caseD_5c:
MOV RDI,RBX
CALL 0x00143f8c
LEA R13,[0x190021]
LEA ECX,[RAX + -0x6e]
CMP ECX,0x7
JBE 0x00143924
default:
CMP EAX,0x22
JZ 0x00143a1d
CMP EAX,0x2f
JZ 0x00143a2d
CMP EAX,0x66
JZ 0x00143a25
CMP EAX,0x62
JZ 0x00143a35
CMP EAX,0x5c
JNZ 0x00143bfd
MOV R15B,0x5c
JMP 0x0014385c
caseD_f4:
MOVUPS XMM0,xmmword ptr [0x0018d390]
JMP 0x001438f6
caseD_f0:
MOVUPS XMM0,xmmword ptr [0x0018d360]
LAB_001438f6:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],RAX
PUSH 0x6
LAB_00143902:
POP RDX
MOV RDI,RBX
CALL 0x00144168
TEST AL,AL
JNZ 0x00143830
JMP 0x00143c01
caseD_e0:
MOVAPS XMM0,xmmword ptr [0x0018d570]
JMP 0x0014387e
LAB_00143924:
LEA RAX,[0x18daa8]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_6e:
MOV R15B,0xa
JMP 0x0014385c
caseD_72:
MOV R15B,0xd
JMP 0x0014385c
caseD_75:
MOV RDI,RBX
CALL 0x001440a2
LEA R13,[0x18ff30]
CMP EAX,-0x1
JZ 0x00143bfd
MOV R15D,EAX
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x00143a3d
MOV RDI,RBX
CALL 0x00143f8c
CMP EAX,0x5c
JNZ 0x00143c12
MOV RDI,RBX
CALL 0x00143f8c
CMP EAX,0x75
JNZ 0x00143c12
MOV RDI,RBX
CALL 0x001440a2
CMP EAX,-0x1
JZ 0x00143bfd
MOV ECX,EAX
AND ECX,0xfffffc00
LEA R13,[0x18ff66]
CMP ECX,0xdc00
JNZ 0x00143bfd
SHL R15D,0xa
ADD R15D,EAX
ADD R15D,0xfca02400
LAB_001439cb:
MOV EAX,R15D
SHR EAX,0x12
OR AL,0xf0
MOVSX ESI,AL
MOV RDI,R14
CALL 0x001205c0
MOV EAX,R15D
SHR EAX,0xc
AND AL,0x3f
OR AL,0x80
LAB_001439e8:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x001205c0
MOV EAX,R15D
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
LAB_001439fd:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x001205c0
AND R15B,0x3f
OR R15B,0x80
JMP 0x0014385c
caseD_74:
MOV R15B,0x9
JMP 0x0014385c
LAB_00143a1d:
MOV R15B,0x22
JMP 0x0014385c
LAB_00143a25:
MOV R15B,0xc
JMP 0x0014385c
LAB_00143a2d:
MOV R15B,0x2f
JMP 0x0014385c
LAB_00143a35:
MOV R15B,0x8
JMP 0x0014385c
LAB_00143a3d:
CMP EAX,0xdc00
JZ 0x00143c1b
CMP R15D,0x110000
JNC 0x00143c45
CMP R15D,0x7f
JBE 0x0014385c
CMP R15D,0x7ff
JA 0x00143a72
MOV EAX,R15D
SHR EAX,0x6
OR AL,0xc0
JMP 0x001439fd
LAB_00143a72:
CMP R15D,0xffff
JA 0x001439cb
MOV EAX,R15D
SHR EAX,0xc
OR AL,0xe0
JMP 0x001439e8
caseD_1e:
LEA R13,[0x1908f6]
JMP 0x00143bfd
caseD_19:
LEA R13,[0x19078c]
JMP 0x00143bfd
caseD_13:
LEA R13,[0x1905d6]
JMP 0x00143bfd
caseD_c:
LEA R13,[0x1903cf]
JMP 0x00143bfd
caseD_14:
LEA R13,[0x19061f]
JMP 0x00143bfd
caseD_d:
LEA R13,[0x19041d]
JMP 0x00143bfd
caseD_17:
LEA R13,[0x1906fa]
JMP 0x00143bfd
caseD_1d:
LEA R13,[0x1908ae]
JMP 0x00143bfd
caseD_5:
LEA R13,[0x1901c2]
JMP 0x00143bfd
caseD_12:
LEA R13,[0x19058d]
JMP 0x00143bfd
caseD_18:
LEA R13,[0x190743]
JMP 0x00143bfd
caseD_4:
LEA R13,[0x190179]
JMP 0x00143bfd
caseD_3:
LEA R13,[0x190130]
JMP 0x00143bfd
caseD_a:
LEA R13,[0x190339]
JMP 0x00143bfd
caseD_6:
LEA R13,[0x19020b]
JMP 0x00143bfd
caseD_1b:
LEA R13,[0x19081d]
JMP 0x00143bfd
caseD_2:
LEA R13,[0x1900e7]
JMP 0x00143bfd
caseD_ffffffff:
LEA R13,[0x18ff0a]
JMP 0x00143bfd
caseD_10:
LEA R13,[0x1904fb]
JMP 0x00143bfd
caseD_1:
LEA R13,[0x19009e]
JMP 0x00143bfd
caseD_0:
LEA R13,[0x190055]
JMP 0x00143bfd
caseD_11:
LEA R13,[0x190544]
JMP 0x00143bfd
caseD_9:
LEA R13,[0x1902eb]
JMP 0x00143bfd
caseD_1f:
LEA R13,[0x19093e]
JMP 0x00143bfd
caseD_7:
LEA R13,[0x190254]
JMP 0x00143bfd
caseD_16:
LEA R13,[0x1906b1]
JMP 0x00143bfd
caseD_b:
LEA R13,[0x190387]
JMP 0x00143bfd
caseD_e:
LEA R13,[0x19046b]
JMP 0x00143bfd
caseD_8:
LEA R13,[0x19029d]
JMP 0x00143bfd
caseD_15:
LEA R13,[0x190668]
JMP 0x00143bfd
caseD_1a:
LEA R13,[0x1907d4]
JMP 0x00143bfd
caseD_f:
LEA R13,[0x1904b3]
JMP 0x00143bfd
caseD_1c:
LEA R13,[0x190866]
JMP 0x00143bfd
caseD_22:
PUSH 0x4
POP RBP
JMP 0x00143c01
caseD_80:
LEA R13,[0x190986]
caseD_6f:
MOV qword ptr [RBX + 0x70],R13
LAB_00143c01:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00143c12:
LEA R13,[0x18ff66]
JMP 0x00143bfd
LAB_00143c1b:
LEA R13,[0x18ffb2]
JMP 0x00143bfd
LAB_00143c24:
LEA RDI,[0x18f76d]
LEA RDX,[0x18df41]
LEA RCX,[0x18fefa]
MOV ESI,0x1dd1
LAB_00143c3e:
XOR EAX,EAX
CALL 0x00120b40
LAB_00143c45:
LEA RDI,[0x18f76d]
LEA RDX,[0x18df41]
LEA RCX,[0x18fff6]
MOV ESI,0x1e49
JMP 0x00143c3e
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::scan_string() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::scan_string(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
char cVar1;
int4 uVar2;
int iVar3;
uint uVar4;
int8 uVar5;
char cVar6;
char *pcVar7;
int4 uVar8;
int8 uStack_50;
int8 local_48;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
reset(this);
if (*(int *)(this + 0x14) != 0x22) {
pcVar7 = "current == \'\\\"\'";
uVar5 = 0x1dd1;
LAB_00143c3e:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar7);
}
cVar6 = (char)this + 'P';
LAB_00143830:
uVar2 = get(this);
switch(uVar2) {
case 0:
pcVar7 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
break;
case 1:
pcVar7 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
break;
case 2:
pcVar7 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
break;
case 3:
pcVar7 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
break;
case 4:
pcVar7 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
break;
case 5:
pcVar7 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
break;
case 6:
pcVar7 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
break;
case 7:
pcVar7 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
break;
case 8:
pcVar7 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
break;
case 9:
pcVar7 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
break;
case 10:
pcVar7 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
break;
case 0xb:
pcVar7 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
break;
case 0xc:
pcVar7 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
break;
case 0xd:
pcVar7 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
break;
case 0xe:
pcVar7 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
break;
case 0xf:
pcVar7 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
break;
case 0x10:
pcVar7 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
break;
case 0x11:
pcVar7 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
break;
case 0x12:
pcVar7 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
break;
case 0x13:
pcVar7 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
break;
case 0x14:
pcVar7 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
break;
case 0x15:
pcVar7 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
break;
case 0x16:
pcVar7 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
break;
case 0x17:
pcVar7 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
break;
case 0x18:
pcVar7 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
break;
case 0x19:
pcVar7 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
break;
case 0x1a:
pcVar7 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
break;
case 0x1b:
pcVar7 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
break;
case 0x1c:
pcVar7 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
break;
case 0x1d:
pcVar7 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
break;
case 0x1e:
pcVar7 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
break;
case 0x1f:
pcVar7 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
break;
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3a:
case 0x3b:
case 0x3c:
case 0x3d:
case 0x3e:
case 0x3f:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4a:
case 0x4b:
case 0x4c:
case 0x4d:
case 0x4e:
case 0x4f:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5a:
case 0x5b:
case 0x5d:
case 0x5e:
case 0x5f:
case 0x60:
case 0x61:
case 0x62:
case 99:
case 100:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
case 0x6e:
case 0x6f:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7a:
case 0x7b:
case 0x7c:
case 0x7d:
case 0x7e:
case 0x7f:
goto LAB_0014385c;
case 0x22:
return 4;
case 0x5c:
iVar3 = get(this);
pcVar7 = "invalid string: forbidden character after backslash";
switch(iVar3) {
case 0x6e:
break;
case 0x6f:
case 0x70:
case 0x71:
case 0x73:
goto switchD_00143932_caseD_6f;
case 0x72:
break;
case 0x74:
break;
case 0x75:
uVar4 = get_codepoint(this);
pcVar7 = "invalid string: \'\\u\' must be followed by 4 hex digits";
if (uVar4 == 0xffffffff) goto switchD_00143932_caseD_6f;
if ((uVar4 & 0xfffffc00) == 0xd800) {
iVar3 = get(this);
if ((iVar3 != 0x5c) || (iVar3 = get(this), iVar3 != 0x75)) {
pcVar7 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
goto switchD_00143932_caseD_6f;
}
uVar4 = get_codepoint(this);
if ((uVar4 == 0xffffffff) ||
(pcVar7 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF",
(uVar4 & 0xfffffc00) != 0xdc00)) goto switchD_00143932_caseD_6f;
LAB_001439cb:
std::__cxx11::string::push_back(cVar6);
LAB_001439e8:
std::__cxx11::string::push_back(cVar6);
}
else {
if ((uVar4 & 0xfffffc00) == 0xdc00) {
pcVar7 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto switchD_00143932_caseD_6f;
}
if (0x10ffff < uVar4) {
pcVar7 = "0x00 <= codepoint && codepoint <= 0x10FFFF";
uVar5 = 0x1e49;
goto LAB_00143c3e;
}
if (uVar4 < 0x80) break;
if (0x7ff < uVar4) {
if (0xffff < uVar4) goto LAB_001439cb;
goto LAB_001439e8;
}
}
std::__cxx11::string::push_back(cVar6);
break;
default:
if ((((iVar3 != 0x22) && (iVar3 != 0x2f)) && (iVar3 != 0x66)) &&
((iVar3 != 0x62 && (iVar3 != 0x5c)))) goto switchD_00143932_caseD_6f;
}
LAB_0014385c:
std::__cxx11::string::push_back(cVar6);
goto LAB_00143830;
default:
pcVar7 = "invalid string: ill-formed UTF-8 byte";
break;
case 0xc2:
case 0xc3:
case 0xc4:
case 0xc5:
case 0xc6:
case 199:
case 200:
case 0xc9:
case 0xca:
case 0xcb:
case 0xcc:
case 0xcd:
case 0xce:
case 0xcf:
case 0xd0:
case 0xd1:
case 0xd2:
case 0xd3:
case 0xd4:
case 0xd5:
case 0xd6:
case 0xd7:
case 0xd8:
case 0xd9:
case 0xda:
case 0xdb:
case 0xdc:
case 0xdd:
case 0xde:
case 0xdf:
local_48 = 0xbf00000080;
uStack_50 = 2;
goto LAB_00143902;
case 0xe0:
uVar2 = _DAT_0018d570;
uVar8 = _UNK_0018d574;
uStack_40 = _UNK_0018d578;
uStack_3c = _UNK_0018d57c;
goto LAB_0014387e;
case 0xe1:
case 0xe2:
case 0xe3:
case 0xe4:
case 0xe5:
case 0xe6:
case 0xe7:
case 0xe8:
case 0xe9:
case 0xea:
case 0xeb:
case 0xec:
case 0xee:
case 0xef:
uVar2 = _DAT_0018d560;
uVar8 = _UNK_0018d564;
uStack_40 = _UNK_0018d568;
uStack_3c = _UNK_0018d56c;
goto LAB_0014387e;
case 0xed:
uVar2 = _DAT_0018d550;
uVar8 = _UNK_0018d554;
uStack_40 = _UNK_0018d558;
uStack_3c = _UNK_0018d55c;
LAB_0014387e:
local_48 = CONCAT44(uVar8,uVar2);
uStack_50 = 4;
LAB_00143902:
cVar1 = next_byte_in_range(this,&local_48,uStack_50);
if (cVar1 == '\0') {
return 0xe;
}
goto LAB_00143830;
case 0xf0:
uVar2 = _DAT_0018d360;
uVar8 = _UNK_0018d364;
uStack_40 = _UNK_0018d368;
uStack_3c = _UNK_0018d36c;
goto LAB_001438f6;
case 0xf1:
case 0xf2:
case 0xf3:
uVar2 = _DAT_0018d378;
uVar8 = _UNK_0018d37c;
uStack_40 = _UNK_0018d380;
uStack_3c = _UNK_0018d384;
goto LAB_001438f6;
case 0xf4:
uVar2 = _DAT_0018d390;
uVar8 = _UNK_0018d394;
uStack_40 = _UNK_0018d398;
uStack_3c = _UNK_0018d39c;
LAB_001438f6:
local_48 = CONCAT44(uVar8,uVar2);
local_38 = 0xbf00000080;
uStack_50 = 6;
goto LAB_00143902;
case 0xffffffff:
pcVar7 = "invalid string: missing closing quote";
}
switchD_00143932_caseD_6f:
*(char **)(this + 0x70) = pcVar7;
return 0xe;
}
|
|
10,097 |
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_string()
|
monkey531[P]llama/common/json.hpp
|
token_type scan_string()
{
// reset token_buffer (ignore opening quote)
reset();
// we entered the function by reading an open quote
JSON_ASSERT(current == '\"');
while (true)
{
// get next character
switch (get())
{
// end of file while parsing string
case char_traits<char_type>::eof():
{
error_message = "invalid string: missing closing quote";
return token_type::parse_error;
}
// closing quote
case '\"':
{
return token_type::value_string;
}
// escapes
case '\\':
{
switch (get())
{
// quotation mark
case '\"':
add('\"');
break;
// reverse solidus
case '\\':
add('\\');
break;
// solidus
case '/':
add('/');
break;
// backspace
case 'b':
add('\b');
break;
// form feed
case 'f':
add('\f');
break;
// line feed
case 'n':
add('\n');
break;
// carriage return
case 'r':
add('\r');
break;
// tab
case 't':
add('\t');
break;
// unicode escapes
case 'u':
{
const int codepoint1 = get_codepoint();
int codepoint = codepoint1; // start with codepoint1
if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if code point is a high surrogate
if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
{
// expect next \uxxxx entry
if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
{
const int codepoint2 = get_codepoint();
if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if codepoint2 is a low surrogate
if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
{
// overwrite codepoint
codepoint = static_cast<int>(
// high surrogate occupies the most significant 22 bits
(static_cast<unsigned int>(codepoint1) << 10u)
// low surrogate occupies the least significant 15 bits
+ static_cast<unsigned int>(codepoint2)
// there is still the 0xD800, 0xDC00 and 0x10000 noise
// in the result, so we have to subtract with:
// (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
- 0x35FDC00u);
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
{
error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
return token_type::parse_error;
}
}
// result of the above calculation yields a proper codepoint
JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
// translate codepoint into bytes
if (codepoint < 0x80)
{
// 1-byte characters: 0xxxxxxx (ASCII)
add(static_cast<char_int_type>(codepoint));
}
else if (codepoint <= 0x7FF)
{
// 2-byte characters: 110xxxxx 10xxxxxx
add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else if (codepoint <= 0xFFFF)
{
// 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else
{
// 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
break;
}
// other characters after escape
default:
error_message = "invalid string: forbidden character after backslash";
return token_type::parse_error;
}
break;
}
// invalid control characters
case 0x00:
{
error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
return token_type::parse_error;
}
case 0x01:
{
error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
return token_type::parse_error;
}
case 0x02:
{
error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
return token_type::parse_error;
}
case 0x03:
{
error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
return token_type::parse_error;
}
case 0x04:
{
error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
return token_type::parse_error;
}
case 0x05:
{
error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
return token_type::parse_error;
}
case 0x06:
{
error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
return token_type::parse_error;
}
case 0x07:
{
error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
return token_type::parse_error;
}
case 0x08:
{
error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
return token_type::parse_error;
}
case 0x09:
{
error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
return token_type::parse_error;
}
case 0x0A:
{
error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
return token_type::parse_error;
}
case 0x0B:
{
error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
return token_type::parse_error;
}
case 0x0C:
{
error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
return token_type::parse_error;
}
case 0x0D:
{
error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
return token_type::parse_error;
}
case 0x0E:
{
error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
return token_type::parse_error;
}
case 0x0F:
{
error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
return token_type::parse_error;
}
case 0x10:
{
error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
return token_type::parse_error;
}
case 0x11:
{
error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
return token_type::parse_error;
}
case 0x12:
{
error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
return token_type::parse_error;
}
case 0x13:
{
error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
return token_type::parse_error;
}
case 0x14:
{
error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
return token_type::parse_error;
}
case 0x15:
{
error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
return token_type::parse_error;
}
case 0x16:
{
error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
return token_type::parse_error;
}
case 0x17:
{
error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
return token_type::parse_error;
}
case 0x18:
{
error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
return token_type::parse_error;
}
case 0x19:
{
error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
return token_type::parse_error;
}
case 0x1A:
{
error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
return token_type::parse_error;
}
case 0x1B:
{
error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
return token_type::parse_error;
}
case 0x1C:
{
error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
return token_type::parse_error;
}
case 0x1D:
{
error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
return token_type::parse_error;
}
case 0x1E:
{
error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
return token_type::parse_error;
}
case 0x1F:
{
error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
return token_type::parse_error;
}
// U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2A:
case 0x2B:
case 0x2C:
case 0x2D:
case 0x2E:
case 0x2F:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3A:
case 0x3B:
case 0x3C:
case 0x3D:
case 0x3E:
case 0x3F:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4A:
case 0x4B:
case 0x4C:
case 0x4D:
case 0x4E:
case 0x4F:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5A:
case 0x5B:
case 0x5D:
case 0x5E:
case 0x5F:
case 0x60:
case 0x61:
case 0x62:
case 0x63:
case 0x64:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6A:
case 0x6B:
case 0x6C:
case 0x6D:
case 0x6E:
case 0x6F:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7A:
case 0x7B:
case 0x7C:
case 0x7D:
case 0x7E:
case 0x7F:
{
add(current);
break;
}
// U+0080..U+07FF: bytes C2..DF 80..BF
case 0xC2:
case 0xC3:
case 0xC4:
case 0xC5:
case 0xC6:
case 0xC7:
case 0xC8:
case 0xC9:
case 0xCA:
case 0xCB:
case 0xCC:
case 0xCD:
case 0xCE:
case 0xCF:
case 0xD0:
case 0xD1:
case 0xD2:
case 0xD3:
case 0xD4:
case 0xD5:
case 0xD6:
case 0xD7:
case 0xD8:
case 0xD9:
case 0xDA:
case 0xDB:
case 0xDC:
case 0xDD:
case 0xDE:
case 0xDF:
{
if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
{
return token_type::parse_error;
}
break;
}
// U+0800..U+0FFF: bytes E0 A0..BF 80..BF
case 0xE0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
// U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
case 0xE1:
case 0xE2:
case 0xE3:
case 0xE4:
case 0xE5:
case 0xE6:
case 0xE7:
case 0xE8:
case 0xE9:
case 0xEA:
case 0xEB:
case 0xEC:
case 0xEE:
case 0xEF:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+D000..U+D7FF: bytes ED 80..9F 80..BF
case 0xED:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
case 0xF0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
case 0xF1:
case 0xF2:
case 0xF3:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
case 0xF4:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// remaining bytes (80..C1 and F5..FF) are ill-formed
default:
{
error_message = "invalid string: ill-formed UTF-8 byte";
return token_type::parse_error;
}
}
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_string():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x46c62
cmpl $0x22, 0x14(%rbx)
jne 0x4685b
leaq 0x50(%rbx), %r14
leaq 0x64c7d(%rip), %r12 # 0xab0ce
leaq 0x622a8(%rip), %r13 # 0xa8700
movq %rbx, %rdi
callq 0x18fee
incl %eax
cmpl $0xf5, %eax
ja 0x4682a
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
movq %rsp, %rsi
movq %rax, (%rsi)
movl $0x2, %edx
jmp 0x464f8
movaps 0x620db(%rip), %xmm0 # 0xa8570
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movl $0x4, %edx
jmp 0x464f8
movb 0x14(%rbx), %r15b
movsbl %r15b, %esi
movq %r14, %rdi
callq 0x18590
jmp 0x46458
movups 0x61ead(%rip), %xmm0 # 0xa8368
jmp 0x464df
movaps 0x6209c(%rip), %xmm0 # 0xa8560
jmp 0x46495
movaps 0x620b3(%rip), %xmm0 # 0xa8580
jmp 0x46495
movups 0x61eaa(%rip), %xmm0 # 0xa8380
jmp 0x464df
movups 0x61e71(%rip), %xmm0 # 0xa8350
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
movq %rax, 0x10(%rsi)
movl $0x6, %edx
movq %rbx, %rdi
callq 0x46ce6
testb %al, %al
jne 0x46458
jmp 0x46835
movq %rbx, %rdi
callq 0x18fee
leaq 0x64b35(%rip), %rbp # 0xab051
cmpl $0x61, %eax
jle 0x46647
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
ja 0x46662
leaq 0x625a0(%rip), %rax # 0xa8ad8
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x46ca0
leaq 0x64a10(%rip), %rbp # 0xaaf60
cmpl $-0x1, %eax
je 0x46831
movl %eax, %r15d
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x46612
movq %rbx, %rdi
callq 0x18fee
cmpl $0x5c, %eax
jne 0x46849
movq %rbx, %rdi
callq 0x18fee
cmpl $0x75, %eax
jne 0x46849
movq %rbx, %rdi
callq 0x46ca0
cmpl $-0x1, %eax
je 0x46831
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
leaq 0x649e8(%rip), %rbp # 0xaaf96
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x46831
shll $0xa, %r15d
addl %eax, %r15d
addl $0xfca02400, %r15d # imm = 0xFCA02400
movl %r15d, %eax
shrl $0x12, %eax
orb $-0x10, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x18590
movl %r15d, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x18590
movl %r15d, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x18590
andb $0x3f, %r15b
orb $-0x80, %r15b
jmp 0x464a6
cmpl $0xdc00, %eax # imm = 0xDC00
je 0x46852
cmpl $0x110000, %r15d # imm = 0x110000
jae 0x46877
cmpl $0x7f, %r15d
jbe 0x464a6
cmpl $0x7ff, %r15d # imm = 0x7FF
ja 0x46678
movl %r15d, %eax
shrl $0x6, %eax
orb $-0x40, %al
jmp 0x465fa
cmpl $0x22, %eax
je 0x4669a
cmpl $0x2f, %eax
je 0x46692
cmpl $0x5c, %eax
jne 0x46831
movb $0x5c, %r15b
jmp 0x464a6
cmpl $0x62, %eax
je 0x466ba
cmpl $0x66, %eax
jne 0x46831
movb $0xc, %r15b
jmp 0x464a6
cmpl $0xffff, %r15d # imm = 0xFFFF
ja 0x465c8
movl %r15d, %eax
shrl $0xc, %eax
orb $-0x20, %al
jmp 0x465e5
movb $0x2f, %r15b
jmp 0x464a6
movb $0x22, %r15b
jmp 0x464a6
movb $0x9, %r15b
jmp 0x464a6
movb $0xa, %r15b
jmp 0x464a6
movb $0xd, %r15b
jmp 0x464a6
movb $0x8, %r15b
jmp 0x464a6
movl $0x4, %eax
jmp 0x4683a
leaq 0x6529b(%rip), %rbp # 0xab96e
jmp 0x46831
leaq 0x650dd(%rip), %rbp # 0xab7bc
jmp 0x46831
leaq 0x6523b(%rip), %rbp # 0xab926
jmp 0x46831
leaq 0x64d08(%rip), %rbp # 0xab3ff
jmp 0x46831
leaq 0x65193(%rip), %rbp # 0xab896
jmp 0x46831
leaq 0x65064(%rip), %rbp # 0xab773
jmp 0x46831
leaq 0x64a8e(%rip), %rbp # 0xab1a9
jmp 0x46831
leaq 0x64ba6(%rip), %rbp # 0xab2cd
jmp 0x46831
leaq 0x64a2d(%rip), %rbp # 0xab160
jmp 0x46831
leaq 0x64afc(%rip), %rbp # 0xab23b
jmp 0x46831
leaq 0x64b39(%rip), %rbp # 0xab284
jmp 0x46831
movq %r12, %rbp
jmp 0x46831
leaq 0x64dcc(%rip), %rbp # 0xab52b
jmp 0x46831
leaq 0x64d30(%rip), %rbp # 0xab49b
jmp 0x46831
leaq 0x647c3(%rip), %rbp # 0xaaf3a
jmp 0x46831
leaq 0x64a6f(%rip), %rbp # 0xab1f2
jmp 0x46831
leaq 0x64de5(%rip), %rbp # 0xab574
jmp 0x46831
leaq 0x648ea(%rip), %rbp # 0xab085
jmp 0x46831
leaq 0x64970(%rip), %rbp # 0xab117
jmp 0x46831
leaq 0x64e53(%rip), %rbp # 0xab606
jmp 0x46831
leaq 0x64e93(%rip), %rbp # 0xab64f
jmp 0x46831
leaq 0x65088(%rip), %rbp # 0xab84d
jmp 0x46831
leaq 0x64b4d(%rip), %rbp # 0xab31b
jmp 0x46831
leaq 0x64ec1(%rip), %rbp # 0xab698
jmp 0x46831
leaq 0x64c6d(%rip), %rbp # 0xab44d
jmp 0x46831
leaq 0x6501b(%rip), %rbp # 0xab804
jmp 0x46831
leaq 0x64b77(%rip), %rbp # 0xab369
jmp 0x46831
leaq 0x64bbc(%rip), %rbp # 0xab3b7
jmp 0x46831
leaq 0x64db9(%rip), %rbp # 0xab5bd
jmp 0x46831
leaq 0x64cd6(%rip), %rbp # 0xab4e3
jmp 0x46831
leaq 0x650c8(%rip), %rbp # 0xab8de
jmp 0x46831
leaq 0x64ec2(%rip), %rbp # 0xab6e1
jmp 0x46831
leaq 0x64f02(%rip), %rbp # 0xab72a
jmp 0x46831
leaq 0x65185(%rip), %rbp # 0xab9b6
movq %rbp, 0x70(%rbx)
movl $0xe, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x64746(%rip), %rbp # 0xaaf96
jmp 0x46831
leaq 0x64789(%rip), %rbp # 0xaafe2
jmp 0x46831
leaq 0x63f3b(%rip), %rdi # 0xaa79d
leaq 0x62708(%rip), %rdx # 0xa8f71
leaq 0x646ba(%rip), %rcx # 0xaaf2a
movl $0x1dd1, %esi # imm = 0x1DD1
jmp 0x46891
leaq 0x63f1f(%rip), %rdi # 0xaa79d
leaq 0x626ec(%rip), %rdx # 0xa8f71
leaq 0x6479a(%rip), %rcx # 0xab026
movl $0x1e49, %esi # imm = 0x1E49
xorl %eax, %eax
callq 0x18af0
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void)
cmp dword ptr [rbx+14h], 22h ; '"'
jnz loc_4685B
lea r14, [rbx+50h]
lea r12, aInvalidStringC; "invalid string: control character U+000"...
lea r13, jpt_46475
loc_46458:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
inc eax; switch 246 cases
cmp eax, 0F5h
ja def_46475; jumptable 0000000000046475 default case, cases 128-193
movsxd rax, ds:(jpt_46475 - 0A8700h)[r13+rax*4]
add rax, r13
jmp rax; switch jump
loc_46477:
mov rax, 0BF00000080h; jumptable 0000000000046475 cases 194-223
mov rsi, rsp
mov [rsi], rax
mov edx, 2
jmp short loc_464F8
loc_4648E:
movaps xmm0, cs:xmmword_A8570; jumptable 0000000000046475 cases 225-236,238,239
loc_46495:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov edx, 4
jmp short loc_464F8
loc_464A2:
mov r15b, [rbx+14h]; jumptable 0000000000046475 cases 32,33,35-91,93-127
loc_464A6:
movsx esi, r15b
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_46458
loc_464B4:
movups xmm0, cs:xmmword_A8368; jumptable 0000000000046475 cases 241-243
jmp short loc_464DF
loc_464BD:
movaps xmm0, cs:xmmword_A8560; jumptable 0000000000046475 case 237
jmp short loc_46495
loc_464C6:
movaps xmm0, cs:xmmword_A8580; jumptable 0000000000046475 case 224
jmp short loc_46495
loc_464CF:
movups xmm0, cs:xmmword_A8380; jumptable 0000000000046475 case 244
jmp short loc_464DF
loc_464D8:
movups xmm0, cs:xmmword_A8350; jumptable 0000000000046475 case 240
loc_464DF:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov rax, 0BF00000080h
mov [rsi+10h], rax
mov edx, 6
loc_464F8:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(std::initializer_list<int>)
test al, al
jnz loc_46458
jmp loc_46835
loc_4650D:
mov rdi, rbx; jumptable 0000000000046475 case 92
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea rbp, aInvalidStringF; "invalid string: forbidden character aft"...
cmp eax, 61h ; 'a'
jle loc_46647
lea ecx, [rax-6Eh]; switch 8 cases
cmp ecx, 7
ja def_4653F; jumptable 000000000004653F default case
lea rax, jpt_4653F
movsxd rcx, ds:(jpt_4653F - 0A8AD8h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_46541:
mov rdi, rbx; jumptable 000000000004653F case 117
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void)
lea rbp, aInvalidStringU; "invalid string: '\\u' must be followed "...
cmp eax, 0FFFFFFFFh
jz loc_46831; jumptable 000000000004653F cases 111-113,115
mov r15d, eax
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz loc_46612
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 5Ch ; '\'
jnz loc_46849
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 75h ; 'u'
jnz loc_46849
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void)
cmp eax, 0FFFFFFFFh
jz loc_46831; jumptable 000000000004653F cases 111-113,115
mov ecx, eax
and ecx, 0FFFFFC00h
lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
cmp ecx, 0DC00h
jnz loc_46831; jumptable 000000000004653F cases 111-113,115
shl r15d, 0Ah
add r15d, eax
add r15d, 0FCA02400h
loc_465C8:
mov eax, r15d
shr eax, 12h
or al, 0F0h
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 0Ch
and al, 3Fh
or al, 80h
loc_465E5:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 6
and al, 3Fh
or al, 80h
loc_465FA:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
and r15b, 3Fh
or r15b, 80h
jmp loc_464A6
loc_46612:
cmp eax, 0DC00h
jz loc_46852
cmp r15d, 110000h
jnb loc_46877
cmp r15d, 7Fh
jbe loc_464A6
cmp r15d, 7FFh
ja short loc_46678
mov eax, r15d
shr eax, 6
or al, 0C0h
jmp short loc_465FA
loc_46647:
cmp eax, 22h ; '"'
jz short loc_4669A
cmp eax, 2Fh ; '/'
jz short loc_46692
cmp eax, 5Ch ; '\'
jnz loc_46831; jumptable 000000000004653F cases 111-113,115
mov r15b, 5Ch ; '\'
jmp loc_464A6
def_4653F:
cmp eax, 62h ; 'b'; jumptable 000000000004653F default case
jz short loc_466BA
cmp eax, 66h ; 'f'
jnz loc_46831; jumptable 000000000004653F cases 111-113,115
mov r15b, 0Ch
jmp loc_464A6
loc_46678:
cmp r15d, 0FFFFh
ja loc_465C8
mov eax, r15d
shr eax, 0Ch
or al, 0E0h
jmp loc_465E5
loc_46692:
mov r15b, 2Fh ; '/'
jmp loc_464A6
loc_4669A:
mov r15b, 22h ; '"'
jmp loc_464A6
loc_466A2:
mov r15b, 9; jumptable 000000000004653F case 116
jmp loc_464A6
loc_466AA:
mov r15b, 0Ah; jumptable 000000000004653F case 110
jmp loc_464A6
loc_466B2:
mov r15b, 0Dh; jumptable 000000000004653F case 114
jmp loc_464A6
loc_466BA:
mov r15b, 8
jmp loc_464A6
loc_466C2:
mov eax, 4; jumptable 0000000000046475 case 34
jmp loc_4683A
loc_466CC:
lea rbp, aInvalidStringC_0; jumptable 0000000000046475 case 31
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_466D8:
lea rbp, aInvalidStringC_1; jumptable 0000000000046475 case 25
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_466E4:
lea rbp, aInvalidStringC_2; jumptable 0000000000046475 case 30
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_466F0:
lea rbp, aInvalidStringC_3; jumptable 0000000000046475 case 12
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_466FC:
lea rbp, aInvalidStringC_4; jumptable 0000000000046475 case 28
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46708:
lea rbp, aInvalidStringC_5; jumptable 0000000000046475 case 24
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46714:
lea rbp, aInvalidStringC_6; jumptable 0000000000046475 case 4
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46720:
lea rbp, aInvalidStringC_7; jumptable 0000000000046475 case 8
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_4672C:
lea rbp, aInvalidStringC_8; jumptable 0000000000046475 case 3
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46738:
lea rbp, aInvalidStringC_9; jumptable 0000000000046475 case 6
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46744:
lea rbp, aInvalidStringC_10; jumptable 0000000000046475 case 7
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46750:
mov rbp, r12; jumptable 0000000000046475 case 1
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46758:
lea rbp, aInvalidStringC_11; jumptable 0000000000046475 case 16
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46764:
lea rbp, aInvalidStringC_12; jumptable 0000000000046475 case 14
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46770:
lea rbp, aInvalidStringM; jumptable 0000000000046475 case -1
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_4677C:
lea rbp, aInvalidStringC_13; jumptable 0000000000046475 case 5
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46788:
lea rbp, aInvalidStringC_14; jumptable 0000000000046475 case 17
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46794:
lea rbp, aInvalidStringC_15; jumptable 0000000000046475 case 0
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467A0:
lea rbp, aInvalidStringC_16; jumptable 0000000000046475 case 2
jmp loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467AC:
lea rbp, aInvalidStringC_17; jumptable 0000000000046475 case 19
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467B5:
lea rbp, aInvalidStringC_18; jumptable 0000000000046475 case 20
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467BE:
lea rbp, aInvalidStringC_19; jumptable 0000000000046475 case 27
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467C7:
lea rbp, aInvalidStringC_20; jumptable 0000000000046475 case 9
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467D0:
lea rbp, aInvalidStringC_21; jumptable 0000000000046475 case 21
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467D9:
lea rbp, aInvalidStringC_22; jumptable 0000000000046475 case 13
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467E2:
lea rbp, aInvalidStringC_23; jumptable 0000000000046475 case 26
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467EB:
lea rbp, aInvalidStringC_24; jumptable 0000000000046475 case 10
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467F4:
lea rbp, aInvalidStringC_25; jumptable 0000000000046475 case 11
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_467FD:
lea rbp, aInvalidStringC_26; jumptable 0000000000046475 case 18
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46806:
lea rbp, aInvalidStringC_27; jumptable 0000000000046475 case 15
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_4680F:
lea rbp, aInvalidStringC_28; jumptable 0000000000046475 case 29
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46818:
lea rbp, aInvalidStringC_29; jumptable 0000000000046475 case 22
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46821:
lea rbp, aInvalidStringC_30; jumptable 0000000000046475 case 23
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
def_46475:
lea rbp, aInvalidStringI; jumptable 0000000000046475 default case, cases 128-193
loc_46831:
mov [rbx+70h], rbp; jumptable 000000000004653F cases 111-113,115
loc_46835:
mov eax, 0Eh
loc_4683A:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_46849:
lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_46852:
lea rbp, aInvalidStringS_0; "invalid string: surrogate U+DC00..U+DFF"...
jmp short loc_46831; jumptable 000000000004653F cases 111-113,115
loc_4685B:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurrent; "current == '\\\"'"
mov esi, 1DD1h
jmp short loc_46891
loc_46877:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, a0x00CodepointC; "0x00 <= codepoint && codepoint <= 0x10F"...
mov esi, 1E49h
loc_46891:
xor eax, eax
call _ggml_abort
|
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(
__m128i *a1)
{
long long v1; // rcx
long long v2; // r8
long long v3; // r9
long long v4; // rdx
__int128 v5; // xmm0
unsigned int v6; // r15d
__int128 v7; // xmm0
int v8; // eax
const char *v9; // rbp
unsigned int codepoint; // eax
unsigned int v11; // eax
int v12; // eax
char v13; // al
char v14; // al
__int128 v16; // [rsp+0h] [rbp-48h] BYREF
long long v17; // [rsp+10h] [rbp-38h]
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset();
if ( a1[1].m128i_i32[1] != 34 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7633LL,
"GGML_ASSERT(%s) failed",
"current == '\\\"'");
return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
while ( 2 )
{
while ( 2 )
{
switch ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) )
{
case 0xFFFFFFFF:
v9 = "invalid string: missing closing quote";
goto LABEL_83;
case 0u:
v9 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
goto LABEL_83;
case 1u:
v9 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
goto LABEL_83;
case 2u:
v9 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
goto LABEL_83;
case 3u:
v9 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
goto LABEL_83;
case 4u:
v9 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
goto LABEL_83;
case 5u:
v9 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
goto LABEL_83;
case 6u:
v9 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
goto LABEL_83;
case 7u:
v9 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
goto LABEL_83;
case 8u:
v9 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
goto LABEL_83;
case 9u:
v9 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
goto LABEL_83;
case 0xAu:
v9 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
goto LABEL_83;
case 0xBu:
v9 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
goto LABEL_83;
case 0xCu:
v9 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
goto LABEL_83;
case 0xDu:
v9 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
goto LABEL_83;
case 0xEu:
v9 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
goto LABEL_83;
case 0xFu:
v9 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
goto LABEL_83;
case 0x10u:
v9 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
goto LABEL_83;
case 0x11u:
v9 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
goto LABEL_83;
case 0x12u:
v9 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
goto LABEL_83;
case 0x13u:
v9 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
goto LABEL_83;
case 0x14u:
v9 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
goto LABEL_83;
case 0x15u:
v9 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
goto LABEL_83;
case 0x16u:
v9 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
goto LABEL_83;
case 0x17u:
v9 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
goto LABEL_83;
case 0x18u:
v9 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
goto LABEL_83;
case 0x19u:
v9 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
goto LABEL_83;
case 0x1Au:
v9 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
goto LABEL_83;
case 0x1Bu:
v9 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
goto LABEL_83;
case 0x1Cu:
v9 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
goto LABEL_83;
case 0x1Du:
v9 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
goto LABEL_83;
case 0x1Eu:
v9 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
goto LABEL_83;
case 0x1Fu:
v9 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
goto LABEL_83;
case 0x20u:
case 0x21u:
case 0x23u:
case 0x24u:
case 0x25u:
case 0x26u:
case 0x27u:
case 0x28u:
case 0x29u:
case 0x2Au:
case 0x2Bu:
case 0x2Cu:
case 0x2Du:
case 0x2Eu:
case 0x2Fu:
case 0x30u:
case 0x31u:
case 0x32u:
case 0x33u:
case 0x34u:
case 0x35u:
case 0x36u:
case 0x37u:
case 0x38u:
case 0x39u:
case 0x3Au:
case 0x3Bu:
case 0x3Cu:
case 0x3Du:
case 0x3Eu:
case 0x3Fu:
case 0x40u:
case 0x41u:
case 0x42u:
case 0x43u:
case 0x44u:
case 0x45u:
case 0x46u:
case 0x47u:
case 0x48u:
case 0x49u:
case 0x4Au:
case 0x4Bu:
case 0x4Cu:
case 0x4Du:
case 0x4Eu:
case 0x4Fu:
case 0x50u:
case 0x51u:
case 0x52u:
case 0x53u:
case 0x54u:
case 0x55u:
case 0x56u:
case 0x57u:
case 0x58u:
case 0x59u:
case 0x5Au:
case 0x5Bu:
case 0x5Du:
case 0x5Eu:
case 0x5Fu:
case 0x60u:
case 0x61u:
case 0x62u:
case 0x63u:
case 0x64u:
case 0x65u:
case 0x66u:
case 0x67u:
case 0x68u:
case 0x69u:
case 0x6Au:
case 0x6Bu:
case 0x6Cu:
case 0x6Du:
case 0x6Eu:
case 0x6Fu:
case 0x70u:
case 0x71u:
case 0x72u:
case 0x73u:
case 0x74u:
case 0x75u:
case 0x76u:
case 0x77u:
case 0x78u:
case 0x79u:
case 0x7Au:
case 0x7Bu:
case 0x7Cu:
case 0x7Du:
case 0x7Eu:
case 0x7Fu:
LOBYTE(v6) = a1[1].m128i_i8[4];
goto LABEL_7;
case 0x22u:
return 4LL;
case 0x5Cu:
v8 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
v9 = "invalid string: forbidden character after backslash";
if ( v8 <= 97 )
{
switch ( v8 )
{
case '"':
LOBYTE(v6) = 34;
break;
case '/':
LOBYTE(v6) = 47;
break;
case '\\':
LOBYTE(v6) = 92;
break;
default:
goto LABEL_83;
}
goto LABEL_7;
}
break;
case 0xC2u:
case 0xC3u:
case 0xC4u:
case 0xC5u:
case 0xC6u:
case 0xC7u:
case 0xC8u:
case 0xC9u:
case 0xCAu:
case 0xCBu:
case 0xCCu:
case 0xCDu:
case 0xCEu:
case 0xCFu:
case 0xD0u:
case 0xD1u:
case 0xD2u:
case 0xD3u:
case 0xD4u:
case 0xD5u:
case 0xD6u:
case 0xD7u:
case 0xD8u:
case 0xD9u:
case 0xDAu:
case 0xDBu:
case 0xDCu:
case 0xDDu:
case 0xDEu:
case 0xDFu:
*(_QWORD *)&v16 = 0xBF00000080LL;
v4 = 2LL;
goto LABEL_14;
case 0xE0u:
v5 = xmmword_A8580;
goto LABEL_5;
case 0xE1u:
case 0xE2u:
case 0xE3u:
case 0xE4u:
case 0xE5u:
case 0xE6u:
case 0xE7u:
case 0xE8u:
case 0xE9u:
case 0xEAu:
case 0xEBu:
case 0xECu:
case 0xEEu:
case 0xEFu:
v5 = xmmword_A8570;
goto LABEL_5;
case 0xEDu:
v5 = xmmword_A8560;
LABEL_5:
v16 = v5;
v4 = 4LL;
goto LABEL_14;
case 0xF0u:
v7 = xmmword_A8350;
goto LABEL_13;
case 0xF1u:
case 0xF2u:
case 0xF3u:
v7 = xmmword_A8368;
goto LABEL_13;
case 0xF4u:
v7 = xmmword_A8380;
LABEL_13:
v16 = v7;
v17 = 0xBF00000080LL;
v4 = 6LL;
LABEL_14:
if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
&v16,
v4,
v1,
v2,
v3,
v16,
*((_QWORD *)&v16 + 1),
v17) )
return 14LL;
continue;
default:
v9 = "invalid string: ill-formed UTF-8 byte";
goto LABEL_83;
}
break;
}
switch ( v8 )
{
case 'n':
LOBYTE(v6) = 10;
goto LABEL_7;
case 'o':
case 'p':
case 'q':
case 's':
goto LABEL_83;
case 'r':
LOBYTE(v6) = 13;
goto LABEL_7;
case 't':
LOBYTE(v6) = 9;
goto LABEL_7;
case 'u':
codepoint = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(a1);
v9 = "invalid string: '\\u' must be followed by 4 hex digits";
if ( codepoint == -1 )
goto LABEL_83;
v6 = codepoint;
v11 = codepoint & 0xFFFFFC00;
if ( v11 == 55296 )
{
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) != 92
|| (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) != 117 )
{
v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
LABEL_83:
a1[7].m128i_i64[0] = (long long)v9;
return 14LL;
}
v12 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(a1);
if ( v12 == -1 )
goto LABEL_83;
v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
if ( (v12 & 0xFFFFFC00) != 0xDC00 )
goto LABEL_83;
v6 = v12 + (v6 << 10) - 56613888;
goto LABEL_25;
}
if ( v11 == 56320 )
{
v9 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto LABEL_83;
}
if ( v6 < 0x110000 )
{
if ( v6 > 0x7F )
{
if ( v6 <= 0x7FF )
{
v14 = (v6 >> 6) | 0xC0;
goto LABEL_27;
}
if ( v6 <= 0xFFFF )
{
v13 = (v6 >> 12) | 0xE0;
goto LABEL_26;
}
LABEL_25:
std::string::push_back(&a1[5], (unsigned int)(char)((v6 >> 18) | 0xF0));
v13 = (v6 >> 12) & 0x3F | 0x80;
LABEL_26:
std::string::push_back(&a1[5], (unsigned int)v13);
v14 = (v6 >> 6) & 0x3F | 0x80;
LABEL_27:
std::string::push_back(&a1[5], (unsigned int)v14);
LOBYTE(v6) = v6 & 0x3F | 0x80;
}
LABEL_7:
std::string::push_back(&a1[5], (unsigned int)(char)v6);
continue;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7753LL,
"GGML_ASSERT(%s) failed",
"0x00 <= codepoint && codepoint <= 0x10FFFF");
return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
default:
if ( v8 == 98 )
{
LOBYTE(v6) = 8;
}
else
{
if ( v8 != 102 )
goto LABEL_83;
LOBYTE(v6) = 12;
}
goto LABEL_7;
}
}
}
|
scan_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CALL 0x00146c62
CMP dword ptr [RBX + 0x14],0x22
JNZ 0x0014685b
LEA R14,[RBX + 0x50]
LEA R12,[0x1ab0ce]
LEA R13,[0x1a8700]
LAB_00146458:
MOV RDI,RBX
CALL 0x00118fee
INC EAX
CMP EAX,0xf5
JA 0x0014682a
MOVSXD RAX,dword ptr [R13 + RAX*0x4]
ADD RAX,R13
switchD:
JMP RAX
caseD_c2:
MOV RAX,0xbf00000080
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV EDX,0x2
JMP 0x001464f8
caseD_e1:
MOVAPS XMM0,xmmword ptr [0x001a8570]
LAB_00146495:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV EDX,0x4
JMP 0x001464f8
caseD_20:
MOV R15B,byte ptr [RBX + 0x14]
LAB_001464a6:
MOVSX ESI,R15B
MOV RDI,R14
CALL 0x00118590
JMP 0x00146458
caseD_f1:
MOVUPS XMM0,xmmword ptr [0x001a8368]
JMP 0x001464df
caseD_ed:
MOVAPS XMM0,xmmword ptr [0x001a8560]
JMP 0x00146495
caseD_e0:
MOVAPS XMM0,xmmword ptr [0x001a8580]
JMP 0x00146495
caseD_f4:
MOVUPS XMM0,xmmword ptr [0x001a8380]
JMP 0x001464df
caseD_f0:
MOVUPS XMM0,xmmword ptr [0x001a8350]
LAB_001464df:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV RAX,0xbf00000080
MOV qword ptr [RSI + 0x10],RAX
MOV EDX,0x6
LAB_001464f8:
MOV RDI,RBX
CALL 0x00146ce6
TEST AL,AL
JNZ 0x00146458
JMP 0x00146835
caseD_5c:
MOV RDI,RBX
CALL 0x00118fee
LEA RBP,[0x1ab051]
CMP EAX,0x61
JLE 0x00146647
LEA ECX,[RAX + -0x6e]
CMP ECX,0x7
JA 0x00146662
LEA RAX,[0x1a8ad8]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_75:
MOV RDI,RBX
CALL 0x00146ca0
LEA RBP,[0x1aaf60]
CMP EAX,-0x1
JZ 0x00146831
MOV R15D,EAX
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x00146612
MOV RDI,RBX
CALL 0x00118fee
CMP EAX,0x5c
JNZ 0x00146849
MOV RDI,RBX
CALL 0x00118fee
CMP EAX,0x75
JNZ 0x00146849
MOV RDI,RBX
CALL 0x00146ca0
CMP EAX,-0x1
JZ 0x00146831
MOV ECX,EAX
AND ECX,0xfffffc00
LEA RBP,[0x1aaf96]
CMP ECX,0xdc00
JNZ 0x00146831
SHL R15D,0xa
ADD R15D,EAX
ADD R15D,0xfca02400
LAB_001465c8:
MOV EAX,R15D
SHR EAX,0x12
OR AL,0xf0
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00118590
MOV EAX,R15D
SHR EAX,0xc
AND AL,0x3f
OR AL,0x80
LAB_001465e5:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00118590
MOV EAX,R15D
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
LAB_001465fa:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00118590
AND R15B,0x3f
OR R15B,0x80
JMP 0x001464a6
LAB_00146612:
CMP EAX,0xdc00
JZ 0x00146852
CMP R15D,0x110000
JNC 0x00146877
CMP R15D,0x7f
JBE 0x001464a6
CMP R15D,0x7ff
JA 0x00146678
MOV EAX,R15D
SHR EAX,0x6
OR AL,0xc0
JMP 0x001465fa
LAB_00146647:
CMP EAX,0x22
JZ 0x0014669a
CMP EAX,0x2f
JZ 0x00146692
CMP EAX,0x5c
JNZ 0x00146831
MOV R15B,0x5c
JMP 0x001464a6
default:
CMP EAX,0x62
JZ 0x001466ba
CMP EAX,0x66
JNZ 0x00146831
MOV R15B,0xc
JMP 0x001464a6
LAB_00146678:
CMP R15D,0xffff
JA 0x001465c8
MOV EAX,R15D
SHR EAX,0xc
OR AL,0xe0
JMP 0x001465e5
LAB_00146692:
MOV R15B,0x2f
JMP 0x001464a6
LAB_0014669a:
MOV R15B,0x22
JMP 0x001464a6
caseD_74:
MOV R15B,0x9
JMP 0x001464a6
caseD_6e:
MOV R15B,0xa
JMP 0x001464a6
caseD_72:
MOV R15B,0xd
JMP 0x001464a6
LAB_001466ba:
MOV R15B,0x8
JMP 0x001464a6
caseD_22:
MOV EAX,0x4
JMP 0x0014683a
caseD_1f:
LEA RBP,[0x1ab96e]
JMP 0x00146831
caseD_19:
LEA RBP,[0x1ab7bc]
JMP 0x00146831
caseD_1e:
LEA RBP,[0x1ab926]
JMP 0x00146831
caseD_c:
LEA RBP,[0x1ab3ff]
JMP 0x00146831
caseD_1c:
LEA RBP,[0x1ab896]
JMP 0x00146831
caseD_18:
LEA RBP,[0x1ab773]
JMP 0x00146831
caseD_4:
LEA RBP,[0x1ab1a9]
JMP 0x00146831
caseD_8:
LEA RBP,[0x1ab2cd]
JMP 0x00146831
caseD_3:
LEA RBP,[0x1ab160]
JMP 0x00146831
caseD_6:
LEA RBP,[0x1ab23b]
JMP 0x00146831
caseD_7:
LEA RBP,[0x1ab284]
JMP 0x00146831
caseD_1:
MOV RBP,R12
JMP 0x00146831
caseD_10:
LEA RBP,[0x1ab52b]
JMP 0x00146831
caseD_e:
LEA RBP,[0x1ab49b]
JMP 0x00146831
caseD_ffffffff:
LEA RBP,[0x1aaf3a]
JMP 0x00146831
caseD_5:
LEA RBP,[0x1ab1f2]
JMP 0x00146831
caseD_11:
LEA RBP,[0x1ab574]
JMP 0x00146831
caseD_0:
LEA RBP,[0x1ab085]
JMP 0x00146831
caseD_2:
LEA RBP,[0x1ab117]
JMP 0x00146831
caseD_13:
LEA RBP,[0x1ab606]
JMP 0x00146831
caseD_14:
LEA RBP,[0x1ab64f]
JMP 0x00146831
caseD_1b:
LEA RBP,[0x1ab84d]
JMP 0x00146831
caseD_9:
LEA RBP,[0x1ab31b]
JMP 0x00146831
caseD_15:
LEA RBP,[0x1ab698]
JMP 0x00146831
caseD_d:
LEA RBP,[0x1ab44d]
JMP 0x00146831
caseD_1a:
LEA RBP,[0x1ab804]
JMP 0x00146831
caseD_a:
LEA RBP,[0x1ab369]
JMP 0x00146831
caseD_b:
LEA RBP,[0x1ab3b7]
JMP 0x00146831
caseD_12:
LEA RBP,[0x1ab5bd]
JMP 0x00146831
caseD_f:
LEA RBP,[0x1ab4e3]
JMP 0x00146831
caseD_1d:
LEA RBP,[0x1ab8de]
JMP 0x00146831
caseD_16:
LEA RBP,[0x1ab6e1]
JMP 0x00146831
caseD_17:
LEA RBP,[0x1ab72a]
JMP 0x00146831
caseD_80:
LEA RBP,[0x1ab9b6]
caseD_6f:
MOV qword ptr [RBX + 0x70],RBP
LAB_00146835:
MOV EAX,0xe
LAB_0014683a:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00146849:
LEA RBP,[0x1aaf96]
JMP 0x00146831
LAB_00146852:
LEA RBP,[0x1aafe2]
JMP 0x00146831
LAB_0014685b:
LEA RDI,[0x1aa79d]
LEA RDX,[0x1a8f71]
LEA RCX,[0x1aaf2a]
MOV ESI,0x1dd1
JMP 0x00146891
LAB_00146877:
LEA RDI,[0x1aa79d]
LEA RDX,[0x1a8f71]
LEA RCX,[0x1ab026]
MOV ESI,0x1e49
LAB_00146891:
XOR EAX,EAX
CALL 0x00118af0
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::scan_string() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::scan_string(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
char cVar1;
int4 uVar2;
int iVar3;
uint uVar4;
char *pcVar5;
int8 uVar6;
char cVar7;
int4 uVar8;
int8 local_48;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
reset(this);
if (*(int *)(this + 0x14) != 0x22) {
pcVar5 = "current == \'\\\"\'";
uVar6 = 0x1dd1;
LAB_00146891:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar6,
"GGML_ASSERT(%s) failed",pcVar5);
}
cVar7 = (char)this + 'P';
LAB_00146458:
uVar2 = get(this);
switch(uVar2) {
case 0:
pcVar5 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
break;
case 1:
pcVar5 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
break;
case 2:
pcVar5 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
break;
case 3:
pcVar5 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
break;
case 4:
pcVar5 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
break;
case 5:
pcVar5 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
break;
case 6:
pcVar5 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
break;
case 7:
pcVar5 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
break;
case 8:
pcVar5 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
break;
case 9:
pcVar5 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
break;
case 10:
pcVar5 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
break;
case 0xb:
pcVar5 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
break;
case 0xc:
pcVar5 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
break;
case 0xd:
pcVar5 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
break;
case 0xe:
pcVar5 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
break;
case 0xf:
pcVar5 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
break;
case 0x10:
pcVar5 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
break;
case 0x11:
pcVar5 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
break;
case 0x12:
pcVar5 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
break;
case 0x13:
pcVar5 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
break;
case 0x14:
pcVar5 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
break;
case 0x15:
pcVar5 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
break;
case 0x16:
pcVar5 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
break;
case 0x17:
pcVar5 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
break;
case 0x18:
pcVar5 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
break;
case 0x19:
pcVar5 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
break;
case 0x1a:
pcVar5 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
break;
case 0x1b:
pcVar5 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
break;
case 0x1c:
pcVar5 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
break;
case 0x1d:
pcVar5 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
break;
case 0x1e:
pcVar5 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
break;
case 0x1f:
pcVar5 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
break;
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3a:
case 0x3b:
case 0x3c:
case 0x3d:
case 0x3e:
case 0x3f:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4a:
case 0x4b:
case 0x4c:
case 0x4d:
case 0x4e:
case 0x4f:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5a:
case 0x5b:
case 0x5d:
case 0x5e:
case 0x5f:
case 0x60:
case 0x61:
case 0x62:
case 99:
case 100:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
case 0x6e:
case 0x6f:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7a:
case 0x7b:
case 0x7c:
case 0x7d:
case 0x7e:
case 0x7f:
goto LAB_001464a6;
case 0x22:
return 4;
case 0x5c:
iVar3 = get(this);
pcVar5 = "invalid string: forbidden character after backslash";
if (iVar3 < 0x62) {
if (((iVar3 != 0x22) && (iVar3 != 0x2f)) && (iVar3 != 0x5c)) break;
}
else {
switch(iVar3) {
case 0x6e:
break;
case 0x6f:
case 0x70:
case 0x71:
case 0x73:
goto switchD_0014653f_caseD_6f;
case 0x72:
break;
case 0x74:
break;
case 0x75:
uVar4 = get_codepoint(this);
pcVar5 = "invalid string: \'\\u\' must be followed by 4 hex digits";
if (uVar4 == 0xffffffff) goto switchD_0014653f_caseD_6f;
if ((uVar4 & 0xfffffc00) == 0xd800) {
iVar3 = get(this);
if ((iVar3 != 0x5c) || (iVar3 = get(this), iVar3 != 0x75)) {
pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
goto switchD_0014653f_caseD_6f;
}
uVar4 = get_codepoint(this);
if ((uVar4 == 0xffffffff) ||
(pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"
, (uVar4 & 0xfffffc00) != 0xdc00)) goto switchD_0014653f_caseD_6f;
LAB_001465c8:
std::__cxx11::string::push_back(cVar7);
LAB_001465e5:
std::__cxx11::string::push_back(cVar7);
}
else {
if ((uVar4 & 0xfffffc00) == 0xdc00) {
pcVar5 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto switchD_0014653f_caseD_6f;
}
if (0x10ffff < uVar4) {
pcVar5 = "0x00 <= codepoint && codepoint <= 0x10FFFF";
uVar6 = 0x1e49;
goto LAB_00146891;
}
if (uVar4 < 0x80) break;
if (0x7ff < uVar4) {
if (0xffff < uVar4) goto LAB_001465c8;
goto LAB_001465e5;
}
}
std::__cxx11::string::push_back(cVar7);
break;
default:
if ((iVar3 != 0x62) && (iVar3 != 0x66)) goto switchD_0014653f_caseD_6f;
}
}
LAB_001464a6:
std::__cxx11::string::push_back(cVar7);
goto LAB_00146458;
default:
pcVar5 = "invalid string: ill-formed UTF-8 byte";
break;
case 0xc2:
case 0xc3:
case 0xc4:
case 0xc5:
case 0xc6:
case 199:
case 200:
case 0xc9:
case 0xca:
case 0xcb:
case 0xcc:
case 0xcd:
case 0xce:
case 0xcf:
case 0xd0:
case 0xd1:
case 0xd2:
case 0xd3:
case 0xd4:
case 0xd5:
case 0xd6:
case 0xd7:
case 0xd8:
case 0xd9:
case 0xda:
case 0xdb:
case 0xdc:
case 0xdd:
case 0xde:
case 0xdf:
local_48 = 0xbf00000080;
uVar6 = 2;
goto LAB_001464f8;
case 0xe0:
uVar2 = _DAT_001a8580;
uVar8 = _UNK_001a8584;
uStack_40 = _UNK_001a8588;
uStack_3c = _UNK_001a858c;
goto LAB_00146495;
case 0xe1:
case 0xe2:
case 0xe3:
case 0xe4:
case 0xe5:
case 0xe6:
case 0xe7:
case 0xe8:
case 0xe9:
case 0xea:
case 0xeb:
case 0xec:
case 0xee:
case 0xef:
uVar2 = _DAT_001a8570;
uVar8 = _UNK_001a8574;
uStack_40 = _UNK_001a8578;
uStack_3c = _UNK_001a857c;
goto LAB_00146495;
case 0xed:
uVar2 = _DAT_001a8560;
uVar8 = _UNK_001a8564;
uStack_40 = _UNK_001a8568;
uStack_3c = _UNK_001a856c;
LAB_00146495:
local_48 = CONCAT44(uVar8,uVar2);
uVar6 = 4;
LAB_001464f8:
cVar1 = next_byte_in_range(this,&local_48,uVar6);
if (cVar1 == '\0') {
return 0xe;
}
goto LAB_00146458;
case 0xf0:
uVar2 = _DAT_001a8350;
uVar8 = _UNK_001a8354;
uStack_40 = _UNK_001a8358;
uStack_3c = _UNK_001a835c;
goto LAB_001464df;
case 0xf1:
case 0xf2:
case 0xf3:
uVar2 = _DAT_001a8368;
uVar8 = _UNK_001a836c;
uStack_40 = _UNK_001a8370;
uStack_3c = _UNK_001a8374;
goto LAB_001464df;
case 0xf4:
uVar2 = _DAT_001a8380;
uVar8 = _UNK_001a8384;
uStack_40 = _UNK_001a8388;
uStack_3c = _UNK_001a838c;
LAB_001464df:
local_48 = CONCAT44(uVar8,uVar2);
local_38 = 0xbf00000080;
uVar6 = 6;
goto LAB_001464f8;
case 0xffffffff:
pcVar5 = "invalid string: missing closing quote";
}
switchD_0014653f_caseD_6f:
*(char **)(this + 0x70) = pcVar5;
return 0xe;
}
|
|
10,098 |
GetFileLength
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c
|
int GetFileLength(const char *fileName)
{
int size = 0;
// NOTE: On Unix-like systems, it can by used the POSIX system call: stat(),
// but depending on the platform that call could not be available
//struct stat result = { 0 };
//stat(fileName, &result);
//return result.st_size;
FILE *file = fopen(fileName, "rb");
if (file != NULL)
{
fseek(file, 0L, SEEK_END);
long int fileSize = ftell(file);
// Check for size overflow (INT_MAX)
if (fileSize > 2147483647) TRACELOG(LOG_WARNING, "[%s] File size overflows expected limit, do not use GetFileLength()", fileName);
else size = (int)fileSize;
fclose(file);
}
return size;
}
|
O2
|
c
|
GetFileLength:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
leaq 0x57fbb(%rip), %rsi # 0xbb6b3
callq 0x9620
testq %rax, %rax
je 0x6373d
movq %rax, %rbx
xorl %r14d, %r14d
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x95d0
movq %rbx, %rdi
callq 0x9030
movl $0x80000000, %ecx # imm = 0x80000000
cmpq %rcx, %rax
jl 0x63742
leaq 0x62c39(%rip), %rsi # 0xc6367
pushq $0x4
popq %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xa128b
jmp 0x63745
xorl %r14d, %r14d
jmp 0x6374d
movl %eax, %r14d
movq %rbx, %rdi
callq 0x9510
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
|
GetFileLength:
push r15
push r14
push rbx
mov r15, rdi
lea rsi, aRb; "rb"
call _fopen
test rax, rax
jz short loc_6373D
mov rbx, rax
xor r14d, r14d
push 2
pop rdx
mov rdi, rax
xor esi, esi
call _fseek
mov rdi, rbx
call _ftell
mov ecx, 80000000h
cmp rax, rcx
jl short loc_63742
lea rsi, aSFileSizeOverf; "[%s] File size overflows expected limit"...
push 4
pop rdi
mov rdx, r15
xor eax, eax
call TraceLog
jmp short loc_63745
loc_6373D:
xor r14d, r14d
jmp short loc_6374D
loc_63742:
mov r14d, eax
loc_63745:
mov rdi, rbx
call _fclose
loc_6374D:
mov eax, r14d
pop rbx
pop r14
pop r15
retn
|
long long GetFileLength(long long a1)
{
long long v1; // rax
long long v2; // rbx
unsigned int v3; // r14d
long long v4; // rax
int v5; // r8d
int v6; // r9d
v1 = fopen(a1, "rb");
if ( v1 )
{
v2 = v1;
v3 = 0;
fseek(v1, 0LL, 2LL);
v4 = ftell(v2);
if ( v4 < 0x80000000LL )
v3 = v4;
else
TraceLog(
4,
(unsigned int)"[%s] File size overflows expected limit, do not use GetFileLength()",
a1,
0x80000000,
v5,
v6);
fclose(v2);
}
else
{
return 0;
}
return v3;
}
|
GetFileLength:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RDI
LEA RSI,[0x1bb6b3]
CALL 0x00109620
TEST RAX,RAX
JZ 0x0016373d
MOV RBX,RAX
XOR R14D,R14D
PUSH 0x2
POP RDX
MOV RDI,RAX
XOR ESI,ESI
CALL 0x001095d0
MOV RDI,RBX
CALL 0x00109030
MOV ECX,0x80000000
CMP RAX,RCX
JL 0x00163742
LEA RSI,[0x1c6367]
PUSH 0x4
POP RDI
MOV RDX,R15
XOR EAX,EAX
CALL 0x001a128b
JMP 0x00163745
LAB_0016373d:
XOR R14D,R14D
JMP 0x0016374d
LAB_00163742:
MOV R14D,EAX
LAB_00163745:
MOV RDI,RBX
CALL 0x00109510
LAB_0016374d:
MOV EAX,R14D
POP RBX
POP R14
POP R15
RET
|
ulong GetFileLength(char *param_1)
{
FILE *__stream;
ulong uVar1;
ulong uVar2;
__stream = fopen(param_1,"rb");
if (__stream == (FILE *)0x0) {
uVar2 = 0;
}
else {
uVar2 = 0;
fseek(__stream,0,2);
uVar1 = ftell(__stream);
if ((long)uVar1 < 0x80000000) {
uVar2 = uVar1 & 0xffffffff;
}
else {
TraceLog(4,"[%s] File size overflows expected limit, do not use GetFileLength()",param_1);
}
fclose(__stream);
}
return uVar2;
}
|
|
10,099 |
blst_p2_mult
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c
|
void blst_p2_mult(POINTonE2 *out, const POINTonE2 *a,
const byte *scalar, size_t nbits)
{
if (nbits < 144) {
if (nbits)
POINTonE2_mult_w4(out, a, scalar, nbits);
else
vec_zero(out, sizeof(*out));
} else if (nbits <= 256) {
union { vec256 l; pow256 s; } val;
size_t i, j, top, mask = (size_t)0 - 1;
/* this is not about constant-time-ness, but branch optimization */
for (top = (nbits + 7)/8, i=0, j=0; i<sizeof(val.s);) {
val.s[i++] = scalar[j] & mask;
mask = 0 - ((i - top) >> (8*sizeof(top)-1));
j += 1 & mask;
}
if (check_mod_256(val.s, BLS12_381_r)) /* z^4 is the formal limit */
POINTonE2_mult_gls(out, a, val.s);
else /* should never be the case, added for formal completeness */
POINTonE2_mult_w5(out, a, scalar, nbits);
vec_zero(val.l, sizeof(val));
} else { /* should never be the case, added for formal completeness */
POINTonE2_mult_w5(out, a, scalar, nbits);
}
}
|
O0
|
c
|
blst_p2_mult:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
cmpq $0x90, -0x20(%rbp)
jae 0xadc33
cmpq $0x0, -0x20(%rbp)
je 0xadc20
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xadd30
jmp 0xadc2e
movq -0x8(%rbp), %rdi
movl $0x120, %esi # imm = 0x120
callq 0xa87c0
jmp 0xadd21
cmpq $0x100, -0x20(%rbp) # imm = 0x100
ja 0xadd0a
movq $-0x1, -0x60(%rbp)
movq -0x20(%rbp), %rax
addq $0x7, %rax
shrq $0x3, %rax
movq %rax, -0x58(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
cmpq $0x20, -0x48(%rbp)
jae 0xadcbc
movq -0x18(%rbp), %rax
movq -0x50(%rbp), %rcx
movzbl (%rax,%rcx), %eax
andq -0x60(%rbp), %rax
movb %al, %cl
movq -0x48(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x48(%rbp)
movb %cl, -0x40(%rbp,%rax)
movq -0x48(%rbp), %rcx
subq -0x58(%rbp), %rcx
shrq $0x3f, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $0x1, %rax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xadc69
leaq -0x40(%rbp), %rdi
leaq 0x3a549(%rip), %rsi # 0xe8210
callq 0xcd100
cmpq $0x0, %rax
je 0xadce5
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0xadff0
jmp 0xadcfa
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xae1d0
leaq -0x40(%rbp), %rdi
movl $0x20, %esi
callq 0xa87c0
jmp 0xadd1f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xae1d0
jmp 0xadd21
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
blst_p2_mult:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
cmp [rbp+var_20], 90h
jnb short loc_ADC33
cmp [rbp+var_20], 0
jz short loc_ADC20
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call POINTonE2_mult_w4
jmp short loc_ADC2E
loc_ADC20:
mov rdi, [rbp+var_8]
mov esi, 120h
call vec_zero
loc_ADC2E:
jmp loc_ADD21
loc_ADC33:
cmp [rbp+var_20], 100h
ja loc_ADD0A
mov [rbp+var_60], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_20]
add rax, 7
shr rax, 3
mov [rbp+var_58], rax
mov [rbp+var_48], 0
mov [rbp+var_50], 0
loc_ADC69:
cmp [rbp+var_48], 20h ; ' '
jnb short loc_ADCBC
mov rax, [rbp+var_18]
mov rcx, [rbp+var_50]
movzx eax, byte ptr [rax+rcx]
and rax, [rbp+var_60]
mov cl, al
mov rax, [rbp+var_48]
mov rdx, rax
add rdx, 1
mov [rbp+var_48], rdx
mov [rbp+rax+var_40], cl
mov rcx, [rbp+var_48]
sub rcx, [rbp+var_58]
shr rcx, 3Fh
xor eax, eax
sub rax, rcx
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
and rax, 1
add rax, [rbp+var_50]
mov [rbp+var_50], rax
jmp short loc_ADC69
loc_ADCBC:
lea rdi, [rbp+var_40]
lea rsi, BLS12_381_r
call check_mod_256
cmp rax, 0
jz short loc_ADCE5
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_40]
call POINTonE2_mult_gls
jmp short loc_ADCFA
loc_ADCE5:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call POINTonE2_mult_w5
loc_ADCFA:
lea rdi, [rbp+var_40]
mov esi, 20h ; ' '
call vec_zero
jmp short loc_ADD1F
loc_ADD0A:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call POINTonE2_mult_w5
loc_ADD1F:
jmp short $+2
loc_ADD21:
add rsp, 60h
pop rbp
retn
|
long long blst_p2_mult(long long a1, long long a2, long long a3, unsigned long long a4)
{
unsigned long long v5; // rax
long long v6; // [rsp+0h] [rbp-60h]
unsigned long long v7; // [rsp+8h] [rbp-58h]
long long v8; // [rsp+10h] [rbp-50h]
unsigned long long v9; // [rsp+18h] [rbp-48h]
_BYTE v10[32]; // [rsp+20h] [rbp-40h] BYREF
unsigned long long v11; // [rsp+40h] [rbp-20h]
long long v12; // [rsp+48h] [rbp-18h]
long long v13; // [rsp+50h] [rbp-10h]
long long v14; // [rsp+58h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
if ( a4 >= 0x90 )
{
if ( v11 > 0x100 )
{
return POINTonE2_mult_w5(v14, v13, v12, v11);
}
else
{
LOBYTE(v6) = -1;
v7 = (v11 + 7) >> 3;
v9 = 0LL;
v8 = 0LL;
while ( v9 < 0x20 )
{
v5 = v9++;
v10[v5] = v6 & *(_BYTE *)(v12 + v8);
v6 = -(long long)((v9 - v7) >> 63);
v8 += (long long)(v9 - v7) < 0;
}
if ( check_mod_256(v10, &BLS12_381_r) )
POINTonE2_mult_gls(v14, v13, v10);
else
POINTonE2_mult_w5(v14, v13, v12, v11);
return vec_zero((long long)v10, 0x20uLL);
}
}
else if ( v11 )
{
return POINTonE2_mult_w4(v14, v13, v12, v11);
}
else
{
return vec_zero(v14, 0x120uLL);
}
}
|
blst_p2_mult:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
CMP qword ptr [RBP + -0x20],0x90
JNC 0x001adc33
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001adc20
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001add30
JMP 0x001adc2e
LAB_001adc20:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x120
CALL 0x001a87c0
LAB_001adc2e:
JMP 0x001add21
LAB_001adc33:
CMP qword ptr [RBP + -0x20],0x100
JA 0x001add0a
MOV qword ptr [RBP + -0x60],-0x1
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x7
SHR RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x48],0x0
MOV qword ptr [RBP + -0x50],0x0
LAB_001adc69:
CMP qword ptr [RBP + -0x48],0x20
JNC 0x001adcbc
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x50]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
AND RAX,qword ptr [RBP + -0x60]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x48]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x48],RDX
MOV byte ptr [RBP + RAX*0x1 + -0x40],CL
MOV RCX,qword ptr [RBP + -0x48]
SUB RCX,qword ptr [RBP + -0x58]
SHR RCX,0x3f
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
AND RAX,0x1
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001adc69
LAB_001adcbc:
LEA RDI,[RBP + -0x40]
LEA RSI,[0x1e8210]
CALL 0x001cd100
CMP RAX,0x0
JZ 0x001adce5
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x40]
CALL 0x001adff0
JMP 0x001adcfa
LAB_001adce5:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001ae1d0
LAB_001adcfa:
LEA RDI,[RBP + -0x40]
MOV ESI,0x20
CALL 0x001a87c0
JMP 0x001add1f
LAB_001add0a:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001ae1d0
LAB_001add1f:
JMP 0x001add21
LAB_001add21:
ADD RSP,0x60
POP RBP
RET
|
void blst_p2_mult(int8 param_1,int8 param_2,long param_3,ulong param_4)
{
long lVar1;
ulong local_68;
long local_58;
ulong local_50;
byte local_48 [32];
ulong local_28;
long local_20;
int8 local_18;
int8 local_10;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
if (param_4 < 0x90) {
if (param_4 == 0) {
vec_zero(param_1,0x120);
}
else {
POINTonE2_mult_w4(param_1,param_2,param_3,param_4);
}
}
else if (param_4 < 0x101) {
local_68 = 0xffffffffffffffff;
local_50 = 0;
local_58 = 0;
while (local_50 < 0x20) {
local_48[local_50] = *(byte *)(param_3 + local_58) & (byte)local_68;
local_68 = (long)((local_50 + 1) - (param_4 + 7 >> 3)) >> 0x3f;
local_58 = (local_68 & 1) + local_58;
local_50 = local_50 + 1;
}
lVar1 = check_mod_256(local_48,BLS12_381_r);
if (lVar1 == 0) {
POINTonE2_mult_w5(local_10,local_18,local_20,local_28);
}
else {
POINTonE2_mult_gls(local_10,local_18,local_48);
}
vec_zero(local_48,0x20);
}
else {
POINTonE2_mult_w5(param_1,param_2,param_3,param_4);
}
return;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.