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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
59,400
|
casesens(LefDefParser::defrCallbackType_e, int, void*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/defdiff/diffDefRW.cpp
|
int casesens(defrCallbackType_e c, int d, defiUserData ud) {
checkType(c);
if (ud != userData) dataError();
if (d == 1)
fprintf(fout, "NAMESCASESENSITIVE OFF\n"/*, d*/);
else
fprintf(fout, "NAMESCASESENSITIVE ON\n"/*, d*/);
return 0;
}
|
O3
|
cpp
|
casesens(LefDefParser::defrCallbackType_e, int, void*):
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebx
cmpl $0x68, %edi
jb 0xae60
movq 0x58406(%rip), %rcx # 0x63250
leaq 0x3363e(%rip), %rdi # 0x3e48f
movl $0x27, %esi
movl $0x1, %edx
callq 0x6350
cmpq %r14, 0x583f1(%rip) # 0x63258
je 0xae86
movq 0x583e0(%rip), %rcx # 0x63250
leaq 0x335ed(%rip), %rdi # 0x3e464
movl $0x2a, %esi
movl $0x1, %edx
callq 0x6350
movq 0x583c3(%rip), %rcx # 0x63250
cmpl $0x1, %ebx
jne 0xaea0
leaq 0x33e8f(%rip), %rdi # 0x3ed28
movl $0x17, %esi
jmp 0xaeac
leaq 0x33e99(%rip), %rdi # 0x3ed40
movl $0x16, %esi
movl $0x1, %edx
callq 0x6350
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_Z8casesensN12LefDefParser18defrCallbackType_eEiPv:
push r14
push rbx
push rax
mov r14, rdx
mov ebx, esi
cmp edi, 68h ; 'h'
jb short loc_AE60
mov rcx, cs:fout
lea rdi, aErrorCallbackT; "ERROR: callback type is out of bounds!"...
mov esi, 27h ; '''
mov edx, 1
call _fwrite
loc_AE60:
cmp cs:userData, r14
jz short loc_AE86
mov rcx, cs:fout
lea rdi, aErrorReturnedU; "ERROR: returned user data is not correc"...
mov esi, 2Ah ; '*'
mov edx, 1
call _fwrite
loc_AE86:
mov rcx, cs:fout
cmp ebx, 1
jnz short loc_AEA0
lea rdi, aNamescasesensi; "NAMESCASESENSITIVE OFF\n"
mov esi, 17h
jmp short loc_AEAC
loc_AEA0:
lea rdi, aNamescasesensi_0; "NAMESCASESENSITIVE ON\n"
mov esi, 16h
loc_AEAC:
mov edx, 1
call _fwrite
xor eax, eax
add rsp, 8
pop rbx
pop r14
retn
|
long long casesens(unsigned int a1, int a2, long long a3)
{
const char *v4; // rdi
long long v5; // rsi
if ( a1 >= 0x68 )
fwrite("ERROR: callback type is out of bounds!\n", 39LL, 1LL, fout);
if ( userData != a3 )
fwrite("ERROR: returned user data is not correct!\n", 42LL, 1LL, fout);
if ( a2 == 1 )
{
v4 = "NAMESCASESENSITIVE OFF\n";
v5 = 23LL;
}
else
{
v4 = "NAMESCASESENSITIVE ON\n";
v5 = 22LL;
}
fwrite(v4, v5, 1LL, fout);
return 0LL;
}
|
casesens:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBX,ESI
CMP EDI,0x68
JC 0x0010ae60
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e48f]
MOV ESI,0x27
MOV EDX,0x1
CALL 0x00106350
LAB_0010ae60:
CMP qword ptr [0x00163258],R14
JZ 0x0010ae86
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e464]
MOV ESI,0x2a
MOV EDX,0x1
CALL 0x00106350
LAB_0010ae86:
MOV RCX,qword ptr [0x00163250]
CMP EBX,0x1
JNZ 0x0010aea0
LEA RDI,[0x13ed28]
MOV ESI,0x17
JMP 0x0010aeac
LAB_0010aea0:
LEA RDI,[0x13ed40]
MOV ESI,0x16
LAB_0010aeac:
MOV EDX,0x1
CALL 0x00106350
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* casesens(LefDefParser::defrCallbackType_e, int, void*) */
int8 casesens(uint param_1,int param_2,long param_3)
{
size_t __size;
char *__ptr;
if (0x67 < param_1) {
fwrite("ERROR: callback type is out of bounds!\n",0x27,1,fout);
}
if (userData != param_3) {
fwrite("ERROR: returned user data is not correct!\n",0x2a,1,fout);
}
if (param_2 == 1) {
__ptr = "NAMESCASESENSITIVE OFF\n";
__size = 0x17;
}
else {
__ptr = "NAMESCASESENSITIVE ON\n";
__size = 0x16;
}
fwrite(__ptr,__size,1,fout);
return 0;
}
|
|
59,401
|
minja::Parser::parseLogicalAnd()
|
llama.cpp/common/minja/minja.hpp
|
std::shared_ptr<Expression> parseLogicalAnd() {
auto left = parseLogicalNot();
if (!left) throw std::runtime_error("Expected left side of 'logical and' expression");
static std::regex and_tok(R"(and\b)");
auto location = get_location();
while (!consumeToken(and_tok).empty()) {
auto right = parseLogicalNot();
if (!right) throw std::runtime_error("Expected right side of 'and' expression");
left = std::make_shared<BinaryOpExpr>(location, std::move(left), std::move(right), BinaryOpExpr::Op::And);
}
return left;
}
|
O3
|
cpp
|
minja::Parser::parseLogicalAnd():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r15
movq %rdi, %rbx
callq 0xe3b2a
cmpq $0x0, (%rbx)
je 0xe3a3c
leaq 0x83d6c(%rip), %rax # 0x167630
movb (%rax), %al
testb %al, %al
je 0xe3a6e
movq (%r15), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xe38f9
movq 0x826a5(%rip), %rcx # 0x165f90
cmpb $0x0, (%rcx)
je 0xe38f5
incl 0x8(%rax)
jmp 0xe38f9
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 0x815ea(%rip), %rbp # 0x164f00
addq $0x10, %rbp
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
leaq 0x83ce7(%rip), %rdx # 0x167610
movl $0x1, %ecx
callq 0xe21ae
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %r14
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xe3954
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x211a0
testq %r14, %r14
je 0xe39ec
movq %r13, %rdi
movq %r15, %rsi
callq 0xe3b2a
cmpq $0x0, 0x8(%rsp)
je 0xe3a08
movl $0x58, %edi
callq 0x21250
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 $0xe, %r8d
callq 0xef8c6
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 0x74104
leaq 0x58(%rsp), %rdi
callq 0x74104
leaq 0x10(%rsp), %rdi
callq 0x74104
jmp 0xe391a
leaq 0x20(%rsp), %rdi
callq 0x74104
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x21700
movq %rax, %r15
leaq 0x409e6(%rip), %rsi # 0x124402
movq %rax, %rdi
callq 0x21490
movq 0x8258d(%rip), %rsi # 0x165fb8
movq 0x82546(%rip), %rdx # 0x165f78
movq %r15, %rdi
callq 0x21b50
jmp 0xe3a6e
movl $0x10, %edi
callq 0x21700
movq %rax, %r15
leaq 0x4097d(%rip), %rsi # 0x1243cd
movq %rax, %rdi
callq 0x21490
movq 0x82559(%rip), %rsi # 0x165fb8
movq 0x82512(%rip), %rdx # 0x165f78
movq %r15, %rdi
callq 0x21b50
leaq 0x83bbb(%rip), %rdi # 0x167630
callq 0x21640
testl %eax, %eax
je 0xe38ce
leaq 0x83b87(%rip), %rdi # 0x167610
leaq 0x4096c(%rip), %rsi # 0x1243fc
movl $0x10, %edx
callq 0x69a1e
leaq -0x79fd7(%rip), %rdi # 0x69aca
leaq 0x83b68(%rip), %rsi # 0x167610
leaq 0x83129(%rip), %rdx # 0x166bd8
callq 0x22070
leaq 0x83b75(%rip), %rdi # 0x167630
callq 0x21a40
jmp 0xe38ce
movq %rax, %r14
leaq 0x83b61(%rip), %rdi # 0x167630
callq 0x217b0
jmp 0xe3b15
movq %rax, %r14
jmp 0xe3b15
movq %rax, %r14
movq %r15, %rdi
callq 0x220a0
jmp 0xe3b15
jmp 0xe3af9
movq %rax, %r14
movq %r15, %rdi
callq 0x220a0
jmp 0xe3afc
jmp 0xe3b08
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x74104
jmp 0xe3b0b
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x74104
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x74104
movq %r14, %rdi
callq 0x21c10
nop
|
_ZN5minja6Parser15parseLogicalAndEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, rsi
mov rbx, rdi
call _ZN5minja6Parser15parseLogicalNotEv; minja::Parser::parseLogicalNot(void)
cmp qword ptr [rbx], 0
jz loc_E3A3C
lea rax, _ZGVZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; `guard variable for'minja::Parser::parseLogicalAnd(void)::and_tok
mov al, [rax]
test al, al
jz loc_E3A6E
loc_E38CE:
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_E38F9
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_E38F5
inc dword ptr [rax+8]
jmp short loc_E38F9
loc_E38F5:
lock inc dword ptr [rax+8]
loc_E38F9:
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_E391A:
lea rdi, [rsp+98h+var_68]; int
mov rsi, r15; int
lea rdx, _ZZN5minja6Parser15parseLogicalAndEvE7and_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_E3954
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E3954:
test r14, r14
jz loc_E39EC
mov rdi, r13; this
mov rsi, r15
call _ZN5minja6Parser15parseLogicalNotEv; minja::Parser::parseLogicalNot(void)
cmp [rsp+98h+var_90], 0
jz loc_E3A08
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, 0Eh
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_E391A
loc_E39EC:
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_E3A08:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedRightS_0; "Expected right side of 'and' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_E3A6E
loc_E3A3C:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedLeftSi_0; "Expected left side of 'logical and' exp"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
loc_E3A6E:
lea rdi, _ZGVZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_E38CE
lea rdi, _ZZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; minja::Parser::parseLogicalAnd(void)::and_tok
lea rsi, aAndB; "and\\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, _ZZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_E38CE
mov r14, rax
lea rdi, _ZGVZN5minja6Parser15parseLogicalAndEvE7and_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_E3B15
mov r14, rax
jmp short loc_E3B15
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_E3B15
jmp short loc_E3AF9
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_E3AFC
jmp short loc_E3B08
loc_E3AF9:
mov r14, rax
loc_E3AFC:
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_E3B0B
loc_E3B08:
mov r14, rax
loc_E3B0B:
lea rdi, [rsp+arg_18]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_E3B15:
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::parseLogicalAnd(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::parseLogicalNot(this);
if ( !*(_QWORD *)this )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected left side of 'logical and' 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::parseLogicalAnd(void)::and_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseLogicalAnd(void)::and_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseLogicalAnd(void)::and_tok[abi:cxx11],
(long long)"and\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseLogicalAnd(void)::and_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseLogicalAnd(void)::and_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::parseLogicalAnd(void)::and_tok[abi:cxx11],
1u);
v3 = v13[1];
if ( v13[0] != &v14 )
operator delete(v13[0], v14 + 1);
if ( !v3 )
break;
minja::Parser::parseLogicalNot((minja::Parser *)&v9);
if ( !v9 )
{
v7 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v7, "Expected right side of 'and' 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, 14LL);
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;
}
|
parseLogicalAnd:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,RSI
MOV RBX,RDI
CALL 0x001e3b2a
CMP qword ptr [RBX],0x0
JZ 0x001e3a3c
LEA RAX,[0x267630]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001e3a6e
LAB_001e38ce:
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 0x001e38f9
MOV RCX,qword ptr [0x00265f90]
CMP byte ptr [RCX],0x0
JZ 0x001e38f5
INC dword ptr [RAX + 0x8]
JMP 0x001e38f9
LAB_001e38f5:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001e38f9:
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,[0x264f00]
ADD RBP,0x10
LAB_001e391a:
LEA RDI,[RSP + 0x30]
MOV RSI,R15
LEA RDX,[0x267610]
MOV ECX,0x1
CALL 0x001e21ae
MOV RDI,qword ptr [RSP + 0x30]
MOV R14,qword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x40]
CMP RDI,RAX
JZ 0x001e3954
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001211a0
LAB_001e3954:
TEST R14,R14
JZ 0x001e39ec
LAB_001e395d:
MOV RDI,R13
MOV RSI,R15
CALL 0x001e3b2a
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001e3a08
LAB_001e3974:
MOV EDI,0x58
CALL 0x00121250
LAB_001e397e:
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,0xe
CALL 0x001ef8c6
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 0x00174104
LEA RDI,[RSP + 0x58]
CALL 0x00174104
LEA RDI,[RSP + 0x10]
CALL 0x00174104
JMP 0x001e391a
LAB_001e39ec:
LEA RDI,[RSP + 0x20]
CALL 0x00174104
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001e3a08:
MOV EDI,0x10
CALL 0x00121700
MOV R15,RAX
LAB_001e3a15:
LEA RSI,[0x224402]
MOV RDI,RAX
CALL 0x00121490
LAB_001e3a24:
MOV RSI,qword ptr [0x00265fb8]
MOV RDX,qword ptr [0x00265f78]
MOV RDI,R15
CALL 0x00121b50
LAB_001e3a3c:
MOV EDI,0x10
CALL 0x00121700
MOV R15,RAX
LAB_001e3a49:
LEA RSI,[0x2243cd]
MOV RDI,RAX
CALL 0x00121490
LAB_001e3a58:
MOV RSI,qword ptr [0x00265fb8]
MOV RDX,qword ptr [0x00265f78]
MOV RDI,R15
CALL 0x00121b50
LAB_001e3a6e:
LEA RDI,[0x267630]
CALL 0x00121640
TEST EAX,EAX
JZ 0x001e38ce
LAB_001e3a82:
LEA RDI,[0x267610]
LEA RSI,[0x2243fc]
MOV EDX,0x10
CALL 0x00169a1e
LAB_001e3a9a:
LEA RDI,[0x169aca]
LEA RSI,[0x267610]
LEA RDX,[0x266bd8]
CALL 0x00122070
LEA RDI,[0x267630]
CALL 0x00121a40
JMP 0x001e38ce
|
/* minja::Parser::parseLogicalAnd() */
void minja::Parser::parseLogicalAnd(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];
parseLogicalNot();
if (*in_RDI == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e3a49 to 001e3a57 has its CatchHandler @ 001e3adb */
std::runtime_error::runtime_error(prVar4,"Expected left side of \'logical and\' expression");
/* try { // try from 001e3a58 to 001e3a6d has its CatchHandler @ 001e3ad6 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00265fb8,PTR__runtime_error_00265f78);
}
if (parseLogicalAnd()::and_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseLogicalAnd()::and_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 001e3a82 to 001e3a99 has its CatchHandler @ 001e3ac5 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseLogicalAnd()::and_tok_abi_cxx11_,"and\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseLogicalAnd()::and_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseLogicalAnd()::and_tok_abi_cxx11_);
}
}
local_80 = *in_RSI;
local_78 = in_RSI[1];
if (local_78 != 0) {
if (*PTR___libc_single_threaded_00265f90 == '\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 001e391a to 001e3932 has its CatchHandler @ 001e3b08 */
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 001e395d to 001e3967 has its CatchHandler @ 001e3af7 */
parseLogicalNot();
if (local_90 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e3a15 to 001e3a23 has its CatchHandler @ 001e3aea */
std::runtime_error::runtime_error(prVar4,"Expected right side of \'and\' expression");
/* try { // try from 001e3a24 to 001e3a39 has its CatchHandler @ 001e3ae8 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00265fb8,PTR__runtime_error_00265f78);
}
/* try { // try from 001e3974 to 001e397d has its CatchHandler @ 001e3af9 */
puVar3 = (int8 *)operator_new(0x58);
puVar3[1] = 0x100000001;
*puVar3 = &PTR___Sp_counted_base_00264f10;
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;
}
|
|
59,402
|
factorial
|
eloqsql/dbug/factorial.c
|
int factorial (
register int value)
{
DBUG_ENTER ("factorial");
DBUG_PRINT ("find", ("find %d factorial", value));
if (value > 1) {
value *= factorial (value - 1);
}
DBUG_PRINT ("result", ("result is %d", value));
DBUG_RETURN (value);
}
|
O3
|
c
|
factorial:
movl %edi, %eax
cmpl $0x2, %edi
jl 0x24cf1
leal 0x2(%rax), %ecx
andl $-0x4, %ecx
movd %eax, %xmm0
addl $-0x2, %eax
pshufd $0x0, %xmm0, %xmm3 # xmm3 = xmm0[0,0,0,0]
paddd 0x39c6f(%rip), %xmm3 # 0x5e8b0
movd %eax, %xmm0
pshufd $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
movdqa 0x39c6e(%rip), %xmm1 # 0x5e8c0
movl $0x4, %eax
movdqa 0x39c71(%rip), %xmm4 # 0x5e8d0
movdqa %xmm1, %xmm2
movdqa %xmm3, %xmm1
pmuludq %xmm2, %xmm1
pshufd $0xe8, %xmm1, %xmm1 # xmm1 = xmm1[0,2,2,3]
pshufd $0xf5, %xmm2, %xmm5 # xmm5 = xmm2[1,1,3,3]
pshufd $0xf5, %xmm3, %xmm6 # xmm6 = xmm3[1,1,3,3]
pmuludq %xmm5, %xmm6
pshufd $0xe8, %xmm6, %xmm5 # xmm5 = xmm6[0,2,2,3]
punpckldq %xmm5, %xmm1 # xmm1 = xmm1[0],xmm5[0],xmm1[1],xmm5[1]
paddd %xmm4, %xmm3
movl %eax, %edx
addl $-0x4, %eax
addl %ecx, %edx
addl $-0x4, %edx
cmpl $0x4, %edx
jne 0x24c5f
pushq %rbp
movq %rsp, %rbp
negl %eax
movd %eax, %xmm3
pshufd $0x0, %xmm3, %xmm3 # xmm3 = xmm3[0,0,0,0]
por 0x39c2f(%rip), %xmm3 # 0x5e8e0
movdqa 0x39c37(%rip), %xmm4 # 0x5e8f0
pxor %xmm4, %xmm0
pxor %xmm4, %xmm3
pcmpgtd %xmm0, %xmm3
pand %xmm3, %xmm2
pandn %xmm1, %xmm3
por %xmm2, %xmm3
pshufd $0xee, %xmm3, %xmm0 # xmm0 = xmm3[2,3,2,3]
pshufd $0xff, %xmm3, %xmm1 # xmm1 = xmm3[3,3,3,3]
pshufd $0xf5, %xmm3, %xmm2 # xmm2 = xmm3[1,1,3,3]
pmuludq %xmm1, %xmm2
pmuludq %xmm3, %xmm0
pmuludq %xmm2, %xmm0
movd %xmm0, %eax
popq %rbp
retq
nop
|
factorial:
mov eax, edi
cmp edi, 2
jl locret_24CF1
lea ecx, [rax+2]
and ecx, 0FFFFFFFCh
movd xmm0, eax
add eax, 0FFFFFFFEh
pshufd xmm3, xmm0, 0
paddd xmm3, cs:xmmword_5E8B0
movd xmm0, eax
pshufd xmm0, xmm0, 0
movdqa xmm1, cs:xmmword_5E8C0
mov eax, 4
movdqa xmm4, cs:xmmword_5E8D0
loc_24C5F:
movdqa xmm2, xmm1
movdqa xmm1, xmm3
pmuludq xmm1, xmm2
pshufd xmm1, xmm1, 0E8h
pshufd xmm5, xmm2, 0F5h
pshufd xmm6, xmm3, 0F5h
pmuludq xmm6, xmm5
pshufd xmm5, xmm6, 0E8h
punpckldq xmm1, xmm5
paddd xmm3, xmm4
mov edx, eax
add eax, 0FFFFFFFCh
add edx, ecx
add edx, 0FFFFFFFCh
cmp edx, 4
jnz short loc_24C5F
push rbp
mov rbp, rsp
neg eax
movd xmm3, eax
pshufd xmm3, xmm3, 0
por xmm3, cs:xmmword_5E8E0
movdqa xmm4, cs:xmmword_5E8F0
pxor xmm0, xmm4
pxor xmm3, xmm4
pcmpgtd xmm3, xmm0
pand xmm2, xmm3
pandn xmm3, xmm1
por xmm3, xmm2
pshufd xmm0, xmm3, 0EEh
pshufd xmm1, xmm3, 0FFh
pshufd xmm2, xmm3, 0F5h
pmuludq xmm2, xmm1
pmuludq xmm0, xmm3
pmuludq xmm0, xmm2
movd eax, xmm0
pop rbp
locret_24CF1:
retn
|
long long factorial(signed int a1)
{
long long result; // rax
__m128i v2; // xmm3
__m128i v3; // xmm0
__m128i si128; // xmm1
int v5; // eax
__m128i v6; // xmm4
__m128i v7; // xmm2
int v8; // edx
__m128i v9; // xmm4
__m128i v10; // xmm3
__m128i v11; // xmm3
result = (unsigned int)a1;
if ( a1 >= 2 )
{
v2 = _mm_add_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128(a1), 0), (__m128i)xmmword_5E8B0);
v3 = _mm_shuffle_epi32(_mm_cvtsi32_si128(a1 - 2), 0);
si128 = _mm_load_si128((const __m128i *)&xmmword_5E8C0);
v5 = 4;
v6 = _mm_load_si128((const __m128i *)&xmmword_5E8D0);
do
{
v7 = si128;
si128 = _mm_unpacklo_epi32(
_mm_shuffle_epi32(_mm_mul_epu32(v2, si128), 232),
_mm_shuffle_epi32(_mm_mul_epu32(_mm_shuffle_epi32(v2, 245), _mm_shuffle_epi32(si128, 245)), 232));
v2 = _mm_add_epi32(v2, v6);
v8 = v5;
v5 -= 4;
}
while ( ((a1 + 2) & 0xFFFFFFFC) + v8 != 8 );
v9 = _mm_load_si128(xmmword_5E8F0);
v10 = _mm_cmpgt_epi32(
_mm_xor_si128(_mm_or_si128(_mm_shuffle_epi32(_mm_cvtsi32_si128(-v5), 0), (__m128i)xmmword_5E8E0), v9),
_mm_xor_si128(v3, v9));
v11 = _mm_or_si128(_mm_andnot_si128(v10, si128), _mm_and_si128(v7, v10));
return (unsigned int)_mm_cvtsi128_si32(
_mm_mul_epu32(
_mm_mul_epu32(_mm_shuffle_epi32(v11, 238), v11),
_mm_mul_epu32(_mm_shuffle_epi32(v11, 245), _mm_shuffle_epi32(v11, 255))));
}
return result;
}
|
factorial:
MOV EAX,EDI
CMP EDI,0x2
JL 0x00124cf1
LEA ECX,[RAX + 0x2]
AND ECX,0xfffffffc
MOVD XMM0,EAX
ADD EAX,-0x2
PSHUFD XMM3,XMM0,0x0
PADDD XMM3,xmmword ptr [0x0015e8b0]
MOVD XMM0,EAX
PSHUFD XMM0,XMM0,0x0
MOVDQA XMM1,xmmword ptr [0x0015e8c0]
MOV EAX,0x4
MOVDQA XMM4,xmmword ptr [0x0015e8d0]
LAB_00124c5f:
MOVDQA XMM2,XMM1
MOVDQA XMM1,XMM3
PMULUDQ XMM1,XMM2
PSHUFD XMM1,XMM1,0xe8
PSHUFD XMM5,XMM2,0xf5
PSHUFD XMM6,XMM3,0xf5
PMULUDQ XMM6,XMM5
PSHUFD XMM5,XMM6,0xe8
PUNPCKLDQ XMM1,XMM5
PADDD XMM3,XMM4
MOV EDX,EAX
ADD EAX,-0x4
ADD EDX,ECX
ADD EDX,-0x4
CMP EDX,0x4
JNZ 0x00124c5f
PUSH RBP
MOV RBP,RSP
NEG EAX
MOVD XMM3,EAX
PSHUFD XMM3,XMM3,0x0
POR XMM3,xmmword ptr [0x0015e8e0]
MOVDQA XMM4,xmmword ptr [0x0015e8f0]
PXOR XMM0,XMM4
PXOR XMM3,XMM4
PCMPGTD XMM3,XMM0
PAND XMM2,XMM3
PANDN XMM3,XMM1
POR XMM3,XMM2
PSHUFD XMM0,XMM3,0xee
PSHUFD XMM1,XMM3,0xff
PSHUFD XMM2,XMM3,0xf5
PMULUDQ XMM2,XMM1
PMULUDQ XMM0,XMM3
PMULUDQ XMM0,XMM2
MOVD EAX,XMM0
POP RBP
LAB_00124cf1:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int factorial(int param_1)
{
uint uVar1;
int iVar2;
int iVar3;
uint uVar4;
int iVar5;
uint uVar6;
uint uVar7;
uint uVar8;
uint uVar9;
uint uVar10;
uint uVar11;
uint uVar12;
uint uVar15;
uint uVar16;
int1 auVar13 [16];
int1 auVar14 [16];
uint uVar17;
uint uVar18;
if (1 < param_1) {
uVar1 = param_1 - 2;
auVar13._0_4_ = param_1 + _DAT_0015e8b0;
auVar13._4_4_ = param_1 + _UNK_0015e8b4;
auVar13._8_4_ = param_1 + _UNK_0015e8b8;
auVar13._12_4_ = param_1 + _UNK_0015e8bc;
iVar2 = 4;
uVar7 = _DAT_0015e8c0;
uVar17 = _UNK_0015e8c4;
uVar10 = _UNK_0015e8c8;
uVar18 = _UNK_0015e8cc;
do {
uVar11 = uVar18;
uVar9 = uVar10;
uVar8 = uVar17;
uVar6 = uVar7;
uVar7 = auVar13._0_4_ * uVar6;
uVar10 = (uint)((auVar13._8_8_ & 0xffffffff) * (ulong)uVar9);
uVar17 = auVar13._4_4_ * uVar8;
uVar18 = auVar13._12_4_ * uVar11;
auVar14._0_4_ = auVar13._0_4_ + _DAT_0015e8d0;
auVar14._4_4_ = auVar13._4_4_ + _UNK_0015e8d4;
auVar14._8_4_ = auVar13._8_4_ + _UNK_0015e8d8;
auVar14._12_4_ = auVar13._12_4_ + _UNK_0015e8dc;
iVar3 = iVar2 + -4;
iVar5 = iVar2 + (param_1 + 2U & 0xfffffffc);
auVar13 = auVar14;
iVar2 = iVar3;
} while (iVar5 != 8);
uVar4 = -iVar3;
uVar12 = -(uint)((int)(uVar1 ^ _DAT_0015e8f0) < (int)((uVar4 | _DAT_0015e8e0) ^ _DAT_0015e8f0));
uVar15 = -(uint)((int)(uVar1 ^ _UNK_0015e8f4) < (int)((uVar4 | _UNK_0015e8e4) ^ _UNK_0015e8f4));
uVar16 = -(uint)((int)(uVar1 ^ _UNK_0015e8f8) < (int)((uVar4 | _UNK_0015e8e8) ^ _UNK_0015e8f8));
uVar1 = -(uint)((int)(uVar1 ^ _UNK_0015e8fc) < (int)((uVar4 | _UNK_0015e8ec) ^ _UNK_0015e8fc));
param_1 = (~uVar16 & uVar10 | uVar9 & uVar16) * (~uVar12 & uVar7 | uVar6 & uVar12) *
(~uVar15 & uVar17 | uVar8 & uVar15) * (~uVar1 & uVar18 | uVar11 & uVar1);
}
return param_1;
}
|
|
59,403
|
gc_scan_incref_child
|
bluesky950520[P]quickjs/quickjs.c
|
static void gc_scan_incref_child(JSRuntime *rt, JSGCObjectHeader *p)
{
p->ref_count++;
if (p->ref_count == 1) {
/* ref_count was 0: remove from tmp_obj_list and add at the
end of gc_obj_list */
list_del(&p->link);
list_add_tail(&p->link, &rt->gc_obj_list);
p->mark = 0; /* reset the mark for the next GC call */
}
}
|
O1
|
c
|
gc_scan_incref_child:
movl (%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rsi)
testl %eax, %eax
je 0x3c651
retq
leaq 0x8(%rsi), %rax
movq 0x8(%rsi), %rcx
movq 0x10(%rsi), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
leaq 0x98(%rdi), %rcx
movq 0x98(%rdi), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movq %rax, 0x98(%rdi)
andb $0xf, 0x4(%rsi)
retq
|
gc_scan_incref_child:
mov eax, [rsi]
lea ecx, [rax+1]
mov [rsi], ecx
test eax, eax
jz short loc_3C651
retn
loc_3C651:
lea rax, [rsi+8]
mov rcx, [rsi+8]
mov rdx, [rsi+10h]
mov [rcx+8], rdx
mov [rdx], rcx
xorps xmm0, xmm0
movups xmmword ptr [rsi+8], xmm0
lea rcx, [rdi+98h]
mov rdx, [rdi+98h]
mov [rdx+8], rax
mov [rsi+8], rdx
mov [rsi+10h], rcx
mov [rdi+98h], rax
and byte ptr [rsi+4], 0Fh
retn
|
unsigned int * gc_scan_incref_child(long long a1, unsigned int *a2)
{
unsigned int *result; // rax
long long v3; // rcx
_QWORD *v4; // rdx
long long v5; // rdx
result = (unsigned int *)*a2;
*a2 = (_DWORD)result + 1;
if ( !(_DWORD)result )
{
result = a2 + 2;
v3 = *((_QWORD *)a2 + 1);
v4 = (_QWORD *)*((_QWORD *)a2 + 2);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 2) = 0LL;
v5 = *(_QWORD *)(a1 + 152);
*(_QWORD *)(v5 + 8) = a2 + 2;
*((_QWORD *)a2 + 1) = v5;
*((_QWORD *)a2 + 2) = a1 + 152;
*(_QWORD *)(a1 + 152) = a2 + 2;
*((_BYTE *)a2 + 4) &= 0xFu;
}
return result;
}
|
gc_scan_incref_child:
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + 0x1]
MOV dword ptr [RSI],ECX
TEST EAX,EAX
JZ 0x0013c651
RET
LAB_0013c651:
LEA RAX,[RSI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDX,qword ptr [RSI + 0x10]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x8],XMM0
LEA RCX,[RDI + 0x98]
MOV RDX,qword ptr [RDI + 0x98]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RSI + 0x10],RCX
MOV qword ptr [RDI + 0x98],RAX
AND byte ptr [RSI + 0x4],0xf
RET
|
void gc_scan_incref_child(long param_1,int *param_2)
{
int iVar1;
long lVar2;
long *plVar3;
iVar1 = *param_2;
*param_2 = iVar1 + 1;
if (iVar1 != 0) {
return;
}
lVar2 = *(long *)(param_2 + 2);
plVar3 = *(long **)(param_2 + 4);
*(long **)(lVar2 + 8) = plVar3;
*plVar3 = lVar2;
param_2[2] = 0;
param_2[3] = 0;
param_2[4] = 0;
param_2[5] = 0;
lVar2 = *(long *)(param_1 + 0x98);
*(int **)(lVar2 + 8) = param_2 + 2;
*(long *)(param_2 + 2) = lVar2;
*(long *)(param_2 + 4) = param_1 + 0x98;
*(int **)(param_1 + 0x98) = param_2 + 2;
*(byte *)(param_2 + 1) = *(byte *)(param_2 + 1) & 0xf;
return;
}
|
|
59,404
|
gc_scan_incref_child
|
bluesky950520[P]quickjs/quickjs.c
|
static void gc_scan_incref_child(JSRuntime *rt, JSGCObjectHeader *p)
{
p->ref_count++;
if (p->ref_count == 1) {
/* ref_count was 0: remove from tmp_obj_list and add at the
end of gc_obj_list */
list_del(&p->link);
list_add_tail(&p->link, &rt->gc_obj_list);
p->mark = 0; /* reset the mark for the next GC call */
}
}
|
O2
|
c
|
gc_scan_incref_child:
movl (%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rsi)
testl %eax, %eax
je 0x35142
retq
leaq 0x8(%rsi), %rax
movq 0x8(%rsi), %rcx
movq 0x10(%rsi), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
leaq 0x98(%rdi), %rcx
movq 0x98(%rdi), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movq %rax, 0x98(%rdi)
andb $0xf, 0x4(%rsi)
retq
|
gc_scan_incref_child:
mov eax, [rsi]
lea ecx, [rax+1]
mov [rsi], ecx
test eax, eax
jz short loc_35142
retn
loc_35142:
lea rax, [rsi+8]
mov rcx, [rsi+8]
mov rdx, [rsi+10h]
mov [rcx+8], rdx
mov [rdx], rcx
xorps xmm0, xmm0
movups xmmword ptr [rsi+8], xmm0
lea rcx, [rdi+98h]
mov rdx, [rdi+98h]
mov [rdx+8], rax
mov [rsi+8], rdx
mov [rsi+10h], rcx
mov [rdi+98h], rax
and byte ptr [rsi+4], 0Fh
retn
|
unsigned int * gc_scan_incref_child(long long a1, unsigned int *a2)
{
unsigned int *result; // rax
long long v3; // rcx
_QWORD *v4; // rdx
long long v5; // rdx
result = (unsigned int *)*a2;
*a2 = (_DWORD)result + 1;
if ( !(_DWORD)result )
{
result = a2 + 2;
v3 = *((_QWORD *)a2 + 1);
v4 = (_QWORD *)*((_QWORD *)a2 + 2);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 2) = 0LL;
v5 = *(_QWORD *)(a1 + 152);
*(_QWORD *)(v5 + 8) = a2 + 2;
*((_QWORD *)a2 + 1) = v5;
*((_QWORD *)a2 + 2) = a1 + 152;
*(_QWORD *)(a1 + 152) = a2 + 2;
*((_BYTE *)a2 + 4) &= 0xFu;
}
return result;
}
|
gc_scan_incref_child:
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + 0x1]
MOV dword ptr [RSI],ECX
TEST EAX,EAX
JZ 0x00135142
RET
LAB_00135142:
LEA RAX,[RSI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDX,qword ptr [RSI + 0x10]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x8],XMM0
LEA RCX,[RDI + 0x98]
MOV RDX,qword ptr [RDI + 0x98]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RSI + 0x10],RCX
MOV qword ptr [RDI + 0x98],RAX
AND byte ptr [RSI + 0x4],0xf
RET
|
void gc_scan_incref_child(long param_1,int *param_2)
{
int iVar1;
long lVar2;
long *plVar3;
iVar1 = *param_2;
*param_2 = iVar1 + 1;
if (iVar1 != 0) {
return;
}
lVar2 = *(long *)(param_2 + 2);
plVar3 = *(long **)(param_2 + 4);
*(long **)(lVar2 + 8) = plVar3;
*plVar3 = lVar2;
param_2[2] = 0;
param_2[3] = 0;
param_2[4] = 0;
param_2[5] = 0;
lVar2 = *(long *)(param_1 + 0x98);
*(int **)(lVar2 + 8) = param_2 + 2;
*(long *)(param_2 + 2) = lVar2;
*(long *)(param_2 + 4) = param_1 + 0x98;
*(int **)(param_1 + 0x98) = param_2 + 2;
*(byte *)(param_2 + 1) = *(byte *)(param_2 + 1) & 0xf;
return;
}
|
|
59,405
|
gc_scan_incref_child
|
bluesky950520[P]quickjs/quickjs.c
|
static void gc_scan_incref_child(JSRuntime *rt, JSGCObjectHeader *p)
{
p->ref_count++;
if (p->ref_count == 1) {
/* ref_count was 0: remove from tmp_obj_list and add at the
end of gc_obj_list */
list_del(&p->link);
list_add_tail(&p->link, &rt->gc_obj_list);
p->mark = 0; /* reset the mark for the next GC call */
}
}
|
O3
|
c
|
gc_scan_incref_child:
movl (%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rsi)
testl %eax, %eax
je 0x3dbf5
retq
leaq 0x8(%rsi), %rax
movq 0x8(%rsi), %rcx
movq 0x10(%rsi), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
leaq 0x98(%rdi), %rcx
movq 0x98(%rdi), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movq %rax, 0x98(%rdi)
andb $0xf, 0x4(%rsi)
retq
|
gc_scan_incref_child:
mov eax, [rsi]
lea ecx, [rax+1]
mov [rsi], ecx
test eax, eax
jz short loc_3DBF5
retn
loc_3DBF5:
lea rax, [rsi+8]
mov rcx, [rsi+8]
mov rdx, [rsi+10h]
mov [rcx+8], rdx
mov [rdx], rcx
xorps xmm0, xmm0
movups xmmword ptr [rsi+8], xmm0
lea rcx, [rdi+98h]
mov rdx, [rdi+98h]
mov [rdx+8], rax
mov [rsi+8], rdx
mov [rsi+10h], rcx
mov [rdi+98h], rax
and byte ptr [rsi+4], 0Fh
retn
|
unsigned int * gc_scan_incref_child(long long a1, unsigned int *a2)
{
unsigned int *result; // rax
long long v3; // rcx
_QWORD *v4; // rdx
long long v5; // rdx
result = (unsigned int *)*a2;
*a2 = (_DWORD)result + 1;
if ( !(_DWORD)result )
{
result = a2 + 2;
v3 = *((_QWORD *)a2 + 1);
v4 = (_QWORD *)*((_QWORD *)a2 + 2);
*(_QWORD *)(v3 + 8) = v4;
*v4 = v3;
*(_OWORD *)(a2 + 2) = 0LL;
v5 = *(_QWORD *)(a1 + 152);
*(_QWORD *)(v5 + 8) = a2 + 2;
*((_QWORD *)a2 + 1) = v5;
*((_QWORD *)a2 + 2) = a1 + 152;
*(_QWORD *)(a1 + 152) = a2 + 2;
*((_BYTE *)a2 + 4) &= 0xFu;
}
return result;
}
|
gc_scan_incref_child:
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + 0x1]
MOV dword ptr [RSI],ECX
TEST EAX,EAX
JZ 0x0013dbf5
RET
LAB_0013dbf5:
LEA RAX,[RSI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDX,qword ptr [RSI + 0x10]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x8],XMM0
LEA RCX,[RDI + 0x98]
MOV RDX,qword ptr [RDI + 0x98]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RSI + 0x10],RCX
MOV qword ptr [RDI + 0x98],RAX
AND byte ptr [RSI + 0x4],0xf
RET
|
void gc_scan_incref_child(long param_1,int *param_2)
{
int iVar1;
long lVar2;
long *plVar3;
iVar1 = *param_2;
*param_2 = iVar1 + 1;
if (iVar1 != 0) {
return;
}
lVar2 = *(long *)(param_2 + 2);
plVar3 = *(long **)(param_2 + 4);
*(long **)(lVar2 + 8) = plVar3;
*plVar3 = lVar2;
param_2[2] = 0;
param_2[3] = 0;
param_2[4] = 0;
param_2[5] = 0;
lVar2 = *(long *)(param_1 + 0x98);
*(int **)(lVar2 + 8) = param_2 + 2;
*(long *)(param_2 + 2) = lVar2;
*(long *)(param_2 + 4) = param_1 + 0x98;
*(int **)(param_1 + 0x98) = param_2 + 2;
*(byte *)(param_2 + 1) = *(byte *)(param_2 + 1) & 0xf;
return;
}
|
|
59,406
|
JS_DefineObjectName
|
bluesky950520[P]quickjs/quickjs.c
|
static int JS_DefineObjectName(JSContext *ctx, JSValue obj,
JSAtom name, int flags)
{
if (name != JS_ATOM_NULL
&& JS_IsObject(obj)
&& !js_object_has_name(ctx, obj)
&& JS_DefinePropertyValue(ctx, obj, JS_ATOM_name, JS_AtomToString(ctx, name), flags) < 0) {
return -1;
}
return 0;
}
|
O0
|
c
|
JS_DefineObjectName:
subq $0x48, %rsp
movq %rsi, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq %rdi, 0x28(%rsp)
movl %ecx, 0x24(%rsp)
movl %r8d, 0x20(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x67a7f
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x29cb0
cmpl $0x0, %eax
je 0x67a7f
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x6e370
cmpl $0x0, %eax
jne 0x67a7f
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
callq 0x27d40
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl 0x20(%rsp), %eax
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
movl $0x37, %ecx
movl %eax, (%rsp)
callq 0x35ef0
cmpl $0x0, %eax
jge 0x67a7f
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x67a87
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
|
JS_DefineObjectName:
sub rsp, 48h
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_10], rdx
mov [rsp+48h+var_20], rdi
mov [rsp+48h+var_24], ecx
mov [rsp+48h+var_28], r8d
cmp [rsp+48h+var_24], 0
jz loc_67A7F
mov rdi, [rsp+48h+var_18]
mov rsi, [rsp+48h+var_10]
call JS_IsObject
cmp eax, 0
jz short loc_67A7F
mov rdi, [rsp+48h+var_20]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_10]
call js_object_has_name
cmp eax, 0
jnz short loc_67A7F
mov rax, [rsp+48h+var_20]
mov [rsp+48h+var_40], rax
mov rdi, [rsp+48h+var_20]
mov esi, [rsp+48h+var_24]
call JS_AtomToString
mov rdi, [rsp+48h+var_40]
mov [rsp+48h+var_38], rax
mov [rsp+48h+var_30], rdx
mov eax, [rsp+48h+var_28]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_10]
mov r8, [rsp+48h+var_38]
mov r9, [rsp+48h+var_30]
mov ecx, 37h ; '7'
mov [rsp+48h+var_48], eax
call JS_DefinePropertyValue
cmp eax, 0
jge short loc_67A7F
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp short loc_67A87
loc_67A7F:
mov [rsp+48h+var_4], 0
loc_67A87:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
|
long long JS_DefineObjectName(
long long a1,
long long a2,
long long a3,
unsigned int a4,
int a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rdx
__m128 v14; // xmm4
__m128 v15; // xmm5
_DWORD *v17; // [rsp+10h] [rbp-38h]
if ( a4
&& JS_IsObject(a2, a3)
&& !(unsigned int)js_object_has_name(a1, a2, a3)
&& (v17 = (_DWORD *)JS_AtomToString(a1, a4),
(int)JS_DefinePropertyValue(a1, a2, a3, 0x37u, v17, v13, a6, a7, a8, a9, v14, v15, a12, a13, a5) < 0) )
{
return (unsigned int)-1;
}
else
{
return 0;
}
}
|
JS_DefineObjectName:
SUB RSP,0x48
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x28],RDI
MOV dword ptr [RSP + 0x24],ECX
MOV dword ptr [RSP + 0x20],R8D
CMP dword ptr [RSP + 0x24],0x0
JZ 0x00167a7f
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00129cb0
CMP EAX,0x0
JZ 0x00167a7f
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x0016e370
CMP EAX,0x0
JNZ 0x00167a7f
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x24]
CALL 0x00127d40
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV EAX,dword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV R8,qword ptr [RSP + 0x10]
MOV R9,qword ptr [RSP + 0x18]
MOV ECX,0x37
MOV dword ptr [RSP],EAX
CALL 0x00135ef0
CMP EAX,0x0
JGE 0x00167a7f
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x00167a87
LAB_00167a7f:
MOV dword ptr [RSP + 0x44],0x0
LAB_00167a87:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
int4
JS_DefineObjectName(int8 param_1,int8 param_2,int8 param_3,int param_4,
int4 param_5)
{
int iVar1;
int1 auVar2 [16];
if (((param_4 != 0) && (iVar1 = JS_IsObject(param_2,param_3), iVar1 != 0)) &&
(iVar1 = js_object_has_name(param_1,param_2,param_3), iVar1 == 0)) {
auVar2 = JS_AtomToString(param_1,param_4);
iVar1 = JS_DefinePropertyValue(param_1,param_2,param_3,0x37,auVar2._0_8_,auVar2._8_8_,param_5);
if (iVar1 < 0) {
return 0xffffffff;
}
}
return 0;
}
|
|
59,407
|
JS_DefineObjectName
|
bluesky950520[P]quickjs/quickjs.c
|
static int JS_DefineObjectName(JSContext *ctx, JSValue obj,
JSAtom name, int flags)
{
if (name != JS_ATOM_NULL
&& JS_IsObject(obj)
&& !js_object_has_name(ctx, obj)
&& JS_DefinePropertyValue(ctx, obj, JS_ATOM_name, JS_AtomToString(ctx, name), flags) < 0) {
return -1;
}
return 0;
}
|
O1
|
c
|
JS_DefineObjectName:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %rbx
testl %ecx, %ecx
setne %al
cmpl $-0x1, %ebx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x3f0dd
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x411e8
testl %eax, %eax
jne 0x3f0dd
movq %r15, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0x1fb46
movq %rdx, %r9
movl $0x1, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x37, %ecx
movq %rax, %r8
callq 0x25ea7
testl %eax, %eax
js 0x3f0ea
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x3f0df
|
JS_DefineObjectName:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, ecx
mov rbx, rdx
test ecx, ecx
setnz al
cmp ebx, 0FFFFFFFFh
setz cl
and cl, al
cmp cl, 1
jnz short loc_3F0DD
mov r14, rsi
mov r15, rdi
mov rdi, rsi
call js_object_has_name
test eax, eax
jnz short loc_3F0DD
mov rdi, r15
mov esi, ebp
mov edx, 1
call __JS_AtomToValue
mov r9, rdx
mov [rsp+28h+var_28], 1
mov rdi, r15
mov rsi, r14
mov rdx, rbx
mov ecx, 37h ; '7'
mov r8, rax
call JS_DefinePropertyValue
test eax, eax
js short loc_3F0EA
loc_3F0DD:
xor eax, eax
loc_3F0DF:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_3F0EA:
mov eax, 0FFFFFFFFh
jmp short loc_3F0DF
|
long long JS_DefineObjectName(
long long a1,
unsigned long long a2,
long long a3,
int a4,
double a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
_DWORD *v14; // rax
long long v15; // rdx
__m128 v16; // xmm4
__m128 v17; // xmm5
if ( a4 != 0
&& (_DWORD)a3 == -1
&& !(unsigned int)js_object_has_name(a2)
&& (v14 = (_DWORD *)_JS_AtomToValue(a1, a4, 1),
(int)JS_DefinePropertyValue(a1, a2, a3, 55LL, v14, v15, a5, a6, a7, a8, v16, v17, a11, a12, 1) < 0) )
{
return 0xFFFFFFFFLL;
}
else
{
return 0LL;
}
}
|
JS_DefineObjectName:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV RBX,RDX
TEST ECX,ECX
SETNZ AL
CMP EBX,-0x1
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0013f0dd
MOV R14,RSI
MOV R15,RDI
MOV RDI,RSI
CALL 0x001411e8
TEST EAX,EAX
JNZ 0x0013f0dd
MOV RDI,R15
MOV ESI,EBP
MOV EDX,0x1
CALL 0x0011fb46
MOV R9,RDX
MOV dword ptr [RSP],0x1
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV ECX,0x37
MOV R8,RAX
CALL 0x00125ea7
TEST EAX,EAX
JS 0x0013f0ea
LAB_0013f0dd:
XOR EAX,EAX
LAB_0013f0df:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0013f0ea:
MOV EAX,0xffffffff
JMP 0x0013f0df
|
int8 JS_DefineObjectName(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int iVar1;
int8 in_RAX;
int1 auVar2 [16];
int4 uVar3;
uVar3 = (int4)((ulong)in_RAX >> 0x20);
if (((int)param_3 == -1 && param_4 != 0) && (iVar1 = js_object_has_name(param_2), iVar1 == 0)) {
auVar2 = __JS_AtomToValue(param_1,param_4,1);
iVar1 = JS_DefinePropertyValue
(param_1,param_2,param_3,0x37,auVar2._0_8_,auVar2._8_8_,CONCAT44(uVar3,1));
if (iVar1 < 0) {
return 0xffffffff;
}
}
return 0;
}
|
|
59,408
|
ConfigGamepadAxis::~ConfigGamepadAxis()
|
untodesu[P]voxelius/game/client/gamepad_axis.hh
|
virtual ~ConfigGamepadAxis(void) = default;
|
O3
|
cpp
|
ConfigGamepadAxis::~ConfigGamepadAxis():
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
leaq 0x20(%rbx), %rax
cmpq %rax, %rdi
je 0x4e8b0
movq (%rax), %rsi
incq %rsi
callq 0x268e0
movl $0x38, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x268e0
nop
|
_ZN17ConfigGamepadAxisD0Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+10h]; void *
lea rax, [rbx+20h]
cmp rdi, rax
jz short loc_4E8B0
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4E8B0:
mov esi, 38h ; '8'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
|
void ConfigGamepadAxis::~ConfigGamepadAxis(ConfigGamepadAxis *this)
{
char *v2; // rdi
v2 = (char *)*((_QWORD *)this + 2);
if ( v2 != (char *)this + 32 )
operator delete(v2, *((_QWORD *)this + 4) + 1LL);
operator delete(this, 0x38uLL);
}
|
~ConfigGamepadAxis:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x10]
LEA RAX,[RBX + 0x20]
CMP RDI,RAX
JZ 0x0014e8b0
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001268e0
LAB_0014e8b0:
MOV ESI,0x38
MOV RDI,RBX
POP RBX
JMP 0x001268e0
|
/* ConfigGamepadAxis::~ConfigGamepadAxis() */
void __thiscall ConfigGamepadAxis::~ConfigGamepadAxis(ConfigGamepadAxis *this)
{
if (*(ConfigGamepadAxis **)(this + 0x10) != this + 0x20) {
operator_delete(*(ConfigGamepadAxis **)(this + 0x10),*(long *)(this + 0x20) + 1);
}
operator_delete(this,0x38);
return;
}
|
|
59,409
|
testing::internal::DefaultDeathTestFactory::Create(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>, char const*, int, testing::internal::DeathTest**)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-death-test.cc
|
bool DefaultDeathTestFactory::Create(const char* statement,
Matcher<const std::string&> matcher,
const char* file, int line,
DeathTest** test) {
UnitTestImpl* const impl = GetUnitTestImpl();
const InternalRunDeathTestFlag* const flag =
impl->internal_run_death_test_flag();
const int death_test_index =
impl->current_test_info()->increment_death_test_count();
if (flag != nullptr) {
if (death_test_index > flag->index()) {
DeathTest::set_last_death_test_message(
"Death test count (" + StreamableToString(death_test_index) +
") somehow exceeded expected maximum (" +
StreamableToString(flag->index()) + ")");
return false;
}
if (!(flag->file() == file && flag->line() == line &&
flag->index() == death_test_index)) {
*test = nullptr;
return true;
}
}
#ifdef GTEST_OS_WINDOWS
if (GTEST_FLAG_GET(death_test_style) == "threadsafe" ||
GTEST_FLAG_GET(death_test_style) == "fast") {
*test = new WindowsDeathTest(statement, std::move(matcher), file, line);
}
#elif defined(GTEST_OS_FUCHSIA)
if (GTEST_FLAG_GET(death_test_style) == "threadsafe" ||
GTEST_FLAG_GET(death_test_style) == "fast") {
*test = new FuchsiaDeathTest(statement, std::move(matcher), file, line);
}
#else
if (GTEST_FLAG_GET(death_test_style) == "threadsafe") {
*test = new ExecDeathTest(statement, std::move(matcher), file, line);
} else if (GTEST_FLAG_GET(death_test_style) == "fast") {
*test = new NoExecDeathTest(statement, std::move(matcher));
}
#endif // GTEST_OS_WINDOWS
else { // NOLINT - this is more readable than unbalanced brackets inside #if.
DeathTest::set_last_death_test_message("Unknown death test style \"" +
GTEST_FLAG_GET(death_test_style) +
"\" encountered");
return false;
}
|
O0
|
cpp
|
testing::internal::DefaultDeathTestFactory::Create(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>, char const*, int, testing::internal::DeathTest**):
subq $0x1f8, %rsp # imm = 0x1F8
movq %rdx, 0x48(%rsp)
movq %rdi, 0x1e8(%rsp)
movq %rsi, 0x1e0(%rsp)
movq %rdx, 0x1d8(%rsp)
movq %rcx, 0x1d0(%rsp)
movl %r8d, 0x1cc(%rsp)
movq %r9, 0x1c0(%rsp)
callq 0xeaeb0
movq %rax, 0x1b8(%rsp)
movq 0x1b8(%rsp), %rdi
callq 0xeb520
movq %rax, 0x1b0(%rsp)
movq 0x1b8(%rsp), %rdi
callq 0xeaec0
movq %rax, %rdi
callq 0xeb760
movl %eax, 0x1ac(%rsp)
cmpq $0x0, 0x1b0(%rsp)
je 0xbe656
movl 0x1ac(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0x1b0(%rsp), %rdi
callq 0xeb780
movl %eax, %ecx
movl 0x44(%rsp), %eax
cmpl %ecx, %eax
jle 0xbe5e9
leaq 0x108(%rsp), %rdi
movq %rdi, 0x38(%rsp)
leaq 0x1ac(%rsp), %rsi
callq 0xeafc0
movq 0x38(%rsp), %rdx
leaq 0x5e496(%rip), %rsi # 0x11c89b
leaq 0x128(%rsp), %rdi
callq 0x32c30
jmp 0xbe414
leaq 0x5e493(%rip), %rdx # 0x11c8ae
leaq 0x148(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x42350
jmp 0xbe432
movq 0x1b0(%rsp), %rdi
callq 0xeb780
movl %eax, 0x34(%rsp)
jmp 0xbe445
movl 0x34(%rsp), %eax
movl %eax, 0xd4(%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xd4(%rsp), %rsi
callq 0xeafc0
jmp 0xbe467
leaq 0x168(%rsp), %rdi
leaq 0x148(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0x945a0
jmp 0xbe486
leaq 0x5f24e(%rip), %rdx # 0x11d6db
leaq 0x188(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x42350
jmp 0xbe4a4
leaq 0x188(%rsp), %rdi
callq 0xb97e0
jmp 0xbe4b3
leaq 0x188(%rsp), %rdi
callq 0x1dfd0
leaq 0x168(%rsp), %rdi
callq 0x1dfd0
leaq 0xd8(%rsp), %rdi
callq 0x1dfd0
leaq 0x148(%rsp), %rdi
callq 0x1dfd0
leaq 0x128(%rsp), %rdi
callq 0x1dfd0
leaq 0x108(%rsp), %rdi
callq 0x1dfd0
movb $0x0, 0x1f7(%rsp)
jmp 0xbe8eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe5d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe5ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe5bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe5b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe5a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
leaq 0x188(%rsp), %rdi
callq 0x1dfd0
leaq 0x168(%rsp), %rdi
callq 0x1dfd0
leaq 0xd8(%rsp), %rdi
callq 0x1dfd0
leaq 0x148(%rsp), %rdi
callq 0x1dfd0
leaq 0x128(%rsp), %rdi
callq 0x1dfd0
leaq 0x108(%rsp), %rdi
callq 0x1dfd0
jmp 0xbe8fc
movq 0x1b0(%rsp), %rdi
callq 0xeb790
movq %rax, %rdi
movq 0x1d0(%rsp), %rsi
callq 0x40b80
testb $0x1, %al
jne 0xbe60c
jmp 0xbe638
movq 0x1b0(%rsp), %rdi
callq 0xeb7a0
cmpl 0x1cc(%rsp), %eax
jne 0xbe638
movq 0x1b0(%rsp), %rdi
callq 0xeb780
cmpl 0x1ac(%rsp), %eax
je 0xbe654
movq 0x1c0(%rsp), %rax
movq $0x0, (%rax)
movb $0x1, 0x1f7(%rsp)
jmp 0xbe8eb
jmp 0xbe656
leaq 0xc7573(%rip), %rdi # 0x185bd0
leaq 0x5dec5(%rip), %rsi # 0x11c529
callq 0x40b80
testb $0x1, %al
jne 0xbe672
jmp 0xbe754
movl $0x50, %edi
callq 0x16700
movq 0x48(%rsp), %rsi
movq %rax, 0x20(%rsp)
movb $0x1, 0xb7(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xeaf00
jmp 0xbe6aa
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdi
movq 0x1d0(%rsp), %rcx
movl 0x1cc(%rsp), %r8d
leaq 0xb8(%rsp), %rdx
callq 0xeb7b0
jmp 0xbe6d3
movq 0x20(%rsp), %rcx
movb $0x0, 0xb7(%rsp)
movq 0x1c0(%rsp), %rax
movq %rcx, (%rax)
leaq 0xb8(%rsp), %rdi
callq 0xeaf40
jmp 0xbe8e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe734
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xeaf40
testb $0x1, 0xb7(%rsp)
jne 0xbe740
jmp 0xbe74f
movq 0x20(%rsp), %rdi
movl $0x50, %esi
callq 0x16720
jmp 0xbe8fc
leaq 0xc7475(%rip), %rdi # 0x185bd0
leaq 0x5e45a(%rip), %rsi # 0x11cbbc
callq 0x40b80
testb $0x1, %al
jne 0xbe770
jmp 0xbe842
movl $0x40, %edi
callq 0x16700
movq 0x48(%rsp), %rsi
movq %rax, 0x10(%rsp)
movb $0x1, 0x97(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xeaf00
jmp 0xbe7a8
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0xeb870
jmp 0xbe7c1
movq 0x10(%rsp), %rcx
movb $0x0, 0x97(%rsp)
movq 0x1c0(%rsp), %rax
movq %rcx, (%rax)
leaq 0x98(%rsp), %rdi
callq 0xeaf40
jmp 0xbe8e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe822
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xeaf40
testb $0x1, 0x97(%rsp)
jne 0xbe82e
jmp 0xbe83d
movq 0x10(%rsp), %rdi
movl $0x40, %esi
callq 0x16720
jmp 0xbe8fc
leaq 0x5e08b(%rip), %rsi # 0x11c8d4
leaq 0xc7380(%rip), %rdx # 0x185bd0
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x423a0
movq 0x8(%rsp), %rsi
leaq 0x5e084(%rip), %rdx # 0x11c8ef
leaq 0x70(%rsp), %rdi
callq 0x42350
jmp 0xbe877
leaq 0x70(%rsp), %rdi
callq 0xb97e0
jmp 0xbe883
leaq 0x70(%rsp), %rdi
callq 0x1dfd0
leaq 0x50(%rsp), %rdi
callq 0x1dfd0
movb $0x0, 0x1f7(%rsp)
jmp 0xbe8eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
jmp 0xbe8d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x100(%rsp)
movl %eax, 0xfc(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x1dfd0
leaq 0x50(%rsp), %rdi
callq 0x1dfd0
jmp 0xbe8fc
jmp 0xbe8e3
movb $0x1, 0x1f7(%rsp)
movb 0x1f7(%rsp), %al
andb $0x1, %al
addq $0x1f8, %rsp # imm = 0x1F8
retq
movq 0x100(%rsp), %rdi
callq 0x16cf0
nopl (%rax)
|
_ZN7testing8internal23DefaultDeathTestFactory6CreateEPKcNS_7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES3_iPPNS0_9DeathTestE:
sub rsp, 1F8h
mov [rsp+1F8h+var_1B0], rdx
mov [rsp+1F8h+var_10], rdi
mov [rsp+1F8h+var_18], rsi
mov [rsp+1F8h+var_20], rdx
mov [rsp+1F8h+var_28], rcx
mov [rsp+1F8h+var_2C], r8d
mov [rsp+1F8h+var_38], r9
call _ZN7testing8internal15GetUnitTestImplEv; testing::internal::GetUnitTestImpl(void)
mov [rsp+1F8h+var_40], rax
mov rdi, [rsp+1F8h+var_40]; this
call _ZNK7testing8internal12UnitTestImpl28internal_run_death_test_flagEv; testing::internal::UnitTestImpl::internal_run_death_test_flag(void)
mov [rsp+1F8h+var_48], rax
mov rdi, [rsp+1F8h+var_40]; this
call _ZN7testing8internal12UnitTestImpl17current_test_infoEv; testing::internal::UnitTestImpl::current_test_info(void)
mov rdi, rax; this
call _ZN7testing8TestInfo26increment_death_test_countEv; testing::TestInfo::increment_death_test_count(void)
mov [rsp+1F8h+var_4C], eax
cmp [rsp+1F8h+var_48], 0
jz loc_BE656
mov eax, [rsp+1F8h+var_4C]
mov [rsp+1F8h+var_1B4], eax
mov rdi, [rsp+1F8h+var_48]; this
call _ZNK7testing8internal24InternalRunDeathTestFlag5indexEv; testing::internal::InternalRunDeathTestFlag::index(void)
mov ecx, eax
mov eax, [rsp+1F8h+var_1B4]
cmp eax, ecx
jle loc_BE5E9
lea rdi, [rsp+1F8h+var_F0]
mov [rsp+1F8h+var_1C0], rdi
lea rsi, [rsp+1F8h+var_4C]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
mov rdx, [rsp+1F8h+var_1C0]
lea rsi, aDeathTestCount; "Death test count ("
lea rdi, [rsp+1F8h+var_D0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_BE414:
lea rdx, aSomehowExceede; ") somehow exceeded expected maximum ("
lea rdi, [rsp+1F8h+var_B0]
lea rsi, [rsp+1F8h+var_D0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_BE432:
mov rdi, [rsp+1F8h+var_48]; this
call _ZNK7testing8internal24InternalRunDeathTestFlag5indexEv; testing::internal::InternalRunDeathTestFlag::index(void)
mov [rsp+1F8h+var_1C4], eax
jmp short $+2
loc_BE445:
mov eax, [rsp+1F8h+var_1C4]
mov [rsp+1F8h+var_124], eax
lea rdi, [rsp+1F8h+var_120]
lea rsi, [rsp+1F8h+var_124]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
jmp short $+2
loc_BE467:
lea rdi, [rsp+1F8h+var_90]
lea rsi, [rsp+1F8h+var_B0]
lea rdx, [rsp+1F8h+var_120]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_BE486:
lea rdx, aTeardowntestsu+12h; ")"
lea rdi, [rsp+1F8h+var_70]
lea rsi, [rsp+1F8h+var_90]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_BE4A4:
lea rdi, [rsp+1F8h+var_70]
call _ZN7testing8internal9DeathTest27set_last_death_test_messageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::DeathTest::set_last_death_test_message(std::string const&)
jmp short $+2
loc_BE4B3:
lea rdi, [rsp+1F8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_120]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov [rsp+1F8h+var_1], 0
jmp loc_BE8EB
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp loc_BE5D7
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp loc_BE5CA
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE5BD
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE5B0
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE5A3
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
lea rdi, [rsp+arg_180]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE5A3:
lea rdi, [rsp+arg_160]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE5B0:
lea rdi, [rsp+arg_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE5BD:
lea rdi, [rsp+arg_140]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE5CA:
lea rdi, [rsp+arg_120]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE5D7:
lea rdi, [rsp+arg_100]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_BE8FC
loc_BE5E9:
mov rdi, [rsp+1F8h+var_48]
call _ZNK7testing8internal24InternalRunDeathTestFlag4fileB5cxx11Ev; testing::internal::InternalRunDeathTestFlag::file(void)
mov rdi, rax
mov rsi, [rsp+1F8h+var_28]
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_BE60C
jmp short loc_BE638
loc_BE60C:
mov rdi, [rsp+1F8h+var_48]; this
call _ZNK7testing8internal24InternalRunDeathTestFlag4lineEv; testing::internal::InternalRunDeathTestFlag::line(void)
cmp eax, [rsp+1F8h+var_2C]
jnz short loc_BE638
mov rdi, [rsp+1F8h+var_48]; this
call _ZNK7testing8internal24InternalRunDeathTestFlag5indexEv; testing::internal::InternalRunDeathTestFlag::index(void)
cmp eax, [rsp+1F8h+var_4C]
jz short loc_BE654
loc_BE638:
mov rax, [rsp+1F8h+var_38]
mov qword ptr [rax], 0
mov [rsp+1F8h+var_1], 1
jmp loc_BE8EB
loc_BE654:
jmp short $+2
loc_BE656:
lea rdi, _ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E; testing::FLAGS_gtest_death_test_style
lea rsi, aThreadsafe; "threadsafe"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_BE672
jmp loc_BE754
loc_BE672:
mov edi, 50h ; 'P'; unsigned __int64
call __Znwm; operator new(ulong)
mov rsi, [rsp+1F8h+var_1B0]
mov [rsp+1F8h+var_1D8], rax
mov [rsp+1F8h+var_141], 1
mov rax, [rsp+1F8h+var_18]
mov [rsp+1F8h+var_1D0], rax
lea rdi, [rsp+1F8h+var_140]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EOS9_; testing::Matcher<std::string const&>::Matcher(testing::Matcher<std::string const&>&&)
jmp short $+2
loc_BE6AA:
mov rsi, [rsp+1F8h+var_1D0]
mov rdi, [rsp+1F8h+var_1D8]
mov rcx, [rsp+1F8h+var_28]
mov r8d, [rsp+1F8h+var_2C]
lea rdx, [rsp+1F8h+var_140]
call _ZN7testing8internal13ExecDeathTestC2EPKcNS_7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES3_i; testing::internal::ExecDeathTest::ExecDeathTest(char const*,testing::Matcher<std::string const&>,char const*,int)
jmp short $+2
loc_BE6D3:
mov rcx, [rsp+1F8h+var_1D8]
mov [rsp+1F8h+var_141], 0
mov rax, [rsp+1F8h+var_38]
mov [rax], rcx
lea rdi, [rsp+1F8h+var_140]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string const&>::~Matcher()
jmp loc_BE8E3
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE734
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
lea rdi, [rsp+arg_B0]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string const&>::~Matcher()
loc_BE734:
test [rsp+arg_AF], 1
jnz short loc_BE740
jmp short loc_BE74F
loc_BE740:
mov rdi, [rsp+arg_18]; void *
mov esi, 50h ; 'P'; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BE74F:
jmp loc_BE8FC
loc_BE754:
lea rdi, _ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E; testing::FLAGS_gtest_death_test_style
lea rsi, aFailFast+5; "fast"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_BE770
jmp loc_BE842
loc_BE770:
mov edi, 40h ; '@'; unsigned __int64
call __Znwm; operator new(ulong)
mov rsi, [rsp+1F8h+var_1B0]
mov [rsp+1F8h+var_1E8], rax
mov [rsp+1F8h+var_161], 1
mov rax, [rsp+1F8h+var_18]
mov [rsp+1F8h+var_1E0], rax
lea rdi, [rsp+1F8h+var_160]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EOS9_; testing::Matcher<std::string const&>::Matcher(testing::Matcher<std::string const&>&&)
jmp short $+2
loc_BE7A8:
mov rsi, [rsp+1F8h+var_1E0]
mov rdi, [rsp+1F8h+var_1E8]
lea rdx, [rsp+1F8h+var_160]
call _ZN7testing8internal15NoExecDeathTestC2EPKcNS_7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; testing::internal::NoExecDeathTest::NoExecDeathTest(char const*,testing::Matcher<std::string const&>)
jmp short $+2
loc_BE7C1:
mov rcx, [rsp+1F8h+var_1E8]
mov [rsp+1F8h+var_161], 0
mov rax, [rsp+1F8h+var_38]
mov [rax], rcx
lea rdi, [rsp+1F8h+var_160]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string const&>::~Matcher()
jmp loc_BE8E1
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE822
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
lea rdi, [rsp+arg_90]
call _ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string const&>::~Matcher()
loc_BE822:
test [rsp+arg_8F], 1
jnz short loc_BE82E
jmp short loc_BE83D
loc_BE82E:
mov rdi, [rsp+arg_8]; void *
mov esi, 40h ; '@'; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BE83D:
jmp loc_BE8FC
loc_BE842:
lea rsi, aUnknownDeathTe; "Unknown death test style \""
lea rdx, _ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E; int
lea rdi, [rsp+1F8h+var_1A8]; int
mov qword ptr [rsp+1F8h+var_1F0], rdi; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov rsi, qword ptr [rsp+1F8h+var_1F0]
lea rdx, aEncountered; "\" encountered"
lea rdi, [rsp+1F8h+var_188]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_BE877:
lea rdi, [rsp+1F8h+var_188]
call _ZN7testing8internal9DeathTest27set_last_death_test_messageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::DeathTest::set_last_death_test_message(std::string const&)
jmp short $+2
loc_BE883:
lea rdi, [rsp+1F8h+var_188]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_1A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov [rsp+1F8h+var_1], 0
jmp short loc_BE8EB
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
jmp short loc_BE8D5
mov rcx, rax
mov eax, edx
mov [rsp+arg_F8], rcx
mov [rsp+arg_F4], eax
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_BE8D5:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_BE8FC
loc_BE8E1:
jmp short $+2
loc_BE8E3:
mov [rsp+1F8h+var_1], 1
loc_BE8EB:
mov al, [rsp+1F8h+var_1]
and al, 1
add rsp, 1F8h
retn
loc_BE8FC:
mov rdi, [rsp+arg_F8]
call __Unwind_Resume
|
char testing::internal::DefaultDeathTestFactory::Create(
testing::internal *a1,
long long a2,
long long a3,
long long a4,
int a5,
_QWORD *a6)
{
testing::TestInfo *v6; // rax
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
long long v15; // rax
int v16; // r9d
int v17; // ecx
int v18; // r8d
int v19; // r9d
long long v21; // [rsp+10h] [rbp-1E8h]
int v22; // [rsp+18h] [rbp-1E0h]
long long v23; // [rsp+20h] [rbp-1D8h]
int v24; // [rsp+28h] [rbp-1D0h]
_QWORD v26[4]; // [rsp+50h] [rbp-1A8h] BYREF
_BYTE v27[40]; // [rsp+70h] [rbp-188h] BYREF
_BYTE v28[32]; // [rsp+98h] [rbp-160h] BYREF
_BYTE v29[28]; // [rsp+B8h] [rbp-140h] BYREF
int v30; // [rsp+D4h] [rbp-124h] BYREF
_BYTE v31[48]; // [rsp+D8h] [rbp-120h] BYREF
_BYTE v32[32]; // [rsp+108h] [rbp-F0h] BYREF
_BYTE v33[32]; // [rsp+128h] [rbp-D0h] BYREF
_QWORD v34[4]; // [rsp+148h] [rbp-B0h] BYREF
_BYTE v35[32]; // [rsp+168h] [rbp-90h] BYREF
_BYTE v36[36]; // [rsp+188h] [rbp-70h] BYREF
int v37; // [rsp+1ACh] [rbp-4Ch] BYREF
testing::internal::InternalRunDeathTestFlag *v38; // [rsp+1B0h] [rbp-48h]
testing::internal::UnitTestImpl *UnitTestImpl; // [rsp+1B8h] [rbp-40h]
_QWORD *v40; // [rsp+1C0h] [rbp-38h]
int v41; // [rsp+1CCh] [rbp-2Ch]
long long v42; // [rsp+1D0h] [rbp-28h]
long long v43; // [rsp+1D8h] [rbp-20h]
long long v44; // [rsp+1E0h] [rbp-18h]
testing::internal *v45; // [rsp+1E8h] [rbp-10h]
v45 = a1;
v44 = a2;
v43 = a3;
v42 = a4;
v41 = a5;
v40 = a6;
UnitTestImpl = (testing::internal::UnitTestImpl *)testing::internal::GetUnitTestImpl(a1);
v38 = (testing::internal::InternalRunDeathTestFlag *)testing::internal::UnitTestImpl::internal_run_death_test_flag(UnitTestImpl);
v6 = (testing::TestInfo *)testing::internal::UnitTestImpl::current_test_info(UnitTestImpl);
v37 = testing::TestInfo::increment_death_test_count(v6);
if ( !v38 )
goto LABEL_8;
v8 = testing::internal::InternalRunDeathTestFlag::index(v38);
if ( v37 <= v8 )
{
v15 = testing::internal::InternalRunDeathTestFlag::file[abi:cxx11](v38);
if ( !std::operator==<char>(v15, v42)
|| (unsigned int)testing::internal::InternalRunDeathTestFlag::line(v38) != v41
|| (unsigned int)testing::internal::InternalRunDeathTestFlag::index(v38) != v37 )
{
*v40 = 0LL;
return 1;
}
LABEL_8:
if ( std::operator==<char>((long long)&testing::FLAGS_gtest_death_test_style[abi:cxx11], (long long)"threadsafe") )
{
v23 = operator new(0x50uLL);
v24 = v44;
testing::Matcher<std::string const&>::Matcher(v29, a3);
testing::internal::ExecDeathTest::ExecDeathTest(v23, v24, (unsigned int)v29, v42, v41, v16);
v28[31] = 0;
*v40 = v23;
testing::Matcher<std::string const&>::~Matcher(v29);
}
else
{
if ( !std::operator==<char>((long long)&testing::FLAGS_gtest_death_test_style[abi:cxx11], (long long)"fast") )
{
std::operator+<char>(
v26,
(long long)"Unknown death test style \"",
(long long)&testing::FLAGS_gtest_death_test_style[abi:cxx11]);
std::operator+<char>((long long)v27, (long long)v26, (long long)"\" encountered");
testing::internal::DeathTest::set_last_death_test_message((long long)v27);
std::string::~string(v27);
std::string::~string(v26);
return 0;
}
v21 = operator new(0x40uLL);
v22 = v44;
testing::Matcher<std::string const&>::Matcher(v28, a3);
testing::internal::NoExecDeathTest::NoExecDeathTest(v21, v22, (unsigned int)v28, v17, v18, v19);
v27[39] = 0;
*v40 = v21;
testing::Matcher<std::string const&>::~Matcher(v28);
}
return 1;
}
testing::internal::StreamableToString<int>((unsigned int)v32, (unsigned int)&v37, v7, v8, v9, v10);
std::operator+<char>((long long)v33, (long long)"Death test count (", (long long)v32);
std::operator+<char>((long long)v34, (long long)v33, (long long)") somehow exceeded expected maximum (");
v30 = testing::internal::InternalRunDeathTestFlag::index(v38);
testing::internal::StreamableToString<int>((unsigned int)v31, (unsigned int)&v30, v11, v12, v13, v14);
std::operator+<char>((long long)v35, v34, (long long)v31);
std::operator+<char>((long long)v36, (long long)v35, (long long)")");
testing::internal::DeathTest::set_last_death_test_message((long long)v36);
std::string::~string(v36);
std::string::~string(v35);
std::string::~string(v31);
std::string::~string(v34);
std::string::~string(v33);
std::string::~string(v32);
return 0;
}
|
Create:
SUB RSP,0x1f8
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RSP + 0x1e8],RDI
MOV qword ptr [RSP + 0x1e0],RSI
MOV qword ptr [RSP + 0x1d8],RDX
MOV qword ptr [RSP + 0x1d0],RCX
MOV dword ptr [RSP + 0x1cc],R8D
MOV qword ptr [RSP + 0x1c0],R9
CALL 0x001eaeb0
MOV qword ptr [RSP + 0x1b8],RAX
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x001eb520
MOV qword ptr [RSP + 0x1b0],RAX
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x001eaec0
MOV RDI,RAX
CALL 0x001eb760
MOV dword ptr [RSP + 0x1ac],EAX
CMP qword ptr [RSP + 0x1b0],0x0
JZ 0x001be656
MOV EAX,dword ptr [RSP + 0x1ac]
MOV dword ptr [RSP + 0x44],EAX
MOV RDI,qword ptr [RSP + 0x1b0]
CALL 0x001eb780
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x44]
CMP EAX,ECX
JLE 0x001be5e9
LEA RDI,[RSP + 0x108]
MOV qword ptr [RSP + 0x38],RDI
LEA RSI,[RSP + 0x1ac]
CALL 0x001eafc0
MOV RDX,qword ptr [RSP + 0x38]
LAB_001be3fe:
LEA RSI,[0x21c89b]
LEA RDI,[RSP + 0x128]
CALL 0x00132c30
JMP 0x001be414
LAB_001be414:
LEA RDX,[0x21c8ae]
LEA RDI,[RSP + 0x148]
LEA RSI,[RSP + 0x128]
CALL 0x00142350
JMP 0x001be432
LAB_001be432:
MOV RDI,qword ptr [RSP + 0x1b0]
LAB_001be43a:
CALL 0x001eb780
MOV dword ptr [RSP + 0x34],EAX
JMP 0x001be445
LAB_001be445:
MOV EAX,dword ptr [RSP + 0x34]
MOV dword ptr [RSP + 0xd4],EAX
LEA RDI,[RSP + 0xd8]
LEA RSI,[RSP + 0xd4]
CALL 0x001eafc0
JMP 0x001be467
LAB_001be467:
LEA RDI,[RSP + 0x168]
LEA RSI,[RSP + 0x148]
LEA RDX,[RSP + 0xd8]
CALL 0x001945a0
JMP 0x001be486
LAB_001be486:
LEA RDX,[0x21d6db]
LEA RDI,[RSP + 0x188]
LEA RSI,[RSP + 0x168]
CALL 0x00142350
JMP 0x001be4a4
LAB_001be4a4:
LEA RDI,[RSP + 0x188]
CALL 0x001b97e0
LAB_001be4b1:
JMP 0x001be4b3
LAB_001be4b3:
LEA RDI,[RSP + 0x188]
CALL 0x0011dfd0
LEA RDI,[RSP + 0x168]
CALL 0x0011dfd0
LEA RDI,[RSP + 0xd8]
CALL 0x0011dfd0
LEA RDI,[RSP + 0x148]
CALL 0x0011dfd0
LEA RDI,[RSP + 0x128]
CALL 0x0011dfd0
LEA RDI,[RSP + 0x108]
CALL 0x0011dfd0
MOV byte ptr [RSP + 0x1f7],0x0
JMP 0x001be8eb
LAB_001be5e9:
MOV RDI,qword ptr [RSP + 0x1b0]
CALL 0x001eb790
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x1d0]
CALL 0x00140b80
TEST AL,0x1
JNZ 0x001be60c
JMP 0x001be638
LAB_001be60c:
MOV RDI,qword ptr [RSP + 0x1b0]
CALL 0x001eb7a0
CMP EAX,dword ptr [RSP + 0x1cc]
JNZ 0x001be638
MOV RDI,qword ptr [RSP + 0x1b0]
CALL 0x001eb780
CMP EAX,dword ptr [RSP + 0x1ac]
JZ 0x001be654
LAB_001be638:
MOV RAX,qword ptr [RSP + 0x1c0]
MOV qword ptr [RAX],0x0
MOV byte ptr [RSP + 0x1f7],0x1
JMP 0x001be8eb
LAB_001be654:
JMP 0x001be656
LAB_001be656:
LEA RDI,[0x285bd0]
LEA RSI,[0x21c529]
CALL 0x00140b80
TEST AL,0x1
JNZ 0x001be672
JMP 0x001be754
LAB_001be672:
MOV EDI,0x50
CALL 0x00116700
MOV RSI,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x20],RAX
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RSP + 0x1e0]
MOV qword ptr [RSP + 0x28],RAX
LAB_001be69b:
LEA RDI,[RSP + 0xb8]
CALL 0x001eaf00
JMP 0x001be6aa
LAB_001be6aa:
MOV RSI,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x1d0]
MOV R8D,dword ptr [RSP + 0x1cc]
LAB_001be6c4:
LEA RDX,[RSP + 0xb8]
CALL 0x001eb7b0
LAB_001be6d1:
JMP 0x001be6d3
LAB_001be6d3:
MOV RCX,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0xb7],0x0
MOV RAX,qword ptr [RSP + 0x1c0]
MOV qword ptr [RAX],RCX
LEA RDI,[RSP + 0xb8]
CALL 0x001eaf40
JMP 0x001be8e3
LAB_001be754:
LEA RDI,[0x285bd0]
LEA RSI,[0x21cbbc]
CALL 0x00140b80
TEST AL,0x1
JNZ 0x001be770
JMP 0x001be842
LAB_001be770:
MOV EDI,0x40
CALL 0x00116700
MOV RSI,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOV byte ptr [RSP + 0x97],0x1
MOV RAX,qword ptr [RSP + 0x1e0]
MOV qword ptr [RSP + 0x18],RAX
LAB_001be799:
LEA RDI,[RSP + 0x98]
CALL 0x001eaf00
JMP 0x001be7a8
LAB_001be7a8:
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x10]
LEA RDX,[RSP + 0x98]
CALL 0x001eb870
LAB_001be7bf:
JMP 0x001be7c1
LAB_001be7c1:
MOV RCX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x97],0x0
MOV RAX,qword ptr [RSP + 0x1c0]
MOV qword ptr [RAX],RCX
LEA RDI,[RSP + 0x98]
CALL 0x001eaf40
JMP 0x001be8e1
LAB_001be842:
LEA RSI,[0x21c8d4]
LEA RDX,[0x285bd0]
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001423a0
MOV RSI,qword ptr [RSP + 0x8]
LAB_001be864:
LEA RDX,[0x21c8ef]
LEA RDI,[RSP + 0x70]
CALL 0x00142350
JMP 0x001be877
LAB_001be877:
LEA RDI,[RSP + 0x70]
CALL 0x001b97e0
LAB_001be881:
JMP 0x001be883
LAB_001be883:
LEA RDI,[RSP + 0x70]
CALL 0x0011dfd0
LEA RDI,[RSP + 0x50]
CALL 0x0011dfd0
MOV byte ptr [RSP + 0x1f7],0x0
JMP 0x001be8eb
LAB_001be8e1:
JMP 0x001be8e3
LAB_001be8e3:
MOV byte ptr [RSP + 0x1f7],0x1
LAB_001be8eb:
MOV AL,byte ptr [RSP + 0x1f7]
AND AL,0x1
ADD RSP,0x1f8
RET
|
/* testing::internal::DefaultDeathTestFactory::Create(char const*,
testing::Matcher<std::__cxx11::string const&>, char const*, int, testing::internal::DeathTest**)
*/
int1 __thiscall
testing::internal::DefaultDeathTestFactory::Create
(DefaultDeathTestFactory *this,int8 param_1,Matcher *param_3,char *param_4,
int param_5,int8 *param_6)
{
int8 uVar1;
bool bVar2;
int iVar3;
int iVar4;
TestInfo *this_00;
string *psVar5;
ExecDeathTest *pEVar6;
NoExecDeathTest *pNVar7;
string local_1a8 [32];
string local_188 [39];
int1 local_161;
Matcher<std::__cxx11::string_const&> local_160 [31];
int1 local_141;
Matcher<std::__cxx11::string_const&> local_140 [28];
int local_124;
internal local_120 [48];
internal local_f0 [32];
string local_d0 [32];
string local_b0 [32];
string local_90 [32];
string local_70 [36];
int local_4c;
InternalRunDeathTestFlag *local_48;
UnitTestImpl *local_40;
int8 *local_38;
int local_2c;
char *local_28;
Matcher *local_20;
int8 local_18;
DefaultDeathTestFactory *local_10;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_1;
local_10 = this;
local_40 = (UnitTestImpl *)GetUnitTestImpl();
local_48 = (InternalRunDeathTestFlag *)UnitTestImpl::internal_run_death_test_flag(local_40);
this_00 = (TestInfo *)UnitTestImpl::current_test_info(local_40);
iVar3 = TestInfo::increment_death_test_count(this_00);
local_4c = iVar3;
if (local_48 != (InternalRunDeathTestFlag *)0x0) {
iVar4 = InternalRunDeathTestFlag::index(local_48);
if (iVar4 < iVar3) {
StreamableToString<int>(local_f0,&local_4c);
/* try { // try from 001be3fe to 001be411 has its CatchHandler @ 001be50e */
std::operator+((char *)local_d0,(string *)"Death test count (");
/* try { // try from 001be414 to 001be42f has its CatchHandler @ 001be527 */
std::operator+(local_b0,(char *)local_d0);
/* try { // try from 001be43a to 001be464 has its CatchHandler @ 001be540 */
local_124 = InternalRunDeathTestFlag::index(local_48);
StreamableToString<int>(local_120,&local_124);
/* try { // try from 001be467 to 001be483 has its CatchHandler @ 001be556 */
std::operator+(local_90,local_b0);
/* try { // try from 001be486 to 001be4a1 has its CatchHandler @ 001be56c */
std::operator+(local_70,(char *)local_90);
/* try { // try from 001be4a4 to 001be4b0 has its CatchHandler @ 001be582 */
DeathTest::set_last_death_test_message(local_70);
std::__cxx11::string::~string(local_70);
std::__cxx11::string::~string(local_90);
std::__cxx11::string::~string((string *)local_120);
std::__cxx11::string::~string(local_b0);
std::__cxx11::string::~string(local_d0);
std::__cxx11::string::~string((string *)local_f0);
return 0;
}
psVar5 = (string *)InternalRunDeathTestFlag::file_abi_cxx11_(local_48);
bVar2 = std::operator==(psVar5,local_28);
if (((!bVar2) || (iVar3 = InternalRunDeathTestFlag::line(local_48), iVar3 != local_2c)) ||
(iVar3 = InternalRunDeathTestFlag::index(local_48), iVar3 != local_4c)) {
*local_38 = 0;
return 1;
}
}
bVar2 = std::operator==((string *)FLAGS_gtest_death_test_style_abi_cxx11_,"threadsafe");
if (bVar2) {
pEVar6 = (ExecDeathTest *)operator_new(0x50);
uVar1 = local_18;
local_141 = 1;
/* try { // try from 001be69b to 001be6a7 has its CatchHandler @ 001be6fd */
Matcher<std::__cxx11::string_const&>::Matcher(local_140,param_3);
/* try { // try from 001be6c4 to 001be6d0 has its CatchHandler @ 001be713 */
ExecDeathTest::ExecDeathTest(pEVar6,uVar1,local_140,local_28,local_2c);
local_141 = 0;
*local_38 = pEVar6;
Matcher<std::__cxx11::string_const&>::~Matcher(local_140);
}
else {
bVar2 = std::operator==((string *)FLAGS_gtest_death_test_style_abi_cxx11_,"fast");
if (!bVar2) {
std::operator+((char *)local_1a8,(string *)"Unknown death test style \"");
/* try { // try from 001be864 to 001be874 has its CatchHandler @ 001be8a1 */
std::operator+(local_188,(char *)local_1a8);
/* try { // try from 001be877 to 001be880 has its CatchHandler @ 001be8b7 */
DeathTest::set_last_death_test_message(local_188);
std::__cxx11::string::~string(local_188);
std::__cxx11::string::~string(local_1a8);
return 0;
}
pNVar7 = (NoExecDeathTest *)operator_new(0x40);
uVar1 = local_18;
local_161 = 1;
/* try { // try from 001be799 to 001be7a5 has its CatchHandler @ 001be7eb */
Matcher<std::__cxx11::string_const&>::Matcher(local_160,param_3);
/* try { // try from 001be7a8 to 001be7be has its CatchHandler @ 001be801 */
NoExecDeathTest::NoExecDeathTest(pNVar7,uVar1,local_160);
local_161 = 0;
*local_38 = pNVar7;
Matcher<std::__cxx11::string_const&>::~Matcher(local_160);
}
return 1;
}
|
|
59,410
|
my_casedn_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static size_t my_casedn_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->casedn_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar*) src, (uchar*)srcend)) > 0)
{
my_tolower_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
}
|
O3
|
c
|
my_casedn_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x6eb8a
movq %r8, %r14
movq %rdx, %r15
movq %rsi, %r12
addq %rsi, %r15
movq -0x30(%rbp), %r13
addq %r13, %r14
movq 0x78(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x6e71f
testl %eax, %eax
jle 0x6eb8a
movl %eax, %ebx
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x38(%rbp), %rax
movzbl %ah, %edx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x6eb69
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl 0x4(%rcx,%rax,4), %eax
movq %rax, -0x38(%rbp)
movq %rax, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x6e7e4
testl %eax, %eax
jle 0x6eb8a
movl %ebx, %ecx
addq %rcx, %r12
movl %eax, %eax
addq %rax, %r13
cmpq %r15, %r12
jb 0x6eb2d
subq -0x30(%rbp), %r13
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_casedn_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle short loc_6EB8A
mov r14, r8
mov r15, rdx
mov r12, rsi
add r15, rsi
mov r13, [rbp+var_30]
add r14, r13
mov rax, [rdi+78h]
mov [rbp+var_40], rax
loc_6EB2D:
lea rsi, [rbp+var_38]
mov rdx, r12
mov rcx, r15
call my_utf8mb3_uni
test eax, eax
jle short loc_6EB8A
mov ebx, eax
mov rax, [rbp+var_40]
mov rcx, [rax+8]
mov rax, [rbp+var_38]
movzx edx, ah
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short loc_6EB69
movzx eax, al
lea rax, [rax+rax*2]
mov eax, [rcx+rax*4+4]
mov [rbp+var_38], rax
loc_6EB69:
mov rsi, rax
mov rdx, r13
mov rcx, r14
call my_uni_utf8mb3
test eax, eax
jle short loc_6EB8A
mov ecx, ebx
add r12, rcx
mov eax, eax
add r13, rax
cmp r12, r15
jb short loc_6EB2D
loc_6EB8A:
sub r13, [rbp+var_30]
mov rax, r13
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_BYTE * my_casedn_utf8mb3(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4, long long a5)
{
_BYTE *v5; // r13
unsigned __int8 *v6; // r12
unsigned long long v7; // r15
unsigned long long v8; // r14
int v9; // eax
unsigned int v10; // ebx
unsigned long long v11; // rax
long long v12; // rcx
int v13; // eax
long long v15; // [rsp+0h] [rbp-40h]
unsigned long long v16; // [rsp+8h] [rbp-38h] BYREF
_BYTE *v17; // [rsp+10h] [rbp-30h]
v5 = a4;
v17 = a4;
if ( a3 > 0 )
{
v6 = a2;
v7 = (unsigned long long)&a2[a3];
v5 = v17;
v8 = (unsigned long long)&v17[a5];
v15 = *(_QWORD *)(a1 + 120);
do
{
v9 = my_utf8mb3_uni(a1, &v16, v6, v7);
if ( v9 <= 0 )
break;
v10 = v9;
v11 = v16;
v12 = *(_QWORD *)(*(_QWORD *)(v15 + 8) + 8LL * BYTE1(v16));
if ( v12 )
{
v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v16 + 4);
v16 = v11;
}
v13 = my_uni_utf8mb3(a1, v11, v5, v8);
if ( v13 <= 0 )
break;
v6 += v10;
v5 += (unsigned int)v13;
}
while ( (unsigned long long)v6 < v7 );
}
return (_BYTE *)(v5 - v17);
}
|
my_casedn_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x0016eb8a
MOV R14,R8
MOV R15,RDX
MOV R12,RSI
ADD R15,RSI
MOV R13,qword ptr [RBP + -0x30]
ADD R14,R13
MOV RAX,qword ptr [RDI + 0x78]
MOV qword ptr [RBP + -0x40],RAX
LAB_0016eb2d:
LEA RSI,[RBP + -0x38]
MOV RDX,R12
MOV RCX,R15
CALL 0x0016e71f
TEST EAX,EAX
JLE 0x0016eb8a
MOV EBX,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EDX,AH
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x0016eb69
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [RCX + RAX*0x4 + 0x4]
MOV qword ptr [RBP + -0x38],RAX
LAB_0016eb69:
MOV RSI,RAX
MOV RDX,R13
MOV RCX,R14
CALL 0x0016e7e4
TEST EAX,EAX
JLE 0x0016eb8a
MOV ECX,EBX
ADD R12,RCX
MOV EAX,EAX
ADD R13,RAX
CMP R12,R15
JC 0x0016eb2d
LAB_0016eb8a:
SUB R13,qword ptr [RBP + -0x30]
MOV RAX,R13
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_utf8mb3(long param_1,ulong param_2,long param_3,long param_4)
{
long lVar1;
long lVar2;
uint uVar3;
uint uVar4;
long lVar5;
ulong uVar6;
int8 local_40;
lVar5 = param_4;
if (0 < param_3) {
uVar6 = param_3 + param_2;
lVar1 = *(long *)(param_1 + 0x78);
do {
uVar3 = my_utf8mb3_uni();
if ((int)uVar3 < 1) break;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_40 >> 8 & 0xff) * 8);
if (lVar2 != 0) {
local_40 = (ulong)*(uint *)(lVar2 + 4 + (local_40 & 0xff) * 0xc);
}
uVar4 = my_uni_utf8mb3();
if ((int)uVar4 < 1) break;
param_2 = param_2 + uVar3;
lVar5 = lVar5 + (ulong)uVar4;
} while (param_2 < uVar6);
}
return lVar5 - param_4;
}
|
|
59,411
|
reciprocal_fp
|
corpus-core[P]colibri-stateless/build_O3/_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
}
|
O3
|
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 0x2a6f1(%rip), %r15 # 0x8cca0
leaq 0x2c2aa(%rip), %rcx # 0x8e860
leaq -0x90(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x6e720
movabsq $-0x760c000300030003, %r13 # imm = 0x89F3FFFCFFFCFFFD
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x747a0
leaq 0x2c2a6(%rip), %rdx # 0x8e890
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rcx
movq %r13, %r8
callq 0x74ea0
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r13, %r8
callq 0x74ea0
leaq 0x2a6be(%rip), %rsi # 0x8ccd8
movl $0x30, %edx
movq %rbx, %rdi
callq 0x70980
movq %rax, %r15
movl $0x30, %esi
movq %rbx, %rdi
callq 0x70940
orq %r15, %rax
je 0x6265c
movups -0x90(%rbp), %xmm0
movups -0x80(%rbp), %xmm1
movups -0x70(%rbp), %xmm2
movq -0x30(%rbp), %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
jmp 0x62674
leaq 0x2a97d(%rip), %rdx # 0x8cfe0
movl $0x17d, %ecx # imm = 0x17D
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x6685f
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
mov edx, 30h ; '0'
mov rdi, rbx
call vec_is_equal_16x
mov r15, rax
mov esi, 30h ; '0'
mov rdi, rbx
call vec_is_zero_16x
or rax, r15
jz short loc_6265C
movups xmm0, [rbp+var_90]
movups xmm1, [rbp+var_80]
movups xmm2, [rbp+var_70]
mov rax, [rbp+var_30]
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
jmp short loc_62674
loc_6265C:
lea rdx, _flt_reciprocal_fp_BLS12_381_P_minus_2
mov ecx, 17Dh
mov rdi, [rbp+var_30]
mov rsi, r14
call exp_mont_384
loc_62674:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_OWORD * reciprocal_fp(_OWORD *a1, long long a2)
{
long long is_equal_16x; // r15
__int128 v3; // xmm0
__int128 v4; // xmm1
_OWORD *result; // rax
_OWORD v6[3]; // [rsp+0h] [rbp-90h] BYREF
_BYTE v7[48]; // [rsp+30h] [rbp-60h] BYREF
_OWORD *v8; // [rsp+60h] [rbp-30h]
v8 = a1;
ct_inverse_mod_383(v6, a2, &BLS12_381_P, &reciprocal_fp_Px8);
redc_mont_384(v6, v6, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v6, v6, &reciprocal_fp_RRx4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v7, v6, a2, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
is_equal_16x = vec_is_equal_16x(v7, &BLS12_381_Rx, 48LL);
if ( !(is_equal_16x | vec_is_zero_16x(v7, 48LL)) )
return (_OWORD *)exp_mont_384(v8, a2, &flt_reciprocal_fp_BLS12_381_P_minus_2, 381LL);
v3 = v6[0];
v4 = v6[1];
result = v8;
v8[2] = v6[2];
result[1] = v4;
*result = v3;
return result;
}
|
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,[0x18cca0]
LEA RCX,[0x18e860]
LEA R12,[RBP + -0x90]
MOV RDI,R12
MOV RDX,R15
CALL 0x0016e720
MOV R13,-0x760c000300030003
MOV RDI,R12
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x001747a0
LEA RDX,[0x18e890]
MOV RDI,R12
MOV RSI,R12
MOV RCX,R15
MOV R8,R13
CALL 0x00174ea0
LEA RBX,[RBP + -0x60]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R15
MOV R8,R13
CALL 0x00174ea0
LEA RSI,[0x18ccd8]
MOV EDX,0x30
MOV RDI,RBX
CALL 0x00170980
MOV R15,RAX
MOV ESI,0x30
MOV RDI,RBX
CALL 0x00170940
OR RAX,R15
JZ 0x0016265c
MOVUPS XMM0,xmmword ptr [RBP + -0x90]
MOVUPS XMM1,xmmword ptr [RBP + -0x80]
MOVUPS XMM2,xmmword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x30]
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
JMP 0x00162674
LAB_0016265c:
LEA RDX,[0x18cfe0]
MOV ECX,0x17d
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R14
CALL 0x0016685f
LAB_00162674:
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;
int8 local_98;
int8 uStack_90;
int8 local_88;
int8 uStack_80;
int8 local_78;
int8 uStack_70;
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_16x(local_68,&BLS12_381_Rx,0x30);
lVar2 = vec_is_zero_16x(local_68,0x30);
if (lVar2 == 0 && lVar1 == 0) {
exp_mont_384(local_38,param_2,flt_reciprocal_fp_BLS12_381_P_minus_2,0x17d);
}
else {
local_38[4] = local_78;
local_38[5] = uStack_70;
local_38[2] = local_88;
local_38[3] = uStack_80;
*local_38 = local_98;
local_38[1] = uStack_90;
}
return;
}
|
|
59,412
|
testing::internal::FormatCxxExceptionMessage[abi:cxx11](char const*, char const*)
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
|
static std::string FormatCxxExceptionMessage(const char* description,
const char* location) {
Message message;
if (description != nullptr) {
message << "C++ exception with description \"" << description << "\"";
} else {
message << "Unknown C++ exception";
}
message << " thrown in " << location << ".";
return message.GetString();
}
|
O3
|
cpp
|
testing::internal::FormatCxxExceptionMessage[abi:cxx11](char const*, char const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1c968
movq (%rbx), %rbx
leaq 0x10(%rbx), %r15
testq %r13, %r13
je 0x308ee
leaq 0x13f28(%rip), %rsi # 0x447e5
movl $0x20, %edx
movq %r15, %rdi
callq 0x85b0
movq %r13, %rdi
callq 0x8200
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x85b0
movl $0x1, %edx
leaq 0x12e9f(%rip), %rsi # 0x4378b
jmp 0x308fa
movl $0x15, %edx
leaq 0x13f0c(%rip), %rsi # 0x44806
movq %r15, %rdi
callq 0x85b0
leaq 0x13f13(%rip), %rsi # 0x4481c
movl $0xb, %edx
movq %r15, %rdi
callq 0x85b0
testq %r12, %r12
je 0x30928
movq %r12, %rdi
callq 0x8200
movq %rax, %rdx
jmp 0x30934
movl $0x6, %edx
leaq 0xfd25(%rip), %r12 # 0x40659
movq %r15, %rdi
movq %r12, %rsi
callq 0x85b0
leaq 0x12dcb(%rip), %rsi # 0x43711
movl $0x1, %edx
movq %r15, %rdi
callq 0x85b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1cbbf
testq %rbx, %rbx
je 0x30979
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *0x8(%rax)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3099a
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing8internalL25FormatCxxExceptionMessageB5cxx11EPKcS2_:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r12, rdx
mov r13, rsi
mov r14, rdi
lea rbx, [rsp+38h+var_30]
mov rdi, rbx; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rbx, [rbx]
lea r15, [rbx+10h]
test r13, r13
jz short loc_308EE
lea rsi, aCExceptionWith; "C++ exception with description \""
mov edx, 20h ; ' '
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r13
call _strlen
mov rdi, r15
mov rsi, r13
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov edx, 1
lea rsi, aMessage+0Fh; "\""
jmp short loc_308FA
loc_308EE:
mov edx, 15h
lea rsi, aUnknownCExcept; "Unknown C++ exception"
loc_308FA:
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aThrownIn; " thrown in "
mov edx, 0Bh
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r12, r12
jz short loc_30928
mov rdi, r12
call _strlen
mov rdx, rax
jmp short loc_30934
loc_30928:
mov edx, 6
lea r12, aNull; "(null)"
loc_30934:
mov rdi, r15
mov rsi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, asc_43710+1; "."
mov edx, 1
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
mov rsi, rbx
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
test rbx, rbx
jz short loc_30979
mov rax, [rbx]
mov rdi, rbx
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp qword ptr [rax+8]
loc_30979:
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_3099A
mov rax, [rdi]
call qword ptr [rax+8]
loc_3099A:
mov rdi, rbx
call __Unwind_Resume
|
long long testing::internal::FormatCxxExceptionMessage[abi:cxx11](long long a1, long long a2, const char *a3)
{
long long v4; // rbx
long long v5; // rax
long long v6; // rdx
char *v7; // rsi
long long v8; // rdx
long long result; // rax
long long v10[6]; // [rsp+8h] [rbp-30h] BYREF
testing::Message::Message((testing::Message *)v10);
v4 = v10[0];
if ( a2 )
{
std::__ostream_insert<char,std::char_traits<char>>(v10[0] + 16, "C++ exception with description \"", 32LL);
v5 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v4 + 16, a2, v5);
v6 = 1LL;
v7 = "\"";
}
else
{
v6 = 21LL;
v7 = "Unknown C++ exception";
}
std::__ostream_insert<char,std::char_traits<char>>(v4 + 16, v7, v6);
std::__ostream_insert<char,std::char_traits<char>>(v4 + 16, " thrown in ", 11LL);
if ( a3 )
{
v8 = strlen(a3);
}
else
{
v8 = 6LL;
a3 = "(null)";
}
std::__ostream_insert<char,std::char_traits<char>>(v4 + 16, a3, v8);
std::__ostream_insert<char,std::char_traits<char>>(v4 + 16, ".", 1LL);
result = testing::internal::StringStreamToString(a1, v4);
if ( v4 )
return (*(long long ( **)(long long))(*(_QWORD *)v4 + 8LL))(v4);
return result;
}
|
FormatCxxExceptionMessage[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,RDX
MOV R13,RSI
MOV R14,RDI
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0011c968
MOV RBX,qword ptr [RBX]
LEA R15,[RBX + 0x10]
TEST R13,R13
JZ 0x001308ee
LAB_001308b6:
LEA RSI,[0x1447e5]
MOV EDX,0x20
MOV RDI,R15
CALL 0x001085b0
MOV RDI,R13
CALL 0x00108200
MOV RDI,R15
MOV RSI,R13
MOV RDX,RAX
CALL 0x001085b0
MOV EDX,0x1
LEA RSI,[0x14378b]
JMP 0x001308fa
LAB_001308ee:
MOV EDX,0x15
LEA RSI,[0x144806]
LAB_001308fa:
MOV RDI,R15
CALL 0x001085b0
LEA RSI,[0x14481c]
MOV EDX,0xb
MOV RDI,R15
CALL 0x001085b0
TEST R12,R12
JZ 0x00130928
MOV RDI,R12
CALL 0x00108200
MOV RDX,RAX
JMP 0x00130934
LAB_00130928:
MOV EDX,0x6
LEA R12,[0x140659]
LAB_00130934:
MOV RDI,R15
MOV RSI,R12
CALL 0x001085b0
LEA RSI,[0x143711]
MOV EDX,0x1
MOV RDI,R15
CALL 0x001085b0
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011cbbf
LAB_0013095e:
TEST RBX,RBX
JZ 0x00130979
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
JMP qword ptr [RAX + 0x8]
LAB_00130979:
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::internal::FormatCxxExceptionMessage[abi:cxx11](char const*, char const*) */
void __thiscall
testing::internal::FormatCxxExceptionMessage_abi_cxx11_(internal *this,char *param_1,char *param_2)
{
ostream *poVar1;
size_t sVar2;
long lVar3;
char *pcVar4;
long *local_30;
Message::Message((Message *)&local_30);
poVar1 = (ostream *)(local_30 + 2);
if (param_1 == (char *)0x0) {
lVar3 = 0x15;
pcVar4 = "Unknown C++ exception";
}
else {
/* try { // try from 001308b6 to 0013095d has its CatchHandler @ 00130987 */
std::__ostream_insert<char,std::char_traits<char>>
(poVar1,"C++ exception with description \"",0x20);
sVar2 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,param_1,sVar2);
lVar3 = 1;
pcVar4 = "\"";
}
std::__ostream_insert<char,std::char_traits<char>>(poVar1,pcVar4,lVar3);
std::__ostream_insert<char,std::char_traits<char>>(poVar1," thrown in ",0xb);
if (param_2 == (char *)0x0) {
sVar2 = 6;
param_2 = "(null)";
}
else {
sVar2 = strlen(param_2);
}
std::__ostream_insert<char,std::char_traits<char>>(poVar1,param_2,sVar2);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,".",1);
StringStreamToString((stringstream *)this);
if (local_30 != (long *)0x0) {
/* WARNING: Could not recover jumptable at 0x00130976. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*local_30 + 8))(local_30);
return;
}
return;
}
|
|
59,413
|
google::protobuf::MethodOptions::InternalSwap(google::protobuf::MethodOptions*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
void MethodOptions::InternalSwap(MethodOptions* other) {
using std::swap;
_impl_._extensions_.InternalSwap(&other->_impl_._extensions_);
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.uninterpreted_option_.InternalSwap(&other->_impl_.uninterpreted_option_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.idempotency_level_)
+ sizeof(MethodOptions::_impl_.idempotency_level_)
- PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.deprecated_)>(
reinterpret_cast<char*>(&_impl_.deprecated_),
reinterpret_cast<char*>(&other->_impl_.deprecated_));
}
|
O0
|
cpp
|
google::protobuf::MethodOptions::InternalSwap(google::protobuf::MethodOptions*):
subq $0x48, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, (%rsp)
addq $0x10, %rdi
movq 0x8(%rsp), %rsi
addq $0x10, %rsi
callq 0x22a680
movq (%rsp), %rcx
addq $0x8, %rcx
movq 0x8(%rsp), %rax
addq $0x8, %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x93960
movq (%rsp), %rax
addq $0x10, %rax
addq $0x18, %rax
movq %rax, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
movq 0x40(%rsp), %rdi
movslq 0x3c(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq 0x8(%rsp), %rax
addq $0x10, %rax
addq $0x18, %rax
movq %rax, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq 0x30(%rsp), %rsi
movslq 0x2c(%rsp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x96ed0
movq (%rsp), %rdi
addq $0x10, %rdi
addq $0x20, %rdi
movq 0x8(%rsp), %rsi
addq $0x10, %rsi
addq $0x20, %rsi
callq 0x2dffa0
movq (%rsp), %rdi
addq $0x10, %rdi
addq $0x38, %rdi
movq 0x8(%rsp), %rsi
addq $0x10, %rsi
addq $0x38, %rsi
callq 0x159550
addq $0x48, %rsp
retq
nop
|
_ZN6google8protobuf13MethodOptions12InternalSwapEPS1_:
sub rsp, 48h
mov [rsp+48h+var_38], rdi
mov [rsp+48h+var_40], rsi
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_48], rdi
add rdi, 10h; this
mov rsi, [rsp+48h+var_40]
add rsi, 10h; google::protobuf::internal::ExtensionSet *
call _ZN6google8protobuf8internal12ExtensionSet12InternalSwapEPS2_; google::protobuf::internal::ExtensionSet::InternalSwap(google::protobuf::internal::ExtensionSet*)
mov rcx, [rsp+48h+var_48]
add rcx, 8
mov rax, [rsp+48h+var_40]
add rax, 8
mov [rsp+48h+var_28], rcx
mov [rsp+48h+var_30], rax
mov rdi, [rsp+48h+var_28]
mov rsi, [rsp+48h+var_30]
call __ZSt4swapIlENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
mov rax, [rsp+48h+var_48]
add rax, 10h
add rax, 18h
mov [rsp+48h+var_8], rax
mov [rsp+48h+var_C], 0
mov rdi, [rsp+48h+var_8]
movsxd rax, [rsp+48h+var_C]
shl rax, 2
add rdi, rax
mov rax, [rsp+48h+var_40]
add rax, 10h
add rax, 18h
mov [rsp+48h+var_18], rax
mov [rsp+48h+var_1C], 0
mov rsi, [rsp+48h+var_18]
movsxd rax, [rsp+48h+var_1C]
shl rax, 2
add rsi, rax
call __ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
mov rdi, [rsp+48h+var_48]
add rdi, 10h
add rdi, 20h ; ' '
mov rsi, [rsp+48h+var_40]
add rsi, 10h
add rsi, 20h ; ' '
call _ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE12InternalSwapEPS3_; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::InternalSwap(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>*)
mov rdi, [rsp+48h+var_48]
add rdi, 10h
add rdi, 38h ; '8'
mov rsi, [rsp+48h+var_40]
add rsi, 10h
add rsi, 38h ; '8'
call _ZN6google8protobuf8internal7memswapILi8EEENSt9enable_ifIXaageT_Lm8EltT_Li16EEvE4typeEPcS6_; google::protobuf::internal::memswap<8>(char *,char *)
add rsp, 48h
retn
|
void google::protobuf::MethodOptions::InternalSwap(
google::protobuf::MethodOptions *this,
google::protobuf::MethodOptions *a2)
{
google::protobuf::internal::ExtensionSet::InternalSwap(
(google::protobuf::MethodOptions *)((char *)this + 16),
(google::protobuf::MethodOptions *)((char *)a2 + 16));
std::swap<long>((char *)this + 8, (char *)a2 + 8);
std::swap<unsigned int>((char *)this + 40, (char *)a2 + 40);
google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::InternalSwap(
(char *)this + 48,
(char *)a2 + 48);
google::protobuf::internal::memswap<8>((long long)this + 72, (long long)a2 + 72);
}
| |||
59,414
|
google::protobuf::MethodOptions::InternalSwap(google::protobuf::MethodOptions*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
void MethodOptions::InternalSwap(MethodOptions* other) {
using std::swap;
_impl_._extensions_.InternalSwap(&other->_impl_._extensions_);
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.uninterpreted_option_.InternalSwap(&other->_impl_.uninterpreted_option_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.idempotency_level_)
+ sizeof(MethodOptions::_impl_.idempotency_level_)
- PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.deprecated_)>(
reinterpret_cast<char*>(&_impl_.deprecated_),
reinterpret_cast<char*>(&other->_impl_.deprecated_));
}
|
O3
|
cpp
|
google::protobuf::MethodOptions::InternalSwap(google::protobuf::MethodOptions*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
addq $0x10, %rdi
addq $0x10, %rsi
callq 0xb6712
movq 0x8(%r14), %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq %rax, 0x8(%rbx)
movl 0x28(%r14), %eax
movl 0x28(%rbx), %ecx
movl %ecx, 0x28(%r14)
movl %eax, 0x28(%rbx)
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x30(%r14), %rdx
movq 0x40(%r14), %rsi
movq %rdx, 0x30(%rbx)
movq %rsi, 0x40(%rbx)
movq %rax, 0x30(%r14)
movq 0x38(%rbx), %rax
movq 0x38(%r14), %rdx
movq %rdx, 0x38(%rbx)
movq %rax, 0x38(%r14)
movq %rcx, 0x40(%r14)
movq 0x48(%r14), %rax
movq 0x48(%rbx), %rcx
movq %rcx, 0x48(%r14)
movq %rax, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN6google8protobuf13MethodOptions12InternalSwapEPS1_:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
add rdi, 10h; this
add rsi, 10h; google::protobuf::internal::ExtensionSet *
call _ZN6google8protobuf8internal12ExtensionSet12InternalSwapEPS2_; google::protobuf::internal::ExtensionSet::InternalSwap(google::protobuf::internal::ExtensionSet*)
mov rax, [r14+8]
mov rcx, [rbx+8]
mov [r14+8], rcx
mov [rbx+8], rax
mov eax, [r14+28h]
mov ecx, [rbx+28h]
mov [r14+28h], ecx
mov [rbx+28h], eax
mov rax, [rbx+30h]
mov rcx, [rbx+40h]
mov rdx, [r14+30h]
mov rsi, [r14+40h]
mov [rbx+30h], rdx
mov [rbx+40h], rsi
mov [r14+30h], rax
mov rax, [rbx+38h]
mov rdx, [r14+38h]
mov [rbx+38h], rdx
mov [r14+38h], rax
mov [r14+40h], rcx
mov rax, [r14+48h]
mov rcx, [rbx+48h]
mov [r14+48h], rcx
mov [rbx+48h], rax
add rsp, 8
pop rbx
pop r14
retn
|
long long google::protobuf::MethodOptions::InternalSwap(
google::protobuf::MethodOptions *this,
google::protobuf::MethodOptions *a2)
{
long long v3; // rax
long long v4; // rax
long long v5; // rcx
long long v6; // rsi
long long v7; // rax
long long result; // rax
google::protobuf::internal::ExtensionSet::InternalSwap(
(google::protobuf::MethodOptions *)((char *)this + 16),
(google::protobuf::MethodOptions *)((char *)a2 + 16));
v3 = *((_QWORD *)this + 1);
*((_QWORD *)this + 1) = *((_QWORD *)a2 + 1);
*((_QWORD *)a2 + 1) = v3;
LODWORD(v3) = *((_DWORD *)this + 10);
*((_DWORD *)this + 10) = *((_DWORD *)a2 + 10);
*((_DWORD *)a2 + 10) = v3;
v4 = *((_QWORD *)a2 + 6);
v5 = *((_QWORD *)a2 + 8);
v6 = *((_QWORD *)this + 8);
*((_QWORD *)a2 + 6) = *((_QWORD *)this + 6);
*((_QWORD *)a2 + 8) = v6;
*((_QWORD *)this + 6) = v4;
v7 = *((_QWORD *)a2 + 7);
*((_QWORD *)a2 + 7) = *((_QWORD *)this + 7);
*((_QWORD *)this + 7) = v7;
*((_QWORD *)this + 8) = v5;
result = *((_QWORD *)this + 9);
*((_QWORD *)this + 9) = *((_QWORD *)a2 + 9);
*((_QWORD *)a2 + 9) = result;
return result;
}
|
InternalSwap:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
ADD RDI,0x10
ADD RSI,0x10
CALL 0x001b6712
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [R14 + 0x8],RCX
MOV qword ptr [RBX + 0x8],RAX
MOV EAX,dword ptr [R14 + 0x28]
MOV ECX,dword ptr [RBX + 0x28]
MOV dword ptr [R14 + 0x28],ECX
MOV dword ptr [RBX + 0x28],EAX
MOV RAX,qword ptr [RBX + 0x30]
MOV RCX,qword ptr [RBX + 0x40]
MOV RDX,qword ptr [R14 + 0x30]
MOV RSI,qword ptr [R14 + 0x40]
MOV qword ptr [RBX + 0x30],RDX
MOV qword ptr [RBX + 0x40],RSI
MOV qword ptr [R14 + 0x30],RAX
MOV RAX,qword ptr [RBX + 0x38]
MOV RDX,qword ptr [R14 + 0x38]
MOV qword ptr [RBX + 0x38],RDX
MOV qword ptr [R14 + 0x38],RAX
MOV qword ptr [R14 + 0x40],RCX
MOV RAX,qword ptr [R14 + 0x48]
MOV RCX,qword ptr [RBX + 0x48]
MOV qword ptr [R14 + 0x48],RCX
MOV qword ptr [RBX + 0x48],RAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* google::protobuf::MethodOptions::InternalSwap(google::protobuf::MethodOptions*) */
void __thiscall
google::protobuf::MethodOptions::InternalSwap(MethodOptions *this,MethodOptions *param_1)
{
int4 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
internal::ExtensionSet::InternalSwap
((ExtensionSet *)(this + 0x10),(ExtensionSet *)(param_1 + 0x10));
uVar2 = *(int8 *)(this + 8);
*(int8 *)(this + 8) = *(int8 *)(param_1 + 8);
*(int8 *)(param_1 + 8) = uVar2;
uVar1 = *(int4 *)(this + 0x28);
*(int4 *)(this + 0x28) = *(int4 *)(param_1 + 0x28);
*(int4 *)(param_1 + 0x28) = uVar1;
uVar2 = *(int8 *)(param_1 + 0x30);
uVar3 = *(int8 *)(param_1 + 0x40);
uVar4 = *(int8 *)(this + 0x40);
*(int8 *)(param_1 + 0x30) = *(int8 *)(this + 0x30);
*(int8 *)(param_1 + 0x40) = uVar4;
*(int8 *)(this + 0x30) = uVar2;
uVar2 = *(int8 *)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = *(int8 *)(this + 0x38);
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)(this + 0x40) = uVar3;
uVar2 = *(int8 *)(this + 0x48);
*(int8 *)(this + 0x48) = *(int8 *)(param_1 + 0x48);
*(int8 *)(param_1 + 0x48) = uVar2;
return;
}
|
|
59,415
|
llm_tokenizer_spm_session::try_add_bigram(int, int)
|
monkey531[P]llama/src/llama-vocab.cpp
|
void try_add_bigram(int left, int right) {
if (left == -1 || right == -1) {
return;
}
const std::string text = std::string(symbols[left].text, symbols[left].n + symbols[right].n);
auto token = vocab.text_to_token(text);
if (token == LLAMA_TOKEN_NULL) {
return;
}
if (static_cast<uint32_t>(token) >= vocab.n_tokens()) {
return;
}
const auto & tok_data = vocab.get_token_data(token);
llm_bigram_spm bigram;
bigram.left = left;
bigram.right = right;
bigram.score = tok_data.score;
bigram.size = text.size();
work_queue.push(bigram);
// Do we need to support is_unused?
rev_merge[text] = std::make_pair(left, right);
}
|
O3
|
cpp
|
llm_tokenizer_spm_session::try_add_bigram(int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
cmpl $-0x1, %esi
sete %al
cmpl $-0x1, %edx
sete %cl
orb %al, %cl
jne 0xeac90
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %esi, %rax
movq 0x8(%rdi), %rcx
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rsi
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdi
leaq 0x18(%rsp), %r12
movq 0x10(%rcx,%rax,8), %rdx
addq %rsi, %rdx
addq 0x10(%rcx,%rdi,8), %rdx
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x65680
movq (%r14), %rdi
movq %r15, %rsi
callq 0x67e80
cmpl $-0x1, %eax
je 0xeac79
movq (%r14), %rdi
movq (%rdi), %rcx
movq 0x98(%rcx), %rdx
subq 0x90(%rcx), %rdx
shrq $0x3, %rdx
imull $0xcccccccd, %edx, %ecx # imm = 0xCCCCCCCD
cmpl %ecx, %eax
jae 0xeac79
movl %eax, %esi
callq 0x6a010
leaq 0x28(%rsp), %rsi
movl %ebp, (%rsi)
movl %ebx, 0x4(%rsi)
movss 0x20(%rax), %xmm0
movss %xmm0, 0x8(%rsi)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rsi)
leaq 0x20(%r14), %rdi
callq 0x685f0
addq $0x40, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x68a90
movl %ebp, (%rax)
movl %ebx, 0x4(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xeac90
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x681a0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xeaca3
jmp 0xeaca3
jmp 0xeaca3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xeacbd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x681a0
movq %rbx, %rdi
callq 0x6b5d0
nop
|
_ZN25llm_tokenizer_spm_session14try_add_bigramEii:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
cmp esi, 0FFFFFFFFh
setz al
cmp edx, 0FFFFFFFFh
setz cl
or cl, al
jnz loc_EAC90
mov ebx, edx
mov ebp, esi
mov r14, rdi
movsxd rax, esi
mov rcx, [rdi+8]
lea rax, [rax+rax*2]
mov rsi, [rcx+rax*8+8]
movsxd rdx, edx
lea rdi, [rdx+rdx*2]
lea r12, [rsp+68h+var_50]
mov rdx, [rcx+rax*8+10h]
add rdx, rsi
add rdx, [rcx+rdi*8+10h]
mov [r12-10h], r12
lea r15, [rsp+68h+var_60]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, [r14]
mov rsi, r15
call __ZNK11llama_vocab13text_to_tokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; llama_vocab::text_to_token(std::string const&)
cmp eax, 0FFFFFFFFh
jz short loc_EAC79
mov rdi, [r14]; this
mov rcx, [rdi]
mov rdx, [rcx+98h]
sub rdx, [rcx+90h]
shr rdx, 3
imul ecx, edx, 0CCCCCCCDh
cmp eax, ecx
jnb short loc_EAC79
mov esi, eax; int
call __ZNK11llama_vocab14get_token_dataEi; llama_vocab::get_token_data(int)
lea rsi, [rsp+68h+var_40]
mov [rsi], ebp
mov [rsi+4], ebx
movss xmm0, dword ptr [rax+20h]
movss dword ptr [rsi+8], xmm0
mov rax, [rsp+68h+var_58]
mov [rsi+10h], rax
lea rdi, [r14+20h]
call __ZNSt14priority_queueI14llm_bigram_spmSt6vectorIS0_SaIS0_EENS0_10comparatorEE4pushERKS0_; std::priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm>,llm_bigram_spm::comparator>::push(llm_bigram_spm const&)
add r14, 40h ; '@'
lea rsi, [rsp+68h+var_60]
mov rdi, r14
call __ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIiiESt4lessIS5_ESaIS6_IKS5_S7_EEEixERSA_; std::map<std::string,std::pair<int,int>>::operator[](std::string const&)
mov [rax], ebp
mov [rax+4], ebx
loc_EAC79:
mov rdi, [rsp+68h+var_60]; void *
cmp rdi, r12
jz short loc_EAC90
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_EAC90:
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short loc_EACA3
jmp short loc_EACA3
jmp short $+2
loc_EACA3:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_EACBD
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_EACBD:
mov rdi, rbx
call __Unwind_Resume
|
void llm_tokenizer_spm_session::try_add_bigram(llm_tokenizer_spm_session *this, int a2, int a3)
{
long long v5; // rcx
long long v6; // rax
long long v7; // rsi
long long v8; // rdx
unsigned int v9; // eax
long long token_data; // rax
_DWORD *v11; // rax
void *v12[2]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v13[2]; // [rsp+18h] [rbp-50h] BYREF
int v14; // [rsp+28h] [rbp-40h]
int v15; // [rsp+2Ch] [rbp-3Ch]
int v16; // [rsp+30h] [rbp-38h]
void *v17; // [rsp+38h] [rbp-30h]
if ( a2 != -1 && a3 != -1 )
{
v5 = *((_QWORD *)this + 1);
v6 = 3LL * a2;
v7 = *(_QWORD *)(v5 + 24LL * a2 + 8);
v8 = *(_QWORD *)(v5 + 24LL * a3 + 16) + v7 + *(_QWORD *)(v5 + 8 * v6 + 16);
v12[0] = v13;
std::string::_M_construct<char const*>(v12, v7, v8);
v9 = llama_vocab::text_to_token(*(long long **)this, (long long)v12);
if ( v9 != -1
&& v9 < -858993459
* (unsigned int)((*(_QWORD *)(**(_QWORD **)this + 152LL) - *(_QWORD *)(**(_QWORD **)this + 144LL)) >> 3) )
{
token_data = llama_vocab::get_token_data(*(llama_vocab **)this, v9);
v14 = a2;
v15 = a3;
v16 = *(_DWORD *)(token_data + 32);
v17 = v12[1];
std::priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm>,llm_bigram_spm::comparator>::push((char *)this + 32);
v11 = (_DWORD *)std::map<std::string,std::pair<int,int>>::operator[]((char *)this + 64, v12);
*v11 = a2;
v11[1] = a3;
}
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
}
}
|
try_add_bigram:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
CMP ESI,-0x1
SETZ AL
CMP EDX,-0x1
SETZ CL
OR CL,AL
JNZ 0x001eac90
MOV EBX,EDX
MOV EBP,ESI
MOV R14,RDI
MOVSXD RAX,ESI
MOV RCX,qword ptr [RDI + 0x8]
LEA RAX,[RAX + RAX*0x2]
MOV RSI,qword ptr [RCX + RAX*0x8 + 0x8]
MOVSXD RDX,EDX
LEA RDI,[RDX + RDX*0x2]
LEA R12,[RSP + 0x18]
MOV RDX,qword ptr [RCX + RAX*0x8 + 0x10]
ADD RDX,RSI
ADD RDX,qword ptr [RCX + RDI*0x8 + 0x10]
MOV qword ptr [R12 + -0x10],R12
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x00165680
MOV RDI,qword ptr [R14]
LAB_001eac07:
MOV RSI,R15
CALL 0x00167e80
CMP EAX,-0x1
JZ 0x001eac79
MOV RDI,qword ptr [R14]
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RCX + 0x98]
SUB RDX,qword ptr [RCX + 0x90]
SHR RDX,0x3
IMUL ECX,EDX,-0x33333333
CMP EAX,ECX
JNC 0x001eac79
LAB_001eac36:
MOV ESI,EAX
CALL 0x0016a010
LEA RSI,[RSP + 0x28]
MOV dword ptr [RSI],EBP
MOV dword ptr [RSI + 0x4],EBX
MOVSS XMM0,dword ptr [RAX + 0x20]
MOVSS dword ptr [RSI + 0x8],XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSI + 0x10],RAX
LEA RDI,[R14 + 0x20]
LAB_001eac5e:
CALL 0x001685f0
ADD R14,0x40
LAB_001eac67:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x00168a90
LAB_001eac74:
MOV dword ptr [RAX],EBP
MOV dword ptr [RAX + 0x4],EBX
LAB_001eac79:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001eac90
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001681a0
LAB_001eac90:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* llm_tokenizer_spm_session::try_add_bigram(int, int) */
void __thiscall
llm_tokenizer_spm_session::try_add_bigram(llm_tokenizer_spm_session *this,int param_1,int param_2)
{
long lVar1;
uint uVar2;
long lVar3;
int *piVar4;
long *local_60;
int8 local_58;
long local_50 [2];
int local_40;
int local_3c;
int4 local_38;
int8 local_30;
if (param_2 != -1 && param_1 != -1) {
lVar3 = *(long *)(this + 8);
lVar1 = *(long *)(lVar3 + 8 + (long)param_1 * 0x18);
local_60 = local_50;
std::__cxx11::string::_M_construct<char_const*>
((string *)&local_60,lVar1,
*(long *)(lVar3 + 0x10 + (long)param_1 * 0x18) + lVar1 +
*(long *)(lVar3 + 0x10 + (long)param_2 * 0x18));
/* try { // try from 001eac07 to 001eac0e has its CatchHandler @ 001eaca3 */
uVar2 = llama_vocab::text_to_token(*(llama_vocab **)this,(string *)&local_60);
if ((uVar2 != 0xffffffff) &&
(lVar3 = *(long *)*(llama_vocab **)this,
uVar2 < (uint)((int)((ulong)(*(long *)(lVar3 + 0x98) - *(long *)(lVar3 + 0x90)) >> 3) *
-0x33333333))) {
/* try { // try from 001eac36 to 001eac3c has its CatchHandler @ 001eaca1 */
lVar3 = llama_vocab::get_token_data(*(llama_vocab **)this,uVar2);
local_38 = *(int4 *)(lVar3 + 0x20);
local_30 = local_58;
local_40 = param_1;
local_3c = param_2;
/* try { // try from 001eac5e to 001eac62 has its CatchHandler @ 001eac9f */
std::
priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm,std::allocator<llm_bigram_spm>>,llm_bigram_spm::comparator>
::push((priority_queue<llm_bigram_spm,std::vector<llm_bigram_spm,std::allocator<llm_bigram_spm>>,llm_bigram_spm::comparator>
*)(this + 0x20),(llm_bigram_spm *)&local_40);
/* try { // try from 001eac67 to 001eac73 has its CatchHandler @ 001eac9d */
piVar4 = (int *)std::
map<std::__cxx11::string,std::pair<int,int>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::pair<int,int>>>>
::operator[]((map<std::__cxx11::string,std::pair<int,int>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::pair<int,int>>>>
*)(this + 0x40),(string *)&local_60);
*piVar4 = param_1;
piVar4[1] = param_2;
}
if (local_60 != local_50) {
operator_delete(local_60,local_50[0] + 1);
}
}
return;
}
|
|
59,416
|
my_uca_previous_context_find
|
eloqsql/strings/ctype-uca.c
|
static const MY_CONTRACTION *
my_uca_previous_context_find(my_uca_scanner *scanner,
my_wc_t wc0, my_wc_t wc1)
{
const MY_CONTRACTIONS *list= &scanner->level->contractions;
MY_CONTRACTION *c, *last;
for (c= list->item, last= c + list->nitems; c < last; c++)
{
if (c->with_context && wc0 == c->ch[0] && wc1 == c->ch[1])
{
scanner->wbeg= c->weight + 1;
return c;
}
}
return NULL;
}
|
O0
|
c
|
my_uca_previous_context_find:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
imulq $0x58, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x5a84e
movq -0x30(%rbp), %rax
movsbl 0x52(%rax), %eax
cmpl $0x0, %eax
je 0x5a83e
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq (%rcx), %rax
jne 0x5a83e
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x5a83e
movq -0x30(%rbp), %rcx
addq $0x30, %rcx
addq $0x2, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x5a856
jmp 0x5a840
movq -0x30(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x30(%rbp)
jmp 0x5a7ef
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
|
my_uca_previous_context_find:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
add rax, 18h
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_28]
imul rcx, [rcx], 58h ; 'X'
add rax, rcx
mov [rbp+var_38], rax
loc_5A7EF:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_5A84E
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax+52h]
cmp eax, 0
jz short loc_5A83E
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
cmp rax, [rcx]
jnz short loc_5A83E
mov rax, [rbp+var_20]
mov rcx, [rbp+var_30]
cmp rax, [rcx+8]
jnz short loc_5A83E
mov rcx, [rbp+var_30]
add rcx, 30h ; '0'
add rcx, 2
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
jmp short loc_5A856
loc_5A83E:
jmp short $+2
loc_5A840:
mov rax, [rbp+var_30]
add rax, 58h ; 'X'
mov [rbp+var_30], rax
jmp short loc_5A7EF
loc_5A84E:
mov [rbp+var_8], 0
loc_5A856:
mov rax, [rbp+var_8]
pop rbp
retn
|
unsigned long long my_uca_previous_context_find(_QWORD *a1, long long a2, long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-38h]
unsigned long long v5; // [rsp+8h] [rbp-30h]
v5 = *(_QWORD *)(a1[3] + 32LL);
v4 = 88LL * *(_QWORD *)(a1[3] + 24LL) + v5;
while ( v5 < v4 )
{
if ( *(_BYTE *)(v5 + 82) && a2 == *(_QWORD *)v5 && a3 == *(_QWORD *)(v5 + 8) )
{
*a1 = v5 + 50;
return v5;
}
v5 += 88LL;
}
return 0LL;
}
|
my_uca_previous_context_find:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x28]
IMUL RCX,qword ptr [RCX],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_0015a7ef:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0015a84e
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX + 0x52]
CMP EAX,0x0
JZ 0x0015a83e
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RCX]
JNZ 0x0015a83e
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RCX + 0x8]
JNZ 0x0015a83e
MOV RCX,qword ptr [RBP + -0x30]
ADD RCX,0x30
ADD RCX,0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015a856
LAB_0015a83e:
JMP 0x0015a840
LAB_0015a840:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x58
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0015a7ef
LAB_0015a84e:
MOV qword ptr [RBP + -0x8],0x0
LAB_0015a856:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long * my_uca_previous_context_find(long *param_1,long param_2,long param_3)
{
long *plVar1;
long *local_38;
local_38 = *(long **)(param_1[3] + 0x20);
plVar1 = local_38 + *(long *)(param_1[3] + 0x18) * 0xb;
while( true ) {
if (plVar1 <= local_38) {
return (long *)0x0;
}
if (((*(char *)((long)local_38 + 0x52) != '\0') && (param_2 == *local_38)) &&
(param_3 == local_38[1])) break;
local_38 = local_38 + 0xb;
}
*param_1 = (long)local_38 + 0x32;
return local_38;
}
|
|
59,417
|
ma_update_blob_record
|
eloqsql/storage/maria/ma_dynrec.c
|
my_bool _ma_update_blob_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
uchar *rec_buff;
int error;
ulong reclength,reclength2,extra;
my_bool buff_alloced;
extra= (ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER)+MARIA_SPLIT_LENGTH+
MARIA_DYN_DELETE_BLOCK_HEADER);
reclength= (info->s->base.pack_reclength+
_ma_calc_total_blob_length(info,record)+ extra);
#ifdef NOT_USED /* We now support big rows */
if (reclength > MARIA_DYN_MAX_ROW_LENGTH)
{
my_errno=HA_ERR_TO_BIG_ROW;
return 1;
}
#endif
alloc_on_stack(*info->stack_end_ptr, rec_buff, buff_alloced, reclength);
if (!rec_buff)
{
my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */
return(1);
}
reclength2= _ma_rec_pack(info, rec_buff+
ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER),
record);
if (!reclength2)
{
error= 1;
goto err;
}
DBUG_ASSERT(reclength2 <= reclength);
error=update_dynamic_record(info,pos,
rec_buff+ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER),
reclength2);
err:
stack_alloc_free(rec_buff, buff_alloced);
return(error != 0);
}
|
O3
|
c
|
ma_update_blob_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq 0x3a0(%rax), %r12
movq %rcx, %rsi
callq 0x4325e
leaq (%r12,%rax), %rsi
addq $0x5c, %rsi
leaq -0x40(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%r14), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x43370
cmpq $0x10000, %rax # imm = 0x10000
ja 0x43358
cmpq $0x1000, %rsi # imm = 0x1000
jb 0x43370
cmpq $0x8001, %rax # imm = 0x8001
jb 0x43370
movq %rsp, %r12
addq $0xf, %rsi
andq $-0x10, %rsi
subq %rsi, %r12
movq %r12, %rsp
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0x4338b
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0xa1359
testq %rax, %rax
je 0x433cb
movq %rax, %r12
movl $0x0, -0x34(%rbp)
leaq 0x18(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x428d1
testl %eax, %eax
je 0x433b9
movl %eax, %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x42d66
testb %al, %al
setne %bl
jmp 0x433bb
movb $0x1, %bl
cmpb $0x0, -0x34(%rbp)
jne 0x433d8
movq %r12, %rdi
callq 0xa1586
jmp 0x433d8
callq 0xa319a
movl $0x80, (%rax)
movb $0x1, %bl
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x433f8
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29220
|
_ma_update_blob_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rcx
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov r12, [rax+3A0h]
mov rsi, rcx
call _ma_calc_total_blob_length
lea rsi, [r12+rax]
add rsi, 5Ch ; '\'
lea rcx, [rbp+var_40]
mov [rcx], rsi
mov rax, [r14+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe short loc_43370
cmp rax, 10000h
ja short loc_43358
cmp rsi, 1000h
jb short loc_43370
cmp rax, 8001h
jb short loc_43370
loc_43358:
mov r12, rsp
add rsi, 0Fh
and rsi, 0FFFFFFFFFFFFFFF0h
sub r12, rsi
mov rsp, r12
mov al, 1
mov [rbp+var_34], eax
jmp short loc_4338B
loc_43370:
mov edx, 10010h
xor edi, edi
call my_malloc
test rax, rax
jz short loc_433CB
mov r12, rax
mov [rbp+var_34], 0
loc_4338B:
lea r13, [r12+18h]
mov rdi, r14
mov rsi, r13
mov rdx, r15
call _ma_rec_pack
test eax, eax
jz short loc_433B9
mov ecx, eax
mov rdi, r14
mov rsi, rbx
mov rdx, r13
call update_dynamic_record
test al, al
setnz bl
jmp short loc_433BB
loc_433B9:
mov bl, 1
loc_433BB:
cmp byte ptr [rbp+var_34], 0
jnz short loc_433D8
mov rdi, r12
call my_free
jmp short loc_433D8
loc_433CB:
call _my_thread_var
mov dword ptr [rax], 80h
mov bl, 1
loc_433D8:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_433F8
mov eax, ebx
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_433F8:
call ___stack_chk_fail
|
long long ma_update_blob_record(long long a1, long long a2, long long a3, unsigned __int8 *a4)
{
long long v6; // r12
unsigned long long v7; // rsi
unsigned long long v8; // rax
bool v9; // cc
unsigned long long v10; // rax
char *v11; // r12
long long v12; // rax
unsigned int v13; // eax
unsigned long long v15; // [rsp+0h] [rbp-40h] BYREF
int v16; // [rsp+Ch] [rbp-34h]
unsigned long long v17; // [rsp+10h] [rbp-30h]
v17 = __readfsqword(0x28u);
v6 = *(_QWORD *)(*(_QWORD *)a1 + 928LL);
v7 = v6 + ma_calc_total_blob_length((_QWORD *)a1, (long long)a4) + 92;
v15 = v7;
v8 = **(_QWORD **)(a1 + 120) - (_QWORD)&v15;
v9 = v8 <= v7;
v10 = v8 - v7;
if ( v9 || v10 <= 0x10000 && (v7 < 0x1000 || v10 < 0x8001) )
{
v12 = my_malloc(0LL, v7, 65552LL);
if ( !v12 )
{
*(_DWORD *)my_thread_var(0LL) = 128;
LOBYTE(a2) = 1;
return (unsigned int)a2;
}
v11 = (char *)v12;
v16 = 0;
}
else
{
v11 = (char *)&v15 - ((v7 + 15) & 0xFFFFFFFFFFFFFFF0LL);
LOBYTE(v10) = 1;
v16 = v10;
}
v13 = ma_rec_pack((unsigned __int8 *)a1, v11 + 24, a4);
if ( v13 )
LOBYTE(a2) = update_dynamic_record((_QWORD *)a1, a2, (long long)(v11 + 24), v13);
else
LOBYTE(a2) = 1;
if ( !(_BYTE)v16 )
my_free(v11);
return (unsigned int)a2;
}
|
_ma_update_blob_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RCX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV R12,qword ptr [RAX + 0x3a0]
MOV RSI,RCX
CALL 0x0014325e
LEA RSI,[R12 + RAX*0x1]
ADD RSI,0x5c
LEA RCX,[RBP + -0x40]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [R14 + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x00143370
CMP RAX,0x10000
JA 0x00143358
CMP RSI,0x1000
JC 0x00143370
CMP RAX,0x8001
JC 0x00143370
LAB_00143358:
MOV R12,RSP
ADD RSI,0xf
AND RSI,-0x10
SUB R12,RSI
MOV RSP,R12
MOV AL,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0014338b
LAB_00143370:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x001a1359
TEST RAX,RAX
JZ 0x001433cb
MOV R12,RAX
MOV dword ptr [RBP + -0x34],0x0
LAB_0014338b:
LEA R13,[R12 + 0x18]
MOV RDI,R14
MOV RSI,R13
MOV RDX,R15
CALL 0x001428d1
TEST EAX,EAX
JZ 0x001433b9
MOV ECX,EAX
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R13
CALL 0x00142d66
TEST AL,AL
SETNZ BL
JMP 0x001433bb
LAB_001433b9:
MOV BL,0x1
LAB_001433bb:
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x001433d8
MOV RDI,R12
CALL 0x001a1586
JMP 0x001433d8
LAB_001433cb:
CALL 0x001a319a
MOV dword ptr [RAX],0x80
MOV BL,0x1
LAB_001433d8:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001433f8
MOV EAX,EBX
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001433f8:
CALL 0x00129220
|
ulong _ma_update_blob_record(long *param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
char cVar2;
int iVar3;
long lVar4;
ulong uVar5;
int1 *puVar6;
int4 *puVar7;
int7 uVar8;
ulong *puVar9;
long in_FS_OFFSET;
ulong local_48;
int4 local_3c;
long local_38;
puVar9 = &local_48;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = *(long *)(*param_1 + 0x3a0);
lVar4 = _ma_calc_total_blob_length(param_1,param_4);
lVar1 = lVar1 + lVar4;
local_48 = lVar1 + 0x5c;
uVar5 = (*(long *)param_1[0xf] - (long)&local_48) - local_48;
uVar8 = (int7)((ulong)param_2 >> 8);
if (((ulong)(*(long *)param_1[0xf] - (long)&local_48) < local_48 || uVar5 == 0) ||
((uVar5 < 0x10001 && ((local_48 < 0x1000 || (uVar5 < 0x8001)))))) {
puVar6 = (int1 *)my_malloc(0,local_48,0x10010);
if (puVar6 == (int1 *)0x0) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x80;
uVar5 = CONCAT71(uVar8,1);
goto LAB_001433d8;
}
local_3c = 0;
puVar9 = &local_48;
}
else {
puVar6 = (int1 *)((long)&local_48 - (lVar1 + 0x6bU & 0xfffffffffffffff0));
local_3c = (int4)CONCAT71((int7)(uVar5 >> 8),1);
puVar9 = (ulong *)puVar6;
}
*(int8 *)((long)puVar9 + -8) = 0x14339e;
iVar3 = _ma_rec_pack(param_1,puVar6 + 0x18,param_4);
if (iVar3 == 0) {
uVar5 = CONCAT71(uVar8,1);
}
else {
*(int8 *)((long)puVar9 + -8) = 0x1433b2;
cVar2 = update_dynamic_record(param_1,param_2,puVar6 + 0x18,iVar3);
uVar5 = CONCAT71(uVar8,cVar2 != '\0');
}
if ((char)local_3c == '\0') {
*(int8 *)((long)puVar9 + -8) = 0x1433c9;
my_free(puVar6);
}
LAB_001433d8:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar5 & 0xffffffff;
}
/* WARNING: Subroutine does not return */
*(code **)((long)puVar9 + -8) = _ma_delete_dynamic_record;
__stack_chk_fail();
}
|
|
59,418
|
ggml_compute_forward_conv_transpose_1d
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
|
static void ggml_compute_forward_conv_transpose_1d(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F16:
{
ggml_compute_forward_conv_transpose_1d_f16_f32(params, dst);
} break;
case GGML_TYPE_F32:
{
ggml_compute_forward_conv_transpose_1d_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
}
|
O0
|
c
|
ggml_compute_forward_conv_transpose_1d:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
testl %eax, %eax
je 0x16b87
jmp 0x16b6e
movl -0x1c(%rbp), %eax
subl $0x1, %eax
jne 0x16b96
jmp 0x16b78
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x32300
jmp 0x16bb0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x32a40
jmp 0x16bb0
leaq 0x5cfc5(%rip), %rdi # 0x73b62
movl $0x264d, %esi # imm = 0x264D
leaq 0x5d214(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ggml_compute_forward_conv_transpose_1d:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov [rbp+var_1C], eax
test eax, eax
jz short loc_16B87
jmp short $+2
loc_16B6E:
mov eax, [rbp+var_1C]
sub eax, 1
jnz short loc_16B96
jmp short $+2
loc_16B78:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_conv_transpose_1d_f16_f32
jmp short loc_16BB0
loc_16B87:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_conv_transpose_1d_f32
jmp short loc_16BB0
loc_16B96:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 264Dh
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_16BB0:
add rsp, 20h
pop rbp
retn
|
double ggml_compute_forward_conv_transpose_1d(long long a1, long long a2)
{
double result; // xmm0_8
int v3; // [rsp+4h] [rbp-1Ch]
v3 = **(_DWORD **)(a2 + 152);
if ( v3 )
{
if ( v3 == 1 )
ggml_compute_forward_conv_transpose_1d_f16_f32(a1, a2);
else
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
9805LL,
"fatal error");
}
else
{
ggml_compute_forward_conv_transpose_1d_f32(a1, a2);
}
return result;
}
|
ggml_compute_forward_conv_transpose_1d:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1c],EAX
TEST EAX,EAX
JZ 0x00116b87
JMP 0x00116b6e
LAB_00116b6e:
MOV EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1
JNZ 0x00116b96
JMP 0x00116b78
LAB_00116b78:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00132300
JMP 0x00116bb0
LAB_00116b87:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00132a40
JMP 0x00116bb0
LAB_00116b96:
LEA RDI,[0x173b62]
MOV ESI,0x264d
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_00116bb0:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_conv_transpose_1d(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_conv_transpose_1d_f32(param_1,param_2);
}
else if (**(int **)(param_2 + 0x98) == 1) {
ggml_compute_forward_conv_transpose_1d_f16_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x264d,"fatal error");
}
return;
}
|
|
59,419
|
mbedtls_rsa_check_privkey
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/rsa.c
|
int mbedtls_rsa_check_privkey(const mbedtls_rsa_context *ctx)
{
RSA_VALIDATE_RET(ctx != NULL);
if (mbedtls_rsa_check_pubkey(ctx) != 0 ||
rsa_check_context(ctx, 1 /* private */, 1 /* blinding */) != 0) {
return MBEDTLS_ERR_RSA_KEY_CHECK_FAILED;
}
if (mbedtls_rsa_validate_params(&ctx->N, &ctx->P, &ctx->Q,
&ctx->D, &ctx->E, NULL, NULL) != 0) {
return MBEDTLS_ERR_RSA_KEY_CHECK_FAILED;
}
#if !defined(MBEDTLS_RSA_NO_CRT)
else if (mbedtls_rsa_validate_crt(&ctx->P, &ctx->Q, &ctx->D,
&ctx->DP, &ctx->DQ, &ctx->QP) != 0) {
return MBEDTLS_ERR_RSA_KEY_CHECK_FAILED;
}
#endif
return 0;
}
|
O3
|
c
|
mbedtls_rsa_check_privkey:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x9029b
movl $0xffffbe00, %ebp # imm = 0xFFFFBE00
testl %eax, %eax
jne 0x901ed
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8f979
testl %eax, %eax
jne 0x901ed
leaq 0x10(%rbx), %rdi
leaq 0x58(%rbx), %r14
leaq 0x70(%rbx), %r15
leaq 0x40(%rbx), %r12
leaq 0x28(%rbx), %r8
movq $0x0, (%rsp)
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
xorl %r9d, %r9d
callq 0x92b48
testl %eax, %eax
jne 0x901ed
leaq 0x88(%rbx), %rcx
leaq 0xa0(%rbx), %r8
addq $0xb8, %rbx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %r9
callq 0x92988
testl %eax, %eax
movl $0xffffbe00, %ebp # imm = 0xFFFFBE00
cmovel %eax, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
mbedtls_rsa_check_privkey:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rdi
call mbedtls_rsa_check_pubkey
mov ebp, 0FFFFBE00h
test eax, eax
jnz short loc_901ED
mov rdi, rbx
mov esi, 1
call rsa_check_context
test eax, eax
jnz short loc_901ED
lea rdi, [rbx+10h]
lea r14, [rbx+58h]
lea r15, [rbx+70h]
lea r12, [rbx+40h]
lea r8, [rbx+28h]
mov [rsp+38h+var_38], 0
mov rsi, r14
mov rdx, r15
mov rcx, r12
xor r9d, r9d
call mbedtls_rsa_validate_params
test eax, eax
jnz short loc_901ED
lea rcx, [rbx+88h]
lea r8, [rbx+0A0h]
add rbx, 0B8h
mov rdi, r14
mov rsi, r15
mov rdx, r12
mov r9, rbx
call mbedtls_rsa_validate_crt
test eax, eax
mov ebp, 0FFFFBE00h
cmovz ebp, eax
loc_901ED:
mov eax, ebp
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long mbedtls_rsa_check_privkey(_QWORD *a1)
{
unsigned int v1; // ebp
v1 = -16896;
if ( !(unsigned int)mbedtls_rsa_check_pubkey(a1)
&& !(unsigned int)rsa_check_context(a1, 1)
&& !(unsigned int)mbedtls_rsa_validate_params(
(int)a1 + 16,
(int)a1 + 88,
(int)a1 + 112,
(int)a1 + 64,
(int)a1 + 40,
0,
0LL) )
{
v1 = -16896;
if ( !(unsigned int)mbedtls_rsa_validate_crt(a1 + 11, a1 + 14, a1 + 8, a1 + 17, a1 + 20, a1 + 23) )
return 0;
}
return v1;
}
|
mbedtls_rsa_check_privkey:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
CALL 0x0019029b
MOV EBP,0xffffbe00
TEST EAX,EAX
JNZ 0x001901ed
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0018f979
TEST EAX,EAX
JNZ 0x001901ed
LEA RDI,[RBX + 0x10]
LEA R14,[RBX + 0x58]
LEA R15,[RBX + 0x70]
LEA R12,[RBX + 0x40]
LEA R8,[RBX + 0x28]
MOV qword ptr [RSP],0x0
MOV RSI,R14
MOV RDX,R15
MOV RCX,R12
XOR R9D,R9D
CALL 0x00192b48
TEST EAX,EAX
JNZ 0x001901ed
LEA RCX,[RBX + 0x88]
LEA R8,[RBX + 0xa0]
ADD RBX,0xb8
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
MOV R9,RBX
CALL 0x00192988
TEST EAX,EAX
MOV EBP,0xffffbe00
CMOVZ EBP,EAX
LAB_001901ed:
MOV EAX,EBP
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 mbedtls_rsa_check_privkey(long param_1)
{
int iVar1;
int8 uVar2;
iVar1 = mbedtls_rsa_check_pubkey();
uVar2 = 0xffffbe00;
if (iVar1 == 0) {
iVar1 = rsa_check_context(param_1,1);
if (iVar1 == 0) {
iVar1 = mbedtls_rsa_validate_params
(param_1 + 0x10,param_1 + 0x58,param_1 + 0x70,param_1 + 0x40,param_1 + 0x28,
0,0);
if (iVar1 == 0) {
iVar1 = mbedtls_rsa_validate_crt
(param_1 + 0x58,param_1 + 0x70,param_1 + 0x40,param_1 + 0x88,
param_1 + 0xa0,param_1 + 0xb8);
uVar2 = 0xffffbe00;
if (iVar1 == 0) {
uVar2 = 0;
}
}
}
}
return uVar2;
}
|
|
59,420
|
uf_endspace_selected
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_endspace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
}
else
decode_bytes(rec,bit_buff,to,end);
}
|
O0
|
c
|
uf_endspace_selected:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xbcc4a
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xbcc72
jmp 0xbcd3f
movq -0x10(%rbp), %rdi
callq 0xbbd50
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xbcd3f
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xbccb5
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x201993(%rip), %rcx # 0x2be640
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0xbccc8
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xba500
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0xbccea
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0xbcd54
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0xbcd1d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %eax
movl %eax, %r8d
xorl %eax, %eax
subq %r8, %rax
addq %rax, %rcx
callq 0xbc460
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2c0
jmp 0xbcd54
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xbc460
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
uf_endspace_selected_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_BCC4A
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_BCC72
jmp loc_BCD3F
loc_BCC4A:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz loc_BCD3F
loc_BCC72:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_BCCB5
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_BCCC8
loc_BCCB5:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_28], eax
loc_BCCC8:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_BCCEA
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_BCD54
loc_BCCEA:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_BCD1D
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov eax, [rbp+var_24]
mov r8d, eax
xor eax, eax
sub rax, r8
add rcx, rax
call decode_bytes_0
loc_BCD1D:
mov rdi, [rbp+var_20]
mov eax, [rbp+var_24]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
jmp short loc_BCD54
loc_BCD3F:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_BCD54:
add rsp, 30h
pop rbp
retn
|
long long uf_endspace_selected_0(long long a1, int *a2, _BYTE *a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
unsigned int v6; // eax
int v7; // ecx
long long result; // rax
unsigned int bits_0; // [rsp+8h] [rbp-28h]
if ( a2[1] )
{
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) == 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v6 = *a2;
v7 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v7;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v6 >> v7);
}
if ( &a3[bits_0] <= a4 )
{
if ( &a3[bits_0] != a4 )
decode_bytes_0(a1, (long long)a2, a3, &a4[-bits_0]);
return memset(&a4[-bits_0], 32LL, bits_0);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
|
uf_endspace_selected:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001bcc4a
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001bcc72
JMP 0x001bcd3f
LAB_001bcc4a:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001bbd50
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001bcd3f
LAB_001bcc72:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001bccb5
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x1c]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x1c]
MOV EDX,ECX
LEA RCX,[0x3be640]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001bccc8
LAB_001bccb5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001ba500
MOV dword ptr [RBP + -0x28],EAX
LAB_001bccc8:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001bccea
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x001bcd54
LAB_001bccea:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001bcd1d
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV R8D,EAX
XOR EAX,EAX
SUB RAX,R8
ADD RCX,RAX
CALL 0x001bc460
LAB_001bcd1d:
MOV RDI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2c0
JMP 0x001bcd54
LAB_001bcd3f:
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 0x001bc460
LAB_001bcd54:
ADD RSP,0x30
POP RBP
RET
|
void uf_endspace_selected(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
decode_bytes(param_1,param_2,param_3,param_4);
}
else {
if (param_2[1] < *(uint *)(param_1 + 0x1c)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x1c);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4);
}
if (param_4 < param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
if (param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 - local_30);
}
memset((void *)(param_4 - local_30),0x20,(ulong)local_30);
}
}
return;
}
|
|
59,421
|
uf_endspace_selected
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_endspace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
}
else
decode_bytes(rec,bit_buff,to,end);
}
|
O3
|
c
|
uf_endspace_selected:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x82cfd
movl (%r15), %r14d
decl %eax
movl %eax, 0x4(%r15)
btl %eax, %r14d
jb 0x82d3c
jmp 0x82d1b
movq %r15, %rdi
movq %rdx, %r14
callq 0x81f1d
movq %r14, %rdx
movl $0x1f, 0x4(%r15)
movl (%r15), %r14d
testl %r14d, %r14d
js 0x82d37
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8280e
movl $0x1f, %eax
movl 0x1c(%r12), %r13d
movl %eax, %ecx
subl %r13d, %ecx
jae 0x82d90
subl %eax, %r13d
movl %eax, %eax
leaq 0x5eb9c(%rip), %rcx # 0xe18f0
andl (%rcx,%rax,4), %r14d
movl %r13d, %ecx
shll %cl, %r14d
movq %r15, %rdi
movq %r12, -0x30(%rbp)
movq %rdx, %r12
callq 0x81f1d
movq %r12, %rdx
movq -0x30(%rbp), %r12
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r15)
movl (%r15), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r14d
jmp 0x82da7
movl %ecx, 0x4(%r15)
shrl %cl, %r14d
movl 0x1c(%r12), %eax
leaq 0x5eb4d(%rip), %rcx # 0xe18f0
andl (%rcx,%rax,4), %r14d
movl %r14d, %r13d
leaq (%rdx,%r13), %rax
cmpq %rbx, %rax
jbe 0x82dca
movl $0x1, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r14
negq %r14
cmpq %rbx, %rax
je 0x82de4
leaq (%rbx,%r14), %rcx
movq %r12, %rdi
movq %r15, %rsi
callq 0x8280e
addq %r14, %rbx
movq %rbx, %rdi
movl $0x20, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292c0
|
uf_endspace_selected_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rsi
mov r12, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_82CFD
mov r14d, [r15]
dec eax
mov [r15+4], eax
bt r14d, eax
jb short loc_82D3C
jmp short loc_82D1B
loc_82CFD:
mov rdi, r15
mov r14, rdx
call fill_buffer_0
mov rdx, r14
mov dword ptr [r15+4], 1Fh
mov r14d, [r15]
test r14d, r14d
js short loc_82D37
loc_82D1B:
mov rdi, r12
mov rsi, r15
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
loc_82D37:
mov eax, 1Fh
loc_82D3C:
mov r13d, [r12+1Ch]
mov ecx, eax
sub ecx, r13d
jnb short loc_82D90
sub r13d, eax
mov eax, eax
lea rcx, mask_0
and r14d, [rcx+rax*4]
mov ecx, r13d
shl r14d, cl
mov rdi, r15
mov [rbp+var_30], r12
mov r12, rdx
call fill_buffer_0
mov rdx, r12
mov r12, [rbp+var_30]
mov eax, 20h ; ' '
sub eax, r13d
mov [r15+4], eax
mov eax, [r15]
neg r13d
mov ecx, r13d
shr eax, cl
add r14d, eax
jmp short loc_82DA7
loc_82D90:
mov [r15+4], ecx
shr r14d, cl
mov eax, [r12+1Ch]
lea rcx, mask_0
and r14d, [rcx+rax*4]
loc_82DA7:
mov r13d, r14d
lea rax, [rdx+r13]
cmp rax, rbx
jbe short loc_82DCA
mov dword ptr [r15+28h], 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82DCA:
mov r14, r13
neg r14
cmp rax, rbx
jz short loc_82DE4
lea rcx, [rbx+r14]
mov rdi, r12
mov rsi, r15
call decode_bytes_0
loc_82DE4:
add rbx, r14
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r13
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
|
_BYTE * uf_endspace_selected_0(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
long long v5; // r12
unsigned int v6; // eax
unsigned int v7; // r14d
unsigned int v8; // eax
_BYTE *v9; // r14
_BYTE *result; // rax
unsigned int v11; // r13d
unsigned int v12; // ecx
int v13; // r13d
int v14; // r14d
_BYTE *v15; // r12
unsigned int v16; // r14d
v5 = a1;
v6 = a2[1];
if ( v6 )
{
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( !_bittest((const int *)&v7, v8) )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
else
{
v9 = a3;
fill_buffer_0((long long)a2);
a3 = v9;
a2[1] = 31;
v7 = *a2;
if ( (*a2 & 0x80000000) == 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
v8 = 31;
}
v11 = *(_DWORD *)(a1 + 28);
v12 = v8 - v11;
if ( v8 >= v11 )
{
a2[1] = v12;
v16 = mask_0[*(unsigned int *)(a1 + 28)] & (v7 >> v12);
}
else
{
v13 = v11 - v8;
v14 = (mask_0[v8] & v7) << v13;
v15 = a3;
fill_buffer_0((long long)a2);
a3 = v15;
v5 = a1;
a2[1] = 32 - v13;
v16 = (*a2 >> -(char)v13) + v14;
}
result = &a3[v16];
if ( result <= a4 )
{
if ( result != a4 )
decode_bytes_0(v5, (long long)a2, a3, &a4[-v16]);
return (_BYTE *)memset(&a4[-v16], 32LL, v16);
}
else
{
a2[10] = 1;
}
return result;
}
|
uf_endspace_selected:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RSI
MOV R12,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00182cfd
MOV R14D,dword ptr [R15]
DEC EAX
MOV dword ptr [R15 + 0x4],EAX
BT R14D,EAX
JC 0x00182d3c
JMP 0x00182d1b
LAB_00182cfd:
MOV RDI,R15
MOV R14,RDX
CALL 0x00181f1d
MOV RDX,R14
MOV dword ptr [R15 + 0x4],0x1f
MOV R14D,dword ptr [R15]
TEST R14D,R14D
JS 0x00182d37
LAB_00182d1b:
MOV RDI,R12
MOV RSI,R15
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0018280e
LAB_00182d37:
MOV EAX,0x1f
LAB_00182d3c:
MOV R13D,dword ptr [R12 + 0x1c]
MOV ECX,EAX
SUB ECX,R13D
JNC 0x00182d90
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1e18f0]
AND R14D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R14D,CL
MOV RDI,R15
MOV qword ptr [RBP + -0x30],R12
MOV R12,RDX
CALL 0x00181f1d
MOV RDX,R12
MOV R12,qword ptr [RBP + -0x30]
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R15 + 0x4],EAX
MOV EAX,dword ptr [R15]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R14D,EAX
JMP 0x00182da7
LAB_00182d90:
MOV dword ptr [R15 + 0x4],ECX
SHR R14D,CL
MOV EAX,dword ptr [R12 + 0x1c]
LEA RCX,[0x1e18f0]
AND R14D,dword ptr [RCX + RAX*0x4]
LAB_00182da7:
MOV R13D,R14D
LEA RAX,[RDX + R13*0x1]
CMP RAX,RBX
JBE 0x00182dca
MOV dword ptr [R15 + 0x28],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182dca:
MOV R14,R13
NEG R14
CMP RAX,RBX
JZ 0x00182de4
LEA RCX,[RBX + R14*0x1]
MOV RDI,R12
MOV RSI,R15
CALL 0x0018280e
LAB_00182de4:
ADD RBX,R14
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R13
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292c0
|
void uf_endspace_selected(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
ulong __n;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
if ((int)uVar5 < 0) {
uVar3 = 0x1f;
goto LAB_00182d3c;
}
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) != 0) {
LAB_00182d3c:
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
__n = (ulong)uVar5;
if (param_3 + __n <= param_4) {
if (param_3 + __n != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 + -__n);
}
memset((void *)(param_4 + -__n),0x20,__n);
return;
}
param_2[10] = 1;
return;
}
}
decode_bytes(param_1,param_2,param_3,param_4);
return;
}
|
|
59,422
|
cli::option::~option()
|
msxemulator/build_O3/_deps/picotool-src/cli.h
|
explicit option(string _long_opt) : option(0, std::move(_long_opt)) {}
|
O3
|
c
|
cli::option::~option():
pushq %rbx
movq %rdi, %rbx
leaq 0x9425b(%rip), %rax # 0xdffe0
movq %rax, (%rdi)
movq 0xd8(%rdi), %rdi
leaq 0xe8(%rbx), %rax
cmpq %rax, %rdi
je 0x4bda6
movq (%rax), %rsi
incq %rsi
callq 0xf470
movq 0xb8(%rbx), %rdi
leaq 0xc8(%rbx), %rax
cmpq %rax, %rdi
je 0x4bdc4
movq (%rax), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rdi
callq 0x5872e
movl $0xf8, %esi
movq %rbx, %rdi
popq %rbx
jmp 0xf470
|
_ZN3cli6optionD0Ev:
push rbx
mov rbx, rdi
lea rax, off_DFFE0
mov [rdi], rax
mov rdi, [rdi+0D8h]; void *
lea rax, [rbx+0E8h]
cmp rdi, rax
jz short loc_4BDA6
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4BDA6:
mov rdi, [rbx+0B8h]; void *
lea rax, [rbx+0C8h]
cmp rdi, rax
jz short loc_4BDC4
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4BDC4:
mov rdi, rbx; this
call _ZN3cli9matchableD2Ev; cli::matchable::~matchable()
mov esi, 0F8h; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
|
void cli::option::~option(cli::option *this)
{
char *v2; // rdi
char *v3; // rdi
*(_QWORD *)this = off_DFFE0;
v2 = (char *)*((_QWORD *)this + 27);
if ( v2 != (char *)this + 232 )
operator delete(v2, *((_QWORD *)this + 29) + 1LL);
v3 = (char *)*((_QWORD *)this + 23);
if ( v3 != (char *)this + 200 )
operator delete(v3, *((_QWORD *)this + 25) + 1LL);
cli::matchable::~matchable(this);
operator delete(this, 0xF8uLL);
}
|
~option:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1dffe0]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0xd8]
LEA RAX,[RBX + 0xe8]
CMP RDI,RAX
JZ 0x0014bda6
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0010f470
LAB_0014bda6:
MOV RDI,qword ptr [RBX + 0xb8]
LEA RAX,[RBX + 0xc8]
CMP RDI,RAX
JZ 0x0014bdc4
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0010f470
LAB_0014bdc4:
MOV RDI,RBX
CALL 0x0015872e
MOV ESI,0xf8
MOV RDI,RBX
POP RBX
JMP 0x0010f470
|
/* cli::option::~option() */
void __thiscall cli::option::~option(option *this)
{
*(int ***)this = &PTR__option_001dffe0;
if (*(option **)(this + 0xd8) != this + 0xe8) {
operator_delete(*(option **)(this + 0xd8),*(long *)(this + 0xe8) + 1);
}
if (*(option **)(this + 0xb8) != this + 200) {
operator_delete(*(option **)(this + 0xb8),*(long *)(this + 200) + 1);
}
matchable::~matchable((matchable *)this);
operator_delete(this,0xf8);
return;
}
|
|
59,423
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/./minja.hpp
|
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
}
|
O0
|
cpp
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movq 0x78(%rsp), %rsi
callq 0xfa350
movq 0x30(%rsp), %rdi
leaq 0x14cd62(%rip), %rax # 0x2532e8
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x20, %rdi
movq %rdi, 0x18(%rsp)
movq 0x70(%rsp), %rsi
callq 0xd5e60
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq %rdi, 0x20(%rsp)
movq 0x68(%rsp), %rsi
callq 0xd82b0
movq 0x30(%rsp), %rdi
addq $0x48, %rdi
movq %rdi, 0x28(%rsp)
movq 0x60(%rsp), %rsi
callq 0xf76a0
movq 0x30(%rsp), %rdi
addq $0x58, %rdi
movq %rdi, 0x38(%rsp)
callq 0x1066e0
movq $0x0, 0x58(%rsp)
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x30, %rdi
callq 0xd5030
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x1066c3
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq 0x58(%rsp), %rsi
callq 0x1066f0
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0x503b0
testb $0x1, %al
jne 0x1066ae
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
addq $0x58, %rdi
movq 0x50(%rsp), %rsi
callq 0x106710
movq %rax, 0x8(%rsp)
jmp 0x10665e
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
jmp 0x1066ae
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
callq 0x106740
movq 0x28(%rsp), %rdi
callq 0x6e6f0
movq 0x20(%rsp), %rdi
callq 0x79cc0
movq 0x18(%rsp), %rdi
callq 0x79d20
movq 0x30(%rsp), %rdi
callq 0xfa610
jmp 0x1066cb
jmp 0x1066b0
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x1065ec
addq $0x88, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nop
|
_ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_20], rcx
mov [rsp+88h+var_28], r8
mov rdi, [rsp+88h+var_8]; this
mov [rsp+88h+var_58], rdi
mov rsi, [rsp+88h+var_10]; minja::Location *
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
mov rdi, [rsp+88h+var_58]
lea rax, _ZTVN5minja9MacroNodeE; `vtable for'minja::MacroNode
add rax, 10h
mov [rdi], rax
add rdi, 20h ; ' '
mov [rsp+88h+var_70], rdi
mov rsi, [rsp+88h+var_18]
call _ZNSt10shared_ptrIN5minja12VariableExprEEC2EOS2_; std::shared_ptr<minja::VariableExpr>::shared_ptr(std::shared_ptr<minja::VariableExpr>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov [rsp+88h+var_68], rdi
mov rsi, [rsp+88h+var_20]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEC2EOSD_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector(std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 48h ; 'H'
mov [rsp+88h+var_60], rdi
mov rsi, [rsp+88h+var_28]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEEC2EOS2_; std::shared_ptr<minja::TemplateNode>::shared_ptr(std::shared_ptr<minja::TemplateNode>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 58h ; 'X'
mov [rsp+88h+var_50], rdi
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEC2Ev; std::unordered_map<std::string,ulong>::unordered_map(void)
mov [rsp+88h+var_30], 0
loc_1065EC:
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_78], rax
add rdi, 30h ; '0'
call _ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE4sizeEv; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size(void)
mov rcx, rax
mov rax, [rsp+88h+var_78]
cmp rax, rcx
jnb loc_1066C3
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov rsi, [rsp+88h+var_30]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEixEm; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[](ulong)
mov [rsp+88h+var_38], rax
mov rdi, [rsp+88h+var_38]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_1066AE
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_88], rax
add rdi, 58h ; 'X'
mov rsi, [rsp+88h+var_38]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEixERSB_; std::unordered_map<std::string,ulong>::operator[](std::string const&)
mov [rsp+88h+var_80], rax
jmp short $+2
loc_10665E:
mov rax, [rsp+88h+var_80]
mov rcx, [rsp+88h+var_88]
mov [rax], rcx
jmp short loc_1066AE
mov rdi, [rsp+arg_30]
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEED2Ev; std::unordered_map<std::string,ulong>::~unordered_map()
mov rdi, [rsp+arg_20]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEED2Ev; std::shared_ptr<minja::TemplateNode>::~shared_ptr()
mov rdi, [rsp+arg_18]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
mov rdi, [rsp+arg_10]
call _ZNSt10shared_ptrIN5minja12VariableExprEED2Ev; std::shared_ptr<minja::VariableExpr>::~shared_ptr()
mov rdi, [rsp+arg_28]; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
jmp short loc_1066CB
loc_1066AE:
jmp short $+2
loc_1066B0:
mov rax, [rsp+88h+var_30]
add rax, 1
mov [rsp+88h+var_30], rax
jmp loc_1065EC
loc_1066C3:
add rsp, 88h
retn
loc_1066CB:
mov rdi, [rsp+arg_40]
call __Unwind_Resume
|
unsigned long long minja::MacroNode::MacroNode(
minja::TemplateNode *a1,
const minja::Location *a2,
long long a3,
long long a4,
long long a5)
{
unsigned long long v5; // rcx
unsigned long long result; // rax
long long v7; // [rsp+50h] [rbp-38h]
unsigned long long i; // [rsp+58h] [rbp-30h]
minja::TemplateNode::TemplateNode(a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::MacroNode + 2;
std::shared_ptr<minja::VariableExpr>::shared_ptr((long long)a1 + 32, a3);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector((long long)a1 + 48, a4);
std::shared_ptr<minja::TemplateNode>::shared_ptr((long long)a1 + 72, a5);
std::unordered_map<std::string,unsigned long>::unordered_map();
for ( i = 0LL; ; ++i )
{
v5 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size((_QWORD *)a1 + 6);
result = i;
if ( i >= v5 )
break;
v7 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[]((char *)a1 + 48, i);
if ( (std::string::empty(v7) & 1) == 0 )
*(_QWORD *)std::unordered_map<std::string,unsigned long>::operator[]((char *)a1 + 88, v7) = i;
}
return result;
}
| |||
59,424
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/./minja.hpp
|
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
}
|
O2
|
cpp
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
callq 0x55f10
leaq 0x87c36(%rip), %rax # 0xe1478
movq %rax, (%rbx)
leaq 0x28(%rbx), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x28(%rbx)
movups (%r13), %xmm0
andq $0x0, 0x8(%r13)
movups %xmm0, 0x20(%rbx)
andq $0x0, (%r13)
movups (%r12), %xmm0
movups %xmm0, 0x30(%rbx)
movq 0x10(%r12), %rax
movq %rax, 0x40(%rbx)
xorps %xmm0, %xmm0
andq $0x0, 0x10(%r12)
movups %xmm0, (%r12)
andq $0x0, 0x50(%rbx)
movups (%r15), %xmm1
andq $0x0, 0x8(%r15)
movups %xmm1, 0x48(%rbx)
andq $0x0, (%r15)
leaq 0x30(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x50(%rbx), %r12
leaq 0x58(%rbx), %r13
leaq 0x88(%rbx), %rax
movq %rax, 0x58(%rbx)
movq $0x1, 0x60(%rbx)
movups %xmm0, 0x68(%rbx)
movl $0x3f800000, 0x78(%rbx) # imm = 0x3F800000
movups %xmm0, 0x80(%rbx)
xorl %ebp, %ebp
pushq $0x30
popq %r14
xorl %r15d, %r15d
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rax
subq %rsi, %rax
cqto
idivq %r14
cmpq %rax, %r15
jae 0x5990f
cmpq $0x0, 0x8(%rsi,%rbp)
je 0x59906
addq %rbp, %rsi
movq %r13, %rdi
callq 0x59b04
movq %r15, (%rax)
incq %r15
addq $0x30, %rbp
jmp 0x598db
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
movq %r13, %rdi
callq 0x59f92
movq %r12, %rdi
callq 0x2eeb2
movq 0x8(%rsp), %rdi
callq 0x30168
movq 0x10(%rsp), %rdi
callq 0x2eeb2
movq %rbx, %rdi
callq 0x5ae9c
movq %rbp, %rdi
callq 0x20b90
nop
|
_ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, off_E1478
mov [rbx], rax
lea rax, [rbx+28h]
mov [rsp+48h+var_38], rax
and qword ptr [rbx+28h], 0
movups xmm0, xmmword ptr [r13+0]
and qword ptr [r13+8], 0
movups xmmword ptr [rbx+20h], xmm0
and qword ptr [r13+0], 0
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rbx+30h], xmm0
mov rax, [r12+10h]
mov [rbx+40h], rax
xorps xmm0, xmm0
and qword ptr [r12+10h], 0
movups xmmword ptr [r12], xmm0
and qword ptr [rbx+50h], 0
movups xmm1, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [rbx+48h], xmm1
and qword ptr [r15], 0
lea rax, [rbx+30h]
mov [rsp+48h+var_40], rax
lea r12, [rbx+50h]
lea r13, [rbx+58h]
lea rax, [rbx+88h]
mov [rbx+58h], rax
mov qword ptr [rbx+60h], 1
movups xmmword ptr [rbx+68h], xmm0
mov dword ptr [rbx+78h], 3F800000h
movups xmmword ptr [rbx+80h], xmm0
xor ebp, ebp
push 30h ; '0'
pop r14
xor r15d, r15d
loc_598DB:
mov rsi, [rbx+30h]
mov rax, [rbx+38h]
sub rax, rsi
cqo
idiv r14
cmp r15, rax
jnb short loc_5990F
cmp qword ptr [rsi+rbp+8], 0
jz short loc_59906
add rsi, rbp
mov rdi, r13
call _ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_mESaIS9_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixERS8_; std::__detail::_Map_base<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](std::string const&)
mov [rax], r15
loc_59906:
inc r15
add rbp, 30h ; '0'
jmp short loc_598DB
loc_5990F:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbp, rax
mov rdi, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
mov rdi, r12
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [rsp+arg_0]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
mov rdi, [rsp+arg_8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
mov rdi, rbp
call __Unwind_Resume
|
unsigned long long minja::MacroNode::MacroNode(long long a1, _QWORD *a2, __int128 *a3, long long a4, __int128 *a5)
{
int v8; // ecx
int v9; // r8d
int v10; // r9d
__int128 v11; // xmm0
__int128 v12; // xmm1
long long v13; // rbp
unsigned long long i; // r15
long long v15; // rsi
unsigned long long result; // rax
char v17; // [rsp+0h] [rbp-48h]
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
*(_QWORD *)a1 = &off_E1478;
*(_QWORD *)(a1 + 40) = 0LL;
v11 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v11;
*(_QWORD *)a3 = 0LL;
*(_OWORD *)(a1 + 48) = *(_OWORD *)a4;
*(_QWORD *)(a1 + 64) = *(_QWORD *)(a4 + 16);
*(_QWORD *)(a4 + 16) = 0LL;
*(_OWORD *)a4 = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
v12 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v12;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 88) = a1 + 136;
*(_QWORD *)(a1 + 96) = 1LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_DWORD *)(a1 + 120) = 1065353216;
*(_OWORD *)(a1 + 128) = 0LL;
v13 = 0LL;
for ( i = 0LL; ; ++i )
{
v15 = *(_QWORD *)(a1 + 48);
result = (*(_QWORD *)(a1 + 56) - v15) / 48;
if ( i >= result )
break;
if ( *(_QWORD *)(v15 + v13 + 8) )
*(_QWORD *)std::__detail::_Map_base<std::string,std::pair<std::string const,unsigned long>,std::allocator<std::pair<std::string const,unsigned long>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](
(int)a1 + 88,
(int)v13 + (int)v15,
(*(_QWORD *)(a1 + 56) - v15) % 48,
v8,
v9,
v10,
v17) = i;
v13 += 48LL;
}
return result;
}
|
MacroNode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
CALL 0x00155f10
LEA RAX,[0x1e1478]
MOV qword ptr [RBX],RAX
LEA RAX,[RBX + 0x28]
MOV qword ptr [RSP + 0x10],RAX
AND qword ptr [RBX + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R13]
AND qword ptr [R13 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
AND qword ptr [R13],0x0
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV RAX,qword ptr [R12 + 0x10]
MOV qword ptr [RBX + 0x40],RAX
XORPS XMM0,XMM0
AND qword ptr [R12 + 0x10],0x0
MOVUPS xmmword ptr [R12],XMM0
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM1,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM1
AND qword ptr [R15],0x0
LEA RAX,[RBX + 0x30]
MOV qword ptr [RSP + 0x8],RAX
LEA R12,[RBX + 0x50]
LEA R13,[RBX + 0x58]
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x58],RAX
MOV qword ptr [RBX + 0x60],0x1
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV dword ptr [RBX + 0x78],0x3f800000
MOVUPS xmmword ptr [RBX + 0x80],XMM0
XOR EBP,EBP
PUSH 0x30
POP R14
XOR R15D,R15D
LAB_001598db:
MOV RSI,qword ptr [RBX + 0x30]
MOV RAX,qword ptr [RBX + 0x38]
SUB RAX,RSI
CQO
IDIV R14
CMP R15,RAX
JNC 0x0015990f
CMP qword ptr [RSI + RBP*0x1 + 0x8],0x0
JZ 0x00159906
ADD RSI,RBP
LAB_001598fb:
MOV RDI,R13
CALL 0x00159b04
LAB_00159903:
MOV qword ptr [RAX],R15
LAB_00159906:
INC R15
ADD RBP,0x30
JMP 0x001598db
LAB_0015990f:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&,
std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >,
std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::MacroNode::MacroNode
(MacroNode *this,Location *param_1,shared_ptr *param_2,vector *param_3,shared_ptr *param_4
)
{
long lVar1;
int8 uVar2;
ulong *puVar3;
long lVar4;
ulong uVar5;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_001e1478;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)(this + 0x40) = *(int8 *)(param_3 + 0x10);
*(int8 *)(param_3 + 0x10) = 0;
*(int8 *)param_3 = 0;
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x50) = 0;
uVar2 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)param_4 = 0;
*(MacroNode **)(this + 0x58) = this + 0x88;
*(int8 *)(this + 0x60) = 1;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int4 *)(this + 0x78) = 0x3f800000;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
lVar4 = 0;
for (uVar5 = 0; lVar1 = *(long *)(this + 0x30),
uVar5 < (ulong)((*(long *)(this + 0x38) - lVar1) / 0x30); uVar5 = uVar5 + 1) {
if (*(long *)(lVar1 + 8 + lVar4) != 0) {
/* try { // try from 001598fb to 00159902 has its CatchHandler @ 0015991e */
puVar3 = (ulong *)std::__detail::
_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>
::operator[]((_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>
*)(this + 0x58),(string *)(lVar1 + lVar4));
*puVar3 = uVar5;
}
lVar4 = lVar4 + 0x30;
}
return;
}
|
|
59,425
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/./minja.hpp
|
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
}
|
O3
|
cpp
|
minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
cmpq %r12, %r15
je 0x7842f
movq (%rsi), %rbx
movq 0x8(%rsi), %r14
cmpq %r14, 0x8(%r15)
jne 0x78426
movb $0x1, %bpl
testq %r14, %r14
je 0x78431
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x186e0
testl %eax, %eax
je 0x78431
addq $0x70, %r15
cmpq %r12, %r15
jne 0x78406
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZN5minja14ArgumentsValue9has_namedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
mov r15, [rdi+18h]
mov r12, [rdi+20h]
cmp r15, r12
jz short loc_7842F
mov rbx, [rsi]
mov r14, [rsi+8]
loc_78406:
cmp [r15+8], r14
jnz short loc_78426
mov bpl, 1
test r14, r14
jz short loc_78431
mov rdi, [r15]
mov rsi, rbx
mov rdx, r14
call _bcmp
test eax, eax
jz short loc_78431
loc_78426:
add r15, 70h ; 'p'
cmp r15, r12
jnz short loc_78406
loc_7842F:
xor ebp, ebp
loc_78431:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long minja::ArgumentsValue::has_named(long long a1, long long *a2)
{
unsigned int v2; // ebp
_QWORD *v3; // r15
_QWORD *v4; // r12
long long v5; // rbx
long long v6; // r14
v3 = *(_QWORD **)(a1 + 24);
v4 = *(_QWORD **)(a1 + 32);
if ( v3 == v4 )
{
return 0;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( 1 )
{
if ( v3[1] == v6 )
{
LOBYTE(v2) = 1;
if ( !v6 || !(unsigned int)bcmp(*v3, v5) )
break;
}
v3 += 14;
if ( v3 == v4 )
return 0;
}
}
return v2;
}
|
has_named:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,qword ptr [RDI + 0x18]
MOV R12,qword ptr [RDI + 0x20]
CMP R15,R12
JZ 0x0017842f
MOV RBX,qword ptr [RSI]
MOV R14,qword ptr [RSI + 0x8]
LAB_00178406:
CMP qword ptr [R15 + 0x8],R14
JNZ 0x00178426
MOV BPL,0x1
TEST R14,R14
JZ 0x00178431
MOV RDI,qword ptr [R15]
MOV RSI,RBX
MOV RDX,R14
CALL 0x001186e0
TEST EAX,EAX
JZ 0x00178431
LAB_00178426:
ADD R15,0x70
CMP R15,R12
JNZ 0x00178406
LAB_0017842f:
XOR EBP,EBP
LAB_00178431:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* minja::ArgumentsValue::has_named(std::__cxx11::string const&) */
ulong __thiscall minja::ArgumentsValue::has_named(ArgumentsValue *this,string *param_1)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
ulong unaff_RBP;
int8 *puVar3;
puVar3 = *(int8 **)(this + 0x18);
puVar1 = *(int8 **)(this + 0x20);
if (puVar3 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar3[1] == __n) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),1);
if (__n == 0) goto LAB_00178431;
iVar2 = bcmp((void *)*puVar3,__s2,__n);
if (iVar2 == 0) goto LAB_00178431;
}
puVar3 = puVar3 + 0xe;
} while (puVar3 != puVar1);
}
unaff_RBP = 0;
LAB_00178431:
return unaff_RBP & 0xffffffff;
}
|
|
59,426
|
thr_merge_locks
|
eloqsql/mysys/thr_lock.c
|
void thr_merge_locks(THR_LOCK_DATA **data, uint old_count, uint new_count)
{
THR_LOCK_DATA **pos, **end, **first_lock= 0;
DBUG_ENTER("thr_merge_lock");
/* Remove marks on old locks to make them sort before new ones */
for (pos=data, end= pos + old_count; pos < end ; pos++)
(*pos)->priority&= ~THR_LOCK_LATE_PRIV;
/* Mark new locks with LATE_PRIV to make them sort after org ones */
for (pos=data + old_count, end= pos + new_count; pos < end ; pos++)
(*pos)->priority|= THR_LOCK_LATE_PRIV;
sort_locks(data, old_count + new_count);
for (pos=data ; pos < end ; pos++)
{
/* Check if lock was unlocked before */
if (pos[0]->type == TL_UNLOCK || ! pos[0]->lock->fix_status)
{
DBUG_PRINT("info", ("lock skipped. unlocked: %d fix_status: %d",
pos[0]->type == TL_UNLOCK,
pos[0]->lock->fix_status == 0));
continue;
}
/*
If same table as previous table use pointer to previous status
information to ensure that all read/write tables shares same
state.
*/
if (first_lock && pos[0]->lock == first_lock[0]->lock)
(pos[0]->lock->fix_status)((*first_lock)->status_param,
(*pos)->status_param);
else
{
/* Different lock, use this as base for next lock */
first_lock= pos;
(pos[0]->lock->fix_status)((*first_lock)->status_param, 0);
}
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
thr_merge_locks:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x858cc
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x48(%rax), %ecx
andl $-0x2, %ecx
movl %ecx, 0x48(%rax)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0x858a4
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl -0x10(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x85918
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x48(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x48(%rax)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0x858f0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl -0x10(%rbp), %esi
callq 0x85060
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x859ee
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x40(%rax)
je 0x8595f
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xe0(%rax)
jne 0x85965
jmp 0x85961
jmp 0x85963
jmp 0x859dd
cmpq $0x0, -0x28(%rbp)
je 0x859b0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x18(%rcx), %rax
jne 0x859b0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xe0(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rdi
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rsi
callq *%rax
jmp 0x859db
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xe0(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
jmp 0x859dd
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0x8592f
jmp 0x859f0
jmp 0x859f2
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
thr_merge_locks:
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_28], 0
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
loc_858A4:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_858CC
mov rax, [rbp+var_18]
mov rax, [rax]
mov ecx, [rax+48h]
and ecx, 0FFFFFFFEh
mov [rax+48h], ecx
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp short loc_858A4
loc_858CC:
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_10]
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
loc_858F0:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_85918
mov rax, [rbp+var_18]
mov rax, [rax]
mov ecx, [rax+48h]
or ecx, 1
mov [rax+48h], ecx
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp short loc_858F0
loc_85918:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
add esi, [rbp+var_10]
call sort_locks
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
loc_8592F:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb loc_859EE
mov rax, [rbp+var_18]
mov rax, [rax]
cmp dword ptr [rax+40h], 0
jz short loc_8595F
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+18h]
cmp qword ptr [rax+0E0h], 0
jnz short loc_85965
loc_8595F:
jmp short $+2
loc_85961:
jmp short $+2
loc_85963:
jmp short loc_859DD
loc_85965:
cmp [rbp+var_28], 0
jz short loc_859B0
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+18h]
mov rcx, [rbp+var_28]
mov rcx, [rcx]
cmp rax, [rcx+18h]
jnz short loc_859B0
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+18h]
mov rax, [rax+0E0h]
mov rcx, [rbp+var_28]
mov rcx, [rcx]
mov rdi, [rcx+28h]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
mov rsi, [rcx+28h]
call rax
jmp short loc_859DB
loc_859B0:
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov rax, [rax+18h]
mov rax, [rax+0E0h]
mov rcx, [rbp+var_28]
mov rcx, [rcx]
mov rdi, [rcx+28h]
xor ecx, ecx
mov esi, ecx
call rax
loc_859DB:
jmp short $+2
loc_859DD:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp loc_8592F
loc_859EE:
jmp short $+2
loc_859F0:
jmp short $+2
loc_859F2:
add rsp, 30h
pop rbp
retn
|
_QWORD * thr_merge_locks(_QWORD *a1, int a2, int a3)
{
_QWORD *result; // rax
_QWORD *v4; // [rsp+8h] [rbp-28h]
_QWORD *v5; // [rsp+10h] [rbp-20h]
_QWORD *i; // [rsp+18h] [rbp-18h]
_QWORD *v7; // [rsp+18h] [rbp-18h]
_QWORD *j; // [rsp+18h] [rbp-18h]
v4 = 0LL;
for ( i = a1; i < &a1[a2]; ++i )
*(_DWORD *)(*i + 72LL) &= ~1u;
v7 = &a1[a2];
v5 = &v7[a3];
while ( v7 < v5 )
*(_DWORD *)(*v7++ + 72LL) |= 1u;
sort_locks(a1, a3 + a2);
for ( j = a1; ; ++j )
{
result = j;
if ( j >= v5 )
break;
if ( *(_DWORD *)(*j + 64LL) && *(_QWORD *)(*(_QWORD *)(*j + 24LL) + 224LL) )
{
if ( v4 && *(_QWORD *)(*j + 24LL) == *(_QWORD *)(*v4 + 24LL) )
{
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(*j + 24LL) + 224LL))(
*(_QWORD *)(*v4 + 40LL),
*(_QWORD *)(*j + 40LL));
}
else
{
v4 = j;
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(*j + 24LL) + 224LL))(*(_QWORD *)(*j + 40LL), 0LL);
}
}
}
return result;
}
|
thr_merge_locks:
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 + -0x28],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001858a4:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001858cc
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x48]
AND ECX,0xfffffffe
MOV dword ptr [RAX + 0x48],ECX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001858a4
LAB_001858cc:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x10]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001858f0:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00185918
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x48]
OR ECX,0x1
MOV dword ptr [RAX + 0x48],ECX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001858f0
LAB_00185918:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
ADD ESI,dword ptr [RBP + -0x10]
CALL 0x00185060
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
LAB_0018592f:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001859ee
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x40],0x0
JZ 0x0018595f
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xe0],0x0
JNZ 0x00185965
LAB_0018595f:
JMP 0x00185961
LAB_00185961:
JMP 0x00185963
LAB_00185963:
JMP 0x001859dd
LAB_00185965:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001859b0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x18]
JNZ 0x001859b0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xe0]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x28]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOV RSI,qword ptr [RCX + 0x28]
CALL RAX
JMP 0x001859db
LAB_001859b0:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xe0]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x28]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
LAB_001859db:
JMP 0x001859dd
LAB_001859dd:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0018592f
LAB_001859ee:
JMP 0x001859f0
LAB_001859f0:
JMP 0x001859f2
LAB_001859f2:
ADD RSP,0x30
POP RBP
RET
|
void thr_merge_locks(long *param_1,uint param_2,uint param_3)
{
long *plVar1;
long *local_30;
long *local_20;
local_30 = (long *)0x0;
for (local_20 = param_1; local_20 < param_1 + param_2; local_20 = local_20 + 1) {
*(uint *)(*local_20 + 0x48) = *(uint *)(*local_20 + 0x48) & 0xfffffffe;
}
local_20 = param_1 + param_2;
plVar1 = local_20 + param_3;
for (; local_20 < plVar1; local_20 = local_20 + 1) {
*(uint *)(*local_20 + 0x48) = *(uint *)(*local_20 + 0x48) | 1;
}
sort_locks(param_1,param_2 + param_3);
for (local_20 = param_1; local_20 < plVar1; local_20 = local_20 + 1) {
if ((*(int *)(*local_20 + 0x40) != 0) && (*(long *)(*(long *)(*local_20 + 0x18) + 0xe0) != 0)) {
if ((local_30 == (long *)0x0) || (*(long *)(*local_20 + 0x18) != *(long *)(*local_30 + 0x18)))
{
local_30 = local_20;
(**(code **)(*(long *)(*local_20 + 0x18) + 0xe0))(*(int8 *)(*local_20 + 0x28),0);
}
else {
(**(code **)(*(long *)(*local_20 + 0x18) + 0xe0))
(*(int8 *)(*local_30 + 0x28),*(int8 *)(*local_20 + 0x28));
}
}
}
return;
}
|
|
59,427
|
ESRGAN::get_num_tensors()
|
7CodeWizard[P]stablediffusion/esrgan.hpp
|
size_t get_num_tensors() {
size_t num_tensors = 12;
for (int i = 0; i < num_blocks; i++) {
num_tensors += body_blocks[i].get_num_tensors();
}
return num_tensors;
}
|
O0
|
cpp
|
ESRGAN::get_num_tensors():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0xc, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %eax
cmpl 0x6c(%rcx), %eax
jge 0xf09fb
movq 0x8(%rsp), %rdi
addq $0x98, %rdi
movslq 0x14(%rsp), %rax
imulq $0x110, %rax, %rax # imm = 0x110
addq %rax, %rdi
callq 0xf0cd0
cltq
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0xf09b4
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN6ESRGAN15get_num_tensorsEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov [rsp+28h+var_10], 0Ch
mov [rsp+28h+var_14], 0
loc_F09B4:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_14]
cmp eax, [rcx+6Ch]
jge short loc_F09FB
mov rdi, [rsp+28h+var_20]
add rdi, 98h
movsxd rax, [rsp+28h+var_14]
imul rax, 110h
add rdi, rax; this
call _ZN11EsrganBlock15get_num_tensorsEv; EsrganBlock::get_num_tensors(void)
cdqe
add rax, [rsp+28h+var_10]
mov [rsp+28h+var_10], rax
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp short loc_F09B4
loc_F09FB:
mov rax, [rsp+28h+var_10]
add rsp, 28h
retn
|
long long ESRGAN::get_num_tensors(ESRGAN *this)
{
int i; // [rsp+14h] [rbp-14h]
long long v3; // [rsp+18h] [rbp-10h]
v3 = 12LL;
for ( i = 0; i < *((_DWORD *)this + 27); ++i )
v3 += (int)EsrganBlock::get_num_tensors((ESRGAN *)((char *)this + 272 * i + 152));
return v3;
}
|
get_num_tensors:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x18],0xc
MOV dword ptr [RSP + 0x14],0x0
LAB_001f09b4:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + 0x6c]
JGE 0x001f09fb
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x98
MOVSXD RAX,dword ptr [RSP + 0x14]
IMUL RAX,RAX,0x110
ADD RDI,RAX
CALL 0x001f0cd0
CDQE
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x001f09b4
LAB_001f09fb:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x28
RET
|
/* ESRGAN::get_num_tensors() */
long __thiscall ESRGAN::get_num_tensors(ESRGAN *this)
{
int iVar1;
int local_14;
long local_10;
local_10 = 0xc;
for (local_14 = 0; local_14 < *(int *)(this + 0x6c); local_14 = local_14 + 1) {
iVar1 = EsrganBlock::get_num_tensors((EsrganBlock *)(this + (long)local_14 * 0x110 + 0x98));
local_10 = iVar1 + local_10;
}
return local_10;
}
|
|
59,428
|
ESRGAN::get_num_tensors()
|
7CodeWizard[P]stablediffusion/esrgan.hpp
|
size_t get_num_tensors() {
size_t num_tensors = 12;
for (int i = 0; i < num_blocks; i++) {
num_tensors += body_blocks[i].get_num_tensors();
}
return num_tensors;
}
|
O3
|
cpp
|
ESRGAN::get_num_tensors():
movslq 0x6c(%rdi), %rax
testq %rax, %rax
jle 0x7bb13
imulq $0x110, %rax, %rcx # imm = 0x110
movl $0xc, %eax
xorl %edx, %edx
xorl %esi, %esi
movl 0x1a0(%rdi,%rsi), %r8d
leal (%r8,%r8), %r9d
testl %r8d, %r8d
leal (%r9,%r9,4), %r8d
cmovlel %edx, %r8d
movslq %r8d, %r8
addq %r8, %rax
addq $0x110, %rsi # imm = 0x110
cmpq %rsi, %rcx
jne 0x7bae9
retq
movl $0xc, %eax
retq
nop
|
_ZN6ESRGAN15get_num_tensorsEv:
movsxd rax, dword ptr [rdi+6Ch]
test rax, rax
jle short loc_7BB13
imul rcx, rax, 110h
mov eax, 0Ch
xor edx, edx
xor esi, esi
loc_7BAE9:
mov r8d, [rdi+rsi+1A0h]
lea r9d, [r8+r8]
test r8d, r8d
lea r8d, [r9+r9*4]
cmovle r8d, edx
movsxd r8, r8d
add rax, r8
add rsi, 110h
cmp rcx, rsi
jnz short loc_7BAE9
retn
loc_7BB13:
mov eax, 0Ch
retn
|
long long ESRGAN::get_num_tensors(ESRGAN *this)
{
long long v1; // rax
long long v2; // rcx
long long result; // rax
long long v4; // rsi
int v5; // r8d
bool v6; // cc
int v7; // r8d
v1 = *((int *)this + 27);
if ( v1 <= 0 )
return 12LL;
v2 = 272 * v1;
result = 12LL;
v4 = 0LL;
do
{
v5 = *(_DWORD *)((char *)this + v4 + 416);
v6 = v5 <= 0;
v7 = 10 * v5;
if ( v6 )
v7 = 0;
result += v7;
v4 += 272LL;
}
while ( v2 != v4 );
return result;
}
| |||
59,429
|
google::protobuf::DynamicMessage::~DynamicMessage()
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/dynamic_message.cc
|
DynamicMessage::~DynamicMessage() {
const Descriptor* descriptor = type_info_->type;
_internal_metadata_.Delete<UnknownFieldSet>();
if (type_info_->extensions_offset != -1) {
reinterpret_cast<ExtensionSet*>(MutableExtensionsRaw())->~ExtensionSet();
}
// We need to manually run the destructors for repeated fields and strings,
// just as we ran their constructors in the DynamicMessage constructor.
// We also need to manually delete oneof fields if it is set and is string
// or message.
// Additionally, if any singular embedded messages have been allocated, we
// need to delete them, UNLESS we are the prototype message of this type,
// in which case any embedded messages are other prototypes and shouldn't
// be touched.
for (int i = 0; i < descriptor->field_count(); i++) {
const FieldDescriptor* field = descriptor->field(i);
if (InRealOneof(field)) {
void* field_ptr = MutableOneofCaseRaw(field->containing_oneof()->index());
if (*(reinterpret_cast<const int32_t*>(field_ptr)) == field->number()) {
field_ptr = MutableOneofFieldRaw(field);
if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) {
switch (field->options().ctype()) {
default:
case FieldOptions::STRING: {
reinterpret_cast<ArenaStringPtr*>(field_ptr)->Destroy();
break;
}
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
delete *reinterpret_cast<Message**>(field_ptr);
}
}
continue;
}
void* field_ptr = MutableRaw(i);
if (field->is_repeated()) {
switch (field->cpp_type()) {
#define HANDLE_TYPE(UPPERCASE, LOWERCASE) \
case FieldDescriptor::CPPTYPE_##UPPERCASE: \
reinterpret_cast<RepeatedField<LOWERCASE>*>(field_ptr) \
->~RepeatedField<LOWERCASE>(); \
break
HANDLE_TYPE(INT32, int32_t);
HANDLE_TYPE(INT64, int64_t);
HANDLE_TYPE(UINT32, uint32_t);
HANDLE_TYPE(UINT64, uint64_t);
HANDLE_TYPE(DOUBLE, double);
HANDLE_TYPE(FLOAT, float);
HANDLE_TYPE(BOOL, bool);
HANDLE_TYPE(ENUM, int);
#undef HANDLE_TYPE
case FieldDescriptor::CPPTYPE_STRING:
switch (field->options().ctype()) {
default: // TODO(kenton): Support other string reps.
case FieldOptions::STRING:
reinterpret_cast<RepeatedPtrField<std::string>*>(field_ptr)
->~RepeatedPtrField<std::string>();
break;
}
break;
case FieldDescriptor::CPPTYPE_MESSAGE:
if (IsMapFieldInApi(field)) {
reinterpret_cast<DynamicMapField*>(field_ptr)->~DynamicMapField();
} else {
reinterpret_cast<RepeatedPtrField<Message>*>(field_ptr)
->~RepeatedPtrField<Message>();
}
break;
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) {
switch (field->options().ctype()) {
default: // TODO(kenton): Support other string reps.
case FieldOptions::STRING: {
reinterpret_cast<ArenaStringPtr*>(field_ptr)->Destroy();
break;
}
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
if (!is_prototype()) {
Message* message = *reinterpret_cast<Message**>(field_ptr);
if (message != nullptr) {
delete message;
}
}
}
}
}
|
O0
|
cpp
|
google::protobuf::DynamicMessage::~DynamicMessage():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x2ff0f0
movq 0x8(%rsp), %rdi
callq 0x300530
addq $0x18, %rsp
retq
nopw (%rax,%rax)
|
_ZN6google8protobuf14DynamicMessageD0Ev:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]; this
mov [rsp+18h+var_10], rdi
call _ZN6google8protobuf14DynamicMessageD2Ev; google::protobuf::DynamicMessage::~DynamicMessage()
mov rdi, [rsp+18h+var_10]; void *
call _ZN6google8protobuf14DynamicMessagedlEPv; google::protobuf::DynamicMessage::operator delete(void *)
add rsp, 18h
retn
|
void google::protobuf::DynamicMessage::~DynamicMessage(google::protobuf::DynamicMessage *this)
{
google::protobuf::DynamicMessage::~DynamicMessage(this);
google::protobuf::DynamicMessage::operator delete(this);
}
|
empty:
MOV qword ptr [RSP + -0x8],RDI
MOV RAX,qword ptr [RSP + -0x8]
CMP dword ptr [RAX],0x0
SETZ AL
AND AL,0x1
RET
|
/* google::protobuf::RepeatedField<bool>::empty() const */
bool __thiscall google::protobuf::RepeatedField<bool>::empty(RepeatedField<bool> *this)
{
return *(int *)this == 0;
}
|
|
59,430
|
google::protobuf::DynamicMessage::~DynamicMessage()
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/dynamic_message.cc
|
DynamicMessage::~DynamicMessage() {
const Descriptor* descriptor = type_info_->type;
_internal_metadata_.Delete<UnknownFieldSet>();
if (type_info_->extensions_offset != -1) {
reinterpret_cast<ExtensionSet*>(MutableExtensionsRaw())->~ExtensionSet();
}
// We need to manually run the destructors for repeated fields and strings,
// just as we ran their constructors in the DynamicMessage constructor.
// We also need to manually delete oneof fields if it is set and is string
// or message.
// Additionally, if any singular embedded messages have been allocated, we
// need to delete them, UNLESS we are the prototype message of this type,
// in which case any embedded messages are other prototypes and shouldn't
// be touched.
for (int i = 0; i < descriptor->field_count(); i++) {
const FieldDescriptor* field = descriptor->field(i);
if (InRealOneof(field)) {
void* field_ptr = MutableOneofCaseRaw(field->containing_oneof()->index());
if (*(reinterpret_cast<const int32_t*>(field_ptr)) == field->number()) {
field_ptr = MutableOneofFieldRaw(field);
if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) {
switch (field->options().ctype()) {
default:
case FieldOptions::STRING: {
reinterpret_cast<ArenaStringPtr*>(field_ptr)->Destroy();
break;
}
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
delete *reinterpret_cast<Message**>(field_ptr);
}
}
continue;
}
void* field_ptr = MutableRaw(i);
if (field->is_repeated()) {
switch (field->cpp_type()) {
#define HANDLE_TYPE(UPPERCASE, LOWERCASE) \
case FieldDescriptor::CPPTYPE_##UPPERCASE: \
reinterpret_cast<RepeatedField<LOWERCASE>*>(field_ptr) \
->~RepeatedField<LOWERCASE>(); \
break
HANDLE_TYPE(INT32, int32_t);
HANDLE_TYPE(INT64, int64_t);
HANDLE_TYPE(UINT32, uint32_t);
HANDLE_TYPE(UINT64, uint64_t);
HANDLE_TYPE(DOUBLE, double);
HANDLE_TYPE(FLOAT, float);
HANDLE_TYPE(BOOL, bool);
HANDLE_TYPE(ENUM, int);
#undef HANDLE_TYPE
case FieldDescriptor::CPPTYPE_STRING:
switch (field->options().ctype()) {
default: // TODO(kenton): Support other string reps.
case FieldOptions::STRING:
reinterpret_cast<RepeatedPtrField<std::string>*>(field_ptr)
->~RepeatedPtrField<std::string>();
break;
}
break;
case FieldDescriptor::CPPTYPE_MESSAGE:
if (IsMapFieldInApi(field)) {
reinterpret_cast<DynamicMapField*>(field_ptr)->~DynamicMapField();
} else {
reinterpret_cast<RepeatedPtrField<Message>*>(field_ptr)
->~RepeatedPtrField<Message>();
}
break;
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) {
switch (field->options().ctype()) {
default: // TODO(kenton): Support other string reps.
case FieldOptions::STRING: {
reinterpret_cast<ArenaStringPtr*>(field_ptr)->Destroy();
break;
}
}
} else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
if (!is_prototype()) {
Message* message = *reinterpret_cast<Message**>(field_ptr);
if (message != nullptr) {
delete message;
}
}
}
}
}
|
O3
|
cpp
|
google::protobuf::DynamicMessage::~DynamicMessage():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x11fbba(%rip), %rax # 0x27d828
movq %rax, (%rdi)
movq 0x10(%rdi), %rax
movq 0x20(%rax), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x8(%rdi), %r14
testb $0x1, 0x8(%rdi)
je 0x15dc94
movq %r14, %rdi
callq 0x652fa
movq 0x10(%rbx), %rax
movq %r14, 0x20(%rsp)
movslq 0xc(%rax), %rdi
cmpq $-0x1, %rdi
je 0x15dcab
addq %rbx, %rdi
callq 0x1907c6
movq 0x18(%rsp), %rcx
cmpl $0x0, 0x4(%rcx)
jle 0x15df7b
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x28(%rcx), %r14
leaq (%r14,%r15), %rbp
movb 0x1(%r14,%r15), %al
movq 0x28(%r14,%r15), %rcx
testb $0x10, %al
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
je 0x15dd5e
movq 0x10(%rbx), %rcx
movq 0x28(%rcx), %rcx
movslq (%rcx,%r12,4), %r13
addq %rbx, %r13
notb %al
movq 0x18(%r14,%r15), %rdi
testb $0x60, %al
jne 0x15de46
testq %rdi, %rdi
je 0x15dd26
leaq -0x240d9(%rip), %rax # 0x139c34
movq %rax, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2f19d
movzbl 0x2(%r14,%r15), %eax
leaq 0x91eed(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %eax
decl %eax
cmpl $0x9, %eax
ja 0x15df62
leaq 0x95320(%rip), %rcx # 0x1f3068
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r13, %rdi
callq 0x1010ea
jmp 0x15df62
cmpl $0x1, 0x4(%rcx)
jne 0x15dd72
movq 0x20(%rcx), %rdx
testb $0x2, 0x1(%rdx)
jne 0x15dce3
movq 0x10(%rcx), %rax
subq 0x30(%rax), %rcx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
movq 0x10(%rbx), %rcx
leal (,%rax,4), %edx
addl 0x8(%rcx), %edx
movslq %edx, %rdx
movl (%rbx,%rdx), %edx
cmpl 0x4(%r14,%r15), %edx
jne 0x15df62
movq 0x20(%rcx), %rdx
movq 0x28(%rcx), %rcx
movslq 0x4(%rdx), %rdx
cltq
addq %rdx, %rax
movslq (%rcx,%rax,4), %r13
movq 0x18(%r14,%r15), %rdi
testq %rdi, %rdi
je 0x15dde2
leaq -0x24195(%rip), %rax # 0x139c34
movq %rax, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2f19d
addq %rbx, %r13
movzbl 0x2(%r14,%r15), %eax
leaq 0x91e2e(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %eax
cmpl $0x9, %eax
je 0x15de80
movq 0x18(%r14,%r15), %rdi
testq %rdi, %rdi
je 0x15de38
leaq -0x241db(%rip), %rax # 0x139c34
movq %rax, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2f19d
movzbl 0x2(%r14,%r15), %eax
leaq 0x91deb(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %eax
cmpl $0xa, %eax
je 0x15dee8
jmp 0x15df62
testq %rdi, %rdi
je 0x15de6b
leaq -0x2421e(%rip), %rax # 0x139c34
movq %rax, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2f19d
movzbl 0x2(%r14,%r15), %eax
leaq 0x91da8(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %eax
cmpl $0x9, %eax
jne 0x15de8d
movq %r13, %rdi
callq 0xf9b64
jmp 0x15df62
movq 0x18(%r14,%r15), %rdi
testq %rdi, %rdi
je 0x15dec7
leaq -0x2426a(%rip), %rax # 0x139c34
movq %rax, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2f19d
movzbl 0x2(%r14,%r15), %eax
leaq 0x91d5c(%rip), %rcx # 0x1efc20
movl (%rcx,%rax,4), %eax
cmpl $0xa, %eax
jne 0x15df62
movq 0x10(%rbx), %rax
movq 0x40(%rax), %rax
cmpq %rbx, %rax
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
jne 0x15df62
movq (%r13), %rdi
testq %rdi, %rdi
je 0x15df62
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x15df62
movq %r13, %rdi
callq 0x103258
jmp 0x15df62
movq %rbp, %rdi
callq 0x15d57d
testb %al, %al
je 0x15df5a
movq (%r13), %rax
movq %r13, %rdi
callq *0xb0(%rax)
jmp 0x15df62
movq %r13, %rdi
callq 0x10276a
jmp 0x15df62
movq %r13, %rdi
callq 0x101c2a
jmp 0x15df62
movq %r13, %rdi
callq 0x10074a
jmp 0x15df62
movq %r13, %rdi
callq 0x1048c6
jmp 0x15df62
movq %r13, %rdi
callq 0x103d46
jmp 0x15df62
movq %r13, %rdi
callq 0x105380
jmp 0x15df62
movq %r13, %rdi
callq 0x15e322
incq %r12
movq 0x18(%rsp), %rcx
movslq 0x4(%rcx), %rax
addq $0x48, %r15
cmpq %rax, %r12
jl 0x15dcc0
leaq 0x11da7e(%rip), %rax # 0x27ba00
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x20(%rsp), %rdi
callq 0x65144
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15dfa4
movq %rax, %rdi
callq 0x2585f
|
_ZN6google8protobuf14DynamicMessageD2Ev:
push rbp; Alternative name is 'google::protobuf::DynamicMessage::~DynamicMessage()'
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
lea rax, off_27D828
mov [rdi], rax
mov rax, [rdi+10h]
mov rcx, [rax+20h]
mov [rsp+58h+var_40], rcx
lea r14, [rdi+8]
test byte ptr [rdi+8], 1
jz short loc_15DC94
mov rdi, r14
call _ZN6google8protobuf8internal16InternalMetadata21DeleteOutOfLineHelperINS0_15UnknownFieldSetEEEPNS0_5ArenaEv; google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>(void)
mov rax, [rbx+10h]
loc_15DC94:
mov [rsp+58h+var_38], r14
movsxd rdi, dword ptr [rax+0Ch]
cmp rdi, 0FFFFFFFFFFFFFFFFh
jz short loc_15DCAB
add rdi, rbx; this
call _ZN6google8protobuf8internal12ExtensionSetD2Ev; google::protobuf::internal::ExtensionSet::~ExtensionSet()
loc_15DCAB:
mov rcx, [rsp+58h+var_40]
cmp dword ptr [rcx+4], 0
jle loc_15DF7B
xor r15d, r15d
xor r12d, r12d
loc_15DCC0:
mov r14, [rcx+28h]
lea rbp, [r14+r15]
mov al, [r14+r15+1]
mov rcx, [r14+r15+28h]
test al, 10h
setz dl
test rcx, rcx
setz sil
or sil, dl
jz short loc_15DD5E
loc_15DCE3:
mov rcx, [rbx+10h]
mov rcx, [rcx+28h]
movsxd r13, dword ptr [rcx+r12*4]
add r13, rbx
not al
mov rdi, [r14+r15+18h]
test al, 60h
jnz loc_15DE46
test rdi, rdi
jz short loc_15DD26
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_50], rbp
lea rsi, [rsp+58h+var_48]; google::protobuf::FieldDescriptor *
lea rdx, [rsp+58h+var_50]
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_15DD26:
movzx eax, byte ptr [r14+r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [rcx+rax*4]
dec eax; switch 10 cases
cmp eax, 9
ja def_15DD4F; jumptable 000000000015DD4F default case
lea rcx, jpt_15DD4F
movsxd rax, ds:(jpt_15DD4F - 1F3068h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_15DD51:
mov rdi, r13; jumptable 000000000015DD4F cases 1,8
call _ZN6google8protobuf13RepeatedFieldIiED2Ev; google::protobuf::RepeatedField<int>::~RepeatedField()
jmp def_15DD4F; jumptable 000000000015DD4F default case
loc_15DD5E:
cmp dword ptr [rcx+4], 1
jnz short loc_15DD72
mov rdx, [rcx+20h]
test byte ptr [rdx+1], 2
jnz loc_15DCE3
loc_15DD72:
mov rax, [rcx+10h]
sub rcx, [rax+30h]
shr rcx, 3
imul eax, ecx, 0CCCCCCCDh
mov rcx, [rbx+10h]
lea edx, ds:0[rax*4]
add edx, [rcx+8]
movsxd rdx, edx
mov edx, [rbx+rdx]
cmp edx, [r14+r15+4]
jnz def_15DD4F; jumptable 000000000015DD4F default case
mov rdx, [rcx+20h]
mov rcx, [rcx+28h]
movsxd rdx, dword ptr [rdx+4]
cdqe
add rax, rdx
movsxd r13, dword ptr [rcx+rax*4]
mov rdi, [r14+r15+18h]
test rdi, rdi
jz short loc_15DDE2
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_50], rbp
lea rsi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_50]
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_15DDE2:
add r13, rbx
movzx eax, byte ptr [r14+r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [rcx+rax*4]
cmp eax, 9
jz loc_15DE80
mov rdi, [r14+r15+18h]
test rdi, rdi
jz short loc_15DE38
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_50], rbp
lea rsi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_50]
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
movzx eax, byte ptr [r14+r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [rcx+rax*4]
loc_15DE38:
cmp eax, 0Ah
jz loc_15DEE8
jmp def_15DD4F; jumptable 000000000015DD4F default case
loc_15DE46:
test rdi, rdi
jz short loc_15DE6B
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_50], rbp
lea rsi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_50]
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_15DE6B:
movzx eax, byte ptr [r14+r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [rcx+rax*4]
cmp eax, 9
jnz short loc_15DE8D
loc_15DE80:
mov rdi, r13; this
call _ZN6google8protobuf8internal14ArenaStringPtr7DestroyEv; google::protobuf::internal::ArenaStringPtr::Destroy(void)
jmp def_15DD4F; jumptable 000000000015DD4F default case
loc_15DE8D:
mov rdi, [r14+r15+18h]
test rdi, rdi
jz short loc_15DEC7
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_50], rbp
lea rsi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_50]
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
movzx eax, byte ptr [r14+r15+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [rcx+rax*4]
loc_15DEC7:
cmp eax, 0Ah
jnz def_15DD4F; jumptable 000000000015DD4F default case
mov rax, [rbx+10h]
mov rax, [rax+40h]
cmp rax, rbx
setz cl
test rax, rax
setz al
or al, cl
jnz short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DEE8:
mov rdi, [r13+0]
test rdi, rdi
jz short def_15DD4F; jumptable 000000000015DD4F default case
mov rax, [rdi]
call qword ptr [rax+8]
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DEF9:
mov rdi, r13; jumptable 000000000015DD4F case 4
call _ZN6google8protobuf13RepeatedFieldImED2Ev; google::protobuf::RepeatedField<ulong>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF03:
mov rdi, rbp; jumptable 000000000015DD4F case 10
call _ZN6google8protobuf12_GLOBAL__N_115IsMapFieldInApiEPKNS0_15FieldDescriptorE; google::protobuf::`anonymous namespace'::IsMapFieldInApi(google::protobuf::FieldDescriptor const*)
test al, al
jz short loc_15DF5A
mov rax, [r13+0]
mov rdi, r13
call qword ptr [rax+0B0h]
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF1E:
mov rdi, r13; jumptable 000000000015DD4F case 2
call _ZN6google8protobuf13RepeatedFieldIlED2Ev; google::protobuf::RepeatedField<long>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF28:
mov rdi, r13; jumptable 000000000015DD4F case 3
call _ZN6google8protobuf13RepeatedFieldIjED2Ev; google::protobuf::RepeatedField<uint>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF32:
mov rdi, r13; jumptable 000000000015DD4F case 7
call _ZN6google8protobuf13RepeatedFieldIbED2Ev; google::protobuf::RepeatedField<bool>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF3C:
mov rdi, r13; jumptable 000000000015DD4F case 5
call _ZN6google8protobuf13RepeatedFieldIdED2Ev; google::protobuf::RepeatedField<double>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF46:
mov rdi, r13; jumptable 000000000015DD4F case 6
call _ZN6google8protobuf13RepeatedFieldIfED2Ev; google::protobuf::RepeatedField<float>::~RepeatedField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF50:
mov rdi, r13; jumptable 000000000015DD4F case 9
call _ZN6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; google::protobuf::RepeatedPtrField<std::string>::~RepeatedPtrField()
jmp short def_15DD4F; jumptable 000000000015DD4F default case
loc_15DF5A:
mov rdi, r13
call _ZN6google8protobuf16RepeatedPtrFieldINS0_7MessageEED2Ev; google::protobuf::RepeatedPtrField<google::protobuf::Message>::~RepeatedPtrField()
def_15DD4F:
inc r12; jumptable 000000000015DD4F default case
mov rcx, [rsp+58h+var_40]
movsxd rax, dword ptr [rcx+4]
add r15, 48h ; 'H'
cmp r12, rax
jl loc_15DCC0
loc_15DF7B:
lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+58h+var_38]; this
call _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata()
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_15DFA4:
mov rdi, rax
call __clang_call_terminate
|
void google::protobuf::DynamicMessage::~DynamicMessage(
google::protobuf::DynamicMessage *this,
const google::protobuf::FieldDescriptor *a2)
{
long long v3; // rax
long long v4; // rdi
long long v5; // rcx
long long v6; // r15
long long v7; // r12
long long v8; // r14
char v9; // al
long long v10; // rcx
google::protobuf::internal::ArenaStringPtr *v11; // r13
long long v12; // rdi
int v13; // eax
long long v14; // rcx
long long v15; // r13
long long v16; // rdi
int v17; // eax
long long v18; // rdi
int v19; // eax
long long v20; // rdi
long long v21; // [rsp+8h] [rbp-50h] BYREF
long long ( *v22)(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *); // [rsp+10h] [rbp-48h] BYREF
long long v23; // [rsp+18h] [rbp-40h]
google::protobuf::internal::InternalMetadata *v24; // [rsp+20h] [rbp-38h]
*(_QWORD *)this = off_27D828;
v3 = *((_QWORD *)this + 2);
v23 = *(_QWORD *)(v3 + 32);
if ( (*((_BYTE *)this + 8) & 1) != 0 )
{
google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>((long long *)this + 1);
v3 = *((_QWORD *)this + 2);
}
v24 = (google::protobuf::DynamicMessage *)((char *)this + 8);
v4 = *(int *)(v3 + 12);
if ( v4 != -1 )
google::protobuf::internal::ExtensionSet::~ExtensionSet((google::protobuf::DynamicMessage *)((char *)this + v4));
v5 = v23;
if ( *(int *)(v23 + 4) > 0 )
{
v6 = 0LL;
v7 = 0LL;
while ( 1 )
{
v8 = *(_QWORD *)(v5 + 40);
v9 = *(_BYTE *)(v8 + v6 + 1);
v10 = *(_QWORD *)(v8 + v6 + 40);
LOBYTE(a2) = (v9 & 0x10) == 0 || v10 == 0;
if ( (_BYTE)a2 || *(_DWORD *)(v10 + 4) == 1 && (*(_BYTE *)(*(_QWORD *)(v10 + 32) + 1LL) & 2) != 0 )
break;
v13 = -858993459 * ((unsigned long long)(v10 - *(_QWORD *)(*(_QWORD *)(v10 + 16) + 48LL)) >> 3);
v14 = *((_QWORD *)this + 2);
if ( *(_DWORD *)((char *)this + 4 * v13 + *(_DWORD *)(v14 + 8)) == *(_DWORD *)(v8 + v6 + 4) )
{
v15 = *(int *)(*(_QWORD *)(v14 + 40) + 4 * (*(int *)(*(_QWORD *)(v14 + 32) + 4LL) + (long long)v13));
v16 = *(_QWORD *)(v8 + v6 + 24);
if ( v16 )
{
v22 = google::protobuf::FieldDescriptor::TypeOnceInit;
v21 = v8 + v6;
a2 = (const google::protobuf::FieldDescriptor *)&v22;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v16,
(long long)&v22,
(long long)&v21);
}
v11 = (google::protobuf::DynamicMessage *)((char *)this + v15);
v17 = google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*(unsigned __int8 *)(v8 + v6 + 2)];
if ( v17 != 9 )
{
v18 = *(_QWORD *)(v8 + v6 + 24);
if ( v18 )
{
v22 = google::protobuf::FieldDescriptor::TypeOnceInit;
v21 = v8 + v6;
a2 = (const google::protobuf::FieldDescriptor *)&v22;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v18,
(long long)&v22,
(long long)&v21);
v17 = google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*(unsigned __int8 *)(v8 + v6 + 2)];
}
if ( v17 != 10 )
goto LABEL_43;
goto LABEL_31;
}
LABEL_26:
google::protobuf::internal::ArenaStringPtr::Destroy(v11);
}
LABEL_43:
++v7;
v5 = v23;
v6 += 72LL;
if ( v7 >= *(int *)(v23 + 4) )
goto LABEL_44;
}
v11 = (google::protobuf::DynamicMessage *)((char *)this
+ *(int *)(*(_QWORD *)(*((_QWORD *)this + 2) + 40LL) + 4 * v7));
v12 = *(_QWORD *)(v8 + v6 + 24);
if ( (~v9 & 0x60) == 0 )
{
if ( v12 )
{
v22 = google::protobuf::FieldDescriptor::TypeOnceInit;
v21 = v8 + v6;
a2 = (const google::protobuf::FieldDescriptor *)&v22;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v12,
(long long)&v22,
(long long)&v21);
}
switch ( *(_BYTE *)(v8 + v6 + 2) )
{
case 1:
google::protobuf::RepeatedField<double>::~RepeatedField((long long)v11);
break;
case 2:
google::protobuf::RepeatedField<float>::~RepeatedField((long long)v11);
break;
case 3:
case 0x10:
case 0x12:
google::protobuf::RepeatedField<long>::~RepeatedField((long long)v11);
break;
case 4:
case 6:
google::protobuf::RepeatedField<unsigned long>::~RepeatedField((long long)v11);
break;
case 5:
case 0xE:
case 0xF:
case 0x11:
google::protobuf::RepeatedField<int>::~RepeatedField((long long)v11);
break;
case 7:
case 0xD:
google::protobuf::RepeatedField<unsigned int>::~RepeatedField((long long)v11);
break;
case 8:
google::protobuf::RepeatedField<bool>::~RepeatedField((long long)v11);
break;
case 9:
case 0xC:
google::protobuf::RepeatedPtrField<std::string>::~RepeatedPtrField();
break;
case 0xA:
case 0xB:
if ( google::protobuf::`anonymous namespace'::IsMapFieldInApi(
(google::protobuf::_anonymous_namespace_ *)(v8 + v6),
a2) )
{
(*(void ( **)(google::protobuf::internal::ArenaStringPtr *))(*(_QWORD *)v11 + 176LL))(v11);
}
else
{
google::protobuf::RepeatedPtrField<google::protobuf::Message>::~RepeatedPtrField(v11);
}
break;
default:
goto LABEL_43;
}
goto LABEL_43;
}
if ( v12 )
{
v22 = google::protobuf::FieldDescriptor::TypeOnceInit;
v21 = v8 + v6;
a2 = (const google::protobuf::FieldDescriptor *)&v22;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v12,
(long long)&v22,
(long long)&v21);
}
v19 = google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*(unsigned __int8 *)(v8 + v6 + 2)];
if ( v19 != 9 )
{
v20 = *(_QWORD *)(v8 + v6 + 24);
if ( v20 )
{
v22 = google::protobuf::FieldDescriptor::TypeOnceInit;
v21 = v8 + v6;
a2 = (const google::protobuf::FieldDescriptor *)&v22;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v20,
(long long)&v22,
(long long)&v21);
v19 = google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*(unsigned __int8 *)(v8 + v6 + 2)];
}
if ( v19 != 10
|| *(_QWORD *)(*((_QWORD *)this + 2) + 64LL) == (_QWORD)this
|| *(_QWORD *)(*((_QWORD *)this + 2) + 64LL) == 0LL )
{
goto LABEL_43;
}
LABEL_31:
if ( *(_QWORD *)v11 )
(*(void ( **)(_QWORD))(**(_QWORD **)v11 + 8LL))(*(_QWORD *)v11);
goto LABEL_43;
}
goto LABEL_26;
}
LABEL_44:
*(_QWORD *)this = &`vtable for'google::protobuf::MessageLite + 2;
google::protobuf::internal::InternalMetadata::~InternalMetadata(v24);
}
| |||
59,431
|
ma_net_read
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
ulong ma_net_read(NET *net)
{
size_t len,complen;
#ifdef HAVE_COMPRESS
if (!net->compress)
{
#endif
len = ma_real_read (net,(size_t *)&complen);
if (len == MAX_PACKET_LENGTH)
{
/* multi packet read */
size_t length= 0;
ulong last_pos= net->where_b;
do
{
length+= len;
net->where_b+= (unsigned long)len;
len= ma_real_read(net, &complen);
} while (len == MAX_PACKET_LENGTH);
net->where_b= last_pos;
if (len != packet_error)
len+= length;
}
net->read_pos = net->buff + net->where_b;
if (len != packet_error)
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
return (ulong)len;
#ifdef HAVE_COMPRESS
}
else
{
/*
compressed protocol:
--------------------------------------
packet_length 3
sequence_id 1
uncompressed_length 3
--------------------------------------
compressed data packet_length - 7
--------------------------------------
Another packet will follow if:
packet_length == MAX_PACKET_LENGTH
Last package will be identified by
- packet_length is zero (special case)
- packet_length < MAX_PACKET_LENGTH
*/
size_t packet_length,
buffer_length;
size_t current= 0, start= 0;
my_bool is_multi_packet= 0;
/* check if buffer is empty */
if (!net->remain_in_buf)
{
buffer_length= 0;
}
else
{
/* save position and restore \0 character */
buffer_length= net->buf_length;
current= net->buf_length - net->remain_in_buf;
start= current;
net->buff[net->buf_length - net->remain_in_buf]=net->save_char;
}
for (;;)
{
if (buffer_length - current >= 4)
{
uchar *pos= net->buff + current;
packet_length= uint3korr(pos);
/* check if we have last package (special case: zero length) */
if (!packet_length)
{
current+= 4; /* length + sequence_id,
no more data will follow */
break;
}
if (packet_length + 4 <= buffer_length - current)
{
if (!is_multi_packet)
{
current= current + packet_length + 4;
}
else
{
/* remove packet_header */
memmove(net->buff + current,
net->buff + current + 4,
buffer_length - current);
buffer_length-= 4;
current+= packet_length;
}
/* do we have last packet ? */
if (packet_length != MAX_PACKET_LENGTH)
{
is_multi_packet= 0;
break;
}
else
is_multi_packet= 1;
if (start)
{
memmove(net->buff, net->buff + start,
buffer_length - start);
/* decrease buflen*/
buffer_length-= start;
start= 0;
}
continue;
}
}
if (start)
{
memmove(net->buff, net->buff + start, buffer_length - start);
/* decrease buflen and current */
current -= start;
buffer_length-= start;
start= 0;
}
net->where_b=(unsigned long)buffer_length;
if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error)
return packet_error;
if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen))
{
net->error=2; /* caller will close socket */
net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0);
return packet_error;
}
buffer_length+= complen;
}
/* set values */
net->buf_length= (unsigned long)buffer_length;
net->remain_in_buf= (unsigned long)(buffer_length - current);
net->read_pos= net->buff + start + 4;
len= current - start - 4;
if (is_multi_packet)
len-= 4;
net->save_char= net->read_pos[len]; /* Must be saved */
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
}
#endif
return (ulong)len;
}
|
O0
|
c
|
ma_net_read:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x84(%rax)
jne 0x78178
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x784c0
movq %rax, -0x18(%rbp)
cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF
jne 0x78138
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rcx
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x784c0
movq %rax, -0x18(%rbp)
cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF
je 0x780dc
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x18(%rbp)
je 0x78136
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x78138
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x18(%rbp)
je 0x7816b
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x784a7
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movb $0x0, -0x51(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x781a1
movq $0x0, -0x40(%rbp)
jmp 0x781ee
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rcx
subq 0x30(%rcx), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movb 0x81(%rax), %dl
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq -0x10(%rbp), %rsi
subq 0x30(%rsi), %rcx
movb %dl, (%rax,%rcx)
jmp 0x781f0
movq -0x40(%rbp), %rax
subq -0x48(%rbp), %rax
cmpq $0x4, %rax
jb 0x78320
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
movq -0x60(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x60(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movl %eax, %eax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x78251
movq -0x48(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x48(%rbp)
jmp 0x78420
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq -0x40(%rbp), %rcx
subq -0x48(%rbp), %rcx
cmpq %rcx, %rax
ja 0x7831e
cmpb $0x0, -0x51(%rbp)
jne 0x78282
movq -0x48(%rbp), %rax
addq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x48(%rbp)
jmp 0x782c3
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
addq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x48(%rbp), %rsi
addq $0x4, %rsi
movq -0x40(%rbp), %rdx
subq -0x48(%rbp), %rdx
callq 0x38160
movq -0x40(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF
je 0x782d6
movb $0x0, -0x51(%rbp)
jmp 0x78420
movb $0x1, -0x51(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x78319
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
subq -0x50(%rbp), %rdx
callq 0x38160
movq -0x50(%rbp), %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x781f0
jmp 0x78320
cmpq $0x0, -0x50(%rbp)
je 0x7836e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
subq -0x50(%rbp), %rdx
callq 0x38160
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x784c0
movq %rax, -0x38(%rbp)
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jne 0x783a3
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %rax, -0x8(%rbp)
jmp 0x784a7
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
addq 0x48(%rax), %rsi
leaq -0x38(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x56ed0
cmpb $0x0, %al
je 0x7840f
movq -0x10(%rbp), %rax
movb $0x2, 0x94(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x40(%rax), %rdi
leaq 0x1d15e0(%rip), %rax # 0x2499d0
movq (%rax), %rdx
movl $0x1397, %esi # imm = 0x1397
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq *%r8
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %rax, -0x8(%rbp)
jmp 0x784a7
movq -0x20(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x781f0
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x40(%rbp), %rcx
subq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq -0x50(%rbp), %rcx
addq $0x4, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x18(%rbp)
cmpb $0x0, -0x51(%rbp)
je 0x78476
movq -0x18(%rbp), %rax
subq $0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x81(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_net_read:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp byte ptr [rax+84h], 0
jnz loc_78178
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_18], rax
cmp [rbp+var_18], 0FFFFFFh
jnz short loc_78138
mov [rbp+var_28], 0
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov [rbp+var_30], rax
loc_780DC:
mov rax, [rbp+var_18]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
add rcx, [rax+48h]
mov [rax+48h], rcx
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_18], rax
cmp [rbp+var_18], 0FFFFFFh
jz short loc_780DC
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov eax, 0FFFFFFFFh
cmp [rbp+var_18], rax
jz short loc_78136
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
loc_78136:
jmp short $+2
loc_78138:
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
add rcx, [rax+48h]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov eax, 0FFFFFFFFh
cmp [rbp+var_18], rax
jz short loc_7816B
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov byte ptr [rax+rcx], 0
loc_7816B:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp loc_784A7
loc_78178:
mov [rbp+var_48], 0
mov [rbp+var_50], 0
mov [rbp+var_51], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+30h], 0
jnz short loc_781A1
mov [rbp+var_40], 0
jmp short loc_781EE
loc_781A1:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rcx, [rbp+var_10]
sub rax, [rcx+30h]
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
mov [rbp+var_50], rax
mov rax, [rbp+var_10]
mov dl, [rax+81h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+40h]
mov rsi, [rbp+var_10]
sub rcx, [rsi+30h]
mov [rax+rcx], dl
loc_781EE:
jmp short $+2
loc_781F0:
mov rax, [rbp+var_40]
sub rax, [rbp+var_48]
cmp rax, 4
jb loc_78320
mov rax, [rbp+var_10]
mov rax, [rax+8]
add rax, [rbp+var_48]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_60]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_60]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov eax, eax
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz short loc_78251
mov rax, [rbp+var_48]
add rax, 4
mov [rbp+var_48], rax
jmp loc_78420
loc_78251:
mov rax, [rbp+var_38]
add rax, 4
mov rcx, [rbp+var_40]
sub rcx, [rbp+var_48]
cmp rax, rcx
ja loc_7831E
cmp [rbp+var_51], 0
jnz short loc_78282
mov rax, [rbp+var_48]
add rax, [rbp+var_38]
add rax, 4
mov [rbp+var_48], rax
jmp short loc_782C3
loc_78282:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
add rdi, [rbp+var_48]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_48]
add rsi, 4
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_48]
call _memmove
mov rax, [rbp+var_40]
sub rax, 4
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_48]
mov [rbp+var_48], rax
loc_782C3:
cmp [rbp+var_38], 0FFFFFFh
jz short loc_782D6
mov [rbp+var_51], 0
jmp loc_78420
loc_782D6:
mov [rbp+var_51], 1
cmp [rbp+var_50], 0
jz short loc_78319
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_50]
call _memmove
mov rcx, [rbp+var_50]
mov rax, [rbp+var_40]
sub rax, rcx
mov [rbp+var_40], rax
mov [rbp+var_50], 0
loc_78319:
jmp loc_781F0
loc_7831E:
jmp short $+2
loc_78320:
cmp [rbp+var_50], 0
jz short loc_7836E
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
add rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
sub rdx, [rbp+var_50]
call _memmove
mov rcx, [rbp+var_50]
mov rax, [rbp+var_48]
sub rax, rcx
mov [rbp+var_48], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_40]
sub rax, rcx
mov [rbp+var_40], rax
mov [rbp+var_50], 0
loc_7836E:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_20]
call ma_real_read
mov [rbp+var_38], rax
mov ecx, 0FFFFFFFFh
cmp rax, rcx
jnz short loc_783A3
mov eax, 0FFFFFFFFh
mov [rbp+var_8], rax
jmp loc_784A7
loc_783A3:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
add rsi, [rax+48h]
lea rdx, [rbp+var_38]
lea rcx, [rbp+var_20]
call _mariadb_uncompress
cmp al, 0
jz short loc_7840F
mov rax, [rbp+var_10]
mov byte ptr [rax+94h], 2
mov rax, [rbp+var_10]
mov rax, [rax]
mov r8, [rax+50h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 1397h
xor eax, eax
mov ecx, eax
mov al, 0
call r8
mov eax, 0FFFFFFFFh
mov [rbp+var_8], rax
jmp loc_784A7
loc_7840F:
mov rax, [rbp+var_20]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
jmp loc_781F0
loc_78420:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rcx, [rbp+var_40]
sub rcx, [rbp+var_48]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, [rbp+var_50]
add rcx, 4
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_48]
sub rax, [rbp+var_50]
sub rax, 4
mov [rbp+var_18], rax
cmp [rbp+var_51], 0
jz short loc_78476
mov rax, [rbp+var_18]
sub rax, 4
mov [rbp+var_18], rax
loc_78476:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax+81h], cl
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
mov byte ptr [rax+rcx], 0
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_784A7:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
|
long long ma_net_read(long long a1)
{
char v2; // [rsp+Fh] [rbp-51h]
long long v3; // [rsp+10h] [rbp-50h]
long long v4; // [rsp+18h] [rbp-48h]
long long v5; // [rsp+20h] [rbp-40h]
long long v6; // [rsp+28h] [rbp-38h] BYREF
long long v7; // [rsp+30h] [rbp-30h]
long long v8; // [rsp+38h] [rbp-28h]
long long v9; // [rsp+40h] [rbp-20h] BYREF
long long v10; // [rsp+48h] [rbp-18h]
long long v11; // [rsp+50h] [rbp-10h]
v11 = a1;
if ( *(_BYTE *)(a1 + 132) )
{
v4 = 0LL;
v3 = 0LL;
v2 = 0;
if ( *(_QWORD *)(v11 + 48) )
{
v5 = *(_QWORD *)(v11 + 64);
v4 = v5 - *(_QWORD *)(v11 + 48);
v3 = v4;
*(_BYTE *)(*(_QWORD *)(v11 + 8) + v4) = *(_BYTE *)(v11 + 129);
}
else
{
v5 = 0LL;
}
while ( 1 )
{
while ( 1 )
{
if ( (unsigned long long)(v5 - v4) >= 4 )
{
v6 = (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 2) << 16)
+ (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 1) << 8)
+ (unsigned int)*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8));
if ( !v6 )
{
v4 += 4LL;
goto LABEL_32;
}
if ( v6 + 4 <= (unsigned long long)(v5 - v4) )
break;
}
if ( v3 )
{
memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3);
v4 -= v3;
v5 -= v3;
v3 = 0LL;
}
*(_QWORD *)(v11 + 72) = v5;
v6 = ma_real_read(v11, &v9);
if ( v6 == 0xFFFFFFFFLL )
return 0xFFFFFFFFLL;
if ( mariadb_uncompress(v11, *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8), &v6, &v9) )
{
*(_BYTE *)(v11 + 148) = 2;
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)v11 + 80LL))(
*(_QWORD *)(*(_QWORD *)v11 + 64LL),
5015LL,
SQLSTATE_UNKNOWN,
0LL);
return 0xFFFFFFFFLL;
}
v5 += v9;
}
if ( v2 )
{
memmove(v4 + *(_QWORD *)(v11 + 8), v4 + *(_QWORD *)(v11 + 8) + 4, v5 - v4);
v5 -= 4LL;
v4 += v6;
}
else
{
v4 += v6 + 4;
}
if ( v6 != 0xFFFFFF )
break;
v2 = 1;
if ( v3 )
{
memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3);
v5 -= v3;
v3 = 0LL;
}
}
v2 = 0;
LABEL_32:
*(_QWORD *)(v11 + 64) = v5;
*(_QWORD *)(v11 + 48) = v5 - v4;
*(_QWORD *)(v11 + 32) = v3 + *(_QWORD *)(v11 + 8) + 4;
v10 = v4 - v3 - 4;
if ( v2 )
v10 -= 4LL;
*(_BYTE *)(v11 + 129) = *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10);
*(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0;
return v10;
}
else
{
v10 = ma_real_read(v11, &v9);
if ( v10 == 0xFFFFFF )
{
v8 = 0LL;
v7 = *(_QWORD *)(v11 + 72);
do
{
v8 += v10;
*(_QWORD *)(v11 + 72) += v10;
v10 = ma_real_read(v11, &v9);
}
while ( v10 == 0xFFFFFF );
*(_QWORD *)(v11 + 72) = v7;
if ( v10 != 0xFFFFFFFFLL )
v10 += v8;
}
*(_QWORD *)(v11 + 32) = *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8);
if ( v10 != 0xFFFFFFFFLL )
*(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0;
return v10;
}
}
|
ma_net_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x84],0x0
JNZ 0x00178178
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x001784c0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0xffffff
JNZ 0x00178138
MOV qword ptr [RBP + -0x28],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x30],RAX
LAB_001780dc:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x48]
MOV qword ptr [RAX + 0x48],RCX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x001784c0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0xffffff
JZ 0x001780dc
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x18],RAX
JZ 0x00178136
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
LAB_00178136:
JMP 0x00178138
LAB_00178138:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x18],RAX
JZ 0x0017816b
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + RCX*0x1],0x0
LAB_0017816b:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001784a7
LAB_00178178:
MOV qword ptr [RBP + -0x48],0x0
MOV qword ptr [RBP + -0x50],0x0
MOV byte ptr [RBP + -0x51],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x30],0x0
JNZ 0x001781a1
MOV qword ptr [RBP + -0x40],0x0
JMP 0x001781ee
LAB_001781a1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX + 0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV DL,byte ptr [RAX + 0x81]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x40]
MOV RSI,qword ptr [RBP + -0x10]
SUB RCX,qword ptr [RSI + 0x30]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_001781ee:
JMP 0x001781f0
LAB_001781f0:
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,qword ptr [RBP + -0x48]
CMP RAX,0x4
JC 0x00178320
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00178251
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x4
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00178420
LAB_00178251:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV RCX,qword ptr [RBP + -0x40]
SUB RCX,qword ptr [RBP + -0x48]
CMP RAX,RCX
JA 0x0017831e
CMP byte ptr [RBP + -0x51],0x0
JNZ 0x00178282
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001782c3
LAB_00178282:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
ADD RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x48]
ADD RSI,0x4
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x48]
CALL 0x00138160
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,0x4
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
LAB_001782c3:
CMP qword ptr [RBP + -0x38],0xffffff
JZ 0x001782d6
MOV byte ptr [RBP + -0x51],0x0
JMP 0x00178420
LAB_001782d6:
MOV byte ptr [RBP + -0x51],0x1
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00178319
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x50]
CALL 0x00138160
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],0x0
LAB_00178319:
JMP 0x001781f0
LAB_0017831e:
JMP 0x00178320
LAB_00178320:
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0017836e
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x50]
CALL 0x00138160
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],0x0
LAB_0017836e:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x20]
CALL 0x001784c0
MOV qword ptr [RBP + -0x38],RAX
MOV ECX,0xffffffff
CMP RAX,RCX
JNZ 0x001783a3
MOV EAX,0xffffffff
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001784a7
LAB_001783a3:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
ADD RSI,qword ptr [RAX + 0x48]
LEA RDX,[RBP + -0x38]
LEA RCX,[RBP + -0x20]
CALL 0x00156ed0
CMP AL,0x0
JZ 0x0017840f
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x94],0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x40]
LEA RAX,[0x3499d0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x1397
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL R8
MOV EAX,0xffffffff
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001784a7
LAB_0017840f:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001781f0
LAB_00178420:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RCX,qword ptr [RBP + -0x40]
SUB RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,qword ptr [RBP + -0x50]
ADD RCX,0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,qword ptr [RBP + -0x50]
SUB RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
CMP byte ptr [RBP + -0x51],0x0
JZ 0x00178476
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
LAB_00178476:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x81],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_001784a7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
long ma_net_read(long *param_1)
{
bool bVar1;
char cVar2;
byte *pbVar3;
long local_58;
long local_50;
long local_48;
ulong local_40;
long local_38;
long local_30;
long local_28;
long local_20;
long *local_18;
local_18 = param_1;
if (*(char *)((long)param_1 + 0x84) == '\0') {
local_20 = ma_real_read(param_1,&local_28);
if (local_20 == 0xffffff) {
local_30 = 0;
local_38 = local_18[9];
local_20 = 0xffffff;
do {
local_30 = local_20 + local_30;
local_18[9] = local_20 + local_18[9];
local_20 = ma_real_read(local_18,&local_28);
} while (local_20 == 0xffffff);
local_18[9] = local_38;
if (local_20 != 0xffffffff) {
local_20 = local_30 + local_20;
}
}
local_18[4] = local_18[1] + local_18[9];
if (local_20 != 0xffffffff) {
*(int1 *)(local_18[4] + local_20) = 0;
}
return local_20;
}
local_50 = 0;
bVar1 = false;
if (param_1[6] == 0) {
local_48 = 0;
local_58 = local_50;
}
else {
local_48 = param_1[8];
local_58 = param_1[8] - param_1[6];
*(int1 *)(param_1[1] + (param_1[8] - param_1[6])) = *(int1 *)((long)param_1 + 0x81);
local_50 = local_58;
}
LAB_001781f0:
do {
if (3 < (ulong)(local_48 - local_50)) {
pbVar3 = (byte *)(local_18[1] + local_50);
local_40 = (ulong)((uint)*pbVar3 + (uint)pbVar3[1] * 0x100 + (uint)pbVar3[2] * 0x10000);
if (local_40 == 0) {
local_50 = local_50 + 4;
LAB_00178420:
local_18[8] = local_48;
local_18[6] = local_48 - local_50;
local_18[4] = local_18[1] + local_58 + 4;
local_20 = (local_50 - local_58) + -4;
if (bVar1) {
local_20 = (local_50 - local_58) + -8;
}
*(int1 *)((long)local_18 + 0x81) = *(int1 *)(local_18[4] + local_20);
*(int1 *)(local_18[4] + local_20) = 0;
return local_20;
}
if (local_40 + 4 <= (ulong)(local_48 - local_50)) {
if (bVar1) {
memmove((void *)(local_18[1] + local_50),(void *)(local_18[1] + local_50 + 4),
local_48 - local_50);
local_48 = local_48 + -4;
local_50 = local_40 + local_50;
}
else {
local_50 = local_50 + local_40 + 4;
}
if (local_40 != 0xffffff) {
bVar1 = false;
goto LAB_00178420;
}
bVar1 = true;
if (local_58 != 0) {
memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58);
local_48 = local_48 - local_58;
local_58 = 0;
}
goto LAB_001781f0;
}
}
if (local_58 != 0) {
memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58);
local_50 = local_50 - local_58;
local_48 = local_48 - local_58;
local_58 = 0;
}
local_18[9] = local_48;
local_40 = ma_real_read(local_18,&local_28);
if (local_40 == 0xffffffff) {
return 0xffffffff;
}
cVar2 = _mariadb_uncompress(local_18,local_18[1] + local_18[9],&local_40,&local_28);
if (cVar2 != '\0') {
*(int1 *)((long)local_18 + 0x94) = 2;
(**(code **)(*local_18 + 0x50))(*(int8 *)(*local_18 + 0x40),0x1397,SQLSTATE_UNKNOWN,0);
return 0xffffffff;
}
local_48 = local_28 + local_48;
} while( true );
}
|
|
59,432
|
google::protobuf::compiler::python::Generator::GeneratingDescriptorProto() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/python/generator.cc
|
bool Generator::GeneratingDescriptorProto() const {
return file_->name() == "net/proto2/proto/descriptor.proto" ||
file_->name() == "google/protobuf/descriptor.proto";
}
|
O3
|
cpp
|
google::protobuf::compiler::python::Generator::GeneratingDescriptorProto() const:
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movq 0x8(%rax), %rdi
leaq 0x137ca9(%rip), %rsi # 0x19d8f2
callq 0x1f130
testl %eax, %eax
je 0x65c6d
movq 0x30(%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x136f97(%rip), %rsi # 0x19cbf8
callq 0x1f130
testl %eax, %eax
sete %al
jmp 0x65c6f
movb $0x1, %al
popq %rbx
retq
nop
|
_ZNK6google8protobuf8compiler6python9Generator25GeneratingDescriptorProtoEv:
push rbx
mov rbx, rdi
mov rax, [rdi+30h]
mov rdi, [rax+8]
lea rsi, aNetProto2Proto; "net/proto2/proto/descriptor.proto"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_65C6D
mov rax, [rbx+30h]
mov rdi, [rax+8]
lea rsi, xmmword_19CBF8
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
setz al
jmp short loc_65C6F
loc_65C6D:
mov al, 1
loc_65C6F:
pop rbx
retn
|
bool google::protobuf::compiler::python::Generator::GeneratingDescriptorProto(
google::protobuf::compiler::python::Generator *this)
{
return !(unsigned int)std::string::compare(
*(_QWORD *)(*((_QWORD *)this + 6) + 8LL),
"net/proto2/proto/descriptor.proto")
|| (unsigned int)std::string::compare(*(_QWORD *)(*((_QWORD *)this + 6) + 8LL), &xmmword_19CBF8) == 0;
}
|
GeneratingDescriptorProto:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[0x29d8f2]
CALL 0x0011f130
TEST EAX,EAX
JZ 0x00165c6d
MOV RAX,qword ptr [RBX + 0x30]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[0x29cbf8]
CALL 0x0011f130
TEST EAX,EAX
SETZ AL
JMP 0x00165c6f
LAB_00165c6d:
MOV AL,0x1
LAB_00165c6f:
POP RBX
RET
|
/* google::protobuf::compiler::python::Generator::GeneratingDescriptorProto() const */
bool __thiscall
google::protobuf::compiler::python::Generator::GeneratingDescriptorProto(Generator *this)
{
int iVar1;
bool bVar2;
iVar1 = std::__cxx11::string::compare(*(char **)(*(long *)(this + 0x30) + 8));
if (iVar1 == 0) {
bVar2 = true;
}
else {
iVar1 = std::__cxx11::string::compare(*(char **)(*(long *)(this + 0x30) + 8));
bVar2 = iVar1 == 0;
}
return bVar2;
}
|
|
59,433
|
testing::internal::FilePath::Normalize()
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc
|
void FilePath::Normalize() {
auto out = pathname_.begin();
auto i = pathname_.cbegin();
#ifdef GTEST_OS_WINDOWS
// UNC paths are treated specially
if (pathname_.end() - i >= 3 && IsPathSeparator(*i) &&
IsPathSeparator(*(i + 1)) && !IsPathSeparator(*(i + 2))) {
*(out++) = kPathSeparator;
*(out++) = kPathSeparator;
}
#endif
while (i != pathname_.end()) {
const char character = *i;
if (!IsPathSeparator(character)) {
*(out++) = character;
} else if (out == pathname_.begin() || *std::prev(out) != kPathSeparator) {
*(out++) = kPathSeparator;
}
++i;
}
pathname_.erase(out, pathname_.end());
}
|
O0
|
cpp
|
testing::internal::FilePath::Normalize():
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xe3690
movq 0x10(%rsp), %rdi
movq %rax, 0x78(%rsp)
callq 0xe36c0
movq %rax, 0x70(%rsp)
movq 0x10(%rsp), %rdi
callq 0xe3730
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xe36f0
xorb $-0x1, %al
testb $0x1, %al
jne 0xb76ae
jmp 0xb7793
leaq 0x70(%rsp), %rdi
callq 0x3b590
movb (%rax), %al
movb %al, 0x67(%rsp)
movsbl 0x67(%rsp), %edi
callq 0xb6930
testb $0x1, %al
jne 0xb76fa
movb 0x67(%rsp), %al
movb %al, 0xf(%rsp)
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0xe3780
movq %rax, 0x58(%rsp)
leaq 0x58(%rsp), %rdi
callq 0xe37c0
movb 0xf(%rsp), %cl
movb %cl, (%rax)
jmp 0xb7784
movq 0x10(%rsp), %rdi
callq 0xe3690
movq %rax, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe37d0
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, 0xe(%rsp)
jne 0xb775a
movq 0x78(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
movl $0x1, %esi
callq 0xe3810
movq %rax, 0x48(%rsp)
leaq 0x48(%rsp), %rdi
callq 0xe37c0
movsbl (%rax), %eax
cmpl $0x2f, %eax
setne %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0xb7764
jmp 0xb7782
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0xe3780
movq %rax, 0x38(%rsp)
leaq 0x38(%rsp), %rdi
callq 0xe37c0
movb $0x2f, (%rax)
jmp 0xb7784
leaq 0x70(%rsp), %rdi
callq 0x3b5a0
jmp 0xb7685
leaq 0x30(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xe3920
movq 0x10(%rsp), %rdi
callq 0xe3730
movq %rax, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe3920
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xe3850
movq %rax, 0x18(%rsp)
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN7testing8internal8FilePath9NormalizeEv:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov rdi, [rsp+88h+var_8]
mov [rsp+88h+var_78], rdi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov rdi, [rsp+88h+var_78]
mov [rsp+88h+var_10], rax
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6cbeginEv; std::string::cbegin(void)
mov [rsp+88h+var_18], rax
loc_B7685:
mov rdi, [rsp+88h+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov qword ptr [rsp+88h+var_20], rax
lea rdi, [rsp+88h+var_18]
lea rsi, [rsp+88h+var_20]; char
call _ZN9__gnu_cxxeqIPKcPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEQrQT_T0__XeqfL0p_fL0p0_RSt14convertible_toIbEEEEbRKNS_17__normal_iteratorISA_T1_EERKNSD_ISB_SE_EE
xor al, 0FFh
test al, 1
jnz short loc_B76AE
jmp loc_B7793
loc_B76AE:
lea rdi, [rsp+88h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
mov al, [rax]
mov [rsp+88h+var_21], al
movsx edi, [rsp+88h+var_21]; this
call _ZN7testing8internalL15IsPathSeparatorEc; testing::internal::IsPathSeparator(char)
test al, 1
jnz short loc_B76FA
mov al, [rsp+88h+var_21]
mov [rsp+88h+var_79], al
lea rdi, [rsp+88h+var_10]
xor esi, esi
call _ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEi; __gnu_cxx::__normal_iterator<char *,std::string>::operator++(int)
mov [rsp+88h+var_30], rax
lea rdi, [rsp+88h+var_30]
call _ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char *,std::string>::operator*(void)
mov cl, [rsp+88h+var_79]
mov [rax], cl
jmp loc_B7784
loc_B76FA:
mov rdi, [rsp+88h+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov [rsp+88h+var_38], rax
lea rdi, [rsp+88h+var_10]
lea rsi, [rsp+88h+var_38]
call _ZN9__gnu_cxxeqIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
mov cl, al
mov al, 1
test cl, 1
mov [rsp+88h+var_7A], al
jnz short loc_B775A
mov rax, [rsp+88h+var_10]
mov [rsp+88h+var_48], rax
mov rdi, [rsp+88h+var_48]
mov esi, 1
call _ZSt4prevIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEET_SA_NSt15iterator_traitsISA_E15difference_typeE; std::prev<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>,std::iterator_traits<__gnu_cxx::__normal_iterator<char *,std::string>>::difference_type)
mov [rsp+88h+var_40], rax
lea rdi, [rsp+88h+var_40]
call _ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char *,std::string>::operator*(void)
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
setnz al
mov [rsp+88h+var_7A], al
loc_B775A:
mov al, [rsp+88h+var_7A]
test al, 1
jnz short loc_B7764
jmp short loc_B7782
loc_B7764:
lea rdi, [rsp+88h+var_10]
xor esi, esi
call _ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEi; __gnu_cxx::__normal_iterator<char *,std::string>::operator++(int)
mov [rsp+88h+var_50], rax
lea rdi, [rsp+88h+var_50]
call _ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char *,std::string>::operator*(void)
mov byte ptr [rax], 2Fh ; '/'
loc_B7782:
jmp short $+2
loc_B7784:
lea rdi, [rsp+88h+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
jmp loc_B7685
loc_B7793:
lea rdi, [rsp+88h+var_58]
lea rsi, [rsp+88h+var_10]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcEERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE
mov rdi, [rsp+88h+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov [rsp+88h+var_68], rax
lea rdi, [rsp+88h+var_60]
lea rsi, [rsp+88h+var_68]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcEERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE
mov rdi, [rsp+88h+var_78]
mov rsi, [rsp+88h+var_58]
mov rdx, [rsp+88h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_; std::string::erase(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>)
mov [rsp+88h+var_70], rax
add rsp, 88h
retn
|
long long testing::internal::FilePath::Normalize(testing::internal::FilePath *this)
{
bool v2; // [rsp+Eh] [rbp-7Ah]
char v3; // [rsp+Fh] [rbp-79h]
long long v4; // [rsp+20h] [rbp-68h] BYREF
long long v5; // [rsp+28h] [rbp-60h] BYREF
long long v6; // [rsp+30h] [rbp-58h] BYREF
_QWORD v7[2]; // [rsp+38h] [rbp-50h] BYREF
long long v8; // [rsp+48h] [rbp-40h] BYREF
long long v9; // [rsp+50h] [rbp-38h] BYREF
long long v10; // [rsp+58h] [rbp-30h] BYREF
char v11; // [rsp+67h] [rbp-21h]
char v12[8]; // [rsp+68h] [rbp-20h] BYREF
long long i; // [rsp+70h] [rbp-18h] BYREF
_QWORD v14[2]; // [rsp+78h] [rbp-10h] BYREF
v14[1] = this;
v14[0] = ((long long (*)(void))std::string::begin)();
for ( i = std::string::cbegin(this); ; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(&i) )
{
*(_QWORD *)v12 = std::string::end(this);
if ( (ZN9__gnu_cxxeqIPKcPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEQrQT_T0__XeqfL0p_fL0p0_RSt14convertible_toIbEEEEbRKNS_17__normal_iteratorISA_T1_EERKNSD_ISB_SE_EE(
&i,
v12) & 1) != 0 )
break;
v11 = *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*((long long)&i);
if ( testing::internal::IsPathSeparator((testing::internal *)(unsigned int)v11) )
{
v9 = std::string::begin(this);
v2 = 1;
if ( (__gnu_cxx::operator==<char *,std::string>(v14, &v9) & 1) == 0 )
{
v7[1] = v14[0];
v8 = std::prev<__gnu_cxx::__normal_iterator<char *,std::string>>(v14[0], 1LL);
v2 = *(_BYTE *)__gnu_cxx::__normal_iterator<char *,std::string>::operator*(&v8) != 47;
}
if ( v2 )
{
v7[0] = __gnu_cxx::__normal_iterator<char *,std::string>::operator++(v14, 0LL);
*(_BYTE *)__gnu_cxx::__normal_iterator<char *,std::string>::operator*(v7) = 47;
}
}
else
{
v3 = v11;
v10 = __gnu_cxx::__normal_iterator<char *,std::string>::operator++(v14, 0LL);
*(_BYTE *)__gnu_cxx::__normal_iterator<char *,std::string>::operator*(&v10) = v3;
}
}
__gnu_cxx::__normal_iterator<char const*,std::string>::__normal_iterator<char *>(&v6, v14);
v4 = std::string::end(this);
__gnu_cxx::__normal_iterator<char const*,std::string>::__normal_iterator<char *>(&v5, &v4);
return std::string::erase(this, v6, v5);
}
|
Normalize:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV RDI,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x001e3690
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x78],RAX
CALL 0x001e36c0
MOV qword ptr [RSP + 0x70],RAX
LAB_001b7685:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001e3730
MOV qword ptr [RSP + 0x68],RAX
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x68]
CALL 0x001e36f0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001b76ae
JMP 0x001b7793
LAB_001b76ae:
LEA RDI,[RSP + 0x70]
CALL 0x0013b590
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0x67],AL
MOVSX EDI,byte ptr [RSP + 0x67]
CALL 0x001b6930
TEST AL,0x1
JNZ 0x001b76fa
MOV AL,byte ptr [RSP + 0x67]
MOV byte ptr [RSP + 0xf],AL
LEA RDI,[RSP + 0x78]
XOR ESI,ESI
CALL 0x001e3780
MOV qword ptr [RSP + 0x58],RAX
LEA RDI,[RSP + 0x58]
CALL 0x001e37c0
MOV CL,byte ptr [RSP + 0xf]
MOV byte ptr [RAX],CL
JMP 0x001b7784
LAB_001b76fa:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001e3690
MOV qword ptr [RSP + 0x50],RAX
LEA RDI,[RSP + 0x78]
LEA RSI,[RSP + 0x50]
CALL 0x001e37d0
MOV CL,AL
MOV AL,0x1
TEST CL,0x1
MOV byte ptr [RSP + 0xe],AL
JNZ 0x001b775a
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,0x1
CALL 0x001e3810
MOV qword ptr [RSP + 0x48],RAX
LEA RDI,[RSP + 0x48]
CALL 0x001e37c0
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
SETNZ AL
MOV byte ptr [RSP + 0xe],AL
LAB_001b775a:
MOV AL,byte ptr [RSP + 0xe]
TEST AL,0x1
JNZ 0x001b7764
JMP 0x001b7782
LAB_001b7764:
LEA RDI,[RSP + 0x78]
XOR ESI,ESI
CALL 0x001e3780
MOV qword ptr [RSP + 0x38],RAX
LEA RDI,[RSP + 0x38]
CALL 0x001e37c0
MOV byte ptr [RAX],0x2f
LAB_001b7782:
JMP 0x001b7784
LAB_001b7784:
LEA RDI,[RSP + 0x70]
CALL 0x0013b5a0
JMP 0x001b7685
LAB_001b7793:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x78]
CALL 0x001e3920
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001e3730
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x20]
CALL 0x001e3920
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x001e3850
MOV qword ptr [RSP + 0x18],RAX
ADD RSP,0x88
RET
|
/* testing::internal::FilePath::Normalize() */
void __thiscall testing::internal::FilePath::Normalize(FilePath *this)
{
char cVar1;
byte bVar2;
char *pcVar3;
ulong uVar4;
int1 *puVar5;
bool bVar6;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int8 local_48;
int8 local_40;
int8 local_38;
int8 local_30;
char local_21;
int8 local_20;
int8 local_18;
int8 local_10;
FilePath *local_8;
local_8 = this;
local_10 = std::__cxx11::string::begin((string *)this);
local_18 = std::__cxx11::string::cbegin((string *)this);
while( true ) {
local_20 = std::__cxx11::string::end((string *)this);
bVar2 = _ZN9__gnu_cxxeqIPKcPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEQrQT_T0__XeqfL0p_fL0p0_RSt14convertible_toIbEEEEbRKNS_17__normal_iteratorISA_T1_EERKNSD_ISB_SE_EE
(&local_18);
if (((bVar2 ^ 0xff) & 1) == 0) break;
pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
local_21 = *pcVar3;
uVar4 = IsPathSeparator(local_21);
cVar1 = local_21;
if ((uVar4 & 1) == 0) {
local_30 = __gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator++
((__normal_iterator<char*,std::__cxx11::string> *)&local_10,0);
pcVar3 = (char *)__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator*
((__normal_iterator<char*,std::__cxx11::string> *)&local_30);
*pcVar3 = cVar1;
}
else {
local_38 = std::__cxx11::string::begin((string *)this);
bVar2 = _ZN9__gnu_cxxeqIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
(&local_10);
bVar6 = true;
if ((bVar2 & 1) == 0) {
local_48 = local_10;
local_40 = std::prev<__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>>(local_10);
pcVar3 = (char *)__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator*
((__normal_iterator<char*,std::__cxx11::string> *)&local_40);
bVar6 = *pcVar3 != '/';
}
if (bVar6) {
local_50 = __gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator++
((__normal_iterator<char*,std::__cxx11::string> *)&local_10,0);
puVar5 = (int1 *)
__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator*
((__normal_iterator<char*,std::__cxx11::string> *)&local_50);
*puVar5 = 0x2f;
}
}
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
}
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::__normal_iterator<char*>
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_58,
(__normal_iterator *)&local_10);
local_68 = std::__cxx11::string::end((string *)this);
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::__normal_iterator<char*>
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_60,
(__normal_iterator *)&local_68);
std::__cxx11::string::erase((string *)this,local_58,local_60);
return;
}
|
|
59,434
|
js_free_prop_enum
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_free_prop_enum(JSContext *ctx, JSPropertyEnum *tab, uint32_t len)
{
uint32_t i;
if (tab) {
for(i = 0; i < len; i++)
JS_FreeAtom(ctx, tab[i].atom);
js_free(ctx, tab);
}
}
|
O1
|
c
|
js_free_prop_enum:
testq %rsi, %rsi
je 0x27f3d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x27f07
movl %edx, %r15d
xorl %r12d, %r12d
movl 0x4(%rbx,%r12,8), %esi
movq %r14, %rdi
callq 0x24834
incq %r12
cmpq %r12, %r15
jne 0x27ef2
movq 0x18(%r14), %r14
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rcx
retq
|
js_free_prop_enum:
test rsi, rsi
jz short locret_27F3D
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
test edx, edx
jz short loc_27F07
mov r15d, edx
xor r12d, r12d
loc_27EF2:
mov esi, [rbx+r12*8+4]
mov rdi, r14
call JS_FreeAtom
inc r12
cmp r15, r12
jnz short loc_27EF2
loc_27F07:
mov r14, [r14+18h]
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rcx
locret_27F3D:
retn
|
long long js_free_prop_enum(long long a1, long long a2, unsigned int a3)
{
long long v3; // r15
long long i; // r12
long long v5; // r14
long long v6; // rax
long long ( *v7)(_QWORD, long long); // rcx
long long result; // rax
if ( a2 )
{
if ( a3 )
{
v3 = a3;
for ( i = 0LL; i != v3; ++i )
JS_FreeAtom(a1, *(_DWORD *)(a2 + 8 * i + 4));
}
v5 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v5 + 40);
v6 = (*(long long ( **)(long long))(v5 + 32))(a2);
v7 = *(long long ( **)(_QWORD, long long))(v5 + 16);
*(_QWORD *)(v5 + 48) = *(_QWORD *)(v5 + 48) - v6 - 8;
return v7(*(_QWORD *)(v5 + 64), a2);
}
return result;
}
|
js_free_prop_enum:
TEST RSI,RSI
JZ 0x00127f3d
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
TEST EDX,EDX
JZ 0x00127f07
MOV R15D,EDX
XOR R12D,R12D
LAB_00127ef2:
MOV ESI,dword ptr [RBX + R12*0x8 + 0x4]
MOV RDI,R14
CALL 0x00124834
INC R12
CMP R15,R12
JNZ 0x00127ef2
LAB_00127f07:
MOV R14,qword ptr [R14 + 0x18]
DEC qword ptr [R14 + 0x28]
MOV RDI,RBX
CALL qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [R14 + 0x30],RDX
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RCX
LAB_00127f3d:
RET
|
void js_free_prop_enum(long param_1,long param_2,uint param_3)
{
long lVar1;
long lVar2;
ulong uVar3;
if (param_2 != 0) {
if (param_3 != 0) {
uVar3 = 0;
do {
JS_FreeAtom(param_1,*(int4 *)(param_2 + 4 + uVar3 * 8));
uVar3 = uVar3 + 1;
} while (param_3 != uVar3);
}
lVar1 = *(long *)(param_1 + 0x18);
*(long *)(lVar1 + 0x28) = *(long *)(lVar1 + 0x28) + -1;
lVar2 = (**(code **)(lVar1 + 0x20))(param_2);
lVar2 = (*(long *)(lVar1 + 0x30) - lVar2) + -8;
*(long *)(lVar1 + 0x30) = lVar2;
/* WARNING: Could not recover jumptable at 0x00127f3b. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(lVar1 + 0x10))
(*(int8 *)(lVar1 + 0x40),param_2,lVar2,*(code **)(lVar1 + 0x10));
return;
}
return;
}
|
|
59,435
|
my_casefold_ujis
|
eloqsql/strings/ctype-ujis.c
|
static size_t
my_casefold_ujis(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar * const map,
size_t is_upper)
{
const char *srcend= src + srclen, *dst0= dst;
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
ch= (mblen == 2) ?
get_case_info_for_ch(cs, 0, (uchar) src[0], (uchar) src[1]) :
get_case_info_for_ch(cs, 1, (uchar) src[1], (uchar) src[2]);
if (ch)
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= mblen;
if (code > 0xFFFF)
*dst++= (char) (uchar) ((code >> 16) & 0xFF);
if (code > 0xFF)
*dst++= (char) (uchar) ((code >> 8) & 0xFF);
*dst++= (char) (uchar) (code & 0xFF);
}
else
{
if (mblen == 3)
*dst++= *src++;
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
}
|
O0
|
c
|
my_casefold_ujis:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xf816b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xf81e0
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0xf813c
cmpq $0x2, -0x48(%rbp)
jne 0xf7fff
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl (%rax), %edx
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %ecx
xorl %esi, %esi
callq 0xf8240
movq %rax, -0x60(%rbp)
jmp 0xf8021
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %edx
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %ecx
movl $0x1, %esi
callq 0xf8240
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xf80cd
cmpq $0x0, 0x10(%rbp)
je 0xf8046
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x64(%rbp)
jmp 0xf8050
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x48(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpl $0xffff, -0x54(%rbp) # imm = 0xFFFF
jle 0xf8089
movl -0x54(%rbp), %eax
sarl $0x10, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
cmpl $0xff, -0x54(%rbp)
jle 0xf80b0
movl -0x54(%rbp), %eax
sarl $0x8, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x54(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0xf813a
cmpq $0x3, -0x48(%rbp)
jne 0xf80f6
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0xf8166
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0xf7fa8
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
|
my_casefold_ujis:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
loc_F7FA8:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb loc_F816B
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
call my_ismbchar_2
mov eax, eax
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz loc_F813C
cmp [rbp+var_48], 2
jnz short loc_F7FFF
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax]
mov rax, [rbp+var_10]
movzx ecx, byte ptr [rax+1]
xor esi, esi
call get_case_info_for_ch_0
mov [rbp+var_60], rax
jmp short loc_F8021
loc_F7FFF:
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax+1]
mov rax, [rbp+var_10]
movzx ecx, byte ptr [rax+2]
mov esi, 1
call get_case_info_for_ch_0
mov [rbp+var_60], rax
loc_F8021:
mov rax, [rbp+var_60]
mov [rbp+var_50], rax
cmp [rbp+var_50], 0
jz loc_F80CD
cmp [rbp+arg_0], 0
jz short loc_F8046
mov rax, [rbp+var_50]
mov eax, [rax]
mov [rbp+var_64], eax
jmp short loc_F8050
loc_F8046:
mov rax, [rbp+var_50]
mov eax, [rax+4]
mov [rbp+var_64], eax
loc_F8050:
mov eax, [rbp+var_64]
mov [rbp+var_54], eax
mov rax, [rbp+var_48]
add rax, [rbp+var_10]
mov [rbp+var_10], rax
cmp [rbp+var_54], 0FFFFh
jle short loc_F8089
mov eax, [rbp+var_54]
sar eax, 10h
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_F8089:
cmp [rbp+var_54], 0FFh
jle short loc_F80B0
mov eax, [rbp+var_54]
sar eax, 8
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_F80B0:
mov eax, [rbp+var_54]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
jmp short loc_F813A
loc_F80CD:
cmp [rbp+var_48], 3
jnz short loc_F80F6
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_F80F6:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_F813A:
jmp short loc_F8166
loc_F813C:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_F8166:
jmp loc_F7FA8
loc_F816B:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 70h
pop rbp
retn
|
_BYTE * my_casefold_ujis(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
long long a7)
{
unsigned int v7; // eax
unsigned __int8 *v8; // rax
unsigned __int8 *v9; // rax
unsigned __int8 *v10; // rax
unsigned __int8 *v11; // rax
unsigned __int8 v12; // cl
unsigned __int8 *v13; // rax
char *v14; // rax
char v15; // cl
_BYTE *v16; // rax
unsigned __int8 *v17; // rcx
unsigned __int8 *v18; // rax
int v20; // [rsp+Ch] [rbp-64h]
int *case_info_for_ch_0; // [rsp+10h] [rbp-60h]
long long v22; // [rsp+28h] [rbp-48h]
unsigned long long v24; // [rsp+38h] [rbp-38h]
unsigned __int8 *v26; // [rsp+50h] [rbp-20h]
unsigned __int8 *v27; // [rsp+60h] [rbp-10h]
v27 = a2;
v26 = a4;
v24 = (unsigned long long)&a2[a3];
while ( (unsigned long long)v27 < v24 )
{
v7 = my_ismbchar_2(a1, v27, v24);
v22 = v7;
if ( v7 )
{
if ( v7 == 2LL )
case_info_for_ch_0 = (int *)get_case_info_for_ch_0(a1, 0LL, *v27, v27[1]);
else
case_info_for_ch_0 = (int *)get_case_info_for_ch_0(a1, 1LL, v27[1], v27[2]);
if ( case_info_for_ch_0 )
{
if ( a7 )
v20 = *case_info_for_ch_0;
else
v20 = case_info_for_ch_0[1];
v27 += v22;
if ( v20 > 0xFFFF )
{
v8 = v26++;
*v8 = BYTE2(v20);
}
if ( v20 > 255 )
{
v9 = v26++;
*v9 = BYTE1(v20);
}
v10 = v26++;
*v10 = v20;
}
else
{
if ( v22 == 3 )
{
v11 = v27++;
v12 = *v11;
v13 = v26++;
*v13 = v12;
}
*v26 = *v27;
v14 = (char *)(v27 + 1);
v27 += 2;
v15 = *v14;
v16 = v26 + 1;
v26 += 2;
*v16 = v15;
}
}
else
{
v17 = v27++;
v18 = v26++;
*v18 = *(_BYTE *)(a6 + *v17);
}
}
return (_BYTE *)(v26 - a4);
}
|
my_casefold_ujis:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
LAB_001f7fa8:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001f816b
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001f81e0
MOV EAX,EAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001f813c
CMP qword ptr [RBP + -0x48],0x2
JNZ 0x001f7fff
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RAX + 0x1]
XOR ESI,ESI
CALL 0x001f8240
MOV qword ptr [RBP + -0x60],RAX
JMP 0x001f8021
LAB_001f7fff:
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX + 0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RAX + 0x2]
MOV ESI,0x1
CALL 0x001f8240
MOV qword ptr [RBP + -0x60],RAX
LAB_001f8021:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001f80cd
CMP qword ptr [RBP + 0x10],0x0
JZ 0x001f8046
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x64],EAX
JMP 0x001f8050
LAB_001f8046:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x64],EAX
LAB_001f8050:
MOV EAX,dword ptr [RBP + -0x64]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
CMP dword ptr [RBP + -0x54],0xffff
JLE 0x001f8089
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x10
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001f8089:
CMP dword ptr [RBP + -0x54],0xff
JLE 0x001f80b0
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x8
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001f80b0:
MOV EAX,dword ptr [RBP + -0x54]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x001f813a
LAB_001f80cd:
CMP qword ptr [RBP + -0x48],0x3
JNZ 0x001f80f6
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001f80f6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001f813a:
JMP 0x001f8166
LAB_001f813c:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001f8166:
JMP 0x001f7fa8
LAB_001f816b:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x70
POP RBP
RET
|
long my_casefold_ujis(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5
,long param_6,long param_7)
{
uint uVar1;
ulong uVar2;
byte *pbVar3;
byte *pbVar4;
int local_6c;
int *local_68;
byte *local_28;
byte *local_18;
local_28 = param_4;
local_18 = param_2;
while (local_18 < param_2 + param_3) {
uVar1 = my_ismbchar(param_1,local_18,param_2 + param_3);
uVar2 = (ulong)uVar1;
if (uVar2 == 0) {
*local_28 = *(byte *)(param_6 + (ulong)*local_18);
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
else {
if (uVar2 == 2) {
local_68 = (int *)get_case_info_for_ch(param_1,0,*local_18,local_18[1]);
}
else {
local_68 = (int *)get_case_info_for_ch(param_1,1,local_18[1],local_18[2]);
}
if (local_68 == (int *)0x0) {
if (uVar2 == 3) {
*local_28 = *local_18;
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
pbVar3 = local_18 + 1;
pbVar4 = local_28 + 1;
*local_28 = *local_18;
local_18 = local_18 + 2;
local_28 = local_28 + 2;
*pbVar4 = *pbVar3;
}
else {
if (param_7 == 0) {
local_6c = local_68[1];
}
else {
local_6c = *local_68;
}
local_18 = local_18 + uVar2;
if (0xffff < local_6c) {
*local_28 = (byte)((uint)local_6c >> 0x10);
local_28 = local_28 + 1;
}
if (0xff < local_6c) {
*local_28 = (byte)((uint)local_6c >> 8);
local_28 = local_28 + 1;
}
*local_28 = (byte)local_6c;
local_28 = local_28 + 1;
}
}
}
return (long)local_28 - (long)param_4;
}
|
|
59,436
|
unlink_changed
|
eloqsql/mysys/mf_keycache.c
|
static inline void unlink_changed(BLOCK_LINK *block)
{
DBUG_ASSERT(block->prev_changed && *block->prev_changed == block);
if (block->next_changed)
block->next_changed->prev_changed= block->prev_changed;
*block->prev_changed= block->next_changed;
#ifdef DBUG_ASSERT_EXISTS
/*
This makes it easier to see it's not in a chain during debugging.
And some DBUG_ASSERT() rely on it.
*/
block->next_changed= NULL;
block->prev_changed= NULL;
#endif
}
|
O0
|
c
|
unlink_changed:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
jmp 0xe4b4a
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xe4b69
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rcx, (%rax)
popq %rbp
retq
nop
|
unlink_changed_0:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
jmp short $+2
loc_E4B4A:
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_E4B69
mov rax, [rbp+var_8]
mov rcx, [rax+18h]
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax+18h], rcx
loc_E4B69:
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rax], rcx
pop rbp
retn
|
_QWORD * unlink_changed_0(long long a1)
{
_QWORD *result; // rax
if ( *(_QWORD *)(a1 + 16) )
*(_QWORD *)(*(_QWORD *)(a1 + 16) + 24LL) = *(_QWORD *)(a1 + 24);
result = *(_QWORD **)(a1 + 24);
*result = *(_QWORD *)(a1 + 16);
return result;
}
|
unlink_changed:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001e4b4a
LAB_001e4b4a:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x001e4b69
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x18],RCX
LAB_001e4b69:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void unlink_changed(long param_1)
{
if (*(long *)(param_1 + 0x10) != 0) {
*(int8 *)(*(long *)(param_1 + 0x10) + 0x18) = *(int8 *)(param_1 + 0x18);
}
**(int8 **)(param_1 + 0x18) = *(int8 *)(param_1 + 0x10);
return;
}
|
|
59,437
|
wt_resource_destroy
|
eloqsql/mysys/waiting_threads.c
|
static void wt_resource_destroy(uchar *arg)
{
WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD);
DBUG_ENTER("wt_resource_destroy");
DBUG_ASSERT(rc->owners.elements == 0);
rc_rwlock_destroy(rc);
mysql_cond_destroy(&rc->cond);
delete_dynamic(&rc->owners);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
wt_resource_destroy:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x3b1a2(%rip), %rax # 0xe6b4c
movslq (%rax), %rax
leaq (%rdi,%rax), %rbx
leaq (%rdi,%rax), %r14
addq $0x18, %r14
movq %r14, %rdi
callq 0xa8c68
movq 0xc0(%r14), %rdi
testq %rdi, %rdi
jne 0xab9ec
leaq 0xa8(%rbx), %rdi
callq 0x2a250
addq $0xe0, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x93034
leaq 0x2e09d5(%rip), %rax # 0x38c3c8
movq (%rax), %rax
callq *0x68(%rax)
movq $0x0, 0xd8(%rbx)
jmp 0xab9cd
|
wt_resource_destroy:
push rbp
mov rbp, rsp
push r14
push rbx
lea rax, LF_HASH_OVERHEAD
movsxd rax, dword ptr [rax]
lea rbx, [rdi+rax]
lea r14, [rdi+rax]
add r14, 18h
mov rdi, r14
call my_rw_destroy
mov rdi, [r14+0C0h]
test rdi, rdi
jnz short loc_AB9EC
loc_AB9CD:
lea rdi, [rbx+0A8h]
call _pthread_cond_destroy
add rbx, 0E0h
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp delete_dynamic
loc_AB9EC:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+68h]
mov qword ptr [rbx+0D8h], 0
jmp short loc_AB9CD
|
long long wt_resource_destroy(long long a1)
{
long long v1; // rbx
v1 = a1 + LF_HASH_OVERHEAD;
my_rw_destroy(v1 + 24);
if ( *(_QWORD *)(v1 + 216) )
{
PSI_server[13]();
*(_QWORD *)(v1 + 216) = 0LL;
}
pthread_cond_destroy(v1 + 168);
return delete_dynamic((long long *)(v1 + 224));
}
|
wt_resource_destroy:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
LEA RAX,[0x1e6b4c]
MOVSXD RAX,dword ptr [RAX]
LEA RBX,[RDI + RAX*0x1]
LEA R14,[RDI + RAX*0x1]
ADD R14,0x18
MOV RDI,R14
CALL 0x001a8c68
MOV RDI,qword ptr [R14 + 0xc0]
TEST RDI,RDI
JNZ 0x001ab9ec
LAB_001ab9cd:
LEA RDI,[RBX + 0xa8]
CALL 0x0012a250
ADD RBX,0xe0
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x00193034
LAB_001ab9ec:
LEA RAX,[0x48c3c8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x68]
MOV qword ptr [RBX + 0xd8],0x0
JMP 0x001ab9cd
|
void wt_resource_destroy(long param_1)
{
long lVar1;
lVar1 = param_1 + LF_HASH_OVERHEAD;
param_1 = param_1 + LF_HASH_OVERHEAD;
my_rw_destroy(param_1 + 0x18);
if (*(long *)(param_1 + 0xd8) != 0) {
(**(code **)(PSI_server + 0x68))();
*(int8 *)(lVar1 + 0xd8) = 0;
}
pthread_cond_destroy((pthread_cond_t *)(lVar1 + 0xa8));
delete_dynamic(lVar1 + 0xe0);
return;
}
|
|
59,438
|
evmone::VM::VM()
|
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/vm.cpp
|
VM::VM() noexcept
: evmc_vm{
EVMC_ABI_VERSION,
"evmone",
PROJECT_VERSION,
evmone::destroy,
evmone::baseline::execute,
evmone::get_capabilities,
evmone::set_option,
}
{
m_execution_states.reserve(1025);
}
|
O3
|
cpp
|
evmone::VM::VM():
pushq %rax
movl $0xc, (%rdi)
leaq 0x52c76(%rip), %rax # 0x82fc0
movq %rax, 0x8(%rdi)
leaq 0x52c72(%rip), %rax # 0x82fc7
movq %rax, 0x10(%rdi)
leaq 0x51(%rip), %rax # 0x303b1
movq %rax, 0x18(%rdi)
leaq 0xf2c8(%rip), %rax # 0x3f633
movq %rax, 0x20(%rdi)
leaq 0x91(%rip), %rax # 0x30407
movq %rax, 0x28(%rdi)
leaq 0x8c(%rip), %rax # 0x3040d
movq %rax, 0x30(%rdi)
movw $0x1, 0x38(%rdi)
leaq 0x40(%rdi), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movl $0x401, %esi # imm = 0x401
movq %rax, %rdi
callq 0x30632
popq %rax
retq
movq %rax, %rdi
callq 0x30061
|
_ZN6evmone2VMC2Ev:
push rax
mov dword ptr [rdi], 0Ch
lea rax, aEvmone; "evmone"
mov [rdi+8], rax
lea rax, a0141; "0.14.1"
mov [rdi+10h], rax
lea rax, _ZN6evmone12_GLOBAL__N_17destroyEP7evmc_vm; evmone::`anonymous namespace'::destroy(evmc_vm *)
mov [rdi+18h], rax
lea rax, _ZN6evmone8baseline7executeEP7evmc_vmPK19evmc_host_interfaceP17evmc_host_context13evmc_revisionPK12evmc_messagePKhm; evmone::baseline::execute(evmc_vm *,evmc_host_interface const*,evmc_host_context *,evmc_revision,evmc_message const*,uchar const*,ulong)
mov [rdi+20h], rax
lea rax, _ZN6evmone12_GLOBAL__N_116get_capabilitiesEP7evmc_vm; evmone::`anonymous namespace'::get_capabilities(evmc_vm *)
mov [rdi+28h], rax
lea rax, _ZN6evmone12_GLOBAL__N_110set_optionEP7evmc_vmPKcS4_; evmone::`anonymous namespace'::set_option(evmc_vm *,char const*,char const*)
mov [rdi+30h], rax
mov word ptr [rdi+38h], 1
lea rax, [rdi+40h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
mov esi, 401h
mov rdi, rax
call _ZNSt6vectorIN6evmone14ExecutionStateESaIS1_EE7reserveEm; std::vector<evmone::ExecutionState>::reserve(ulong)
pop rax
retn
mov rdi, rax
call __clang_call_terminate
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> evmone::VM::VM(evmone::VM *this)
{
*(_DWORD *)this = 12;
*((_QWORD *)this + 1) = "evmone";
*((_QWORD *)this + 2) = "0.14.1";
*((_QWORD *)this + 3) = evmone::`anonymous namespace'::destroy;
*((_QWORD *)this + 4) = evmone::baseline::execute;
*((_QWORD *)this + 5) = evmone::`anonymous namespace'::get_capabilities;
*((_QWORD *)this + 6) = evmone::`anonymous namespace'::set_option;
*((_WORD *)this + 28) = 1;
*((_OWORD *)this + 4) = 0LL;
*((_OWORD *)this + 5) = 0LL;
std::vector<evmone::ExecutionState>::reserve((char *)this + 64, 1025LL);
}
|
VM:
PUSH RAX
MOV dword ptr [RDI],0xc
LEA RAX,[0x182fc0]
MOV qword ptr [RDI + 0x8],RAX
LEA RAX,[0x182fc7]
MOV qword ptr [RDI + 0x10],RAX
LEA RAX,[0x1303b1]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x13f633]
MOV qword ptr [RDI + 0x20],RAX
LEA RAX,[0x130407]
MOV qword ptr [RDI + 0x28],RAX
LEA RAX,[0x13040d]
MOV qword ptr [RDI + 0x30],RAX
MOV word ptr [RDI + 0x38],0x1
LEA RAX,[RDI + 0x40]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
LAB_0013039a:
MOV ESI,0x401
MOV RDI,RAX
CALL 0x00130632
POP RAX
RET
|
/* evmone::VM::VM() */
int8 __thiscall evmone::VM::VM(VM *this)
{
int8 in_RAX;
*(int4 *)this = 0xc;
*(char **)(this + 8) = "evmone";
*(char **)(this + 0x10) = "0.14.1";
*(code **)(this + 0x18) = (anonymous_namespace)::destroy;
*(code **)(this + 0x20) = baseline::execute;
*(code **)(this + 0x28) = (anonymous_namespace)::get_capabilities;
*(code **)(this + 0x30) = (anonymous_namespace)::set_option;
*(int2 *)(this + 0x38) = 1;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
/* try { // try from 0013039a to 001303a6 has its CatchHandler @ 001303a9 */
std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::reserve
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)(this + 0x40),
0x401);
return in_RAX;
}
|
|
59,439
|
test_conv_transpose_1d::build_graph(ggml_context*)
|
monkey531[P]llama/tests/test-backend-ops.cpp
|
ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * input = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne_input.data());
ggml_set_name(input, "input");
ggml_tensor * kernel = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne_kernel.data());
ggml_set_name(kernel, "kernel");
ggml_tensor * out = ggml_conv_transpose_1d(ctx, kernel, input, s0, p0, d0);
ggml_set_name(out, "out");
return out;
}
|
O1
|
cpp
|
test_conv_transpose_1d::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %rcx
movq %rsi, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0xd080
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
leaq 0x23152(%rip), %rsi # 0x45e54
movq %r15, %rdi
callq 0xdb10
leaq 0x58(%r14), %rcx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0xd080
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bc8c
leaq 0x23159(%rip), %rsi # 0x45e8b
movq %r12, %rdi
callq 0xdb10
movl 0x78(%r14), %ecx
movl 0x7c(%r14), %r8d
movl 0x80(%r14), %r9d
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xdbf0
movq %rax, %rbx
leaq 0x23637(%rip), %rsi # 0x46398
movq %rax, %rdi
callq 0xdb10
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN22test_conv_transpose_1d11build_graphEP12ggml_context:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
lea rcx, [rdi+38h]
mov rdi, rsi
xor esi, esi
mov edx, 4
call _ggml_new_tensor
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aInput; "input"
mov rdi, r15
call _ggml_set_name
lea rcx, [r14+58h]
mov rdi, rbx
xor esi, esi
mov edx, 4
call _ggml_new_tensor
mov r12, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aKernel; "kernel"
mov rdi, r12
call _ggml_set_name
mov ecx, [r14+78h]
mov r8d, [r14+7Ch]
mov r9d, [r14+80h]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call _ggml_conv_transpose_1d
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long test_conv_transpose_1d::build_graph(unsigned int *a1, long long a2)
{
long long v2; // rax
long long v3; // r15
long long v4; // r12
long long v5; // rbx
long long v7; // [rsp-8h] [rbp-28h]
v7 = v2;
v3 = ggml_new_tensor(a2, 0LL, 4LL);
test_case::add_sentinel((long long)a1, a2);
ggml_set_name(v3, "input");
v4 = ggml_new_tensor(a2, 0LL, 4LL);
test_case::add_sentinel((long long)a1, a2);
ggml_set_name(v4, "kernel");
v5 = ggml_conv_transpose_1d(a2, v4, v3, a1[30], a1[31], a1[32], v7);
ggml_set_name(v5, "out");
return v5;
}
|
build_graph:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
LEA RCX,[RDI + 0x38]
MOV RDI,RSI
XOR ESI,ESI
MOV EDX,0x4
CALL 0x0010d080
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
LEA RSI,[0x145e54]
MOV RDI,R15
CALL 0x0010db10
LEA RCX,[R14 + 0x58]
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x4
CALL 0x0010d080
MOV R12,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011bc8c
LEA RSI,[0x145e8b]
MOV RDI,R12
CALL 0x0010db10
MOV ECX,dword ptr [R14 + 0x78]
MOV R8D,dword ptr [R14 + 0x7c]
MOV R9D,dword ptr [R14 + 0x80]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x0010dbf0
MOV RBX,RAX
LEA RSI,[0x146398]
MOV RDI,RAX
CALL 0x0010db10
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* test_conv_transpose_1d::build_graph(ggml_context*) */
int8 __thiscall
test_conv_transpose_1d::build_graph(test_conv_transpose_1d *this,ggml_context *param_1)
{
int8 uVar1;
int8 uVar2;
uVar1 = ggml_new_tensor(param_1,0,4,this + 0x38);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar1,"input");
uVar2 = ggml_new_tensor(param_1,0,4,this + 0x58);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar2,"kernel");
uVar1 = ggml_conv_transpose_1d
(param_1,uVar2,uVar1,*(int4 *)(this + 0x78),*(int4 *)(this + 0x7c),
*(int4 *)(this + 0x80));
ggml_set_name(uVar1,"out");
return uVar1;
}
|
|
59,440
|
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 0x1ab8de(%rip), %rax # 0x1dd8b8
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 0x24340
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
inline_mysql_cond_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+60h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_cond_init
add rsp, 20h
pop rbp
retn
|
long long inline_mysql_cond_init(unsigned int a1, long long a2, long long a3)
{
*(_QWORD *)(a2 + 48) = (*((long long ( **)(_QWORD, long long))PSI_server[0] + 12))(a1, a2);
return pthread_cond_init(a2, a3);
}
|
inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x2dd8b8]
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 0x00124340
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;
}
|
|
59,441
|
wt_init
|
eloqsql/mysys/waiting_threads.c
|
void wt_init()
{
DBUG_ENTER("wt_init");
DBUG_ASSERT(reshash.alloc.constructor != wt_resource_create);
lf_hash_init(&reshash, sizeof(WT_RESOURCE), LF_HASH_UNIQUE, 0,
sizeof_WT_RESOURCE_ID, 0, 0);
reshash.alloc.constructor= wt_resource_create;
reshash.alloc.destructor= wt_resource_destroy;
reshash.initializer= (lf_hash_initializer) wt_resource_init;
bzero(wt_wait_stats, sizeof(wt_wait_stats));
bzero(wt_cycle_stats, sizeof(wt_cycle_stats));
wt_success_stats= 0;
{ /* initialize wt_wait_table[]. from 1 us to 1 min, log e scale */
int i;
double from= log(1); /* 1 us */
double to= log(60e6); /* 1 min */
for (i= 0; i < WT_WAIT_STATS; i++)
{
wt_wait_table[i]= (ulonglong)exp((to-from)/(WT_WAIT_STATS-1)*i+from);
DBUG_ASSERT(i == 0 || wt_wait_table[i-1] != wt_wait_table[i]);
}
}
wt_init_done= 1;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
wt_init:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq $0x0, (%rsp)
leaq 0xb6216a(%rip), %rdi # 0xc08ad0
xorl %ebx, %ebx
movl $0x108, %esi # imm = 0x108
movl $0x1, %edx
xorl %ecx, %ecx
movl $0x10, %r8d
xorl %r9d, %r9d
callq 0xa5c14
leaq 0xc9(%rip), %rax # 0xa6a52
movq %rax, 0xb621c0(%rip) # 0xc08b50
leaq 0x155(%rip), %rax # 0xa6aec
movq %rax, 0xb621ba(%rip) # 0xc08b58
leaq 0x1b1(%rip), %rax # 0xa6b56
movq %rax, 0xb621bc(%rip) # 0xc08b68
xorpd %xmm0, %xmm0
leaq 0xb621e9(%rip), %rax # 0xc08ba0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movapd %xmm0, 0x30(%rax)
movapd %xmm0, 0x40(%rax)
movapd %xmm0, 0x50(%rax)
movl %ebx, 0x60(%rax)
leaq 0xb62232(%rip), %rdi # 0xc08c10
movl $0x108, %edx # imm = 0x108
xorl %esi, %esi
callq 0x292c0
leaq 0xb62327(%rip), %rax # 0xc08d18
movl %ebx, (%rax)
leaq 0xb62326(%rip), %r14 # 0xc08d20
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd 0x3a62f(%rip), %xmm0 # 0xe1038
addsd 0x3a5c7(%rip), %xmm0 # 0xe0fd8
callq 0x29100
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x3a57e(%rip), %xmm0 # 0xe0fa8
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %rdx, (%r14,%rbx,8)
incq %rbx
cmpq $0x18, %rbx
jne 0xa69fa
movb $0x1, 0xb62397(%rip) # 0xc08de0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
|
wt_init:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 10h
mov [rsp+20h+var_20], 0
lea rdi, reshash
xor ebx, ebx
mov esi, 108h
mov edx, 1
xor ecx, ecx
mov r8d, 10h
xor r9d, r9d
call lf_hash_init
lea rax, wt_resource_create
mov cs:qword_C08B50, rax
lea rax, wt_resource_destroy
mov cs:qword_C08B58, rax
lea rax, wt_resource_init
mov cs:qword_C08B68, rax
xorpd xmm0, xmm0
lea rax, wt_wait_stats
movapd xmmword ptr [rax], xmm0
movapd xmmword ptr [rax+10h], xmm0
movapd xmmword ptr [rax+20h], xmm0
movapd xmmword ptr [rax+30h], xmm0
movapd xmmword ptr [rax+40h], xmm0
movapd xmmword ptr [rax+50h], xmm0
mov [rax+60h], ebx
lea rdi, wt_cycle_stats
mov edx, 108h
xor esi, esi
call _memset
lea rax, wt_success_stats
mov [rax], ebx
lea r14, wt_wait_table
loc_A69FA:
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
mulsd xmm0, cs:qword_E1038
addsd xmm0, cs:qword_E0FD8
call _exp
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 3Fh
subsd xmm0, cs:qword_E0FA8
cvttsd2si rdx, xmm0
and rdx, rcx
or rdx, rax
mov [r14+rbx*8], rdx
inc rbx
cmp rbx, 18h
jnz short loc_A69FA
mov cs:wt_init_done, 1
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
|
long long wt_init()
{
long long v0; // rbx
long long result; // rax
v0 = 0LL;
lf_hash_init((long long)&reshash, 264, 1, 0, 16, 0LL, 0LL);
qword_C08B50 = (long long)wt_resource_create;
qword_C08B58 = (long long)wt_resource_destroy;
qword_C08B68 = (long long)wt_resource_init;
wt_wait_stats = 0LL;
*((_OWORD *)&wt_wait_stats + 1) = 0LL;
*((_OWORD *)&wt_wait_stats + 2) = 0LL;
*((_OWORD *)&wt_wait_stats + 3) = 0LL;
*((_OWORD *)&wt_wait_stats + 4) = 0LL;
*((_OWORD *)&wt_wait_stats + 5) = 0LL;
*((_DWORD *)&wt_wait_stats + 24) = 0;
memset(&wt_cycle_stats, 0LL, 264LL);
wt_success_stats = 0;
do
{
result = (unsigned int)(int)exp((double)(int)v0 * 0.7786893530515815 + 0.0);
wt_wait_table[v0++] = result;
}
while ( v0 != 24 );
wt_init_done = 1;
return result;
}
|
wt_init:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV qword ptr [RSP],0x0
LEA RDI,[0xd08ad0]
XOR EBX,EBX
MOV ESI,0x108
MOV EDX,0x1
XOR ECX,ECX
MOV R8D,0x10
XOR R9D,R9D
CALL 0x001a5c14
LEA RAX,[0x1a6a52]
MOV qword ptr [0x00d08b50],RAX
LEA RAX,[0x1a6aec]
MOV qword ptr [0x00d08b58],RAX
LEA RAX,[0x1a6b56]
MOV qword ptr [0x00d08b68],RAX
XORPD XMM0,XMM0
LEA RAX,[0xd08ba0]
MOVAPD xmmword ptr [RAX],XMM0
MOVAPD xmmword ptr [RAX + 0x10],XMM0
MOVAPD xmmword ptr [RAX + 0x20],XMM0
MOVAPD xmmword ptr [RAX + 0x30],XMM0
MOVAPD xmmword ptr [RAX + 0x40],XMM0
MOVAPD xmmword ptr [RAX + 0x50],XMM0
MOV dword ptr [RAX + 0x60],EBX
LEA RDI,[0xd08c10]
MOV EDX,0x108
XOR ESI,ESI
CALL 0x001292c0
LEA RAX,[0xd08d18]
MOV dword ptr [RAX],EBX
LEA R14,[0xd08d20]
LAB_001a69fa:
XORPS XMM0,XMM0
CVTSI2SD XMM0,EBX
MULSD XMM0,qword ptr [0x001e1038]
ADDSD XMM0,qword ptr [0x001e0fd8]
CALL 0x00129100
CVTTSD2SI RAX,XMM0
MOV RCX,RAX
SAR RCX,0x3f
SUBSD XMM0,qword ptr [0x001e0fa8]
CVTTSD2SI RDX,XMM0
AND RDX,RCX
OR RDX,RAX
MOV qword ptr [R14 + RBX*0x8],RDX
INC RBX
CMP RBX,0x18
JNZ 0x001a69fa
MOV byte ptr [0x00d08de0],0x1
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void wt_init(void)
{
double dVar1;
long lVar2;
lVar2 = 0;
lf_hash_init(reshash,0x108,1,0,0x10,0,0);
reshash._128_8_ = wt_resource_create;
reshash._136_8_ = wt_resource_destroy;
reshash._152_8_ = wt_resource_init;
_wt_wait_stats = 0;
uRam0000000000d08ba8 = 0;
_DAT_00d08bb0 = 0;
uRam0000000000d08bb8 = 0;
_DAT_00d08bc0 = 0;
uRam0000000000d08bc8 = 0;
_DAT_00d08bd0 = 0;
uRam0000000000d08bd8 = 0;
_DAT_00d08be0 = 0;
uRam0000000000d08be8 = 0;
_DAT_00d08bf0 = 0;
uRam0000000000d08bf8 = 0;
_DAT_00d08c00 = 0;
memset(wt_cycle_stats,0,0x108);
wt_success_stats = 0;
do {
dVar1 = exp((double)(int)lVar2 * _DAT_001e1038 + _DAT_001e0fd8);
(&wt_wait_table)[lVar2] = (long)(dVar1 - _DAT_001e0fa8) & (long)dVar1 >> 0x3f | (long)dVar1;
lVar2 = lVar2 + 1;
} while (lVar2 != 0x18);
wt_init_done = 1;
return;
}
|
|
59,442
|
my_hash_sort_ucs2_bin
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_hash_sort_ucs2_bin(CHARSET_INFO *cs,
const uchar *key, size_t len, ulong *nr1, ulong *nr2)
{
size_t lengthsp= my_lengthsp_mb2(cs, (const char *) key, len);
my_hash_sort_ucs2_nopad_bin(cs, key, lengthsp, nr1, nr2);
}
|
O3
|
c
|
my_hash_sort_ucs2_bin:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0x84a49
cmpb $0x20, -0x1(%rsi,%rax)
jne 0x84a41
leaq -0x2(%rax), %rdx
cmpb $0x0, -0x2(%rsi,%rax)
je 0x84a26
movq (%rcx), %rdx
movq (%r8), %rdi
jmp 0x84a55
movq (%rcx), %rdx
movq (%r8), %rdi
cmpq $0x1, %rax
jne 0x84a88
pushq %rbp
movq %rsp, %rbp
addq %rsi, %rax
movl %edx, %r9d
andl $0x3f, %r9d
addq %rdi, %r9
movzbl (%rsi), %r10d
imulq %r9, %r10
movq %rdx, %r9
shlq $0x8, %r9
addq %r10, %r9
xorq %r9, %rdx
addq $0x3, %rdi
incq %rsi
cmpq %rax, %rsi
jb 0x84a5c
popq %rbp
movq %rdx, (%rcx)
movq %rdi, (%r8)
retq
|
my_hash_sort_ucs2_bin:
mov rax, rdx
cmp rdx, 2
jl short loc_84A49
cmp byte ptr [rsi+rax-1], 20h ; ' '
jnz short loc_84A41
lea rdx, [rax-2]
cmp byte ptr [rsi+rax-2], 0
jz short my_hash_sort_ucs2_bin
loc_84A41:
mov rdx, [rcx]
mov rdi, [r8]
jmp short loc_84A55
loc_84A49:
mov rdx, [rcx]
mov rdi, [r8]
cmp rax, 1
jnz short loc_84A88
loc_84A55:
push rbp
mov rbp, rsp
add rax, rsi
loc_84A5C:
mov r9d, edx
and r9d, 3Fh
add r9, rdi
movzx r10d, byte ptr [rsi]
imul r10, r9
mov r9, rdx
shl r9, 8
add r9, r10
xor rdx, r9
add rdi, 3
inc rsi
cmp rsi, rax
jb short loc_84A5C
pop rbp
loc_84A88:
mov [rcx], rdx
mov [r8], rdi
retn
|
unsigned long long my_hash_sort_ucs2_bin(
long long a1,
unsigned long long a2,
long long a3,
long long *a4,
long long *a5)
{
unsigned long long result; // rax
long long v6; // rdx
long long v7; // rdi
while ( 1 )
{
result = a3;
if ( a3 < 2 )
break;
if ( *(_BYTE *)(a2 + a3 - 1) == 32 )
{
a3 -= 2LL;
if ( !*(_BYTE *)(a2 + result - 2) )
continue;
}
v6 = *a4;
v7 = *a5;
goto LABEL_6;
}
v6 = *a4;
v7 = *a5;
if ( result != 1 )
goto LABEL_8;
LABEL_6:
result += a2;
do
{
v6 ^= (v7 + (v6 & 0x3F)) * *(unsigned __int8 *)a2 + (v6 << 8);
v7 += 3LL;
++a2;
}
while ( a2 < result );
LABEL_8:
*a4 = v6;
*a5 = v7;
return result;
}
|
my_hash_sort_ucs2_bin:
MOV RAX,RDX
CMP RDX,0x2
JL 0x00184a49
CMP byte ptr [RSI + RAX*0x1 + -0x1],0x20
JNZ 0x00184a41
LEA RDX,[RAX + -0x2]
CMP byte ptr [RSI + RAX*0x1 + -0x2],0x0
JZ 0x00184a26
LAB_00184a41:
MOV RDX,qword ptr [RCX]
MOV RDI,qword ptr [R8]
JMP 0x00184a55
LAB_00184a49:
MOV RDX,qword ptr [RCX]
MOV RDI,qword ptr [R8]
CMP RAX,0x1
JNZ 0x00184a88
LAB_00184a55:
PUSH RBP
MOV RBP,RSP
ADD RAX,RSI
LAB_00184a5c:
MOV R9D,EDX
AND R9D,0x3f
ADD R9,RDI
MOVZX R10D,byte ptr [RSI]
IMUL R10,R9
MOV R9,RDX
SHL R9,0x8
ADD R9,R10
XOR RDX,R9
ADD RDI,0x3
INC RSI
CMP RSI,RAX
JC 0x00184a5c
POP RBP
LAB_00184a88:
MOV qword ptr [RCX],RDX
MOV qword ptr [R8],RDI
RET
|
void my_hash_sort_ucs2_bin
(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
ulong uVar3;
long lVar4;
do {
lVar2 = param_3;
if (lVar2 < 2) {
uVar3 = *param_4;
lVar4 = *param_5;
if (lVar2 != 1) goto LAB_00184a88;
goto LAB_00184a55;
}
} while ((param_2[lVar2 + -1] == 0x20) && (param_3 = lVar2 + -2, param_2[lVar2 + -2] == 0));
uVar3 = *param_4;
lVar4 = *param_5;
LAB_00184a55:
pbVar1 = param_2 + lVar2;
do {
uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar4);
lVar4 = lVar4 + 3;
param_2 = param_2 + 1;
} while (param_2 < pbVar1);
LAB_00184a88:
*param_4 = uVar3;
*param_5 = lVar4;
return;
}
|
|
59,443
|
LefDefParser::defiOrdered::Init()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiScanchain.cpp
|
void defiOrdered::Init() {
num_ = 0;
allocated_ = 32;
inst_ = (char**)malloc(sizeof(char*)*32);
in_ = (char**)malloc(sizeof(char*)*32);
out_ = (char**)malloc(sizeof(char*)*32);
bits_ = (int*)malloc(sizeof(int)*32);
}
|
O0
|
cpp
|
LefDefParser::defiOrdered::Init():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x0, (%rax)
movl $0x20, 0x4(%rax)
movl $0x100, %edi # imm = 0x100
callq 0x72d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movl $0x100, %edi # imm = 0x100
callq 0x72d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movl $0x100, %edi # imm = 0x100
callq 0x72d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movl $0x80, %edi
callq 0x72d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
addq $0x18, %rsp
retq
nopl (%rax)
|
_ZN12LefDefParser11defiOrdered4InitEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_10], rax
mov dword ptr [rax], 0
mov dword ptr [rax+4], 20h ; ' '
mov edi, 100h
call _malloc
mov rcx, rax
mov rax, [rsp+18h+var_10]
mov [rax+8], rcx
mov edi, 100h
call _malloc
mov rcx, rax
mov rax, [rsp+18h+var_10]
mov [rax+10h], rcx
mov edi, 100h
call _malloc
mov rcx, rax
mov rax, [rsp+18h+var_10]
mov [rax+18h], rcx
mov edi, 80h
call _malloc
mov rcx, rax
mov rax, [rsp+18h+var_10]
mov [rax+20h], rcx
add rsp, 18h
retn
|
LefDefParser::defiOrdered * LefDefParser::defiOrdered::Init(LefDefParser::defiOrdered *this)
{
long long v1; // rcx
LefDefParser::defiOrdered *result; // rax
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 32;
*((_QWORD *)this + 1) = malloc(256LL);
*((_QWORD *)this + 2) = malloc(256LL);
*((_QWORD *)this + 3) = malloc(256LL);
v1 = malloc(128LL);
result = this;
*((_QWORD *)this + 4) = v1;
return result;
}
|
Init:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RAX],0x0
MOV dword ptr [RAX + 0x4],0x20
MOV EDI,0x100
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV EDI,0x100
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV EDI,0x100
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x18],RCX
MOV EDI,0x80
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x20],RCX
ADD RSP,0x18
RET
|
/* LefDefParser::defiOrdered::Init() */
void __thiscall LefDefParser::defiOrdered::Init(defiOrdered *this)
{
void *pvVar1;
*(int4 *)this = 0;
*(int4 *)(this + 4) = 0x20;
pvVar1 = malloc(0x100);
*(void **)(this + 8) = pvVar1;
pvVar1 = malloc(0x100);
*(void **)(this + 0x10) = pvVar1;
pvVar1 = malloc(0x100);
*(void **)(this + 0x18) = pvVar1;
pvVar1 = malloc(0x80);
*(void **)(this + 0x20) = pvVar1;
return;
}
|
|
59,444
|
llama_data_write_buffer::write_tensor_data(ggml_tensor const*, unsigned long, unsigned long)
|
monkey531[P]llama/src/llama-context.cpp
|
void write_tensor_data(const struct ggml_tensor * tensor, size_t offset, size_t size) override {
if (size > buf_size) {
throw std::runtime_error("unexpectedly reached end of buffer");
}
ggml_backend_tensor_get(tensor, ptr, offset, size);
ptr += size;
size_written += size;
buf_size -= size;
}
|
O3
|
cpp
|
llama_data_write_buffer::write_tensor_data(ggml_tensor const*, unsigned long, unsigned long):
pushq %r14
pushq %rbx
pushq %rax
cmpq %rcx, 0x10(%rdi)
jb 0xa0235
movq %rcx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
movq %rsi, %rdi
movq %rax, %rsi
callq 0x68870
addq %rbx, 0x8(%r14)
addq %rbx, 0x18(%r14)
subq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x65cb0
movq %rax, %rbx
leaq 0x7492b(%rip), %rsi # 0x114b74
movq %rax, %rdi
callq 0x655d0
movq 0xbcd98(%rip), %rsi # 0x15cff0
movq 0xbca91(%rip), %rdx # 0x15ccf0
movq %rbx, %rdi
callq 0x6b270
movq %rax, %r14
movq %rbx, %rdi
callq 0x66d40
movq %r14, %rdi
callq 0x6b5d0
|
_ZN23llama_data_write_buffer17write_tensor_dataEPK11ggml_tensormm:
push r14
push rbx
push rax
cmp [rdi+10h], rcx
jb short loc_A0235
mov rbx, rcx
mov r14, rdi
mov rax, [rdi+8]
mov rdi, rsi
mov rsi, rax
call _ggml_backend_tensor_get
add [r14+8], rbx
add [r14+18h], rbx
sub [r14+10h], rbx
add rsp, 8
pop rbx
pop r14
retn
loc_A0235:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUnexpectedlyRe; "unexpectedly reached end of buffer"
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, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
long long llama_data_write_buffer::write_tensor_data(_QWORD *a1, long long a2, long long a3, unsigned long long a4)
{
long long result; // rax
std::runtime_error *exception; // rbx
if ( a1[2] < a4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "unexpectedly reached end of buffer");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
result = ggml_backend_tensor_get(a2, a1[1]);
a1[1] += a4;
a1[3] += a4;
a1[2] -= a4;
return result;
}
|
write_tensor_data:
PUSH R14
PUSH RBX
PUSH RAX
CMP qword ptr [RDI + 0x10],RCX
JC 0x001a0235
MOV RBX,RCX
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV RDI,RSI
MOV RSI,RAX
CALL 0x00168870
ADD qword ptr [R14 + 0x8],RBX
ADD qword ptr [R14 + 0x18],RBX
SUB qword ptr [R14 + 0x10],RBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001a0235:
MOV EDI,0x10
CALL 0x00165cb0
MOV RBX,RAX
LAB_001a0242:
LEA RSI,[0x214b74]
MOV RDI,RAX
CALL 0x001655d0
LAB_001a0251:
MOV RSI,qword ptr [0x0025cff0]
MOV RDX,qword ptr [0x0025ccf0]
MOV RDI,RBX
CALL 0x0016b270
|
/* llama_data_write_buffer::write_tensor_data(ggml_tensor const*, unsigned long, unsigned long) */
void __thiscall
llama_data_write_buffer::write_tensor_data
(llama_data_write_buffer *this,ggml_tensor *param_1,ulong param_2,ulong param_3)
{
runtime_error *this_00;
if (param_3 <= *(ulong *)(this + 0x10)) {
ggml_backend_tensor_get(param_1,*(int8 *)(this + 8));
*(ulong *)(this + 8) = *(long *)(this + 8) + param_3;
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + param_3;
*(ulong *)(this + 0x10) = *(long *)(this + 0x10) - param_3;
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001a0242 to 001a0250 has its CatchHandler @ 001a0267 */
std::runtime_error::runtime_error(this_00,"unexpectedly reached end of buffer");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0025cff0,PTR__runtime_error_0025ccf0);
}
|
|
59,445
|
httplib::detail::SocketStream::is_writable() const
|
nickolajgrishuk[P]metricz-cpp/build_O3/_deps/httplib-src/httplib.h
|
inline bool SocketStream::is_writable() const {
return select_write(sock_, write_timeout_sec_, write_timeout_usec_) > 0 &&
is_socket_alive(sock_);
}
|
O3
|
c
|
httplib::detail::SocketStream::is_writable() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movl 0x8(%rdi), %ebx
cmpl $0x3ff, %ebx # imm = 0x3FF
jle 0xa5d2
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movl %ebx, %edi
movq %r14, %rsi
movl $0x2, %ecx
callq 0x81b0
movq %rax, %r15
testq %rax, %rax
jns 0xa5c7
callq 0x8050
cmpl $0x4, (%rax)
je 0xa5a1
testq %r15, %r15
setg %al
jmp 0xa6f5
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, 0x70(%r15)
movaps %xmm0, 0x60(%r15)
movaps %xmm0, 0x50(%r15)
movaps %xmm0, 0x40(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leal 0x3f(%rbx), %eax
testl %ebx, %ebx
cmovnsl %ebx, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %ebx, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
orq %rdx, 0x10(%rsp,%rax,8)
movups 0x20(%rdi), %xmm0
movq %rsp, %r12
movaps %xmm0, (%r12)
incl %ebx
movl %ebx, %edi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x8540
testl %eax, %eax
jns 0xa659
callq 0x8050
cmpl $0x4, (%rax)
je 0xa635
jmp 0xa6f3
je 0xa6f3
movl 0x8(%r14), %ebx
cmpl $0x3ff, %ebx # imm = 0x3FF
jg 0xa59c
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x70(%r14)
movaps %xmm0, 0x60(%r14)
movaps %xmm0, 0x50(%r14)
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leal 0x3f(%rbx), %eax
testl %ebx, %ebx
cmovnsl %ebx, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %ebx, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
orq %rdx, 0x10(%rsp,%rax,8)
leal 0x1(%rbx), %ebp
movq %rsp, %r15
movaps %xmm0, (%r15)
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x8540
testl %eax, %eax
jns 0xa705
callq 0x8050
cmpl $0x4, (%rax)
je 0xa6cb
cmpl $0x9, (%rax)
jne 0xa59c
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jne 0xa59c
movb $0x1, %al
jmp 0xa6f5
nop
|
_ZNK7httplib6detail12SocketStream11is_writableEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 90h
mov ebx, [rdi+8]
cmp ebx, 3FFh
jle short loc_A5D2
loc_A59C:
lea r14, [rsp+0B8h+var_A8]
loc_A5A1:
mov edx, 1
mov edi, ebx
mov rsi, r14
mov ecx, 2
call _recv
mov r15, rax
test rax, rax
jns short loc_A5C7
call ___errno_location
cmp dword ptr [rax], 4
jz short loc_A5A1
loc_A5C7:
test r15, r15
setnle al
jmp loc_A6F5
loc_A5D2:
mov r14, rdi
xorps xmm0, xmm0
lea r15, [rsp+0B8h+var_A8]
movaps xmmword ptr [r15+70h], xmm0
movaps xmmword ptr [r15+60h], xmm0
movaps xmmword ptr [r15+50h], xmm0
movaps xmmword ptr [r15+40h], xmm0
movaps xmmword ptr [r15+30h], xmm0
movaps xmmword ptr [r15+20h], xmm0
movaps xmmword ptr [r15+10h], xmm0
movaps xmmword ptr [r15], xmm0
lea eax, [rbx+3Fh]
test ebx, ebx
cmovns eax, ebx
mov edx, eax
and edx, 0FFFFFFC0h
mov ecx, ebx
sub ecx, edx
mov edx, 1
shl rdx, cl
sar eax, 6
cdqe
or [rsp+rax*8+0B8h+var_A8], rdx
movups xmm0, xmmword ptr [rdi+20h]
mov r12, rsp
movaps xmmword ptr [r12], xmm0
inc ebx
loc_A635:
mov edi, ebx
xor esi, esi
mov rdx, r15
xor ecx, ecx
mov r8, r12
call _select
test eax, eax
jns short loc_A659
call ___errno_location
cmp dword ptr [rax], 4
jz short loc_A635
jmp loc_A6F3
loc_A659:
jz loc_A6F3
mov ebx, [r14+8]
cmp ebx, 3FFh
jg loc_A59C
xorps xmm0, xmm0
lea r14, [rsp+0B8h+var_A8]
movaps xmmword ptr [r14+70h], xmm0
movaps xmmword ptr [r14+60h], xmm0
movaps xmmword ptr [r14+50h], xmm0
movaps xmmword ptr [r14+40h], xmm0
movaps xmmword ptr [r14+30h], xmm0
movaps xmmword ptr [r14+20h], xmm0
movaps xmmword ptr [r14+10h], xmm0
movaps xmmword ptr [r14], xmm0
lea eax, [rbx+3Fh]
test ebx, ebx
cmovns eax, ebx
mov edx, eax
and edx, 0FFFFFFC0h
mov ecx, ebx
sub ecx, edx
mov edx, 1
shl rdx, cl
sar eax, 6
cdqe
or [rsp+rax*8+0B8h+var_A8], rdx
lea ebp, [rbx+1]
mov r15, rsp
movaps xmmword ptr [r15], xmm0
loc_A6CB:
mov edi, ebp
mov rsi, r14
xor edx, edx
xor ecx, ecx
mov r8, r15
call _select
test eax, eax
jns short loc_A705
call ___errno_location
cmp dword ptr [rax], 4
jz short loc_A6CB
cmp dword ptr [rax], 9
jnz loc_A59C
loc_A6F3:
xor eax, eax
loc_A6F5:
add rsp, 90h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_A705:
jnz loc_A59C
mov al, 1
jmp short loc_A6F5
|
bool httplib::detail::SocketStream::is_writable(
httplib::detail::SocketStream *this,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
char v6; // al
int v7; // ebx
long long v8; // rdx
long long v9; // rcx
long long v10; // r8
long long v11; // r9
long long v12; // r15
unsigned int v14; // ebx
int v15; // eax
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
unsigned int v20; // ebp
int v21; // eax
long long v22; // rdx
long long v23; // rcx
long long v24; // r8
long long v25; // r9
_DWORD *v26; // rax
__int128 v27; // [rsp+0h] [rbp-B8h] BYREF
__int128 v28; // [rsp+10h] [rbp-A8h] BYREF
__int128 v29; // [rsp+20h] [rbp-98h]
__int128 v30; // [rsp+30h] [rbp-88h]
__int128 v31; // [rsp+40h] [rbp-78h]
__int128 v32; // [rsp+50h] [rbp-68h]
__int128 v33; // [rsp+60h] [rbp-58h]
__int128 v34; // [rsp+70h] [rbp-48h]
__int128 v35; // [rsp+80h] [rbp-38h]
v7 = *((_DWORD *)this + 2);
if ( v7 <= 1023 )
{
v35 = 0LL;
v34 = 0LL;
v33 = 0LL;
v32 = 0LL;
v31 = 0LL;
v30 = 0LL;
v29 = 0LL;
v28 = 0LL;
*((_QWORD *)&v28 + v7 / 64) |= 1LL << (v7 - (v6 & 0xC0u));
v27 = *((_OWORD *)this + 2);
v14 = v7 + 1;
while ( 1 )
{
v15 = ((long long ( *)(_QWORD, _QWORD, __int128 *, _QWORD, __int128 *, long long))select)(
v14,
0LL,
&v28,
0LL,
&v27,
a6);
if ( v15 >= 0 )
break;
if ( *(_DWORD *)__errno_location(
v14,
0LL,
v16,
v17,
v18,
v19,
v27,
*((_QWORD *)&v27 + 1),
v28,
*((_QWORD *)&v28 + 1),
v29,
*((_QWORD *)&v29 + 1),
v30,
*((_QWORD *)&v30 + 1),
v31,
*((_QWORD *)&v31 + 1),
v32,
*((_QWORD *)&v32 + 1)) != 4 )
return 0;
}
if ( !v15 )
return 0;
v7 = *((_DWORD *)this + 2);
if ( v7 > 1023 )
goto LABEL_2;
v35 = 0LL;
v34 = 0LL;
v33 = 0LL;
v32 = 0LL;
v31 = 0LL;
v30 = 0LL;
v29 = 0LL;
v28 = 0LL;
*((_QWORD *)&v28 + v7 / 64) |= 1LL << (v7 - (v15 & 0xC0u));
v20 = v7 + 1;
v27 = 0LL;
while ( 1 )
{
v21 = ((long long ( *)(_QWORD, __int128 *, _QWORD, _QWORD, __int128 *, long long))select)(
v20,
&v28,
0LL,
0LL,
&v27,
v19);
if ( v21 >= 0 )
break;
v26 = (_DWORD *)__errno_location(
v20,
&v28,
v22,
v23,
v24,
v25,
v27,
*((_QWORD *)&v27 + 1),
v28,
*((_QWORD *)&v28 + 1),
v29,
*((_QWORD *)&v29 + 1),
v30,
*((_QWORD *)&v30 + 1),
v31,
*((_QWORD *)&v31 + 1),
v32,
*((_QWORD *)&v32 + 1));
if ( *v26 != 4 )
{
if ( *v26 != 9 )
goto LABEL_2;
return 0;
}
}
if ( v21 )
goto LABEL_2;
return 1;
}
else
{
do
LABEL_2:
v12 = recv((unsigned int)v7, &v28, 1LL, 2LL);
while ( v12 < 0
&& *(_DWORD *)__errno_location(
(unsigned int)v7,
&v28,
v8,
v9,
v10,
v11,
v27,
*((_QWORD *)&v27 + 1),
v28,
*((_QWORD *)&v28 + 1),
v29,
*((_QWORD *)&v29 + 1),
v30,
*((_QWORD *)&v30 + 1),
v31,
*((_QWORD *)&v31 + 1),
v32,
*((_QWORD *)&v32 + 1)) == 4 );
return v12 > 0;
}
}
|
is_writable:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x90
MOV EBX,dword ptr [RDI + 0x8]
CMP EBX,0x3ff
JLE 0x0010a5d2
LAB_0010a59c:
LEA R14,[RSP + 0x10]
LAB_0010a5a1:
MOV EDX,0x1
MOV EDI,EBX
MOV RSI,R14
MOV ECX,0x2
CALL 0x001081b0
MOV R15,RAX
TEST RAX,RAX
JNS 0x0010a5c7
CALL 0x00108050
CMP dword ptr [RAX],0x4
JZ 0x0010a5a1
LAB_0010a5c7:
TEST R15,R15
SETG AL
JMP 0x0010a6f5
LAB_0010a5d2:
MOV R14,RDI
XORPS XMM0,XMM0
LEA R15,[RSP + 0x10]
MOVAPS xmmword ptr [R15 + 0x70],XMM0
MOVAPS xmmword ptr [R15 + 0x60],XMM0
MOVAPS xmmword ptr [R15 + 0x50],XMM0
MOVAPS xmmword ptr [R15 + 0x40],XMM0
MOVAPS xmmword ptr [R15 + 0x30],XMM0
MOVAPS xmmword ptr [R15 + 0x20],XMM0
MOVAPS xmmword ptr [R15 + 0x10],XMM0
MOVAPS xmmword ptr [R15],XMM0
LEA EAX,[RBX + 0x3f]
TEST EBX,EBX
CMOVNS EAX,EBX
MOV EDX,EAX
AND EDX,0xffffffc0
MOV ECX,EBX
SUB ECX,EDX
MOV EDX,0x1
SHL RDX,CL
SAR EAX,0x6
CDQE
OR qword ptr [RSP + RAX*0x8 + 0x10],RDX
MOVUPS XMM0,xmmword ptr [RDI + 0x20]
MOV R12,RSP
MOVAPS xmmword ptr [R12],XMM0
INC EBX
LAB_0010a635:
MOV EDI,EBX
XOR ESI,ESI
MOV RDX,R15
XOR ECX,ECX
MOV R8,R12
CALL 0x00108540
TEST EAX,EAX
JNS 0x0010a659
CALL 0x00108050
CMP dword ptr [RAX],0x4
JZ 0x0010a635
JMP 0x0010a6f3
LAB_0010a659:
JZ 0x0010a6f3
MOV EBX,dword ptr [R14 + 0x8]
CMP EBX,0x3ff
JG 0x0010a59c
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14 + 0x70],XMM0
MOVAPS xmmword ptr [R14 + 0x60],XMM0
MOVAPS xmmword ptr [R14 + 0x50],XMM0
MOVAPS xmmword ptr [R14 + 0x40],XMM0
MOVAPS xmmword ptr [R14 + 0x30],XMM0
MOVAPS xmmword ptr [R14 + 0x20],XMM0
MOVAPS xmmword ptr [R14 + 0x10],XMM0
MOVAPS xmmword ptr [R14],XMM0
LEA EAX,[RBX + 0x3f]
TEST EBX,EBX
CMOVNS EAX,EBX
MOV EDX,EAX
AND EDX,0xffffffc0
MOV ECX,EBX
SUB ECX,EDX
MOV EDX,0x1
SHL RDX,CL
SAR EAX,0x6
CDQE
OR qword ptr [RSP + RAX*0x8 + 0x10],RDX
LEA EBP,[RBX + 0x1]
MOV R15,RSP
MOVAPS xmmword ptr [R15],XMM0
LAB_0010a6cb:
MOV EDI,EBP
MOV RSI,R14
XOR EDX,EDX
XOR ECX,ECX
MOV R8,R15
CALL 0x00108540
TEST EAX,EAX
JNS 0x0010a705
CALL 0x00108050
CMP dword ptr [RAX],0x4
JZ 0x0010a6cb
CMP dword ptr [RAX],0x9
JNZ 0x0010a59c
LAB_0010a6f3:
XOR EAX,EAX
LAB_0010a6f5:
ADD RSP,0x90
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0010a705:
JNZ 0x0010a59c
MOV AL,0x1
JMP 0x0010a6f5
|
/* httplib::detail::SocketStream::is_writable() const */
bool __thiscall httplib::detail::SocketStream::is_writable(SocketStream *this)
{
int iVar1;
ssize_t sVar2;
int *piVar3;
int __fd;
timeval local_b8;
fd_set local_a8;
__fd = *(int *)(this + 8);
if (__fd < 0x400) {
local_a8.fds_bits[0xe] = 0;
local_a8.fds_bits[0xf] = 0;
local_a8.fds_bits[0xc] = 0;
local_a8.fds_bits[0xd] = 0;
local_a8.fds_bits[10] = 0;
local_a8.fds_bits[0xb] = 0;
local_a8.fds_bits[8] = 0;
local_a8.fds_bits[9] = 0;
local_a8.fds_bits[6] = 0;
local_a8.fds_bits[7] = 0;
local_a8.fds_bits[4] = 0;
local_a8.fds_bits[5] = 0;
local_a8.fds_bits[2] = 0;
local_a8.fds_bits[3] = 0;
local_a8.fds_bits[0] = 0;
local_a8.fds_bits[1] = 0;
iVar1 = __fd + 0x3f;
if (-1 < __fd) {
iVar1 = __fd;
}
local_a8.fds_bits[iVar1 >> 6] =
local_a8.fds_bits[iVar1 >> 6] | 1L << ((byte)(__fd % 0x40) & 0x3f);
local_b8.tv_sec = *(__time_t *)(this + 0x20);
local_b8.tv_usec = *(__suseconds_t *)(this + 0x28);
while( true ) {
iVar1 = select(__fd + 1,(fd_set *)0x0,&local_a8,(fd_set *)0x0,&local_b8);
if (-1 < iVar1) break;
piVar3 = __errno_location();
if (*piVar3 != 4) {
return false;
}
}
if (iVar1 == 0) {
return false;
}
__fd = *(int *)(this + 8);
if (__fd < 0x400) {
local_a8.fds_bits[0xe] = 0;
local_a8.fds_bits[0xf] = 0;
local_a8.fds_bits[0xc] = 0;
local_a8.fds_bits[0xd] = 0;
local_a8.fds_bits[10] = 0;
local_a8.fds_bits[0xb] = 0;
local_a8.fds_bits[8] = 0;
local_a8.fds_bits[9] = 0;
local_a8.fds_bits[6] = 0;
local_a8.fds_bits[7] = 0;
local_a8.fds_bits[4] = 0;
local_a8.fds_bits[5] = 0;
local_a8.fds_bits[2] = 0;
local_a8.fds_bits[3] = 0;
local_a8.fds_bits[0] = 0;
local_a8.fds_bits[1] = 0;
iVar1 = __fd + 0x3f;
if (-1 < __fd) {
iVar1 = __fd;
}
local_a8.fds_bits[iVar1 >> 6] =
local_a8.fds_bits[iVar1 >> 6] | 1L << ((byte)(__fd % 0x40) & 0x3f);
local_b8.tv_sec = 0;
local_b8.tv_usec = 0;
do {
iVar1 = select(__fd + 1,&local_a8,(fd_set *)0x0,(fd_set *)0x0,&local_b8);
if (-1 < iVar1) {
if (iVar1 == 0) {
return true;
}
goto LAB_0010a59c;
}
piVar3 = __errno_location();
} while (*piVar3 == 4);
if (*piVar3 == 9) {
return false;
}
}
}
LAB_0010a59c:
do {
sVar2 = recv(__fd,&local_a8,1,2);
if (-1 < sVar2) break;
piVar3 = __errno_location();
} while (*piVar3 == 4);
return 0 < sVar2;
}
|
|
59,446
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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/minja.hpp
|
T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
}
|
O2
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x89866
testb %al, %al
je 0x9cb58
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x82178
movq %r14, %rdi
movq %r12, %rsi
callq 0x89518
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7fdbc
leaq 0x8(%rsp), %rdi
callq 0x7f19a
jmp 0x9cb63
movq %rbx, %rdi
movq %r12, %rsi
callq 0x26fd0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7f19a
movq %rbx, %rdi
callq 0x27660
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_S8_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r12, rcx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz short loc_9CB58
lea r12, [rsp+78h+var_70]
mov rdi, r12
mov rsi, r15
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r14; this
mov rsi, r12; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx
mov rsi, rax
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rdi, [rsp+78h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_9CB63
loc_9CB58:
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&)
loc_9CB63:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, minja::Value *a2, long long a3, long long a4)
{
minja::Value *v6; // rax
_BYTE v8[112]; // [rsp+8h] [rbp-70h] BYREF
if ( minja::Value::contains((long long)a2) )
{
minja::Value::Value((long long)v8, a3);
v6 = (minja::Value *)minja::Value::at(a2, (const minja::Value *)v8);
minja::Value::get<std::string>(a1, v6);
minja::Value::~Value((minja::Value *)v8);
}
else
{
std::string::basic_string(a1, a4);
}
return a1;
}
|
get<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x00189866
TEST AL,AL
JZ 0x0019cb58
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R15
CALL 0x00182178
LAB_0019cb36:
MOV RDI,R14
MOV RSI,R12
CALL 0x00189518
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017fdbc
LAB_0019cb4c:
LEA RDI,[RSP + 0x8]
CALL 0x0017f19a
JMP 0x0019cb63
LAB_0019cb58:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00126fd0
LAB_0019cb63:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >(std::__cxx11::string const&,
std::__cxx11::string) const */
string * minja::Value::get<std::__cxx11::string>
(string *param_1,string *param_2,string *param_3,string *param_4)
{
char cVar1;
Value local_70 [80];
cVar1 = contains(param_2);
if (cVar1 == '\0') {
std::__cxx11::string::string(param_1,param_4);
}
else {
Value(local_70,param_3);
/* try { // try from 0019cb36 to 0019cb4b has its CatchHandler @ 0019cb72 */
at((Value *)param_2,local_70);
get<std::__cxx11::string>();
~Value(local_70);
}
return param_1;
}
|
|
59,447
|
reset_events_statements_current()
|
eloqsql/storage/perfschema/pfs_events_statements.cc
|
void reset_events_statements_current(void)
{
global_thread_container.apply_all(fct_reset_events_statements_current);
}
|
O3
|
cpp
|
reset_events_statements_current():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
leaq 0x38a326(%rip), %rax # 0x3cf2f8
movl (%rax), %ecx
imulq $0x590, %rcx, %rsi # imm = 0x590
xorl %edi, %edi
leaq 0x383a7c(%rip), %r8 # 0x3c8a60
movabsq $0x1702e05c0b81702f, %r9 # imm = 0x1702E05C0B81702F
movabsq $0x7ffffffffffffe, %r10 # imm = 0x7FFFFFFFFFFFFE
movdqa 0x38050(%rip), %xmm0 # 0x7d050
movdqa 0x38058(%rip), %xmm1 # 0x7d060
pcmpeqd %xmm2, %xmm2
movq 0xa8(%r8,%rdi,8), %rax
testq %rax, %rax
je 0x4511d
movq 0x50(%rax), %rdx
testq %rdx, %rdx
jle 0x4511d
movq 0x48(%rax), %r11
imulq $0x1640, %rdx, %rbx # imm = 0x1640
addq %r11, %rbx
testl %ecx, %ecx
je 0x4510d
movq 0x14c0(%r11), %r14
leaq (%rsi,%r14), %rdx
leaq 0x590(%r14), %rax
cmpq %rax, %rdx
cmovaq %rdx, %rax
addq $-0x590, %rax # imm = 0xFA70
xorl %r15d, %r15d
subq %r14, %rax
setne %r15b
subq %r15, %rax
shrq $0x4, %rax
mulq %r9
shrq $0x3, %rdx
leaq (%r15,%rdx), %rax
movq %rax, %xmm3
pshufd $0x44, %xmm3, %xmm3 # xmm3 = xmm3[0,1,0,1]
addq $0x5c0, %r14 # imm = 0x5C0
leaq (%r15,%rdx), %rax
addq $0x2, %rax
andq %r10, %rax
pxor %xmm1, %xmm3
xorl %edx, %edx
movq %rdx, %xmm4
pshufd $0x44, %xmm4, %xmm4 # xmm4 = xmm4[0,1,0,1]
por %xmm0, %xmm4
pxor %xmm1, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm3, %xmm5
pcmpeqd %xmm3, %xmm4
pshufd $0xf5, %xmm4, %xmm6 # xmm6 = xmm4[1,1,3,3]
pand %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm4 # xmm4 = xmm5[1,1,3,3]
por %xmm6, %xmm4
movd %xmm4, %r15d
notl %r15d
testb $0x1, %r15b
je 0x450e6
movq $0x0, -0x590(%r14)
pxor %xmm2, %xmm4
pextrw $0x4, %xmm4, %r15d
testb $0x1, %r15b
je 0x450fd
movq $0x0, (%r14)
addq $0x2, %rdx
addq $0xb20, %r14 # imm = 0xB20
cmpq %rdx, %rax
jne 0x4509d
addq $0x1640, %r11 # imm = 0x1640
cmpq %rbx, %r11
jb 0x45038
incq %rdi
cmpq $0x100, %rdi # imm = 0x100
jne 0x4500c
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_Z31reset_events_statements_currentv:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
lea rax, statement_stack_max
mov ecx, [rax]
imul rsi, rcx, 590h
xor edi, edi
lea r8, global_thread_container
mov r9, 1702E05C0B81702Fh
mov r10, 7FFFFFFFFFFFFEh
movdqa xmm0, cs:xmmword_7D050
movdqa xmm1, cs:xmmword_7D060
pcmpeqd xmm2, xmm2
loc_4500C:
mov rax, [r8+rdi*8+0A8h]
test rax, rax
jz loc_4511D
mov rdx, [rax+50h]
test rdx, rdx
jle loc_4511D
mov r11, [rax+48h]
imul rbx, rdx, 1640h
add rbx, r11
loc_45038:
test ecx, ecx
jz loc_4510D
mov r14, [r11+14C0h]
lea rdx, [rsi+r14]
lea rax, [r14+590h]
cmp rdx, rax
cmova rax, rdx
add rax, 0FFFFFFFFFFFFFA70h
xor r15d, r15d
sub rax, r14
setnz r15b
sub rax, r15
shr rax, 4
mul r9
shr rdx, 3
lea rax, [r15+rdx]
movq xmm3, rax
pshufd xmm3, xmm3, 44h ; 'D'
add r14, 5C0h
lea rax, [r15+rdx]
add rax, 2
and rax, r10
pxor xmm3, xmm1
xor edx, edx
loc_4509D:
movq xmm4, rdx
pshufd xmm4, xmm4, 44h ; 'D'
por xmm4, xmm0
pxor xmm4, xmm1
movdqa xmm5, xmm4
pcmpgtd xmm5, xmm3
pcmpeqd xmm4, xmm3
pshufd xmm6, xmm4, 0F5h
pand xmm6, xmm5
pshufd xmm4, xmm5, 0F5h
por xmm4, xmm6
movd r15d, xmm4
not r15d
test r15b, 1
jz short loc_450E6
mov qword ptr [r14-590h], 0
loc_450E6:
pxor xmm4, xmm2
pextrw r15d, xmm4, 4
test r15b, 1
jz short loc_450FD
mov qword ptr [r14], 0
loc_450FD:
add rdx, 2
add r14, 0B20h
cmp rax, rdx
jnz short loc_4509D
loc_4510D:
add r11, 1640h
cmp r11, rbx
jb loc_45038
loc_4511D:
inc rdi
cmp rdi, 100h
jnz loc_4500C
pop rbx
pop r14
pop r15
pop rbp
retn
|
unsigned long long reset_events_statements_current(void)
{
int v0; // ecx
long long v1; // rsi
long long v2; // rdi
__m128i si128; // xmm0
__m128i v4; // xmm1
unsigned long long result; // rax
long long v6; // rdx
unsigned long long v7; // r11
unsigned long long v8; // rbx
long long v9; // r14
long long v10; // rax
unsigned long long v11; // rax
__m128i v12; // xmm3
_QWORD *v13; // r14
__m128i v14; // xmm3
unsigned long long v15; // rdx
__m128i v16; // xmm4
__m128i v17; // xmm5
__m128i v18; // xmm4
v0 = statement_stack_max;
v1 = 1424LL * (unsigned int)statement_stack_max;
v2 = 0LL;
si128 = _mm_load_si128((const __m128i *)&xmmword_7D050);
v4 = _mm_load_si128((const __m128i *)&xmmword_7D060);
do
{
result = global_thread_container[v2 + 21];
if ( result )
{
v6 = *(_QWORD *)(result + 80);
if ( v6 > 0 )
{
v7 = *(_QWORD *)(result + 72);
v8 = v7 + 5696 * v6;
do
{
if ( v0 )
{
v9 = *(_QWORD *)(v7 + 5312);
v10 = v9 + 1424;
if ( v1 + v9 > (unsigned long long)(v9 + 1424) )
v10 = v1 + v9;
v11 = (v10 - 1424 != v9) + (v10 - 1424 - v9 - (unsigned long long)(v10 - 1424 != v9)) / 0x590;
v12 = _mm_shuffle_epi32((__m128i)v11, 68);
v13 = (_QWORD *)(v9 + 1472);
result = (v11 + 2) & 0x7FFFFFFFFFFFFELL;
v14 = _mm_xor_si128(v12, v4);
v15 = 0LL;
do
{
v16 = _mm_xor_si128(_mm_or_si128(_mm_shuffle_epi32((__m128i)v15, 68), si128), v4);
v17 = _mm_cmpgt_epi32(v16, v14);
v18 = _mm_or_si128(
_mm_shuffle_epi32(v17, 245),
_mm_and_si128(_mm_shuffle_epi32(_mm_cmpeq_epi32(v16, v14), 245), v17));
if ( (~_mm_cvtsi128_si32(v18) & 1) != 0 )
*(v13 - 178) = 0LL;
if ( (_mm_extract_epi16(_mm_xor_si128(v18, (__m128i)-1LL), 4) & 1) != 0 )
*v13 = 0LL;
v15 += 2LL;
v13 += 356;
}
while ( result != v15 );
}
v7 += 5696LL;
}
while ( v7 < v8 );
}
}
++v2;
}
while ( v2 != 256 );
return result;
}
|
reset_events_statements_current:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
LEA RAX,[0x4cf2f8]
MOV ECX,dword ptr [RAX]
IMUL RSI,RCX,0x590
XOR EDI,EDI
LEA R8,[0x4c8a60]
MOV R9,0x1702e05c0b81702f
MOV R10,0x7ffffffffffffe
MOVDQA XMM0,xmmword ptr [0x0017d050]
MOVDQA XMM1,xmmword ptr [0x0017d060]
PCMPEQD XMM2,XMM2
LAB_0014500c:
MOV RAX,qword ptr [R8 + RDI*0x8 + 0xa8]
TEST RAX,RAX
JZ 0x0014511d
MOV RDX,qword ptr [RAX + 0x50]
TEST RDX,RDX
JLE 0x0014511d
MOV R11,qword ptr [RAX + 0x48]
IMUL RBX,RDX,0x1640
ADD RBX,R11
LAB_00145038:
TEST ECX,ECX
JZ 0x0014510d
MOV R14,qword ptr [R11 + 0x14c0]
LEA RDX,[RSI + R14*0x1]
LEA RAX,[R14 + 0x590]
CMP RDX,RAX
CMOVA RAX,RDX
ADD RAX,-0x590
XOR R15D,R15D
SUB RAX,R14
SETNZ R15B
SUB RAX,R15
SHR RAX,0x4
MUL R9
SHR RDX,0x3
LEA RAX,[R15 + RDX*0x1]
MOVQ XMM3,RAX
PSHUFD XMM3,XMM3,0x44
ADD R14,0x5c0
LEA RAX,[R15 + RDX*0x1]
ADD RAX,0x2
AND RAX,R10
PXOR XMM3,XMM1
XOR EDX,EDX
LAB_0014509d:
MOVQ XMM4,RDX
PSHUFD XMM4,XMM4,0x44
POR XMM4,XMM0
PXOR XMM4,XMM1
MOVDQA XMM5,XMM4
PCMPGTD XMM5,XMM3
PCMPEQD XMM4,XMM3
PSHUFD XMM6,XMM4,0xf5
PAND XMM6,XMM5
PSHUFD XMM4,XMM5,0xf5
POR XMM4,XMM6
MOVD R15D,XMM4
NOT R15D
TEST R15B,0x1
JZ 0x001450e6
MOV qword ptr [R14 + -0x590],0x0
LAB_001450e6:
PXOR XMM4,XMM2
PEXTRW R15D,XMM4,0x4
TEST R15B,0x1
JZ 0x001450fd
MOV qword ptr [R14],0x0
LAB_001450fd:
ADD RDX,0x2
ADD R14,0xb20
CMP RAX,RDX
JNZ 0x0014509d
LAB_0014510d:
ADD R11,0x1640
CMP R11,RBX
JC 0x00145038
LAB_0014511d:
INC RDI
CMP RDI,0x100
JNZ 0x0014500c
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* reset_events_statements_current() */
void reset_events_statements_current(void)
{
long lVar1;
int1 auVar2 [16];
int1 auVar3 [16];
uint uVar4;
long lVar5;
ulong uVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
ulong uVar11;
int8 *puVar12;
ulong uVar13;
int1 auVar14 [16];
int1 auVar15 [16];
uVar4 = statement_stack_max;
auVar3 = _DAT_0017d060;
auVar2 = _DAT_0017d050;
uVar6 = (ulong)statement_stack_max;
lVar10 = 0;
do {
lVar1 = (&DAT_004c8b08)[lVar10];
if ((lVar1 != 0) && (0 < *(long *)(lVar1 + 0x50))) {
uVar11 = *(ulong *)(lVar1 + 0x48);
uVar9 = *(long *)(lVar1 + 0x50) * 0x1640 + uVar11;
do {
if (uVar4 != 0) {
lVar1 = *(long *)(uVar11 + 0x14c0);
uVar7 = uVar6 * 0x590 + lVar1;
uVar8 = lVar1 + 0x590U;
if (lVar1 + 0x590U < uVar7) {
uVar8 = uVar7;
}
lVar5 = (uVar8 - 0x590) - lVar1;
uVar13 = (ulong)(lVar5 != 0);
uVar7 = (lVar5 - uVar13) / 0x590;
lVar5 = uVar13 + uVar7;
auVar14._8_4_ = (int)lVar5;
auVar14._0_8_ = lVar5;
auVar14._12_4_ = (int)((ulong)lVar5 >> 0x20);
puVar12 = (int8 *)(lVar1 + 0x5c0);
auVar14 = auVar14 ^ auVar3;
uVar8 = 0;
do {
auVar15._8_4_ = (int)uVar8;
auVar15._0_8_ = uVar8;
auVar15._12_4_ = (int)(uVar8 >> 0x20);
auVar15 = (auVar15 | auVar2) ^ auVar3;
if ((bool)(~(auVar14._4_4_ < auVar15._4_4_ ||
auVar14._0_4_ < auVar15._0_4_ && auVar15._4_4_ == auVar14._4_4_) & 1)) {
puVar12[-0xb2] = 0;
}
if (auVar15._12_4_ <= auVar14._12_4_ &&
(auVar15._8_4_ <= auVar14._8_4_ || auVar15._12_4_ != auVar14._12_4_)) {
*puVar12 = 0;
}
uVar8 = uVar8 + 2;
puVar12 = puVar12 + 0x164;
} while ((uVar13 + uVar7 + 2 & 0x7ffffffffffffe) != uVar8);
}
uVar11 = uVar11 + 0x1640;
} while (uVar11 < uVar9);
}
lVar10 = lVar10 + 1;
} while (lVar10 != 0x100);
return;
}
|
|
59,448
|
my_strdup
|
eloqsql/mysys/my_malloc.c
|
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
}
|
O0
|
c
|
my_strdup:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x24130
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x4(%rbp), %edi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x2efd0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x2f49f
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x24230
jmp 0x2f4a1
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_strdup:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_10]
call _strlen
add rax, 1
mov [rbp+var_28], rax
mov edi, [rbp+var_4]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_18]
call my_malloc
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_2F49F
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_28]
call _memcpy
loc_2F49F:
jmp short $+2
loc_2F4A1:
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
add rsp, 30h
pop rbp
retn
|
long long my_strdup(unsigned int a1, long long a2, int a3)
{
unsigned long long v4; // [rsp+8h] [rbp-28h]
long long v5; // [rsp+10h] [rbp-20h]
v4 = strlen(a2) + 1;
v5 = my_malloc(a1, v4, a3);
if ( v5 )
memcpy(v5, a2, v4);
return v5;
}
|
my_strdup:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00124130
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0012efd0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x0012f49f
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00124230
LAB_0012f49f:
JMP 0x0012f4a1
LAB_0012f4a1:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x30
POP RBP
RET
|
void * my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
}
return __dest;
}
|
|
59,449
|
process_int_arg
|
eloqsql/strings/my_vsnprintf.c
|
static char *process_int_arg(char *to, const char *end, size_t length,
longlong par, char arg_type, uint print_type)
{
size_t res_length, to_length;
char *store_start= to, *store_end;
char buff[32];
if ((to_length= (size_t) (end-to)) < 16 || length)
store_start= buff;
if (arg_type == 'd' || arg_type == 'i')
store_end= longlong10_to_str(par, store_start, -10);
else if (arg_type == 'u')
store_end= longlong10_to_str(par, store_start, 10);
else if (arg_type == 'p')
{
store_start[0]= '0';
store_start[1]= 'x';
store_end= ll2str(par, store_start + 2, 16, 0);
}
else if (arg_type == 'o')
{
store_end= ll2str(par, store_start, 8, 0);
}
else
{
DBUG_ASSERT(arg_type == 'X' || arg_type =='x');
store_end= ll2str(par, store_start, 16, (arg_type == 'X'));
}
if ((res_length= (size_t) (store_end - store_start)) > to_length)
return to; /* num doesn't fit in output */
/* If %#d syntax was used, we have to pre-zero/pre-space the string */
if (store_start == buff)
{
length= MY_MIN(length, to_length);
if (res_length < length)
{
size_t diff= (length- res_length);
bfill(to, diff, (print_type & PREZERO_ARG) ? '0' : ' ');
if (arg_type == 'p' && print_type & PREZERO_ARG)
{
if (diff > 1)
to[1]= 'x';
else
store_start[0]= 'x';
store_start[1]= '0';
}
to+= diff;
}
bmove(to, store_start, res_length);
}
to+= res_length;
return to;
}
|
O0
|
c
|
process_int_arg:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movb %r8b, %al
movq %fs:0x28, %r8
movq %r8, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movb %al, -0x59(%rbp)
movl %r9d, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x70(%rbp)
cmpq $0x10, %rax
jb 0x85f86
cmpq $0x0, -0x50(%rbp)
je 0x85f8e
leaq -0x30(%rbp), %rax
movq %rax, -0x78(%rbp)
movsbl -0x59(%rbp), %eax
cmpl $0x64, %eax
je 0x85fa0
movsbl -0x59(%rbp), %eax
cmpl $0x69, %eax
jne 0x85fbb
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0xfffffff6, %edx # imm = 0xFFFFFFF6
callq 0x83520
movq %rax, -0x80(%rbp)
jmp 0x86067
movsbl -0x59(%rbp), %eax
cmpl $0x75, %eax
jne 0x85fdf
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0xa, %edx
callq 0x83520
movq %rax, -0x80(%rbp)
jmp 0x86065
movsbl -0x59(%rbp), %eax
cmpl $0x70, %eax
jne 0x86015
movq -0x78(%rbp), %rax
movb $0x30, (%rax)
movq -0x78(%rbp), %rax
movb $0x78, 0x1(%rax)
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
addq $0x2, %rsi
movl $0x10, %edx
xorl %ecx, %ecx
callq 0x83320
movq %rax, -0x80(%rbp)
jmp 0x86063
movsbl -0x59(%rbp), %eax
cmpl $0x6f, %eax
jne 0x86038
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0x8, %edx
xorl %ecx, %ecx
callq 0x83320
movq %rax, -0x80(%rbp)
jmp 0x86061
jmp 0x8603a
jmp 0x8603c
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
movsbl -0x59(%rbp), %eax
cmpl $0x58, %eax
sete %al
andb $0x1, %al
movzbl %al, %ecx
movl $0x10, %edx
callq 0x83320
movq %rax, -0x80(%rbp)
jmp 0x86063
jmp 0x86065
jmp 0x86067
movq -0x80(%rbp), %rax
movq -0x78(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x68(%rbp)
cmpq -0x70(%rbp), %rax
jbe 0x86089
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x86174
movq -0x78(%rbp), %rax
leaq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jne 0x86160
movq -0x50(%rbp), %rax
cmpq -0x70(%rbp), %rax
jae 0x860b1
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x860bc
movq -0x70(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x50(%rbp), %rax
jae 0x8614f
movq -0x50(%rbp), %rax
subq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdi
movl -0x60(%rbp), %edx
andl $0x4, %edx
movl $0x20, %eax
movl $0x30, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movq -0x88(%rbp), %rdx
movzbl %al, %esi
callq 0x251d0
movsbl -0x59(%rbp), %eax
cmpl $0x70, %eax
jne 0x86140
movl -0x60(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x86140
cmpq $0x1, -0x88(%rbp)
jbe 0x86131
movq -0x40(%rbp), %rax
movb $0x78, 0x1(%rax)
jmp 0x86138
movq -0x78(%rbp), %rax
movb $0x78, (%rax)
movq -0x78(%rbp), %rax
movb $0x30, 0x1(%rax)
movq -0x88(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x255c0
movq -0x68(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x98(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x861a1
movq -0x98(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
callq 0x25380
nopw %cs:(%rax,%rax)
|
process_int_arg:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov al, r8b
mov r8, fs:28h
mov [rbp+var_8], r8
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov [rbp+var_50], rdx
mov [rbp+var_58], rcx
mov [rbp+var_59], al
mov [rbp+var_60], r9d
mov rax, [rbp+var_40]
mov [rbp+var_78], rax
mov rax, [rbp+var_48]
mov rcx, [rbp+var_40]
sub rax, rcx
mov [rbp+var_70], rax
cmp rax, 10h
jb short loc_85F86
cmp [rbp+var_50], 0
jz short loc_85F8E
loc_85F86:
lea rax, [rbp+var_30]
mov [rbp+var_78], rax
loc_85F8E:
movsx eax, [rbp+var_59]
cmp eax, 64h ; 'd'
jz short loc_85FA0
movsx eax, [rbp+var_59]
cmp eax, 69h ; 'i'
jnz short loc_85FBB
loc_85FA0:
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_78]
mov edx, 0FFFFFFF6h
call int10_to_str
mov [rbp+var_80], rax
jmp loc_86067
loc_85FBB:
movsx eax, [rbp+var_59]
cmp eax, 75h ; 'u'
jnz short loc_85FDF
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_78]
mov edx, 0Ah
call int10_to_str
mov [rbp+var_80], rax
jmp loc_86065
loc_85FDF:
movsx eax, [rbp+var_59]
cmp eax, 70h ; 'p'
jnz short loc_86015
mov rax, [rbp+var_78]
mov byte ptr [rax], 30h ; '0'
mov rax, [rbp+var_78]
mov byte ptr [rax+1], 78h ; 'x'
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_78]
add rsi, 2
mov edx, 10h
xor ecx, ecx
call int2str
mov [rbp+var_80], rax
jmp short loc_86063
loc_86015:
movsx eax, [rbp+var_59]
cmp eax, 6Fh ; 'o'
jnz short loc_86038
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_78]
mov edx, 8
xor ecx, ecx
call int2str
mov [rbp+var_80], rax
jmp short loc_86061
loc_86038:
jmp short $+2
loc_8603A:
jmp short $+2
loc_8603C:
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_78]
movsx eax, [rbp+var_59]
cmp eax, 58h ; 'X'
setz al
and al, 1
movzx ecx, al
mov edx, 10h
call int2str
mov [rbp+var_80], rax
loc_86061:
jmp short $+2
loc_86063:
jmp short $+2
loc_86065:
jmp short $+2
loc_86067:
mov rax, [rbp+var_80]
mov rcx, [rbp+var_78]
sub rax, rcx
mov [rbp+var_68], rax
cmp rax, [rbp+var_70]
jbe short loc_86089
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
jmp loc_86174
loc_86089:
mov rax, [rbp+var_78]
lea rcx, [rbp+var_30]
cmp rax, rcx
jnz loc_86160
mov rax, [rbp+var_50]
cmp rax, [rbp+var_70]
jnb short loc_860B1
mov rax, [rbp+var_50]
mov [rbp+var_90], rax
jmp short loc_860BC
loc_860B1:
mov rax, [rbp+var_70]
mov [rbp+var_90], rax
loc_860BC:
mov rax, [rbp+var_90]
mov [rbp+var_50], rax
mov rax, [rbp+var_68]
cmp rax, [rbp+var_50]
jnb short loc_8614F
mov rax, [rbp+var_50]
sub rax, [rbp+var_68]
mov [rbp+var_88], rax
mov rdi, [rbp+var_40]
mov edx, [rbp+var_60]
and edx, 4
mov eax, 20h ; ' '
mov ecx, 30h ; '0'
cmp edx, 0
cmovnz eax, ecx
mov rdx, [rbp+var_88]
movzx esi, al
call _memset
movsx eax, [rbp+var_59]
cmp eax, 70h ; 'p'
jnz short loc_86140
mov eax, [rbp+var_60]
and eax, 4
cmp eax, 0
jz short loc_86140
cmp [rbp+var_88], 1
jbe short loc_86131
mov rax, [rbp+var_40]
mov byte ptr [rax+1], 78h ; 'x'
jmp short loc_86138
loc_86131:
mov rax, [rbp+var_78]
mov byte ptr [rax], 78h ; 'x'
loc_86138:
mov rax, [rbp+var_78]
mov byte ptr [rax+1], 30h ; '0'
loc_86140:
mov rax, [rbp+var_88]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
loc_8614F:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_78]
mov rdx, [rbp+var_68]
call _memmove
loc_86160:
mov rax, [rbp+var_68]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
loc_86174:
mov rax, [rbp+var_38]
mov [rbp+var_98], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_861A1
mov rax, [rbp+var_98]
add rsp, 0A0h
pop rbp
retn
loc_861A1:
call ___stack_chk_fail
|
_BYTE * process_int_arg(_BYTE *a1, long long a2, unsigned long long a3, long long a4, char a5, char a6)
{
unsigned __int8 v6; // al
unsigned long long v8; // [rsp+10h] [rbp-90h]
unsigned long long v9; // [rsp+18h] [rbp-88h]
_BYTE *v10; // [rsp+20h] [rbp-80h]
_BYTE *v11; // [rsp+28h] [rbp-78h]
unsigned long long v12; // [rsp+30h] [rbp-70h]
unsigned long long v13; // [rsp+38h] [rbp-68h]
_BYTE *v17; // [rsp+60h] [rbp-40h]
_BYTE v19[40]; // [rsp+70h] [rbp-30h] BYREF
unsigned long long v20; // [rsp+98h] [rbp-8h]
v20 = __readfsqword(0x28u);
v17 = a1;
v11 = a1;
v12 = a2 - (_QWORD)a1;
if ( (unsigned long long)(a2 - (_QWORD)a1) < 0x10 || a3 )
v11 = v19;
switch ( a5 )
{
case 'd':
case 'i':
v10 = int10_to_str(a4, v11, -10);
break;
case 'u':
v10 = int10_to_str(a4, v11, 10);
break;
case 'p':
*v11 = 48;
v11[1] = 120;
v10 = int2str(a4, v11 + 2, 16, 0);
break;
case 'o':
v10 = int2str(a4, v11, 8, 0);
break;
default:
v10 = int2str(a4, v11, 16, a5 == 88);
break;
}
v13 = v10 - v11;
if ( v10 - v11 > v12 )
return a1;
if ( v11 == v19 )
{
if ( a3 >= v12 )
v8 = a2 - (_QWORD)a1;
else
v8 = a3;
if ( v13 < v8 )
{
v9 = v8 - v13;
v6 = 32;
if ( (a6 & 4) != 0 )
v6 = 48;
memset(a1, v6, v9);
if ( a5 == 112 && (a6 & 4) != 0 )
{
if ( v9 <= 1 )
*v11 = 120;
else
a1[1] = 120;
v11[1] = 48;
}
v17 = &a1[v9];
}
memmove(v17, v11, v13);
}
return &v17[v13];
}
|
process_int_arg:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV AL,R8B
MOV R8,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],R8
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x58],RCX
MOV byte ptr [RBP + -0x59],AL
MOV dword ptr [RBP + -0x60],R9D
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
CMP RAX,0x10
JC 0x00185f86
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00185f8e
LAB_00185f86:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x78],RAX
LAB_00185f8e:
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x64
JZ 0x00185fa0
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x69
JNZ 0x00185fbb
LAB_00185fa0:
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x78]
MOV EDX,0xfffffff6
CALL 0x00183520
MOV qword ptr [RBP + -0x80],RAX
JMP 0x00186067
LAB_00185fbb:
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x75
JNZ 0x00185fdf
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x78]
MOV EDX,0xa
CALL 0x00183520
MOV qword ptr [RBP + -0x80],RAX
JMP 0x00186065
LAB_00185fdf:
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x70
JNZ 0x00186015
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x30
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + 0x1],0x78
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x78]
ADD RSI,0x2
MOV EDX,0x10
XOR ECX,ECX
CALL 0x00183320
MOV qword ptr [RBP + -0x80],RAX
JMP 0x00186063
LAB_00186015:
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x6f
JNZ 0x00186038
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x78]
MOV EDX,0x8
XOR ECX,ECX
CALL 0x00183320
MOV qword ptr [RBP + -0x80],RAX
JMP 0x00186061
LAB_00186038:
JMP 0x0018603a
LAB_0018603a:
JMP 0x0018603c
LAB_0018603c:
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x58
SETZ AL
AND AL,0x1
MOVZX ECX,AL
MOV EDX,0x10
CALL 0x00183320
MOV qword ptr [RBP + -0x80],RAX
LAB_00186061:
JMP 0x00186063
LAB_00186063:
JMP 0x00186065
LAB_00186065:
JMP 0x00186067
LAB_00186067:
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x78]
SUB RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
CMP RAX,qword ptr [RBP + -0x70]
JBE 0x00186089
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00186174
LAB_00186089:
MOV RAX,qword ptr [RBP + -0x78]
LEA RCX,[RBP + -0x30]
CMP RAX,RCX
JNZ 0x00186160
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x70]
JNC 0x001860b1
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001860bc
LAB_001860b1:
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x90],RAX
LAB_001860bc:
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x50]
JNC 0x0018614f
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x88],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV EDX,dword ptr [RBP + -0x60]
AND EDX,0x4
MOV EAX,0x20
MOV ECX,0x30
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV RDX,qword ptr [RBP + -0x88]
MOVZX ESI,AL
CALL 0x001251d0
MOVSX EAX,byte ptr [RBP + -0x59]
CMP EAX,0x70
JNZ 0x00186140
MOV EAX,dword ptr [RBP + -0x60]
AND EAX,0x4
CMP EAX,0x0
JZ 0x00186140
CMP qword ptr [RBP + -0x88],0x1
JBE 0x00186131
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x1],0x78
JMP 0x00186138
LAB_00186131:
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x78
LAB_00186138:
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + 0x1],0x30
LAB_00186140:
MOV RAX,qword ptr [RBP + -0x88]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
LAB_0018614f:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x001255c0
LAB_00186160:
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
LAB_00186174:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001861a1
MOV RAX,qword ptr [RBP + -0x98]
ADD RSP,0xa0
POP RBP
RET
LAB_001861a1:
CALL 0x00125380
|
int1 *
process_int_arg(int1 *param_1,long param_2,ulong param_3,int8 param_4,char param_5,
uint param_6)
{
byte bVar1;
ulong __n;
long in_FS_OFFSET;
ulong local_98;
long local_88;
int1 *local_80;
int1 *local_48;
int1 *local_40;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_98 = param_2 - (long)param_1;
if ((local_98 < 0x10) || (local_80 = param_1, param_3 != 0)) {
local_80 = local_38;
}
if ((param_5 == 'd') || (param_5 == 'i')) {
local_88 = int10_to_str(param_4,local_80,0xfffffff6);
}
else if (param_5 == 'u') {
local_88 = int10_to_str(param_4,local_80,10);
}
else if (param_5 == 'p') {
*local_80 = 0x30;
local_80[1] = 0x78;
local_88 = int2str(param_4,local_80 + 2,0x10,0);
}
else if (param_5 == 'o') {
local_88 = int2str(param_4,local_80,8,0);
}
else {
local_88 = int2str(param_4,local_80,0x10,param_5 == 'X');
}
__n = local_88 - (long)local_80;
local_40 = param_1;
if (__n <= local_98) {
local_48 = param_1;
if (local_80 == local_38) {
if (param_3 < local_98) {
local_98 = param_3;
}
if (__n < local_98) {
local_98 = local_98 - __n;
bVar1 = 0x20;
if ((param_6 & 4) != 0) {
bVar1 = 0x30;
}
memset(param_1,(uint)bVar1,local_98);
if ((param_5 == 'p') && ((param_6 & 4) != 0)) {
if (local_98 < 2) {
*local_80 = 0x78;
}
else {
param_1[1] = 0x78;
}
local_80[1] = 0x30;
}
local_48 = param_1 + local_98;
}
memmove(local_48,local_80,__n);
}
local_40 = local_48 + __n;
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_40;
}
|
|
59,450
|
my_mb_wc_utf8mb4_no_range
|
eloqsql/strings/ctype-utf8.c
|
static int
my_mb_wc_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s)
{
uchar c;
c= s[0];
if (c < 0x80)
{
*pwc = c;
return 1;
}
if (c < 0xc2)
return MY_CS_ILSEQ;
if (c < 0xe0)
{
if (!IS_CONTINUATION_BYTE(s[1]))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
if (c < 0xf0)
{
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
else if (c < 0xf5)
{
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
*pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]);
return 4;
}
return MY_CS_ILSEQ;
}
|
O3
|
c
|
my_mb_wc_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movzbl (%rsi), %ecx
testb %cl, %cl
js 0xcf478
movl $0x1, %eax
movq %rcx, (%rdi)
jmp 0xcf47f
xorl %eax, %eax
cmpb $-0x3e, %cl
jae 0xcf481
popq %rbp
retq
cmpb $-0x21, %cl
ja 0xcf4a4
movzbl 0x1(%rsi), %edx
xorl $0x80, %edx
cmpb $0x3f, %dl
ja 0xcf47f
andl $0x1f, %ecx
shll $0x6, %ecx
orl %edx, %ecx
movl $0x2, %eax
jmp 0xcf473
cmpb $-0x11, %cl
ja 0xcf4f0
movzbl 0x1(%rsi), %edx
cmpb $-0x41, %dl
jg 0xcf47f
movzbl 0x2(%rsi), %esi
cmpb $-0x41, %sil
jg 0xcf47f
cmpl $0xe0, %ecx
sete %r8b
cmpb $-0x60, %dl
setb %r9b
testb %r9b, %r8b
jne 0xcf47f
shll $0xc, %ecx
movzwl %cx, %eax
andl $0x3f, %edx
shll $0x6, %edx
orl %eax, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x3, %eax
movq %rsi, %rcx
jmp 0xcf473
cmpb $-0xc, %cl
ja 0xcf47f
movzbl 0x1(%rsi), %r8d
cmpb $-0x41, %r8b
jg 0xcf47f
movzbl 0x2(%rsi), %edx
cmpb $-0x41, %dl
jg 0xcf47f
movzbl 0x3(%rsi), %esi
cmpb $-0x41, %sil
jg 0xcf47f
cmpl $0xf0, %ecx
sete %r9b
cmpb $-0x70, %r8b
setb %r10b
testb %r10b, %r9b
jne 0xcf47f
cmpl $0xf4, %ecx
sete %r9b
cmpb $-0x70, %r8b
setae %r10b
testb %r10b, %r9b
jne 0xcf47f
andl $0x7, %ecx
shll $0x12, %ecx
andl $0x3f, %r8d
shll $0xc, %r8d
orl %ecx, %r8d
andl $0x3f, %edx
shll $0x6, %edx
orl %r8d, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x4, %eax
jmp 0xcf4eb
|
my_mb_wc_utf8mb4_no_range:
push rbp
mov rbp, rsp
movzx ecx, byte ptr [rsi]
test cl, cl
js short loc_CF478
mov eax, 1
loc_CF473:
mov [rdi], rcx
jmp short loc_CF47F
loc_CF478:
xor eax, eax
cmp cl, 0C2h
jnb short loc_CF481
loc_CF47F:
pop rbp
retn
loc_CF481:
cmp cl, 0DFh
ja short loc_CF4A4
movzx edx, byte ptr [rsi+1]
xor edx, 80h
cmp dl, 3Fh ; '?'
ja short loc_CF47F
and ecx, 1Fh
shl ecx, 6
or ecx, edx
mov eax, 2
jmp short loc_CF473
loc_CF4A4:
cmp cl, 0EFh
ja short loc_CF4F0
movzx edx, byte ptr [rsi+1]
cmp dl, 0BFh
jg short loc_CF47F
movzx esi, byte ptr [rsi+2]
cmp sil, 0BFh
jg short loc_CF47F
cmp ecx, 0E0h
setz r8b
cmp dl, 0A0h
setb r9b
test r8b, r9b
jnz short loc_CF47F
shl ecx, 0Ch
movzx eax, cx
and edx, 3Fh
shl edx, 6
or edx, eax
and esi, 3Fh
or rsi, rdx
mov eax, 3
loc_CF4EB:
mov rcx, rsi
jmp short loc_CF473
loc_CF4F0:
cmp cl, 0F4h
ja short loc_CF47F
movzx r8d, byte ptr [rsi+1]
cmp r8b, 0BFh
jg loc_CF47F
movzx edx, byte ptr [rsi+2]
cmp dl, 0BFh
jg loc_CF47F
movzx esi, byte ptr [rsi+3]
cmp sil, 0BFh
jg loc_CF47F
cmp ecx, 0F0h
setz r9b
cmp r8b, 90h
setb r10b
test r9b, r10b
jnz loc_CF47F
cmp ecx, 0F4h
setz r9b
cmp r8b, 90h
setnb r10b
test r9b, r10b
jnz loc_CF47F
and ecx, 7
shl ecx, 12h
and r8d, 3Fh
shl r8d, 0Ch
or r8d, ecx
and edx, 3Fh
shl edx, 6
or edx, r8d
and esi, 3Fh
or rsi, rdx
mov eax, 4
jmp loc_CF4EB
|
long long my_mb_wc_utf8mb4_no_range(unsigned long long *a1, unsigned __int8 *a2)
{
unsigned long long v2; // rcx
long long result; // rax
char v4; // dl
char v5; // si
unsigned long long v6; // rsi
char v7; // r8
char v8; // dl
char v9; // si
v2 = *a2;
if ( (v2 & 0x80u) == 0LL )
{
result = 1LL;
LABEL_3:
*a1 = v2;
return result;
}
result = 0LL;
if ( (unsigned __int8)v2 >= 0xC2u )
{
if ( (unsigned __int8)v2 > 0xDFu )
{
if ( (unsigned __int8)v2 > 0xEFu )
{
if ( (unsigned __int8)v2 > 0xF4u )
return result;
v7 = a2[1];
if ( v7 > -65 )
return result;
v8 = a2[2];
if ( v8 > -65 )
return result;
v9 = a2[3];
if ( v9 > -65
|| (unsigned __int8)v7 < 0x90u && (_DWORD)v2 == 240
|| (unsigned __int8)v7 >= 0x90u && (_DWORD)v2 == 244 )
{
return result;
}
v6 = ((v2 & 7) << 18) | ((unsigned __int8)(v7 & 0x3F) << 12) | ((unsigned __int8)(v8 & 0x3F) << 6) | v9 & 0x3F;
result = 4LL;
}
else
{
v4 = a2[1];
if ( v4 > -65 )
return result;
v5 = a2[2];
if ( v5 > -65 || (unsigned __int8)v4 < 0xA0u && (_DWORD)v2 == 224 )
return result;
v6 = (unsigned __int16)((_WORD)v2 << 12) | ((unsigned __int8)(v4 & 0x3F) << 6) | (unsigned long long)(v5 & 0x3F);
result = 3LL;
}
v2 = v6;
goto LABEL_3;
}
if ( (a2[1] ^ 0x80u) <= 0x3F )
{
v2 = a2[1] ^ 0x80 | ((unsigned __int8)(v2 & 0x1F) << 6);
result = 2LL;
goto LABEL_3;
}
}
return result;
}
|
my_mb_wc_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOVZX ECX,byte ptr [RSI]
TEST CL,CL
JS 0x001cf478
MOV EAX,0x1
LAB_001cf473:
MOV qword ptr [RDI],RCX
JMP 0x001cf47f
LAB_001cf478:
XOR EAX,EAX
CMP CL,0xc2
JNC 0x001cf481
LAB_001cf47f:
POP RBP
RET
LAB_001cf481:
CMP CL,0xdf
JA 0x001cf4a4
MOVZX EDX,byte ptr [RSI + 0x1]
XOR EDX,0x80
CMP DL,0x3f
JA 0x001cf47f
AND ECX,0x1f
SHL ECX,0x6
OR ECX,EDX
MOV EAX,0x2
JMP 0x001cf473
LAB_001cf4a4:
CMP CL,0xef
JA 0x001cf4f0
MOVZX EDX,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x001cf47f
MOVZX ESI,byte ptr [RSI + 0x2]
CMP SIL,0xbf
JG 0x001cf47f
CMP ECX,0xe0
SETZ R8B
CMP DL,0xa0
SETC R9B
TEST R8B,R9B
JNZ 0x001cf47f
SHL ECX,0xc
MOVZX EAX,CX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,EAX
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x3
LAB_001cf4eb:
MOV RCX,RSI
JMP 0x001cf473
LAB_001cf4f0:
CMP CL,0xf4
JA 0x001cf47f
MOVZX R8D,byte ptr [RSI + 0x1]
CMP R8B,0xbf
JG 0x001cf47f
MOVZX EDX,byte ptr [RSI + 0x2]
CMP DL,0xbf
JG 0x001cf47f
MOVZX ESI,byte ptr [RSI + 0x3]
CMP SIL,0xbf
JG 0x001cf47f
CMP ECX,0xf0
SETZ R9B
CMP R8B,0x90
SETC R10B
TEST R9B,R10B
JNZ 0x001cf47f
CMP ECX,0xf4
SETZ R9B
CMP R8B,0x90
SETNC R10B
TEST R9B,R10B
JNZ 0x001cf47f
AND ECX,0x7
SHL ECX,0x12
AND R8D,0x3f
SHL R8D,0xc
OR R8D,ECX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,R8D
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x4
JMP 0x001cf4eb
|
int8 my_mb_wc_utf8mb4_no_range(ulong *param_1,byte *param_2)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
ulong uVar5;
bVar1 = *param_2;
uVar5 = (ulong)bVar1;
if ((char)bVar1 < '\0') {
if (bVar1 < 0xc2) {
return 0;
}
uVar4 = (uint)bVar1;
if (bVar1 < 0xe0) {
if (0x3f < (byte)(param_2[1] ^ 0x80)) {
return 0;
}
uVar5 = (ulong)((uVar4 & 0x1f) << 6 | param_2[1] ^ 0x80);
uVar3 = 2;
}
else {
if (bVar1 < 0xf0) {
bVar2 = param_2[1];
if (-0x41 < (char)bVar2) {
return 0;
}
if (-0x41 < (char)param_2[2]) {
return 0;
}
if (uVar4 == 0xe0 && bVar2 < 0xa0) {
return 0;
}
uVar4 = param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc;
uVar3 = 3;
}
else {
if (0xf4 < bVar1) {
return 0;
}
bVar1 = param_2[1];
if (-0x41 < (char)bVar1) {
return 0;
}
if (-0x41 < (char)param_2[2]) {
return 0;
}
if (-0x41 < (char)param_2[3]) {
return 0;
}
if (uVar4 == 0xf0 && bVar1 < 0x90) {
return 0;
}
if (uVar4 == 0xf4 && 0x8f < bVar1) {
return 0;
}
uVar4 = param_2[3] & 0x3f |
(param_2[2] & 0x3f) << 6 | (bVar1 & 0x3f) << 0xc | (uVar4 & 7) << 0x12;
uVar3 = 4;
}
uVar5 = (ulong)uVar4;
}
}
else {
uVar3 = 1;
}
*param_1 = uVar5;
return uVar3;
}
|
|
59,451
|
ftxui::Container::Tab(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*)
|
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/container.cpp
|
Component Tab(Components children, int* selector) {
return std::make_shared<TabContainer>(std::move(children), selector);
}
|
O2
|
cpp
|
ftxui::Container::Tab(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*):
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rdx, (%rax)
movq %rsp, %rdi
movq %rax, %rdx
callq 0x2226b
leaq 0x8(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x13452
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
|
_ZN5ftxui9Container3TabESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EEPi:
push rbx
sub rsp, 20h
mov rbx, rdi
lea rax, [rsp+28h+var_10]
mov [rax], rdx
mov rdi, rsp
mov rdx, rax
call _ZSt11make_sharedIN5ftxui12TabContainerEJSt6vectorISt10shared_ptrINS0_13ComponentBaseEESaIS5_EERPiEES3_IT_EDpOT0_; std::make_shared<ftxui::TabContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&>(std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&)
lea rdi, [rsp+28h+var_20]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [rbx], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 20h
pop rbx
retn
|
_OWORD * ftxui::Container::Tab(_OWORD *a1, long long a2, long long a3)
{
__int128 v3; // xmm0
__int128 v5; // [rsp+0h] [rbp-28h] BYREF
long long v6; // [rsp+18h] [rbp-10h] BYREF
v6 = a3;
std::make_shared<ftxui::TabContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&>(&v5, a2, &v6);
v3 = v5;
*((_QWORD *)&v5 + 1) = 0LL;
*a1 = v3;
*(_QWORD *)&v5 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v5 + 1);
return a1;
}
|
Tab:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX],RDX
MOV RDI,RSP
MOV RDX,RAX
CALL 0x0012226b
LEA RDI,[RSP + 0x8]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x00113452
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::Container::Tab(std::vector<std::shared_ptr<ftxui::ComponentBase>,
std::allocator<std::shared_ptr<ftxui::ComponentBase> > >, int*) */
Container * __thiscall ftxui::Container::Tab(Container *this,int **param_2,int8 param_3)
{
int8 uVar1;
int8 local_28;
int8 auStack_20 [2];
int8 local_10;
local_10 = param_3;
std::
make_shared<ftxui::TabContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>,std::allocator<std::shared_ptr<ftxui::ComponentBase>>>,int*&>
((vector *)&local_28,param_2);
uVar1 = auStack_20[0];
auStack_20[0] = 0;
*(int8 *)this = local_28;
*(int8 *)(this + 8) = uVar1;
local_28 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_20);
return this;
}
|
|
59,452
|
IOS::HLE::USB::V0CtrlMessage::V0CtrlMessage(IOS::HLE::EmulationKernel&, IOS::HLE::IOCtlVRequest const&)
|
Dolphin-anty/Source/Core/Core/IOS/USB/USBV0.cpp
|
V0CtrlMessage::V0CtrlMessage(EmulationKernel& ios, const IOCtlVRequest& ioctlv)
: CtrlMessage(ios, ioctlv, ioctlv.io_vectors[0].address)
{
auto& system = ios.GetSystem();
auto& memory = system.GetMemory();
request_type = memory.Read_U8(ioctlv.in_vectors[0].address);
request = memory.Read_U8(ioctlv.in_vectors[1].address);
value = Common::swap16(memory.Read_U16(ioctlv.in_vectors[2].address));
index = Common::swap16(memory.Read_U16(ioctlv.in_vectors[3].address));
length = Common::swap16(memory.Read_U16(ioctlv.in_vectors[4].address));
}
|
O3
|
cpp
|
IOS::HLE::USB::V0CtrlMessage::V0CtrlMessage(IOS::HLE::EmulationKernel&, IOS::HLE::IOCtlVRequest const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
movq 0x30(%rdx), %rax
movl (%rax), %eax
leaq 0xb6bfe4(%rip), %rcx # 0xde9048
addq $0x10, %rcx
movq %rcx, (%rdi)
leaq 0xb6b49e(%rip), %rcx # 0xde8510
movq %rcx, 0x8(%rdi)
movq 0x8(%rdx), %rcx
movq %rcx, 0x10(%rdi)
movl 0x10(%rdx), %ecx
movl %ecx, 0x18(%rdi)
movl %eax, 0x20(%rdi)
movq %rsi, 0x28(%rdi)
movq $0x0, 0x30(%rdi)
leaq 0xb6c6c6(%rip), %rax # 0xde9760
movq %rax, (%rdi)
movq 0x5c0(%rsi), %rdi
callq 0x2b681c
movq %rax, %r15
movq 0x18(%r14), %rax
movl (%rax), %esi
movq %r15, %rdi
callq 0x21d4ec
movb %al, 0x30(%rbx)
movq 0x18(%r14), %rax
movl 0x8(%rax), %esi
movq %r15, %rdi
callq 0x21d4ec
movb %al, 0x31(%rbx)
movq 0x18(%r14), %rax
movl 0x10(%rax), %esi
movq %r15, %rdi
callq 0x21d510
rolw $0x8, %ax
movw %ax, 0x32(%rbx)
movq 0x18(%r14), %rax
movl 0x18(%rax), %esi
movq %r15, %rdi
callq 0x21d510
rolw $0x8, %ax
movw %ax, 0x34(%rbx)
movq 0x18(%r14), %rax
movl 0x20(%rax), %esi
movq %r15, %rdi
callq 0x21d510
rolw $0x8, %ax
movw %ax, 0x36(%rbx)
popq %rbx
popq %r14
popq %r15
retq
|
_ZN3IOS3HLE3USB13V0CtrlMessageC2ERNS0_15EmulationKernelERKNS0_13IOCtlVRequestE:
push r15
push r14
push rbx
mov r14, rdx
mov rbx, rdi
mov rax, [rdx+30h]
mov eax, [rax]
lea rcx, _ZTVN3IOS3HLE3USB15TransferCommandE; `vtable for'IOS::HLE::USB::TransferCommand
add rcx, 10h
mov [rdi], rcx
lea rcx, off_DE8510
mov [rdi+8], rcx
mov rcx, [rdx+8]
mov [rdi+10h], rcx
mov ecx, [rdx+10h]
mov [rdi+18h], ecx
mov [rdi+20h], eax
mov [rdi+28h], rsi
mov qword ptr [rdi+30h], 0
lea rax, off_DE9760
mov [rdi], rax
mov rdi, [rsi+5C0h]; this
call _ZNK4Core6System9GetMemoryEv; Core::System::GetMemory(void)
mov r15, rax
mov rax, [r14+18h]
mov esi, [rax]; unsigned int
mov rdi, r15; this
call _ZNK6Memory13MemoryManager7Read_U8Ej; Memory::MemoryManager::Read_U8(uint)
mov [rbx+30h], al
mov rax, [r14+18h]
mov esi, [rax+8]; unsigned int
mov rdi, r15; this
call _ZNK6Memory13MemoryManager7Read_U8Ej; Memory::MemoryManager::Read_U8(uint)
mov [rbx+31h], al
mov rax, [r14+18h]
mov esi, [rax+10h]; unsigned int
mov rdi, r15; this
call _ZNK6Memory13MemoryManager8Read_U16Ej; Memory::MemoryManager::Read_U16(uint)
rol ax, 8
mov [rbx+32h], ax
mov rax, [r14+18h]
mov esi, [rax+18h]; unsigned int
mov rdi, r15; this
call _ZNK6Memory13MemoryManager8Read_U16Ej; Memory::MemoryManager::Read_U16(uint)
rol ax, 8
mov [rbx+34h], ax
mov rax, [r14+18h]
mov esi, [rax+20h]; unsigned int
mov rdi, r15; this
call _ZNK6Memory13MemoryManager8Read_U16Ej; Memory::MemoryManager::Read_U16(uint)
rol ax, 8
mov [rbx+36h], ax
pop rbx
pop r14
pop r15
retn
|
__int16 IOS::HLE::USB::V0CtrlMessage::V0CtrlMessage(
IOS::HLE::USB::V0CtrlMessage *this,
Core::System **a2,
const IOS::HLE::IOCtlVRequest *a3)
{
int v4; // eax
Memory::MemoryManager *Memory; // r15
__int16 result; // ax
v4 = **((_DWORD **)a3 + 6);
*(_QWORD *)this = &`vtable for'IOS::HLE::USB::TransferCommand + 2;
*((_QWORD *)this + 1) = off_DE8510;
*((_QWORD *)this + 2) = *((_QWORD *)a3 + 1);
*((_DWORD *)this + 6) = *((_DWORD *)a3 + 4);
*((_DWORD *)this + 8) = v4;
*((_QWORD *)this + 5) = a2;
*((_QWORD *)this + 6) = 0LL;
*(_QWORD *)this = off_DE9760;
Memory = (Memory::MemoryManager *)Core::System::GetMemory(a2[184]);
*((_BYTE *)this + 48) = Memory::MemoryManager::Read_U8(Memory, **((_DWORD **)a3 + 3));
*((_BYTE *)this + 49) = Memory::MemoryManager::Read_U8(Memory, *(_DWORD *)(*((_QWORD *)a3 + 3) + 8LL));
*((_WORD *)this + 25) = __ROL2__(Memory::MemoryManager::Read_U16(Memory, *(_DWORD *)(*((_QWORD *)a3 + 3) + 16LL)), 8);
*((_WORD *)this + 26) = __ROL2__(Memory::MemoryManager::Read_U16(Memory, *(_DWORD *)(*((_QWORD *)a3 + 3) + 24LL)), 8);
result = __ROL2__(Memory::MemoryManager::Read_U16(Memory, *(_DWORD *)(*((_QWORD *)a3 + 3) + 32LL)), 8);
*((_WORD *)this + 27) = result;
return result;
}
|
GetName[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
CMP ESI,0xb
JA 0x0027d1e6
MOV EBP,EDX
MOV EAX,ESI
LEA RCX,[0xb4b5c4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b63b]
LEA RDX,[0xb4b63e]
JMP 0x0027d16a
caseD_b:
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LEA RSI,[0xb4b630]
LEA RDX,[0xb4b63e]
JMP 0x0027d197
caseD_5:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b61b]
LEA RDX,[0xb4b61f]
JMP 0x0027d16a
caseD_6:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b620]
LEA RDX,[0xb4b623]
JMP 0x0027d16a
caseD_4:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b616]
LEA RDX,[0xb4b61a]
JMP 0x0027d16a
caseD_3:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b87f]
LEA RDX,[0xb4b882]
JMP 0x0027d16a
caseD_2:
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LEA RSI,[0xb4b60c]
LEA RDX,[0xb4b615]
JMP 0x0027d197
caseD_7:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b624]
LEA RDX,[0xb4b627]
JMP 0x0027d16a
caseD_8:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b628]
LEA RDX,[0xb4b62b]
JMP 0x0027d16a
caseD_a:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0xb4b62c]
LEA RDX,[0xb4b62f]
LAB_0027d16a:
MOV RDI,RBX
LAB_0027d16d:
CALL 0x00276f78
LAB_0027d172:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
caseD_9:
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LEA RSI,[0xb691a8]
LEA RDX,[0xb691ab]
LAB_0027d197:
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x00276f78
MOV RSI,qword ptr [R14]
TEST BPL,BPL
JZ 0x0027d1b6
MOV RDI,RBX
CALL 0x00ac225c
JMP 0x0027d1cd
LAB_0027d1b6:
LEA RAX,[RBX + 0x10]
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,RSI
MOV qword ptr [RBX],RAX
MOV RDI,RBX
CALL 0x00276ee2
LAB_0027d1cd:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x0027d172
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0020fa70
JMP 0x0027d172
caseD_1:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RDX,[0xcd7a28]
MOV RDI,RBX
MOV RSI,RDX
JMP 0x0027d16d
|
/* DiscIO::GetName[abi:cxx11](DiscIO::BlobType, bool) */
DiscIO * __thiscall DiscIO::GetName_abi_cxx11_(DiscIO *this,int4 param_2,char param_3)
{
char *pcVar1;
char *pcVar2;
long *local_40;
long local_38;
long local_30 [2];
switch(param_2) {
case 0:
*(DiscIO **)this = this + 0x10;
pcVar1 = "ISO";
pcVar2 = "";
break;
default:
*(DiscIO **)this = this + 0x10;
pcVar2 = "";
pcVar1 = pcVar2;
break;
case 2:
pcVar2 = "Directory";
pcVar1 = "";
goto LAB_0027d197;
case 3:
*(DiscIO **)this = this + 0x10;
pcVar1 = "GCZ";
pcVar2 = "";
break;
case 4:
*(DiscIO **)this = this + 0x10;
pcVar1 = "CISO";
pcVar2 = "";
break;
case 5:
*(DiscIO **)this = this + 0x10;
pcVar1 = "WBFS";
pcVar2 = "";
break;
case 6:
*(DiscIO **)this = this + 0x10;
pcVar1 = "TGC";
pcVar2 = "";
break;
case 7:
*(DiscIO **)this = this + 0x10;
pcVar1 = "WIA";
pcVar2 = "";
break;
case 8:
*(DiscIO **)this = this + 0x10;
pcVar1 = "RVZ";
pcVar2 = "";
break;
case 9:
pcVar2 = "Mod";
pcVar1 = "";
goto LAB_0027d197;
case 10:
*(DiscIO **)this = this + 0x10;
pcVar1 = "NFS";
pcVar2 = "";
break;
case 0xb:
pcVar2 = "Multi-part ISO";
pcVar1 = "";
LAB_0027d197:
local_40 = local_30;
std::__cxx11::string::_M_construct<char_const*>(&local_40,pcVar2,pcVar1);
if (param_3 == '\0') {
*(DiscIO **)this = this + 0x10;
std::__cxx11::string::_M_construct<char*>(this,local_40,local_38 + (long)local_40);
}
else {
Common::GetStringT_abi_cxx11_((char *)this);
}
if (local_40 == local_30) {
return this;
}
operator_delete(local_40,local_30[0] + 1);
return this;
}
std::__cxx11::string::_M_construct<char_const*>(this,pcVar1,pcVar2);
return this;
}
|
|
59,453
|
nglog::LogMessage::SendToLog()
|
ng-log[P]ng-log/src/logging.cc
|
EXCLUSIVE_LOCKS_REQUIRED(log_mutex) {
static bool already_warned_before_init = false;
RAW_DCHECK(data_->num_chars_to_log_ > 0 &&
data_->message_text_[data_->num_chars_to_log_ - 1] == '\n',
"");
// Messages of a given severity get logged to lower severity logs, too
if (!already_warned_before_init && !IsLoggingInitialized()) {
const char w[] =
"WARNING: Logging before InitializeLogging() is "
"written to STDERR\n";
WriteToStderr(w, strlen(w));
already_warned_before_init = true;
}
// global flag: never log to file if set. Also -- don't log to a
// file if we haven't parsed the command line flags to get the
// program name.
if (FLAGS_logtostderr || FLAGS_logtostdout || !IsLoggingInitialized()) {
if (FLAGS_logtostdout) {
ColoredWriteToStdout(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
} else {
ColoredWriteToStderr(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
}
// this could be protected by a flag if necessary.
LogDestination::LogToSinks(
data_->severity_, data_->fullname_, data_->basename_, data_->line_,
time_, data_->message_text_ + data_->num_prefix_chars_,
(data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1));
} else {
// log this message to all log files of severity <= severity_
LogDestination::LogToAllLogfiles(data_->severity_, time_.when(),
data_->message_text_,
data_->num_chars_to_log_);
LogDestination::MaybeLogToStderr(data_->severity_, data_->message_text_,
data_->num_chars_to_log_,
data_->num_prefix_chars_);
LogDestination::MaybeLogToEmail(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
LogDestination::LogToSinks(
data_->severity_, data_->fullname_, data_->basename_, data_->line_,
time_, data_->message_text_ + data_->num_prefix_chars_,
(data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1));
// NOTE: -1 removes trailing \n
}
// If we log a FATAL message, flush all the log destinations, then toss
// a signal for others to catch. We leave the logs in a state that
// someone else can use them (as long as they flush afterwards)
if (data_->severity_ == NGLOG_FATAL && exit_on_dfatal) {
if (data_->first_fatal_) {
// Store crash information so that it is accessible from within signal
// handlers that may be invoked later.
RecordCrashReason(&crash_reason);
SetCrashReason(&crash_reason);
// Store shortened fatal message for other logs and GWQ status
const size_t copy =
min(data_->num_chars_to_log_, sizeof(fatal_message) - 1);
memcpy(fatal_message, data_->message_text_, copy);
fatal_message[copy] = '\0';
fatal_time = time_.when();
}
if (!FLAGS_logtostderr && !FLAGS_logtostdout) {
for (auto& log_destination : LogDestination::log_destinations_) {
if (log_destination) {
log_destination->logger_->Write(
true, std::chrono::system_clock::time_point{}, "", 0);
}
}
}
LogDestination::WaitForSinks(data_);
}
}
|
O1
|
cpp
|
nglog::LogMessage::SendToLog():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq 0x8(%rdi), %rax
movq 0x76c0(%rax), %rcx
testq %rcx, %rcx
je 0xa07a
cmpb $0xa, 0x3(%rcx,%rax)
je 0xa0a7
leaq 0x185a1(%rip), %rsi # 0x22622
leaq 0x185e1(%rip), %rcx # 0x22669
leaq 0x185ee(%rip), %r8 # 0x2267d
leaq 0x18b01(%rip), %r9 # 0x22b97
movl $0x3, %edi
movl $0x6f6, %edx # imm = 0x6F6
xorl %eax, %eax
callq 0x1f2d8
cmpb $0x0, 0x34b4a(%rip) # 0x3ebf8
jne 0xa0bd
callq 0x211a0
testb %al, %al
je 0xa4ee
leaq 0x258c6(%rip), %rax # 0x2f98a
cmpb $0x0, (%rax)
movq %r15, 0x8(%rsp)
jne 0xa230
leaq 0x258b9(%rip), %rax # 0x2f992
cmpb $0x0, (%rax)
jne 0xa230
callq 0x211a0
testb %al, %al
je 0xa230
movq 0x8(%r15), %rdx
movl 0x7698(%rdx), %edi
leaq 0x48(%r15), %rsi
movq 0x76c0(%rdx), %rcx
addq $0x4, %rdx
callq 0x106b8
movq 0x8(%r15), %r14
movl 0x7698(%r14), %ebp
movq 0x76c0(%r14), %rcx
movq 0x76b8(%r14), %rbx
leaq 0x2586b(%rip), %rax # 0x2f998
cmpl %ebp, (%rax)
jle 0xa13d
leaq 0x25854(%rip), %rax # 0x2f98c
cmpb $0x1, (%rax)
jne 0xa16a
addq $0x4, %r14
movq 0x24e50(%rip), %rax # 0x2ef98
movq (%rax), %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x103c9
callq 0x211cb
addq %rbx, %r14
movl %ebp, %edi
movq %rax, %rsi
movq %r14, %rdx
callq 0x211ac
movq 0x8(%r15), %rsi
movl 0x7698(%rsi), %edi
movq 0x76c0(%rsi), %rdx
addq $0x4, %rsi
callq 0x107f4
movq 0x8(%r15), %r14
movl 0x7698(%r14), %eax
movl %eax, 0x4(%rsp)
movl 0x769c(%r14), %eax
movl %eax, (%rsp)
movq 0x76d8(%r14), %r15
movq 0x76d0(%r14), %r12
movq 0x76b8(%r14), %rbp
movq %rbp, %rbx
notq %rbx
addq 0x76c0(%r14), %rbx
leaq 0x25992(%rip), %rdi # 0x2fb58
callq 0x11ad6
movq 0x2597e(%rip), %rax # 0x2fb50
testq %rax, %rax
je 0xa318
movq 0x8(%rsp), %rcx
leaq 0x10(%rcx), %r13
addq %r14, %rbp
addq $0x4, %rbp
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0xa318
movq 0x25949(%rip), %rax # 0x2fb50
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movl 0x4(%rsp), %esi
movq %r15, %rdx
movq %r12, %rcx
movl (%rsp), %r8d
movq %r13, %r9
pushq %rbx
pushq %rbp
callq *%rax
addq $0x10, %rsp
jmp 0xa1f6
leaq 0x2575b(%rip), %rax # 0x2f992
movq 0x8(%r15), %rdx
movl 0x7698(%rdx), %esi
movq 0x76c0(%rdx), %rcx
addq $0x4, %rdx
cmpb $0x1, (%rax)
jne 0xa265
leaq 0x25740(%rip), %rax # 0x2f998
cmpl %esi, (%rax)
jle 0xa265
movq 0x24cbd(%rip), %rax # 0x2ef20
jmp 0xa26c
movq 0x24d2c(%rip), %rax # 0x2ef98
movq (%rax), %rdi
callq 0x103c9
movq 0x8(%r15), %r14
movl 0x7698(%r14), %eax
movl %eax, 0x4(%rsp)
movl 0x769c(%r14), %eax
movl %eax, (%rsp)
movq 0x76d8(%r14), %r15
movq 0x76d0(%r14), %r12
movq 0x76b8(%r14), %rbp
movq %rbp, %rbx
notq %rbx
addq 0x76c0(%r14), %rbx
leaq 0x258a2(%rip), %rdi # 0x2fb58
callq 0x11ad6
movq 0x2588e(%rip), %rax # 0x2fb50
testq %rax, %rax
je 0xa318
movq 0x8(%rsp), %rcx
leaq 0x10(%rcx), %r13
addq %r14, %rbp
addq $0x4, %rbp
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0xa318
movq 0x25861(%rip), %rax # 0x2fb50
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movl 0x4(%rsp), %esi
movq %r15, %rdx
movq %r12, %rcx
movl (%rsp), %r8d
movq %r13, %r9
pushq %rbx
pushq %rbp
callq *%rax
addq $0x10, %rsp
jmp 0xa2e2
leaq 0x25839(%rip), %rdi # 0x2fb58
callq 0x7730
movq 0x8(%rsp), %r13
movq 0x8(%r13), %rax
cmpl $0x3, 0x7698(%rax)
jne 0xa4df
cmpb $0x1, 0x2521b(%rip) # 0x2f55c
jne 0xa4df
cmpb $0x1, 0x76e1(%rax)
jne 0xa3f1
leaq 0x259a5(%rip), %rax # 0x2fd00
movq 0x2d076(%rip), %rcx # 0x373d8
movq %rcx, 0x25877(%rip) # 0x2fbe0
leaq 0x25870(%rip), %r14 # 0x2fbe0
movl 0x2d026(%rip), %ecx # 0x3739c
movl %ecx, 0x2586c(%rip) # 0x2fbe8
movq 0x2d035(%rip), %rcx # 0x373b8
leaq 0x4(%rcx,%rax), %rax
movq %rax, 0x25861(%rip) # 0x2fbf0
leaq 0x25862(%rip), %rdi # 0x2fbf8
movl $0x20, %esi
movl $0x4, %edx
callq 0x202e0
movl %eax, 0x2594d(%rip) # 0x2fcf8
movq %r14, %rdi
callq 0x2120e
movq 0x8(%r13), %rsi
movq 0x76c0(%rsi), %rax
movl $0xff, %r14d
cmpq %r14, %rax
cmovbq %rax, %r14
addq $0x4, %rsi
leaq 0x3471a(%rip), %r15 # 0x3eaf0
movq %r15, %rdi
movq %r14, %rdx
callq 0x7400
movb $0x0, (%r14,%r15)
movq 0x48(%r13), %rax
movq %rax, 0x347ff(%rip) # 0x3ebf0
leaq 0x25592(%rip), %rax # 0x2f98a
cmpb $0x0, (%rax)
jne 0xa455
leaq 0x2558e(%rip), %rax # 0x2f992
cmpb $0x0, (%rax)
jne 0xa455
xorl %ebx, %ebx
leaq 0x2578e(%rip), %r12 # 0x2fba0
leaq 0x1877e(%rip), %r14 # 0x22b97
leaq 0x10(%rsp), %r15
movq (%rbx,%r12), %rax
testq %rax, %rax
je 0xa44b
movq 0xc8(%rax), %rdi
movq $0x0, 0x10(%rsp)
movq (%rdi), %rax
movl $0x1, %esi
movq %r15, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq *0x10(%rax)
addq $0x8, %rbx
cmpq $0x20, %rbx
jne 0xa41e
movq 0x8(%r13), %rbx
leaq 0x256f8(%rip), %rdi # 0x2fb58
callq 0x11ad6
movq 0x256e4(%rip), %rax # 0x2fb50
testq %rax, %rax
je 0xa498
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0xa498
movq 0x256c7(%rip), %rax # 0x2fb50
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0xa47c
movq 0x76a0(%rbx), %rax
cmpq 0x24b52(%rip), %rax # 0x2eff8
setne %cl
cmpq 0x24b00(%rip), %rax # 0x2efb0
setne %al
testb %al, %cl
jne 0xa4d3
cmpq $0x0, 0x76a8(%rbx)
jne 0xa4d3
movq 0x76b0(%rbx), %rdi
testq %rdi, %rdi
je 0xa4d3
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x2567e(%rip), %rdi # 0x2fb58
callq 0x7730
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7b4d
jmp 0xa0bd
jmp 0xa4fe
jmp 0xa4fe
jmp 0xa4fe
movq %rax, %rbx
leaq 0x25650(%rip), %rdi # 0x2fb58
callq 0x7730
movq %rbx, %rdi
callq 0x7980
nop
|
_ZN5nglog10LogMessage9SendToLogEv:
push rbp; void *
push r15; int
push r14; __int64
push r13; int
push r12; void *
push rbx; int
sub rsp, 18h
mov r15, rdi
mov rax, [rdi+8]
mov rcx, [rax+76C0h]
test rcx, rcx
jz short loc_A07A
cmp byte ptr [rcx+rax+3], 0Ah
jz short loc_A0A7
loc_A07A:
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aCheckSFailedS; "Check %s failed: %s"
lea r8, aDataNumCharsTo; "data_->num_chars_to_log_ > 0 && data_->"...
lea r9, asc_22B95+2; ""
mov edi, (offset dword_0+3); this
mov edx, 6F6h
xor eax, eax
call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)
loc_A0A7:
cmp cs:_ZZN5nglog10LogMessage9SendToLogEvE26already_warned_before_init, 0; nglog::LogMessage::SendToLog(void)::already_warned_before_init
jnz short loc_A0BD
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jz loc_A4EE
loc_A0BD:
lea rax, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr
cmp byte ptr [rax], 0
mov qword ptr [rsp+48h+var_40], r15; int
jnz loc_A230
lea rax, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
cmp byte ptr [rax], 0
jnz loc_A230
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jz loc_A230
mov rdx, [r15+8]
mov edi, [rdx+7698h]
lea rsi, [r15+48h]
mov rcx, [rdx+76C0h]
add rdx, 4
call _ZN5nglog14LogDestination16LogToAllLogfilesENS_11LogSeverityERKNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEEPKcm; nglog::LogDestination::LogToAllLogfiles(nglog::LogSeverity,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,char const*,ulong)
mov r14, [r15+8]
mov ebp, [r14+7698h]
mov rcx, [r14+76C0h]
mov rbx, [r14+76B8h]
lea rax, _ZN3fLI21FLAGS_stderrthresholdE; fLI::FLAGS_stderrthreshold
cmp [rax], ebp
jle short loc_A13D
lea rax, _ZN3fLB21FLAGS_alsologtostderrE; fLB::FLAGS_alsologtostderr
cmp byte ptr [rax], 1
jnz short loc_A16A
loc_A13D:
add r14, 4
mov rax, cs:stderr_ptr
mov rdi, [rax]; this
mov esi, ebp
mov rdx, r14
call _ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm; nglog::ColoredWriteToStderrOrStdout(_IO_FILE *,nglog::LogSeverity,char const*,ulong)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
add r14, rbx
mov edi, ebp
mov rsi, rax
mov rdx, r14
call _ZN5nglog5tools14AlsoErrorWriteENS_11LogSeverityEPKcS3_; nglog::tools::AlsoErrorWrite(nglog::LogSeverity,char const*,char const*)
loc_A16A:
mov rsi, [r15+8]
mov edi, [rsi+7698h]; int
mov rdx, [rsi+76C0h]; int
add rsi, 4; int
call _ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm; nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity,char const*,ulong)
mov r14, [r15+8]
mov eax, [r14+7698h]
mov [rsp+48h+var_44], eax
mov eax, [r14+769Ch]
mov [rsp+48h+var_48], eax
mov r15, [r14+76D8h]
mov r12, [r14+76D0h]
mov rbp, [r14+76B8h]
mov rbx, rbp
not rbx
add rbx, [r14+76C0h]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz loc_A318
mov rcx, qword ptr [rsp+48h+var_40]
lea r13, [rcx+10h]
add rbp, r14
add rbp, 4
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_A1F6:
sub r14, 1
jb loc_A318
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
mov rax, [rax+10h]
mov esi, [rsp+48h+var_44]
mov rdx, r15
mov rcx, r12
mov r8d, [rsp+48h+var_48]
mov r9, r13
push rbx
push rbp
call rax
add rsp, 10h
jmp short loc_A1F6
loc_A230:
lea rax, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
mov rdx, [r15+8]
mov esi, [rdx+7698h]
mov rcx, [rdx+76C0h]
add rdx, 4
cmp byte ptr [rax], 1
jnz short loc_A265
lea rax, _ZN3fLI21FLAGS_stderrthresholdE; fLI::FLAGS_stderrthreshold
cmp [rax], esi
jle short loc_A265
mov rax, cs:stdout_ptr
jmp short loc_A26C
loc_A265:
mov rax, cs:stderr_ptr
loc_A26C:
mov rdi, [rax]
call _ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm; nglog::ColoredWriteToStderrOrStdout(_IO_FILE *,nglog::LogSeverity,char const*,ulong)
mov r14, [r15+8]
mov eax, [r14+7698h]
mov [rsp+48h+var_44], eax
mov eax, [r14+769Ch]
mov [rsp+48h+var_48], eax
mov r15, [r14+76D8h]
mov r12, [r14+76D0h]
mov rbp, [r14+76B8h]
mov rbx, rbp
not rbx
add rbx, [r14+76C0h]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz short loc_A318
mov rcx, qword ptr [rsp+48h+var_40]
lea r13, [rcx+10h]
add rbp, r14
add rbp, 4
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_A2E2:
sub r14, 1
jb short loc_A318
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
mov rax, [rax+10h]
mov esi, [rsp+48h+var_44]
mov rdx, r15
mov rcx, r12
mov r8d, [rsp+48h+var_48]
mov r9, r13
push rbx
push rbp
call rax
add rsp, 10h
jmp short loc_A2E2
loc_A318:
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
mov r13, qword ptr [rsp+48h+var_40]
mov rax, [r13+8]
cmp dword ptr [rax+7698h], 3
jnz loc_A4DF
cmp cs:_ZN5nglogL14exit_on_dfatalE, 1; nglog::exit_on_dfatal
jnz loc_A4DF
cmp byte ptr [rax+76E1h], 1
jnz loc_A3F1
lea rax, _ZN5nglogL24fatal_msg_data_exclusiveE; nglog::fatal_msg_data_exclusive
mov rcx, cs:qword_373D8
mov cs:_ZN5nglogL12crash_reasonE, rcx; nglog::crash_reason
lea r14, _ZN5nglogL12crash_reasonE; nglog::crash_reason
mov ecx, cs:dword_3739C
mov cs:dword_2FBE8, ecx
mov rcx, cs:qword_373B8; int
lea rax, [rcx+rax+4]
mov cs:qword_2FBF0, rax
lea rdi, unk_2FBF8; this
mov esi, offset qword_20; void **
mov edx, 4; int
call _ZN5nglog5tools13GetStackTraceEPPvii; nglog::tools::GetStackTrace(void **,int,int)
mov cs:dword_2FCF8, eax
mov rdi, r14
call _ZN5nglog5tools14SetCrashReasonEPKNS_8internal11CrashReasonE; nglog::tools::SetCrashReason(nglog::internal::CrashReason const*)
mov rsi, [r13+8]
mov rax, [rsi+76C0h]
mov r14d, 0FFh
cmp rax, r14
cmovb r14, rax
add rsi, 4
lea r15, _ZN5nglogL13fatal_messageE; nglog::fatal_message
mov rdi, r15
mov rdx, r14
call _memcpy
mov byte ptr [r14+r15], 0
mov rax, [r13+48h]
mov cs:_ZN5nglogL10fatal_timeE, rax; nglog::fatal_time
loc_A3F1:
lea rax, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr
cmp byte ptr [rax], 0
jnz short loc_A455
lea rax, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
cmp byte ptr [rax], 0
jnz short loc_A455
xor ebx, ebx
lea r12, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_
lea r14, asc_22B95+2; ""
lea r15, [rsp+48h+var_38]
loc_A41E:
mov rax, [rbx+r12]
test rax, rax
jz short loc_A44B
mov rdi, [rax+0C8h]
mov [rsp+48h+var_38], 0
mov rax, [rdi]
mov esi, 1
mov rdx, r15
mov rcx, r14
xor r8d, r8d
call qword ptr [rax+10h]
loc_A44B:
add rbx, 8
cmp rbx, 20h ; ' '
jnz short loc_A41E
loc_A455:
mov rbx, [r13+8]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz short loc_A498
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_A47C:
sub r14, 1
jb short loc_A498
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
call qword ptr [rax+18h]
jmp short loc_A47C
loc_A498:
mov rax, [rbx+76A0h]
cmp rax, cs:_ZN5nglog10LogMessage10SendToSinkEv_ptr
setnz cl
cmp rax, cs:_ZN5nglog10LogMessage16SendToSinkAndLogEv_ptr
setnz al
test cl, al
jnz short loc_A4D3
cmp qword ptr [rbx+76A8h], 0
jnz short loc_A4D3
mov rdi, [rbx+76B0h]
test rdi, rdi
jz short loc_A4D3
mov rax, [rdi]
call qword ptr [rax+18h]
loc_A4D3:
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
loc_A4DF:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A4EE:
call _ZN5nglog10LogMessage9SendToLogEv_cold_1; nglog::LogMessage::SendToLog(void) [clone]
jmp loc_A0BD
jmp short loc_A4FE
jmp short loc_A4FE
jmp short $+2
loc_A4FE:
mov rbx, rax
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
mov rdi, rbx
call __Unwind_Resume
|
SendToLog:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x76c0]
TEST RCX,RCX
JZ 0x0010a07a
CMP byte ptr [RCX + RAX*0x1 + 0x3],0xa
JZ 0x0010a0a7
LAB_0010a07a:
LEA RSI,[0x122622]
LEA RCX,[0x122669]
LEA R8,[0x12267d]
LEA R9,[0x122b97]
MOV EDI,0x3
MOV EDX,0x6f6
XOR EAX,EAX
CALL 0x0011f2d8
LAB_0010a0a7:
CMP byte ptr [0x0013ebf8],0x0
JNZ 0x0010a0bd
CALL 0x001211a0
TEST AL,AL
JZ 0x0010a4ee
LAB_0010a0bd:
LEA RAX,[0x12f98a]
CMP byte ptr [RAX],0x0
MOV qword ptr [RSP + 0x8],R15
JNZ 0x0010a230
LEA RAX,[0x12f992]
CMP byte ptr [RAX],0x0
JNZ 0x0010a230
CALL 0x001211a0
TEST AL,AL
JZ 0x0010a230
MOV RDX,qword ptr [R15 + 0x8]
MOV EDI,dword ptr [RDX + 0x7698]
LEA RSI,[R15 + 0x48]
MOV RCX,qword ptr [RDX + 0x76c0]
ADD RDX,0x4
CALL 0x001106b8
MOV R14,qword ptr [R15 + 0x8]
MOV EBP,dword ptr [R14 + 0x7698]
MOV RCX,qword ptr [R14 + 0x76c0]
MOV RBX,qword ptr [R14 + 0x76b8]
LEA RAX,[0x12f998]
CMP dword ptr [RAX],EBP
JLE 0x0010a13d
LEA RAX,[0x12f98c]
CMP byte ptr [RAX],0x1
JNZ 0x0010a16a
LAB_0010a13d:
ADD R14,0x4
MOV RAX,qword ptr [0x0012ef98]
MOV RDI,qword ptr [RAX]
MOV ESI,EBP
MOV RDX,R14
CALL 0x001103c9
CALL 0x001211cb
ADD R14,RBX
MOV EDI,EBP
MOV RSI,RAX
MOV RDX,R14
CALL 0x001211ac
LAB_0010a16a:
MOV RSI,qword ptr [R15 + 0x8]
MOV EDI,dword ptr [RSI + 0x7698]
MOV RDX,qword ptr [RSI + 0x76c0]
ADD RSI,0x4
CALL 0x001107f4
MOV R14,qword ptr [R15 + 0x8]
MOV EAX,dword ptr [R14 + 0x7698]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [R14 + 0x769c]
MOV dword ptr [RSP],EAX
MOV R15,qword ptr [R14 + 0x76d8]
MOV R12,qword ptr [R14 + 0x76d0]
MOV RBP,qword ptr [R14 + 0x76b8]
MOV RBX,RBP
NOT RBX
ADD RBX,qword ptr [R14 + 0x76c0]
LEA RDI,[0x12fb58]
CALL 0x00111ad6
MOV RAX,qword ptr [0x0012fb50]
TEST RAX,RAX
JZ 0x0010a318
MOV RCX,qword ptr [RSP + 0x8]
LEA R13,[RCX + 0x10]
ADD RBP,R14
ADD RBP,0x4
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_0010a1f6:
SUB R14,0x1
JC 0x0010a318
MOV RAX,qword ptr [0x0012fb50]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_0010a215:
MOV ESI,dword ptr [RSP + 0x4]
MOV RDX,R15
MOV RCX,R12
MOV R8D,dword ptr [RSP]
MOV R9,R13
PUSH RBX
PUSH RBP
CALL RAX
ADD RSP,0x10
LAB_0010a22e:
JMP 0x0010a1f6
LAB_0010a230:
LEA RAX,[0x12f992]
MOV RDX,qword ptr [R15 + 0x8]
MOV ESI,dword ptr [RDX + 0x7698]
MOV RCX,qword ptr [RDX + 0x76c0]
ADD RDX,0x4
CMP byte ptr [RAX],0x1
JNZ 0x0010a265
LEA RAX,[0x12f998]
CMP dword ptr [RAX],ESI
JLE 0x0010a265
MOV RAX,qword ptr [0x0012ef20]
JMP 0x0010a26c
LAB_0010a265:
MOV RAX,qword ptr [0x0012ef98]
LAB_0010a26c:
MOV RDI,qword ptr [RAX]
CALL 0x001103c9
MOV R14,qword ptr [R15 + 0x8]
MOV EAX,dword ptr [R14 + 0x7698]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [R14 + 0x769c]
MOV dword ptr [RSP],EAX
MOV R15,qword ptr [R14 + 0x76d8]
MOV R12,qword ptr [R14 + 0x76d0]
MOV RBP,qword ptr [R14 + 0x76b8]
MOV RBX,RBP
NOT RBX
ADD RBX,qword ptr [R14 + 0x76c0]
LEA RDI,[0x12fb58]
CALL 0x00111ad6
MOV RAX,qword ptr [0x0012fb50]
TEST RAX,RAX
JZ 0x0010a318
MOV RCX,qword ptr [RSP + 0x8]
LEA R13,[RCX + 0x10]
ADD RBP,R14
ADD RBP,0x4
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_0010a2e2:
SUB R14,0x1
JC 0x0010a318
MOV RAX,qword ptr [0x0012fb50]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_0010a2fd:
MOV ESI,dword ptr [RSP + 0x4]
MOV RDX,R15
MOV RCX,R12
MOV R8D,dword ptr [RSP]
MOV R9,R13
PUSH RBX
PUSH RBP
CALL RAX
ADD RSP,0x10
LAB_0010a316:
JMP 0x0010a2e2
LAB_0010a318:
LEA RDI,[0x12fb58]
CALL 0x00107730
MOV R13,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [R13 + 0x8]
CMP dword ptr [RAX + 0x7698],0x3
JNZ 0x0010a4df
CMP byte ptr [0x0012f55c],0x1
JNZ 0x0010a4df
CMP byte ptr [RAX + 0x76e1],0x1
JNZ 0x0010a3f1
LEA RAX,[0x12fd00]
MOV RCX,qword ptr [0x001373d8]
MOV qword ptr [0x0012fbe0],RCX
LEA R14,[0x12fbe0]
MOV ECX,dword ptr [0x0013739c]
MOV dword ptr [0x0012fbe8],ECX
MOV RCX,qword ptr [0x001373b8]
LEA RAX,[RCX + RAX*0x1 + 0x4]
MOV qword ptr [0x0012fbf0],RAX
LEA RDI,[0x12fbf8]
MOV ESI,0x20
MOV EDX,0x4
CALL 0x001202e0
MOV dword ptr [0x0012fcf8],EAX
MOV RDI,R14
CALL 0x0012120e
MOV RSI,qword ptr [R13 + 0x8]
MOV RAX,qword ptr [RSI + 0x76c0]
MOV R14D,0xff
CMP RAX,R14
CMOVC R14,RAX
ADD RSI,0x4
LEA R15,[0x13eaf0]
MOV RDI,R15
MOV RDX,R14
CALL 0x00107400
MOV byte ptr [R14 + R15*0x1],0x0
MOV RAX,qword ptr [R13 + 0x48]
MOV qword ptr [0x0013ebf0],RAX
LAB_0010a3f1:
LEA RAX,[0x12f98a]
CMP byte ptr [RAX],0x0
JNZ 0x0010a455
LEA RAX,[0x12f992]
CMP byte ptr [RAX],0x0
JNZ 0x0010a455
XOR EBX,EBX
LEA R12,[0x12fba0]
LEA R14,[0x122b97]
LEA R15,[RSP + 0x10]
LAB_0010a41e:
MOV RAX,qword ptr [RBX + R12*0x1]
TEST RAX,RAX
JZ 0x0010a44b
MOV RDI,qword ptr [RAX + 0xc8]
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RDI]
MOV ESI,0x1
MOV RDX,R15
MOV RCX,R14
XOR R8D,R8D
CALL qword ptr [RAX + 0x10]
LAB_0010a44b:
ADD RBX,0x8
CMP RBX,0x20
JNZ 0x0010a41e
LAB_0010a455:
MOV RBX,qword ptr [R13 + 0x8]
LEA RDI,[0x12fb58]
CALL 0x00111ad6
MOV RAX,qword ptr [0x0012fb50]
TEST RAX,RAX
JZ 0x0010a498
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_0010a47c:
SUB R14,0x1
JC 0x0010a498
MOV RAX,qword ptr [0x0012fb50]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
LAB_0010a493:
CALL qword ptr [RAX + 0x18]
JMP 0x0010a47c
LAB_0010a498:
MOV RAX,qword ptr [RBX + 0x76a0]
CMP RAX,qword ptr [0x0012eff8]
SETNZ CL
CMP RAX,qword ptr [0x0012efb0]
SETNZ AL
TEST CL,AL
JNZ 0x0010a4d3
CMP qword ptr [RBX + 0x76a8],0x0
JNZ 0x0010a4d3
MOV RDI,qword ptr [RBX + 0x76b0]
TEST RDI,RDI
JZ 0x0010a4d3
MOV RAX,qword ptr [RDI]
LAB_0010a4d0:
CALL qword ptr [RAX + 0x18]
LAB_0010a4d3:
LEA RDI,[0x12fb58]
CALL 0x00107730
LAB_0010a4df:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010a4ee:
CALL 0x00107b4d
JMP 0x0010a0bd
|
/* nglog::LogMessage::SendToLog() */
void __thiscall nglog::LogMessage::SendToLog(LogMessage *this)
{
int iVar1;
int4 uVar2;
int8 uVar3;
ulong uVar4;
long *plVar5;
char cVar6;
int8 uVar7;
int8 *puVar8;
long lVar9;
long lVar10;
size_t __n;
long lVar11;
bool bVar12;
int4 uVar13;
int8 local_38;
lVar9 = *(long *)(*(long *)(this + 8) + 0x76c0);
if ((lVar9 == 0) || (*(char *)(lVar9 + 3 + *(long *)(this + 8)) != '\n')) {
RawLog(3,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x6f6,
"Check %s failed: %s",
"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == \'\\n\'"
,&DAT_00122b97);
}
if ((SendToLog()::already_warned_before_init == '\0') &&
(cVar6 = IsLoggingInitialized(), cVar6 == '\0')) {
SendToLog();
}
if (((fLB::FLAGS_logtostderr == '\0') && (fLB::FLAGS_logtostdout == '\0')) &&
(cVar6 = IsLoggingInitialized(), cVar6 != '\0')) {
lVar9 = *(long *)(this + 8);
LogDestination::LogToAllLogfiles
(*(int4 *)(lVar9 + 0x7698),this + 0x48,lVar9 + 4,*(int8 *)(lVar9 + 0x76c0)
);
lVar9 = *(long *)(this + 8);
iVar1 = *(int *)(lVar9 + 0x7698);
lVar11 = *(long *)(lVar9 + 0x76b8);
if ((fLI::FLAGS_stderrthreshold <= iVar1) || (fLB::FLAGS_alsologtostderr == '\x01')) {
ColoredWriteToStderrOrStdout
(*(int8 *)PTR_stderr_0012ef98,iVar1,lVar9 + 4,*(int8 *)(lVar9 + 0x76c0))
;
uVar7 = tools::ProgramInvocationShortName();
tools::AlsoErrorWrite(iVar1,uVar7,lVar9 + 4 + lVar11);
}
lVar9 = *(long *)(this + 8);
LogDestination::MaybeLogToEmail
(*(int4 *)(lVar9 + 0x7698),lVar9 + 4,*(int8 *)(lVar9 + 0x76c0));
lVar9 = *(long *)(this + 8);
uVar2 = *(int4 *)(lVar9 + 0x7698);
uVar13 = *(int4 *)(lVar9 + 0x769c);
uVar7 = *(int8 *)(lVar9 + 0x76d8);
uVar3 = *(int8 *)(lVar9 + 0x76d0);
uVar4 = *(ulong *)(lVar9 + 0x76b8);
lVar11 = *(long *)(lVar9 + 0x76c0);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar10 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar10 != 0, lVar10 = lVar10 + -1, bVar12) {
plVar5 = *(long **)(*LogDestination::sinks_ + lVar10 * 8);
/* try { // try from 0010a215 to 0010a22d has its CatchHandler @ 0010a4fa */
(**(code **)(*plVar5 + 0x10))
(plVar5,uVar2,uVar7,uVar3,uVar13,this + 0x10,uVar4 + lVar9 + 4,~uVar4 + lVar11,
uVar13);
}
}
}
else {
lVar9 = *(long *)(this + 8);
puVar8 = (int8 *)PTR_stderr_0012ef98;
if ((fLB::FLAGS_logtostdout == '\x01') &&
(*(int *)(lVar9 + 0x7698) < fLI::FLAGS_stderrthreshold)) {
puVar8 = (int8 *)PTR_stdout_0012ef20;
}
ColoredWriteToStderrOrStdout
(*puVar8,*(int *)(lVar9 + 0x7698),lVar9 + 4,*(int8 *)(lVar9 + 0x76c0));
lVar9 = *(long *)(this + 8);
uVar2 = *(int4 *)(lVar9 + 0x7698);
uVar13 = *(int4 *)(lVar9 + 0x769c);
uVar7 = *(int8 *)(lVar9 + 0x76d8);
uVar3 = *(int8 *)(lVar9 + 0x76d0);
uVar4 = *(ulong *)(lVar9 + 0x76b8);
lVar11 = *(long *)(lVar9 + 0x76c0);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar10 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar10 != 0, lVar10 = lVar10 + -1, bVar12) {
plVar5 = *(long **)(*LogDestination::sinks_ + lVar10 * 8);
/* try { // try from 0010a2fd to 0010a315 has its CatchHandler @ 0010a4fe */
(**(code **)(*plVar5 + 0x10))
(plVar5,uVar2,uVar7,uVar3,uVar13,this + 0x10,uVar4 + lVar9 + 4,~uVar4 + lVar11);
}
}
}
pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_);
if ((*(int *)(*(long *)(this + 8) + 0x7698) == 3) && (exit_on_dfatal == '\x01')) {
if (*(char *)(*(long *)(this + 8) + 0x76e1) == '\x01') {
crash_reason._0_8_ = fatal_msg_data_exclusive._30424_8_;
crash_reason._8_4_ = fatal_msg_data_exclusive._30364_4_;
crash_reason._16_8_ = fatal_msg_data_exclusive._30392_8_ + 0x12fd04;
crash_reason._280_4_ = tools::GetStackTrace((void **)(crash_reason + 0x18),0x20,4);
tools::SetCrashReason((CrashReason *)crash_reason);
uVar4 = *(ulong *)(*(long *)(this + 8) + 0x76c0);
__n = 0xff;
if (uVar4 < 0xff) {
__n = uVar4;
}
memcpy(&fatal_message,(void *)(*(long *)(this + 8) + 4),__n);
(&fatal_message)[__n] = 0;
fatal_time = *(int8 *)(this + 0x48);
}
if ((fLB::FLAGS_logtostderr == '\0') && (fLB::FLAGS_logtostdout == '\0')) {
lVar9 = 0;
do {
if (*(long *)((long)&LogDestination::log_destinations_ + lVar9) != 0) {
plVar5 = *(long **)(*(long *)((long)&LogDestination::log_destinations_ + lVar9) + 200);
local_38 = 0;
(**(code **)(*plVar5 + 0x10))(plVar5,1,&local_38,&DAT_00122b97,0);
}
lVar9 = lVar9 + 8;
} while (lVar9 != 0x20);
}
lVar9 = *(long *)(this + 8);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar11 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar11 != 0, lVar11 = lVar11 + -1, bVar12) {
/* try { // try from 0010a493 to 0010a495 has its CatchHandler @ 0010a4fc */
(**(code **)(**(long **)(*LogDestination::sinks_ + lVar11 * 8) + 0x18))();
}
}
if (((*(int **)(lVar9 + 0x76a0) == PTR_SendToSink_0012eff8 ||
*(int **)(lVar9 + 0x76a0) == PTR_SendToSinkAndLog_0012efb0) &&
(*(long *)(lVar9 + 0x76a8) == 0)) && (*(long **)(lVar9 + 0x76b0) != (long *)0x0)) {
/* try { // try from 0010a4d0 to 0010a4d2 has its CatchHandler @ 0010a4f8 */
(**(code **)(**(long **)(lVar9 + 0x76b0) + 0x18))();
}
pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_);
}
return;
}
|
||
59,454
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
llama.cpp/common/json.hpp
|
T& operator[](const key_type& key)
{
return emplace(key, T{}).first->second;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movb $0x0, (%r15)
movq $0x0, 0x8(%r15)
movq %r15, %rdi
movl $0x1, %esi
callq 0x852f2
movq %r15, %rdi
movl $0x1, %esi
callq 0x852f2
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x8b004
movq %rax, %rbx
addq $0x20, %rbx
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x852f2
movq %r14, %rdi
callq 0x89a0c
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x852f2
movq %r14, %rdi
callq 0x89a0c
movq %rbx, %rdi
callq 0x20af0
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
mov r14, rdi
mov r15, rsp
mov byte ptr [r15], 0
mov qword ptr [r15+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov rsi, rbx
mov rdx, r15
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rbx, rax
add rbx, 20h ; ' '
mov r14, rsp
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov r14, rsp
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[](
long long a1,
long long a2)
{
long long v2; // rbx
char v4[8]; // [rsp+0h] [rbp-28h] BYREF
long long v5; // [rsp+8h] [rbp-20h]
v4[0] = 0;
v5 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4);
v2 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace(
a1,
a2,
v4)
+ 32;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v4);
return v2;
}
|
operator[]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R14,RDI
MOV R15,RSP
MOV byte ptr [R15],0x0
MOV qword ptr [R15 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001852f2
MOV RDI,R15
MOV ESI,0x1
CALL 0x001852f2
LAB_0018af70:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
CALL 0x0018b004
LAB_0018af7e:
MOV RBX,RAX
ADD RBX,0x20
MOV R14,RSP
MOV RDI,R14
XOR ESI,ESI
CALL 0x001852f2
MOV RDI,R14
CALL 0x00189a0c
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > > >::operator[](std::__cxx11::string const&) */
long __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::operator[](ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*this,string *param_1)
{
long lVar1;
bool bVar2;
basic_json local_28 [8];
int8 local_20;
local_28[0] = (basic_json)0x0;
local_20 = 0;
bVar2 = SUB81(local_28,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(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>
::assert_invariant(bVar2);
/* try { // try from 0018af70 to 0018af7d has its CatchHandler @ 0018afa7 */
lVar1 = emplace(this,param_1,local_28);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(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>
::data::~data((data *)local_28);
return lVar1 + 0x20;
}
|
|
59,455
|
StopMusicStream
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
|
void StopMusicStream(Music music)
{
StopAudioStream(music.stream);
switch (music.ctxType)
{
#if defined(SUPPORT_FILEFORMAT_WAV)
case MUSIC_AUDIO_WAV: drwav_seek_to_first_pcm_frame((drwav *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_OGG)
case MUSIC_AUDIO_OGG: stb_vorbis_seek_start((stb_vorbis *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_MP3)
case MUSIC_AUDIO_MP3: drmp3_seek_to_start_of_stream((drmp3 *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_QOA)
case MUSIC_AUDIO_QOA: qoaplay_rewind((qoaplay_desc *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_FLAC)
case MUSIC_AUDIO_FLAC: drflac__seek_to_first_frame((drflac *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_XM)
case MUSIC_MODULE_XM: jar_xm_reset((jar_xm_context_t *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_MOD)
case MUSIC_MODULE_MOD: jar_mod_seek_start((jar_mod_context_t *)music.ctxData); break;
#endif
default: break;
}
}
|
O0
|
c
|
StopMusicStream:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movq %rsp, %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x7d130
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x8(%rbp)
subl $0x6, %eax
ja 0x7d128
movq -0x8(%rbp), %rax
leaq 0x127db3(%rip), %rcx # 0x1a4e78
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x5f490
jmp 0x7d12a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x6a330
jmp 0x7d12a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x6e770
jmp 0x7d12a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x71370
jmp 0x7d12a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x76c80
jmp 0x7d12a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x796e0
jmp 0x7d12a
jmp 0x7d12a
addq $0x30, %rsp
popq %rbp
retq
|
StopMusicStream:
push rbp
mov rbp, rsp
sub rsp, 30h
lea rax, [rbp+arg_0]
mov [rbp+var_10], rax
movups xmm0, xmmword ptr [rax]
movups xmm1, xmmword ptr [rax+10h]
mov rax, rsp
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
call StopAudioStream
mov rax, [rbp+var_10]
mov eax, [rax+28h]
dec eax; switch 7 cases
mov ecx, eax
mov [rbp+var_8], rcx
sub eax, 6
ja short def_7D0CC; jumptable 000000000007D0CC default case, case 3
mov rax, [rbp+var_8]
lea rcx, jpt_7D0CC
movsxd rax, ds:(jpt_7D0CC - 1A4E78h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_7D0CE:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 1
mov rdi, [rax+30h]
call drwav_seek_to_first_pcm_frame
jmp short loc_7D12A
loc_7D0DD:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 2
mov rdi, [rax+30h]
call stb_vorbis_seek_start
jmp short loc_7D12A
loc_7D0EC:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 4
mov rdi, [rax+30h]
call drmp3_seek_to_start_of_stream
jmp short loc_7D12A
loc_7D0FB:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 5
mov rdi, [rax+30h]
call qoaplay_rewind
jmp short loc_7D12A
loc_7D10A:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 6
mov rdi, [rax+30h]
call jar_xm_reset
jmp short loc_7D12A
loc_7D119:
mov rax, [rbp+var_10]; jumptable 000000000007D0CC case 7
mov rdi, [rax+30h]
call jar_mod_seek_start
jmp short loc_7D12A
def_7D0CC:
jmp short $+2; jumptable 000000000007D0CC default case, case 3
loc_7D12A:
add rsp, 30h
pop rbp
retn
|
void StopMusicStream(
int a1,
int a2,
int a3,
int a4,
int a5,
int a6,
long long a7,
long long a8,
long long a9,
long long a10,
long long a11,
int a12,
long long a13)
{
StopAudioStream(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
switch ( a12 )
{
case 1:
drwav_seek_to_first_pcm_frame(a13);
break;
case 2:
stb_vorbis_seek_start(a13);
break;
case 4:
drmp3_seek_to_start_of_stream(a13);
break;
case 5:
qoaplay_rewind(a13);
break;
case 6:
jar_xm_reset(a13);
break;
case 7:
jar_mod_seek_start(a13);
break;
default:
return;
}
}
|
StopMusicStream:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x10],RAX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS XMM1,xmmword ptr [RAX + 0x10]
MOV RAX,RSP
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
CALL 0x0017d130
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x28]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x8],RCX
SUB EAX,0x6
JA 0x0017d128
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x2a4e78]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x0015f490
JMP 0x0017d12a
caseD_2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x0016a330
JMP 0x0017d12a
caseD_4:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x0016e770
JMP 0x0017d12a
caseD_5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00171370
JMP 0x0017d12a
caseD_6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00176c80
JMP 0x0017d12a
caseD_7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x001796e0
JMP 0x0017d12a
caseD_3:
JMP 0x0017d12a
LAB_0017d12a:
ADD RSP,0x30
POP RBP
RET
|
void StopMusicStream(void)
{
int4 in_stack_00000030;
int8 in_stack_00000038;
StopAudioStream();
switch(in_stack_00000030) {
case 1:
drwav_seek_to_first_pcm_frame(in_stack_00000038);
break;
case 2:
stb_vorbis_seek_start(in_stack_00000038);
break;
default:
break;
case 4:
drmp3_seek_to_start_of_stream(in_stack_00000038);
break;
case 5:
qoaplay_rewind(in_stack_00000038);
break;
case 6:
jar_xm_reset(in_stack_00000038);
break;
case 7:
jar_mod_seek_start(in_stack_00000038);
}
return;
}
|
|
59,456
|
StopMusicStream
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
|
void StopMusicStream(Music music)
{
StopAudioStream(music.stream);
switch (music.ctxType)
{
#if defined(SUPPORT_FILEFORMAT_WAV)
case MUSIC_AUDIO_WAV: drwav_seek_to_first_pcm_frame((drwav *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_OGG)
case MUSIC_AUDIO_OGG: stb_vorbis_seek_start((stb_vorbis *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_MP3)
case MUSIC_AUDIO_MP3: drmp3_seek_to_start_of_stream((drmp3 *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_QOA)
case MUSIC_AUDIO_QOA: qoaplay_rewind((qoaplay_desc *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_FLAC)
case MUSIC_AUDIO_FLAC: drflac__seek_to_first_frame((drflac *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_XM)
case MUSIC_MODULE_XM: jar_xm_reset((jar_xm_context_t *)music.ctxData); break;
#endif
#if defined(SUPPORT_FILEFORMAT_MOD)
case MUSIC_MODULE_MOD: jar_mod_seek_start((jar_mod_context_t *)music.ctxData); break;
#endif
default: break;
}
}
|
O1
|
c
|
StopMusicStream:
pushq %rax
movq 0x10(%rsp), %rdi
callq 0x433e0
movl 0x38(%rsp), %ecx
decl %ecx
cmpl $0x6, %ecx
ja 0x45188
leaq 0x10(%rsp), %rax
leaq 0x9087b(%rip), %rdx # 0xd59dc
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x30(%rax), %rdi
popq %rax
jmp 0x2fead
movq 0x30(%rax), %rdi
popq %rax
jmp 0x3c63e
movq 0x30(%rax), %rdi
popq %rax
jmp 0x427a3
popq %rax
retq
movq 0x30(%rax), %rdi
popq %rax
jmp 0x37446
movq 0x30(%rax), %rdi
popq %rax
jmp 0x3e516
movq 0x30(%rax), %rdi
popq %rax
jmp 0x41268
|
StopMusicStream:
push rax
mov rdi, [rsp+8+arg_0]
call StopAudioBuffer
mov ecx, [rsp+8+arg_28]
dec ecx; switch 7 cases
cmp ecx, 6
ja short def_45168; jumptable 0000000000045168 default case, case 3
lea rax, [rsp+8+arg_0]
lea rdx, jpt_45168
movsxd rcx, ds:(jpt_45168 - 0D59DCh)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_4516A:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 1
pop rax
jmp drwav_seek_to_first_pcm_frame
loc_45174:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 4
pop rax
jmp drmp3_seek_to_start_of_stream
loc_4517E:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 7
pop rax
jmp jar_mod_seek_start
def_45168:
pop rax; jumptable 0000000000045168 default case, case 3
retn
loc_4518A:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 2
pop rax
jmp stb_vorbis_seek_start
loc_45194:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 5
pop rax
jmp qoaplay_rewind
loc_4519E:
mov rdi, [rax+30h]; jumptable 0000000000045168 case 6
pop rax
jmp jar_xm_reset
|
void StopMusicStream(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
int a8,
int a9,
int a10,
int a11,
int a12,
long long a13)
{
StopAudioBuffer(a7);
switch ( a12 )
{
case 1:
drwav_seek_to_first_pcm_frame(a13);
break;
case 2:
stb_vorbis_seek_start(a13);
break;
case 4:
drmp3_seek_to_start_of_stream(a13);
break;
case 5:
qoaplay_rewind(a13);
break;
case 6:
jar_xm_reset(a13);
break;
case 7:
jar_mod_seek_start(a13);
break;
default:
return;
}
}
|
StopMusicStream:
PUSH RAX
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001433e0
MOV ECX,dword ptr [RSP + 0x38]
DEC ECX
CMP ECX,0x6
JA 0x00145188
LEA RAX,[RSP + 0x10]
LEA RDX,[0x1d59dc]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_1:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x0012fead
caseD_4:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x0013c63e
caseD_7:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x001427a3
caseD_3:
POP RAX
RET
caseD_2:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x00137446
caseD_5:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x0013e516
caseD_6:
MOV RDI,qword ptr [RAX + 0x30]
POP RAX
JMP 0x00141268
|
int8 StopMusicStream(void)
{
int8 in_RAX;
int8 uVar1;
int8 in_stack_00000008;
int4 in_stack_00000030;
int8 in_stack_00000038;
StopAudioBuffer(in_stack_00000008);
switch(in_stack_00000030) {
case 1:
uVar1 = drwav_seek_to_first_pcm_frame(in_stack_00000038);
return uVar1;
case 2:
uVar1 = stb_vorbis_seek_start(in_stack_00000038);
return uVar1;
default:
return in_RAX;
case 4:
uVar1 = drmp3_seek_to_start_of_stream(in_stack_00000038);
return uVar1;
case 5:
uVar1 = qoaplay_rewind(in_stack_00000038);
return uVar1;
case 6:
uVar1 = jar_xm_reset(in_stack_00000038);
return uVar1;
case 7:
uVar1 = jar_mod_seek_start(in_stack_00000038);
return uVar1;
}
}
|
|
59,457
|
c4_tx_verify_tx_hash
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_tx.c
|
INTERNAL bool c4_tx_verify_tx_hash(verify_ctx_t* ctx, bytes_t raw) {
if (ctx->method == NULL) return true;
if (strcmp(ctx->method, "eth_getTransactionByHash") == 0 || strcmp(ctx->method, "eth_getTransactionReceipt") == 0) {
json_t expected_hash = json_at(ctx->args, 0);
if (expected_hash.type != JSON_TYPE_STRING || expected_hash.len > 68) RETURN_VERIFY_ERROR(ctx, "invalid transaction hash!");
bytes32_t tmp = {0};
bytes32_t calculated_hash = {0};
buffer_t buf = stack_buffer(tmp);
bytes_t expected = json_as_bytes(expected_hash, &buf);
keccak(raw, calculated_hash);
if (expected.len != 32 || memcmp(expected.data, calculated_hash, 32) != 0) RETURN_VERIFY_ERROR(ctx, "invalid transaction hash!");
return true;
}
RETURN_VERIFY_ERROR(ctx, "invalid method for tx proof!");
}
|
O1
|
c
|
c4_tx_verify_tx_hash:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq (%rdi), %r15
testq %r15, %r15
je 0xd67a
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x2ff31(%rip), %rsi # 0x3d498
movq %r15, %rdi
callq 0x5280
testl %eax, %eax
je 0xd596
leaq 0x2ff85(%rip), %rsi # 0x3d4ff
movq %r15, %rdi
callq 0x5280
testl %eax, %eax
je 0xd596
leaq 0x70(%rbx), %rdi
leaq 0x30d32(%rip), %rsi # 0x3e2c3
jmp 0xd66d
movq 0x18(%rbx), %rax
movq %rax, 0x10(%rsp)
movdqu 0x8(%rbx), %xmm0
movdqu %xmm0, (%rsp)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x175d2
cmpl $0x1, 0x10(%r15)
jne 0xd662
cmpq $0x45, 0x20(%rsp)
jae 0xd662
pxor %xmm0, %xmm0
leaq 0x70(%rsp), %rax
movdqa %xmm0, 0x10(%rax)
movdqa %xmm0, (%rax)
leaq 0x30(%rsp), %r12
movdqa %xmm0, 0x10(%r12)
movdqa %xmm0, (%r12)
leaq 0x58(%rsp), %rdi
movl $0x0, (%rdi)
movq %rax, 0x8(%rdi)
movl $0xffffffe0, 0x10(%rdi) # imm = 0xFFFFFFE0
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movdqu 0x18(%rsp), %xmm0
movdqu %xmm0, (%rsp)
callq 0x1785b
movl %eax, %r13d
movq %rdx, %r15
movl %ebp, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x16aa8
cmpl $0x20, %r13d
jne 0xd662
movdqu (%r15), %xmm0
movdqu 0x10(%r15), %xmm1
pcmpeqb 0x40(%rsp), %xmm1
pcmpeqb 0x30(%rsp), %xmm0
pand %xmm1, %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax # imm = 0xFFFF
je 0xd67a
leaq 0x70(%rbx), %rdi
leaq 0x30c3c(%rip), %rsi # 0x3e2a9
callq 0x18879
movb $0x0, 0x68(%rbx)
xorl %eax, %eax
jmp 0xd67c
movb $0x1, %al
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
c4_tx_verify_tx_hash:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, [rdi]
test r15, r15
jz loc_D67A
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aEthGettransact; "eth_getTransactionByHash"
mov rdi, r15
call _strcmp
test eax, eax
jz short loc_D596
lea rsi, aEthGettransact_2; "eth_getTransactionReceipt"
mov rdi, r15
call _strcmp
test eax, eax
jz short loc_D596
lea rdi, [rbx+70h]
lea rsi, aInvalidMethodF; "invalid method for tx proof!"
jmp loc_D66D
loc_D596:
mov rax, [rbx+18h]
mov [rsp+0C8h+var_B8], rax
movdqu xmm0, xmmword ptr [rbx+8]
movdqu [rsp+0C8h+var_C8], xmm0
lea r15, [rsp+0C8h+var_B0]
mov rdi, r15
xor esi, esi
call json_at
cmp dword ptr [r15+10h], 1
jnz loc_D662
cmp qword ptr [rsp+0C8h+var_B0+8], 45h ; 'E'
jnb loc_D662
pxor xmm0, xmm0
lea rax, [rsp+0C8h+var_58]
movdqa xmmword ptr [rax+10h], xmm0
movdqa xmmword ptr [rax], xmm0
lea r12, [rsp+0C8h+var_98]
movdqa xmmword ptr [r12+10h], xmm0
movdqa xmmword ptr [r12], xmm0
lea rdi, [rsp+0C8h+var_70]
mov dword ptr [rdi], 0
mov [rdi+8], rax
mov dword ptr [rdi+10h], 0FFFFFFE0h
mov rax, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_B8], rax
movdqu xmm0, [rsp+0C8h+var_B0]
movdqu [rsp+0C8h+var_C8], xmm0
call json_as_bytes
mov r13d, eax
mov r15, rdx
mov edi, ebp
mov rsi, r14
mov rdx, r12
call keccak
cmp r13d, 20h ; ' '
jnz short loc_D662
movdqu xmm0, xmmword ptr [r15]
movdqu xmm1, xmmword ptr [r15+10h]
pcmpeqb xmm1, [rsp+0C8h+var_88]
pcmpeqb xmm0, [rsp+0C8h+var_98]
pand xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0FFFFh
jz short loc_D67A
loc_D662:
lea rdi, [rbx+70h]
lea rsi, aInvalidTransac; "invalid transaction hash!"
loc_D66D:
call c4_state_add_error
mov byte ptr [rbx+68h], 0
xor eax, eax
jmp short loc_D67C
loc_D67A:
mov al, 1
loc_D67C:
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char c4_tx_verify_tx_hash(long long *a1, unsigned int a2, long long a3)
{
long long v3; // r15
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long *v10; // rdi
const char *v11; // rsi
int v12; // edx
int v13; // ecx
int v14; // r8d
int v15; // r9d
int v16; // r13d
const __m128i *v17; // rdx
const __m128i *v18; // r15
__m128i v20; // [rsp+18h] [rbp-B0h] BYREF
long long v21; // [rsp+28h] [rbp-A0h]
__m128i v22; // [rsp+30h] [rbp-98h] BYREF
__m128i v23; // [rsp+40h] [rbp-88h]
int v24; // [rsp+58h] [rbp-70h] BYREF
_BYTE *v25; // [rsp+60h] [rbp-68h]
int v26; // [rsp+68h] [rbp-60h]
_BYTE v27[88]; // [rsp+70h] [rbp-58h] BYREF
v3 = *a1;
if ( *a1 )
{
if ( (unsigned int)strcmp(*a1, "eth_getTransactionByHash") && (unsigned int)strcmp(v3, "eth_getTransactionReceipt") )
{
v10 = a1 + 14;
v11 = "invalid method for tx proof!";
LABEL_10:
c4_state_add_error(v10, v11);
*((_BYTE *)a1 + 104) = 0;
return 0;
}
json_at((unsigned int)&v20, 0, v6, v7, v8, v9, _mm_loadu_si128((const __m128i *)(a1 + 1)), a1[3]);
if ( (_DWORD)v21 != 1 )
goto LABEL_9;
if ( v20.m128i_i64[1] >= 0x45uLL )
goto LABEL_9;
memset(v27, 0, 32);
v23 = 0LL;
v22 = 0LL;
v24 = 0;
v25 = v27;
v26 = -32;
v16 = json_as_bytes((unsigned int)&v24, 0, v12, v13, v14, v15, _mm_loadu_si128(&v20), v21);
v18 = v17;
keccak(a2, a3, &v22);
if ( v16 != 32
|| _mm_movemask_epi8(_mm_and_si128(_mm_cmpeq_epi8(_mm_loadu_si128(v18), v22), _mm_cmpeq_epi8(_mm_loadu_si128(v18 + 1), v23))) != 0xFFFF )
{
LABEL_9:
v10 = a1 + 14;
v11 = "invalid transaction hash!";
goto LABEL_10;
}
}
return 1;
}
|
c4_tx_verify_tx_hash:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,qword ptr [RDI]
TEST R15,R15
JZ 0x0010d67a
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA RSI,[0x13d498]
MOV RDI,R15
CALL 0x00105280
TEST EAX,EAX
JZ 0x0010d596
LEA RSI,[0x13d4ff]
MOV RDI,R15
CALL 0x00105280
TEST EAX,EAX
JZ 0x0010d596
LEA RDI,[RBX + 0x70]
LEA RSI,[0x13e2c3]
JMP 0x0010d66d
LAB_0010d596:
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [RBX + 0x8]
MOVDQU xmmword ptr [RSP],XMM0
LEA R15,[RSP + 0x18]
MOV RDI,R15
XOR ESI,ESI
CALL 0x001175d2
CMP dword ptr [R15 + 0x10],0x1
JNZ 0x0010d662
CMP qword ptr [RSP + 0x20],0x45
JNC 0x0010d662
PXOR XMM0,XMM0
LEA RAX,[RSP + 0x70]
MOVDQA xmmword ptr [RAX + 0x10],XMM0
MOVDQA xmmword ptr [RAX],XMM0
LEA R12,[RSP + 0x30]
MOVDQA xmmword ptr [R12 + 0x10],XMM0
MOVDQA xmmword ptr [R12],XMM0
LEA RDI,[RSP + 0x58]
MOV dword ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],RAX
MOV dword ptr [RDI + 0x10],0xffffffe0
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [RSP + 0x18]
MOVDQU xmmword ptr [RSP],XMM0
CALL 0x0011785b
MOV R13D,EAX
MOV R15,RDX
MOV EDI,EBP
MOV RSI,R14
MOV RDX,R12
CALL 0x00116aa8
CMP R13D,0x20
JNZ 0x0010d662
MOVDQU XMM0,xmmword ptr [R15]
MOVDQU XMM1,xmmword ptr [R15 + 0x10]
PCMPEQB XMM1,xmmword ptr [RSP + 0x40]
PCMPEQB XMM0,xmmword ptr [RSP + 0x30]
PAND XMM0,XMM1
PMOVMSKB EAX,XMM0
CMP EAX,0xffff
JZ 0x0010d67a
LAB_0010d662:
LEA RDI,[RBX + 0x70]
LEA RSI,[0x13e2a9]
LAB_0010d66d:
CALL 0x00118879
MOV byte ptr [RBX + 0x68],0x0
XOR EAX,EAX
JMP 0x0010d67c
LAB_0010d67a:
MOV AL,0x1
LAB_0010d67c:
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 c4_tx_verify_tx_hash(int8 *param_1,int4 param_2,int8 param_3)
{
int iVar1;
int8 uVar2;
char *extraout_RDX;
char *pcVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int1 local_b0 [8];
ulong uStack_a8;
int local_a0;
int1 local_98 [16];
int1 local_88 [16];
int4 local_70;
int1 *local_68;
int4 local_60;
int1 local_58 [16];
int1 local_48 [16];
pcVar3 = (char *)*param_1;
if (pcVar3 == (char *)0x0) {
LAB_0010d67a:
uVar2 = 1;
}
else {
iVar1 = strcmp(pcVar3,"eth_getTransactionByHash");
if (iVar1 == 0) {
LAB_0010d596:
json_at(local_b0,0);
if ((local_a0 == 1) && (uStack_a8 < 0x45)) {
local_68 = local_58;
local_48 = (int1 [16])0x0;
local_58 = (int1 [16])0x0;
local_88 = (int1 [16])0x0;
local_98 = (int1 [16])0x0;
local_70 = 0;
local_60 = 0xffffffe0;
iVar1 = json_as_bytes();
keccak(param_2,param_3,local_98);
if (iVar1 == 0x20) {
auVar5[0] = -(extraout_RDX[0x10] == local_88[0]);
auVar5[1] = -(extraout_RDX[0x11] == local_88[1]);
auVar5[2] = -(extraout_RDX[0x12] == local_88[2]);
auVar5[3] = -(extraout_RDX[0x13] == local_88[3]);
auVar5[4] = -(extraout_RDX[0x14] == local_88[4]);
auVar5[5] = -(extraout_RDX[0x15] == local_88[5]);
auVar5[6] = -(extraout_RDX[0x16] == local_88[6]);
auVar5[7] = -(extraout_RDX[0x17] == local_88[7]);
auVar5[8] = -(extraout_RDX[0x18] == local_88[8]);
auVar5[9] = -(extraout_RDX[0x19] == local_88[9]);
auVar5[10] = -(extraout_RDX[0x1a] == local_88[10]);
auVar5[0xb] = -(extraout_RDX[0x1b] == local_88[0xb]);
auVar5[0xc] = -(extraout_RDX[0x1c] == local_88[0xc]);
auVar5[0xd] = -(extraout_RDX[0x1d] == local_88[0xd]);
auVar5[0xe] = -(extraout_RDX[0x1e] == local_88[0xe]);
auVar5[0xf] = -(extraout_RDX[0x1f] == local_88[0xf]);
auVar4[0] = -(*extraout_RDX == local_98[0]);
auVar4[1] = -(extraout_RDX[1] == local_98[1]);
auVar4[2] = -(extraout_RDX[2] == local_98[2]);
auVar4[3] = -(extraout_RDX[3] == local_98[3]);
auVar4[4] = -(extraout_RDX[4] == local_98[4]);
auVar4[5] = -(extraout_RDX[5] == local_98[5]);
auVar4[6] = -(extraout_RDX[6] == local_98[6]);
auVar4[7] = -(extraout_RDX[7] == local_98[7]);
auVar4[8] = -(extraout_RDX[8] == local_98[8]);
auVar4[9] = -(extraout_RDX[9] == local_98[9]);
auVar4[10] = -(extraout_RDX[10] == local_98[10]);
auVar4[0xb] = -(extraout_RDX[0xb] == local_98[0xb]);
auVar4[0xc] = -(extraout_RDX[0xc] == local_98[0xc]);
auVar4[0xd] = -(extraout_RDX[0xd] == local_98[0xd]);
auVar4[0xe] = -(extraout_RDX[0xe] == local_98[0xe]);
auVar4[0xf] = -(extraout_RDX[0xf] == local_98[0xf]);
auVar4 = auVar4 & auVar5;
if ((ushort)((ushort)(SUB161(auVar4 >> 7,0) & 1) |
(ushort)(SUB161(auVar4 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar4 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar4 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar4 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar4 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar4 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar4 >> 0x3f,0) & 1) << 7 |
(ushort)(SUB161(auVar4 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar4 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar4 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar4 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar4 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar4 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar4 >> 0x77,0) & 1) << 0xe |
(ushort)(byte)(auVar4[0xf] >> 7) << 0xf) == 0xffff) goto LAB_0010d67a;
}
}
pcVar3 = "invalid transaction hash!";
}
else {
iVar1 = strcmp(pcVar3,"eth_getTransactionReceipt");
if (iVar1 == 0) goto LAB_0010d596;
pcVar3 = "invalid method for tx proof!";
}
c4_state_add_error(param_1 + 0xe,pcVar3);
*(int1 *)(param_1 + 0xd) = 0;
uVar2 = 0;
}
return uVar2;
}
|
|
59,458
|
ftxui::TerminalInputParser::ParseDCS()
|
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/terminal_input_parser.cpp
|
TerminalInputParser::Output TerminalInputParser::ParseDCS() {
// Parse until the string terminator ST.
while (true) {
if (!Eat()) {
return UNCOMPLETED;
}
if (Current() != '\x1B') {
continue;
}
if (!Eat()) {
return UNCOMPLETED;
}
if (Current() != '\\') {
continue;
}
return SPECIAL;
}
}
|
O1
|
cpp
|
ftxui::TerminalInputParser::ParseDCS():
movq %rdi, %rax
movl 0x8(%rsi), %r9d
movl 0x18(%rsi), %edx
leal 0x1(%r9), %edi
movl %edi, 0x8(%rsi)
xorl %ecx, %ecx
cmpl %edx, %edi
jge 0x3378f
movq 0x10(%rsi), %r8
movslq %edi, %r10
cmpb $0x1b, (%r8,%r10)
jne 0x3377a
movslq %r9d, %rdi
addq $0x2, %rdi
movl %edi, 0x8(%rsi)
cmpl %edx, %edi
jge 0x3378f
cmpb $0x5c, (%r8,%rdi)
je 0x3378a
movl %edi, %r9d
leal 0x1(%r9), %edi
movl %edi, 0x8(%rsi)
cmpl %edx, %edi
jl 0x3375b
jmp 0x3378f
movl $0x3, %ecx
movl %ecx, (%rax)
retq
|
_ZN5ftxui19TerminalInputParser8ParseDCSEv:
mov rax, rdi
mov r9d, [rsi+8]
mov edx, [rsi+18h]
lea edi, [r9+1]
mov [rsi+8], edi
xor ecx, ecx
cmp edi, edx
jge short loc_3378F
mov r8, [rsi+10h]
loc_3375B:
movsxd r10, edi
cmp byte ptr [r8+r10], 1Bh
jnz short loc_3377A
movsxd rdi, r9d
add rdi, 2
mov [rsi+8], edi
cmp edi, edx
jge short loc_3378F
cmp byte ptr [r8+rdi], 5Ch ; '\'
jz short loc_3378A
loc_3377A:
mov r9d, edi
lea edi, [r9+1]
mov [rsi+8], edi
cmp edi, edx
jl short loc_3375B
jmp short loc_3378F
loc_3378A:
mov ecx, 3
loc_3378F:
mov [rax], ecx
retn
|
ftxui::TerminalInputParser * ftxui::TerminalInputParser::ParseDCS(
ftxui::TerminalInputParser *this,
long long a2)
{
ftxui::TerminalInputParser *result; // rax
int v3; // r9d
int v4; // edx
int v5; // ecx
long long v6; // r8
result = this;
v3 = *(_DWORD *)(a2 + 8);
v4 = *(_DWORD *)(a2 + 24);
LODWORD(this) = v3 + 1;
*(_DWORD *)(a2 + 8) = v3 + 1;
v5 = 0;
if ( v3 + 1 < v4 )
{
v6 = *(_QWORD *)(a2 + 16);
while ( 1 )
{
if ( *(_BYTE *)(v6 + (int)this) == 27 )
{
this = (ftxui::TerminalInputParser *)(v3 + 2LL);
*(_DWORD *)(a2 + 8) = (_DWORD)this;
if ( (int)this >= v4 )
goto LABEL_9;
if ( *((_BYTE *)this + v6) == 92 )
break;
}
v3 = (int)this;
LODWORD(this) = (_DWORD)this + 1;
*(_DWORD *)(a2 + 8) = (_DWORD)this;
if ( (int)this >= v4 )
goto LABEL_9;
}
v5 = 3;
}
LABEL_9:
*(_DWORD *)result = v5;
return result;
}
|
ParseDCS:
MOV RAX,RDI
MOV R9D,dword ptr [RSI + 0x8]
MOV EDX,dword ptr [RSI + 0x18]
LEA EDI,[R9 + 0x1]
MOV dword ptr [RSI + 0x8],EDI
XOR ECX,ECX
CMP EDI,EDX
JGE 0x0013378f
MOV R8,qword ptr [RSI + 0x10]
LAB_0013375b:
MOVSXD R10,EDI
CMP byte ptr [R8 + R10*0x1],0x1b
JNZ 0x0013377a
MOVSXD RDI,R9D
ADD RDI,0x2
MOV dword ptr [RSI + 0x8],EDI
CMP EDI,EDX
JGE 0x0013378f
CMP byte ptr [R8 + RDI*0x1],0x5c
JZ 0x0013378a
LAB_0013377a:
MOV R9D,EDI
LEA EDI,[R9 + 0x1]
MOV dword ptr [RSI + 0x8],EDI
CMP EDI,EDX
JL 0x0013375b
JMP 0x0013378f
LAB_0013378a:
MOV ECX,0x3
LAB_0013378f:
MOV dword ptr [RAX],ECX
RET
|
/* ftxui::TerminalInputParser::ParseDCS() */
void ftxui::TerminalInputParser::ParseDCS(void)
{
uint uVar1;
int iVar2;
int4 uVar3;
long in_RSI;
int iVar4;
int4 *in_RDI;
ulong uVar5;
iVar4 = *(int *)(in_RSI + 8);
iVar2 = *(int *)(in_RSI + 0x18);
uVar1 = iVar4 + 1;
*(uint *)(in_RSI + 8) = uVar1;
uVar3 = 0;
if ((int)uVar1 < iVar2) {
do {
uVar5 = (ulong)uVar1;
if (*(char *)(*(long *)(in_RSI + 0x10) + (long)(int)uVar1) == '\x1b') {
uVar5 = (long)iVar4 + 2;
*(int *)(in_RSI + 8) = (int)uVar5;
if (iVar2 <= (int)uVar5) break;
if (*(char *)(*(long *)(in_RSI + 0x10) + uVar5) == '\\') {
uVar3 = 3;
break;
}
}
iVar4 = (int)uVar5;
uVar1 = iVar4 + 1;
*(uint *)(in_RSI + 8) = uVar1;
} while ((int)uVar1 < iVar2);
}
*in_RDI = uVar3;
return;
}
|
|
59,459
|
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::cleanup()
|
eloqsql/storage/perfschema/pfs_buffer_container.h
|
void cleanup()
{
int i;
array_type *page;
if (! m_initialized)
return;
pthread_mutex_lock(& m_critical_section);
for (i=0 ; i < PFS_PAGE_COUNT; i++)
{
page= m_pages[i];
if (page != NULL)
{
m_allocator->free_array(page);
delete page;
m_pages[i]= NULL;
}
}
pthread_mutex_unlock(& m_critical_section);
pthread_mutex_destroy(& m_critical_section);
m_initialized= false;
}
|
O0
|
c
|
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::cleanup():
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
testb $0x1, 0x8(%rax)
jne 0x3c51f
jmp 0x3c5d3
movq -0x20(%rbp), %rdi
addq $0x8b0, %rdi # imm = 0x8B0
callq 0x264b0
movl $0x0, -0xc(%rbp)
cmpl $0x100, -0xc(%rbp) # imm = 0x100
jge 0x3c5ab
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq 0xa8(%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x3c59e
movq -0x20(%rbp), %rax
movq 0x8a8(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x31640
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x3c58a
movq -0x28(%rbp), %rdi
movl $0xd8, %esi
callq 0x26320
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq $0x0, 0xa8(%rax,%rcx,8)
jmp 0x3c5a0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x3c536
movq -0x20(%rbp), %rdi
addq $0x8b0, %rdi # imm = 0x8B0
callq 0x26260
movq -0x20(%rbp), %rdi
addq $0x8b0, %rdi # imm = 0x8B0
callq 0x26390
movq -0x20(%rbp), %rax
movb $0x0, 0x8(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN29PFS_buffer_scalable_containerI10PFS_threadLi256ELi256E16PFS_thread_array20PFS_thread_allocatorE7cleanupEv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
test byte ptr [rax+8], 1
jnz short loc_3C51F
jmp loc_3C5D3
loc_3C51F:
mov rdi, [rbp+var_20]
add rdi, 8B0h
call _pthread_mutex_lock
mov [rbp+var_C], 0
loc_3C536:
cmp [rbp+var_C], 100h
jge short loc_3C5AB
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_C]
mov rax, [rax+rcx*8+0A8h]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_3C59E
mov rax, [rbp+var_20]
mov rdi, [rax+8A8h]
mov rsi, [rbp+var_18]
call _ZN20PFS_thread_allocator10free_arrayEP16PFS_thread_array; PFS_thread_allocator::free_array(PFS_thread_array *)
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_3C58A
mov rdi, [rbp+var_28]; void *
mov esi, 0D8h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3C58A:
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_C]
mov qword ptr [rax+rcx*8+0A8h], 0
loc_3C59E:
jmp short $+2
loc_3C5A0:
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_3C536
loc_3C5AB:
mov rdi, [rbp+var_20]
add rdi, 8B0h
call _pthread_mutex_unlock
mov rdi, [rbp+var_20]
add rdi, 8B0h
call _pthread_mutex_destroy
mov rax, [rbp+var_20]
mov byte ptr [rax+8], 0
loc_3C5D3:
add rsp, 30h
pop rbp
retn
|
long long PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>::cleanup(
long long a1)
{
long long result; // rax
PFS_thread_array *v2; // [rsp+18h] [rbp-18h]
int i; // [rsp+24h] [rbp-Ch]
result = a1;
if ( (*(_BYTE *)(a1 + 8) & 1) != 0 )
{
pthread_mutex_lock(a1 + 2224);
for ( i = 0; i < 256; ++i )
{
v2 = *(PFS_thread_array **)(a1 + 8LL * i + 168);
if ( v2 )
{
PFS_thread_allocator::free_array(*(PFS_thread_allocator **)(a1 + 2216), v2);
operator delete(v2, 0xD8uLL);
*(_QWORD *)(a1 + 8LL * i + 168) = 0LL;
}
}
pthread_mutex_unlock(a1 + 2224);
pthread_mutex_destroy(a1 + 2224);
result = a1;
*(_BYTE *)(a1 + 8) = 0;
}
return result;
}
|
cleanup:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
TEST byte ptr [RAX + 0x8],0x1
JNZ 0x0013c51f
JMP 0x0013c5d3
LAB_0013c51f:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x8b0
CALL 0x001264b0
MOV dword ptr [RBP + -0xc],0x0
LAB_0013c536:
CMP dword ptr [RBP + -0xc],0x100
JGE 0x0013c5ab
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RAX + RCX*0x8 + 0xa8]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0013c59e
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x8a8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00131640
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x0013c58a
MOV RDI,qword ptr [RBP + -0x28]
MOV ESI,0xd8
CALL 0x00126320
LAB_0013c58a:
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV qword ptr [RAX + RCX*0x8 + 0xa8],0x0
LAB_0013c59e:
JMP 0x0013c5a0
LAB_0013c5a0:
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x0013c536
LAB_0013c5ab:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x8b0
CALL 0x00126260
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x8b0
CALL 0x00126390
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],0x0
LAB_0013c5d3:
ADD RSP,0x30
POP RBP
RET
|
/* PFS_buffer_scalable_container<PFS_thread, 256, 256, PFS_thread_array,
PFS_thread_allocator>::cleanup() */
void __thiscall
PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>::cleanup
(PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>
*this)
{
PFS_thread_array *pPVar1;
int local_14;
if (((byte)this[8] & 1) != 0) {
pthread_mutex_lock((pthread_mutex_t *)(this + 0x8b0));
for (local_14 = 0; local_14 < 0x100; local_14 = local_14 + 1) {
pPVar1 = *(PFS_thread_array **)(this + (long)local_14 * 8 + 0xa8);
if (pPVar1 != (PFS_thread_array *)0x0) {
PFS_thread_allocator::free_array(*(PFS_thread_allocator **)(this + 0x8a8),pPVar1);
if (pPVar1 != (PFS_thread_array *)0x0) {
operator_delete(pPVar1,0xd8);
}
*(int8 *)(this + (long)local_14 * 8 + 0xa8) = 0;
}
}
pthread_mutex_unlock((pthread_mutex_t *)(this + 0x8b0));
pthread_mutex_destroy((pthread_mutex_t *)(this + 0x8b0));
this[8] = (PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>
)0x0;
}
return;
}
|
|
59,460
|
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::cleanup()
|
eloqsql/storage/perfschema/pfs_buffer_container.h
|
void cleanup()
{
int i;
array_type *page;
if (! m_initialized)
return;
pthread_mutex_lock(& m_critical_section);
for (i=0 ; i < PFS_PAGE_COUNT; i++)
{
page= m_pages[i];
if (page != NULL)
{
m_allocator->free_array(page);
delete page;
m_pages[i]= NULL;
}
}
pthread_mutex_unlock(& m_critical_section);
pthread_mutex_destroy(& m_critical_section);
m_initialized= false;
}
|
O3
|
c
|
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::cleanup():
cmpb $0x1, 0x8(%rdi)
jne 0x3f744
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x20b0(%rdi), %r14
movq %r14, %rdi
callq 0x264d0
xorl %r12d, %r12d
movq 0xa8(%rbx,%r12,8), %r15
testq %r15, %r15
je 0x3f71c
movq 0x20a8(%rbx), %rax
movq (%rax), %rdi
movq 0x48(%r15), %rcx
movq 0x50(%r15), %rsi
movl $0x340, %edx # imm = 0x340
callq 0x2cd84
movl $0x60, %esi
movq %r15, %rdi
callq 0x26340
movq $0x0, 0xa8(%rbx,%r12,8)
incq %r12
cmpq $0x400, %r12 # imm = 0x400
jne 0x3f6da
movq %r14, %rdi
callq 0x26250
movq %r14, %rdi
callq 0x263d0
movb $0x0, 0x8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN29PFS_buffer_scalable_containerI15PFS_setup_actorLi128ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE7cleanupEv:
cmp byte ptr [rdi+8], 1
jnz locret_3F744
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
lea r14, [rdi+20B0h]
mov rdi, r14
call _pthread_mutex_lock
xor r12d, r12d
loc_3F6DA:
mov r15, [rbx+r12*8+0A8h]
test r15, r15
jz short loc_3F71C
mov rax, [rbx+20A8h]
mov rdi, [rax]
mov rcx, [r15+48h]
mov rsi, [r15+50h]
mov edx, 340h
call _Z14pfs_free_arrayP24PFS_builtin_memory_classmmPv; pfs_free_array(PFS_builtin_memory_class *,ulong,ulong,void *)
mov esi, 60h ; '`'; unsigned __int64
mov rdi, r15; void *
call __ZdlPvm; operator delete(void *,ulong)
mov qword ptr [rbx+r12*8+0A8h], 0
loc_3F71C:
inc r12
cmp r12, 400h
jnz short loc_3F6DA
mov rdi, r14
call _pthread_mutex_unlock
mov rdi, r14
call _pthread_mutex_destroy
mov byte ptr [rbx+8], 0
pop rbx
pop r12
pop r14
pop r15
pop rbp
locret_3F744:
retn
|
long long PFS_buffer_scalable_container<PFS_setup_actor,128,1024,PFS_buffer_default_array<PFS_setup_actor>,PFS_buffer_default_allocator<PFS_setup_actor>>::cleanup(
long long a1)
{
long long v1; // r14
long long i; // r12
long long *v3; // r15
long long result; // rax
if ( *(_BYTE *)(a1 + 8) == 1 )
{
v1 = a1 + 8368;
pthread_mutex_lock(a1 + 8368);
for ( i = 0LL; i != 1024; ++i )
{
v3 = *(long long **)(a1 + 8 * i + 168);
if ( v3 )
{
pfs_free_array(**(_QWORD **)(a1 + 8360), v3[10], 832LL, v3[9]);
operator delete(v3, 0x60uLL);
*(_QWORD *)(a1 + 8 * i + 168) = 0LL;
}
}
pthread_mutex_unlock(v1);
result = pthread_mutex_destroy(v1);
*(_BYTE *)(a1 + 8) = 0;
}
return result;
}
|
cleanup:
CMP byte ptr [RDI + 0x8],0x1
JNZ 0x0013f744
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x20b0]
MOV RDI,R14
CALL 0x001264d0
XOR R12D,R12D
LAB_0013f6da:
MOV R15,qword ptr [RBX + R12*0x8 + 0xa8]
TEST R15,R15
JZ 0x0013f71c
MOV RAX,qword ptr [RBX + 0x20a8]
MOV RDI,qword ptr [RAX]
MOV RCX,qword ptr [R15 + 0x48]
MOV RSI,qword ptr [R15 + 0x50]
MOV EDX,0x340
CALL 0x0012cd84
MOV ESI,0x60
MOV RDI,R15
CALL 0x00126340
MOV qword ptr [RBX + R12*0x8 + 0xa8],0x0
LAB_0013f71c:
INC R12
CMP R12,0x400
JNZ 0x0013f6da
MOV RDI,R14
CALL 0x00126250
MOV RDI,R14
CALL 0x001263d0
MOV byte ptr [RBX + 0x8],0x0
POP RBX
POP R12
POP R14
POP R15
POP RBP
LAB_0013f744:
RET
|
/* PFS_buffer_scalable_container<PFS_setup_actor, 128, 1024,
PFS_buffer_default_array<PFS_setup_actor>, PFS_buffer_default_allocator<PFS_setup_actor>
>::cleanup() */
void __thiscall
PFS_buffer_scalable_container<PFS_setup_actor,128,1024,PFS_buffer_default_array<PFS_setup_actor>,PFS_buffer_default_allocator<PFS_setup_actor>>
::cleanup(PFS_buffer_scalable_container<PFS_setup_actor,128,1024,PFS_buffer_default_array<PFS_setup_actor>,PFS_buffer_default_allocator<PFS_setup_actor>>
*this)
{
pthread_mutex_t *__mutex;
void *pvVar1;
long lVar2;
if (this[8] ==
(PFS_buffer_scalable_container<PFS_setup_actor,128,1024,PFS_buffer_default_array<PFS_setup_actor>,PFS_buffer_default_allocator<PFS_setup_actor>>
)0x1) {
__mutex = (pthread_mutex_t *)(this + 0x20b0);
pthread_mutex_lock(__mutex);
lVar2 = 0;
do {
pvVar1 = *(void **)(this + lVar2 * 8 + 0xa8);
if (pvVar1 != (void *)0x0) {
pfs_free_array((PFS_builtin_memory_class *)**(int8 **)(this + 0x20a8),
*(ulong *)((long)pvVar1 + 0x50),0x340,*(void **)((long)pvVar1 + 0x48));
operator_delete(pvVar1,0x60);
*(int8 *)(this + lVar2 * 8 + 0xa8) = 0;
}
lVar2 = lVar2 + 1;
} while (lVar2 != 0x400);
pthread_mutex_unlock(__mutex);
pthread_mutex_destroy(__mutex);
this[8] = (PFS_buffer_scalable_container<PFS_setup_actor,128,1024,PFS_buffer_default_array<PFS_setup_actor>,PFS_buffer_default_allocator<PFS_setup_actor>>
)0x0;
}
return;
}
|
|
59,461
|
ac_psr_comparison
|
alca/libalca/parser.c
|
ac_expr *ac_psr_comparison(ac_parser *parser)
{
ac_expr *expr = ac_psr_term(parser);
if (!expr)
return NULL;
while (MATCH(parser, TOKEN_GREATER, TOKEN_GREATER_EQUAL, TOKEN_LESS, TOKEN_LESS_EQUAL))
{
ac_token *op = ac_psr_previous_token(parser);
ac_expr *right = ac_psr_term(parser);
if (!right)
{
ac_expr_free_expression(expr);
return NULL;
}
expr = ac_expr_new_binary(expr, op, right);
}
return expr;
}
|
O0
|
c
|
ac_psr_comparison:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x7c80
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xa89d
movq $0x0, -0x8(%rbp)
jmp 0xa91d
jmp 0xa89f
movq -0x10(%rbp), %rdi
movl $0x18, %esi
movl $0x19, %edx
movl $0x1a, %ecx
movl $0x1b, %r8d
movl $0xffffffff, %r9d # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x7700
cmpl $0x0, %eax
je 0xa915
movq -0x10(%rbp), %rdi
callq 0x7370
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x7c80
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0xa8fe
movq -0x18(%rbp), %rdi
callq 0x7430
movq $0x0, -0x8(%rbp)
jmp 0xa91d
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x7680
movq %rax, -0x18(%rbp)
jmp 0xa89f
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ac_psr_comparison:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call _ac_psr_term
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_A89D
mov [rbp+var_8], 0
jmp loc_A91D
loc_A89D:
jmp short $+2
loc_A89F:
mov rdi, [rbp+var_10]
mov esi, 18h
mov edx, 19h
mov ecx, 1Ah
mov r8d, 1Bh
mov r9d, 0FFFFFFFFh
mov al, 0
call _ac_psr_match
cmp eax, 0
jz short loc_A915
mov rdi, [rbp+var_10]
call _ac_psr_previous_token
mov [rbp+var_20], rax
mov rdi, [rbp+var_10]
call _ac_psr_term
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jnz short loc_A8FE
mov rdi, [rbp+var_18]
call _ac_expr_free_expression
mov [rbp+var_8], 0
jmp short loc_A91D
loc_A8FE:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call _ac_expr_new_binary
mov [rbp+var_18], rax
jmp short loc_A89F
loc_A915:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_A91D:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long ac_psr_comparison(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9)
{
__m128 v9; // xmm4
__m128 v10; // xmm5
double v11; // xmm4_8
double v12; // xmm5_8
char v14; // [rsp+0h] [rbp-30h]
long long v15; // [rsp+8h] [rbp-28h]
long long v16; // [rsp+10h] [rbp-20h]
long long v17; // [rsp+18h] [rbp-18h]
v17 = ac_psr_term(a1, a2, a3, a4, a5, a6, a7, a8, a9);
if ( !v17 )
return 0LL;
while ( (unsigned int)ac_psr_match(a1, 24LL, 25LL, 26LL, 27LL, 0xFFFFFFFFLL, a2, a3, a4, a5, v9, v10, a8, a9, v14) )
{
v16 = ac_psr_previous_token(a1);
v15 = ac_psr_term(a1, a2, a3, a4, a5, v11, v12, a8, a9);
if ( !v15 )
{
ac_expr_free_expression(v17);
return 0LL;
}
v17 = ac_expr_new_binary(v17, v16, v15);
}
return v17;
}
|
ac_psr_comparison:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00107c80
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0010a89d
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0010a91d
LAB_0010a89d:
JMP 0x0010a89f
LAB_0010a89f:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x18
MOV EDX,0x19
MOV ECX,0x1a
MOV R8D,0x1b
MOV R9D,0xffffffff
MOV AL,0x0
CALL 0x00107700
CMP EAX,0x0
JZ 0x0010a915
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00107370
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00107c80
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0010a8fe
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00107430
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0010a91d
LAB_0010a8fe:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00107680
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0010a89f
LAB_0010a915:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0010a91d:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long ac_psr_comparison(int8 param_1)
{
int iVar1;
int8 uVar2;
long lVar3;
long local_20;
long local_10;
local_20 = ac_psr_term(param_1);
if (local_20 == 0) {
local_10 = 0;
}
else {
while (iVar1 = ac_psr_match(param_1,0x18,0x19,0x1a,0x1b,0xffffffff), iVar1 != 0) {
uVar2 = ac_psr_previous_token(param_1);
lVar3 = ac_psr_term(param_1);
if (lVar3 == 0) {
ac_expr_free_expression(local_20);
return 0;
}
local_20 = ac_expr_new_binary(local_20,uVar2,lVar3);
}
local_10 = local_20;
}
return local_10;
}
|
|
59,462
|
malloc_debug
|
seiftnesse[P]memoryallocator/src/custom_alloc_debug.c
|
void *_malloc_debug(size_t size, const char *file, int line) {
HEAP_LOG("Debug malloc: size=%zu, file=%s, line=%d\n", size, file ? file : "unknown", line);
void *ptr = _malloc(size);
if (ptr && !is_small_allocation(ptr) && track_allocations) {
segment_t *s = PtrToSegment(ptr);
s->allocation_file = file;
s->allocation_line = line;
HEAP_LOG("Debug info recorded for allocation: %p, id=%u\n", ptr, s->allocation_id);
}
return ptr;
}
|
O1
|
c
|
malloc_debug:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
callq 0x2027
movq %rax, %r15
testq %rax, %rax
je 0x2fe5
movq %r15, %rdi
callq 0x270b
testl %eax, %eax
jne 0x2fe5
cmpl $0x0, 0x4104160(%rip) # 0x4107134
je 0x2fe5
movq %r15, %rdi
callq 0x28dc
movq %r14, 0x18(%rax)
movl %ebx, 0x20(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
|
_malloc_debug:
push r15
push r14
push rbx
mov ebx, edx
mov r14, rsi
call _malloc
mov r15, rax
test rax, rax
jz short loc_2FE5
mov rdi, r15
call is_small_allocation
test eax, eax
jnz short loc_2FE5
cmp cs:track_allocations, 0
jz short loc_2FE5
mov rdi, r15
call PtrToSegment
mov [rax+18h], r14
mov [rax+20h], ebx
loc_2FE5:
mov rax, r15
pop rbx
pop r14
pop r15
retn
|
long long malloc_debug(unsigned long long a1, long long a2, int a3)
{
unsigned long long v4; // rax
long long v5; // r15
unsigned long long v6; // rax
v4 = malloc(a1);
v5 = v4;
if ( v4 && !(unsigned int)is_small_allocation(v4) && track_allocations )
{
v6 = PtrToSegment(v5);
*(_QWORD *)(v6 + 24) = a2;
*(_DWORD *)(v6 + 32) = a3;
}
return v5;
}
|
_malloc_debug:
PUSH R15
PUSH R14
PUSH RBX
MOV EBX,EDX
MOV R14,RSI
CALL 0x00102027
MOV R15,RAX
TEST RAX,RAX
JZ 0x00102fe5
MOV RDI,R15
CALL 0x0010270b
TEST EAX,EAX
JNZ 0x00102fe5
CMP dword ptr [0x04207134],0x0
JZ 0x00102fe5
MOV RDI,R15
CALL 0x001028dc
MOV qword ptr [RAX + 0x18],R14
MOV dword ptr [RAX + 0x20],EBX
LAB_00102fe5:
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
|
void * _malloc_debug(size_t param_1,int8 param_2,int4 param_3)
{
int iVar1;
void *pvVar2;
long lVar3;
pvVar2 = _malloc(param_1);
if (pvVar2 != (void *)0x0) {
iVar1 = is_small_allocation(pvVar2);
if ((iVar1 == 0) && (track_allocations != 0)) {
lVar3 = PtrToSegment(pvVar2);
*(int8 *)(lVar3 + 0x18) = param_2;
*(int4 *)(lVar3 + 0x20) = param_3;
}
}
return pvVar2;
}
|
|
59,463
|
malloc_debug
|
seiftnesse[P]memoryallocator/src/custom_alloc_debug.c
|
void *_malloc_debug(size_t size, const char *file, int line) {
HEAP_LOG("Debug malloc: size=%zu, file=%s, line=%d\n", size, file ? file : "unknown", line);
void *ptr = _malloc(size);
if (ptr && !is_small_allocation(ptr) && track_allocations) {
segment_t *s = PtrToSegment(ptr);
s->allocation_file = file;
s->allocation_line = line;
HEAP_LOG("Debug info recorded for allocation: %p, id=%u\n", ptr, s->allocation_id);
}
return ptr;
}
|
O3
|
c
|
malloc_debug:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
callq 0x1fcf
movq %rax, %r15
testq %rax, %rax
je 0x2f65
movq %r15, %rdi
callq 0x2673
testl %eax, %eax
jne 0x2f65
cmpl $0x0, 0x41031e0(%rip) # 0x4106134
je 0x2f65
movq %r15, %rdi
callq 0x283c
movq %r14, 0x18(%rax)
movl %ebx, 0x20(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
|
_malloc_debug:
push r15
push r14
push rbx
mov ebx, edx
mov r14, rsi
call _malloc
mov r15, rax
test rax, rax
jz short loc_2F65
mov rdi, r15
call is_small_allocation
test eax, eax
jnz short loc_2F65
cmp cs:track_allocations, 0
jz short loc_2F65
mov rdi, r15
call PtrToSegment
mov [rax+18h], r14
mov [rax+20h], ebx
loc_2F65:
mov rax, r15
pop rbx
pop r14
pop r15
retn
|
long long malloc_debug(unsigned long long a1, long long a2, int a3)
{
unsigned long long v4; // rax
long long v5; // r15
unsigned long long v6; // rax
v4 = malloc(a1);
v5 = v4;
if ( v4 && !(unsigned int)is_small_allocation(v4) && track_allocations )
{
v6 = PtrToSegment(v5);
*(_QWORD *)(v6 + 24) = a2;
*(_DWORD *)(v6 + 32) = a3;
}
return v5;
}
|
_malloc_debug:
PUSH R15
PUSH R14
PUSH RBX
MOV EBX,EDX
MOV R14,RSI
CALL 0x00101fcf
MOV R15,RAX
TEST RAX,RAX
JZ 0x00102f65
MOV RDI,R15
CALL 0x00102673
TEST EAX,EAX
JNZ 0x00102f65
CMP dword ptr [0x04206134],0x0
JZ 0x00102f65
MOV RDI,R15
CALL 0x0010283c
MOV qword ptr [RAX + 0x18],R14
MOV dword ptr [RAX + 0x20],EBX
LAB_00102f65:
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
|
void * _malloc_debug(size_t param_1,int8 param_2,int4 param_3)
{
int iVar1;
void *pvVar2;
long lVar3;
pvVar2 = _malloc(param_1);
if (pvVar2 != (void *)0x0) {
iVar1 = is_small_allocation(pvVar2);
if ((iVar1 == 0) && (track_allocations != 0)) {
lVar3 = PtrToSegment(pvVar2);
*(int8 *)(lVar3 + 0x18) = param_2;
*(int4 *)(lVar3 + 0x20) = param_3;
}
}
return pvVar2;
}
|
|
59,464
|
maria_rtree_get_first
|
eloqsql/storage/maria/ma_rt_index.c
|
int maria_rtree_get_first(MARIA_HA *info, uint keynr, uint key_length)
{
my_off_t root;
MARIA_KEYDEF *keyinfo= info->s->keyinfo + keynr;
if ((root= info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
info->maria_rtree_recursion_depth= -1;
info->keyread_buff_used= 1;
return maria_rtree_get_req(info, keyinfo, key_length, root, 0);
}
|
O3
|
c
|
maria_rtree_get_first:
movq (%rdi), %rax
movl %esi, %ecx
movq 0x118(%rax), %rdx
movq (%rdx,%rcx,8), %rdx
cmpq $-0x1, %rdx
je 0x6b34f
imulq $0x118, %rcx, %rsi # imm = 0x118
addq 0x570(%rax), %rsi
movl $0xffffffff, 0x6f0(%rdi) # imm = 0xFFFFFFFF
movb $0x1, 0x685(%rdi)
xorl %ecx, %ecx
jmp 0x6b365
pushq %rbp
movq %rsp, %rbp
callq 0xa1b22
movl $0x89, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbp
retq
|
maria_rtree_get_first:
mov rax, [rdi]
mov ecx, esi
mov rdx, [rax+118h]
mov rdx, [rdx+rcx*8]
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz short loc_6B34F
imul rsi, rcx, 118h
add rsi, [rax+570h]
mov dword ptr [rdi+6F0h], 0FFFFFFFFh
mov byte ptr [rdi+685h], 1
xor ecx, ecx
jmp short maria_rtree_get_req
loc_6B34F:
push rbp
mov rbp, rsp
call _my_thread_var
mov dword ptr [rax], 89h
mov eax, 0FFFFFFFFh
pop rbp
retn
|
long long maria_rtree_get_first(long long a1, const char *a2)
{
long long v2; // rdx
long long v3; // rsi
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 280LL) + 8LL * (unsigned int)a2);
if ( v2 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return 0xFFFFFFFFLL;
}
else
{
v3 = *(_QWORD *)(*(_QWORD *)a1 + 1392LL) + 280LL * (unsigned int)a2;
*(_DWORD *)(a1 + 1776) = -1;
*(_BYTE *)(a1 + 1669) = 1;
return maria_rtree_get_req(a1, v3, v2, 0LL);
}
}
|
maria_rtree_get_first:
MOV RAX,qword ptr [RDI]
MOV ECX,ESI
MOV RDX,qword ptr [RAX + 0x118]
MOV RDX,qword ptr [RDX + RCX*0x8]
CMP RDX,-0x1
JZ 0x0016b34f
IMUL RSI,RCX,0x118
ADD RSI,qword ptr [RAX + 0x570]
MOV dword ptr [RDI + 0x6f0],0xffffffff
MOV byte ptr [RDI + 0x685],0x1
XOR ECX,ECX
JMP 0x0016b365
LAB_0016b34f:
PUSH RBP
MOV RBP,RSP
CALL 0x001a1b22
MOV dword ptr [RAX],0x89
MOV EAX,0xffffffff
POP RBP
RET
|
int8 maria_rtree_get_first(long *param_1,ulong param_2)
{
long lVar1;
long lVar2;
int8 uVar3;
int4 *puVar4;
lVar1 = *(long *)(*(long *)(*param_1 + 0x118) + (param_2 & 0xffffffff) * 8);
if (lVar1 != -1) {
lVar2 = *(long *)(*param_1 + 0x570);
*(int4 *)(param_1 + 0xde) = 0xffffffff;
*(int1 *)((long)param_1 + 0x685) = 1;
uVar3 = maria_rtree_get_req(param_1,(param_2 & 0xffffffff) * 0x118 + lVar2,lVar1,0);
return uVar3;
}
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x89;
return 0xffffffff;
}
|
|
59,465
|
JS_ReadObjectValue
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue JS_ReadObjectValue(BCReaderState *s)
{
JSContext *ctx = s->ctx;
JSValue val, obj = JS_UNDEFINED;
val = JS_ReadObjectRec(s);
if (JS_IsException(val))
goto fail;
obj = JS_ToObject(ctx, val);
if (JS_IsException(obj))
goto fail;
if (BC_add_object_ref(s, obj))
goto fail;
JS_FreeValue(ctx, val);
return obj;
fail:
JS_FreeValue(ctx, val);
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O0
|
c
|
JS_ReadObjectValue:
subq $0x68, %rsp
movq %rdi, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x90fe3(%rip), %rax # 0x10d980
movq %rax, 0x28(%rsp)
movq 0x90fdf(%rip), %rax # 0x10d988
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rdi
callq 0x4c0a0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x7c9ef
jmp 0x7ca7c
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x37770
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x7ca37
jmp 0x7ca7c
movq 0x50(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x7d440
cmpl $0x0, %eax
je 0x7ca52
jmp 0x7ca7c
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x23c90
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x7cab5
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x23c90
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x23c90
movl $0x0, 0x58(%rsp)
movq $0x6, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rdx
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
|
JS_ReadObjectValue:
sub rsp, 68h
mov [rsp+68h+var_18], rdi
mov rax, [rsp+68h+var_18]
mov rax, [rax]
mov [rsp+68h+var_20], rax
mov rax, cs:qword_10D980
mov [rsp+68h+var_40], rax
mov rax, cs:qword_10D988
mov [rsp+68h+var_38], rax
mov rdi, [rsp+68h+var_18]
call JS_ReadObjectRec
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], rdx
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_48]
mov [rsp+68h+var_28], rax
mov rdi, [rsp+68h+var_30]
mov rsi, [rsp+68h+var_28]
call JS_IsException_1
cmp eax, 0
jz short loc_7C9EF
jmp loc_7CA7C
loc_7C9EF:
mov rdi, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
call JS_ToObject
mov [rsp+68h+var_60], rax
mov [rsp+68h+var_58], rdx
mov rax, [rsp+68h+var_60]
mov [rsp+68h+var_40], rax
mov rax, [rsp+68h+var_58]
mov [rsp+68h+var_38], rax
mov rdi, [rsp+68h+var_40]
mov rsi, [rsp+68h+var_38]
call JS_IsException_1
cmp eax, 0
jz short loc_7CA37
jmp short loc_7CA7C
loc_7CA37:
mov rdi, [rsp+68h+var_18]
mov rsi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_38]
call BC_add_object_ref
cmp eax, 0
jz short loc_7CA52
jmp short loc_7CA7C
loc_7CA52:
mov rdi, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
call JS_FreeValue
mov rax, [rsp+68h+var_40]
mov [rsp+68h+var_10], rax
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_8], rax
jmp short loc_7CAB5
loc_7CA7C:
mov rdi, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
call JS_FreeValue
mov rdi, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_38]
call JS_FreeValue
mov dword ptr [rsp+68h+var_10], 0
mov [rsp+68h+var_8], 6
loc_7CAB5:
mov rax, [rsp+68h+var_10]
mov rdx, [rsp+68h+var_8]
add rsp, 68h
retn
|
_DWORD * JS_ReadObjectValue(
long long *a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9)
{
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
__m128 v13; // xmm4
__m128 v14; // xmm5
long long v15; // rdx
_DWORD *v17; // [rsp+8h] [rbp-60h]
_DWORD *ObjectRec; // [rsp+18h] [rbp-50h]
long long v19; // [rsp+28h] [rbp-40h]
long long v20; // [rsp+30h] [rbp-38h]
long long v21; // [rsp+40h] [rbp-28h]
long long v22; // [rsp+48h] [rbp-20h]
long long v23; // [rsp+58h] [rbp-10h]
v22 = *a1;
v19 = 0LL;
v20 = 3LL;
ObjectRec = (_DWORD *)JS_ReadObjectRec(a1, a2, a3, a4, a5, a6, a7, a8, a9);
v21 = v9;
if ( JS_IsException_1((long long)ObjectRec, v9)
|| (v17 = JS_ToObject(v22, ObjectRec, v21, a2, a3, a4, a5, v13, v14, a8, a9, v10, v11, v12),
v19 = (long long)v17,
v20 = v15,
JS_IsException_1((long long)v17, v15))
|| (unsigned int)BC_add_object_ref(a1, v17, v20) )
{
JS_FreeValue(v22, (long long)ObjectRec, v21);
JS_FreeValue(v22, v19, v20);
LODWORD(v23) = 0;
}
else
{
JS_FreeValue(v22, (long long)ObjectRec, v21);
return v17;
}
return (_DWORD *)v23;
}
|
JS_ReadObjectValue:
SUB RSP,0x68
MOV qword ptr [RSP + 0x50],RDI
MOV RAX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [0x0020d980]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [0x0020d988]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x0014c0a0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0017c9ef
JMP 0x0017ca7c
LAB_0017c9ef:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00137770
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0017ca37
JMP 0x0017ca7c
LAB_0017ca37:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x0017d440
CMP EAX,0x0
JZ 0x0017ca52
JMP 0x0017ca7c
LAB_0017ca52:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0017cab5
LAB_0017ca7c:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x00123c90
MOV dword ptr [RSP + 0x58],0x0
MOV qword ptr [RSP + 0x60],0x6
LAB_0017cab5:
MOV RAX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
ADD RSP,0x68
RET
|
int1 [16] JS_ReadObjectValue(int8 *param_1)
{
int8 uVar1;
int iVar2;
int1 auVar5 [16];
int1 auVar6 [16];
int8 local_40;
int8 local_38;
int4 local_10;
int4 uStack_c;
int8 local_8;
int8 uVar3;
int8 uVar4;
uVar1 = *param_1;
auVar6._8_8_ = DAT_0020d988;
auVar6._0_8_ = DAT_0020d980;
auVar5 = JS_ReadObjectRec(param_1);
uVar4 = auVar5._8_8_;
uVar3 = auVar5._0_8_;
iVar2 = JS_IsException(uVar3,uVar4);
if (iVar2 == 0) {
auVar6 = JS_ToObject(uVar1,uVar3,uVar4);
local_8 = auVar6._8_8_;
iVar2 = JS_IsException(auVar6._0_8_,local_8);
if ((iVar2 == 0) && (iVar2 = BC_add_object_ref(param_1,auVar6._0_8_,local_8), iVar2 == 0)) {
JS_FreeValue(uVar1,uVar3,uVar4);
local_10 = auVar6._0_4_;
uStack_c = auVar6._4_4_;
goto LAB_0017cab5;
}
}
local_38 = auVar6._8_8_;
local_40 = auVar6._0_8_;
JS_FreeValue(uVar1,uVar3,uVar4);
JS_FreeValue(uVar1,local_40,local_38);
local_10 = 0;
local_8 = 6;
LAB_0017cab5:
auVar5._4_4_ = uStack_c;
auVar5._0_4_ = local_10;
auVar5._8_8_ = local_8;
return auVar5;
}
|
|
59,466
|
ma_free_root
|
eloqsql/libmariadb/libmariadb/ma_alloc.c
|
void ma_free_root(MA_MEM_ROOT *root, myf MyFlags)
{
reg1 MA_USED_MEM *next,*old;
if (!root)
return; /* purecov: inspected */
if (!(MyFlags & MY_KEEP_PREALLOC))
root->pre_alloc=0;
for ( next=root->used; next ;)
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
for (next= root->free ; next ; )
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
root->used=root->free=0;
if (root->pre_alloc)
{
root->free=root->pre_alloc;
root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM));
root->free->next=0;
}
}
|
O0
|
c
|
ma_free_root:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x258eb
jmp 0x259d9
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x25902
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x25941
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x2593f
movq -0x20(%rbp), %rdi
callq 0x13520
jmp 0x2590e
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2597f
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x2597d
movq -0x20(%rbp), %rdi
callq 0x13520
jmp 0x2594c
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x259d9
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rcx
subq $0x18, %rcx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
|
ma_free_root:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_8], 0
jnz short loc_258EB
jmp loc_259D9
loc_258EB:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 0
jnz short loc_25902
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_25902:
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
loc_2590E:
cmp [rbp+var_18], 0
jz short loc_25941
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_2593F
mov rdi, [rbp+var_20]
call _free
loc_2593F:
jmp short loc_2590E
loc_25941:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
loc_2594C:
cmp [rbp+var_18], 0
jz short loc_2597F
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_2597D
mov rdi, [rbp+var_20]
call _free
loc_2597D:
jmp short loc_2594C
loc_2597F:
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_259D9
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rax+10h]
sub rcx, 18h
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_8]
mov rax, [rax]
mov qword ptr [rax], 0
loc_259D9:
add rsp, 20h
pop rbp
retn
|
_QWORD * ma_free_root(_QWORD *a1, char a2)
{
_QWORD *result; // rax
_QWORD *v3; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+0h] [rbp-20h]
_QWORD *v5; // [rsp+8h] [rbp-18h]
_QWORD *v6; // [rsp+8h] [rbp-18h]
if ( a1 )
{
if ( (a2 & 1) == 0 )
a1[2] = 0LL;
v5 = (_QWORD *)a1[1];
while ( v5 )
{
v3 = v5;
v5 = (_QWORD *)*v5;
if ( v3 != (_QWORD *)a1[2] )
free(v3);
}
v6 = (_QWORD *)*a1;
while ( v6 )
{
v4 = v6;
v6 = (_QWORD *)*v6;
if ( v4 != (_QWORD *)a1[2] )
free(v4);
}
*a1 = 0LL;
a1[1] = 0LL;
result = a1;
if ( a1[2] )
{
*a1 = a1[2];
*(_QWORD *)(*a1 + 8LL) = *(_QWORD *)(a1[2] + 16LL) - 24LL;
result = (_QWORD *)*a1;
*(_QWORD *)*a1 = 0LL;
}
}
return result;
}
|
ma_free_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x001258eb
JMP 0x001259d9
LAB_001258eb:
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x00125902
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_00125902:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
LAB_0012590e:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00125941
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x0012593f
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113520
LAB_0012593f:
JMP 0x0012590e
LAB_00125941:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_0012594c:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0012597f
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x0012597d
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113520
LAB_0012597d:
JMP 0x0012594c
LAB_0012597f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x001259d9
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],0x0
LAB_001259d9:
ADD RSP,0x20
POP RBP
RET
|
void ma_free_root(long *param_1,uint param_2)
{
int8 *puVar1;
int8 *local_20;
if (param_1 != (long *)0x0) {
if ((param_2 & 1) == 0) {
param_1[2] = 0;
}
puVar1 = (int8 *)param_1[1];
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
puVar1 = (int8 *)*param_1;
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
*param_1 = 0;
param_1[1] = 0;
if (param_1[2] != 0) {
*param_1 = param_1[2];
*(long *)(*param_1 + 8) = *(long *)(param_1[2] + 0x10) + -0x18;
*(int8 *)*param_1 = 0;
}
}
return;
}
|
|
59,467
|
translog_stop_writing
|
eloqsql/storage/maria/ma_loghandler.c
|
void translog_stop_writing()
{
DBUG_ENTER("translog_stop_writing");
DBUG_PRINT("error", ("errno: %d my_errno: %d", errno, my_errno));
translog_status= (translog_status == TRANSLOG_SHUTDOWN ?
TRANSLOG_UNINITED :
TRANSLOG_READONLY);
log_descriptor.is_everything_flushed= 1;
log_descriptor.open_flags= O_BINARY | O_RDONLY;
DBUG_ASSERT(0);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
translog_stop_writing:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpl $0x3, 0x3cafd5(%rip) # 0x3fd130
setne %al
addl %eax, %eax
movl %eax, 0x3cafca(%rip) # 0x3fd130
movb $0x1, 0xbcd0a3(%rip) # 0xbff210
movl $0x0, 0x3cc1d5(%rip) # 0x3fe34c
popq %rbp
retq
|
translog_stop_writing:
push rbp
mov rbp, rsp
xor eax, eax
cmp cs:translog_status, 3
setnz al
add eax, eax
mov cs:translog_status, eax
mov byte ptr cs:word_BFF210, 1
mov cs:dword_3FE34C, 0
pop rbp
retn
|
long long translog_stop_writing()
{
long long result; // rax
result = 2 * (unsigned int)(translog_status != 3);
translog_status = 2 * (translog_status != 3);
LOBYTE(word_BFF210) = 1;
dword_3FE34C = 0;
return result;
}
|
translog_stop_writing:
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
CMP dword ptr [0x004fd130],0x3
SETNZ AL
ADD EAX,EAX
MOV dword ptr [0x004fd130],EAX
MOV byte ptr [0x00cff210],0x1
MOV dword ptr [0x004fe34c],0x0
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void translog_stop_writing(void)
{
translog_status = (uint)(translog_status != 3) * 2;
DAT_00cff210 = 1;
_DAT_004fe34c = 0;
return;
}
|
|
59,468
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&)
|
monkey531[P]llama/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O2
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x43767
movq %rbx, %rdi
movq %rax, %rsi
callq 0x23dc0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xa8cfa
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x241f8
movq %r14, %rdi
callq 0x23fc0
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3);
std::string::reserve(a1, v4);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_(
a1,
a2,
a3);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[32],char_const*>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
MOV RSI,RDX
CALL 0x00143767
LAB_001a8c89:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00123dc0
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x001a8cfa
LAB_001a8ca2:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [32], char const*>(char const (&) [32], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[32],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
concat_length<char_const*>(param_1,param_2);
/* try { // try from 001a8c89 to 001a8ca1 has its CatchHandler @ 001a8cab */
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
(this,param_1,param_2);
return this;
}
|
|
59,469
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&)
|
monkey531[P]llama/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O3
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1a3f0
movq %rax, %r12
movq (%r14), %rdi
callq 0x1a3f0
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1adb0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b110
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1b110
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xe48f8
movq (%r13), %rsi
incq %rsi
callq 0x1a8d0
movq %r14, %rdi
callq 0x1afc0
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_E48F8
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E48F8:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[32],char_const*>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R13,[RDI + 0x10]
MOV qword ptr [RDI],R13
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011a3f0
MOV R12,RAX
MOV RDI,qword ptr [R14]
CALL 0x0011a3f0
ADD R12,RAX
LAB_001e48b3:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0011adb0
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011b110
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x0011b110
LAB_001e48d4:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [32], char const*>(char const (&) [32], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[32],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(*param_2);
/* try { // try from 001e48b3 to 001e48d3 has its CatchHandler @ 001e48e1 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this);
return this;
}
|
|
59,470
|
get_physical_core_count
|
davidesantangelo[P]vsort/vsort.c
|
static int get_physical_core_count(void)
{
long nprocs = -1;
#ifdef _SC_NPROCESSORS_ONLN
nprocs = sysconf(_SC_NPROCESSORS_ONLN);
if (nprocs < 1)
{
#ifdef _SC_NPROCESSORS_CONF
nprocs = sysconf(_SC_NPROCESSORS_CONF);
if (nprocs < 1)
{
return 1; // Fallback to 1 core
}
#else
return 1; // Fallback to 1 core
#endif
}
return (int)nprocs;
#else
return 1; // Fallback
#endif
}
|
O0
|
c
|
get_physical_core_count:
subq $0x18, %rsp
movq $-0x1, 0x8(%rsp)
movl $0x54, %edi
callq 0x1160
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
jge 0x1c47
movl $0x53, %edi
callq 0x1160
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
jge 0x1c45
movl $0x1, 0x14(%rsp)
jmp 0x1c50
jmp 0x1c47
movq 0x8(%rsp), %rax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
|
get_physical_core_count:
sub rsp, 18h
mov [rsp+18h+var_10], 0FFFFFFFFFFFFFFFFh
mov edi, 54h ; 'T'
call _sysconf
mov [rsp+18h+var_10], rax
cmp [rsp+18h+var_10], 1
jge short loc_1C47
mov edi, 53h ; 'S'
call _sysconf
mov [rsp+18h+var_10], rax
cmp [rsp+18h+var_10], 1
jge short loc_1C45
mov [rsp+18h+var_4], 1
jmp short loc_1C50
loc_1C45:
jmp short $+2
loc_1C47:
mov rax, [rsp+18h+var_10]
mov [rsp+18h+var_4], eax
loc_1C50:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long get_physical_core_count()
{
long long v1; // [rsp+8h] [rbp-10h]
v1 = sysconf(84LL);
if ( v1 >= 1 )
return (unsigned int)v1;
v1 = sysconf(83LL);
if ( v1 >= 1 )
return (unsigned int)v1;
else
return 1;
}
|
get_physical_core_count:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],-0x1
MOV EDI,0x54
CALL 0x00101160
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x1
JGE 0x00101c47
MOV EDI,0x53
CALL 0x00101160
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x1
JGE 0x00101c45
MOV dword ptr [RSP + 0x14],0x1
JMP 0x00101c50
LAB_00101c45:
JMP 0x00101c47
LAB_00101c47:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x14],EAX
LAB_00101c50:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
int4 get_physical_core_count(void)
{
long local_10;
int4 local_4;
local_10 = sysconf(0x54);
if ((local_10 < 1) && (local_10 = sysconf(0x53), local_10 < 1)) {
local_4 = 1;
}
else {
local_4 = (int4)local_10;
}
return local_4;
}
|
|
59,471
|
find_free_position
|
eloqsql/storage/maria/ma_blockrec.c
|
static uchar *find_free_position(MARIA_HA *info,
uchar *buff, uint block_size, uint *res_rownr,
uint *res_length, uint *empty_space,
my_bool head_page)
{
uint max_entry, free_entry;
uint length, first_pos;
uchar *dir, *first_dir;
MARIA_SHARE *share= info->s;
DBUG_ENTER("find_free_position");
max_entry= (uint) buff[DIR_COUNT_OFFSET];
free_entry= (uint) buff[DIR_FREE_OFFSET];
*empty_space= uint2korr(buff + EMPTY_SPACE_OFFSET);
DBUG_PRINT("info", ("max_entry: %u free_entry: %u", max_entry, free_entry));
first_dir= dir_entry_pos(buff, block_size, max_entry - 1);
/* Search after first free position */
if (free_entry != END_OF_DIR_FREE_LIST)
{
if (free_entry >= max_entry)
DBUG_RETURN(0); /* Consistency error */
dir= dir_entry_pos(buff, block_size, free_entry);
DBUG_ASSERT(uint2korr(dir) == 0 && dir[2] == END_OF_DIR_FREE_LIST);
/* Relink free list */
if ((buff[DIR_FREE_OFFSET]= dir[3]) != END_OF_DIR_FREE_LIST)
{
uchar *next_entry= dir_entry_pos(buff, block_size, (uint) dir[3]);
DBUG_ASSERT((uint) next_entry[2] == free_entry &&
uint2korr(next_entry) == 0);
next_entry[2]= END_OF_DIR_FREE_LIST; /* Backlink */
}
first_pos= end_of_previous_entry(share,
dir, buff + block_size -
PAGE_SUFFIX_SIZE);
length= start_of_next_entry(dir) - first_pos;
int2store(dir, first_pos); /* Update dir entry */
int2store(dir + 2, 0);
*res_rownr= free_entry;
*res_length= length;
check_directory(share, buff, block_size,
head_page ? share->base.min_block_length : 0, (uint) -1);
DBUG_RETURN(dir);
}
/* No free places in dir; create a new one */
/* Check if there is place for the directory entry */
if (max_entry == MAX_ROWS_PER_PAGE)
DBUG_RETURN(0);
if (make_space_for_directory(info, buff, max_entry, 1,
first_dir, empty_space, &first_pos, head_page))
DBUG_RETURN(0);
dir= first_dir - DIR_ENTRY_SIZE;
length= (uint) (dir - buff - first_pos);
DBUG_ASSERT(length <= *empty_space);
int2store(dir, first_pos);
int2store(dir + 2, 0); /* Max length of region */
*res_rownr= max_entry;
*res_length= length;
check_directory(share,
buff, block_size,
head_page ? share->base.min_block_length : 0,
*empty_space);
DBUG_RETURN(dir);
}
|
O0
|
c
|
find_free_position:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movb 0x10(%rbp), %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x9(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
jmp 0x61576
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl -0x3c(%rbp), %edx
subl $0x1, %edx
callq 0x56580
movq %rax, -0x58(%rbp)
cmpl $0xff, -0x40(%rbp)
je 0x61677
movl -0x40(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jb 0x615b0
jmp 0x615a3
movq $0x0, -0x8(%rbp)
jmp 0x6173c
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl -0x40(%rbp), %edx
callq 0x56580
movq %rax, -0x50(%rbp)
jmp 0x615c5
movq -0x50(%rbp), %rax
movb 0x3(%rax), %al
movq -0x18(%rbp), %rcx
movb %al, 0x9(%rcx)
movzbl %al, %eax
cmpl $0xff, %eax
je 0x615ff
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x50(%rbp), %rax
movzbl 0x3(%rax), %edx
callq 0x56580
movq %rax, -0x68(%rbp)
jmp 0x615f7
movq -0x68(%rbp), %rax
movb $-0x1, 0x2(%rax)
movq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %eax
addq %rax, %rdx
addq $-0x4, %rdx
callq 0x61750
movl %eax, -0x48(%rbp)
movq -0x50(%rbp), %rdi
callq 0x617c0
subl -0x48(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x70(%rbp)
movl -0x48(%rbp), %eax
movw %ax, %cx
movq -0x70(%rbp), %rax
movw %cx, (%rax)
jmp 0x61643
movq -0x50(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movw $0x0, (%rax)
movl -0x40(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl -0x44(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x6173c
cmpl $0xff, -0x3c(%rbp)
jne 0x6168f
jmp 0x61682
movq $0x0, -0x8(%rbp)
jmp 0x6173c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x3c(%rbp), %edx
movq -0x58(%rbp), %r8
movq -0x38(%rbp), %r9
movl $0x1, %ecx
leaq -0x48(%rbp), %rax
movq %rax, (%rsp)
movsbl 0x10(%rbp), %eax
movl %eax, 0x8(%rsp)
callq 0x61820
cmpb $0x0, %al
je 0x616cc
jmp 0x616c2
movq $0x0, -0x8(%rbp)
jmp 0x6173c
movq -0x58(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl -0x48(%rbp), %ecx
subq %rcx, %rax
movl %eax, -0x44(%rbp)
jmp 0x616ee
jmp 0x616f0
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x48(%rbp), %eax
movw %ax, %cx
movq -0x80(%rbp), %rax
movw %cx, (%rax)
jmp 0x61707
movq -0x50(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movw $0x0, (%rax)
movl -0x3c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl -0x44(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)
|
find_free_position:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov al, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+8]
mov [rbp+var_3C], eax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+9]
mov [rbp+var_40], eax
mov rax, [rbp+var_18]
movzx ecx, word ptr [rax+0Ah]
mov rax, [rbp+var_38]
mov [rax], ecx
jmp short $+2
loc_61576:
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov edx, [rbp+var_3C]
sub edx, 1
call dir_entry_pos
mov [rbp+var_58], rax
cmp [rbp+var_40], 0FFh
jz loc_61677
mov eax, [rbp+var_40]
cmp eax, [rbp+var_3C]
jb short loc_615B0
jmp short $+2
loc_615A3:
mov [rbp+var_8], 0
jmp loc_6173C
loc_615B0:
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov edx, [rbp+var_40]
call dir_entry_pos
mov [rbp+var_50], rax
jmp short $+2
loc_615C5:
mov rax, [rbp+var_50]
mov al, [rax+3]
mov rcx, [rbp+var_18]
mov [rcx+9], al
movzx eax, al
cmp eax, 0FFh
jz short loc_615FF
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov rax, [rbp+var_50]
movzx edx, byte ptr [rax+3]
call dir_entry_pos
mov [rbp+var_68], rax
jmp short $+2
loc_615F7:
mov rax, [rbp+var_68]
mov byte ptr [rax+2], 0FFh
loc_615FF:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_1C]
add rdx, rax
add rdx, 0FFFFFFFFFFFFFFFCh
call end_of_previous_entry
mov [rbp+var_48], eax
mov rdi, [rbp+var_50]
call start_of_next_entry
sub eax, [rbp+var_48]
mov [rbp+var_44], eax
mov rax, [rbp+var_50]
mov [rbp+var_70], rax
mov eax, [rbp+var_48]
mov cx, ax
mov rax, [rbp+var_70]
mov [rax], cx
jmp short $+2
loc_61643:
mov rax, [rbp+var_50]
add rax, 2
mov [rbp+var_78], rax
mov rax, [rbp+var_78]
mov word ptr [rax], 0
mov ecx, [rbp+var_40]
mov rax, [rbp+var_28]
mov [rax], ecx
mov ecx, [rbp+var_44]
mov rax, [rbp+var_30]
mov [rax], ecx
mov rax, [rbp+var_50]
mov [rbp+var_8], rax
jmp loc_6173C
loc_61677:
cmp [rbp+var_3C], 0FFh
jnz short loc_6168F
jmp short $+2
loc_61682:
mov [rbp+var_8], 0
jmp loc_6173C
loc_6168F:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_3C]
mov r8, [rbp+var_58]
mov r9, [rbp+var_38]
mov ecx, 1
lea rax, [rbp+var_48]
mov [rsp+0A0h+var_A0], rax
movsx eax, [rbp+arg_0]
mov [rsp+0A0h+var_98], eax
call make_space_for_directory
cmp al, 0
jz short loc_616CC
jmp short $+2
loc_616C2:
mov [rbp+var_8], 0
jmp short loc_6173C
loc_616CC:
mov rax, [rbp+var_58]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov rcx, [rbp+var_18]
sub rax, rcx
mov ecx, [rbp+var_48]
sub rax, rcx
mov [rbp+var_44], eax
jmp short $+2
loc_616EE:
jmp short $+2
loc_616F0:
mov rax, [rbp+var_50]
mov [rbp+var_80], rax
mov eax, [rbp+var_48]
mov cx, ax
mov rax, [rbp+var_80]
mov [rax], cx
jmp short $+2
loc_61707:
mov rax, [rbp+var_50]
add rax, 2
mov [rbp+var_88], rax
mov rax, [rbp+var_88]
mov word ptr [rax], 0
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_28]
mov [rax], ecx
mov ecx, [rbp+var_44]
mov rax, [rbp+var_30]
mov [rax], ecx
mov rax, [rbp+var_50]
mov [rbp+var_8], rax
loc_6173C:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
|
long long find_free_position(
_QWORD *a1,
long long a2,
unsigned int a3,
unsigned int *a4,
_DWORD *a5,
_DWORD *a6,
char a7)
{
unsigned __int8 v7; // al
_WORD *v9; // [rsp+20h] [rbp-80h]
long long v10; // [rsp+40h] [rbp-60h]
long long v11; // [rsp+48h] [rbp-58h]
long long v12; // [rsp+50h] [rbp-50h]
int v13; // [rsp+58h] [rbp-48h] BYREF
int v14; // [rsp+5Ch] [rbp-44h]
unsigned int v15; // [rsp+60h] [rbp-40h]
unsigned int v16; // [rsp+64h] [rbp-3Ch]
_DWORD *v17; // [rsp+68h] [rbp-38h]
_DWORD *v18; // [rsp+70h] [rbp-30h]
unsigned int *v19; // [rsp+78h] [rbp-28h]
unsigned int v20; // [rsp+84h] [rbp-1Ch]
long long v21; // [rsp+88h] [rbp-18h]
_QWORD *v22; // [rsp+90h] [rbp-10h]
v22 = a1;
v21 = a2;
v20 = a3;
v19 = a4;
v18 = a5;
v17 = a6;
v10 = *a1;
v16 = *(unsigned __int8 *)(a2 + 8);
v15 = *(unsigned __int8 *)(a2 + 9);
*a6 = *(unsigned __int16 *)(a2 + 10);
v11 = dir_entry_pos(v21, v20, v16 - 1);
if ( v15 == 255 )
{
if ( v16 == 255 )
{
return 0LL;
}
else if ( (unsigned __int8)make_space_for_directory((_DWORD)v22, v21, v16, 1, v11, (_DWORD)v17, (long long)&v13, a7) )
{
return 0LL;
}
else
{
v14 = v11 - 4 - v21 - v13;
v9 = (_WORD *)(v11 - 4);
*v9 = v13;
v9[1] = 0;
*v19 = v16;
*v18 = v14;
return v11 - 4;
}
}
else if ( v15 < v16 )
{
v12 = dir_entry_pos(v21, v20, v15);
v7 = *(_BYTE *)(v12 + 3);
*(_BYTE *)(v21 + 9) = v7;
if ( v7 != 255 )
*(_BYTE *)(dir_entry_pos(v21, v20, *(unsigned __int8 *)(v12 + 3)) + 2) = -1;
v13 = end_of_previous_entry(v10, v12, v20 + v21 - 4);
v14 = start_of_next_entry(v12) - v13;
*(_WORD *)v12 = v13;
*(_WORD *)(v12 + 2) = 0;
*v19 = v15;
*v18 = v14;
return v12;
}
else
{
return 0LL;
}
}
|
find_free_position:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV AL,byte ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x9]
MOV dword ptr [RBP + -0x40],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RAX + 0xa]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],ECX
JMP 0x00161576
LAB_00161576:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,dword ptr [RBP + -0x3c]
SUB EDX,0x1
CALL 0x00156580
MOV qword ptr [RBP + -0x58],RAX
CMP dword ptr [RBP + -0x40],0xff
JZ 0x00161677
MOV EAX,dword ptr [RBP + -0x40]
CMP EAX,dword ptr [RBP + -0x3c]
JC 0x001615b0
JMP 0x001615a3
LAB_001615a3:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0016173c
LAB_001615b0:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,dword ptr [RBP + -0x40]
CALL 0x00156580
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001615c5
LAB_001615c5:
MOV RAX,qword ptr [RBP + -0x50]
MOV AL,byte ptr [RAX + 0x3]
MOV RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RCX + 0x9],AL
MOVZX EAX,AL
CMP EAX,0xff
JZ 0x001615ff
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x50]
MOVZX EDX,byte ptr [RAX + 0x3]
CALL 0x00156580
MOV qword ptr [RBP + -0x68],RAX
JMP 0x001615f7
LAB_001615f7:
MOV RAX,qword ptr [RBP + -0x68]
MOV byte ptr [RAX + 0x2],0xff
LAB_001615ff:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
ADD RDX,RAX
ADD RDX,-0x4
CALL 0x00161750
MOV dword ptr [RBP + -0x48],EAX
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001617c0
SUB EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x70],RAX
MOV EAX,dword ptr [RBP + -0x48]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x70]
MOV word ptr [RAX],CX
JMP 0x00161643
LAB_00161643:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x2
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV word ptr [RAX],0x0
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0016173c
LAB_00161677:
CMP dword ptr [RBP + -0x3c],0xff
JNZ 0x0016168f
JMP 0x00161682
LAB_00161682:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0016173c
LAB_0016168f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x3c]
MOV R8,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x38]
MOV ECX,0x1
LEA RAX,[RBP + -0x48]
MOV qword ptr [RSP],RAX
MOVSX EAX,byte ptr [RBP + 0x10]
MOV dword ptr [RSP + 0x8],EAX
CALL 0x00161820
CMP AL,0x0
JZ 0x001616cc
JMP 0x001616c2
LAB_001616c2:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0016173c
LAB_001616cc:
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV ECX,dword ptr [RBP + -0x48]
SUB RAX,RCX
MOV dword ptr [RBP + -0x44],EAX
JMP 0x001616ee
LAB_001616ee:
JMP 0x001616f0
LAB_001616f0:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x80],RAX
MOV EAX,dword ptr [RBP + -0x48]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x80]
MOV word ptr [RAX],CX
JMP 0x00161707
LAB_00161707:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x2
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x88]
MOV word ptr [RAX],0x0
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
LAB_0016173c:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
int2 *
find_free_position(int8 *param_1,long param_2,uint param_3,uint *param_4,int *param_5,
uint *param_6,char param_7)
{
int8 uVar1;
char cVar2;
int iVar3;
long lVar4;
int2 *puVar5;
int local_50 [2];
uint local_48;
uint local_44;
uint *local_40;
int *local_38;
uint *local_30;
uint local_24;
long local_20;
int8 *local_18;
int2 *local_10;
uVar1 = *param_1;
local_44 = (uint)*(byte *)(param_2 + 8);
local_48 = (uint)*(byte *)(param_2 + 9);
*param_6 = (uint)*(ushort *)(param_2 + 10);
local_40 = param_6;
local_38 = param_5;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
lVar4 = dir_entry_pos(param_2,param_3,local_44 - 1);
if (local_48 == 0xff) {
if (local_44 == 0xff) {
local_10 = (int2 *)0x0;
}
else {
cVar2 = make_space_for_directory
(local_18,local_20,local_44,1,lVar4,local_40,local_50,(int)param_7);
if (cVar2 == '\0') {
local_10 = (int2 *)(lVar4 + -4);
*local_10 = (short)local_50[0];
*(int2 *)(lVar4 + -2) = 0;
*local_30 = local_44;
*local_38 = ((int)local_10 - (int)local_20) - local_50[0];
}
else {
local_10 = (int2 *)0x0;
}
}
}
else if (local_48 < local_44) {
puVar5 = (int2 *)dir_entry_pos(local_20,local_24,local_48);
cVar2 = *(char *)((long)puVar5 + 3);
*(char *)(local_20 + 9) = cVar2;
if (cVar2 != -1) {
lVar4 = dir_entry_pos(local_20,local_24,*(int1 *)((long)puVar5 + 3));
*(int1 *)(lVar4 + 2) = 0xff;
}
local_50[0] = end_of_previous_entry(uVar1,puVar5,local_20 + (ulong)local_24 + -4);
iVar3 = start_of_next_entry(puVar5);
*puVar5 = (short)local_50[0];
puVar5[1] = 0;
*local_30 = local_48;
*local_38 = iVar3 - local_50[0];
local_10 = puVar5;
}
else {
local_10 = (int2 *)0x0;
}
return local_10;
}
|
|
59,472
|
void ImPlot3D::PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>> const&, int, int, double, double, int)
|
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d_items.cpp
|
void PlotSurfaceEx(const char* label_id, const _Getter& getter, int x_count, int y_count, double scale_min, double scale_max, ImPlot3DSurfaceFlags flags) {
if (BeginItemEx(label_id, getter, flags, ImPlot3DCol_Fill)) {
const ImPlot3DNextItemData& n = GetItemData();
// Render fill
if (getter.Count >= 4 && n.RenderFill) {
const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Fill]);
RenderPrimitives<RendererSurfaceFill>(getter, x_count, y_count, col_fill, scale_min, scale_max);
}
// Render lines
if (getter.Count >= 2 && n.RenderLine) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Line]);
RenderPrimitives<RendererLineSegments>(GetterSurfaceLines<_Getter>(getter, x_count, y_count), col_line, n.LineWeight);
}
// Render markers
if (n.Marker != ImPlot3DMarker_None) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerOutline]);
const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerFill]);
RenderMarkers<_Getter>(getter, n.Marker, n.MarkerSize, n.RenderMarkerFill, col_fill, n.RenderMarkerLine, col_line, n.MarkerWeight);
}
EndItem();
}
}
|
O0
|
cpp
|
void ImPlot3D::PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>, ImPlot3D::IndexerIdx<signed char>> const&, int, int, double, double, int):
subq $0x148, %rsp # imm = 0x148
movq %rdi, 0x140(%rsp)
movq %rsi, 0x138(%rsp)
movl %edx, 0x134(%rsp)
movl %ecx, 0x130(%rsp)
movsd %xmm0, 0x128(%rsp)
movsd %xmm1, 0x120(%rsp)
movl %r8d, 0x11c(%rsp)
movq 0x140(%rsp), %rdi
movq 0x138(%rsp), %rsi
movl 0x11c(%rsp), %edx
movl $0x1, %ecx
callq 0x101510
testb $0x1, %al
jne 0xe9869
jmp 0xe9a3d
callq 0xd7150
movq %rax, 0x110(%rsp)
movq 0x138(%rsp), %rax
cmpl $0x4, 0x48(%rax)
jl 0xe98de
movq 0x110(%rsp), %rax
testb $0x1, 0x55(%rax)
je 0xe98de
movq 0x110(%rsp), %rdi
addq $0x10, %rdi
callq 0x4f6eb0
movl %eax, 0x10c(%rsp)
movq 0x138(%rsp), %rdi
movl 0x134(%rsp), %esi
movl 0x130(%rsp), %edx
movl 0x10c(%rsp), %ecx
movsd 0x128(%rsp), %xmm0
movsd 0x120(%rsp), %xmm1
callq 0x1b7df0
movq 0x138(%rsp), %rax
cmpl $0x2, 0x48(%rax)
jl 0xe999e
movq 0x110(%rsp), %rax
testb $0x1, 0x54(%rax)
je 0xe999e
movq 0x110(%rsp), %rdi
callq 0x4f6eb0
movl %eax, 0x108(%rsp)
movq 0x138(%rsp), %rsi
leaq 0x58(%rsp), %rdi
movl $0x50, %edx
callq 0x129b0
movl 0x134(%rsp), %esi
movl 0x130(%rsp), %edx
movups 0x98(%rsp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x40(%rax)
movups 0x58(%rsp), %xmm0
movups 0x68(%rsp), %xmm1
movups 0x78(%rsp), %xmm2
movups 0x88(%rsp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0xa8(%rsp), %rdi
callq 0x1bba80
movl 0x108(%rsp), %esi
movq 0x110(%rsp), %rax
movss 0x40(%rax), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0x1ba180
movq 0x110(%rsp), %rax
cmpl $-0x1, 0x44(%rax)
je 0xe9a38
movq 0x110(%rsp), %rdi
addq $0x20, %rdi
callq 0x4f6eb0
movl %eax, 0x54(%rsp)
movq 0x110(%rsp), %rdi
addq $0x30, %rdi
callq 0x4f6eb0
movl %eax, 0x50(%rsp)
movq 0x138(%rsp), %rdi
movq 0x110(%rsp), %rax
movl 0x44(%rax), %esi
movq 0x110(%rsp), %rax
movss 0x48(%rax), %xmm0
movq 0x110(%rsp), %rax
movb 0x57(%rax), %dl
movl 0x50(%rsp), %ecx
movq 0x110(%rsp), %rax
movb 0x56(%rax), %al
movl 0x54(%rsp), %r9d
movq 0x110(%rsp), %r8
movss 0x4c(%r8), %xmm1
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %edx
movzbl %al, %r8d
callq 0x101ba0
callq 0xdda10
addq $0x148, %rsp # imm = 0x148
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN8ImPlot3D13PlotSurfaceExINS_9GetterXYZINS_10IndexerIdxIdEES3_S3_EEEEvPKcRKT_iiddi:
sub rsp, 148h
mov [rsp+148h+var_8], rdi
mov [rsp+148h+var_14+4], rsi
mov dword ptr [rsp+148h+var_14], edx
mov [rsp+148h+var_18], ecx
movsd [rsp+148h+var_20], xmm0
movsd [rsp+148h+var_28], xmm1
mov [rsp+148h+var_2C], r8d
mov rdi, [rsp+148h+var_8]; this
mov rsi, [rsp+148h+var_14+4]; ImVec4 *
mov edx, [rsp+148h+var_2C]
mov ecx, 1
call _ZN8ImPlot3D11BeginItemExINS_9GetterXYZINS_10IndexerIdxIdEES3_S3_EEEEbPKcRKT_ii; ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>(char const*,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>> const&,int,int)
test al, 1
jnz short loc_E9869
jmp loc_E9A3D
loc_E9869:
call _ZN8ImPlot3D11GetItemDataEv; ImPlot3D::GetItemData(void)
mov [rsp+148h+var_38], rax
mov rax, [rsp+148h+var_14+4]
cmp dword ptr [rax+48h], 4
jl short loc_E98DE
mov rax, [rsp+148h+var_38]
test byte ptr [rax+55h], 1
jz short loc_E98DE
mov rdi, [rsp+148h+var_38]
add rdi, 10h; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov dword ptr [rsp+148h+var_40+4], eax
mov rdi, [rsp+148h+var_14+4]
mov esi, dword ptr [rsp+148h+var_14]; ImVec4 *
mov edx, [rsp+148h+var_18]
mov ecx, dword ptr [rsp+148h+var_40+4]
movsd xmm0, [rsp+148h+var_20]
movsd xmm1, [rsp+148h+var_28]
call _ZN8ImPlot3D16RenderPrimitivesINS_19RendererSurfaceFillENS_9GetterXYZINS_10IndexerIdxIdEES4_S4_EEJiijddEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererSurfaceFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>,int,int,uint,double,double>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>> const&,int,int,uint,double,double)
loc_E98DE:
mov rax, [rsp+148h+var_14+4]
cmp dword ptr [rax+48h], 2
jl loc_E999E
mov rax, [rsp+148h+var_38]
test byte ptr [rax+54h], 1
jz loc_E999E
mov rdi, [rsp+148h+var_38]; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov dword ptr [rsp+148h+var_40], eax
mov rsi, [rsp+148h+var_14+4]
lea rdi, [rsp+148h+var_F0]
mov edx, 50h ; 'P'
call _memcpy
mov esi, dword ptr [rsp+148h+var_14]
mov edx, [rsp+148h+var_18]
movups xmm0, [rsp+148h+var_B0]
mov rax, rsp
movups xmmword ptr [rax+40h], xmm0
movups xmm0, [rsp+148h+var_F0]
movups xmm1, [rsp+148h+var_E0]
movups xmm2, [rsp+148h+var_D0]
movups xmm3, [rsp+148h+var_C0]
movups xmmword ptr [rax+30h], xmm3
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, [rsp+148h+var_A0]
call _ZN8ImPlot3D18GetterSurfaceLinesINS_9GetterXYZINS_10IndexerIdxIdEES3_S3_EEEC2ES4_ii; ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>::GetterSurfaceLines(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>,int,int)
mov esi, dword ptr [rsp+148h+var_40]; ImVec4 *
mov rax, [rsp+148h+var_38]
movss xmm0, dword ptr [rax+40h]
lea rdi, [rsp+148h+var_A0]
call _ZN8ImPlot3D16RenderPrimitivesINS_20RendererLineSegmentsENS_18GetterSurfaceLinesINS_9GetterXYZINS_10IndexerIdxIdEES5_S5_EEEEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>,uint,float>(ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>> const&,uint,float)
loc_E999E:
mov rax, [rsp+148h+var_38]
cmp dword ptr [rax+44h], 0FFFFFFFFh
jz loc_E9A38
mov rdi, [rsp+148h+var_38]
add rdi, 20h ; ' '; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+148h+var_F4], eax
mov rdi, [rsp+148h+var_38]
add rdi, 30h ; '0'; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+148h+var_F8], eax
mov rdi, [rsp+148h+var_14+4]; this
mov rax, [rsp+148h+var_38]
mov esi, [rax+44h]
mov rax, [rsp+148h+var_38]
movss xmm0, dword ptr [rax+48h]
mov rax, [rsp+148h+var_38]
mov dl, [rax+57h]
mov ecx, [rsp+148h+var_F8]
mov rax, [rsp+148h+var_38]
mov al, [rax+56h]
mov r9d, [rsp+148h+var_F4]
mov r8, [rsp+148h+var_38]
movss xmm1, dword ptr [r8+4Ch]
and dl, 1
and al, 1
movzx edx, dl
movzx r8d, al
call _ZN8ImPlot3D13RenderMarkersINS_9GetterXYZINS_10IndexerIdxIdEES3_S3_EEEEvRKT_ifbjbjf; ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>> const&,int,float,bool,uint,bool,uint,float)
loc_E9A38:
call _ZN8ImPlot3D7EndItemEv; ImPlot3D::EndItem(void)
loc_E9A3D:
add rsp, 148h
retn
|
long long ImPlot3D::PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>(
ImPlot3D *a1,
unsigned long long a2,
int a3,
unsigned int a4,
unsigned int a5,
double a6,
double a7)
{
long long result; // rax
int v8; // ecx
int v9; // r8d
int v10; // r9d
unsigned int v11; // [rsp+50h] [rbp-F8h]
unsigned int v12; // [rsp+54h] [rbp-F4h]
_OWORD v13[5]; // [rsp+58h] [rbp-F0h] BYREF
_BYTE v14[96]; // [rsp+A8h] [rbp-A0h] BYREF
unsigned int v15; // [rsp+108h] [rbp-40h]
unsigned int ColorU32; // [rsp+10Ch] [rbp-3Ch]
ImGui *ItemData; // [rsp+110h] [rbp-38h]
unsigned int v18; // [rsp+11Ch] [rbp-2Ch]
double v19; // [rsp+120h] [rbp-28h]
double v20; // [rsp+128h] [rbp-20h]
unsigned int v21; // [rsp+130h] [rbp-18h]
_DWORD v22[3]; // [rsp+134h] [rbp-14h]
ImPlot3D *v23; // [rsp+140h] [rbp-8h]
v23 = a1;
*(_QWORD *)&v22[1] = a2;
v22[0] = a3;
v21 = a4;
v20 = a6;
v19 = a7;
v18 = a5;
result = ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>(
a1,
a2,
a5,
1LL);
if ( (result & 1) != 0 )
{
ItemData = (ImGui *)ImPlot3D::GetItemData(a1);
if ( *(int *)(*(_QWORD *)&v22[1] + 72LL) >= 4 && (*((_BYTE *)ItemData + 85) & 1) != 0 )
{
ColorU32 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 16), (const ImVec4 *)a2);
a1 = *(ImPlot3D **)&v22[1];
a2 = v22[0];
ImPlot3D::RenderPrimitives<ImPlot3D::RendererSurfaceFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>,int,int,unsigned int,double,double>(
*(_QWORD *)&v22[1],
v22[0],
v21,
ColorU32,
v20,
v19);
}
if ( *(int *)(*(_QWORD *)&v22[1] + 72LL) >= 2 && (*((_BYTE *)ItemData + 84) & 1) != 0 )
{
v15 = ImGui::GetColorU32(ItemData, (const ImVec4 *)a2);
memcpy(v13, *(_QWORD *)&v22[1], sizeof(v13));
ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>::GetterSurfaceLines(
(unsigned int)v14,
v22[0],
v21,
v8,
v9,
v10,
v13[0],
v13[1],
v13[2],
v13[3],
v13[4]);
a2 = v15;
a1 = (ImPlot3D *)v14;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>,unsigned int,float>(
v14,
v15,
*((float *)ItemData + 16));
}
if ( *((_DWORD *)ItemData + 17) != -1 )
{
v12 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 32), (const ImVec4 *)a2);
v11 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 48), (const ImVec4 *)a2);
a1 = *(ImPlot3D **)&v22[1];
ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>(
*(_QWORD *)&v22[1],
*((unsigned int *)ItemData + 17),
*((_BYTE *)ItemData + 87) & 1,
v11,
*((_BYTE *)ItemData + 86) & 1,
v12,
*((float *)ItemData + 18),
*((float *)ItemData + 19));
}
return ImPlot3D::EndItem(a1);
}
return result;
}
|
PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>:
SUB RSP,0x148
MOV qword ptr [RSP + 0x140],RDI
MOV qword ptr [RSP + 0x138],RSI
MOV dword ptr [RSP + 0x134],EDX
MOV dword ptr [RSP + 0x130],ECX
MOVSD qword ptr [RSP + 0x128],XMM0
MOVSD qword ptr [RSP + 0x120],XMM1
MOV dword ptr [RSP + 0x11c],R8D
MOV RDI,qword ptr [RSP + 0x140]
MOV RSI,qword ptr [RSP + 0x138]
MOV EDX,dword ptr [RSP + 0x11c]
MOV ECX,0x1
CALL 0x00201510
TEST AL,0x1
JNZ 0x001e9869
JMP 0x001e9a3d
LAB_001e9869:
CALL 0x001d7150
MOV qword ptr [RSP + 0x110],RAX
MOV RAX,qword ptr [RSP + 0x138]
CMP dword ptr [RAX + 0x48],0x4
JL 0x001e98de
MOV RAX,qword ptr [RSP + 0x110]
TEST byte ptr [RAX + 0x55],0x1
JZ 0x001e98de
MOV RDI,qword ptr [RSP + 0x110]
ADD RDI,0x10
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x10c],EAX
MOV RDI,qword ptr [RSP + 0x138]
MOV ESI,dword ptr [RSP + 0x134]
MOV EDX,dword ptr [RSP + 0x130]
MOV ECX,dword ptr [RSP + 0x10c]
MOVSD XMM0,qword ptr [RSP + 0x128]
MOVSD XMM1,qword ptr [RSP + 0x120]
CALL 0x002b7df0
LAB_001e98de:
MOV RAX,qword ptr [RSP + 0x138]
CMP dword ptr [RAX + 0x48],0x2
JL 0x001e999e
MOV RAX,qword ptr [RSP + 0x110]
TEST byte ptr [RAX + 0x54],0x1
JZ 0x001e999e
MOV RDI,qword ptr [RSP + 0x110]
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x108],EAX
MOV RSI,qword ptr [RSP + 0x138]
LEA RDI,[RSP + 0x58]
MOV EDX,0x50
CALL 0x001129b0
MOV ESI,dword ptr [RSP + 0x134]
MOV EDX,dword ptr [RSP + 0x130]
MOVUPS XMM0,xmmword ptr [RSP + 0x98]
MOV RAX,RSP
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x58]
MOVUPS XMM1,xmmword ptr [RSP + 0x68]
MOVUPS XMM2,xmmword ptr [RSP + 0x78]
MOVUPS XMM3,xmmword ptr [RSP + 0x88]
MOVUPS xmmword ptr [RAX + 0x30],XMM3
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[RSP + 0xa8]
CALL 0x002bba80
MOV ESI,dword ptr [RSP + 0x108]
MOV RAX,qword ptr [RSP + 0x110]
MOVSS XMM0,dword ptr [RAX + 0x40]
LEA RDI,[RSP + 0xa8]
CALL 0x002ba180
LAB_001e999e:
MOV RAX,qword ptr [RSP + 0x110]
CMP dword ptr [RAX + 0x44],-0x1
JZ 0x001e9a38
MOV RDI,qword ptr [RSP + 0x110]
ADD RDI,0x20
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x54],EAX
MOV RDI,qword ptr [RSP + 0x110]
ADD RDI,0x30
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x50],EAX
MOV RDI,qword ptr [RSP + 0x138]
MOV RAX,qword ptr [RSP + 0x110]
MOV ESI,dword ptr [RAX + 0x44]
MOV RAX,qword ptr [RSP + 0x110]
MOVSS XMM0,dword ptr [RAX + 0x48]
MOV RAX,qword ptr [RSP + 0x110]
MOV DL,byte ptr [RAX + 0x57]
MOV ECX,dword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x110]
MOV AL,byte ptr [RAX + 0x56]
MOV R9D,dword ptr [RSP + 0x54]
MOV R8,qword ptr [RSP + 0x110]
MOVSS XMM1,dword ptr [R8 + 0x4c]
AND DL,0x1
AND AL,0x1
MOVZX EDX,DL
MOVZX R8D,AL
CALL 0x00201ba0
LAB_001e9a38:
CALL 0x001dda10
LAB_001e9a3d:
ADD RSP,0x148
RET
|
/* void ImPlot3D::PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,
ImPlot3D::IndexerIdx<double>, ImPlot3D::IndexerIdx<double> > >(char const*,
ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>, ImPlot3D::IndexerIdx<double>,
ImPlot3D::IndexerIdx<double> > const&, int, int, double, double, int) */
void ImPlot3D::
PlotSurfaceEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>
(char *param_1,GetterXYZ *param_2,int param_3,int param_4,double param_5,
double param_6,int param_7)
{
bool bVar1;
uint uVar2;
uint uVar3;
uint extraout_EDX;
int1 local_f0 [80];
ImPlot3D local_a0 [96];
uint local_40;
uint local_3c;
ImVec4 *local_38;
int local_2c;
double local_28;
double local_20;
int local_18;
int local_14;
GetterXYZ *local_10;
char *local_8;
local_2c = param_7;
local_28 = param_6;
local_20 = param_5;
local_18 = param_4;
local_14 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar1 = BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>
(param_1,param_2,param_7,1);
if (bVar1) {
local_38 = (ImVec4 *)GetItemData();
if ((3 < *(int *)(local_10 + 0x48)) && (((byte)local_38[0x55] & 1) != 0)) {
local_3c = ImGui::GetColorU32(local_38 + 0x10);
RenderPrimitives<ImPlot3D::RendererSurfaceFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>,int,int,unsigned_int,double,double>
(local_10,local_14,local_18,local_3c,local_20,local_28);
}
if ((1 < *(int *)(local_10 + 0x48)) && (((byte)local_38[0x54] & 1) != 0)) {
local_40 = ImGui::GetColorU32(local_38);
memcpy(local_f0,local_10,0x50);
GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>
::GetterSurfaceLines(local_a0,local_14,local_18);
RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterSurfaceLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>,unsigned_int,float>
(local_a0,(GetterSurfaceLines *)(ulong)local_40,extraout_EDX,
*(float *)(local_38 + 0x40));
}
if (*(int *)(local_38 + 0x44) != -1) {
uVar2 = ImGui::GetColorU32(local_38 + 0x20);
uVar3 = ImGui::GetColorU32(local_38 + 0x30);
RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>,ImPlot3D::IndexerIdx<double>>>
(local_10,*(int *)(local_38 + 0x44),*(float *)(local_38 + 0x48),
(bool)((byte)local_38[0x57] & 1),uVar3,(bool)((byte)local_38[0x56] & 1),uVar2,
*(float *)(local_38 + 0x4c));
}
EndItem();
}
return;
}
|
|
59,473
|
js_create_from_ctor
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_create_from_ctor(JSContext *ctx, JSValue ctor,
int class_id)
{
JSValue proto, obj;
JSContext *realm;
if (JS_IsUndefined(ctor)) {
proto = js_dup(ctx->class_proto[class_id]);
} else {
proto = JS_GetProperty(ctx, ctor, JS_ATOM_prototype);
if (JS_IsException(proto))
return proto;
if (!JS_IsObject(proto)) {
JS_FreeValue(ctx, proto);
realm = JS_GetFunctionRealm(ctx, ctor);
if (!realm)
return JS_EXCEPTION;
proto = js_dup(realm->class_proto[class_id]);
}
}
obj = JS_NewObjectProtoClass(ctx, proto, class_id);
JS_FreeValue(ctx, proto);
return obj;
}
|
O3
|
c
|
js_create_from_ctor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r12
movq %rdi, %rbx
cmpl $0x3, %r12d
jne 0x3742f
movq 0x40(%rbx), %rax
movslq %ebp, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq 0x8(%rax,%rcx), %r14
cmpl $-0xa, %r14d
jbe 0x37500
incl (%r15)
jmp 0x37477
movq %rsi, %r13
movq %rbx, %rdi
movq %r12, %rdx
movl $0x3c, %ecx
movq %rsi, %r8
movq %r12, %r9
pushq $0x0
pushq $0x0
callq 0x22c0f
addq $0x10, %rsp
movq %rax, %r15
movq %rdx, %r14
cmpl $-0x1, %r14d
je 0x37477
cmpl $0x6, %r14d
jne 0x374ac
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r15, %rcx
andq %rax, %rcx
jmp 0x37529
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x20a15
movq %rax, %r12
movq %rdx, %r13
movq 0x18(%rbx), %rdi
movl (%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r15)
cmpl $0x1, %eax
jg 0x37516
movq %r15, %rsi
movq %r14, %rdx
callq 0x20d90
jmp 0x37516
cmpl $-0x9, %r14d
jb 0x374cf
movq 0x18(%rbx), %rdi
movl (%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r15)
cmpl $0x1, %eax
jg 0x374cf
movq %r15, %rsi
movq %r14, %rdx
callq 0x20d90
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x5717d
testq %rax, %rax
je 0x37541
movq 0x40(%rax), %rax
movslq %ebp, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq 0x8(%rax,%rcx), %r14
cmpl $-0x9, %r14d
jae 0x3742a
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x20a15
movq %rax, %r12
movq %rdx, %r13
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r12, %rcx
movq %r12, %r15
movq %r13, %r14
movl %r15d, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x6, %r14d
xorl %r15d, %r15d
xorl %ecx, %ecx
jmp 0x37529
|
js_create_from_ctor:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebp, ecx
mov r12, rdx
mov rbx, rdi
cmp r12d, 3
jnz short loc_3742F
mov rax, [rbx+40h]
movsxd rcx, ebp
shl rcx, 4
mov r15, [rax+rcx]
mov r14, [rax+rcx+8]
cmp r14d, 0FFFFFFF6h
jbe loc_37500
loc_3742A:
inc dword ptr [r15]
jmp short loc_37477
loc_3742F:
mov r13, rsi
mov rdi, rbx
mov rdx, r12
mov ecx, 3Ch ; '<'
mov r8, rsi
mov r9, r12
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r15, rax
mov r14, rdx
cmp r14d, 0FFFFFFFFh
jz short loc_37477
cmp r14d, 6
jnz short loc_374AC
mov rax, 0FFFFFFFF00000000h
mov rcx, r15
and rcx, rax
jmp loc_37529
loc_37477:
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, ebp
call JS_NewObjectProtoClass
mov r12, rax
mov r13, rdx
mov rdi, [rbx+18h]
mov eax, [r15]
lea ecx, [rax-1]
mov [r15], ecx
cmp eax, 1
jg short loc_37516
mov rsi, r15
mov rdx, r14
call js_free_value_rt
jmp short loc_37516
loc_374AC:
cmp r14d, 0FFFFFFF7h
jb short loc_374CF
mov rdi, [rbx+18h]
mov eax, [r15]
lea ecx, [rax-1]
mov [r15], ecx
cmp eax, 1
jg short loc_374CF
mov rsi, r15
mov rdx, r14
call js_free_value_rt
loc_374CF:
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call JS_GetFunctionRealm
test rax, rax
jz short loc_37541
mov rax, [rax+40h]
movsxd rcx, ebp
shl rcx, 4
mov r15, [rax+rcx]
mov r14, [rax+rcx+8]
cmp r14d, 0FFFFFFF7h
jnb loc_3742A
loc_37500:
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, ebp
call JS_NewObjectProtoClass
mov r12, rax
mov r13, rdx
loc_37516:
mov rcx, 0FFFFFFFF00000000h
and rcx, r12
mov r15, r12
mov r14, r13
loc_37529:
mov eax, r15d
or rax, rcx
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_37541:
mov r14d, 6
xor r15d, r15d
xor ecx, ecx
jmp short loc_37529
|
unsigned long long js_create_from_ctor(long long a1, long long a2, long long a3, signed int a4)
{
long long v7; // rax
long long v8; // rcx
_QWORD *v9; // r15
long long v10; // r14
unsigned long long PropertyInternal2; // rax
long long v12; // rdx
long long v13; // r8
long long v14; // r9
unsigned long long v15; // rcx
long long v16; // r8
long long v17; // r9
long long v18; // r12
long long v19; // rdi
int v20; // eax
long long v21; // rcx
long long v22; // rdi
int v23; // eax
long long v24; // rcx
long long FunctionRealm; // rax
long long v26; // rax
long long v27; // rcx
if ( (_DWORD)a3 == 3 )
{
v7 = *(_QWORD *)(a1 + 64);
v8 = 16LL * a4;
v9 = *(_QWORD **)(v7 + v8);
v10 = *(_QWORD *)(v7 + v8 + 8);
if ( (unsigned int)v10 > 0xFFFFFFF6 )
{
LABEL_3:
++*(_DWORD *)v9;
goto LABEL_7;
}
LABEL_14:
v18 = JS_NewObjectProtoClass(a1, (long long)v9, v10, a4);
LABEL_15:
v15 = v18 & 0xFFFFFFFF00000000LL;
LODWORD(v9) = v18;
return v15 | (unsigned int)v9;
}
PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, 0x3Cu, a2, a3, 0LL, 0);
v9 = (_QWORD *)PropertyInternal2;
v10 = v12;
if ( (_DWORD)v12 == -1 )
{
LABEL_7:
v18 = JS_NewObjectProtoClass(a1, (long long)v9, v10, a4);
v19 = *(_QWORD *)(a1 + 24);
v20 = *(_DWORD *)v9;
v21 = (unsigned int)(*(_DWORD *)v9 - 1);
*(_DWORD *)v9 = v21;
if ( v20 <= 1 )
js_free_value_rt(v19, v9, v10, v21, v16, v17);
goto LABEL_15;
}
if ( (_DWORD)v12 != 6 )
{
if ( (unsigned int)v12 >= 0xFFFFFFF7 )
{
v22 = *(_QWORD *)(a1 + 24);
v23 = *(_DWORD *)PropertyInternal2;
v24 = (unsigned int)(v23 - 1);
*(_DWORD *)v9 = v24;
if ( v23 <= 1 )
js_free_value_rt(v22, v9, v12, v24, v13, v14);
}
FunctionRealm = JS_GetFunctionRealm(a1, a2, a3);
if ( !FunctionRealm )
{
LODWORD(v9) = 0;
v15 = 0LL;
return v15 | (unsigned int)v9;
}
v26 = *(_QWORD *)(FunctionRealm + 64);
v27 = 16LL * a4;
v9 = *(_QWORD **)(v26 + v27);
v10 = *(_QWORD *)(v26 + v27 + 8);
if ( (unsigned int)v10 >= 0xFFFFFFF7 )
goto LABEL_3;
goto LABEL_14;
}
v15 = PropertyInternal2 & 0xFFFFFFFF00000000LL;
return v15 | (unsigned int)v9;
}
|
js_create_from_ctor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV R12,RDX
MOV RBX,RDI
CMP R12D,0x3
JNZ 0x0013742f
MOV RAX,qword ptr [RBX + 0x40]
MOVSXD RCX,EBP
SHL RCX,0x4
MOV R15,qword ptr [RAX + RCX*0x1]
MOV R14,qword ptr [RAX + RCX*0x1 + 0x8]
CMP R14D,-0xa
JBE 0x00137500
LAB_0013742a:
INC dword ptr [R15]
JMP 0x00137477
LAB_0013742f:
MOV R13,RSI
MOV RDI,RBX
MOV RDX,R12
MOV ECX,0x3c
MOV R8,RSI
MOV R9,R12
PUSH 0x0
PUSH 0x0
CALL 0x00122c0f
ADD RSP,0x10
MOV R15,RAX
MOV R14,RDX
CMP R14D,-0x1
JZ 0x00137477
CMP R14D,0x6
JNZ 0x001374ac
MOV RAX,-0x100000000
MOV RCX,R15
AND RCX,RAX
JMP 0x00137529
LAB_00137477:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
CALL 0x00120a15
MOV R12,RAX
MOV R13,RDX
MOV RDI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [R15]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R15],ECX
CMP EAX,0x1
JG 0x00137516
MOV RSI,R15
MOV RDX,R14
CALL 0x00120d90
JMP 0x00137516
LAB_001374ac:
CMP R14D,-0x9
JC 0x001374cf
MOV RDI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [R15]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R15],ECX
CMP EAX,0x1
JG 0x001374cf
MOV RSI,R15
MOV RDX,R14
CALL 0x00120d90
LAB_001374cf:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x0015717d
TEST RAX,RAX
JZ 0x00137541
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RCX,EBP
SHL RCX,0x4
MOV R15,qword ptr [RAX + RCX*0x1]
MOV R14,qword ptr [RAX + RCX*0x1 + 0x8]
CMP R14D,-0x9
JNC 0x0013742a
LAB_00137500:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
CALL 0x00120a15
MOV R12,RAX
MOV R13,RDX
LAB_00137516:
MOV RCX,-0x100000000
AND RCX,R12
MOV R15,R12
MOV R14,R13
LAB_00137529:
MOV EAX,R15D
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00137541:
MOV R14D,0x6
XOR R15D,R15D
XOR ECX,ECX
JMP 0x00137529
|
int1 [16] js_create_from_ctor(long param_1,int8 param_2,int8 param_3,int param_4)
{
int iVar1;
long lVar2;
ulong uVar3;
uint uVar4;
int8 uVar5;
int8 uVar6;
int *piVar7;
int1 auVar8 [16];
int1 auVar9 [16];
if ((int)param_3 == 3) {
piVar7 = *(int **)(*(long *)(param_1 + 0x40) + (long)param_4 * 0x10);
uVar6 = *(int8 *)(*(long *)(param_1 + 0x40) + 8 + (long)param_4 * 0x10);
if (0xfffffff6 < (uint)uVar6) {
LAB_0013742a:
auVar8._8_8_ = uVar6;
auVar8._0_8_ = piVar7;
*piVar7 = *piVar7 + 1;
goto LAB_00137477;
}
LAB_00137500:
auVar8 = JS_NewObjectProtoClass(param_1,piVar7,uVar6,param_4);
}
else {
auVar8 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x3c,param_2,param_3,0,0);
piVar7 = auVar8._0_8_;
uVar4 = auVar8._8_4_;
if (uVar4 != 0xffffffff) {
if (uVar4 == 6) {
uVar3 = (ulong)piVar7 & 0xffffffff00000000;
goto LAB_00137529;
}
if (0xfffffff6 < uVar4) {
uVar6 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar7;
*piVar7 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar6,piVar7,auVar8._8_8_);
}
}
lVar2 = JS_GetFunctionRealm(param_1,param_2,param_3);
if (lVar2 == 0) {
auVar8 = ZEXT816(6) << 0x40;
uVar3 = 0;
goto LAB_00137529;
}
piVar7 = *(int **)(*(long *)(lVar2 + 0x40) + (long)param_4 * 0x10);
uVar6 = *(int8 *)(*(long *)(lVar2 + 0x40) + 8 + (long)param_4 * 0x10);
if ((uint)uVar6 < 0xfffffff7) goto LAB_00137500;
goto LAB_0013742a;
}
LAB_00137477:
uVar5 = auVar8._8_8_;
piVar7 = auVar8._0_8_;
auVar8 = JS_NewObjectProtoClass(param_1,piVar7,uVar5,param_4);
uVar6 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar7;
*piVar7 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar6,piVar7,uVar5);
}
}
uVar3 = auVar8._0_8_ & 0xffffffff00000000;
LAB_00137529:
auVar9._0_8_ = auVar8._0_8_ & 0xffffffff | uVar3;
auVar9._8_8_ = auVar8._8_8_;
return auVar9;
}
|
|
59,474
|
testing::Message& testing::Message::operator<<<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-message.h
|
inline Message& operator<<(const T& val) {
// Some libraries overload << for STL containers. These
// overloads are defined in the global namespace instead of ::std.
//
// C++'s symbol lookup rule (i.e. Koenig lookup) says that these
// overloads are visible in either the std namespace or the global
// namespace, but not other namespaces, including the testing
// namespace which Google Test's Message class is in.
//
// To allow STL containers (and other types that has a << operator
// defined in the global namespace) to be used in Google Test
// assertions, testing::Message must access the custom << operator
// from the global namespace. With this using declaration,
// overloads of << defined in the global namespace and those
// visible via Koenig lookup are both exposed in this function.
using ::operator<<;
*ss_ << val;
return *this;
}
|
O0
|
c
|
testing::Message& testing::Message::operator<<<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x11d70
movq %rax, %rdi
addq $0x10, %rdi
movq 0x8(%rsp), %rsi
callq 0xb460
movq (%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN7testing7MessagelsIA100_cEERS0_RKT_:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rdi, [rsp+18h+var_8]
mov [rsp+18h+var_18], rdi
call _ZNKSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(void)
mov rdi, rax
add rdi, 10h
mov rsi, [rsp+18h+var_10]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rax, [rsp+18h+var_18]
add rsp, 18h
retn
|
long long testing::Message::operator<<<char [100]>(long long a1, long long a2)
{
long long v2; // rax
v2 = std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(a1);
std::operator<<<std::char_traits<char>>(v2 + 16, a2);
return a1;
}
|
operator<<:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RDI
CALL 0x00111d70
MOV RDI,RAX
ADD RDI,0x10
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x0010b460
MOV RAX,qword ptr [RSP]
ADD RSP,0x18
RET
|
/* testing::Message& testing::Message::TEMPNAMEPLACEHOLDERVALUE(char const (&) [100]) */
Message * __thiscall testing::Message::operator<<(Message *this,char *param_1)
{
long lVar1;
lVar1 = std::
unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>::
operator*((unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>
*)this);
std::operator<<((ostream *)(lVar1 + 0x10),param_1);
return this;
}
|
|
59,475
|
void asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>, aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0, std::error_code>, std::allocator<void>>(asio::detail::executor_function::impl_base*, bool)
|
aimrt_mujoco_sim/_deps/asio-src/asio/include/asio/detail/executor_function.hpp
|
static void complete(impl_base* base, bool call)
{
// Take ownership of the function object.
impl<Function, Alloc>* i(static_cast<impl<Function, Alloc>*>(base));
Alloc allocator(i->allocator_);
typename impl<Function, Alloc>::ptr p = {
detail::addressof(allocator), i, i };
// Make a copy of the function so that the memory can be deallocated before
// the upcall is made. Even if we're not about to make an upcall, a
// sub-object of the function may be the true owner of the memory
// associated with the function. Consequently, a local copy of the function
// is required to ensure that any owning sub-object remains valid until
// after we have deallocated the memory here.
Function function(static_cast<Function&&>(i->function_));
p.reset();
// Make the upcall if required.
if (call)
{
static_cast<Function&&>(function)();
}
}
|
O0
|
cpp
|
void asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>, aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0, std::error_code>, std::allocator<void>>(asio::detail::executor_function::impl_base*, bool):
subq $0x98, %rsp
movb %sil, %al
movq %rdi, 0x90(%rsp)
andb $0x1, %al
movb %al, 0x8f(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x7f(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x80(%rsp), %rsi
addq $0x8, %rsi
leaq 0x18(%rsp), %rdi
callq 0x2b5690
jmp 0x2b58e7
leaq 0x60(%rsp), %rdi
callq 0x2b5970
jmp 0x2b58f3
testb $0x1, 0x8f(%rsp)
je 0x2b5935
leaq 0x18(%rsp), %rdi
callq 0x2b4d40
jmp 0x2b5909
jmp 0x2b5935
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x10(%rsp)
movl %eax, 0xc(%rsp)
jmp 0x2b5951
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x10(%rsp)
movl %eax, 0xc(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x2b4cb0
jmp 0x2b5951
leaq 0x18(%rsp), %rdi
callq 0x2b4cb0
leaq 0x60(%rsp), %rdi
callq 0x2b5810
addq $0x98, %rsp
retq
leaq 0x60(%rsp), %rdi
callq 0x2b5810
movq 0x10(%rsp), %rdi
callq 0x198ce0
nopw %cs:(%rax,%rax)
|
_ZN4asio6detail17executor_function8completeINS0_7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEEEvPNS1_9impl_baseEb:
sub rsp, 98h
mov al, sil
mov [rsp+98h+var_8], rdi
and al, 1
mov [rsp+98h+var_9], al
mov rax, [rsp+98h+var_8]
mov [rsp+98h+var_18], rax
lea rax, [rsp+98h+var_19]
mov [rsp+98h+var_38], rax
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_30], rax
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_28], rax
mov rsi, [rsp+98h+var_18]
add rsi, 8
lea rdi, [rsp+98h+var_80]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEC2EOSN_; asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::binder1(std::error_code&&)
jmp short $+2
loc_2B58E7:
lea rdi, [rsp+98h+var_38]
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptr5resetEv; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(void)
jmp short $+2
loc_2B58F3:
test [rsp+98h+var_9], 1
jz short loc_2B5935
lea rdi, [rsp+98h+var_80]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEclEv; asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::operator()(void)
jmp short $+2
loc_2B5909:
jmp short loc_2B5935
mov rcx, rax
mov eax, edx
mov [rsp+arg_8], rcx
mov [rsp+arg_4], eax
jmp short loc_2B5951
mov rcx, rax
mov eax, edx
mov [rsp+arg_8], rcx
mov [rsp+arg_4], eax
lea rdi, [rsp+arg_10]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeED2Ev; asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::~binder1()
jmp short loc_2B5951
loc_2B5935:
lea rdi, [rsp+98h+var_80]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeED2Ev; asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::~binder1()
lea rdi, [rsp+98h+var_38]
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptrD2Ev; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::~ptr()
add rsp, 98h
retn
loc_2B5951:
lea rdi, [rsp+arg_58]
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioStrandExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptrD2Ev; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::~ptr()
mov rdi, [rsp+arg_8]
call __Unwind_Resume
|
long long asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>(
long long a1,
char a2)
{
_QWORD v3[9]; // [rsp+18h] [rbp-80h] BYREF
_QWORD v4[3]; // [rsp+60h] [rbp-38h] BYREF
char v5; // [rsp+7Fh] [rbp-19h] BYREF
long long v6; // [rsp+80h] [rbp-18h]
char v7; // [rsp+8Fh] [rbp-9h]
long long v8; // [rsp+90h] [rbp-8h]
v8 = a1;
v7 = a2 & 1;
v6 = a1;
v4[0] = &v5;
v4[1] = a1;
v4[2] = a1;
asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::binder1(
v3,
(_QWORD *)(a1 + 8));
asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(v4);
if ( (v7 & 1) != 0 )
asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::operator()(v3);
asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::~binder1((long long)v3);
return asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::~ptr((long long)v4);
}
|
write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,char,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2}>(fmt::v10::appender,int,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2})::{lambda(fmt::v10::appender)#1}&>:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xa8],RDI
MOV qword ptr [RSP + 0xa0],RSI
MOV qword ptr [RSP + 0x98],RDX
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x88],R8
MOV RAX,qword ptr [RSP + 0xa0]
MOV EDI,dword ptr [RAX]
CALL 0x002b11f0
MOV dword ptr [RSP + 0x84],EAX
MOV EAX,dword ptr [RSP + 0x84]
CMP RAX,qword ptr [RSP + 0x90]
JBE 0x002b58ec
MOV EAX,dword ptr [RSP + 0x84]
SUB RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x002b58f5
LAB_002b58ec:
XOR EAX,EAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x002b58f5
LAB_002b58f5:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x78],RAX
LEA RAX,[0x6dcbe5]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0xa0]
MOV DX,word ptr [RDX + 0x9]
AND DX,0xf
MOVZX EDX,DL
MOVSX ECX,byte ptr [RCX + RDX*0x1]
MOV ECX,ECX
SHR RAX,CL
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x78]
SUB RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0xb
CALL 0x002b19c0
MOV RSI,qword ptr [RSP]
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
IMUL RAX,RCX
ADD RSI,RAX
LEA RDI,[RSP + 0xa8]
CALL 0x002abba0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x68],0x0
JZ 0x002b59d0
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x48],RAX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RDX,0xb
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x002b19d0
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x58],RAX
LAB_002b59d0:
MOV RDI,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x002b5a80
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x60],0x0
JZ 0x002b5a37
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x28],RAX
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RDX,0xb
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x002b19d0
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x58],RAX
LAB_002b5a37:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x002abea0
MOV qword ptr [RSP + 0xb0],RAX
MOV RAX,qword ptr [RSP + 0xb0]
ADD RSP,0xb8
RET
|
/* fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)2, fmt::v10::appender,
char, fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::detail::write_int<char,
fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned
int>, fmt::v10::format_specs<char> const&,
fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2}>(fmt::v10::appender, int, unsigned
int, fmt::v10::format_specs<char> const&, fmt::v10::detail::write_int<char, fmt::v10::appender,
unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>,
fmt::v10::format_specs<char> const&,
fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2})::{lambda(fmt::v10::appender)#1}&>(fmt::v10::appender,
fmt::v10::format_specs<char> const&, unsigned long, unsigned long,
fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::detail::write_int<char,
fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned
int>, fmt::v10::format_specs<char> const&,
fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2}>(fmt::v10::appender, int, unsigned
int, fmt::v10::format_specs<char> const&, fmt::v10::detail::write_int<char, fmt::v10::appender,
unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>,
fmt::v10::format_specs<char> const&,
fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2})::{lambda(fmt::v10::appender)#1}&)
*/
int8
fmt::v10::detail::
write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,char,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::_lambda(fmt::v10::appender)_2_>(fmt::v10::appender,int,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::_lambda(fmt::v10::appender)_2_)::_lambda(fmt::v10::appender)_1_&>
(int8 param_1,int *param_2,long param_3,ulong param_4,
_lambda_fmt__v10__appender__1_ *param_5)
{
uint uVar1;
ulong uVar2;
long lVar3;
int8 *puVar4;
int8 uVar5;
ulong local_a8;
int8 local_60;
int8 local_10 [2];
local_10[0] = param_1;
uVar1 = to_unsigned<int>(*param_2);
if (param_4 < uVar1) {
local_a8 = uVar1 - param_4;
}
else {
local_a8 = 0;
}
uVar2 = local_a8 >> ((&DAT_006dcbe5)[(byte)*(int2 *)((long)param_2 + 9) & 0xf] & 0x3f);
lVar3 = fill_t<char>::size((fill_t<char> *)((long)param_2 + 0xb));
puVar4 = (int8 *)
reserve<fmt::v10::appender>((appender *)local_10,param_3 + local_a8 * lVar3);
local_60 = *puVar4;
if (uVar2 != 0) {
local_60 = fill<fmt::v10::appender,char>(local_60,uVar2,(long)param_2 + 0xb);
}
local_60 = write_int<fmt::v10::appender,char,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2}>(fmt::v10::appender,int,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::write_int<char,fmt::v10::appender,unsigned_int>(fmt::v10::appender,fmt::v10::detail::write_int_arg<unsigned_int>,fmt::v10::format_specs<char>const&,fmt::v10::detail::locale_ref)::{lambda(fmt::v10::appender)#2})
::{lambda(fmt::v10::appender)#1}::operator()(param_5,local_60);
if (local_a8 - uVar2 != 0) {
local_60 = fill<fmt::v10::appender,char>(local_60,local_a8 - uVar2,(long)param_2 + 0xb);
}
uVar5 = base_iterator<fmt::v10::appender>(local_10[0],local_60);
return uVar5;
}
|
|
59,476
|
void asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>, aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0, std::error_code>, std::allocator<void>>(asio::detail::executor_function::impl_base*, bool)
|
aimrt_mujoco_sim/_deps/asio-src/asio/include/asio/detail/executor_function.hpp
|
static void complete(impl_base* base, bool call)
{
// Take ownership of the function object.
impl<Function, Alloc>* i(static_cast<impl<Function, Alloc>*>(base));
Alloc allocator(i->allocator_);
typename impl<Function, Alloc>::ptr p = {
detail::addressof(allocator), i, i };
// Make a copy of the function so that the memory can be deallocated before
// the upcall is made. Even if we're not about to make an upcall, a
// sub-object of the function may be the true owner of the memory
// associated with the function. Consequently, a local copy of the function
// is required to ensure that any owning sub-object remains valid until
// after we have deallocated the memory here.
Function function(static_cast<Function&&>(i->function_));
p.reset();
// Make the upcall if required.
if (call)
{
static_cast<Function&&>(function)();
}
}
|
O3
|
cpp
|
void asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioStrandExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>, aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0, std::error_code>, std::allocator<void>>(asio::detail::executor_function::impl_base*, bool):
pushq %r14
pushq %rbx
subq $0x68, %rsp
movl %esi, %ebx
leaq 0x7(%rsp), %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %rdi, 0x8(%r14)
movq %rdi, 0x10(%r14)
leaq 0x8(%rdi), %rsi
leaq 0x20(%rsp), %rdi
callq 0xf6ad2
movq %r14, %rdi
callq 0xf6bd4
testb %bl, %bl
je 0xf6b76
leaq 0x20(%rsp), %rdi
callq 0xf6868
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0xf6b88
leaq 0x38(%rsp), %rdi
callq *0x10(%rax)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xf6b97
callq 0x81a00
leaq 0x8(%rsp), %rdi
callq 0xf6bd4
addq $0x68, %rsp
popq %rbx
popq %r14
retq
jmp 0xf6bcc
jmp 0xf6bcc
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xf683a
leaq 0x8(%rsp), %rdi
callq 0xf6bd4
movq %rbx, %rdi
callq 0x83b70
movq %rax, %rdi
callq 0x8b40b
|
_ZN4asio6detail17executor_function8completeINS0_7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEEEvPNS1_9impl_baseEb:
push r14
push rbx
sub rsp, 68h
mov ebx, esi
lea rax, [rsp+78h+var_71]
lea r14, [rsp+78h+var_70]
mov [r14], rax
mov [r14+8], rdi
mov [r14+10h], rdi
lea rsi, [rdi+8]
lea rdi, [rsp+78h+var_58]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEC2EOSN_; asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::binder1(std::error_code&&)
mov rdi, r14
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptr5resetEv; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(void)
test bl, bl
jz short loc_F6B76
lea rdi, [rsp+78h+var_58]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEclEv; asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::operator()(void)
loc_F6B76:
mov rax, [rsp+78h+var_28]
test rax, rax
jz short loc_F6B88
lea rdi, [rsp+78h+var_40]
call qword ptr [rax+10h]
loc_F6B88:
mov rdi, [rsp+78h+var_48]
test rdi, rdi
jz short loc_F6B97
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_F6B97:
lea rdi, [rsp+78h+var_70]
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptr5resetEv; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(void)
add rsp, 68h
pop rbx
pop r14
retn
jmp short loc_F6BCC
jmp short loc_F6BCC
mov rbx, rax
lea rdi, [rsp+78h+var_58]
call _ZN4asio6detail7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS7_3_V212system_clockENS7_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS2_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeED2Ev; asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::~binder1()
lea rdi, [rsp+78h+var_70]
call _ZN4asio6detail17executor_function4implINS0_7binder1IZN5aimrt7runtime4core8executor18AsioThreadExecutor9ExecuteAtENSt6chrono10time_pointINS9_3_V212system_clockENS9_8durationIlSt5ratioILl1ELl1000000000EEEEEEONS4_4util8FunctionI34aimrt_function_executor_task_ops_tEEE3$_0St10error_codeEESaIvEE3ptr5resetEv; asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(void)
mov rdi, rbx
call __Unwind_Resume
loc_F6BCC:
mov rdi, rax
call __clang_call_terminate
|
long long asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>(
long long a1,
char a2)
{
char v3; // [rsp+7h] [rbp-71h] BYREF
_QWORD v4[3]; // [rsp+8h] [rbp-70h] BYREF
_BYTE v5[16]; // [rsp+20h] [rbp-58h] BYREF
long long v6; // [rsp+30h] [rbp-48h]
_BYTE v7[24]; // [rsp+38h] [rbp-40h] BYREF
long long v8; // [rsp+50h] [rbp-28h]
v4[0] = &v3;
v4[1] = a1;
v4[2] = a1;
asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::binder1(
(long long)v5,
a1 + 8);
asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(v4);
if ( a2 )
asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>::operator()((long long)v5);
if ( v8 )
(*(void ( **)(_BYTE *))(v8 + 16))(v7);
if ( v6 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
return asio::detail::executor_function::impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t> &&)::$_0,std::error_code>,std::allocator<void>>::ptr::reset(v4);
}
|
complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0,std::error_code>,std::allocator<void>>:
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV EBX,ESI
LEA RAX,[RSP + 0x7]
LEA R14,[RSP + 0x8]
MOV qword ptr [R14],RAX
MOV qword ptr [R14 + 0x8],RDI
MOV qword ptr [R14 + 0x10],RDI
LEA RSI,[RDI + 0x8]
LEA RDI,[RSP + 0x20]
CALL 0x001f6ad2
LAB_001f6b60:
MOV RDI,R14
CALL 0x001f6bd4
TEST BL,BL
JZ 0x001f6b76
LEA RDI,[RSP + 0x20]
CALL 0x001f6868
LAB_001f6b76:
MOV RAX,qword ptr [RSP + 0x50]
TEST RAX,RAX
JZ 0x001f6b88
LEA RDI,[RSP + 0x38]
LAB_001f6b85:
CALL qword ptr [RAX + 0x10]
LAB_001f6b88:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x001f6b97
CALL 0x00181a00
LAB_001f6b97:
LEA RDI,[RSP + 0x8]
CALL 0x001f6bd4
ADD RSP,0x68
POP RBX
POP R14
RET
|
/* void
asio::detail::executor_function::complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > >,
aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0, std::error_code>,
std::allocator<void> >(asio::detail::executor_function::impl_base*, bool) */
void asio::detail::executor_function::
complete<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::__0,std::error_code>,std::allocator<void>>
(impl_base *param_1,bool param_2)
{
int1 local_71;
int1 *local_70;
impl_base *local_68;
impl_base *local_60;
binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::__0,std::error_code>
local_58 [16];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
int1 local_40 [24];
long local_28;
local_70 = &local_71;
local_68 = param_1;
local_60 = param_1;
binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0,std::error_code>
::binder1(local_58,(binder1 *)(param_1 + 8));
/* try { // try from 001f6b60 to 001f6b75 has its CatchHandler @ 001f6bad */
impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0,std::error_code>,std::allocator<void>>
::ptr::reset((ptr *)&local_70);
if (param_2) {
binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0,std::error_code>
::operator()(local_58);
}
if (local_28 != 0) {
/* try { // try from 001f6b85 to 001f6b87 has its CatchHandler @ 001f6ba9 */
(**(code **)(local_28 + 0x10))(local_40);
}
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
/* try { // try from 001f6b97 to 001f6ba0 has its CatchHandler @ 001f6bab */
impl<asio::detail::binder1<aimrt::runtime::core::executor::AsioThreadExecutor::ExecuteAt(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>,aimrt::util::Function<aimrt_function_executor_task_ops_t>&&)::$_0,std::error_code>,std::allocator<void>>
::ptr::reset((ptr *)&local_70);
return;
}
|
|
59,477
|
my_casedn_str_mb
|
eloqsql/strings/ctype-mb.c
|
size_t my_casedn_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_lower;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
}
|
O3
|
c
|
my_casedn_str_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %rax
je 0x57ba0
movq %rdi, %r14
movq 0x48(%rdi), %r12
movq %rbx, %r15
movl 0x9c(%r14), %edx
addq %r15, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x57b90
movzbl (%r15), %eax
movb (%r12,%rax), %al
movb %al, (%r15)
movl $0x1, %ecx
jmp 0x57b92
movl %eax, %ecx
leaq (%r15,%rcx), %rax
cmpb $0x0, (%r15,%rcx)
movq %rax, %r15
jne 0x57b5c
subq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_casedn_str_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
cmp byte ptr [rsi], 0
mov rax, rsi
jz short loc_57BA0
mov r14, rdi
mov r12, [rdi+48h]
mov r15, rbx
loc_57B5C:
mov edx, [r14+9Ch]
add rdx, r15
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_57B90
movzx eax, byte ptr [r15]
mov al, [r12+rax]
mov [r15], al
mov ecx, 1
jmp short loc_57B92
loc_57B90:
mov ecx, eax
loc_57B92:
lea rax, [r15+rcx]
cmp byte ptr [r15+rcx], 0
mov r15, rax
jnz short loc_57B5C
loc_57BA0:
sub rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long my_casedn_str_mb(long long a1, _BYTE *a2)
{
_BYTE *v2; // rax
long long v3; // r12
_BYTE *v4; // r15
int v5; // eax
long long v6; // rcx
bool v7; // zf
v2 = a2;
if ( *a2 )
{
v3 = *(_QWORD *)(a1 + 72);
v4 = a2;
do
{
v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v4,
&v4[*(unsigned int *)(a1 + 156)]);
if ( v5 >= 2 )
{
v6 = (unsigned int)v5;
}
else
{
*v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4);
v6 = 1LL;
}
v2 = &v4[v6];
v7 = v4[v6] == 0;
v4 += v6;
}
while ( !v7 );
}
return v2 - a2;
}
|
my_casedn_str_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV RAX,RSI
JZ 0x00157ba0
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x48]
MOV R15,RBX
LAB_00157b5c:
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,R15
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x00157b90
MOVZX EAX,byte ptr [R15]
MOV AL,byte ptr [R12 + RAX*0x1]
MOV byte ptr [R15],AL
MOV ECX,0x1
JMP 0x00157b92
LAB_00157b90:
MOV ECX,EAX
LAB_00157b92:
LEA RAX,[R15 + RCX*0x1]
CMP byte ptr [R15 + RCX*0x1],0x0
MOV R15,RAX
JNZ 0x00157b5c
LAB_00157ba0:
SUB RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_mb(long param_1,byte *param_2)
{
byte *pbVar1;
long lVar2;
uint uVar3;
byte *pbVar4;
ulong uVar5;
byte *pbVar6;
pbVar4 = param_2;
if (*param_2 != 0) {
lVar2 = *(long *)(param_1 + 0x48);
pbVar6 = param_2;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c));
if ((int)uVar3 < 2) {
*pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6);
uVar5 = 1;
}
else {
uVar5 = (ulong)uVar3;
}
pbVar4 = pbVar6 + uVar5;
pbVar1 = pbVar6 + uVar5;
pbVar6 = pbVar4;
} while (*pbVar1 != 0);
}
return (long)pbVar4 - (long)param_2;
}
|
|
59,478
|
Arg_comparator::compare_e_real_fixed()
|
eloqsql/sql/item_cmpfunc.cc
|
int Arg_comparator::compare_e_real_fixed()
{
double val1= (*a)->val_real();
double val2= (*b)->val_real();
if ((*a)->null_value || (*b)->null_value)
return MY_TEST((*a)->null_value && (*b)->null_value);
return MY_TEST(val1 == val2 || fabs(val1 - val2) < precision);
}
|
O0
|
cpp
|
Arg_comparator::compare_e_real_fixed():
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq (%rax), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0xe8(%rax)
movq -0x28(%rbp), %rax
movsd %xmm0, -0x18(%rbp)
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0xe8(%rax)
movq -0x28(%rbp), %rax
movsd %xmm0, -0x20(%rbp)
movq (%rax), %rax
movq (%rax), %rax
testb $0x1, 0x64(%rax)
jne 0x919ff2
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
testb $0x1, 0x64(%rax)
je 0x91a02d
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rcx
xorl %eax, %eax
testb $0x1, 0x64(%rcx)
movb %al, -0x29(%rbp)
je 0x91a018
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movb 0x64(%rax), %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x91a07d
movsd -0x18(%rbp), %xmm0
movb $0x1, %al
ucomisd -0x20(%rbp), %xmm0
movb %al, -0x2a(%rbp)
jne 0x91a042
jp 0x91a042
jmp 0x91a06a
movq -0x28(%rbp), %rax
movsd -0x18(%rbp), %xmm1
subsd -0x20(%rbp), %xmm1
movaps 0x4f2a79(%rip), %xmm0 # 0xe0cad0
pand %xmm0, %xmm1
movsd 0x48(%rax), %xmm0
ucomisd %xmm1, %xmm0
seta %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN14Arg_comparator20compare_e_real_fixedEv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rax]
mov rdi, [rax]
mov rax, [rdi]
call qword ptr [rax+0E8h]
mov rax, [rbp+var_28]
movsd [rbp+var_18], xmm0
mov rax, [rax+8]
mov rdi, [rax]
mov rax, [rdi]
call qword ptr [rax+0E8h]
mov rax, [rbp+var_28]
movsd [rbp+var_20], xmm0
mov rax, [rax]
mov rax, [rax]
test byte ptr [rax+64h], 1
jnz short loc_919FF2
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax]
test byte ptr [rax+64h], 1
jz short loc_91A02D
loc_919FF2:
mov rax, [rbp+var_28]
mov rax, [rax]
mov rcx, [rax]
xor eax, eax
test byte ptr [rcx+64h], 1
mov [rbp+var_29], al
jz short loc_91A018
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax]
mov al, [rax+64h]
mov [rbp+var_29], al
loc_91A018:
mov dl, [rbp+var_29]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_91A07D
loc_91A02D:
movsd xmm0, [rbp+var_18]
mov al, 1
ucomisd xmm0, [rbp+var_20]
mov [rbp+var_2A], al
jnz short loc_91A042
jp short loc_91A042
jmp short loc_91A06A
loc_91A042:
mov rax, [rbp+var_28]
movsd xmm1, [rbp+var_18]
subsd xmm1, [rbp+var_20]
movaps xmm0, cs:xmmword_E0CAD0
pand xmm1, xmm0
movsd xmm0, qword ptr [rax+48h]
ucomisd xmm0, xmm1
setnbe al
mov [rbp+var_2A], al
loc_91A06A:
mov dl, [rbp+var_2A]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_91A07D:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
_BOOL8 Arg_comparator::compare_e_real_fixed(Arg_comparator *this)
{
__m128i v1; // xmm1
bool v3; // [rsp+6h] [rbp-2Ah]
char v4; // [rsp+7h] [rbp-29h]
double v5; // [rsp+10h] [rbp-20h]
double v6; // [rsp+18h] [rbp-18h]
v6 = (*(double ( **)(_QWORD))(***(_QWORD ***)this + 232LL))(**(_QWORD **)this);
v5 = (*(double ( **)(_QWORD))(***((_QWORD ***)this + 1) + 232LL))(**((_QWORD **)this + 1));
if ( (*(_BYTE *)(**(_QWORD **)this + 100LL) & 1) != 0 || (*(_BYTE *)(**((_QWORD **)this + 1) + 100LL) & 1) != 0 )
{
v4 = 0;
if ( (*(_BYTE *)(**(_QWORD **)this + 100LL) & 1) != 0 )
v4 = *(_BYTE *)(**((_QWORD **)this + 1) + 100LL);
return (v4 & 1) != 0;
}
else
{
v3 = 1;
if ( v6 != v5 )
{
v1 = (__m128i)*(unsigned long long *)&v6;
*(double *)v1.m128i_i64 = v6 - v5;
return *((double *)this + 9) > *(double *)_mm_and_si128(v1, (__m128i)xmmword_E0CAD0).m128i_i64;
}
return v3;
}
}
|
__invoke_impl<boost::context::continuation,boost::context::continuation(*&)(boost::context::continuation&&,THD*),boost::context::continuation,THD*&>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV RAX,RDI
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RCX]
CALL RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x30
POP RBP
RET
|
/* boost::context::continuation std::__invoke_impl<boost::context::continuation,
boost::context::continuation (*&)(boost::context::continuation&&, THD*),
boost::context::continuation, THD*&>(std::__invoke_other, boost::context::continuation
(*&)(boost::context::continuation&&, THD*), boost::context::continuation&&, THD*&) */
int8
std::
__invoke_impl<boost::context::continuation,boost::context::continuation(*&)(boost::context::continuation&&,THD*),boost::context::continuation,THD*&>
(int8 param_1,int8 *param_2,int8 param_3,int8 *param_4)
{
(*(code *)*param_2)(param_1,param_3,*param_4);
return param_1;
}
|
|
59,479
|
heapsortx
|
bluesky950520[P]quickjs/cutils.c
|
static void heapsortx(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque)
{
uint8_t *basep = (uint8_t *)base;
size_t i, n, c, r;
exchange_f swap = exchange_func(base, size);
if (nmemb > 1) {
i = (nmemb / 2) * size;
n = nmemb * size;
while (i > 0) {
i -= size;
for (r = i; (c = r * 2 + size) < n; r = c) {
if (c < n - size && cmp(basep + c, basep + c + size, opaque) <= 0)
c += size;
if (cmp(basep + r, basep + c, opaque) > 0)
break;
swap(basep + r, basep + c, size);
}
}
for (i = n - size; i > 0; i -= size) {
swap(basep, basep + i, size);
for (r = 0; (c = r * 2 + size) < i; r = c) {
if (c < i - size && cmp(basep + c, basep + c + size, opaque) <= 0)
c += size;
if (cmp(basep + r, basep + c, opaque) > 0)
break;
swap(basep + r, basep + c, size);
}
}
}
}
|
O0
|
c
|
heapsortx:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x209c0
movq %rax, (%rsp)
cmpq $0x1, 0x48(%rsp)
jbe 0x20d2d
movq 0x48(%rsp), %rax
shrq %rax
imulq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
imulq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x20c15
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
shlq %rax
addq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq 0x18(%rsp), %rax
jae 0x20c10
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x20bbb
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
addq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jg 0x20bbb
movq 0x40(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x20be2
jmp 0x20c10
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x20b51
jmp 0x20b29
movq 0x18(%rsp), %rax
subq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x20d2b
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
shlq %rax
addq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq 0x20(%rsp), %rax
jae 0x20d12
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x20cbd
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
addq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jg 0x20cbd
movq 0x40(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x20ce4
jmp 0x20d12
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x20c53
jmp 0x20d14
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
jmp 0x20c24
jmp 0x20d2d
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
|
heapsortx:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_20], rcx
mov [rsp+58h+var_28], r8
mov rax, [rsp+58h+var_8]
mov [rsp+58h+var_30], rax
mov rdi, [rsp+58h+var_8]
mov rsi, [rsp+58h+var_18]
call exchange_func
mov [rsp+58h+var_58], rax
cmp [rsp+58h+var_10], 1
jbe loc_20D2D
mov rax, [rsp+58h+var_10]
shr rax, 1
imul rax, [rsp+58h+var_18]
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_10]
imul rax, [rsp+58h+var_18]
mov [rsp+58h+var_40], rax
loc_20B29:
cmp [rsp+58h+var_38], 0
jbe loc_20C15
mov rcx, [rsp+58h+var_18]
mov rax, [rsp+58h+var_38]
sub rax, rcx
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_38]
mov [rsp+58h+var_50], rax
loc_20B51:
mov rax, [rsp+58h+var_50]
shl rax, 1
add rax, [rsp+58h+var_18]
mov [rsp+58h+var_48], rax
cmp rax, [rsp+58h+var_40]
jnb loc_20C10
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_40]
sub rcx, [rsp+58h+var_18]
cmp rax, rcx
jnb short loc_20BBB
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_48]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
add rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jg short loc_20BBB
mov rax, [rsp+58h+var_18]
add rax, [rsp+58h+var_48]
mov [rsp+58h+var_48], rax
loc_20BBB:
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jle short loc_20BE2
jmp short loc_20C10
loc_20BE2:
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_18]
call rax
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_50], rax
jmp loc_20B51
loc_20C10:
jmp loc_20B29
loc_20C15:
mov rax, [rsp+58h+var_40]
sub rax, [rsp+58h+var_18]
mov [rsp+58h+var_38], rax
loc_20C24:
cmp [rsp+58h+var_38], 0
jbe loc_20D2B
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_38]
mov rdx, [rsp+58h+var_18]
call rax
mov [rsp+58h+var_50], 0
loc_20C53:
mov rax, [rsp+58h+var_50]
shl rax, 1
add rax, [rsp+58h+var_18]
mov [rsp+58h+var_48], rax
cmp rax, [rsp+58h+var_38]
jnb loc_20D12
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_38]
sub rcx, [rsp+58h+var_18]
cmp rax, rcx
jnb short loc_20CBD
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_48]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
add rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jg short loc_20CBD
mov rax, [rsp+58h+var_18]
add rax, [rsp+58h+var_48]
mov [rsp+58h+var_48], rax
loc_20CBD:
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jle short loc_20CE4
jmp short loc_20D12
loc_20CE4:
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_18]
call rax
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_50], rax
jmp loc_20C53
loc_20D12:
jmp short $+2
loc_20D14:
mov rcx, [rsp+58h+var_18]
mov rax, [rsp+58h+var_38]
sub rax, rcx
mov [rsp+58h+var_38], rax
jmp loc_20C24
loc_20D2B:
jmp short $+2
loc_20D2D:
add rsp, 58h
retn
|
long long ( * heapsortx(
long long a1,
unsigned long long a2,
long long a3,
int ( *a4)(unsigned long long, unsigned long long, long long),
long long a5))()
{
long long ( *result)(); // rax
long long ( *v6)(); // [rsp+0h] [rbp-58h]
unsigned long long i; // [rsp+8h] [rbp-50h]
unsigned long long k; // [rsp+8h] [rbp-50h]
unsigned long long v9; // [rsp+10h] [rbp-48h]
unsigned long long v10; // [rsp+10h] [rbp-48h]
unsigned long long v11; // [rsp+18h] [rbp-40h]
unsigned long long v12; // [rsp+20h] [rbp-38h]
unsigned long long j; // [rsp+20h] [rbp-38h]
result = exchange_func(a1, a3);
v6 = result;
if ( a2 > 1 )
{
v12 = a3 * (a2 >> 1);
v11 = a3 * a2;
while ( v12 )
{
v12 -= a3;
for ( i = v12; ; i = v9 )
{
v9 = a3 + 2 * i;
if ( v9 >= v11 )
break;
if ( v9 < v11 - a3 && a4(v9 + a1, a3 + v9 + a1, a5) <= 0 )
v9 += a3;
if ( a4(i + a1, v9 + a1, a5) > 0 )
break;
((void ( *)(unsigned long long, unsigned long long, long long))v6)(i + a1, v9 + a1, a3);
}
}
result = (long long ( *)())(v11 - a3);
for ( j = v11 - a3; j; j -= a3 )
{
((void ( *)(long long, unsigned long long, long long))v6)(a1, j + a1, a3);
for ( k = 0LL; ; k = v10 )
{
v10 = a3 + 2 * k;
if ( v10 >= j )
break;
if ( v10 < j - a3 && a4(v10 + a1, a3 + v10 + a1, a5) <= 0 )
v10 += a3;
if ( a4(k + a1, v10 + a1, a5) > 0 )
break;
((void ( *)(unsigned long long, unsigned long long, long long))v6)(k + a1, v10 + a1, a3);
}
result = (long long ( *)())(j - a3);
}
}
return result;
}
|
heapsortx:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x30],R8
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x001209c0
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP + 0x48],0x1
JBE 0x00120d2d
MOV RAX,qword ptr [RSP + 0x48]
SHR RAX,0x1
IMUL RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x48]
IMUL RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RAX
LAB_00120b29:
CMP qword ptr [RSP + 0x20],0x0
JBE 0x00120c15
MOV RCX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
LAB_00120b51:
MOV RAX,qword ptr [RSP + 0x8]
SHL RAX,0x1
ADD RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
CMP RAX,qword ptr [RSP + 0x18]
JNC 0x00120c10
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
SUB RCX,qword ptr [RSP + 0x40]
CMP RAX,RCX
JNC 0x00120bbb
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
ADD RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JG 0x00120bbb
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LAB_00120bbb:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JLE 0x00120be2
JMP 0x00120c10
LAB_00120be2:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00120b51
LAB_00120c10:
JMP 0x00120b29
LAB_00120c15:
MOV RAX,qword ptr [RSP + 0x18]
SUB RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
LAB_00120c24:
CMP qword ptr [RSP + 0x20],0x0
JBE 0x00120d2b
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV qword ptr [RSP + 0x8],0x0
LAB_00120c53:
MOV RAX,qword ptr [RSP + 0x8]
SHL RAX,0x1
ADD RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
CMP RAX,qword ptr [RSP + 0x20]
JNC 0x00120d12
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x20]
SUB RCX,qword ptr [RSP + 0x40]
CMP RAX,RCX
JNC 0x00120cbd
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
ADD RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JG 0x00120cbd
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LAB_00120cbd:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JLE 0x00120ce4
JMP 0x00120d12
LAB_00120ce4:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00120c53
LAB_00120d12:
JMP 0x00120d14
LAB_00120d14:
MOV RCX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00120c24
LAB_00120d2b:
JMP 0x00120d2d
LAB_00120d2d:
ADD RSP,0x58
RET
|
void heapsortx(long param_1,ulong param_2,long param_3,code *param_4,int8 param_5)
{
int iVar1;
code *pcVar2;
ulong local_50;
ulong local_48;
ulong local_38;
pcVar2 = (code *)exchange_func(param_1,param_3);
if (1 < param_2) {
local_38 = (param_2 >> 1) * param_3;
param_2 = param_2 * param_3;
LAB_00120b29:
if (local_38 != 0) {
local_38 = local_38 - param_3;
local_50 = local_38;
while (local_48 = local_50 * 2 + param_3, local_48 < param_2) {
if ((local_48 < param_2 - param_3) &&
(iVar1 = (*param_4)(param_1 + local_48,param_1 + local_48 + param_3,param_5), iVar1 < 1))
{
local_48 = param_3 + local_48;
}
iVar1 = (*param_4)(param_1 + local_50,param_1 + local_48,param_5);
if (0 < iVar1) break;
(*pcVar2)(param_1 + local_50,param_1 + local_48,param_3);
local_50 = local_48;
}
goto LAB_00120b29;
}
for (local_38 = param_2 - param_3; local_38 != 0; local_38 = local_38 - param_3) {
(*pcVar2)(param_1,param_1 + local_38,param_3);
local_50 = 0;
while (local_48 = local_50 * 2 + param_3, local_48 < local_38) {
if ((local_48 < local_38 - param_3) &&
(iVar1 = (*param_4)(param_1 + local_48,param_1 + local_48 + param_3,param_5), iVar1 < 1))
{
local_48 = param_3 + local_48;
}
iVar1 = (*param_4)(param_1 + local_50,param_1 + local_48,param_5);
if (0 < iVar1) break;
(*pcVar2)(param_1 + local_50,param_1 + local_48,param_3);
local_50 = local_48;
}
}
}
return;
}
|
|
59,480
|
ma_dynmap_file
|
eloqsql/storage/maria/ma_dynrec.c
|
my_bool _ma_dynmap_file(MARIA_HA *info, my_off_t size)
{
DBUG_ENTER("_ma_dynmap_file");
if (size > (my_off_t) (~((size_t) 0)) - MEMMAP_EXTRA_MARGIN)
{
DBUG_PRINT("warning", ("File is too large for mmap"));
DBUG_RETURN(1);
}
/*
Ingo wonders if it is good to use MAP_NORESERVE. From the Linux man page:
MAP_NORESERVE
Do not reserve swap space for this mapping. When swap space is
reserved, one has the guarantee that it is possible to modify the
mapping. When swap space is not reserved one might get SIGSEGV
upon a write if no physical memory is available.
*/
info->s->file_map= (uchar*)
my_mmap(0, (size_t)(size + MEMMAP_EXTRA_MARGIN),
info->s->mode==O_RDONLY ? PROT_READ :
PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_NORESERVE,
info->dfile.file, 0L);
if (info->s->file_map == (uchar*) MAP_FAILED)
{
info->s->file_map= NULL;
DBUG_RETURN(1);
}
#if defined(HAVE_MADVISE)
madvise((char*) info->s->file_map, size, MADV_RANDOM);
#endif
info->s->mmaped_length= size;
DBUG_RETURN(0);
}
|
O0
|
c
|
ma_dynmap_file:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $-0x8, -0x18(%rbp)
jbe 0x3b3c6
jmp 0x3b3b9
jmp 0x3b3bb
jmp 0x3b3bd
movb $0x1, -0x1(%rbp)
jmp 0x3b47a
movq -0x18(%rbp), %rsi
addq $0x7, %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7a4(%rax), %ecx
movl $0x3, %edx
movl $0x1, %eax
cmpl $0x0, %ecx
cmovel %eax, %edx
movq -0x10(%rbp), %rax
movl 0x480(%rax), %r8d
xorl %eax, %eax
movl %eax, %r9d
movl $0x4001, %ecx # imm = 0x4001
movq %r9, %rdi
callq 0x2a5b0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x5f0(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $-0x1, %rcx
cmpq %rcx, 0x5f0(%rax)
jne 0x3b448
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, 0x5f0(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x3b47a
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x5f0(%rax), %rdi
movq -0x18(%rbp), %rsi
movl $0x1, %edx
callq 0x2a460
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0xa00(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_dynmap_file:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0FFFFFFFFFFFFFFF8h
jbe short loc_3B3C6
jmp short $+2
loc_3B3B9:
jmp short $+2
loc_3B3BB:
jmp short $+2
loc_3B3BD:
mov [rbp+var_1], 1
jmp loc_3B47A
loc_3B3C6:
mov rsi, [rbp+var_18]
add rsi, 7
mov rax, [rbp+var_10]
mov rax, [rax]
mov ecx, [rax+7A4h]
mov edx, 3
mov eax, 1
cmp ecx, 0
cmovz edx, eax
mov rax, [rbp+var_10]
mov r8d, [rax+480h]
xor eax, eax
mov r9d, eax
mov ecx, 4001h
mov rdi, r9
call _mmap64
mov rcx, rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+5F0h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, 0FFFFFFFFFFFFFFFFh
cmp [rax+5F0h], rcx
jnz short loc_3B448
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax+5F0h], 0
mov [rbp+var_1], 1
jmp short loc_3B47A
loc_3B448:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+5F0h]
mov rsi, [rbp+var_18]
mov edx, 1
call _madvise
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+0A00h], rcx
mov [rbp+var_1], 0
loc_3B47A:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char ma_dynmap_file(unsigned int *a1, unsigned long long a2)
{
long long v2; // rdx
if ( a2 > 0xFFFFFFFFFFFFFFF8LL )
return 1;
v2 = 3LL;
if ( !*(_DWORD *)(*(_QWORD *)a1 + 1956LL) )
v2 = 1LL;
*(_QWORD *)(*(_QWORD *)a1 + 1520LL) = mmap64(0LL, a2 + 7, v2, 16385LL, a1[288]);
if ( *(_QWORD *)(*(_QWORD *)a1 + 1520LL) == -1LL )
{
*(_QWORD *)(*(_QWORD *)a1 + 1520LL) = 0LL;
return 1;
}
else
{
madvise(*(_QWORD *)(*(_QWORD *)a1 + 1520LL), a2, 1LL);
*(_QWORD *)(*(_QWORD *)a1 + 2560LL) = a2;
return 0;
}
}
|
_ma_dynmap_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],-0x8
JBE 0x0013b3c6
JMP 0x0013b3b9
LAB_0013b3b9:
JMP 0x0013b3bb
LAB_0013b3bb:
JMP 0x0013b3bd
LAB_0013b3bd:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013b47a
LAB_0013b3c6:
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,0x7
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x7a4]
MOV EDX,0x3
MOV EAX,0x1
CMP ECX,0x0
CMOVZ EDX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RAX + 0x480]
XOR EAX,EAX
MOV R9D,EAX
MOV ECX,0x4001
MOV RDI,R9
CALL 0x0012a5b0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x5f0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,-0x1
CMP qword ptr [RAX + 0x5f0],RCX
JNZ 0x0013b448
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x5f0],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013b47a
LAB_0013b448:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x5f0]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0x1
CALL 0x0012a460
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0xa00],RCX
MOV byte ptr [RBP + -0x1],0x0
LAB_0013b47a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_dynmap_file(long *param_1,ulong param_2)
{
void *pvVar1;
int __prot;
int1 local_9;
if (param_2 < 0xfffffffffffffff9) {
__prot = 3;
if (*(int *)(*param_1 + 0x7a4) == 0) {
__prot = 1;
}
pvVar1 = mmap64((void *)0x0,param_2 + 7,__prot,0x4001,(int)param_1[0x90],0);
*(void **)(*param_1 + 0x5f0) = pvVar1;
if (*(long *)(*param_1 + 0x5f0) == -1) {
*(int8 *)(*param_1 + 0x5f0) = 0;
local_9 = 1;
}
else {
madvise(*(void **)(*param_1 + 0x5f0),param_2,1);
*(ulong *)(*param_1 + 0xa00) = param_2;
local_9 = 0;
}
}
else {
local_9 = 1;
}
return local_9;
}
|
|
59,481
|
wt_thd_lazy_init
|
eloqsql/mysys/waiting_threads.c
|
void wt_thd_lazy_init(WT_THD *thd, const ulong *ds, const ulong *ts,
const ulong *dl, const ulong *tl)
{
DBUG_ENTER("wt_thd_lazy_init");
thd->waiting_for= 0;
thd->weight= 0;
thd->deadlock_search_depth_short= ds;
thd->timeout_short= ts;
thd->deadlock_search_depth_long= dl;
thd->timeout_long= tl;
/* dynamic array is also initialized lazily - without memory allocations */
my_init_dynamic_array(PSI_INSTRUMENT_ME, &thd->my_resources,
sizeof(WT_RESOURCE *), 0, 5, MYF(0));
#ifndef DBUG_OFF
thd->name= my_thread_name();
#endif
DBUG_VOID_RETURN;
}
|
O3
|
c
|
wt_thd_lazy_init:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, %rax
xorl %edi, %edi
movq %rdi, 0x28(%rax)
movq %rdi, 0x58(%rax)
movq %rsi, 0x40(%rax)
movq %rdx, 0x38(%rax)
movq %rcx, 0x50(%rax)
movq %r8, 0x48(%rax)
movq %rdi, (%rsp)
xorl %edi, %edi
movq %rax, %rsi
movl $0x8, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x5, %r9d
callq 0x92d3c
addq $0x10, %rsp
popq %rbp
retq
|
wt_thd_lazy_init:
push rbp
mov rbp, rsp
sub rsp, 10h
mov rax, rdi
xor edi, edi
mov [rax+28h], rdi
mov [rax+58h], rdi
mov [rax+40h], rsi
mov [rax+38h], rdx
mov [rax+50h], rcx
mov [rax+48h], r8
mov [rsp+10h+var_10], rdi
xor edi, edi
mov rsi, rax
mov edx, 8
xor ecx, ecx
xor r8d, r8d
mov r9d, 5
call init_dynamic_array2
add rsp, 10h
pop rbp
retn
|
long long wt_thd_lazy_init(_QWORD *a1, long long a2, long long a3, long long a4, long long a5)
{
a1[5] = 0LL;
a1[11] = 0LL;
a1[8] = a2;
a1[7] = a3;
a1[10] = a4;
a1[9] = a5;
return init_dynamic_array2(0LL, (long long)a1, 8u, 0LL, 0, 5u, 0LL);
}
|
wt_thd_lazy_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV RAX,RDI
XOR EDI,EDI
MOV qword ptr [RAX + 0x28],RDI
MOV qword ptr [RAX + 0x58],RDI
MOV qword ptr [RAX + 0x40],RSI
MOV qword ptr [RAX + 0x38],RDX
MOV qword ptr [RAX + 0x50],RCX
MOV qword ptr [RAX + 0x48],R8
MOV qword ptr [RSP],RDI
XOR EDI,EDI
MOV RSI,RAX
MOV EDX,0x8
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x5
CALL 0x00192d3c
ADD RSP,0x10
POP RBP
RET
|
void wt_thd_lazy_init(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x40) = param_2;
*(int8 *)(param_1 + 0x38) = param_3;
*(int8 *)(param_1 + 0x50) = param_4;
*(int8 *)(param_1 + 0x48) = param_5;
init_dynamic_array2(0,param_1,8,0,0,5,0);
return;
}
|
|
59,482
|
my_seek
|
eloqsql/mysys/my_seek.c
|
my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags)
{
os_off_t newpos= -1;
DBUG_ENTER("my_seek");
DBUG_PRINT("my",("fd: %d Pos: %llu Whence: %d MyFlags: %lu",
fd, (ulonglong) pos, whence, MyFlags));
DBUG_ASSERT(pos != MY_FILEPOS_ERROR); /* safety check */
/*
Make sure we are using a valid file descriptor!
*/
DBUG_ASSERT(fd != -1);
#ifdef _WIN32
newpos= my_win_lseek(fd, pos, whence);
#else
newpos= lseek(fd, pos, whence);
#endif
if (newpos == (os_off_t) -1)
{
my_errno= errno;
if (MyFlags & MY_WME)
my_error(EE_CANT_SEEK, MYF(0), my_filename(fd), my_errno);
DBUG_PRINT("error", ("lseek: %llu errno: %d", (ulonglong) newpos, errno));
DBUG_RETURN(MY_FILEPOS_ERROR);
}
if ((my_off_t) newpos != pos)
{
DBUG_PRINT("exit",("pos: %llu", (ulonglong) newpos));
}
DBUG_RETURN((my_off_t) newpos);
}
|
O0
|
c
|
my_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq $-0x1, -0x30(%rbp)
jmp 0xfd630
jmp 0xfd632
jmp 0xfd634
jmp 0xfd636
jmp 0xfd638
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x2a700
movq %rax, -0x30(%rbp)
cmpq $-0x1, -0x30(%rbp)
jne 0xfd6ab
callq 0x2a750
movl (%rax), %eax
movl %eax, -0x34(%rbp)
callq 0xfea30
movl -0x34(%rbp), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xfd69b
movl -0xc(%rbp), %edi
callq 0x10ee70
movq %rax, -0x40(%rbp)
callq 0xfea30
movq -0x40(%rbp), %rdx
movl (%rax), %ecx
movl $0x21, %edi
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0xf4b80
jmp 0xfd69d
jmp 0xfd69f
jmp 0xfd6a1
movq $-0x1, -0x8(%rbp)
jmp 0xfd6c5
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0xfd6bb
jmp 0xfd6b7
jmp 0xfd6b9
jmp 0xfd6bb
jmp 0xfd6bd
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop
|
my_seek:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jmp short $+2
loc_FD630:
jmp short $+2
loc_FD632:
jmp short $+2
loc_FD634:
jmp short $+2
loc_FD636:
jmp short $+2
loc_FD638:
mov edi, [rbp+var_C]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
call _lseek64
mov [rbp+var_30], rax
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jnz short loc_FD6AB
call ___errno_location
mov eax, [rax]
mov [rbp+var_34], eax
call _my_thread_var
mov ecx, [rbp+var_34]
mov [rax], ecx
mov rax, [rbp+var_28]
and rax, 10h
cmp rax, 0
jz short loc_FD69B
mov edi, [rbp+var_C]
call my_filename
mov [rbp+var_40], rax
call _my_thread_var
mov rdx, [rbp+var_40]
mov ecx, [rax]
mov edi, 21h ; '!'
xor eax, eax
mov esi, eax
mov al, 0
call my_error
loc_FD69B:
jmp short $+2
loc_FD69D:
jmp short $+2
loc_FD69F:
jmp short $+2
loc_FD6A1:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_FD6C5
loc_FD6AB:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
jz short loc_FD6BB
jmp short $+2
loc_FD6B7:
jmp short $+2
loc_FD6B9:
jmp short $+2
loc_FD6BB:
jmp short $+2
loc_FD6BD:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_FD6C5:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long my_seek(unsigned int a1, const char *a2, unsigned int a3, char a4)
{
unsigned int *v4; // rax
long long v6; // [rsp+0h] [rbp-40h]
int v7; // [rsp+Ch] [rbp-34h]
long long v8; // [rsp+10h] [rbp-30h]
v8 = lseek64(a1, a2, a3);
if ( v8 != -1 )
return v8;
v7 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(a1, a2) = v7;
if ( (a4 & 0x10) != 0 )
{
v6 = my_filename(a1);
v4 = (unsigned int *)my_thread_var(a1, a2);
my_error(0x21u, 0LL, v6, *v4);
}
return -1LL;
}
|
my_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],-0x1
JMP 0x001fd630
LAB_001fd630:
JMP 0x001fd632
LAB_001fd632:
JMP 0x001fd634
LAB_001fd634:
JMP 0x001fd636
LAB_001fd636:
JMP 0x001fd638
LAB_001fd638:
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
CALL 0x0012a700
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],-0x1
JNZ 0x001fd6ab
CALL 0x0012a750
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
CALL 0x001fea30
MOV ECX,dword ptr [RBP + -0x34]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x10
CMP RAX,0x0
JZ 0x001fd69b
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x0020ee70
MOV qword ptr [RBP + -0x40],RAX
CALL 0x001fea30
MOV RDX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RAX]
MOV EDI,0x21
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL 0x001f4b80
LAB_001fd69b:
JMP 0x001fd69d
LAB_001fd69d:
JMP 0x001fd69f
LAB_001fd69f:
JMP 0x001fd6a1
LAB_001fd6a1:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001fd6c5
LAB_001fd6ab:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JZ 0x001fd6bb
JMP 0x001fd6b7
LAB_001fd6b7:
JMP 0x001fd6b9
LAB_001fd6b9:
JMP 0x001fd6bb
LAB_001fd6bb:
JMP 0x001fd6bd
LAB_001fd6bd:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_001fd6c5:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
__off64_t my_seek(int param_1,__off64_t param_2,int param_3,ulong param_4)
{
int iVar1;
int *piVar2;
int8 uVar3;
int4 *puVar4;
__off64_t local_10;
local_10 = lseek64(param_1,param_2,param_3);
if (local_10 == -1) {
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
if ((param_4 & 0x10) != 0) {
uVar3 = my_filename(param_1);
puVar4 = (int4 *)_my_thread_var();
my_error(0x21,0,uVar3,*puVar4);
}
local_10 = -1;
}
return local_10;
}
|
|
59,483
|
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&)
|
llama.cpp/common/common.cpp
|
std::string string_from(const struct llama_context * ctx, const std::vector<llama_token> & tokens) {
std::stringstream buf;
buf << "[ ";
bool first = true;
for (const auto & token : tokens) {
if (!first) {
buf << ", ";
} else {
first = false;
}
auto detokenized = common_token_to_piece(ctx, token);
detokenized.erase(
std::remove_if(
detokenized.begin(),
detokenized.end(),
[](const unsigned char c) { return !std::isprint(c); }),
detokenized.end());
buf << "'" << detokenized << "'"
<< ":" << std::to_string(token);
}
buf << " ]";
return buf.str();
}
|
O3
|
cpp
|
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp # imm = 0x1E8
movq %rdx, %rbx
movq %rsi, 0x58(%rsp)
movq %rdi, 0x48(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x204e0
leaq 0x70(%rsp), %r14
leaq 0x2cb71(%rip), %rsi # 0x1241ec
movl $0x2, %edx
movq %r14, %rdi
callq 0x21070
movq (%rbx), %r13
movq 0x8(%rbx), %rax
movq %rax, 0x50(%rsp)
cmpq %rax, %r13
je 0xf7955
movb $0x1, %al
testb $0x1, %al
jne 0xf76b7
movl $0x2, %edx
movq %r14, %rdi
leaq 0x2d22f(%rip), %rsi # 0x1248e1
callq 0x21070
movl (%r13), %ebx
movq 0x58(%rsp), %rdi
callq 0x20d70
movq %rax, %rdi
callq 0x21190
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
movl %ebx, %edx
movl $0x1, %ecx
callq 0xfa73b
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rax
leaq (%r15,%rax), %rbx
movq %rax, %r14
sarq $0x2, %r14
movq %r15, %rbp
testq %r14, %r14
jle 0xf775f
andq $-0x4, %rax
movq %rax, %rbp
addq %r15, %rbp
incq %r14
leaq 0x3(%r15), %r12
movzbl -0x3(%r12), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77b4
movzbl -0x2(%r12), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77ba
movzbl -0x1(%r12), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77c0
movzbl (%r12), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77c3
decq %r14
addq $0x4, %r12
cmpq $0x1, %r14
jg 0xf770f
movq %rbx, %rax
subq %rbp, %rax
cmpq $0x1, %rax
je 0xf77a0
cmpq $0x2, %rax
leaq 0x70(%rsp), %r14
je 0xf7790
cmpq $0x3, %rax
jne 0xf794d
movzbl (%rbp), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77af
incq %rbp
movzbl (%rbp), %edi
callq 0x20a30
testl %eax, %eax
je 0xf77af
incq %rbp
movzbl (%rbp), %edi
callq 0x20a30
testl %eax, %eax
cmovneq %rbx, %rbp
movq %rbp, %r12
jmp 0xf77c3
addq $-0x3, %r12
jmp 0xf77c3
addq $-0x2, %r12
jmp 0xf77c3
decq %r12
cmpq %rbx, %r12
sete %al
leaq 0x1(%r12), %r14
cmpq %rbx, %r14
sete %cl
orb %al, %cl
jne 0xf77fc
movb (%r14), %bpl
movzbl %bpl, %edi
callq 0x20a30
testl %eax, %eax
je 0xf77ef
movb %bpl, (%r12)
incq %r12
incq %r14
cmpq %rbx, %r14
jne 0xf77d8
movq 0x8(%rsp), %r15
leaq 0x70(%rsp), %r14
movq %r12, %rax
subq %r15, %rax
movq %rax, 0x10(%rsp)
movb $0x0, (%r12)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x24193(%rip), %rsi # 0x11b9b3
callq 0x21070
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x21070
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2416a(%rip), %rsi # 0x11b9b3
callq 0x21070
movl $0x1, %edx
movq %r12, %rdi
leaq 0x2920c(%rip), %rsi # 0x120a69
callq 0x21070
movl (%r13), %ebp
movl %ebp, %ebx
negl %ebx
cmovsl %ebp, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0xf78be
movl $0x4, %r15d
movl %ebx, %eax
cmpl $0x63, %eax
jbe 0xf78b5
cmpl $0x3e7, %eax # imm = 0x3E7
jbe 0xf78bb
cmpl $0x2710, %eax # imm = 0x2710
jb 0xf78be
movl %eax, %ecx
movl $0xd1b71759, %edx # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax # imm = 0x1869F
movl %ecx, %eax
ja 0xf7880
addl $-0x3, %r15d
jmp 0xf78be
addl $-0x2, %r15d
jmp 0xf78be
decl %r15d
shrl $0x1f, %ebp
leal (%r15,%rbp), %esi
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x209d0
addq 0x28(%rsp), %rbp
movq %rbp, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x73f36
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rdi
callq 0x21070
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xf791e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf793a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
addq $0x4, %r13
xorl %eax, %eax
cmpq 0x50(%rsp), %r13
jne 0xf769f
jmp 0xf7955
movq %rbx, %r12
jmp 0xf7801
leaq 0x2c893(%rip), %rsi # 0x1241ef
movl $0x2, %edx
movq %r14, %rdi
callq 0x21070
movq 0x48(%rsp), %rbx
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x20660
movq 0x6a62e(%rip), %rsi # 0x161fb0
leaq 0x60(%rsp), %rdi
callq 0x20cf0
leaq 0xe0(%rsp), %rdi
callq 0x20c40
movq %rbx, %rax
addq $0x1e8, %rsp # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf79dd
jmp 0xf79dd
jmp 0xf79dd
movq %rax, %rdi
callq 0x28709
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xf79e5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xf79e5
movq %rax, %rbx
jmp 0xf7a01
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf7a01
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
movq 0x6a5a8(%rip), %rsi # 0x161fb0
leaq 0x60(%rsp), %rdi
callq 0x20cf0
leaq 0xe0(%rsp), %rdi
callq 0x20c40
movq %rbx, %rdi
callq 0x20af0
|
_Z11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1E8h
mov rbx, rdx
mov [rsp+218h+var_1C0], rsi
mov [rsp+218h+var_1D0], rdi
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea r14, [rsp+218h+var_1A8]
lea rsi, asc_1241EC; "[ "
mov edx, 2
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r13, [rbx]
mov rax, [rbx+8]
mov [rsp+218h+var_1C8], rax
cmp r13, rax
jz loc_F7955
mov al, 1
loc_F769F:
test al, 1
jnz short loc_F76B7
mov edx, 2
mov rdi, r14
lea rsi, aZuD+6; ", "
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_F76B7:
mov ebx, [r13+0]
mov rdi, [rsp+218h+var_1C0]
call _llama_get_model
mov rdi, rax
call _llama_model_get_vocab
lea rdi, [rsp+218h+var_210]
mov rsi, rax
mov edx, ebx
mov ecx, 1
call _Z21common_token_to_pieceB5cxx11PK11llama_vocabib; common_token_to_piece(llama_vocab const*,int,bool)
mov r15, [rsp+218h+var_210]
mov rax, [rsp+218h+var_208]
lea rbx, [r15+rax]
mov r14, rax
sar r14, 2
mov rbp, r15
test r14, r14
jle short loc_F775F
and rax, 0FFFFFFFFFFFFFFFCh
mov rbp, rax
add rbp, r15
inc r14
lea r12, [r15+3]
loc_F770F:
movzx edi, byte ptr [r12-3]
call _isprint
test eax, eax
jz loc_F77B4
movzx edi, byte ptr [r12-2]
call _isprint
test eax, eax
jz loc_F77BA
movzx edi, byte ptr [r12-1]
call _isprint
test eax, eax
jz short loc_F77C0
movzx edi, byte ptr [r12]
call _isprint
test eax, eax
jz short loc_F77C3
dec r14
add r12, 4
cmp r14, 1
jg short loc_F770F
loc_F775F:
mov rax, rbx
sub rax, rbp
cmp rax, 1
jz short loc_F77A0
cmp rax, 2
lea r14, [rsp+218h+var_1A8]
jz short loc_F7790
cmp rax, 3
jnz loc_F794D
movzx edi, byte ptr [rbp+0]
call _isprint
test eax, eax
jz short loc_F77AF
inc rbp
loc_F7790:
movzx edi, byte ptr [rbp+0]
call _isprint
test eax, eax
jz short loc_F77AF
inc rbp
loc_F77A0:
movzx edi, byte ptr [rbp+0]
call _isprint
test eax, eax
cmovnz rbp, rbx
loc_F77AF:
mov r12, rbp
jmp short loc_F77C3
loc_F77B4:
add r12, 0FFFFFFFFFFFFFFFDh
jmp short loc_F77C3
loc_F77BA:
add r12, 0FFFFFFFFFFFFFFFEh
jmp short loc_F77C3
loc_F77C0:
dec r12
loc_F77C3:
cmp r12, rbx
setz al
lea r14, [r12+1]
cmp r14, rbx
setz cl
or cl, al
jnz short loc_F77FC
loc_F77D8:
mov bpl, [r14]
movzx edi, bpl
call _isprint
test eax, eax
jz short loc_F77EF
mov [r12], bpl
inc r12
loc_F77EF:
inc r14
cmp r14, rbx
jnz short loc_F77D8
mov r15, [rsp+218h+var_210]
loc_F77FC:
lea r14, [rsp+218h+var_1A8]
loc_F7801:
mov rax, r12
sub rax, r15
mov [rsp+218h+var_208], rax
mov byte ptr [r12], 0
mov edx, 1
mov rdi, r14
lea rsi, asc_11B9B1+2; "'"
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [rsp+218h+var_210]
mov rdx, [rsp+218h+var_208]
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r12, rax
mov edx, 1
mov rdi, rax
lea rsi, asc_11B9B1+2; "'"
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov edx, 1
mov rdi, r12
lea rsi, aArgumentNeedle_0+11h; ":"
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov ebp, [r13+0]
mov ebx, ebp
neg ebx
cmovs ebx, ebp
mov r15d, 1
cmp ebx, 0Ah
jb short loc_F78BE
mov r15d, 4
mov eax, ebx
loc_F7880:
cmp eax, 63h ; 'c'
jbe short loc_F78B5
cmp eax, 3E7h
jbe short loc_F78BB
cmp eax, 2710h
jb short loc_F78BE
mov ecx, eax
mov edx, 0D1B71759h
imul rcx, rdx
shr rcx, 2Dh
add r15d, 4
cmp eax, 1869Fh
mov eax, ecx
ja short loc_F7880
add r15d, 0FFFFFFFDh
jmp short loc_F78BE
loc_F78B5:
add r15d, 0FFFFFFFEh
jmp short loc_F78BE
loc_F78BB:
dec r15d
loc_F78BE:
shr ebp, 1Fh
lea esi, [r15+rbp]
lea rax, [rsp+218h+var_1E0]
mov [rsp+218h+var_1F0], rax
lea rdi, [rsp+218h+var_1F0]
mov edx, 2Dh ; '-'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
add rbp, [rsp+218h+var_1F0]
mov rdi, rbp
mov esi, r15d
mov edx, ebx
call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint)
mov rsi, [rsp+218h+var_1F0]
mov rdx, [rsp+218h+var_1E8]
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+218h+var_1F0]; void *
lea rax, [rsp+218h+var_1E0]
cmp rdi, rax
jz short loc_F791E
mov rsi, [rsp+218h+var_1E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F791E:
mov rdi, [rsp+218h+var_210]; void *
lea rax, [rsp+218h+var_200]
cmp rdi, rax
jz short loc_F793A
mov rsi, [rsp+218h+var_200]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F793A:
add r13, 4
xor eax, eax
cmp r13, [rsp+218h+var_1C8]
jnz loc_F769F
jmp short loc_F7955
loc_F794D:
mov r12, rbx
jmp loc_F7801
loc_F7955:
lea rsi, asc_1241EF; " ]"
mov edx, 2
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, [rsp+218h+var_1D0]
lea rsi, [rsp+218h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+218h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 1E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_F79DD
jmp short loc_F79DD
jmp short loc_F79DD
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
mov rdi, [rsp+218h+var_1F0]; void *
lea rax, [rsp+218h+var_1E0]
cmp rdi, rax
jz short loc_F79E5
mov rsi, [rsp+218h+var_1E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F79E5
loc_F79DD:
mov rbx, rax
jmp short loc_F7A01
mov rbx, rax
loc_F79E5:
mov rdi, [rsp+218h+var_210]; void *
lea rax, [rsp+218h+var_200]
cmp rdi, rax
jz short loc_F7A01
mov rsi, [rsp+218h+var_200]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F7A01:
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+218h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
|
long long string_from[abi:cxx11](long long a1, long long a2, unsigned int **a3)
{
char *v4; // rsi
unsigned int *v5; // r13
char v6; // al
unsigned int v7; // ebx
long long model; // rax
long long vocab; // rsi
_BYTE *v10; // r15
char *v11; // rbx
char *v12; // rbp
long long v13; // r14
char *v14; // r12
signed long long v15; // rax
char *v16; // r14
char v17; // bp
long long v18; // r12
unsigned int v19; // ebx
int v20; // r15d
unsigned int v21; // eax
bool v22; // cc
unsigned int v23; // ebp
long long v24; // rbx
void *v26; // [rsp+8h] [rbp-210h] BYREF
long long v27; // [rsp+10h] [rbp-208h]
long long v28; // [rsp+18h] [rbp-200h] BYREF
void *v29[2]; // [rsp+28h] [rbp-1F0h] BYREF
_QWORD v30[2]; // [rsp+38h] [rbp-1E0h] BYREF
long long v31; // [rsp+48h] [rbp-1D0h]
unsigned int *v32; // [rsp+50h] [rbp-1C8h]
long long v33; // [rsp+58h] [rbp-1C0h]
_BYTE v34[16]; // [rsp+60h] [rbp-1B8h] BYREF
char v35[8]; // [rsp+70h] [rbp-1A8h] BYREF
char v36[104]; // [rsp+78h] [rbp-1A0h] BYREF
char v37[312]; // [rsp+E0h] [rbp-138h] BYREF
v33 = a2;
v31 = a1;
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v34);
v4 = "[ ";
std::__ostream_insert<char,std::char_traits<char>>(v35, "[ ", 2LL);
v5 = *a3;
v32 = a3[1];
if ( v5 != v32 )
{
v6 = 1;
while ( 1 )
{
if ( (v6 & 1) == 0 )
{
v4 = ", ";
std::__ostream_insert<char,std::char_traits<char>>(v35, ", ", 2LL);
}
v7 = *v5;
model = llama_get_model(v33);
vocab = llama_model_get_vocab(model, v4);
common_token_to_piece[abi:cxx11](&v26, vocab, v7, 1LL);
v10 = v26;
v11 = (char *)v26 + v27;
v12 = (char *)v26;
if ( v27 >> 2 > 0 )
break;
LABEL_12:
v15 = v11 - v12;
if ( v11 - v12 == 1 )
goto LABEL_19;
if ( v15 == 2 )
goto LABEL_17;
if ( v15 == 3 )
{
if ( (unsigned int)isprint((unsigned __int8)*v12) )
{
++v12;
LABEL_17:
if ( (unsigned int)isprint((unsigned __int8)*v12) )
{
++v12;
LABEL_19:
if ( (unsigned int)isprint((unsigned __int8)*v12) )
v12 = v11;
}
}
v14 = v12;
LABEL_25:
v16 = v14 + 1;
if ( v14 != v11 && v14 + 1 != v11 )
{
do
{
v17 = *v16;
if ( (unsigned int)isprint((unsigned __int8)*v16) )
*v14++ = v17;
++v16;
}
while ( v16 != v11 );
v10 = v26;
}
goto LABEL_30;
}
v14 = v11;
LABEL_30:
v27 = v14 - v10;
*v14 = 0;
std::__ostream_insert<char,std::char_traits<char>>(v35, "'", 1LL);
v18 = std::__ostream_insert<char,std::char_traits<char>>(v35, v26, v27);
std::__ostream_insert<char,std::char_traits<char>>(v18, "'", 1LL);
std::__ostream_insert<char,std::char_traits<char>>(v18, ":", 1LL);
v19 = -*v5;
if ( (int)*v5 > 0 )
v19 = *v5;
v20 = 1;
if ( v19 >= 0xA )
{
v20 = 4;
v21 = v19;
while ( 1 )
{
if ( v21 <= 0x63 )
{
v20 -= 2;
goto LABEL_41;
}
if ( v21 <= 0x3E7 )
break;
if ( v21 < 0x2710 )
goto LABEL_41;
v20 += 4;
v22 = v21 <= 0x1869F;
v21 /= 0x2710u;
if ( v22 )
{
v20 -= 3;
goto LABEL_41;
}
}
--v20;
}
LABEL_41:
v23 = *v5 >> 31;
v29[0] = v30;
std::string::_M_construct(v29, v20 + v23, 45LL);
std::__detail::__to_chars_10_impl<unsigned int>((char *)v29[0] + v23, v20, v19);
v4 = (char *)v29[0];
std::__ostream_insert<char,std::char_traits<char>>(v18, v29[0], v29[1]);
if ( v29[0] != v30 )
{
v4 = (char *)(v30[0] + 1LL);
operator delete(v29[0], v30[0] + 1LL);
}
if ( v26 != &v28 )
{
v4 = (char *)(v28 + 1);
operator delete(v26, v28 + 1);
}
++v5;
v6 = 0;
if ( v5 == v32 )
goto LABEL_48;
}
v12 = (char *)v26 + (v27 & 0xFFFFFFFFFFFFFFFCLL);
v13 = (v27 >> 2) + 1;
v14 = (char *)v26 + 3;
while ( 1 )
{
if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 3)) )
{
v14 -= 3;
goto LABEL_25;
}
if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 2)) )
{
v14 -= 2;
goto LABEL_25;
}
if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 1)) )
break;
if ( !(unsigned int)isprint((unsigned __int8)*v14) )
goto LABEL_25;
--v13;
v14 += 4;
if ( v13 <= 1 )
goto LABEL_12;
}
--v14;
goto LABEL_25;
}
LABEL_48:
std::__ostream_insert<char,std::char_traits<char>>(v35, " ]", 2LL);
v24 = v31;
std::stringbuf::str(v31, v36);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v34,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v37);
return v24;
}
|
string_from[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1e8
MOV RBX,RDX
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x48],RDI
LEA RDI,[RSP + 0x60]
CALL 0x001204e0
LEA R14,[RSP + 0x70]
LAB_001f7674:
LEA RSI,[0x2241ec]
MOV EDX,0x2
MOV RDI,R14
CALL 0x00121070
MOV R13,qword ptr [RBX]
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x50],RAX
CMP R13,RAX
JZ 0x001f7955
MOV AL,0x1
LAB_001f769f:
TEST AL,0x1
JNZ 0x001f76b7
LAB_001f76a3:
MOV EDX,0x2
MOV RDI,R14
LEA RSI,[0x2248e1]
CALL 0x00121070
LAB_001f76b7:
MOV EBX,dword ptr [R13]
LAB_001f76bb:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x00120d70
MOV RDI,RAX
CALL 0x00121190
LEA RDI,[RSP + 0x8]
MOV RSI,RAX
MOV EDX,EBX
MOV ECX,0x1
CALL 0x001fa73b
MOV R15,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
LEA RBX,[R15 + RAX*0x1]
MOV R14,RAX
SAR R14,0x2
MOV RBP,R15
TEST R14,R14
JLE 0x001f775f
AND RAX,-0x4
MOV RBP,RAX
ADD RBP,R15
INC R14
LEA R12,[R15 + 0x3]
LAB_001f770f:
MOVZX EDI,byte ptr [R12 + -0x3]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77b4
MOVZX EDI,byte ptr [R12 + -0x2]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77ba
MOVZX EDI,byte ptr [R12 + -0x1]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77c0
MOVZX EDI,byte ptr [R12]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77c3
DEC R14
ADD R12,0x4
CMP R14,0x1
JG 0x001f770f
LAB_001f775f:
MOV RAX,RBX
SUB RAX,RBP
CMP RAX,0x1
JZ 0x001f77a0
CMP RAX,0x2
LEA R14,[RSP + 0x70]
JZ 0x001f7790
CMP RAX,0x3
JNZ 0x001f794d
MOVZX EDI,byte ptr [RBP]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77af
INC RBP
LAB_001f7790:
MOVZX EDI,byte ptr [RBP]
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77af
INC RBP
LAB_001f77a0:
MOVZX EDI,byte ptr [RBP]
CALL 0x00120a30
TEST EAX,EAX
CMOVNZ RBP,RBX
LAB_001f77af:
MOV R12,RBP
JMP 0x001f77c3
LAB_001f77b4:
ADD R12,-0x3
JMP 0x001f77c3
LAB_001f77ba:
ADD R12,-0x2
JMP 0x001f77c3
LAB_001f77c0:
DEC R12
LAB_001f77c3:
CMP R12,RBX
SETZ AL
LEA R14,[R12 + 0x1]
CMP R14,RBX
SETZ CL
OR CL,AL
JNZ 0x001f77fc
LAB_001f77d8:
MOV BPL,byte ptr [R14]
MOVZX EDI,BPL
CALL 0x00120a30
TEST EAX,EAX
JZ 0x001f77ef
MOV byte ptr [R12],BPL
INC R12
LAB_001f77ef:
INC R14
CMP R14,RBX
JNZ 0x001f77d8
MOV R15,qword ptr [RSP + 0x8]
LAB_001f77fc:
LEA R14,[RSP + 0x70]
LAB_001f7801:
MOV RAX,R12
SUB RAX,R15
MOV qword ptr [RSP + 0x10],RAX
MOV byte ptr [R12],0x0
LAB_001f7811:
MOV EDX,0x1
MOV RDI,R14
LEA RSI,[0x21b9b3]
CALL 0x00121070
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RDI,R14
CALL 0x00121070
MOV R12,RAX
MOV EDX,0x1
MOV RDI,RAX
LEA RSI,[0x21b9b3]
CALL 0x00121070
MOV EDX,0x1
MOV RDI,R12
LEA RSI,[0x220a69]
CALL 0x00121070
MOV EBP,dword ptr [R13]
MOV EBX,EBP
NEG EBX
CMOVS EBX,EBP
MOV R15D,0x1
CMP EBX,0xa
JC 0x001f78be
MOV R15D,0x4
MOV EAX,EBX
LAB_001f7880:
CMP EAX,0x63
JBE 0x001f78b5
CMP EAX,0x3e7
JBE 0x001f78bb
CMP EAX,0x2710
JC 0x001f78be
MOV ECX,EAX
MOV EDX,0xd1b71759
IMUL RCX,RDX
SHR RCX,0x2d
ADD R15D,0x4
CMP EAX,0x1869f
MOV EAX,ECX
JA 0x001f7880
ADD R15D,-0x3
JMP 0x001f78be
LAB_001f78b5:
ADD R15D,-0x2
JMP 0x001f78be
LAB_001f78bb:
DEC R15D
LAB_001f78be:
SHR EBP,0x1f
LEA ESI,[R15 + RBP*0x1]
LEA RAX,[RSP + 0x38]
MOV qword ptr [RSP + 0x28],RAX
LAB_001f78cf:
LEA RDI,[RSP + 0x28]
MOV EDX,0x2d
CALL 0x001209d0
ADD RBP,qword ptr [RSP + 0x28]
MOV RDI,RBP
MOV ESI,R15D
MOV EDX,EBX
CALL 0x00173f36
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
LAB_001f78fa:
MOV RDI,R12
CALL 0x00121070
MOV RDI,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x38]
CMP RDI,RAX
JZ 0x001f791e
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00120180
LAB_001f791e:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001f793a
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00120180
LAB_001f793a:
ADD R13,0x4
XOR EAX,EAX
CMP R13,qword ptr [RSP + 0x50]
JNZ 0x001f769f
JMP 0x001f7955
LAB_001f794d:
MOV R12,RBX
JMP 0x001f7801
LAB_001f7955:
LEA RSI,[0x2241ef]
MOV EDX,0x2
MOV RDI,R14
CALL 0x00121070
MOV RBX,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x78]
MOV RDI,RBX
CALL 0x00120660
LAB_001f797b:
MOV RSI,qword ptr [0x00261fb0]
LEA RDI,[RSP + 0x60]
CALL 0x00120cf0
LEA RDI,[RSP + 0xe0]
CALL 0x00120c40
MOV RAX,RBX
ADD RSP,0x1e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int> > const&) */
llama_context * string_from_abi_cxx11_(llama_context *param_1,vector *param_2)
{
byte *pbVar1;
byte bVar2;
uint uVar3;
uint uVar4;
llama_context *plVar5;
uint uVar6;
bool bVar7;
int iVar8;
uint uVar9;
int8 uVar10;
ostream *poVar11;
ulong uVar12;
int8 *in_RDX;
byte *pbVar13;
byte *pbVar14;
uint *puVar15;
long lVar16;
uint uVar17;
byte *pbVar18;
byte *local_210;
ulong local_208;
long local_200 [2];
long *local_1f0;
long local_1e8;
long local_1e0 [2];
llama_context *local_1d0;
uint *local_1c8;
vector *local_1c0;
stringstream local_1b8 [16];
ostream local_1a8 [112];
ios_base local_138 [264];
local_1d0 = param_1;
local_1c0 = param_2;
std::__cxx11::stringstream::stringstream(local_1b8);
/* try { // try from 001f7674 to 001f7687 has its CatchHandler @ 001f79ae */
std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"[ ",2);
puVar15 = (uint *)*in_RDX;
local_1c8 = (uint *)in_RDX[1];
if (puVar15 != local_1c8) {
bVar7 = true;
do {
if (!bVar7) {
/* try { // try from 001f76a3 to 001f76b6 has its CatchHandler @ 001f79b2 */
std::__ostream_insert<char,std::char_traits<char>>(local_1a8,", ",2);
}
uVar3 = *puVar15;
/* try { // try from 001f76bb to 001f76e0 has its CatchHandler @ 001f79dd */
uVar10 = llama_get_model(local_1c0);
iVar8 = llama_model_get_vocab(uVar10);
common_token_to_piece_abi_cxx11_((llama_vocab *)&local_210,iVar8,SUB41(uVar3,0));
pbVar18 = local_210;
pbVar1 = local_210 + local_208;
pbVar13 = local_210;
if (0 < (long)local_208 >> 2) {
pbVar13 = local_210 + (local_208 & 0xfffffffffffffffc);
lVar16 = ((long)local_208 >> 2) + 1;
pbVar14 = local_210 + 3;
do {
iVar8 = isprint((uint)pbVar14[-3]);
if (iVar8 == 0) {
pbVar14 = pbVar14 + -3;
goto LAB_001f77c3;
}
iVar8 = isprint((uint)pbVar14[-2]);
if (iVar8 == 0) {
pbVar14 = pbVar14 + -2;
goto LAB_001f77c3;
}
iVar8 = isprint((uint)pbVar14[-1]);
if (iVar8 == 0) {
pbVar14 = pbVar14 + -1;
goto LAB_001f77c3;
}
iVar8 = isprint((uint)*pbVar14);
if (iVar8 == 0) goto LAB_001f77c3;
lVar16 = lVar16 + -1;
pbVar14 = pbVar14 + 4;
} while (1 < lVar16);
}
lVar16 = (long)pbVar1 - (long)pbVar13;
if (lVar16 == 1) {
LAB_001f77a0:
iVar8 = isprint((uint)*pbVar13);
pbVar14 = pbVar13;
if (iVar8 != 0) {
pbVar14 = pbVar1;
}
LAB_001f77c3:
pbVar13 = pbVar14 + 1;
if (pbVar13 != pbVar1 && pbVar14 != pbVar1) {
do {
bVar2 = *pbVar13;
iVar8 = isprint((uint)bVar2);
if (iVar8 != 0) {
*pbVar14 = bVar2;
pbVar14 = pbVar14 + 1;
}
pbVar13 = pbVar13 + 1;
pbVar18 = local_210;
} while (pbVar13 != pbVar1);
}
}
else {
if (lVar16 == 2) {
LAB_001f7790:
iVar8 = isprint((uint)*pbVar13);
pbVar14 = pbVar13;
if (iVar8 != 0) {
pbVar13 = pbVar13 + 1;
goto LAB_001f77a0;
}
goto LAB_001f77c3;
}
pbVar14 = pbVar1;
if (lVar16 == 3) {
iVar8 = isprint((uint)*pbVar13);
pbVar14 = pbVar13;
if (iVar8 != 0) {
pbVar13 = pbVar13 + 1;
goto LAB_001f7790;
}
goto LAB_001f77c3;
}
}
local_208 = (long)pbVar14 - (long)pbVar18;
*pbVar14 = 0;
/* try { // try from 001f7811 to 001f7861 has its CatchHandler @ 001f79e2 */
std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"\'",1);
poVar11 = std::__ostream_insert<char,std::char_traits<char>>
(local_1a8,(char *)local_210,local_208);
std::__ostream_insert<char,std::char_traits<char>>(poVar11,"\'",1);
std::__ostream_insert<char,std::char_traits<char>>(poVar11,":",1);
uVar3 = *puVar15;
uVar4 = -uVar3;
if (0 < (int)uVar3) {
uVar4 = uVar3;
}
uVar17 = 1;
if (9 < uVar4) {
uVar12 = (ulong)uVar4;
uVar6 = 4;
do {
uVar17 = uVar6;
uVar9 = (uint)uVar12;
if (uVar9 < 100) {
uVar17 = uVar17 - 2;
goto LAB_001f78be;
}
if (uVar9 < 1000) {
uVar17 = uVar17 - 1;
goto LAB_001f78be;
}
if (uVar9 < 10000) goto LAB_001f78be;
uVar12 = uVar12 / 10000;
uVar6 = uVar17 + 4;
} while (99999 < uVar9);
uVar17 = uVar17 + 1;
}
LAB_001f78be:
local_1f0 = local_1e0;
/* try { // try from 001f78cf to 001f78dd has its CatchHandler @ 001f79b4 */
std::__cxx11::string::_M_construct
((ulong)&local_1f0,(char)uVar17 - (char)((int)uVar3 >> 0x1f));
std::__detail::__to_chars_10_impl<unsigned_int>
((char *)((long)local_1f0 + (ulong)(uVar3 >> 0x1f)),uVar17,uVar4);
/* try { // try from 001f78fa to 001f7901 has its CatchHandler @ 001f79bc */
std::__ostream_insert<char,std::char_traits<char>>(poVar11,(char *)local_1f0,local_1e8);
if (local_1f0 != local_1e0) {
operator_delete(local_1f0,local_1e0[0] + 1);
}
if (local_210 != (byte *)local_200) {
operator_delete(local_210,local_200[0] + 1);
}
puVar15 = puVar15 + 1;
bVar7 = false;
} while (puVar15 != local_1c8);
}
/* try { // try from 001f7955 to 001f797a has its CatchHandler @ 001f79b0 */
std::__ostream_insert<char,std::char_traits<char>>(local_1a8," ]",2);
plVar5 = local_1d0;
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1b8);
std::ios_base::~ios_base(local_138);
return plVar5;
}
|
|
59,484
|
CLI::RequiredError::Subcommand(unsigned long)
|
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/Error.hpp
|
static RequiredError Subcommand(std::size_t min_subcom) {
if(min_subcom == 1) {
return RequiredError("A subcommand");
}
return {"Requires at least " + std::to_string(min_subcom) + " subcommands", ExitCodes::RequiredError};
}
|
O0
|
cpp
|
CLI::RequiredError::Subcommand(unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0xb8(%rbp)
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x1, -0x10(%rbp)
jne 0x3e852
leaq -0x31(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x9a80
movq -0xc0(%rbp), %rdx
leaq 0x3148c(%rip), %rsi # 0x6fc79
leaq -0x30(%rbp), %rdi
callq 0xbb20
jmp 0x3e7f8
movq -0xb8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3e6d0
jmp 0x3e80a
leaq -0x30(%rbp), %rdi
callq 0x9b90
leaq -0x31(%rbp), %rdi
callq 0x9690
jmp 0x3e923
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3e844
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x9b90
leaq -0x31(%rbp), %rdi
callq 0x9690
jmp 0x3e933
movq -0x10(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x22450
movq -0xc8(%rbp), %rdx
leaq 0x3140f(%rip), %rsi # 0x6fc86
leaq -0x88(%rbp), %rdi
callq 0x1e2a0
jmp 0x3e885
leaq 0x3140d(%rip), %rdx # 0x6fc99
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1e250
jmp 0x3e89e
movq -0xb8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x6a, %edx
callq 0x401c0
jmp 0x3e8b5
leaq -0x68(%rbp), %rdi
callq 0x9b90
leaq -0x88(%rbp), %rdi
callq 0x9b90
leaq -0xa8(%rbp), %rdi
callq 0x9b90
jmp 0x3e923
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3e915
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3e909
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x9b90
leaq -0x88(%rbp), %rdi
callq 0x9b90
leaq -0xa8(%rbp), %rdi
callq 0x9b90
jmp 0x3e933
movq -0xb0(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x9a70
nopl (%rax)
|
_ZN3CLI13RequiredError10SubcommandEm:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_B8], rdi
mov rax, rdi
mov [rbp+var_B0], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
cmp [rbp+var_10], 1
jnz loc_3E852
lea rdi, [rbp+var_31]
mov [rbp+var_C0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rbp+var_C0]
lea rsi, aASubcommand; "A subcommand"
lea rdi, [rbp+var_30]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_3E7F8:
mov rdi, [rbp+var_B8]
lea rsi, [rbp+var_30]
call _ZN3CLI13RequiredErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::RequiredError::RequiredError(std::string)
jmp short $+2
loc_3E80A:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_31]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_3E923
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_3E844
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_3E844:
lea rdi, [rbp+var_31]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_3E933
loc_3E852:
mov rsi, [rbp+var_10]; unsigned __int64
lea rdi, [rbp+var_A8]; this
mov [rbp+var_C8], rdi
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
mov rdx, [rbp+var_C8]
lea rsi, aRequiresAtLeas; "Requires at least "
lea rdi, [rbp+var_88]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_3E885:
lea rdx, aSubcommands_1; " subcommands"
lea rdi, [rbp+var_68]
lea rsi, [rbp+var_88]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_3E89E:
mov rdi, [rbp+var_B8]
lea rsi, [rbp+var_68]
mov edx, 6Ah ; 'j'
call _ZN3CLI13RequiredErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9ExitCodesE; CLI::RequiredError::RequiredError(std::string,CLI::ExitCodes)
jmp short $+2
loc_3E8B5:
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_3E923
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_3E915
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_3E909
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_3E909:
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_3E915:
lea rdi, [rbp+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_3E933
loc_3E923:
mov rax, [rbp+var_B0]
add rsp, 0D0h
pop rbp
retn
loc_3E933:
mov rdi, [rbp+var_40]
call __Unwind_Resume
|
CLI::RequiredError * CLI::RequiredError::Subcommand(
CLI::RequiredError *this,
unsigned long long a2,
long long a3)
{
_BYTE v4[32]; // [rsp+28h] [rbp-A8h] BYREF
_BYTE v5[32]; // [rsp+48h] [rbp-88h] BYREF
_BYTE v6[36]; // [rsp+68h] [rbp-68h] BYREF
char v7; // [rsp+9Fh] [rbp-31h] BYREF
_BYTE v8[32]; // [rsp+A0h] [rbp-30h] BYREF
unsigned long long v9; // [rsp+C0h] [rbp-10h]
CLI::RequiredError *v10; // [rsp+C8h] [rbp-8h]
v10 = this;
v9 = a2;
if ( a2 == 1 )
{
std::allocator<char>::allocator(&v7, 1LL, a3);
std::string::basic_string<std::allocator<char>>((long long)v8, (long long)"A subcommand", (long long)&v7);
CLI::RequiredError::RequiredError((long long)this, (long long)v8);
std::string::~string(v8);
std::allocator<char>::~allocator(&v7);
}
else
{
std::to_string((std::__cxx11 *)v4, v9);
std::operator+<char>((long long)v5, (long long)"Requires at least ", (long long)v4);
std::operator+<char>((long long)v6, (long long)v5, (long long)" subcommands");
CLI::RequiredError::RequiredError(this, v6, 106LL);
std::string::~string(v6);
std::string::~string(v5);
std::string::~string(v4);
}
return this;
}
|
Subcommand:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0xb8],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0xb0],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x10],0x1
JNZ 0x0013e852
LEA RDI,[RBP + -0x31]
MOV qword ptr [RBP + -0xc0],RDI
CALL 0x00109a80
MOV RDX,qword ptr [RBP + -0xc0]
LAB_0013e7e6:
LEA RSI,[0x16fc79]
LEA RDI,[RBP + -0x30]
CALL 0x0010bb20
JMP 0x0013e7f8
LAB_0013e7f8:
MOV RDI,qword ptr [RBP + -0xb8]
LEA RSI,[RBP + -0x30]
CALL 0x0013e6d0
LAB_0013e808:
JMP 0x0013e80a
LAB_0013e80a:
LEA RDI,[RBP + -0x30]
CALL 0x00109b90
LEA RDI,[RBP + -0x31]
CALL 0x00109690
JMP 0x0013e923
LAB_0013e852:
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0xa8]
MOV qword ptr [RBP + -0xc8],RDI
CALL 0x00122450
MOV RDX,qword ptr [RBP + -0xc8]
LAB_0013e870:
LEA RSI,[0x16fc86]
LEA RDI,[RBP + -0x88]
CALL 0x0011e2a0
JMP 0x0013e885
LAB_0013e885:
LEA RDX,[0x16fc99]
LEA RDI,[RBP + -0x68]
LEA RSI,[RBP + -0x88]
CALL 0x0011e250
JMP 0x0013e89e
LAB_0013e89e:
MOV RDI,qword ptr [RBP + -0xb8]
LEA RSI,[RBP + -0x68]
MOV EDX,0x6a
CALL 0x001401c0
LAB_0013e8b3:
JMP 0x0013e8b5
LAB_0013e8b5:
LEA RDI,[RBP + -0x68]
CALL 0x00109b90
LEA RDI,[RBP + -0x88]
CALL 0x00109b90
LEA RDI,[RBP + -0xa8]
CALL 0x00109b90
JMP 0x0013e923
LAB_0013e923:
MOV RAX,qword ptr [RBP + -0xb0]
ADD RSP,0xd0
POP RBP
RET
|
/* CLI::RequiredError::Subcommand(unsigned long) */
RequiredError * __thiscall CLI::RequiredError::Subcommand(RequiredError *this,ulong param_1)
{
__cxx11 local_b0 [32];
string local_90 [32];
string local_70 [55];
allocator local_39;
string local_38 [32];
ulong local_18;
RequiredError *local_10;
local_18 = param_1;
local_10 = this;
if (param_1 == 1) {
std::allocator<char>::allocator();
/* try { // try from 0013e7e6 to 0013e7f5 has its CatchHandler @ 0013e821 */
std::__cxx11::string::string<std::allocator<char>>(local_38,"A subcommand",&local_39);
/* try { // try from 0013e7f8 to 0013e807 has its CatchHandler @ 0013e82f */
RequiredError(this,local_38);
std::__cxx11::string::~string(local_38);
std::allocator<char>::~allocator((allocator<char> *)&local_39);
}
else {
std::__cxx11::to_string(local_b0,param_1);
/* try { // try from 0013e870 to 0013e882 has its CatchHandler @ 0013e8d8 */
std::operator+((char *)local_90,(string *)"Requires at least ");
/* try { // try from 0013e885 to 0013e89b has its CatchHandler @ 0013e8e6 */
std::operator+(local_70,(char *)local_90);
/* try { // try from 0013e89e to 0013e8b2 has its CatchHandler @ 0013e8f4 */
RequiredError(this,local_70,0x6a);
std::__cxx11::string::~string(local_70);
std::__cxx11::string::~string(local_90);
std::__cxx11::string::~string((string *)local_b0);
}
return this;
}
|
|
59,485
|
ma_update_static_record
|
eloqsql/storage/maria/ma_statrec.c
|
my_bool _ma_update_static_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
return (info->s->file_write(info,
record, info->s->base.reclength,
pos,
MYF(MY_NABP)) != 0);
}
|
O3
|
c
|
ma_update_static_record:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
movl $0x1, 0x598(%rdi)
movq (%rdi), %r9
movq 0x398(%r9), %rdx
movl $0x4, %r8d
movq %rcx, %rsi
movq %rax, %rcx
callq *0x6e8(%r9)
testq %rax, %rax
setne %al
popq %rbp
retq
|
_ma_update_static_record:
push rbp
mov rbp, rsp
mov rax, rsi
mov dword ptr [rdi+598h], 1
mov r9, [rdi]
mov rdx, [r9+398h]
mov r8d, 4
mov rsi, rcx
mov rcx, rax
call qword ptr [r9+6E8h]
test rax, rax
setnz al
pop rbp
retn
|
bool ma_update_static_record(_DWORD *a1, long long a2, long long a3, long long a4)
{
a1[358] = 1;
return (*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
a4,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
a2,
4LL) != 0;
}
|
_ma_update_static_record:
PUSH RBP
MOV RBP,RSP
MOV RAX,RSI
MOV dword ptr [RDI + 0x598],0x1
MOV R9,qword ptr [RDI]
MOV RDX,qword ptr [R9 + 0x398]
MOV R8D,0x4
MOV RSI,RCX
MOV RCX,RAX
CALL qword ptr [R9 + 0x6e8]
TEST RAX,RAX
SETNZ AL
POP RBP
RET
|
bool _ma_update_static_record
(long *param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
*(int4 *)(param_1 + 0xb3) = 1;
lVar1 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_4,*(int8 *)(*param_1 + 0x398),param_2,4);
return lVar1 != 0;
}
|
|
59,486
|
fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h
|
static auto get_cached_power(int k) noexcept -> uint128_fallback {
FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
"k is out of range");
static constexpr const uint128_fallback pow10_significands[] = {
#if FMT_USE_FULL_CACHE_DRAGONBOX
{0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
{0x9faacf3df73609b1, 0x77b191618c54e9ad},
{0xc795830d75038c1d, 0xd59df5b9ef6a2418},
{0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
{0x9becce62836ac577, 0x4ee367f9430aec33},
{0xc2e801fb244576d5, 0x229c41f793cda740},
{0xf3a20279ed56d48a, 0x6b43527578c11110},
{0x9845418c345644d6, 0x830a13896b78aaaa},
{0xbe5691ef416bd60c, 0x23cc986bc656d554},
{0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
{0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
{0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
{0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
{0x91376c36d99995be, 0x23100809b9c21fa2},
{0xb58547448ffffb2d, 0xabd40a0c2832a78b},
{0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
{0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
{0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
{0xdd95317f31c7fa1d, 0x40405643d711d584},
{0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
{0xad1c8eab5ee43b66, 0xda3243650005eed0},
{0xd863b256369d4a40, 0x90bed43e40076a83},
{0x873e4f75e2224e68, 0x5a7744a6e804a292},
{0xa90de3535aaae202, 0x711515d0a205cb37},
{0xd3515c2831559a83, 0x0d5a5b44ca873e04},
{0x8412d9991ed58091, 0xe858790afe9486c3},
{0xa5178fff668ae0b6, 0x626e974dbe39a873},
{0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
{0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
{0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
{0xc987434744ac874e, 0xa327ffb266b56221},
{0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
{0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
{0xc4ce17b399107c22, 0xcb550fb4384d21d4},
{0xf6019da07f549b2b, 0x7e2a53a146606a49},
{0x99c102844f94e0fb, 0x2eda7444cbfc426e},
{0xc0314325637a1939, 0xfa911155fefb5309},
{0xf03d93eebc589f88, 0x793555ab7eba27cb},
{0x96267c7535b763b5, 0x4bc1558b2f3458df},
{0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
{0xea9c227723ee8bcb, 0x465e15a979c1cadd},
{0x92a1958a7675175f, 0x0bfacd89ec191eca},
{0xb749faed14125d36, 0xcef980ec671f667c},
{0xe51c79a85916f484, 0x82b7e12780e7401b},
{0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
{0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
{0xdfbdcece67006ac9, 0x67a791e093e1d49b},
{0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
{0xaecc49914078536d, 0x58fae9f773886e19},
{0xda7f5bf590966848, 0xaf39a475506a899f},
{0x888f99797a5e012d, 0x6d8406c952429604},
{0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
{0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
{0x855c3be0a17fcd26, 0x5cf2eea09a550680},
{0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
{0xd0601d8efc57b08b, 0xf13b94daf124da27},
{0x823c12795db6ce57, 0x76c53d08d6b70859},
{0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
{0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
{0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
{0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
{0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
{0xf867241c8cc6d4c0, 0xc30163d203c94b63},
{0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
{0xc21094364dfb5636, 0x985915fc12f542e5},
{0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
{0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
{0xbd8430bd08277231, 0x50c6ff782a838354},
{0xece53cec4a314ebd, 0xa4f8bf5635246429},
{0x940f4613ae5ed136, 0x871b7795e136be9a},
{0xb913179899f68584, 0x28e2557b59846e40},
{0xe757dd7ec07426e5, 0x331aeada2fe589d0},
{0x9096ea6f3848984f, 0x3ff0d2c85def7622},
{0xb4bca50b065abe63, 0x0fed077a756b53aa},
{0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
{0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
{0xb080392cc4349dec, 0xbd8d794d96aacfb4},
{0xdca04777f541c567, 0xecf0d7a0fc5583a1},
{0x89e42caaf9491b60, 0xf41686c49db57245},
{0xac5d37d5b79b6239, 0x311c2875c522ced6},
{0xd77485cb25823ac7, 0x7d633293366b828c},
{0x86a8d39ef77164bc, 0xae5dff9c02033198},
{0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
{0xd267caa862a12d66, 0xd072df63c324fd7c},
{0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
{0xa46116538d0deb78, 0x52d9be85f074e609},
{0xcd795be870516656, 0x67902e276c921f8c},
{0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
{0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
{0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
{0xfad2a4b13d1b5d6c, 0x796b805720085f82},
{0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
{0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
{0xf4f1b4d515acb93b, 0xee92fb5515482d45},
{0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
{0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
{0xef340a98172aace4, 0x86fb897116c87c35},
{0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
{0xbae0a846d2195712, 0x8974836059cca10a},
{0xe998d258869facd7, 0x2bd1a438703fc94c},
{0x91ff83775423cc06, 0x7b6306a34627ddd0},
{0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
{0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
{0x8e938662882af53e, 0x547eb47b7282ee9d},
{0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
{0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
{0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
{0xae0b158b4738705e, 0x9624ab50b148d446},
{0xd98ddaee19068c76, 0x3badd624dd9b0958},
{0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
{0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
{0xd47487cc8470652b, 0x7647c32000696720},
{0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
{0xa5fb0a17c777cf09, 0xf468107100525891},
{0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
{0x81ac1fe293d599bf, 0xc6f14cd848405531},
{0xa21727db38cb002f, 0xb8ada00e5a506a7d},
{0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
{0xfd442e4688bd304a, 0x908f4a166d1da664},
{0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
{0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
{0xf7549530e188c128, 0xd12bee59e68ef47d},
{0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
{0xc13a148e3032d6e7, 0xe36a52363c1faf02},
{0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
{0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
{0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
{0xebdf661791d60f56, 0x111b495b3464ad22},
{0x936b9fcebb25c995, 0xcab10dd900beec35},
{0xb84687c269ef3bfb, 0x3d5d514f40eea743},
{0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
{0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
{0xb3f4e093db73a093, 0x59ed216765690f57},
{0xe0f218b8d25088b8, 0x306869c13ec3532d},
{0x8c974f7383725573, 0x1e414218c73a13fc},
{0xafbd2350644eeacf, 0xe5d1929ef90898fb},
{0xdbac6c247d62a583, 0xdf45f746b74abf3a},
{0x894bc396ce5da772, 0x6b8bba8c328eb784},
{0xab9eb47c81f5114f, 0x066ea92f3f326565},
{0xd686619ba27255a2, 0xc80a537b0efefebe},
{0x8613fd0145877585, 0xbd06742ce95f5f37},
{0xa798fc4196e952e7, 0x2c48113823b73705},
{0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
{0x82ef85133de648c4, 0x9a984d73dbe722fc},
{0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
{0xcc963fee10b7d1b3, 0x318df905079926a9},
{0xffbbcfe994e5c61f, 0xfdf17746497f7053},
{0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
{0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
{0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
{0x9c1661a651213e2d, 0x06bea10ca65c084f},
{0xc31bfa0fe5698db8, 0x486e494fcff30a63},
{0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
{0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
{0xbe89523386091465, 0xf6bbb397f1135824},
{0xee2ba6c0678b597f, 0x746aa07ded582e2d},
{0x94db483840b717ef, 0xa8c2a44eb4571cdd},
{0xba121a4650e4ddeb, 0x92f34d62616ce414},
{0xe896a0d7e51e1566, 0x77b020baf9c81d18},
{0x915e2486ef32cd60, 0x0ace1474dc1d122f},
{0xb5b5ada8aaff80b8, 0x0d819992132456bb},
{0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
{0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
{0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
{0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
{0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
{0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
{0xd89d64d57a607744, 0xe871c7bf077ba8b8},
{0x87625f056c7c4a8b, 0x11471cd764ad4973},
{0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
{0xd389b47879823479, 0x4aff1d108d4ec2c4},
{0x843610cb4bf160cb, 0xcedf722a585139bb},
{0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
{0xce947a3da6a9273e, 0x733d226229feea33},
{0x811ccc668829b887, 0x0806357d5a3f5260},
{0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
{0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
{0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
{0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
{0xc5029163f384a931, 0x0a9e795e65d4df12},
{0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
{0x99ea0196163fa42e, 0x504bced1bf8e4e46},
{0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
{0xf07da27a82c37088, 0x5d767327bb4e5a4d},
{0x964e858c91ba2655, 0x3a6a07f8d510f870},
{0xbbe226efb628afea, 0x890489f70a55368c},
{0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
{0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
{0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
{0xe55990879ddcaabd, 0xcc420a6a101d0516},
{0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
{0xb32df8e9f3546564, 0x47939822dc96abfa},
{0xdff9772470297ebd, 0x59787e2b93bc56f8},
{0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
{0xaefae51477a06b03, 0xede622920b6b23f2},
{0xdab99e59958885c4, 0xe95fab368e45ecee},
{0x88b402f7fd75539b, 0x11dbcb0218ebb415},
{0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
{0xd59944a37c0752a2, 0x4be76d3346f04960},
{0x857fcae62d8493a5, 0x6f70a4400c562ddc},
{0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
{0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
{0x825ecc24c873782f, 0x8ed400668c0c28c9},
{0xa2f67f2dfa90563b, 0x728900802f0f32fb},
{0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
{0xfea126b7d78186bc, 0xe2f610c84987bfa9},
{0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
{0xc6ede63fa05d3143, 0x91503d1c79720dbc},
{0xf8a95fcf88747d94, 0x75a44c6397ce912b},
{0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
{0xc24452da229b021b, 0xfbe85badce996169},
{0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
{0x97c560ba6b0919a5, 0xdccd879fc967d41b},
{0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
{0xed246723473e3813, 0x290123e9aab23b69},
{0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
{0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
{0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
{0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
{0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
{0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
{0x8d590723948a535f, 0x579c487e5a38ad0f},
{0xb0af48ec79ace837, 0x2d835a9df0c6d852},
{0xdcdb1b2798182244, 0xf8e431456cf88e66},
{0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
{0xac8b2d36eed2dac5, 0xe272467e3d222f40},
{0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
{0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
{0xa87fea27a539e9a5, 0x3f2398d747b36225},
{0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
{0x83a3eeeef9153e89, 0x1953cf68300424ad},
{0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
{0xcdb02555653131b6, 0x3792f412cb06794e},
{0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
{0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
{0xc8de047564d20a8b, 0xf245825a5a445276},
{0xfb158592be068d2e, 0xeed6e2f0f0d56713},
{0x9ced737bb6c4183d, 0x55464dd69685606c},
{0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
{0xf53304714d9265df, 0xd53dd99f4b3066a9},
{0x993fe2c6d07b7fab, 0xe546a8038efe402a},
{0xbf8fdb78849a5f96, 0xde98520472bdd034},
{0xef73d256a5c0f77c, 0x963e66858f6d4441},
{0x95a8637627989aad, 0xdde7001379a44aa9},
{0xbb127c53b17ec159, 0x5560c018580d5d53},
{0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
{0x9226712162ab070d, 0xcab3961304ca70e9},
{0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
{0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
{0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
{0xb267ed1940f1c61c, 0x55f038b237591ed4},
{0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
{0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
{0xae397d8aa96c1b77, 0xabec975e0a0d081b},
{0xd9c7dced53c72255, 0x96e7bd358c904a22},
{0x881cea14545c7575, 0x7e50d64177da2e55},
{0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
{0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
{0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
{0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
{0xcfb11ead453994ba, 0x67de18eda5814af3},
{0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
{0xa2425ff75e14fc31, 0xa1258379a94d028e},
{0xcad2f7f5359a3b3e, 0x096ee45813a04331},
{0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
{0x9e74d1b791e07e48, 0x775ea264cf55347e},
{0xc612062576589dda, 0x95364afe032a819e},
{0xf79687aed3eec551, 0x3a83ddbd83f52205},
{0x9abe14cd44753b52, 0xc4926a9672793543},
{0xc16d9a0095928a27, 0x75b7053c0f178294},
{0xf1c90080baf72cb1, 0x5324c68b12dd6339},
{0x971da05074da7bee, 0xd3f6fc16ebca5e04},
{0xbce5086492111aea, 0x88f4bb1ca6bcf585},
{0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
{0x9392ee8e921d5d07, 0x3aff322e62439fd0},
{0xb877aa3236a4b449, 0x09befeb9fad487c3},
{0xe69594bec44de15b, 0x4c2ebe687989a9b4},
{0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
{0xb424dc35095cd80f, 0x538484c19ef38c95},
{0xe12e13424bb40e13, 0x2865a5f206b06fba},
{0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
{0xafebff0bcb24aafe, 0xf78f69a51539d749},
{0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
{0x89705f4136b4a597, 0x31680a88f8953031},
{0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
{0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
{0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
{0xa7c5ac471b478423, 0x0fcf80dc33721d54},
{0xd1b71758e219652b, 0xd3c36113404ea4a9},
{0x83126e978d4fdf3b, 0x645a1cac083126ea},
{0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
{0xcccccccccccccccc, 0xcccccccccccccccd},
{0x8000000000000000, 0x0000000000000000},
{0xa000000000000000, 0x0000000000000000},
{0xc800000000000000, 0x0000000000000000},
{0xfa00000000000000, 0x0000000000000000},
{0x9c40000000000000, 0x0000000000000000},
{0xc350000000000000, 0x0000000000000000},
{0xf424000000000000, 0x0000000000000000},
{0x9896800000000000, 0x0000000000000000},
{0xbebc200000000000, 0x0000000000000000},
{0xee6b280000000000, 0x0000000000000000},
{0x9502f90000000000, 0x0000000000000000},
{0xba43b74000000000, 0x0000000000000000},
{0xe8d4a51000000000, 0x0000000000000000},
{0x9184e72a00000000, 0x0000000000000000},
{0xb5e620f480000000, 0x0000000000000000},
{0xe35fa931a0000000, 0x0000000000000000},
{0x8e1bc9bf04000000, 0x0000000000000000},
{0xb1a2bc2ec5000000, 0x0000000000000000},
{0xde0b6b3a76400000, 0x0000000000000000},
{0x8ac7230489e80000, 0x0000000000000000},
{0xad78ebc5ac620000, 0x0000000000000000},
{0xd8d726b7177a8000, 0x0000000000000000},
{0x878678326eac9000, 0x0000000000000000},
{0xa968163f0a57b400, 0x0000000000000000},
{0xd3c21bcecceda100, 0x0000000000000000},
{0x84595161401484a0, 0x0000000000000000},
{0xa56fa5b99019a5c8, 0x0000000000000000},
{0xcecb8f27f4200f3a, 0x0000000000000000},
{0x813f3978f8940984, 0x4000000000000000},
{0xa18f07d736b90be5, 0x5000000000000000},
{0xc9f2c9cd04674ede, 0xa400000000000000},
{0xfc6f7c4045812296, 0x4d00000000000000},
{0x9dc5ada82b70b59d, 0xf020000000000000},
{0xc5371912364ce305, 0x6c28000000000000},
{0xf684df56c3e01bc6, 0xc732000000000000},
{0x9a130b963a6c115c, 0x3c7f400000000000},
{0xc097ce7bc90715b3, 0x4b9f100000000000},
{0xf0bdc21abb48db20, 0x1e86d40000000000},
{0x96769950b50d88f4, 0x1314448000000000},
{0xbc143fa4e250eb31, 0x17d955a000000000},
{0xeb194f8e1ae525fd, 0x5dcfab0800000000},
{0x92efd1b8d0cf37be, 0x5aa1cae500000000},
{0xb7abc627050305ad, 0xf14a3d9e40000000},
{0xe596b7b0c643c719, 0x6d9ccd05d0000000},
{0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
{0xb35dbf821ae4f38b, 0xdda2802c8a800000},
{0xe0352f62a19e306e, 0xd50b2037ad200000},
{0x8c213d9da502de45, 0x4526f422cc340000},
{0xaf298d050e4395d6, 0x9670b12b7f410000},
{0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
{0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
{0xab0e93b6efee0053, 0x8eea0d047a457a00},
{0xd5d238a4abe98068, 0x72a4904598d6d880},
{0x85a36366eb71f041, 0x47a6da2b7f864750},
{0xa70c3c40a64e6c51, 0x999090b65f67d924},
{0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
{0x82818f1281ed449f, 0xbff8f10e7a8921a5},
{0xa321f2d7226895c7, 0xaff72d52192b6a0e},
{0xcbea6f8ceb02bb39, 0x9bf4f8a69f764491},
{0xfee50b7025c36a08, 0x02f236d04753d5b5},
{0x9f4f2726179a2245, 0x01d762422c946591},
{0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef6},
{0xf8ebad2b84e0d58b, 0xd2e0898765a7deb3},
{0x9b934c3b330c8577, 0x63cc55f49f88eb30},
{0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fc},
{0xf316271c7fc3908a, 0x8bef464e3945ef7b},
{0x97edd871cfda3a56, 0x97758bf0e3cbb5ad},
{0xbde94e8e43d0c8ec, 0x3d52eeed1cbea318},
{0xed63a231d4c4fb27, 0x4ca7aaa863ee4bde},
{0x945e455f24fb1cf8, 0x8fe8caa93e74ef6b},
{0xb975d6b6ee39e436, 0xb3e2fd538e122b45},
{0xe7d34c64a9c85d44, 0x60dbbca87196b617},
{0x90e40fbeea1d3a4a, 0xbc8955e946fe31ce},
{0xb51d13aea4a488dd, 0x6babab6398bdbe42},
{0xe264589a4dcdab14, 0xc696963c7eed2dd2},
{0x8d7eb76070a08aec, 0xfc1e1de5cf543ca3},
{0xb0de65388cc8ada8, 0x3b25a55f43294bcc},
{0xdd15fe86affad912, 0x49ef0eb713f39ebf},
{0x8a2dbf142dfcc7ab, 0x6e3569326c784338},
{0xacb92ed9397bf996, 0x49c2c37f07965405},
{0xd7e77a8f87daf7fb, 0xdc33745ec97be907},
{0x86f0ac99b4e8dafd, 0x69a028bb3ded71a4},
{0xa8acd7c0222311bc, 0xc40832ea0d68ce0d},
{0xd2d80db02aabd62b, 0xf50a3fa490c30191},
{0x83c7088e1aab65db, 0x792667c6da79e0fb},
{0xa4b8cab1a1563f52, 0x577001b891185939},
{0xcde6fd5e09abcf26, 0xed4c0226b55e6f87},
{0x80b05e5ac60b6178, 0x544f8158315b05b5},
{0xa0dc75f1778e39d6, 0x696361ae3db1c722},
{0xc913936dd571c84c, 0x03bc3a19cd1e38ea},
{0xfb5878494ace3a5f, 0x04ab48a04065c724},
{0x9d174b2dcec0e47b, 0x62eb0d64283f9c77},
{0xc45d1df942711d9a, 0x3ba5d0bd324f8395},
{0xf5746577930d6500, 0xca8f44ec7ee3647a},
{0x9968bf6abbe85f20, 0x7e998b13cf4e1ecc},
{0xbfc2ef456ae276e8, 0x9e3fedd8c321a67f},
{0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101f},
{0x95d04aee3b80ece5, 0xbba1f1d158724a13},
{0xbb445da9ca61281f, 0x2a8a6e45ae8edc98},
{0xea1575143cf97226, 0xf52d09d71a3293be},
{0x924d692ca61be758, 0x593c2626705f9c57},
{0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836d},
{0xe498f455c38b997a, 0x0b6dfb9c0f956448},
{0x8edf98b59a373fec, 0x4724bd4189bd5ead},
{0xb2977ee300c50fe7, 0x58edec91ec2cb658},
{0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ee},
{0x8b865b215899f46c, 0xbd79e0d20082ee75},
{0xae67f1e9aec07187, 0xecd8590680a3aa12},
{0xda01ee641a708de9, 0xe80e6f4820cc9496},
{0x884134fe908658b2, 0x3109058d147fdcde},
{0xaa51823e34a7eede, 0xbd4b46f0599fd416},
{0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91b},
{0x850fadc09923329e, 0x03e2cf6bc604ddb1},
{0xa6539930bf6bff45, 0x84db8346b786151d},
{0xcfe87f7cef46ff16, 0xe612641865679a64},
{0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07f},
{0xa26da3999aef7749, 0xe3be5e330f38f09e},
{0xcb090c8001ab551c, 0x5cadf5bfd3072cc6},
{0xfdcb4fa002162a63, 0x73d9732fc7c8f7f7},
{0x9e9f11c4014dda7e, 0x2867e7fddcdd9afb},
{0xc646d63501a1511d, 0xb281e1fd541501b9},
{0xf7d88bc24209a565, 0x1f225a7ca91a4227},
{0x9ae757596946075f, 0x3375788de9b06959},
{0xc1a12d2fc3978937, 0x0052d6b1641c83af},
{0xf209787bb47d6b84, 0xc0678c5dbd23a49b},
{0x9745eb4d50ce6332, 0xf840b7ba963646e1},
{0xbd176620a501fbff, 0xb650e5a93bc3d899},
{0xec5d3fa8ce427aff, 0xa3e51f138ab4cebf},
{0x93ba47c980e98cdf, 0xc66f336c36b10138},
{0xb8a8d9bbe123f017, 0xb80b0047445d4185},
{0xe6d3102ad96cec1d, 0xa60dc059157491e6},
{0x9043ea1ac7e41392, 0x87c89837ad68db30},
{0xb454e4a179dd1877, 0x29babe4598c311fc},
{0xe16a1dc9d8545e94, 0xf4296dd6fef3d67b},
{0x8ce2529e2734bb1d, 0x1899e4a65f58660d},
{0xb01ae745b101e9e4, 0x5ec05dcff72e7f90},
{0xdc21a1171d42645d, 0x76707543f4fa1f74},
{0x899504ae72497eba, 0x6a06494a791c53a9},
{0xabfa45da0edbde69, 0x0487db9d17636893},
{0xd6f8d7509292d603, 0x45a9d2845d3c42b7},
{0x865b86925b9bc5c2, 0x0b8a2392ba45a9b3},
{0xa7f26836f282b732, 0x8e6cac7768d7141f},
{0xd1ef0244af2364ff, 0x3207d795430cd927},
{0x8335616aed761f1f, 0x7f44e6bd49e807b9},
{0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a7},
{0xcd036837130890a1, 0x36dba887c37a8c10},
{0x802221226be55a64, 0xc2494954da2c978a},
{0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6d},
{0xc83553c5c8965d3d, 0x6f92829494e5acc8},
{0xfa42a8b73abbf48c, 0xcb772339ba1f17fa},
{0x9c69a97284b578d7, 0xff2a760414536efc},
{0xc38413cf25e2d70d, 0xfef5138519684abb},
{0xf46518c2ef5b8cd1, 0x7eb258665fc25d6a},
{0x98bf2f79d5993802, 0xef2f773ffbd97a62},
{0xbeeefb584aff8603, 0xaafb550ffacfd8fb},
{0xeeaaba2e5dbf6784, 0x95ba2a53f983cf39},
{0x952ab45cfa97a0b2, 0xdd945a747bf26184},
{0xba756174393d88df, 0x94f971119aeef9e5},
{0xe912b9d1478ceb17, 0x7a37cd5601aab85e},
{0x91abb422ccb812ee, 0xac62e055c10ab33b},
{0xb616a12b7fe617aa, 0x577b986b314d600a},
{0xe39c49765fdf9d94, 0xed5a7e85fda0b80c},
{0x8e41ade9fbebc27d, 0x14588f13be847308},
{0xb1d219647ae6b31c, 0x596eb2d8ae258fc9},
{0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bc},
{0x8aec23d680043bee, 0x25de7bb9480d5855},
{0xada72ccc20054ae9, 0xaf561aa79a10ae6b},
{0xd910f7ff28069da4, 0x1b2ba1518094da05},
{0x87aa9aff79042286, 0x90fb44d2f05d0843},
{0xa99541bf57452b28, 0x353a1607ac744a54},
{0xd3fa922f2d1675f2, 0x42889b8997915ce9},
{0x847c9b5d7c2e09b7, 0x69956135febada12},
{0xa59bc234db398c25, 0x43fab9837e699096},
{0xcf02b2c21207ef2e, 0x94f967e45e03f4bc},
{0x8161afb94b44f57d, 0x1d1be0eebac278f6},
{0xa1ba1ba79e1632dc, 0x6462d92a69731733},
{0xca28a291859bbf93, 0x7d7b8f7503cfdcff},
{0xfcb2cb35e702af78, 0x5cda735244c3d43f},
{0x9defbf01b061adab, 0x3a0888136afa64a8},
{0xc56baec21c7a1916, 0x088aaa1845b8fdd1},
{0xf6c69a72a3989f5b, 0x8aad549e57273d46},
{0x9a3c2087a63f6399, 0x36ac54e2f678864c},
{0xc0cb28a98fcf3c7f, 0x84576a1bb416a7de},
{0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d6},
{0x969eb7c47859e743, 0x9f644ae5a4b1b326},
{0xbc4665b596706114, 0x873d5d9f0dde1fef},
{0xeb57ff22fc0c7959, 0xa90cb506d155a7eb},
{0x9316ff75dd87cbd8, 0x09a7f12442d588f3},
{0xb7dcbf5354e9bece, 0x0c11ed6d538aeb30},
{0xe5d3ef282a242e81, 0x8f1668c8a86da5fb},
{0x8fa475791a569d10, 0xf96e017d694487bd},
{0xb38d92d760ec4455, 0x37c981dcc395a9ad},
{0xe070f78d3927556a, 0x85bbe253f47b1418},
{0x8c469ab843b89562, 0x93956d7478ccec8f},
{0xaf58416654a6babb, 0x387ac8d1970027b3},
{0xdb2e51bfe9d0696a, 0x06997b05fcc0319f},
{0x88fcf317f22241e2, 0x441fece3bdf81f04},
{0xab3c2fddeeaad25a, 0xd527e81cad7626c4},
{0xd60b3bd56a5586f1, 0x8a71e223d8d3b075},
{0x85c7056562757456, 0xf6872d5667844e4a},
{0xa738c6bebb12d16c, 0xb428f8ac016561dc},
{0xd106f86e69d785c7, 0xe13336d701beba53},
{0x82a45b450226b39c, 0xecc0024661173474},
{0xa34d721642b06084, 0x27f002d7f95d0191},
{0xcc20ce9bd35c78a5, 0x31ec038df7b441f5},
{0xff290242c83396ce, 0x7e67047175a15272},
{0x9f79a169bd203e41, 0x0f0062c6e984d387},
{0xc75809c42c684dd1, 0x52c07b78a3e60869},
{0xf92e0c3537826145, 0xa7709a56ccdf8a83},
{0x9bbcc7a142b17ccb, 0x88a66076400bb692},
{0xc2abf989935ddbfe, 0x6acff893d00ea436},
{0xf356f7ebf83552fe, 0x0583f6b8c4124d44},
{0x98165af37b2153de, 0xc3727a337a8b704b},
{0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5d},
{0xeda2ee1c7064130c, 0x1162def06f79df74},
{0x9485d4d1c63e8be7, 0x8addcb5645ac2ba9},
{0xb9a74a0637ce2ee1, 0x6d953e2bd7173693},
{0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0438},
{0x910ab1d4db9914a0, 0x1d9c9892400a22a3},
{0xb54d5e4a127f59c8, 0x2503beb6d00cab4c},
{0xe2a0b5dc971f303a, 0x2e44ae64840fd61e},
{0x8da471a9de737e24, 0x5ceaecfed289e5d3},
{0xb10d8e1456105dad, 0x7425a83e872c5f48},
{0xdd50f1996b947518, 0xd12f124e28f7771a},
{0x8a5296ffe33cc92f, 0x82bd6b70d99aaa70},
{0xace73cbfdc0bfb7b, 0x636cc64d1001550c},
{0xd8210befd30efa5a, 0x3c47f7e05401aa4f},
{0x8714a775e3e95c78, 0x65acfaec34810a72},
{0xa8d9d1535ce3b396, 0x7f1839a741a14d0e},
{0xd31045a8341ca07c, 0x1ede48111209a051},
{0x83ea2b892091e44d, 0x934aed0aab460433},
{0xa4e4b66b68b65d60, 0xf81da84d56178540},
{0xce1de40642e3f4b9, 0x36251260ab9d668f},
{0x80d2ae83e9ce78f3, 0xc1d72b7c6b42601a},
{0xa1075a24e4421730, 0xb24cf65b8612f820},
{0xc94930ae1d529cfc, 0xdee033f26797b628},
{0xfb9b7cd9a4a7443c, 0x169840ef017da3b2},
{0x9d412e0806e88aa5, 0x8e1f289560ee864f},
{0xc491798a08a2ad4e, 0xf1a6f2bab92a27e3},
{0xf5b5d7ec8acb58a2, 0xae10af696774b1dc},
{0x9991a6f3d6bf1765, 0xacca6da1e0a8ef2a},
{0xbff610b0cc6edd3f, 0x17fd090a58d32af4},
{0xeff394dcff8a948e, 0xddfc4b4cef07f5b1},
{0x95f83d0a1fb69cd9, 0x4abdaf101564f98f},
{0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f2},
{0xea53df5fd18d5513, 0x84c86189216dc5ee},
{0x92746b9be2f8552c, 0x32fd3cf5b4e49bb5},
{0xb7118682dbb66a77, 0x3fbc8c33221dc2a2},
{0xe4d5e82392a40515, 0x0fabaf3feaa5334b},
{0x8f05b1163ba6832d, 0x29cb4d87f2a7400f},
{0xb2c71d5bca9023f8, 0x743e20e9ef511013},
{0xdf78e4b2bd342cf6, 0x914da9246b255417},
{0x8bab8eefb6409c1a, 0x1ad089b6c2f7548f},
{0xae9672aba3d0c320, 0xa184ac2473b529b2},
{0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741f},
{0x8865899617fb1871, 0x7e2fa67c7a658893},
{0xaa7eebfb9df9de8d, 0xddbb901b98feeab8},
{0xd51ea6fa85785631, 0x552a74227f3ea566},
{0x8533285c936b35de, 0xd53a88958f872760},
{0xa67ff273b8460356, 0x8a892abaf368f138},
{0xd01fef10a657842c, 0x2d2b7569b0432d86},
{0x8213f56a67f6b29b, 0x9c3b29620e29fc74},
{0xa298f2c501f45f42, 0x8349f3ba91b47b90},
{0xcb3f2f7642717713, 0x241c70a936219a74},
{0xfe0efb53d30dd4d7, 0xed238cd383aa0111},
{0x9ec95d1463e8a506, 0xf4363804324a40ab},
{0xc67bb4597ce2ce48, 0xb143c6053edcd0d6},
{0xf81aa16fdc1b81da, 0xdd94b7868e94050b},
{0x9b10a4e5e9913128, 0xca7cf2b4191c8327},
{0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f1},
{0xf24a01a73cf2dccf, 0xbc633b39673c8ced},
{0x976e41088617ca01, 0xd5be0503e085d814},
{0xbd49d14aa79dbc82, 0x4b2d8644d8a74e19},
{0xec9c459d51852ba2, 0xddf8e7d60ed1219f},
{0x93e1ab8252f33b45, 0xcabb90e5c942b504},
{0xb8da1662e7b00a17, 0x3d6a751f3b936244},
{0xe7109bfba19c0c9d, 0x0cc512670a783ad5},
{0x906a617d450187e2, 0x27fb2b80668b24c6},
{0xb484f9dc9641e9da, 0xb1f9f660802dedf7},
{0xe1a63853bbd26451, 0x5e7873f8a0396974},
{0x8d07e33455637eb2, 0xdb0b487b6423e1e9},
{0xb049dc016abc5e5f, 0x91ce1a9a3d2cda63},
{0xdc5c5301c56b75f7, 0x7641a140cc7810fc},
{0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9e},
{0xac2820d9623bf429, 0x546345fa9fbdcd45},
{0xd732290fbacaf133, 0xa97c177947ad4096},
{0x867f59a9d4bed6c0, 0x49ed8eabcccc485e},
{0xa81f301449ee8c70, 0x5c68f256bfff5a75},
{0xd226fc195c6a2f8c, 0x73832eec6fff3112},
{0x83585d8fd9c25db7, 0xc831fd53c5ff7eac},
{0xa42e74f3d032f525, 0xba3e7ca8b77f5e56},
{0xcd3a1230c43fb26f, 0x28ce1bd2e55f35ec},
{0x80444b5e7aa7cf85, 0x7980d163cf5b81b4},
{0xa0555e361951c366, 0xd7e105bcc3326220},
{0xc86ab5c39fa63440, 0x8dd9472bf3fefaa8},
{0xfa856334878fc150, 0xb14f98f6f0feb952},
{0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d4},
{0xc3b8358109e84f07, 0x0a862f80ec4700c9},
{0xf4a642e14c6262c8, 0xcd27bb612758c0fb},
{0x98e7e9cccfbd7dbd, 0x8038d51cb897789d},
{0xbf21e44003acdd2c, 0xe0470a63e6bd56c4},
{0xeeea5d5004981478, 0x1858ccfce06cac75},
{0x95527a5202df0ccb, 0x0f37801e0c43ebc9},
{0xbaa718e68396cffd, 0xd30560258f54e6bb},
{0xe950df20247c83fd, 0x47c6b82ef32a206a},
{0x91d28b7416cdd27e, 0x4cdc331d57fa5442},
{0xb6472e511c81471d, 0xe0133fe4adf8e953},
{0xe3d8f9e563a198e5, 0x58180fddd97723a7},
{0x8e679c2f5e44ff8f, 0x570f09eaa7ea7649},
{0xb201833b35d63f73, 0x2cd2cc6551e513db},
{0xde81e40a034bcf4f, 0xf8077f7ea65e58d2},
{0x8b112e86420f6191, 0xfb04afaf27faf783},
{0xadd57a27d29339f6, 0x79c5db9af1f9b564},
{0xd94ad8b1c7380874, 0x18375281ae7822bd},
{0x87cec76f1c830548, 0x8f2293910d0b15b6},
{0xa9c2794ae3a3c69a, 0xb2eb3875504ddb23},
{0xd433179d9c8cb841, 0x5fa60692a46151ec},
{0x849feec281d7f328, 0xdbc7c41ba6bcd334},
{0xa5c7ea73224deff3, 0x12b9b522906c0801},
{0xcf39e50feae16bef, 0xd768226b34870a01},
{0x81842f29f2cce375, 0xe6a1158300d46641},
{0xa1e53af46f801c53, 0x60495ae3c1097fd1},
{0xca5e89b18b602368, 0x385bb19cb14bdfc5},
{0xfcf62c1dee382c42, 0x46729e03dd9ed7b6},
{0x9e19db92b4e31ba9, 0x6c07a2c26a8346d2},
{0xc5a05277621be293, 0xc7098b7305241886},
{0xf70867153aa2db38, 0xb8cbee4fc66d1ea8},
{0x9a65406d44a5c903, 0x737f74f1dc043329},
{0xc0fe908895cf3b44, 0x505f522e53053ff3},
{0xf13e34aabb430a15, 0x647726b9e7c68ff0},
{0x96c6e0eab509e64d, 0x5eca783430dc19f6},
{0xbc789925624c5fe0, 0xb67d16413d132073},
{0xeb96bf6ebadf77d8, 0xe41c5bd18c57e890},
{0x933e37a534cbaae7, 0x8e91b962f7b6f15a},
{0xb80dc58e81fe95a1, 0x723627bbb5a4adb1},
{0xe61136f2227e3b09, 0xcec3b1aaa30dd91d},
{0x8fcac257558ee4e6, 0x213a4f0aa5e8a7b2},
{0xb3bd72ed2af29e1f, 0xa988e2cd4f62d19e},
{0xe0accfa875af45a7, 0x93eb1b80a33b8606},
{0x8c6c01c9498d8b88, 0xbc72f130660533c4},
{0xaf87023b9bf0ee6a, 0xeb8fad7c7f8680b5},
{0xdb68c2ca82ed2a05, 0xa67398db9f6820e2},
#else
{0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
{0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
{0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
{0x86a8d39ef77164bc, 0xae5dff9c02033198},
{0xd98ddaee19068c76, 0x3badd624dd9b0958},
{0xafbd2350644eeacf, 0xe5d1929ef90898fb},
{0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
{0xe55990879ddcaabd, 0xcc420a6a101d0516},
{0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
{0x95a8637627989aad, 0xdde7001379a44aa9},
{0xf1c90080baf72cb1, 0x5324c68b12dd6339},
{0xc350000000000000, 0x0000000000000000},
{0x9dc5ada82b70b59d, 0xf020000000000000},
{0xfee50b7025c36a08, 0x02f236d04753d5b5},
{0xcde6fd5e09abcf26, 0xed4c0226b55e6f87},
{0xa6539930bf6bff45, 0x84db8346b786151d},
{0x865b86925b9bc5c2, 0x0b8a2392ba45a9b3},
{0xd910f7ff28069da4, 0x1b2ba1518094da05},
{0xaf58416654a6babb, 0x387ac8d1970027b3},
{0x8da471a9de737e24, 0x5ceaecfed289e5d3},
{0xe4d5e82392a40515, 0x0fabaf3feaa5334b},
{0xb8da1662e7b00a17, 0x3d6a751f3b936244},
{0x95527a5202df0ccb, 0x0f37801e0c43ebc9},
{0xf13e34aabb430a15, 0x647726b9e7c68ff0}
#endif
};
#if FMT_USE_FULL_CACHE_DRAGONBOX
return pow10_significands[k - float_info<double>::min_k];
#else
static constexpr const uint64_t powers_of_5_64[] = {
0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
static const int compression_ratio = 27;
// Compute base index.
int cache_index = (k - float_info<double>::min_k) / compression_ratio;
int kb = cache_index * compression_ratio + float_info<double>::min_k;
int offset = k - kb;
// Get base cache.
uint128_fallback base_cache = pow10_significands[cache_index];
if (offset == 0) return base_cache;
// Compute the required amount of bit-shift.
int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
// Try to recover the real cache.
uint64_t pow5 = powers_of_5_64[offset];
uint128_fallback recovered_cache = umul128(base_cache.high(), pow5);
uint128_fallback middle_low = umul128(base_cache.low(), pow5);
recovered_cache += middle_low.high();
uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
recovered_cache =
uint128_fallback{(recovered_cache.low() >> alpha) | high_to_middle,
((middle_low.low() >> alpha) | middle_to_low)};
FMT_ASSERT(recovered_cache.low() + 1 != 0, "");
return {recovered_cache.high(), recovered_cache.low() + 1};
#endif
}
|
O0
|
c
|
fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int):
subq $0xc8, %rsp
movl %edi, 0xb4(%rsp)
xorl %eax, %eax
cmpl $0xfffffedc, 0xb4(%rsp) # imm = 0xFFFFFEDC
movb %al, 0x3e(%rsp)
jl 0x88733
cmpl $0x155, 0xb4(%rsp) # imm = 0x155
setle %al
movb %al, 0x3e(%rsp)
movb 0x3e(%rsp), %al
andb $0x1, %al
movb %al, 0xb3(%rsp)
leaq 0x87865(%rip), %rsi # 0x10ffac
leaq 0xb3(%rsp), %rdi
callq 0x8c0b0
jmp 0x88756
movl 0xb4(%rsp), %eax
subl $0xfffffedc, %eax # imm = 0xFFFFFEDC
movl $0x1b, %ecx
cltd
idivl %ecx
movl %eax, 0xac(%rsp)
imull $0x1b, 0xac(%rsp), %eax
addl $0xfffffedc, %eax # imm = 0xFFFFFEDC
movl %eax, 0xa8(%rsp)
movl 0xb4(%rsp), %eax
subl 0xa8(%rsp), %eax
movl %eax, 0xa4(%rsp)
movslq 0xac(%rsp), %rcx
leaq 0x88197(%rip), %rax # 0x110940
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
cmpl $0x0, 0xa4(%rsp)
jne 0x887f6
movq 0x90(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x889ec
movl 0xa8(%rsp), %edi
addl 0xa4(%rsp), %edi
callq 0x8a270
movl %eax, 0x38(%rsp)
movl 0xa8(%rsp), %edi
callq 0x8a270
movl %eax, %ecx
movl 0x38(%rsp), %eax
subl %ecx, %eax
subl 0xa4(%rsp), %eax
movl %eax, 0x8c(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x8c(%rsp)
movb %al, 0x3d(%rsp)
jle 0x8884e
cmpl $0x40, 0x8c(%rsp)
setl %al
movb %al, 0x3d(%rsp)
movb 0x3d(%rsp), %al
andb $0x1, %al
movb %al, 0x8b(%rsp)
leaq 0x8775c(%rip), %rsi # 0x10ffbe
leaq 0x8b(%rsp), %rdi
callq 0x8c0c0
jmp 0x88871
movslq 0xa4(%rsp), %rcx
leaq 0x88240(%rip), %rax # 0x110ac0
movq (%rax,%rcx,8), %rax
movq %rax, 0x80(%rsp)
leaq 0x90(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x8c120
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0x8c0d0
movq 0x18(%rsp), %rdi
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
callq 0x8c130
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0x8c0d0
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
leaq 0x60(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x8c120
movq %rax, %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x8c140
movq 0x20(%rsp), %rdi
callq 0x8c120
movq 0x20(%rsp), %rdi
movb 0x8c(%rsp), %cl
negb %cl
shlq %cl, %rax
movq %rax, 0x58(%rsp)
callq 0x8c130
movq 0x20(%rsp), %rdi
movb 0x8c(%rsp), %cl
negb %cl
shlq %cl, %rax
movq %rax, 0x50(%rsp)
callq 0x8c130
movq 0x28(%rsp), %rdi
movb 0x8c(%rsp), %cl
shrq %cl, %rax
movq 0x58(%rsp), %rcx
orq %rcx, %rax
movq %rax, 0x30(%rsp)
callq 0x8c130
movq 0x30(%rsp), %rsi
movq %rax, %rdx
movb 0x8c(%rsp), %cl
shrq %cl, %rdx
movq 0x50(%rsp), %rax
orq %rax, %rdx
leaq 0x40(%rsp), %rdi
callq 0x8c190
jmp 0x88984
movups 0x40(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x8c130
subq $-0x1, %rax
setne 0x3f(%rsp)
leaq 0x8b0c7(%rip), %rsi # 0x113a74
leaq 0x3f(%rsp), %rdi
callq 0x46120
movq 0x8(%rsp), %rdi
callq 0x8c120
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%rsp)
callq 0x8c130
movq 0x10(%rsp), %rsi
movq %rax, %rdx
incq %rdx
leaq 0xb8(%rsp), %rdi
callq 0x8c190
jmp 0x889ea
jmp 0x889ec
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
addq $0xc8, %rsp
retq
movq %rax, %rdi
callq 0x1b6b0
nopl (%rax)
|
_ZN3fmt3v106detail9dragonbox14cache_accessorIdE16get_cached_powerEi:
sub rsp, 0C8h
mov [rsp+0C8h+var_14], edi
xor eax, eax
cmp [rsp+0C8h+var_14], 0FFFFFEDCh
mov [rsp+0C8h+var_8A], al
jl short loc_88733
cmp [rsp+0C8h+var_14], 155h
setle al
mov [rsp+0C8h+var_8A], al
loc_88733:
mov al, [rsp+0C8h+var_8A]
and al, 1
mov [rsp+0C8h+var_15], al
lea rsi, aKIsOutOfRange; "k is out of range"
lea rdi, [rsp+0C8h+var_15]
call _ZN3fmt3v106detail13ignore_unusedIJbA18_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [18]>(bool,char [18] const&)
jmp short $+2
loc_88756:
mov eax, [rsp+0C8h+var_14]
sub eax, 0FFFFFEDCh
mov ecx, 1Bh
cdq
idiv ecx
mov dword ptr [rsp+0C8h+var_20+4], eax
imul eax, dword ptr [rsp+0C8h+var_20+4], 1Bh
add eax, 0FFFFFEDCh
mov dword ptr [rsp+0C8h+var_20], eax
mov eax, [rsp+0C8h+var_14]
sub eax, dword ptr [rsp+0C8h+var_20]
mov [rsp+0C8h+var_24], eax
movsxd rcx, dword ptr [rsp+0C8h+var_20+4]
lea rax, _ZZN3fmt3v106detail9dragonbox14cache_accessorIdE16get_cached_powerEiE18pow10_significands; fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::pow10_significands
shl rcx, 4
add rax, rcx
mov rcx, [rax]
mov [rsp+0C8h+var_38], rcx
mov rax, [rax+8]
mov [rsp+0C8h+var_30], rax
cmp [rsp+0C8h+var_24], 0
jnz short loc_887F6
mov rax, [rsp+0C8h+var_38]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_30]
mov [rsp+0C8h+var_8], rax
jmp loc_889EC
loc_887F6:
mov edi, dword ptr [rsp+0C8h+var_20]
add edi, [rsp+0C8h+var_24]; this
call _ZN3fmt3v106detail9dragonbox16floor_log2_pow10Ei; fmt::v10::detail::dragonbox::floor_log2_pow10(int)
mov [rsp+0C8h+var_90], eax
mov edi, dword ptr [rsp+0C8h+var_20]; this
call _ZN3fmt3v106detail9dragonbox16floor_log2_pow10Ei; fmt::v10::detail::dragonbox::floor_log2_pow10(int)
mov ecx, eax
mov eax, [rsp+0C8h+var_90]
sub eax, ecx
sub eax, [rsp+0C8h+var_24]
mov [rsp+0C8h+var_3C], eax
xor eax, eax
cmp [rsp+0C8h+var_3C], 0
mov [rsp+0C8h+var_8B], al
jle short loc_8884E
cmp [rsp+0C8h+var_3C], 40h ; '@'
setl al
mov [rsp+0C8h+var_8B], al
loc_8884E:
mov al, [rsp+0C8h+var_8B]
and al, 1
mov [rsp+0C8h+var_3D], al
lea rsi, aShiftingErrorD; "shifting error detected"
lea rdi, [rsp+0C8h+var_3D]
call _ZN3fmt3v106detail13ignore_unusedIJbA24_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [24]>(bool,char [24] const&)
jmp short $+2
loc_88871:
movsxd rcx, [rsp+0C8h+var_24]
lea rax, _ZZN3fmt3v106detail9dragonbox14cache_accessorIdE16get_cached_powerEiE14powers_of_5_64
mov rax, [rax+rcx*8]
mov [rsp+0C8h+var_48], rax
lea rdi, [rsp+0C8h+var_38]; this
mov [rsp+0C8h+var_B0], rdi
call _ZNK3fmt3v106detail16uint128_fallback4highEv; fmt::v10::detail::uint128_fallback::high(void)
mov rdi, rax; this
mov rsi, [rsp+0C8h+var_48]; unsigned __int64
call _ZN3fmt3v106detail7umul128Emm; fmt::v10::detail::umul128(ulong,ulong)
mov rdi, [rsp+0C8h+var_B0]; this
mov qword ptr [rsp+0C8h+var_58], rax
mov qword ptr [rsp+0C8h+var_58+8], rdx
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
mov rdi, rax; this
mov rsi, [rsp+0C8h+var_48]; unsigned __int64
call _ZN3fmt3v106detail7umul128Emm; fmt::v10::detail::umul128(ulong,ulong)
mov [rsp+0C8h+var_68], rax
mov [rsp+0C8h+var_60], rdx
lea rdi, [rsp+0C8h+var_68]; this
mov [rsp+0C8h+var_A0], rdi
call _ZNK3fmt3v106detail16uint128_fallback4highEv; fmt::v10::detail::uint128_fallback::high(void)
mov rsi, rax
lea rdi, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_A8], rdi
call _ZN3fmt3v106detail16uint128_fallbackpLEm; fmt::v10::detail::uint128_fallback::operator+=(ulong)
mov rdi, [rsp+0C8h+var_A8]; this
call _ZNK3fmt3v106detail16uint128_fallback4highEv; fmt::v10::detail::uint128_fallback::high(void)
mov rdi, [rsp+0C8h+var_A8]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
neg cl
shl rax, cl
mov [rsp+0C8h+var_70], rax
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
mov rdi, [rsp+0C8h+var_A8]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
neg cl
shl rax, cl
mov [rsp+0C8h+var_78], rax
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
mov rdi, [rsp+0C8h+var_A0]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
shr rax, cl
mov rcx, [rsp+0C8h+var_70]
or rax, rcx
mov [rsp+0C8h+var_98], rax
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
mov rsi, [rsp+0C8h+var_98]; unsigned __int64
mov rdx, rax
mov cl, byte ptr [rsp+0C8h+var_3C]
shr rdx, cl
mov rax, [rsp+0C8h+var_78]
or rdx, rax; unsigned __int64
lea rdi, [rsp+0C8h+var_88]; this
call _ZN3fmt3v106detail16uint128_fallbackC2Emm; fmt::v10::detail::uint128_fallback::uint128_fallback(ulong,ulong)
jmp short $+2
loc_88984:
movups xmm0, [rsp+0C8h+var_88]
movaps [rsp+0C8h+var_58], xmm0
lea rdi, [rsp+0C8h+var_58]; this
mov [rsp+0C8h+var_C0], rdi
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
sub rax, 0FFFFFFFFFFFFFFFFh
setnz [rsp+0C8h+var_89]
lea rsi, aSFromSSMsTotal+1Ah; ""
lea rdi, [rsp+0C8h+var_89]
call _ZN3fmt3v106detail13ignore_unusedIJbA1_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [1]>(bool,char [1] const&)
mov rdi, [rsp+0C8h+var_C0]; this
call _ZNK3fmt3v106detail16uint128_fallback4highEv; fmt::v10::detail::uint128_fallback::high(void)
mov rdi, [rsp+0C8h+var_C0]; this
mov [rsp+0C8h+var_B8], rax
call _ZNK3fmt3v106detail16uint128_fallback3lowEv; fmt::v10::detail::uint128_fallback::low(void)
mov rsi, [rsp+0C8h+var_B8]; unsigned __int64
mov rdx, rax
inc rdx; unsigned __int64
lea rdi, [rsp+0C8h+var_10]; this
call _ZN3fmt3v106detail16uint128_fallbackC2Emm; fmt::v10::detail::uint128_fallback::uint128_fallback(ulong,ulong)
jmp short $+2
loc_889EA:
jmp short $+2
loc_889EC:
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
mov rdi, rax
call __clang_call_terminate
|
long long fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int a1)
{
long long *v1; // rax
fmt::v10::detail *v2; // rax
unsigned long long v3; // rdx
__int128 v4; // rax
fmt::v10::detail *v5; // rax
unsigned long long v6; // rdx
long long v7; // rdx
long long v8; // rax
long long v9; // rax
long long v10; // rax
unsigned long long v11; // rax
unsigned long long v12; // rax
long long v13; // rax
long long v15; // [rsp+10h] [rbp-B8h]
unsigned long long v16; // [rsp+30h] [rbp-98h]
int v17; // [rsp+38h] [rbp-90h]
bool v18; // [rsp+3Dh] [rbp-8Bh]
bool v19; // [rsp+3Eh] [rbp-8Ah]
__int128 v20; // [rsp+40h] [rbp-88h] BYREF
long long v21; // [rsp+50h] [rbp-78h]
long long v22; // [rsp+58h] [rbp-70h]
_QWORD v23[2]; // [rsp+60h] [rbp-68h] BYREF
__int128 v24; // [rsp+70h] [rbp-58h] BYREF
unsigned long long v25; // [rsp+80h] [rbp-48h]
bool v26; // [rsp+8Bh] [rbp-3Dh] BYREF
int v27; // [rsp+8Ch] [rbp-3Ch]
long long v28; // [rsp+90h] [rbp-38h] BYREF
long long v29; // [rsp+98h] [rbp-30h]
signed int v30; // [rsp+A4h] [rbp-24h]
unsigned int v31; // [rsp+A8h] [rbp-20h]
int v32; // [rsp+ACh] [rbp-1Ch]
bool v33; // [rsp+B3h] [rbp-15h] BYREF
int v34; // [rsp+B4h] [rbp-14h]
_QWORD v35[2]; // [rsp+B8h] [rbp-10h] BYREF
v34 = a1;
v19 = 0;
if ( a1 >= -292 )
v19 = v34 <= 341;
v33 = v19;
fmt::v10::detail::ignore_unused<bool,char [18]>(&v33, "k is out of range");
v32 = (v34 + 292) / 27;
v31 = 27 * v32 - 292;
v30 = v34 - v31;
v1 = (long long *)((char *)&fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::pow10_significands
+ 16 * v32);
v28 = *v1;
v29 = v1[1];
if ( v34 == v31 )
{
v35[0] = v28;
v35[1] = v29;
}
else
{
v17 = fmt::v10::detail::dragonbox::floor_log2_pow10(
(fmt::v10::detail::dragonbox *)(v30 + v31),
(int)"k is out of range");
v27 = v17
- fmt::v10::detail::dragonbox::floor_log2_pow10((fmt::v10::detail::dragonbox *)v31, (int)"k is out of range")
- v30;
v18 = 0;
if ( v27 > 0 )
v18 = v27 < 64;
v26 = v18;
fmt::v10::detail::ignore_unused<bool,char [24]>(&v26, "shifting error detected");
v25 = fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::powers_of_5_64[v30];
v2 = (fmt::v10::detail *)fmt::v10::detail::uint128_fallback::high((fmt::v10::detail::uint128_fallback *)&v28);
*(_QWORD *)&v4 = fmt::v10::detail::umul128(v2, v25, v3);
v24 = v4;
v5 = (fmt::v10::detail *)fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)&v28);
v23[0] = fmt::v10::detail::umul128(v5, v25, v6);
v23[1] = v7;
v8 = fmt::v10::detail::uint128_fallback::high((fmt::v10::detail::uint128_fallback *)v23);
fmt::v10::detail::uint128_fallback::operator+=(&v24, v8);
v9 = fmt::v10::detail::uint128_fallback::high((fmt::v10::detail::uint128_fallback *)&v24);
v22 = v9 << -(char)v27;
v10 = fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)&v24);
v21 = v10 << -(char)v27;
v11 = fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)&v24);
v16 = v22 | (v11 >> v27);
v12 = fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)v23);
fmt::v10::detail::uint128_fallback::uint128_fallback(
(fmt::v10::detail::uint128_fallback *)&v20,
v16,
v21 | (v12 >> v27));
v24 = v20;
fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)&v24);
fmt::v10::detail::ignore_unused<bool,char [1]>();
v15 = fmt::v10::detail::uint128_fallback::high((fmt::v10::detail::uint128_fallback *)&v24);
v13 = fmt::v10::detail::uint128_fallback::low((fmt::v10::detail::uint128_fallback *)&v24);
fmt::v10::detail::uint128_fallback::uint128_fallback((fmt::v10::detail::uint128_fallback *)v35, v15, v13 + 1);
}
return v35[0];
}
|
get_cached_power:
SUB RSP,0xc8
MOV dword ptr [RSP + 0xb4],EDI
XOR EAX,EAX
CMP dword ptr [RSP + 0xb4],0xfffffedc
MOV byte ptr [RSP + 0x3e],AL
JL 0x00188733
CMP dword ptr [RSP + 0xb4],0x155
SETLE AL
MOV byte ptr [RSP + 0x3e],AL
LAB_00188733:
MOV AL,byte ptr [RSP + 0x3e]
AND AL,0x1
MOV byte ptr [RSP + 0xb3],AL
LAB_00188740:
LEA RSI,[0x20ffac]
LEA RDI,[RSP + 0xb3]
CALL 0x0018c0b0
JMP 0x00188756
LAB_00188756:
MOV EAX,dword ptr [RSP + 0xb4]
SUB EAX,0xfffffedc
MOV ECX,0x1b
CDQ
IDIV ECX
MOV dword ptr [RSP + 0xac],EAX
IMUL EAX,dword ptr [RSP + 0xac],0x1b
ADD EAX,0xfffffedc
MOV dword ptr [RSP + 0xa8],EAX
MOV EAX,dword ptr [RSP + 0xb4]
SUB EAX,dword ptr [RSP + 0xa8]
MOV dword ptr [RSP + 0xa4],EAX
MOVSXD RCX,dword ptr [RSP + 0xac]
LEA RAX,[0x210940]
SHL RCX,0x4
ADD RAX,RCX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x90],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x98],RAX
CMP dword ptr [RSP + 0xa4],0x0
JNZ 0x001887f6
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x001889ec
LAB_001887f6:
MOV EDI,dword ptr [RSP + 0xa8]
ADD EDI,dword ptr [RSP + 0xa4]
CALL 0x0018a270
MOV dword ptr [RSP + 0x38],EAX
MOV EDI,dword ptr [RSP + 0xa8]
CALL 0x0018a270
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x38]
SUB EAX,ECX
SUB EAX,dword ptr [RSP + 0xa4]
MOV dword ptr [RSP + 0x8c],EAX
XOR EAX,EAX
CMP dword ptr [RSP + 0x8c],0x0
MOV byte ptr [RSP + 0x3d],AL
JLE 0x0018884e
CMP dword ptr [RSP + 0x8c],0x40
SETL AL
MOV byte ptr [RSP + 0x3d],AL
LAB_0018884e:
MOV AL,byte ptr [RSP + 0x3d]
AND AL,0x1
MOV byte ptr [RSP + 0x8b],AL
LEA RSI,[0x20ffbe]
LEA RDI,[RSP + 0x8b]
CALL 0x0018c0c0
JMP 0x00188871
LAB_00188871:
MOVSXD RCX,dword ptr [RSP + 0xa4]
LEA RAX,[0x210ac0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x80],RAX
LEA RDI,[RSP + 0x90]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0018c120
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x0018c0d0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RAX
MOV qword ptr [RSP + 0x78],RDX
CALL 0x0018c130
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x0018c0d0
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RDX
LEA RDI,[RSP + 0x60]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x0018c120
MOV RSI,RAX
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x0018c140
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0018c120
MOV RDI,qword ptr [RSP + 0x20]
MOV CL,byte ptr [RSP + 0x8c]
NEG CL
SHL RAX,CL
MOV qword ptr [RSP + 0x58],RAX
CALL 0x0018c130
MOV RDI,qword ptr [RSP + 0x20]
MOV CL,byte ptr [RSP + 0x8c]
NEG CL
SHL RAX,CL
MOV qword ptr [RSP + 0x50],RAX
CALL 0x0018c130
MOV RDI,qword ptr [RSP + 0x28]
MOV CL,byte ptr [RSP + 0x8c]
SHR RAX,CL
MOV RCX,qword ptr [RSP + 0x58]
OR RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
CALL 0x0018c130
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,RAX
MOV CL,byte ptr [RSP + 0x8c]
SHR RDX,CL
MOV RAX,qword ptr [RSP + 0x50]
OR RDX,RAX
LEA RDI,[RSP + 0x40]
CALL 0x0018c190
JMP 0x00188984
LAB_00188984:
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVAPS xmmword ptr [RSP + 0x70],XMM0
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0018c130
SUB RAX,-0x1
SETNZ byte ptr [RSP + 0x3f]
LEA RSI,[0x213a74]
LEA RDI,[RSP + 0x3f]
CALL 0x00146120
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0018c120
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0018c130
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,RAX
INC RDX
LEA RDI,[RSP + 0xb8]
CALL 0x0018c190
JMP 0x001889ea
LAB_001889ea:
JMP 0x001889ec
LAB_001889ec:
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int) */
int1 [16] fmt::v10::detail::dragonbox::cache_accessor<double>::get_cached_power(int param_1)
{
int1 auVar1 [16];
int8 uVar2;
int8 uVar3;
int iVar4;
int iVar5;
ulong uVar6;
long lVar7;
ulong uVar8;
bool local_8b;
bool local_8a;
bool local_89;
int8 local_88;
int8 uStack_80;
ulong local_78;
ulong local_70;
uint128_fallback local_68 [16];
int1 local_58 [16];
ulong local_48;
bool local_3d;
int local_3c;
int8 local_38;
int8 local_30;
int local_24;
int local_20;
int local_1c;
bool local_15;
int local_14;
int8 local_10;
int8 local_8;
local_8a = -0x125 < param_1 && param_1 < 0x156;
local_15 = local_8a;
/* try { // try from 00188740 to 001889e7 has its CatchHandler @ 00188a04 */
local_14 = param_1;
ignore_unused<bool,char[18]>(&local_15,"k is out of range");
local_1c = (local_14 + 0x124) / 0x1b;
local_20 = local_1c * 0x1b + -0x124;
local_24 = local_14 - local_20;
local_38 = *(int8 *)(get_cached_power(int)::pow10_significands + (long)local_1c * 0x10);
local_30 = *(int8 *)(get_cached_power(int)::pow10_significands + (long)local_1c * 0x10 + 8);
uVar2 = local_38;
uVar3 = local_30;
if (local_24 != 0) {
iVar4 = floor_log2_pow10(local_20 + local_24);
iVar5 = floor_log2_pow10(local_20);
local_3c = (iVar4 - iVar5) - local_24;
local_8b = 0 < local_3c && local_3c < 0x40;
local_3d = local_8b;
ignore_unused<bool,char[24]>(&local_3d,"shifting error detected");
local_48 = *(ulong *)(get_cached_power(int)::powers_of_5_64 + (long)local_24 * 8);
uVar6 = uint128_fallback::high((uint128_fallback *)&local_38);
local_58 = umul128(uVar6,local_48);
uVar6 = uint128_fallback::low((uint128_fallback *)&local_38);
local_68 = (uint128_fallback [16])umul128(uVar6,local_48);
uVar6 = uint128_fallback::high(local_68);
uint128_fallback::operator+=((uint128_fallback *)local_58,uVar6);
lVar7 = uint128_fallback::high((uint128_fallback *)local_58);
local_70 = lVar7 << (-(byte)local_3c & 0x3f);
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
local_78 = lVar7 << (-(byte)local_3c & 0x3f);
uVar6 = uint128_fallback::low((uint128_fallback *)local_58);
uVar6 = uVar6 >> ((byte)local_3c & 0x3f) | local_70;
uVar8 = uint128_fallback::low(local_68);
uint128_fallback::uint128_fallback
((uint128_fallback *)&local_88,uVar6,uVar8 >> ((byte)local_3c & 0x3f) | local_78);
local_58._0_8_ = local_88;
local_58._8_8_ = uStack_80;
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
local_89 = lVar7 != -1;
ignore_unused<bool,char[1]>(&local_89,"");
uVar6 = uint128_fallback::high((uint128_fallback *)local_58);
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
uint128_fallback::uint128_fallback((uint128_fallback *)&local_10,uVar6,lVar7 + 1);
uVar2 = local_10;
uVar3 = local_8;
}
local_8 = uVar3;
local_10 = uVar2;
auVar1._8_8_ = local_8;
auVar1._0_8_ = local_10;
return auVar1;
}
|
|
59,487
|
PFS_status_stats::aggregate_from(system_status_var const*)
|
eloqsql/storage/perfschema/pfs_status.cc
|
void PFS_status_stats::aggregate_from(const STATUS_VAR *from)
{
ulong *from_var= (ulong*) from;
m_has_stats= true;
for (int i= 0;
i < COUNT_GLOBAL_STATUS_VARS;
i++, from_var++)
{
m_stats[i] += *from_var;
}
}
|
O0
|
cpp
|
PFS_status_stats::aggregate_from(system_status_var const*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movb $0x1, (%rax)
movl $0x0, -0x1c(%rbp)
cmpl $0xf4, -0x1c(%rbp)
jge 0x4a3bf
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rdx
movslq -0x1c(%rbp), %rcx
addq 0x8(%rax,%rcx,8), %rdx
movq %rdx, 0x8(%rax,%rcx,8)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0x4a386
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN16PFS_status_stats14aggregate_fromEPK17system_status_var:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rcx, [rbp+var_10]
mov [rbp+var_18], rcx
mov byte ptr [rax], 1
mov [rbp+var_1C], 0
loc_4A386:
cmp [rbp+var_1C], 0F4h
jge short loc_4A3BF
mov rax, [rbp+var_28]
mov rcx, [rbp+var_18]
mov rdx, [rcx]
movsxd rcx, [rbp+var_1C]
add rdx, [rax+rcx*8+8]
mov [rax+rcx*8+8], rdx
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp short loc_4A386
loc_4A3BF:
pop rbp
retn
|
_QWORD * PFS_status_stats::aggregate_from(_BYTE *a1, _QWORD *a2)
{
_QWORD *result; // rax
int i; // [rsp+Ch] [rbp-1Ch]
result = a1;
*a1 = 1;
for ( i = 0; i < 244; ++i )
{
*(_QWORD *)&a1[8 * i + 8] += *a2;
result = ++a2;
}
return result;
}
|
aggregate_from:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RCX
MOV byte ptr [RAX],0x1
MOV dword ptr [RBP + -0x1c],0x0
LAB_0014a386:
CMP dword ptr [RBP + -0x1c],0xf4
JGE 0x0014a3bf
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RCX]
MOVSXD RCX,dword ptr [RBP + -0x1c]
ADD RDX,qword ptr [RAX + RCX*0x8 + 0x8]
MOV qword ptr [RAX + RCX*0x8 + 0x8],RDX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0014a386
LAB_0014a3bf:
POP RBP
RET
|
/* PFS_status_stats::aggregate_from(system_status_var const*) */
void __thiscall PFS_status_stats::aggregate_from(PFS_status_stats *this,system_status_var *param_1)
{
int local_24;
system_status_var *local_20;
*this = (PFS_status_stats)0x1;
local_20 = param_1;
for (local_24 = 0; local_24 < 0xf4; local_24 = local_24 + 1) {
*(long *)(this + (long)local_24 * 8 + 8) =
*(long *)local_20 + *(long *)(this + (long)local_24 * 8 + 8);
local_20 = local_20 + 8;
}
return;
}
|
|
59,488
|
LefDefParser::lefwMacroTimingIntrinsic(char const*, double, double, double, double, double, double, double, double, double, double, double)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwMacroTimingIntrinsic(const char *riseFall,
double min,
double max,
double slewT1,
double slewT1Min, // optional
double slewT1Max,
double slewT2, // optional
double slewT2Min,
double slewT2Max, // optional
double slewT3, // optional
double varMin,
double varMax)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwDidInit)
return LEFW_BAD_ORDER;
if (!lefwIsMacroTiming)
return LEFW_BAD_ORDER;
if (strcmp(riseFall, "RISE") && strcmp(riseFall, "FALL"))
return LEFW_BAD_DATA;
if (lefwWriteEncrypt) {
encPrint(lefwFile, (char*) " %s INTRINSIC %.11g %.11g ",
riseFall, min, max);
if (slewT1 || slewT1Min || slewT1Max || slewT2) {
encPrint(lefwFile, (char*) "%.11g %.11g %.11g %.11g ",
slewT1, slewT1Min, slewT1Max, slewT2);
if (slewT2Min || slewT2Max || slewT3)
encPrint(lefwFile, (char*) "%.11g %.11g %.11g \n",
slewT2Min, slewT2Max, slewT3);
} else if (slewT2Min || slewT2Max || slewT3)
return LEFW_BAD_DATA; // slewT2Min... has to be inside of slewT1...
encPrint(lefwFile, (char*) " VARIABLE %.11g %.11g ;\n",
varMin, varMax);
} else {
fprintf(lefwFile, " %s INTRINSIC %.11g %.11g ", riseFall, min, max);
if (slewT1 || slewT1Min || slewT1Max || slewT2) {
fprintf(lefwFile, "%.11g %.11g %.11g %.11g ",
slewT1, slewT1Min, slewT1Max, slewT2);
if (slewT2Min || slewT2Max || slewT3)
fprintf(lefwFile, "%.11g %.11g %.11g \n",
slewT2Min, slewT2Max, slewT3);
} else if (slewT2Min || slewT2Max || slewT3)
return LEFW_BAD_DATA; // slewT2Min... has to be inside of slewT1...
fprintf(lefwFile, " VARIABLE %.11g %.11g ;\n", varMin, varMax);
}
lefwLines++;
return LEFW_OK;
}
|
O3
|
cpp
|
LefDefParser::lefwMacroTimingIntrinsic(char const*, double, double, double, double, double, double, double, double, double, double, double):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
leaq 0xd25a(%rip), %r15 # 0x24e00
movq (%r15), %r14
testq %r14, %r14
je 0x17d38
leaq 0xd49b(%rip), %rax # 0x25054
cmpl $0x0, (%rax)
movl $0x2, %eax
je 0x17ebe
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x28(%rsp)
movapd %xmm2, 0x30(%rsp)
movaps %xmm3, 0x40(%rsp)
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, 0x18(%rsp)
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, (%rsp)
leaq 0xd4b0(%rip), %rcx # 0x250ac
cmpl $0x0, (%rcx)
je 0x17ebe
movq %rdi, %rbx
leaq 0x45b8(%rip), %rsi # 0x1c1c7
callq 0x10e0
testl %eax, %eax
je 0x17c36
leaq 0x45ad(%rip), %rsi # 0x1c1cc
movq %rbx, %rdi
callq 0x10e0
movl %eax, %ecx
movl $0x3, %eax
testl %ecx, %ecx
jne 0x17ebe
xorpd %xmm0, %xmm0
movapd 0x40(%rsp), %xmm1
cmpneqpd %xmm0, %xmm1
movapd 0x30(%rsp), %xmm2
cmpneqpd %xmm0, %xmm2
orpd %xmm1, %xmm2
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
setp %al
setne %cl
orb %al, %cl
movsd 0x18(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movd %xmm2, %eax
setp %dl
setne %bpl
orb %dl, %bpl
orb %cl, %bpl
orb %al, %bpl
cmpb $0x1, 0xd461(%rip) # 0x250ec
jne 0x17d42
leaq 0x4539(%rip), %rsi # 0x1c1d1
movq %r14, %rdi
movq %rbx, %rdx
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movb $0x2, %al
callq 0x18c35
testb $0x1, %bpl
je 0x17de9
movq (%r15), %rdi
leaq 0x426e(%rip), %rsi # 0x1bf33
movapd 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm3
movb $0x4, %al
callq 0x18c35
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0x80(%rsp), %xmm2
jne 0x17d17
jp 0x17d17
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x17d17
jp 0x17d17
ucomisd %xmm0, %xmm2
jne 0x17d17
jnp 0x17e36
movq (%r15), %rdi
leaq 0x44d0(%rip), %rsi # 0x1c1f1
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
movb $0x3, %al
callq 0x18c35
jmp 0x17e36
movl $0x1, %eax
jmp 0x17ebe
leaq 0x4488(%rip), %rsi # 0x1c1d1
movq %r14, %rdi
movq %rbx, %rdx
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movb $0x2, %al
callq 0x10f0
testb $0x1, %bpl
je 0x17e5b
movq (%r15), %rdi
leaq 0x41bd(%rip), %rsi # 0x1bf33
movapd 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm3
movb $0x4, %al
callq 0x10f0
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0x80(%rsp), %xmm2
jne 0x17dc8
jp 0x17dc8
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x17dc8
jp 0x17dc8
ucomisd %xmm0, %xmm2
jne 0x17dc8
jnp 0x17e90
movq (%r15), %rdi
leaq 0x441f(%rip), %rsi # 0x1c1f1
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
movb $0x3, %al
callq 0x10f0
jmp 0x17e90
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movl $0x3, %eax
movsd (%rsp), %xmm1
jne 0x17ebe
jp 0x17ebe
ucomisd %xmm0, %xmm1
jne 0x17ebe
jp 0x17ebe
movsd 0x80(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x17ebe
jp 0x17ebe
movq (%r15), %rdi
leaq 0x43c5(%rip), %rsi # 0x1c205
movsd 0x88(%rsp), %xmm0
movsd 0x90(%rsp), %xmm1
movb $0x2, %al
callq 0x18c35
jmp 0x17eb3
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movl $0x3, %eax
movsd (%rsp), %xmm1
jne 0x17ebe
jp 0x17ebe
ucomisd %xmm0, %xmm1
jne 0x17ebe
jp 0x17ebe
movsd 0x80(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x17ebe
jp 0x17ebe
movq (%r15), %rdi
leaq 0x436b(%rip), %rsi # 0x1c205
movsd 0x88(%rsp), %xmm0
movsd 0x90(%rsp), %xmm1
movb $0x2, %al
callq 0x10f0
leaq 0xd192(%rip), %rax # 0x2504c
incl (%rax)
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ZN12LefDefParser24lefwMacroTimingIntrinsicEPKcddddddddddd:
push rbp
push r15
push r14
push rbx
sub rsp, 58h
lea r15, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov r14, [r15]
test r14, r14
jz loc_17D38
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
cmp dword ptr [rax], 0
mov eax, 2
jz loc_17EBE
movsd [rsp+78h+var_58], xmm0
movsd [rsp+78h+var_50], xmm1
movapd [rsp+78h+var_48], xmm2
movaps [rsp+78h+var_38], xmm3
movsd [rsp+78h+var_68], xmm4
movsd [rsp+78h+var_60], xmm5
movsd [rsp+78h+var_70], xmm6
movsd [rsp+78h+var_78], xmm7
lea rcx, _ZN12LefDefParser17lefwIsMacroTimingE; LefDefParser::lefwIsMacroTiming
cmp dword ptr [rcx], 0
jz loc_17EBE
mov rbx, rdi
lea rsi, aRise; "RISE"
call _strcmp
test eax, eax
jz short loc_17C36
lea rsi, aFall; "FALL"
mov rdi, rbx
call _strcmp
mov ecx, eax
mov eax, 3
test ecx, ecx
jnz loc_17EBE
loc_17C36:
xorpd xmm0, xmm0
movapd xmm1, [rsp+78h+var_38]
cmpneqpd xmm1, xmm0
movapd xmm2, [rsp+78h+var_48]
cmpneqpd xmm2, xmm0
orpd xmm2, xmm1
movsd xmm1, [rsp+78h+var_68]
ucomisd xmm1, xmm0
setp al
setnz cl
or cl, al
movsd xmm1, [rsp+78h+var_60]
ucomisd xmm1, xmm0
movd eax, xmm2
setp dl
setnz bpl
or bpl, dl
or bpl, cl
or bpl, al
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz loc_17D42
lea rsi, aSIntrinsic11g1; " %s INTRINSIC %.11g %.11g "
mov rdi, r14
mov rdx, rbx
movsd xmm0, [rsp+78h+var_58]
movsd xmm1, [rsp+78h+var_50]
mov al, 2
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
test bpl, 1
jz loc_17DE9
mov rdi, [r15]
lea rsi, aRectIterate11g+19h; "%.11g %.11g %.11g %.11g "
movapd xmm0, [rsp+78h+var_48]
movaps xmm1, [rsp+78h+var_38]
movsd xmm2, [rsp+78h+var_68]
movsd xmm3, [rsp+78h+var_60]
mov al, 4
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
xorpd xmm0, xmm0
movsd xmm1, [rsp+78h+var_70]
ucomisd xmm1, xmm0
movsd xmm2, [rsp+78h+arg_0]
jnz short loc_17D17
jp short loc_17D17
movsd xmm1, [rsp+78h+var_78]
ucomisd xmm1, xmm0
jnz short loc_17D17
jp short loc_17D17
ucomisd xmm2, xmm0
jnz short loc_17D17
jnp loc_17E36
loc_17D17:
mov rdi, [r15]
lea rsi, a11g11g11g; "%.11g %.11g %.11g \n"
movsd xmm0, [rsp+78h+var_70]
movsd xmm1, [rsp+78h+var_78]
mov al, 3
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp loc_17E36
loc_17D38:
mov eax, 1
jmp loc_17EBE
loc_17D42:
lea rsi, aSIntrinsic11g1; " %s INTRINSIC %.11g %.11g "
mov rdi, r14
mov rdx, rbx
movsd xmm0, [rsp+78h+var_58]
movsd xmm1, [rsp+78h+var_50]
mov al, 2
call _fprintf
test bpl, 1
jz loc_17E5B
mov rdi, [r15]
lea rsi, aRectIterate11g+19h; "%.11g %.11g %.11g %.11g "
movapd xmm0, [rsp+78h+var_48]
movaps xmm1, [rsp+78h+var_38]
movsd xmm2, [rsp+78h+var_68]
movsd xmm3, [rsp+78h+var_60]
mov al, 4
call _fprintf
xorpd xmm0, xmm0
movsd xmm1, [rsp+78h+var_70]
ucomisd xmm1, xmm0
movsd xmm2, [rsp+78h+arg_0]
jnz short loc_17DC8
jp short loc_17DC8
movsd xmm1, [rsp+78h+var_78]
ucomisd xmm1, xmm0
jnz short loc_17DC8
jp short loc_17DC8
ucomisd xmm2, xmm0
jnz short loc_17DC8
jnp loc_17E90
loc_17DC8:
mov rdi, [r15]
lea rsi, a11g11g11g; "%.11g %.11g %.11g \n"
movsd xmm0, [rsp+78h+var_70]
movsd xmm1, [rsp+78h+var_78]
mov al, 3
call _fprintf
jmp loc_17E90
loc_17DE9:
xorpd xmm0, xmm0
movsd xmm1, [rsp+78h+var_70]
ucomisd xmm1, xmm0
mov eax, 3
movsd xmm1, [rsp+78h+var_78]
jnz loc_17EBE
jp loc_17EBE
ucomisd xmm1, xmm0
jnz loc_17EBE
jp loc_17EBE
movsd xmm1, [rsp+78h+arg_0]
ucomisd xmm1, xmm0
jnz loc_17EBE
jp loc_17EBE
loc_17E36:
mov rdi, [r15]
lea rsi, aVariable11g11g; " VARIABLE %.11g %.11g ;\n"
movsd xmm0, [rsp+78h+arg_8]
movsd xmm1, [rsp+78h+arg_10]
mov al, 2
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_17EB3
loc_17E5B:
xorpd xmm0, xmm0
movsd xmm1, [rsp+78h+var_70]
ucomisd xmm1, xmm0
mov eax, 3
movsd xmm1, [rsp+78h+var_78]
jnz short loc_17EBE
jp short loc_17EBE
ucomisd xmm1, xmm0
jnz short loc_17EBE
jp short loc_17EBE
movsd xmm1, [rsp+78h+arg_0]
ucomisd xmm1, xmm0
jnz short loc_17EBE
jp short loc_17EBE
loc_17E90:
mov rdi, [r15]
lea rsi, aVariable11g11g; " VARIABLE %.11g %.11g ;\n"
movsd xmm0, [rsp+78h+arg_8]
movsd xmm1, [rsp+78h+arg_10]
mov al, 2
call _fprintf
loc_17EB3:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
loc_17EBE:
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long LefDefParser::lefwMacroTimingIntrinsic(
LefDefParser *this,
const char *a2,
double a3,
double a4,
__m128d a5,
__m128d a6,
double a7,
double a8,
double a9,
double a10,
double a11,
double a12,
double a13)
{
long long v13; // r14
long long result; // rax
int v15; // ecx
int v16; // r8d
int v17; // r9d
char v18; // bp
int v19; // edx
int v20; // ecx
int v21; // r8d
int v22; // r9d
v13 = *(_QWORD *)&LefDefParser::lefwFile;
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
result = 2LL;
if ( LefDefParser::lefwDidInit )
{
if ( LefDefParser::lefwIsMacroTiming )
{
if ( !(unsigned int)strcmp(this, "RISE") || (v15 = strcmp(this, "FALL"), result = 3LL, !v15) )
{
v18 = _mm_cvtsi128_si32((__m128i)_mm_or_pd(_mm_cmpneq_pd(a5, (__m128d)0LL), _mm_cmpneq_pd(a6, (__m128d)0LL))) | (a7 != 0.0 || a8 != 0.0);
if ( LefDefParser::lefwWriteEncrypt != 1 )
{
fprintf(v13, " %s INTRINSIC %.11g %.11g ", (const char *)this, a3, a4);
if ( (v18 & 1) != 0 )
{
fprintf(
*(_QWORD *)&LefDefParser::lefwFile,
"%.11g %.11g %.11g %.11g ",
a5.m128d_f64[0],
a6.m128d_f64[0],
a7,
a8);
if ( a9 != 0.0 || a10 != 0.0 || a11 != 0.0 )
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "%.11g %.11g %.11g \n", a9, a10, a11);
}
else
{
result = 3LL;
if ( a9 != 0.0 || a10 != 0.0 || a11 != 0.0 )
return result;
}
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " VARIABLE %.11g %.11g ;\n", a12, a13);
goto LABEL_26;
}
LOBYTE(v15) = a7 != 0.0;
LefDefParser::encPrint(v13, (unsigned int)" %s INTRINSIC %.11g %.11g ", (_DWORD)this, v15, v16, v17);
if ( (v18 & 1) != 0 )
{
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g %.11g %.11g %.11g ", v19, v20, v21, v22);
if ( a9 != 0.0 || a10 != 0.0 || a11 != 0.0 )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g %.11g %.11g \n", v19, v20, v21, v22);
goto LABEL_21;
}
result = 3LL;
if ( a9 == 0.0 && a10 == 0.0 && a11 == 0.0 )
{
LABEL_21:
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" VARIABLE %.11g %.11g ;\n",
v19,
v20,
v21,
v22);
LABEL_26:
++LefDefParser::lefwLines;
return 0LL;
}
}
}
}
return result;
}
|
lefwMacroTimingIntrinsic:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
LEA R15,[0x124e00]
MOV R14,qword ptr [R15]
TEST R14,R14
JZ 0x00117d38
LEA RAX,[0x125054]
CMP dword ptr [RAX],0x0
MOV EAX,0x2
JZ 0x00117ebe
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD qword ptr [RSP + 0x28],XMM1
MOVAPD xmmword ptr [RSP + 0x30],XMM2
MOVAPS xmmword ptr [RSP + 0x40],XMM3
MOVSD qword ptr [RSP + 0x10],XMM4
MOVSD qword ptr [RSP + 0x18],XMM5
MOVSD qword ptr [RSP + 0x8],XMM6
MOVSD qword ptr [RSP],XMM7
LEA RCX,[0x1250ac]
CMP dword ptr [RCX],0x0
JZ 0x00117ebe
MOV RBX,RDI
LEA RSI,[0x11c1c7]
CALL 0x001010e0
TEST EAX,EAX
JZ 0x00117c36
LEA RSI,[0x11c1cc]
MOV RDI,RBX
CALL 0x001010e0
MOV ECX,EAX
MOV EAX,0x3
TEST ECX,ECX
JNZ 0x00117ebe
LAB_00117c36:
XORPD XMM0,XMM0
MOVAPD XMM1,xmmword ptr [RSP + 0x40]
CMPNEQPD XMM1,XMM0
MOVAPD XMM2,xmmword ptr [RSP + 0x30]
CMPNEQPD XMM2,XMM0
ORPD XMM2,XMM1
MOVSD XMM1,qword ptr [RSP + 0x10]
UCOMISD XMM1,XMM0
SETP AL
SETNZ CL
OR CL,AL
MOVSD XMM1,qword ptr [RSP + 0x18]
UCOMISD XMM1,XMM0
MOVD EAX,XMM2
SETP DL
SETNZ BPL
OR BPL,DL
OR BPL,CL
OR BPL,AL
CMP byte ptr [0x001250ec],0x1
JNZ 0x00117d42
LEA RSI,[0x11c1d1]
MOV RDI,R14
MOV RDX,RBX
MOVSD XMM0,qword ptr [RSP + 0x20]
MOVSD XMM1,qword ptr [RSP + 0x28]
MOV AL,0x2
CALL 0x00118c35
TEST BPL,0x1
JZ 0x00117de9
MOV RDI,qword ptr [R15]
LEA RSI,[0x11bf33]
MOVAPD XMM0,xmmword ptr [RSP + 0x30]
MOVAPS XMM1,xmmword ptr [RSP + 0x40]
MOVSD XMM2,qword ptr [RSP + 0x10]
MOVSD XMM3,qword ptr [RSP + 0x18]
MOV AL,0x4
CALL 0x00118c35
XORPD XMM0,XMM0
MOVSD XMM1,qword ptr [RSP + 0x8]
UCOMISD XMM1,XMM0
MOVSD XMM2,qword ptr [RSP + 0x80]
JNZ 0x00117d17
JP 0x00117d17
MOVSD XMM1,qword ptr [RSP]
UCOMISD XMM1,XMM0
JNZ 0x00117d17
JP 0x00117d17
UCOMISD XMM2,XMM0
JNZ 0x00117d17
JNP 0x00117e36
LAB_00117d17:
MOV RDI,qword ptr [R15]
LEA RSI,[0x11c1f1]
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD XMM1,qword ptr [RSP]
MOV AL,0x3
CALL 0x00118c35
JMP 0x00117e36
LAB_00117d38:
MOV EAX,0x1
JMP 0x00117ebe
LAB_00117d42:
LEA RSI,[0x11c1d1]
MOV RDI,R14
MOV RDX,RBX
MOVSD XMM0,qword ptr [RSP + 0x20]
MOVSD XMM1,qword ptr [RSP + 0x28]
MOV AL,0x2
CALL 0x001010f0
TEST BPL,0x1
JZ 0x00117e5b
MOV RDI,qword ptr [R15]
LEA RSI,[0x11bf33]
MOVAPD XMM0,xmmword ptr [RSP + 0x30]
MOVAPS XMM1,xmmword ptr [RSP + 0x40]
MOVSD XMM2,qword ptr [RSP + 0x10]
MOVSD XMM3,qword ptr [RSP + 0x18]
MOV AL,0x4
CALL 0x001010f0
XORPD XMM0,XMM0
MOVSD XMM1,qword ptr [RSP + 0x8]
UCOMISD XMM1,XMM0
MOVSD XMM2,qword ptr [RSP + 0x80]
JNZ 0x00117dc8
JP 0x00117dc8
MOVSD XMM1,qword ptr [RSP]
UCOMISD XMM1,XMM0
JNZ 0x00117dc8
JP 0x00117dc8
UCOMISD XMM2,XMM0
JNZ 0x00117dc8
JNP 0x00117e90
LAB_00117dc8:
MOV RDI,qword ptr [R15]
LEA RSI,[0x11c1f1]
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD XMM1,qword ptr [RSP]
MOV AL,0x3
CALL 0x001010f0
JMP 0x00117e90
LAB_00117de9:
XORPD XMM0,XMM0
MOVSD XMM1,qword ptr [RSP + 0x8]
UCOMISD XMM1,XMM0
MOV EAX,0x3
MOVSD XMM1,qword ptr [RSP]
JNZ 0x00117ebe
JP 0x00117ebe
UCOMISD XMM1,XMM0
JNZ 0x00117ebe
JP 0x00117ebe
MOVSD XMM1,qword ptr [RSP + 0x80]
UCOMISD XMM1,XMM0
JNZ 0x00117ebe
JP 0x00117ebe
LAB_00117e36:
MOV RDI,qword ptr [R15]
LEA RSI,[0x11c205]
MOVSD XMM0,qword ptr [RSP + 0x88]
MOVSD XMM1,qword ptr [RSP + 0x90]
MOV AL,0x2
CALL 0x00118c35
JMP 0x00117eb3
LAB_00117e5b:
XORPD XMM0,XMM0
MOVSD XMM1,qword ptr [RSP + 0x8]
UCOMISD XMM1,XMM0
MOV EAX,0x3
MOVSD XMM1,qword ptr [RSP]
JNZ 0x00117ebe
JP 0x00117ebe
UCOMISD XMM1,XMM0
JNZ 0x00117ebe
JP 0x00117ebe
MOVSD XMM1,qword ptr [RSP + 0x80]
UCOMISD XMM1,XMM0
JNZ 0x00117ebe
JP 0x00117ebe
LAB_00117e90:
MOV RDI,qword ptr [R15]
LEA RSI,[0x11c205]
MOVSD XMM0,qword ptr [RSP + 0x88]
MOVSD XMM1,qword ptr [RSP + 0x90]
MOV AL,0x2
CALL 0x001010f0
LAB_00117eb3:
LEA RAX,[0x12504c]
INC dword ptr [RAX]
XOR EAX,EAX
LAB_00117ebe:
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::lefwMacroTimingIntrinsic(char const*, double, double, double, double, double,
double, double, double, double, double, double) */
int8
LefDefParser::lefwMacroTimingIntrinsic
(char *param_1,double param_2,double param_3,double param_4,double param_5,double param_6,
double param_7,double param_8,double param_9,double param_10,double param_11,
double param_12)
{
_IO_FILE *__stream;
int iVar1;
int8 uVar2;
int4 local_38;
__stream = lefwFile;
if (lefwFile == (_IO_FILE *)0x0) {
uVar2 = 1;
}
else {
uVar2 = 2;
if ((lefwDidInit != 0) && (lefwIsMacroTiming != 0)) {
iVar1 = strcmp(param_1,"RISE");
if ((iVar1 != 0) && (iVar1 = strcmp(param_1,"FALL"), iVar1 != 0)) {
return 3;
}
local_38 = SUB84(param_5,0);
if (lefwWriteEncrypt == '\x01') {
encPrint(__stream," %s INTRINSIC %.11g %.11g ",param_2,SUB84(param_3,0),param_1);
if ((param_7 == 0.0 && param_6 == 0.0) && (param_4 == 0.0 && param_5 == 0.0)) {
if (param_8 != 0.0) {
return 3;
}
if (NAN(param_8)) {
return 3;
}
if (param_9 != 0.0) {
return 3;
}
if (NAN(param_9)) {
return 3;
}
if (param_10 != 0.0) {
return 3;
}
if (NAN(param_10)) {
return 3;
}
}
else {
encPrint(lefwFile,"%.11g %.11g %.11g %.11g ",param_4,local_38,param_6,param_7);
if (((param_8 != 0.0) || (NAN(param_8))) ||
((param_9 != 0.0 || (((NAN(param_9) || (param_10 != 0.0)) || (NAN(param_10))))))) {
encPrint(lefwFile,"%.11g %.11g %.11g \n",param_8,SUB84(param_9,0));
}
}
encPrint(lefwFile," VARIABLE %.11g %.11g ;\n",param_11,SUB84(param_12,0));
}
else {
fprintf(__stream," %s INTRINSIC %.11g %.11g ",param_2,SUB84(param_3,0),param_1);
if ((param_7 == 0.0 && param_6 == 0.0) && (param_4 == 0.0 && param_5 == 0.0)) {
if (param_8 != 0.0) {
return 3;
}
if (NAN(param_8)) {
return 3;
}
if (param_9 != 0.0) {
return 3;
}
if (NAN(param_9)) {
return 3;
}
if (param_10 != 0.0) {
return 3;
}
if (NAN(param_10)) {
return 3;
}
}
else {
fprintf(lefwFile,"%.11g %.11g %.11g %.11g ",param_4,local_38,param_6,param_7);
if ((((param_8 != 0.0) || (NAN(param_8))) || (param_9 != 0.0)) ||
(((NAN(param_9) || (param_10 != 0.0)) || (NAN(param_10))))) {
fprintf(lefwFile,"%.11g %.11g %.11g \n",param_8,SUB84(param_9,0));
}
}
fprintf(lefwFile," VARIABLE %.11g %.11g ;\n",param_11,SUB84(param_12,0));
}
lefwLines = lefwLines + 1;
uVar2 = 0;
}
}
return uVar2;
}
|
|
59,489
|
wqueue_link_into_queue
|
eloqsql/mysys/wqueue.c
|
void wqueue_link_into_queue(WQUEUE *wqueue, struct st_my_thread_var *thread)
{
struct st_my_thread_var *last;
if (!(last= wqueue->last_thread))
{
/* Queue is empty */
thread->next= thread;
thread->prev= &thread->next;
}
else
{
thread->prev= last->next->prev;
last->next->prev= &thread->next;
thread->next= last->next;
last->next= thread;
}
wqueue->last_thread= thread;
}
|
O3
|
c
|
wqueue_link_into_queue:
movq (%rdi), %rax
testq %rax, %rax
je 0xc6656
pushq %rbp
movq %rsp, %rbp
movq 0x88(%rax), %rcx
movq 0x90(%rcx), %rcx
movq %rcx, 0x90(%rsi)
leaq 0x88(%rsi), %rcx
movq 0x88(%rax), %rdx
movq %rcx, 0x90(%rdx)
movq 0x88(%rax), %rcx
movq %rcx, 0x88(%rsi)
movq %rsi, 0x88(%rax)
popq %rbp
jmp 0xc666b
leaq 0x88(%rsi), %rax
movq %rsi, 0x88(%rsi)
movq %rax, 0x90(%rsi)
movq %rsi, (%rdi)
retq
|
wqueue_link_into_queue:
mov rax, [rdi]
test rax, rax
jz short loc_C6656
push rbp
mov rbp, rsp
mov rcx, [rax+88h]
mov rcx, [rcx+90h]
mov [rsi+90h], rcx
lea rcx, [rsi+88h]
mov rdx, [rax+88h]
mov [rdx+90h], rcx
mov rcx, [rax+88h]
mov [rsi+88h], rcx
mov [rax+88h], rsi
pop rbp
jmp short loc_C666B
loc_C6656:
lea rax, [rsi+88h]
mov [rsi+88h], rsi
mov [rsi+90h], rax
loc_C666B:
mov [rdi], rsi
retn
|
long long wqueue_link_into_queue(long long *a1, long long a2)
{
long long result; // rax
result = *a1;
if ( *a1 )
{
*(_QWORD *)(a2 + 144) = *(_QWORD *)(*(_QWORD *)(result + 136) + 144LL);
*(_QWORD *)(*(_QWORD *)(result + 136) + 144LL) = a2 + 136;
*(_QWORD *)(a2 + 136) = *(_QWORD *)(result + 136);
*(_QWORD *)(result + 136) = a2;
}
else
{
result = a2 + 136;
*(_QWORD *)(a2 + 136) = a2;
*(_QWORD *)(a2 + 144) = a2 + 136;
}
*a1 = a2;
return result;
}
|
wqueue_link_into_queue:
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x001c6656
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RAX + 0x88]
MOV RCX,qword ptr [RCX + 0x90]
MOV qword ptr [RSI + 0x90],RCX
LEA RCX,[RSI + 0x88]
MOV RDX,qword ptr [RAX + 0x88]
MOV qword ptr [RDX + 0x90],RCX
MOV RCX,qword ptr [RAX + 0x88]
MOV qword ptr [RSI + 0x88],RCX
MOV qword ptr [RAX + 0x88],RSI
POP RBP
JMP 0x001c666b
LAB_001c6656:
LEA RAX,[RSI + 0x88]
MOV qword ptr [RSI + 0x88],RSI
MOV qword ptr [RSI + 0x90],RAX
LAB_001c666b:
MOV qword ptr [RDI],RSI
RET
|
void wqueue_link_into_queue(long *param_1,long param_2)
{
long lVar1;
lVar1 = *param_1;
if (lVar1 == 0) {
*(long *)(param_2 + 0x88) = param_2;
*(long *)(param_2 + 0x90) = param_2 + 0x88;
}
else {
*(int8 *)(param_2 + 0x90) = *(int8 *)(*(long *)(lVar1 + 0x88) + 0x90);
*(long *)(*(long *)(lVar1 + 0x88) + 0x90) = param_2 + 0x88;
*(int8 *)(param_2 + 0x88) = *(int8 *)(lVar1 + 0x88);
*(long *)(lVar1 + 0x88) = param_2;
}
*param_1 = param_2;
return;
}
|
|
59,490
|
my_strxfrm_pad_desc_and_reverse_nopad
|
eloqsql/strings/ctype-simple.c
|
size_t
my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
memset(frmend, 0x00, fill_length);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
memset(frmend, 0x00, fill_length);
frmend= strend;
}
return frmend - str;
}
|
O3
|
c
|
my_strxfrm_pad_desc_and_reverse_nopad:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movl 0x10(%rbp), %ecx
testl %r8d, %r8d
sete %al
cmpq %r15, %rdx
setae %sil
testb $0x40, %r12b
sete %dl
orb %al, %dl
orb %sil, %dl
jne 0xbfb81
movl %r8d, %r13d
movl %r15d, %eax
imull 0x98(%rdi), %r13d
subl %r14d, %eax
cmpl %eax, %r13d
cmovael %eax, %r13d
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x2a2a0
movl 0x10(%rbp), %ecx
addq %r13, %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0xc13c2
testb %r12b, %r12b
jns 0xbfbac
cmpq %r15, %r14
jae 0xbfbac
movq %r15, %rdx
subq %r14, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x2a2a0
movq %r15, %r14
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strxfrm_pad_desc_and_reverse_nopad:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, r9d
mov r15, rcx
mov r14, rdx
mov rbx, rsi
mov ecx, [rbp+arg_0]
test r8d, r8d
setz al
cmp rdx, r15
setnb sil
test r12b, 40h
setz dl
or dl, al
or dl, sil
jnz short loc_BFB81
mov r13d, r8d
mov eax, r15d
imul r13d, [rdi+98h]
sub eax, r14d
cmp r13d, eax
cmovnb r13d, eax
mov rdi, r14
xor esi, esi
mov rdx, r13
call _memset
mov ecx, [rbp+arg_0]
add r14, r13
loc_BFB81:
mov rdi, rbx
mov rsi, r14
mov edx, r12d
call my_strxfrm_desc_and_reverse
test r12b, r12b
jns short loc_BFBAC
cmp r14, r15
jnb short loc_BFBAC
mov rdx, r15
sub rdx, r14
mov rdi, r14
xor esi, esi
call _memset
mov r14, r15
loc_BFBAC:
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_strxfrm_pad_desc_and_reverse_nopad(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned long long v9; // r14
long long v10; // rcx
long long v11; // r13
v9 = a3;
v10 = a7;
if ( a3 < a4 && a5 != 0 && (a6 & 0x40) != 0 )
{
v11 = (unsigned int)(*(_DWORD *)(a1 + 152) * a5);
if ( (unsigned int)v11 >= (int)a4 - (int)a3 )
v11 = (unsigned int)(a4 - a3);
memset(a3, 0LL, v11);
v10 = a7;
v9 += v11;
}
my_strxfrm_desc_and_reverse(a2, v9, a6, v10);
if ( (a6 & 0x80u) != 0 && v9 < a4 )
{
memset(v9, 0LL, a4 - v9);
v9 = a4;
}
return v9 - a2;
}
|
my_strxfrm_pad_desc_and_reverse_nopad:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,R9D
MOV R15,RCX
MOV R14,RDX
MOV RBX,RSI
MOV ECX,dword ptr [RBP + 0x10]
TEST R8D,R8D
SETZ AL
CMP RDX,R15
SETNC SIL
TEST R12B,0x40
SETZ DL
OR DL,AL
OR DL,SIL
JNZ 0x001bfb81
MOV R13D,R8D
MOV EAX,R15D
IMUL R13D,dword ptr [RDI + 0x98]
SUB EAX,R14D
CMP R13D,EAX
CMOVNC R13D,EAX
MOV RDI,R14
XOR ESI,ESI
MOV RDX,R13
CALL 0x0012a2a0
MOV ECX,dword ptr [RBP + 0x10]
ADD R14,R13
LAB_001bfb81:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R12D
CALL 0x001c13c2
TEST R12B,R12B
JNS 0x001bfbac
CMP R14,R15
JNC 0x001bfbac
MOV RDX,R15
SUB RDX,R14
MOV RDI,R14
XOR ESI,ESI
CALL 0x0012a2a0
MOV R14,R15
LAB_001bfbac:
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse_nopad
(long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6,
int4 param_7)
{
uint uVar1;
uint uVar2;
if (((param_6 & 0x40) != 0 && param_5 != 0) && param_3 < param_4) {
uVar2 = param_5 * *(int *)(param_1 + 0x98);
uVar1 = (int)param_4 - (int)param_3;
if (uVar1 <= uVar2) {
uVar2 = uVar1;
}
memset(param_3,0,(ulong)uVar2);
param_3 = (void *)((long)param_3 + (ulong)uVar2);
}
my_strxfrm_desc_and_reverse(param_2,param_3,param_6,param_7);
if (((char)param_6 < '\0') && (param_3 < param_4)) {
memset(param_3,0,(long)param_4 - (long)param_3);
param_3 = param_4;
}
return (long)param_3 - param_2;
}
|
|
59,491
|
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;
}
|
O0
|
c
|
tree_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq 0x1a8d38(%rip), %rax # 0x1db458
cmpq %rax, -0x38(%rbp)
je 0x32787
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x208(%rax)
je 0x32761
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x208(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x3276d
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq *%rax
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jne 0x32789
jmp 0x327df
cmpl $0x0, -0x2c(%rbp)
jge 0x327b8
movq -0x38(%rbp), %rcx
addq $0x8, %rcx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x327da
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x32719
leaq 0x1a8c72(%rip), %rax # 0x1db458
cmpq %rax, -0x38(%rbp)
jne 0x329e0
movq -0x10(%rbp), %rax
movl 0x290(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x32810
movl $0x1, %eax
movq %rax, -0x8(%rbp)
jmp 0x32a63
movl -0x1c(%rbp), %eax
addq $0x18, %rax
movq -0x10(%rbp), %rcx
movl 0x210(%rcx), %ecx
addq %rcx, %rax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
addq 0x220(%rax), %rcx
movq %rcx, 0x220(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x218(%rax)
je 0x32897
movq -0x10(%rbp), %rax
cmpl $0x0, 0x20c(%rax)
je 0x32897
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x218(%rcx), %rax
jbe 0x32897
movq -0x10(%rbp), %rdi
callq 0x326b0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
callq 0x326e0
movq %rax, -0x8(%rbp)
jmp 0x32a63
movq -0x10(%rbp), %rax
movl 0x210(%rax), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x278(%rax)
je 0x328dc
leaq 0x3609c1(%rip), %rax # 0x39327c
movl (%rax), %edi
movl -0x44(%rbp), %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x288(%rax), %rdx
orq $0x10, %rdx
callq 0x2ddf0
movq %rax, -0x38(%rbp)
jmp 0x328f5
movq -0x10(%rbp), %rdi
addq $0x238, %rdi # imm = 0x238
movl -0x44(%rbp), %eax
movl %eax, %esi
callq 0x3a410
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x32909
movq $0x0, -0x8(%rbp)
jmp 0x32a63
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
leaq 0x1a8b36(%rip), %rcx # 0x1db458
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
leaq 0x1a8b27(%rip), %rcx # 0x1db458
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x208(%rax)
jne 0x32988
movl -0x1c(%rbp), %eax
cmpq $0x8, %rax
jne 0x32958
movq -0x18(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x32986
movq -0x38(%rbp), %rcx
addq $0x18, %rcx
addq $0x8, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %eax
movl %eax, %edx
subq $0x8, %rdx
callq 0x24200
jmp 0x329a7
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x208(%rax), %eax
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %eax
movl %eax, %edx
callq 0x24200
movq -0x38(%rbp), %rax
movl 0x10(%rax), %ecx
andl $0x80000000, %ecx # imm = 0x80000000
orl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x20c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x20c(%rax)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x32a70
jmp 0x32a57
movq -0x10(%rbp), %rax
movl 0x290(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x329fc
movq $0x0, -0x8(%rbp)
jmp 0x32a63
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
addl $0x1, %edx
movl 0x10(%rax), %ecx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
andl $0x80000000, %ecx # imm = 0x80000000
orl %edx, %ecx
movl %ecx, 0x10(%rax)
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpl $0x0, %eax
jne 0x32a55
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
addl $-0x1, %edx
movl 0x10(%rax), %ecx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
andl $0x80000000, %ecx # imm = 0x80000000
orl %edx, %ecx
movl %ecx, 0x10(%rax)
jmp 0x32a57
jmp 0x32a59
jmp 0x32a5b
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
tree_insert:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_40], rax
mov rcx, [rbp+var_10]
mov rax, [rbp+var_40]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_38], rax
loc_32719:
lea rax, null_element
cmp [rbp+var_38], rax
jz short loc_32787
mov rax, [rbp+var_10]
mov rax, [rax+228h]
mov [rbp+var_58], rax
mov rax, [rbp+var_28]
mov [rbp+var_50], rax
mov rax, [rbp+var_10]
cmp dword ptr [rax+208h], 0
jz short loc_32761
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
mov ecx, [rcx+208h]
add rax, rcx
mov [rbp+var_60], rax
jmp short loc_3276D
loc_32761:
mov rax, [rbp+var_38]
mov rax, [rax+18h]
mov [rbp+var_60], rax
loc_3276D:
mov rax, [rbp+var_58]
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_60]
mov rdx, [rbp+var_18]
call rax
mov [rbp+var_2C], eax
cmp eax, 0
jnz short loc_32789
loc_32787:
jmp short loc_327DF
loc_32789:
cmp [rbp+var_2C], 0
jge short loc_327B8
mov rcx, [rbp+var_38]
add rcx, 8
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 8
mov [rbp+var_40], rdx
mov [rax+8], rcx
mov rax, [rbp+var_38]
mov rax, [rax+8]
mov [rbp+var_38], rax
jmp short loc_327DA
loc_327B8:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 8
mov [rbp+var_40], rdx
mov [rax+8], rcx
mov rax, [rbp+var_38]
mov rax, [rax]
mov [rbp+var_38], rax
loc_327DA:
jmp loc_32719
loc_327DF:
lea rax, null_element
cmp [rbp+var_38], rax
jnz loc_329E0
mov rax, [rbp+var_10]
mov eax, [rax+290h]
and eax, 2
cmp eax, 0
jz short loc_32810
mov eax, 1
mov [rbp+var_8], rax
jmp loc_32A63
loc_32810:
mov eax, [rbp+var_1C]
add rax, 18h
mov rcx, [rbp+var_10]
mov ecx, [rcx+210h]
add rax, rcx
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
mov ecx, eax
mov rax, [rbp+var_10]
add rcx, [rax+220h]
mov [rax+220h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+218h], 0
jz short loc_32897
mov rax, [rbp+var_10]
cmp dword ptr [rax+20Ch], 0
jz short loc_32897
mov rax, [rbp+var_10]
mov rax, [rax+220h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+218h]
jbe short loc_32897
mov rdi, [rbp+var_10]
call reset_tree
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov rcx, [rbp+var_28]
call tree_insert
mov [rbp+var_8], rax
jmp loc_32A63
loc_32897:
mov rax, [rbp+var_10]
mov eax, [rax+210h]
add eax, [rbp+var_1C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
cmp byte ptr [rax+278h], 0
jz short loc_328DC
lea rax, key_memory_TREE
mov edi, [rax]
mov eax, [rbp+var_44]
mov esi, eax
mov rax, [rbp+var_10]
mov rdx, [rax+288h]
or rdx, 10h
call my_malloc
mov [rbp+var_38], rax
jmp short loc_328F5
loc_328DC:
mov rdi, [rbp+var_10]
add rdi, 238h
mov eax, [rbp+var_44]
mov esi, eax
call alloc_root
mov [rbp+var_38], rax
loc_328F5:
cmp [rbp+var_38], 0
jnz short loc_32909
mov [rbp+var_8], 0
jmp loc_32A63
loc_32909:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_40]
mov rax, [rax]
mov [rax], rcx
mov rax, [rbp+var_38]
lea rcx, null_element
mov [rax+8], rcx
mov rax, [rbp+var_38]
lea rcx, null_element
mov [rax], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+208h], 0
jnz short loc_32988
mov eax, [rbp+var_1C]
cmp rax, 8
jnz short loc_32958
mov rcx, [rbp+var_18]
mov rax, [rbp+var_38]
mov [rax+18h], rcx
jmp short loc_32986
loc_32958:
mov rcx, [rbp+var_38]
add rcx, 18h
add rcx, 8
mov rax, [rbp+var_38]
mov [rax+18h], rcx
mov rax, [rbp+var_38]
mov rdi, [rax+18h]
mov rsi, [rbp+var_18]
mov eax, [rbp+var_1C]
mov edx, eax
sub rdx, 8
call _memcpy
loc_32986:
jmp short loc_329A7
loc_32988:
mov rdi, [rbp+var_38]
mov rax, [rbp+var_10]
mov eax, [rax+208h]
add rdi, rax
mov rsi, [rbp+var_18]
mov eax, [rbp+var_1C]
mov edx, eax
call _memcpy
loc_329A7:
mov rax, [rbp+var_38]
mov ecx, [rax+10h]
and ecx, 80000000h
or ecx, 1
mov [rax+10h], ecx
mov rax, [rbp+var_10]
mov ecx, [rax+20Ch]
add ecx, 1
mov [rax+20Ch], ecx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
call rb_insert
jmp short loc_32A57
loc_329E0:
mov rax, [rbp+var_10]
mov eax, [rax+290h]
and eax, 1
cmp eax, 0
jz short loc_329FC
mov [rbp+var_8], 0
jmp short loc_32A63
loc_329FC:
mov rax, [rbp+var_38]
mov edx, [rax+10h]
and edx, 7FFFFFFFh
add edx, 1
mov ecx, [rax+10h]
and edx, 7FFFFFFFh
and ecx, 80000000h
or ecx, edx
mov [rax+10h], ecx
mov rax, [rbp+var_38]
mov eax, [rax+10h]
and eax, 7FFFFFFFh
cmp eax, 0
jnz short loc_32A55
mov rax, [rbp+var_38]
mov edx, [rax+10h]
and edx, 7FFFFFFFh
add edx, 0FFFFFFFFh
mov ecx, [rax+10h]
and edx, 7FFFFFFFh
and ecx, 80000000h
or ecx, edx
mov [rax+10h], ecx
loc_32A55:
jmp short $+2
loc_32A57:
jmp short $+2
loc_32A59:
jmp short $+2
loc_32A5B:
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_32A63:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
|
long long tree_insert(long long a1, long long a2, unsigned int a3, long long a4)
{
int v4; // eax
long long **v5; // rax
long long **v6; // rax
long long ( *v8)(long long, long long, long long); // [rsp+8h] [rbp-58h]
unsigned int v9; // [rsp+1Ch] [rbp-44h]
long long **v10; // [rsp+20h] [rbp-40h]
long long v11; // [rsp+28h] [rbp-38h]
unsigned int v14; // [rsp+44h] [rbp-1Ch]
v10 = (long long **)(a1 + 8);
*(_QWORD *)(a1 + 8) = a1;
v11 = *(_QWORD *)a1;
while ( (_UNKNOWN *)v11 != &null_element )
{
v8 = *(long long ( **)(long long, long long, long long))(a1 + 552);
v4 = *(_DWORD *)(a1 + 520) ? v8(a4, *(unsigned int *)(a1 + 520) + v11, a2) : v8(a4, *(_QWORD *)(v11 + 24), a2);
if ( !v4 )
break;
if ( v4 >= 0 )
{
v6 = v10++;
v6[1] = (long long *)v11;
v11 = *(_QWORD *)v11;
}
else
{
v5 = v10++;
v5[1] = (long long *)(v11 + 8);
v11 = *(_QWORD *)(v11 + 8);
}
}
if ( (_UNKNOWN *)v11 != &null_element )
{
if ( (*(_DWORD *)(a1 + 656) & 1) != 0 )
return 0LL;
*(_DWORD *)(v11 + 16) = ((*(_DWORD *)(v11 + 16) & 0x7FFFFFFF) + 1) & 0x7FFFFFFF | *(_DWORD *)(v11 + 16) & 0x80000000;
if ( (*(_DWORD *)(v11 + 16) & 0x7FFFFFFF) == 0 )
*(_DWORD *)(v11 + 16) = ((*(_DWORD *)(v11 + 16) & 0x7FFFFFFF) - 1) & 0x7FFFFFFF | *(_DWORD *)(v11 + 16) & 0x80000000;
return v11;
}
if ( (*(_DWORD *)(a1 + 656) & 2) == 0 )
{
v9 = *(_DWORD *)(a1 + 528) + a3 + 24;
*(_QWORD *)(a1 + 544) += v9;
if ( *(_QWORD *)(a1 + 536) && *(_DWORD *)(a1 + 524) && *(_QWORD *)(a1 + 544) > *(_QWORD *)(a1 + 536) )
{
reset_tree((_QWORD *)a1);
return tree_insert(a1, a2, a3, a4);
}
v14 = a3 + *(_DWORD *)(a1 + 528);
if ( *(_BYTE *)(a1 + 632) )
v11 = my_malloc(key_memory_TREE, v9, *(_DWORD *)(a1 + 648) | 0x10u);
else
v11 = alloc_root(a1 + 568, v9);
if ( !v11 )
return 0LL;
**v10 = v11;
*(_QWORD *)(v11 + 8) = &null_element;
*(_QWORD *)v11 = &null_element;
if ( *(_DWORD *)(a1 + 520) )
{
memcpy(*(unsigned int *)(a1 + 520) + v11, a2, v14);
}
else if ( v14 == 8LL )
{
*(_QWORD *)(v11 + 24) = a2;
}
else
{
*(_QWORD *)(v11 + 24) = v11 + 32;
memcpy(*(_QWORD *)(v11 + 24), a2, v14 - 8LL);
}
*(_DWORD *)(v11 + 16) = *(_DWORD *)(v11 + 16) & 0x80000000 | 1;
++*(_DWORD *)(a1 + 524);
rb_insert(a1, v10, v11);
return v11;
}
return 1LL;
}
|
tree_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x40],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
LAB_00132719:
LEA RAX,[0x2db458]
CMP qword ptr [RBP + -0x38],RAX
JZ 0x00132787
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x228]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x208],0x0
JZ 0x00132761
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x208]
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0013276d
LAB_00132761:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x60],RAX
LAB_0013276d:
MOV RAX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x18]
CALL RAX
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JNZ 0x00132789
LAB_00132787:
JMP 0x001327df
LAB_00132789:
CMP dword ptr [RBP + -0x2c],0x0
JGE 0x001327b8
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RBP + -0x40],RDX
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001327da
LAB_001327b8:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RBP + -0x40],RDX
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
LAB_001327da:
JMP 0x00132719
LAB_001327df:
LEA RAX,[0x2db458]
CMP qword ptr [RBP + -0x38],RAX
JNZ 0x001329e0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x290]
AND EAX,0x2
CMP EAX,0x0
JZ 0x00132810
MOV EAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00132a63
LAB_00132810:
MOV EAX,dword ptr [RBP + -0x1c]
ADD RAX,0x18
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x210]
ADD RAX,RCX
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x220]
MOV qword ptr [RAX + 0x220],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x218],0x0
JZ 0x00132897
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x20c],0x0
JZ 0x00132897
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x220]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x218]
JBE 0x00132897
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001326b0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x28]
CALL 0x001326e0
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00132a63
LAB_00132897:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x210]
ADD EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x278],0x0
JZ 0x001328dc
LEA RAX,[0x49327c]
MOV EDI,dword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x44]
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x288]
OR RDX,0x10
CALL 0x0012ddf0
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001328f5
LAB_001328dc:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x238
MOV EAX,dword ptr [RBP + -0x44]
MOV ESI,EAX
CALL 0x0013a410
MOV qword ptr [RBP + -0x38],RAX
LAB_001328f5:
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00132909
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00132a63
LAB_00132909:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x2db458]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x2db458]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x208],0x0
JNZ 0x00132988
MOV EAX,dword ptr [RBP + -0x1c]
CMP RAX,0x8
JNZ 0x00132958
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x18],RCX
JMP 0x00132986
LAB_00132958:
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,0x18
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
MOV EDX,EAX
SUB RDX,0x8
CALL 0x00124200
LAB_00132986:
JMP 0x001329a7
LAB_00132988:
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x208]
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
MOV EDX,EAX
CALL 0x00124200
LAB_001329a7:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x10]
AND ECX,0x80000000
OR ECX,0x1
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x20c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x20c],ECX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00132a70
JMP 0x00132a57
LAB_001329e0:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x290]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001329fc
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00132a63
LAB_001329fc:
MOV RAX,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RAX + 0x10]
AND EDX,0x7fffffff
ADD EDX,0x1
MOV ECX,dword ptr [RAX + 0x10]
AND EDX,0x7fffffff
AND ECX,0x80000000
OR ECX,EDX
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x10]
AND EAX,0x7fffffff
CMP EAX,0x0
JNZ 0x00132a55
MOV RAX,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RAX + 0x10]
AND EDX,0x7fffffff
ADD EDX,-0x1
MOV ECX,dword ptr [RAX + 0x10]
AND EDX,0x7fffffff
AND ECX,0x80000000
OR ECX,EDX
MOV dword ptr [RAX + 0x10],ECX
LAB_00132a55:
JMP 0x00132a57
LAB_00132a57:
JMP 0x00132a59
LAB_00132a59:
JMP 0x00132a5b
LAB_00132a5b:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_00132a63:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
int8 * tree_insert(int8 *param_1,void *param_2,int param_3,int8 param_4)
{
int iVar1;
uint uVar2;
uint uVar3;
int8 *puVar4;
long local_68;
int8 *local_48;
int8 *local_40;
local_48 = param_1 + 1;
*local_48 = param_1;
local_40 = (int8 *)*param_1;
while (local_40 != (int8 *)null_element) {
if (*(int *)(param_1 + 0x41) == 0) {
local_68 = local_40[3];
}
else {
local_68 = (long)local_40 + (ulong)*(uint *)(param_1 + 0x41);
}
iVar1 = (*(code *)param_1[0x45])(param_4,local_68,param_2);
if (iVar1 == 0) break;
if (iVar1 < 0) {
local_48[1] = local_40 + 1;
local_40 = (int8 *)local_40[1];
}
else {
local_48[1] = local_40;
local_40 = (int8 *)*local_40;
}
local_48 = local_48 + 1;
}
if (local_40 == (int8 *)null_element) {
if ((*(uint *)(param_1 + 0x52) & 2) != 0) {
return (int8 *)0x1;
}
uVar2 = param_3 + 0x18 + *(int *)(param_1 + 0x42);
param_1[0x44] = (ulong)uVar2 + param_1[0x44];
if (((param_1[0x43] != 0) && (*(int *)((long)param_1 + 0x20c) != 0)) &&
((ulong)param_1[0x43] < (ulong)param_1[0x44])) {
reset_tree(param_1);
puVar4 = (int8 *)tree_insert(param_1,param_2,param_3,param_4);
return puVar4;
}
uVar3 = *(int *)(param_1 + 0x42) + param_3;
if (*(char *)(param_1 + 0x4f) == '\0') {
local_40 = (int8 *)alloc_root(param_1 + 0x47,uVar2);
}
else {
local_40 = (int8 *)my_malloc(key_memory_TREE,uVar2,param_1[0x51] | 0x10);
}
if (local_40 == (int8 *)0x0) {
return (int8 *)0x0;
}
*(int8 **)*local_48 = local_40;
local_40[1] = null_element;
*local_40 = null_element;
if (*(int *)(param_1 + 0x41) == 0) {
if (uVar3 == 8) {
local_40[3] = param_2;
}
else {
local_40[3] = local_40 + 4;
memcpy((void *)local_40[3],param_2,(ulong)uVar3 - 8);
}
}
else {
memcpy((void *)((long)local_40 + (ulong)*(uint *)(param_1 + 0x41)),param_2,(ulong)uVar3);
}
*(uint *)(local_40 + 2) = *(uint *)(local_40 + 2) & 0x80000000 | 1;
*(int *)((long)param_1 + 0x20c) = *(int *)((long)param_1 + 0x20c) + 1;
rb_insert(param_1,local_48,local_40);
}
else {
if ((*(uint *)(param_1 + 0x52) & 1) != 0) {
return (int8 *)0x0;
}
*(uint *)(local_40 + 2) =
*(uint *)(local_40 + 2) & 0x80000000 |
(*(uint *)(local_40 + 2) & 0x7fffffff) + 1 & 0x7fffffff;
if ((*(uint *)(local_40 + 2) & 0x7fffffff) == 0) {
*(uint *)(local_40 + 2) =
*(uint *)(local_40 + 2) & 0x80000000 |
(*(uint *)(local_40 + 2) & 0x7fffffff) - 1 & 0x7fffffff;
}
}
return local_40;
}
|
|
59,492
|
ma_copy_key
|
eloqsql/storage/maria/ma_key.c
|
void _ma_copy_key(MARIA_KEY *to, const MARIA_KEY *from)
{
memcpy(to->data, from->data, from->data_length + from->ref_length);
to->keyinfo= from->keyinfo;
to->data_length= from->data_length;
to->ref_length= from->ref_length;
to->flag= from->flag;
}
|
O3
|
c
|
ma_copy_key:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq (%rsi), %rsi
movl 0x14(%rbx), %edx
addl 0x10(%rbx), %edx
callq 0x29080
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
movl 0x10(%rbx), %eax
movl %eax, 0x10(%r14)
movl 0x14(%rbx), %eax
movl %eax, 0x14(%r14)
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r14)
popq %rbx
popq %r14
popq %rbp
retq
|
_ma_copy_key:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov rdi, [rdi]
mov rsi, [rsi]
mov edx, [rbx+14h]
add edx, [rbx+10h]
call _memcpy
mov rax, [rbx+8]
mov [r14+8], rax
mov eax, [rbx+10h]
mov [r14+10h], eax
mov eax, [rbx+14h]
mov [r14+14h], eax
mov eax, [rbx+18h]
mov [r14+18h], eax
pop rbx
pop r14
pop rbp
retn
|
long long ma_copy_key(long long a1, long long a2)
{
long long result; // rax
memcpy(*(_QWORD *)a1, *(_QWORD *)a2, (unsigned int)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 20)));
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a2 + 8);
*(_DWORD *)(a1 + 16) = *(_DWORD *)(a2 + 16);
*(_DWORD *)(a1 + 20) = *(_DWORD *)(a2 + 20);
result = *(unsigned int *)(a2 + 24);
*(_DWORD *)(a1 + 24) = result;
return result;
}
|
_ma_copy_key:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [RDI]
MOV RSI,qword ptr [RSI]
MOV EDX,dword ptr [RBX + 0x14]
ADD EDX,dword ptr [RBX + 0x10]
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [R14 + 0x8],RAX
MOV EAX,dword ptr [RBX + 0x10]
MOV dword ptr [R14 + 0x10],EAX
MOV EAX,dword ptr [RBX + 0x14]
MOV dword ptr [R14 + 0x14],EAX
MOV EAX,dword ptr [RBX + 0x18]
MOV dword ptr [R14 + 0x18],EAX
POP RBX
POP R14
POP RBP
RET
|
void _ma_copy_key(int8 *param_1,int8 *param_2)
{
memcpy((void *)*param_1,(void *)*param_2,
(ulong)(uint)(*(int *)((long)param_2 + 0x14) + *(int *)(param_2 + 2)));
param_1[1] = param_2[1];
*(int4 *)(param_1 + 2) = *(int4 *)(param_2 + 2);
*(int4 *)((long)param_1 + 0x14) = *(int4 *)((long)param_2 + 0x14);
*(int4 *)(param_1 + 3) = *(int4 *)(param_2 + 3);
return;
}
|
|
59,493
|
stbi__load_and_postprocess_8bit
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h
|
static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 8);
if (result == NULL)
return NULL;
// it is the responsibility of the loaders to make sure we get either 8 or 16 bit.
STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16);
if (ri.bits_per_channel != 8) {
result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 8;
}
// @TODO: move stbi__convert_format to here
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi_uc));
}
return (unsigned char *) result;
}
|
O0
|
c
|
stbi__load_and_postprocess_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
leaq -0x38(%rbp), %r9
movl $0x8, (%rsp)
callq 0x66500
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x66188
movq $0x0, -0x8(%rbp)
jmp 0x66288
cmpl $0x8, -0x38(%rbp)
je 0x66194
cmpl $0x10, -0x38(%rbp)
jne 0x66196
jmp 0x661b5
leaq 0x2a26f(%rip), %rdi # 0x9040c
leaq 0x2a29e(%rip), %rsi # 0x90442
movl $0x4f5, %edx # imm = 0x4F5
leaq 0x2a2fb(%rip), %rcx # 0x904ab
callq 0xb210
cmpl $0x8, -0x38(%rbp)
je 0x66209
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x661e6
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x5c(%rbp)
jmp 0x661ec
movl -0x2c(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x48(%rbp), %edx
movl -0x4c(%rbp), %esi
movq -0x58(%rbp), %rdi
movl -0x5c(%rbp), %ecx
callq 0x667a0
movq %rax, -0x40(%rbp)
movl $0x8, -0x38(%rbp)
movq %fs:0x0, %rax
leaq -0x18(%rax), %rax
cmpl $0x0, (%rax)
je 0x6623b
movq %fs:0x0, %rax
leaq -0x14(%rax), %rax
cmpl $0x0, (%rax)
jne 0x66244
jmp 0x66280
cmpl $0x0, 0x5f79e(%rip) # 0xc59e0
je 0x66280
cmpl $0x0, -0x2c(%rbp)
je 0x66252
movl -0x2c(%rbp), %eax
movl %eax, -0x60(%rbp)
jmp 0x6625b
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rax
movl (%rax), %edx
movslq -0x44(%rbp), %rax
shlq $0x0, %rax
movl %eax, %ecx
callq 0x66850
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
stbi__load_and_postprocess_8bit:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8d, [rbp+var_2C]
lea r9, [rbp+var_38]
mov [rsp+70h+var_70], 8
call stbi__load_main
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
jnz short loc_66188
mov [rbp+var_8], 0
jmp loc_66288
loc_66188:
cmp [rbp+var_38], 8
jz short loc_66194
cmp [rbp+var_38], 10h
jnz short loc_66196
loc_66194:
jmp short loc_661B5
loc_66196:
lea rdi, aRiBitsPerChann; "ri.bits_per_channel == 8 || ri.bits_per"...
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov edx, 4F5h
lea rcx, aUnsignedCharSt; "unsigned char *stbi__load_and_postproce"...
call ___assert_fail
loc_661B5:
cmp [rbp+var_38], 8
jz short loc_66209
mov rax, [rbp+var_40]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov [rbp+var_4C], eax
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_48], eax
cmp [rbp+var_2C], 0
jnz short loc_661E6
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_5C], eax
jmp short loc_661EC
loc_661E6:
mov eax, [rbp+var_2C]
mov [rbp+var_5C], eax
loc_661EC:
mov edx, [rbp+var_48]
mov esi, [rbp+var_4C]
mov rdi, [rbp+var_58]
mov ecx, [rbp+var_5C]
call stbi__convert_16_to_8
mov [rbp+var_40], rax
mov [rbp+var_38], 8
loc_66209:
mov rax, fs:0
lea rax, [rax-18h]
cmp dword ptr [rax], 0
jz short loc_6623B
mov rax, fs:0
lea rax, [rax-14h]
cmp dword ptr [rax], 0
jnz short loc_66244
jmp short loc_66280
loc_6623B:
cmp cs:stbi__vertically_flip_on_load_global, 0
jz short loc_66280
loc_66244:
cmp [rbp+var_2C], 0
jz short loc_66252
mov eax, [rbp+var_2C]
mov [rbp+var_60], eax
jmp short loc_6625B
loc_66252:
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_60], eax
loc_6625B:
mov eax, [rbp+var_60]
mov [rbp+var_44], eax
mov rdi, [rbp+var_40]
mov rax, [rbp+var_18]
mov esi, [rax]
mov rax, [rbp+var_20]
mov edx, [rax]
movsxd rax, [rbp+var_44]
shl rax, 0
mov ecx, eax
call stbi__vertical_flip
loc_66280:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_66288:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long stbi__load_and_postprocess_8bit(
long long a1,
unsigned int *a2,
unsigned int *a3,
unsigned int *a4,
unsigned int a5)
{
unsigned int v6; // [rsp+10h] [rbp-60h]
unsigned int v7; // [rsp+14h] [rbp-5Ch]
long long main; // [rsp+30h] [rbp-40h]
int v9; // [rsp+38h] [rbp-38h] BYREF
unsigned int v10; // [rsp+44h] [rbp-2Ch]
unsigned int *v11; // [rsp+48h] [rbp-28h]
unsigned int *v12; // [rsp+50h] [rbp-20h]
unsigned int *v13; // [rsp+58h] [rbp-18h]
long long v14; // [rsp+60h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
main = stbi__load_main(a1, (_DWORD)a2, (_DWORD)a3, (_DWORD)a4, a5, (unsigned int)&v9, 8);
if ( main )
{
if ( v9 != 8 && v9 != 16 )
__assert_fail(
"ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h",
1269LL,
"unsigned char *stbi__load_and_postprocess_8bit(stbi__context *, int *, int *, int *, int)");
if ( v9 != 8 )
{
if ( v10 )
v7 = v10;
else
v7 = *v11;
main = stbi__convert_16_to_8(main, *v13, *v12, v7);
v9 = 8;
}
if ( *(_DWORD *)(__readfsqword(0) - 24) )
{
if ( !*(_DWORD *)(__readfsqword(0) - 20) )
return main;
}
else if ( !stbi__vertically_flip_on_load_global )
{
return main;
}
if ( v10 )
v6 = v10;
else
v6 = *v11;
stbi__vertical_flip(main, *v13, *v12, v6);
return main;
}
return 0LL;
}
|
stbi__load_and_postprocess_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,dword ptr [RBP + -0x2c]
LEA R9,[RBP + -0x38]
MOV dword ptr [RSP],0x8
CALL 0x00166500
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x00166188
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00166288
LAB_00166188:
CMP dword ptr [RBP + -0x38],0x8
JZ 0x00166194
CMP dword ptr [RBP + -0x38],0x10
JNZ 0x00166196
LAB_00166194:
JMP 0x001661b5
LAB_00166196:
LEA RDI,[0x19040c]
LEA RSI,[0x190442]
MOV EDX,0x4f5
LEA RCX,[0x1904ab]
CALL 0x0010b210
LAB_001661b5:
CMP dword ptr [RBP + -0x38],0x8
JZ 0x00166209
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x48],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x001661e6
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x001661ec
LAB_001661e6:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x5c],EAX
LAB_001661ec:
MOV EDX,dword ptr [RBP + -0x48]
MOV ESI,dword ptr [RBP + -0x4c]
MOV RDI,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x5c]
CALL 0x001667a0
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x38],0x8
LAB_00166209:
MOV RAX,qword ptr FS:[0x0]
LEA RAX,[RAX + -0x18]
CMP dword ptr [RAX],0x0
JZ 0x0016623b
MOV RAX,qword ptr FS:[0x0]
LEA RAX,[RAX + -0x14]
CMP dword ptr [RAX],0x0
JNZ 0x00166244
JMP 0x00166280
LAB_0016623b:
CMP dword ptr [0x001c59e0],0x0
JZ 0x00166280
LAB_00166244:
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x00166252
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x60],EAX
JMP 0x0016625b
LAB_00166252:
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x60],EAX
LAB_0016625b:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x44],EAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RAX]
MOVSXD RAX,dword ptr [RBP + -0x44]
SHL RAX,0x0
MOV ECX,EAX
CALL 0x00166850
LAB_00166280:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_00166288:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
long stbi__load_and_postprocess_8bit
(int8 param_1,int4 *param_2,int4 *param_3,int *param_4,int param_5)
{
int iVar1;
long *in_FS_OFFSET;
int local_68;
int local_64;
long local_48;
int local_40 [3];
int local_34;
int *local_30;
int4 *local_28;
int4 *local_20;
int8 local_18;
long local_10;
local_34 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_48 = stbi__load_main(param_1,param_2,param_3,param_4,param_5,local_40,8);
if (local_48 == 0) {
local_10 = 0;
}
else {
if ((local_40[0] != 8) && (local_40[0] != 0x10)) {
/* WARNING: Subroutine does not return */
__assert_fail("ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h"
,0x4f5,
"unsigned char *stbi__load_and_postprocess_8bit(stbi__context *, int *, int *, int *, int)"
);
}
if (local_40[0] != 8) {
if (local_34 == 0) {
local_64 = *local_30;
}
else {
local_64 = local_34;
}
local_48 = stbi__convert_16_to_8(local_48,*local_20,*local_28,local_64);
local_40[0] = 8;
}
iVar1 = stbi__vertically_flip_on_load_global;
if (*(int *)(*in_FS_OFFSET + -0x18) != 0) {
iVar1 = *(int *)(*in_FS_OFFSET + -0x14);
}
if (iVar1 != 0) {
if (local_34 == 0) {
local_68 = *local_30;
}
else {
local_68 = local_34;
}
stbi__vertical_flip(local_48,*local_20,*local_28,local_68);
}
local_10 = local_48;
}
return local_10;
}
|
|
59,494
|
intern_filename
|
eloqsql/mysys/mf_pack.c
|
char *intern_filename(char *to, const char *from)
{
size_t length, to_length;
char buff[FN_REFLEN + 1];
if (from == to)
{ /* Dirname may destroy from */
(void) strnmov(buff, from, FN_REFLEN);
from=buff;
}
length= dirname_part(to, from, &to_length); /* Copy dirname & fix chars */
(void) strnmov(to + to_length, from + length, FN_REFLEN - to_length);
return (to);
}
|
O3
|
c
|
intern_filename:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x20(%rbp)
cmpq %rdi, %rsi
jne 0x34f8b
leaq -0x230(%rbp), %r15
movl $0x200, %edx # imm = 0x200
movq %r15, %rdi
movq %r14, %rsi
callq 0x63204
movq %r15, %r14
leaq -0x238(%rbp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2a67d
movq (%r15), %rcx
leaq (%rbx,%rcx), %rdi
addq %rax, %r14
movl $0x200, %edx # imm = 0x200
subq %rcx, %rdx
movq %r14, %rsi
callq 0x63204
movq %fs:0x28, %rax
cmpq -0x20(%rbp), %rax
jne 0x34fda
movq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x243e0
|
intern_filename:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 228h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_20], rax
cmp rsi, rdi
jnz short loc_34F8B
lea r15, [rbp+var_230]
mov edx, 200h
mov rdi, r15
mov rsi, r14
call strnmov
mov r14, r15
loc_34F8B:
lea r15, [rbp+var_238]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call dirname_part
mov rcx, [r15]
lea rdi, [rbx+rcx]
add r14, rax
mov edx, 200h
sub rdx, rcx
mov rsi, r14
call strnmov
mov rax, fs:28h
cmp rax, [rbp+var_20]
jnz short loc_34FDA
mov rax, rbx
add rsp, 228h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_34FDA:
call ___stack_chk_fail
|
long long intern_filename(long long a1, _BYTE *a2)
{
_BYTE *v2; // r14
long long v3; // rax
long long v5; // [rsp+8h] [rbp-238h] BYREF
_BYTE v6[528]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v7; // [rsp+220h] [rbp-20h]
v2 = a2;
v7 = __readfsqword(0x28u);
if ( a2 == (_BYTE *)a1 )
{
strnmov(v6, a2, 512LL);
v2 = v6;
}
v3 = dirname_part(a1, v2, &v5);
strnmov(a1 + v5, &v2[v3], 512 - v5);
return a1;
}
|
intern_filename:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP RSI,RDI
JNZ 0x00134f8b
LEA R15,[RBP + -0x230]
MOV EDX,0x200
MOV RDI,R15
MOV RSI,R14
CALL 0x00163204
MOV R14,R15
LAB_00134f8b:
LEA R15,[RBP + -0x238]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0012a67d
MOV RCX,qword ptr [R15]
LEA RDI,[RBX + RCX*0x1]
ADD R14,RAX
MOV EDX,0x200
SUB RDX,RCX
MOV RSI,R14
CALL 0x00163204
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00134fda
MOV RAX,RBX
ADD RSP,0x228
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00134fda:
CALL 0x001243e0
|
int1 * intern_filename(int1 *param_1,int1 *param_2)
{
long lVar1;
int1 *puVar2;
long in_FS_OFFSET;
long local_240;
int1 local_238 [528];
long local_28;
local_28 = *(long *)(in_FS_OFFSET + 0x28);
puVar2 = param_2;
if (param_2 == param_1) {
puVar2 = local_238;
strnmov(puVar2,param_2,0x200);
}
lVar1 = dirname_part(param_1,puVar2,&local_240);
strnmov(param_1 + local_240,puVar2 + lVar1,0x200 - local_240);
if (*(long *)(in_FS_OFFSET + 0x28) == local_28) {
return param_1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,495
|
ma_open_keyfile
|
eloqsql/storage/maria/ma_open.c
|
int _ma_open_keyfile(MARIA_SHARE *share)
{
/*
Modifications to share->kfile should be under intern_lock to protect
against a concurrent checkpoint.
*/
mysql_mutex_lock(&share->intern_lock);
share->kfile.file= mysql_file_open(key_file_kfile,
share->unique_file_name.str,
share->mode | O_SHARE | O_NOFOLLOW | O_CLOEXEC,
MYF(MY_WME | MY_NOSYMLINKS));
mysql_mutex_unlock(&share->intern_lock);
return (share->kfile.file < 0);
}
|
O3
|
c
|
ma_open_keyfile:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x8f0(%rdi), %r14
cmpq $0x0, 0x930(%rdi)
jne 0x35cba
movq %r14, %rdi
callq 0x291d0
leaq 0x3ca22a(%rip), %rax # 0x3ffe58
movl (%rax), %esi
movq 0x5b0(%rbx), %r12
movl $0xa0000, %r15d # imm = 0xA0000
orl 0x7a4(%rbx), %r15d
leaq 0x353405(%rip), %rax # 0x389050
movq (%rax), %rax
leaq -0x78(%rbp), %rdi
leaq -0x30(%rbp), %r13
movl $0x2, %edx
movq %r12, %rcx
movq %r13, %r8
callq *0x148(%rax)
movq %rax, (%r13)
testq %rax, %rax
jne 0x35cd3
movl $0x210, %edx # imm = 0x210
movq %r12, %rdi
movl %r15d, %esi
callq 0xa3234
movl %eax, %r15d
movl %r15d, 0x760(%rbx)
movq 0x930(%rbx), %rdi
testq %rdi, %rdi
jne 0x35d1c
movq %r14, %rdi
callq 0x291a0
movl 0x760(%rbx), %eax
shrl $0x1f, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa57ac(%rip), %rsi # 0xdb46d
movq %r14, %rdi
movl $0x811, %edx # imm = 0x811
callq 0x2ee0b
jmp 0x35c27
leaq 0x353376(%rip), %r13 # 0x389050
movq (%r13), %rcx
leaq 0xa5788(%rip), %rsi # 0xdb46d
movq %rax, %rdi
movl $0x815, %edx # imm = 0x815
callq *0x1f0(%rcx)
movl $0x210, %edx # imm = 0x210
movq %r12, %rdi
movl %r15d, %esi
callq 0xa3234
movl %eax, %r15d
movq (%r13), %rax
movq -0x30(%rbp), %rdi
movl %r15d, %esi
callq *0x200(%rax)
jmp 0x35c83
leaq 0x35332d(%rip), %rax # 0x389050
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x35c9a
|
_ma_open_keyfile:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
lea r14, [rdi+8F0h]
cmp qword ptr [rdi+930h], 0
jnz loc_35CBA
mov rdi, r14
call _pthread_mutex_lock
loc_35C27:
lea rax, key_file_kfile
mov esi, [rax]
mov r12, [rbx+5B0h]
mov r15d, 0A0000h
or r15d, [rbx+7A4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_78]
lea r13, [rbp+var_30]
mov edx, 2
mov rcx, r12
mov r8, r13
call qword ptr [rax+148h]
mov [r13+0], rax
test rax, rax
jnz short loc_35CD3
mov edx, 210h
mov rdi, r12
mov esi, r15d
call my_open
mov r15d, eax
loc_35C83:
mov [rbx+760h], r15d
mov rdi, [rbx+930h]
test rdi, rdi
jnz loc_35D1C
loc_35C9A:
mov rdi, r14
call _pthread_mutex_unlock
mov eax, [rbx+760h]
shr eax, 1Fh
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_35CBA:
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r14
mov edx, 811h
call psi_mutex_lock
jmp loc_35C27
loc_35CD3:
lea r13, PSI_server
mov rcx, [r13+0]
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rax
mov edx, 815h
call qword ptr [rcx+1F0h]
mov edx, 210h
mov rdi, r12
mov esi, r15d
call my_open
mov r15d, eax
mov rax, [r13+0]
mov rdi, [rbp+var_30]
mov esi, r15d
call qword ptr [rax+200h]
jmp loc_35C83
loc_35D1C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_35C9A
|
long long ma_open_keyfile(long long a1)
{
long long v1; // r12
unsigned int v2; // r15d
long long v3; // rax
long long v4; // r15
_BYTE v6[72]; // [rsp+8h] [rbp-78h] BYREF
long long v7[6]; // [rsp+50h] [rbp-30h] BYREF
if ( *(_QWORD *)(a1 + 2352) )
psi_mutex_lock(a1 + 2288, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", 0x811u);
else
pthread_mutex_lock(a1 + 2288);
v1 = *(_QWORD *)(a1 + 1456);
v2 = *(_DWORD *)(a1 + 1956) | 0xA0000;
v3 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(
v6,
key_file_kfile,
2LL,
v1,
v7);
v7[0] = v3;
if ( v3 )
{
((void ( *)(long long, const char *, long long))PSI_server[62])(
v3,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
2069LL);
v4 = (unsigned int)my_open(v1, v2, 528LL);
((void ( *)(long long, long long))PSI_server[64])(v7[0], v4);
}
else
{
LODWORD(v4) = my_open(v1, v2, 528LL);
}
*(_DWORD *)(a1 + 1888) = v4;
if ( *(_QWORD *)(a1 + 2352) )
PSI_server[44]();
pthread_mutex_unlock(a1 + 2288);
return *(_DWORD *)(a1 + 1888) >> 31;
}
|
_ma_open_keyfile:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
LEA R14,[RDI + 0x8f0]
CMP qword ptr [RDI + 0x930],0x0
JNZ 0x00135cba
MOV RDI,R14
CALL 0x001291d0
LAB_00135c27:
LEA RAX,[0x4ffe58]
MOV ESI,dword ptr [RAX]
MOV R12,qword ptr [RBX + 0x5b0]
MOV R15D,0xa0000
OR R15D,dword ptr [RBX + 0x7a4]
LEA RAX,[0x489050]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x78]
LEA R13,[RBP + -0x30]
MOV EDX,0x2
MOV RCX,R12
MOV R8,R13
CALL qword ptr [RAX + 0x148]
MOV qword ptr [R13],RAX
TEST RAX,RAX
JNZ 0x00135cd3
MOV EDX,0x210
MOV RDI,R12
MOV ESI,R15D
CALL 0x001a3234
MOV R15D,EAX
LAB_00135c83:
MOV dword ptr [RBX + 0x760],R15D
MOV RDI,qword ptr [RBX + 0x930]
TEST RDI,RDI
JNZ 0x00135d1c
LAB_00135c9a:
MOV RDI,R14
CALL 0x001291a0
MOV EAX,dword ptr [RBX + 0x760]
SHR EAX,0x1f
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00135cba:
LEA RSI,[0x1db46d]
MOV RDI,R14
MOV EDX,0x811
CALL 0x0012ee0b
JMP 0x00135c27
LAB_00135cd3:
LEA R13,[0x489050]
MOV RCX,qword ptr [R13]
LEA RSI,[0x1db46d]
MOV RDI,RAX
MOV EDX,0x815
CALL qword ptr [RCX + 0x1f0]
MOV EDX,0x210
MOV RDI,R12
MOV ESI,R15D
CALL 0x001a3234
MOV R15D,EAX
MOV RAX,qword ptr [R13]
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,R15D
CALL qword ptr [RAX + 0x200]
JMP 0x00135c83
LAB_00135d1c:
LEA RAX,[0x489050]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00135c9a
|
uint _ma_open_keyfile(long param_1)
{
pthread_mutex_t *__mutex;
int8 uVar1;
int4 uVar2;
uint uVar3;
int1 local_80 [72];
long local_38;
__mutex = (pthread_mutex_t *)(param_1 + 0x8f0);
if (*(long *)(param_1 + 0x930) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",0x811)
;
}
uVar1 = *(int8 *)(param_1 + 0x5b0);
uVar3 = *(uint *)(param_1 + 0x7a4) | 0xa0000;
local_38 = (**(code **)(PSI_server + 0x148))(local_80,key_file_kfile,2,uVar1,&local_38);
if (local_38 == 0) {
uVar2 = my_open(uVar1,uVar3,0x210);
}
else {
(**(code **)(PSI_server + 0x1f0))
(local_38,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",0x815);
uVar2 = my_open(uVar1,uVar3,0x210);
(**(code **)(PSI_server + 0x200))(local_38,uVar2);
}
*(int4 *)(param_1 + 0x760) = uVar2;
if (*(long *)(param_1 + 0x930) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return *(uint *)(param_1 + 0x760) >> 0x1f;
}
|
|
59,496
|
ma_enlarge_root
|
eloqsql/storage/maria/ma_write.c
|
my_bool _ma_enlarge_root(MARIA_HA *info, MARIA_KEY *key, my_off_t *root)
{
uint t_length, nod_flag;
MARIA_KEY_PARAM s_temp;
MARIA_SHARE *share= info->s;
MARIA_PINNED_PAGE tmp_page_link, *page_link= &tmp_page_link;
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_PAGE page;
my_bool res= 0;
DBUG_ENTER("_ma_enlarge_root");
page.info= info;
page.keyinfo= keyinfo;
page.buff= info->buff;
page.flag= 0;
nod_flag= (*root != HA_OFFSET_ERROR) ? share->base.key_reflength : 0;
/* Store pointer to prev page if nod */
_ma_kpointer(info, page.buff + share->keypage_header, *root);
t_length= (*keyinfo->pack_key)(key, nod_flag, (uchar*) 0,
(uchar*) 0, (uchar*) 0, &s_temp);
page.size= share->keypage_header + t_length + nod_flag;
bzero(page.buff, share->keypage_header);
_ma_store_keynr(share, page.buff, keyinfo->key_nr);
if (nod_flag)
page.flag|= KEYPAGE_FLAG_ISNOD;
if (key->flag & (SEARCH_USER_KEY_HAS_TRANSID | SEARCH_PAGE_KEY_HAS_TRANSID))
page.flag|= KEYPAGE_FLAG_HAS_TRANSID;
(*keyinfo->store_key)(keyinfo, page.buff + share->keypage_header +
nod_flag, &s_temp);
/* Mark that info->buff was used */
info->keyread_buff_used= info->page_changed= 1;
if ((page.pos= _ma_new(info, PAGECACHE_PRIORITY_HIGH, &page_link)) ==
HA_OFFSET_ERROR)
DBUG_RETURN(1);
*root= page.pos;
page_store_info(share, &page);
/*
Clear unitialized part of page to avoid valgrind/purify warnings
and to get a clean page that is easier to compress and compare with
pages generated with redo
*/
bzero(page.buff + page.size, share->block_size - page.size);
if (share->now_transactional && _ma_log_new(&page, 1))
res= 1;
if (_ma_write_keypage(&page, page_link->write_lock,
PAGECACHE_PRIORITY_HIGH))
res= 1;
DBUG_RETURN(res);
}
|
O0
|
c
|
ma_enlarge_root:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
leaq -0x98(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa8(%rbp)
movb $0x0, -0xe1(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x10(%rbp), %rax
movq 0x378(%rax), %rax
movq %rax, -0xd0(%rbp)
movl $0x0, -0xb4(%rbp)
movq -0x20(%rbp), %rax
cmpq $-0x1, (%rax)
je 0x82fc7
movq -0x80(%rbp), %rax
movl 0x3e4(%rax), %eax
movl %eax, -0xec(%rbp)
jmp 0x82fd1
xorl %eax, %eax
movl %eax, -0xec(%rbp)
jmp 0x82fd1
movl -0xec(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq -0x80(%rbp), %rax
movl 0x744(%rax), %eax
addq %rax, %rsi
movq -0x20(%rbp), %rax
movq (%rax), %rdx
callq 0x6add0
movq -0xa8(%rbp), %rax
movq 0xf0(%rax), %rax
movq -0x18(%rbp), %rdi
movl -0x28(%rbp), %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq -0x78(%rbp), %r9
movq %r8, %rdx
movq %r8, %rcx
callq *%rax
movl %eax, -0x24(%rbp)
movq -0x80(%rbp), %rax
movl 0x744(%rax), %eax
addl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0xc0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x744(%rax), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2c0
movq -0xa8(%rbp), %rax
movb 0xa5(%rax), %dl
movq -0xd0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl 0x744(%rcx), %ecx
subl $0x1, %ecx
subl $0x1, %ecx
subl $0x2, %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
cmpl $0x0, -0x28(%rbp)
je 0x83098
movl -0xb4(%rbp), %eax
orl $0x1, %eax
movl %eax, -0xb4(%rbp)
movq -0x18(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x180000, %eax # imm = 0x180000
cmpl $0x0, %eax
je 0x830b8
movl -0xb4(%rbp), %eax
orl $0x2, %eax
movl %eax, -0xb4(%rbp)
movq -0xa8(%rbp), %rax
movq 0xf8(%rax), %rax
movq -0xa8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq -0x80(%rbp), %rcx
movl 0x744(%rcx), %ecx
addq %rcx, %rsi
movl -0x28(%rbp), %ecx
addq %rcx, %rsi
leaq -0x78(%rbp), %rdx
callq *%rax
movq -0x10(%rbp), %rax
movb $0x1, 0x684(%rax)
movq -0x10(%rbp), %rax
movb $0x1, 0x685(%rax)
movq -0x10(%rbp), %rdi
movl $0x6, %esi
leaq -0xa0(%rbp), %rdx
callq 0x6f650
movq %rax, -0xc8(%rbp)
cmpq $-0x1, %rax
jne 0x83130
jmp 0x83127
movb $0x1, -0x1(%rbp)
jmp 0x83237
movq -0xc8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movl -0xb4(%rbp), %eax
movb %al, %dl
movq -0xd0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl 0x744(%rcx), %ecx
subl $0x2, %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
movl -0xc0(%rbp), %eax
movl %eax, -0xe8(%rbp)
movl -0xe8(%rbp), %eax
movb %al, %dl
movq -0xd0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl 0x744(%rcx), %ecx
movb %dl, -0x1(%rax,%rcx)
movl -0xe8(%rbp), %eax
shrl $0x8, %eax
movb %al, %dl
movq -0xd0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl 0x744(%rcx), %ecx
movb %dl, -0x2(%rax,%rcx)
movq -0xd0(%rbp), %rdi
movl -0xc0(%rbp), %eax
addq %rax, %rdi
movq -0x80(%rbp), %rax
movl 0x7bc(%rax), %eax
subl -0xc0(%rbp), %eax
movl %eax, %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2c0
movq -0x80(%rbp), %rax
movsbl 0x7e7(%rax), %eax
cmpl $0x0, %eax
je 0x83206
leaq -0xe0(%rbp), %rdi
movl $0x1, %esi
callq 0x83250
movsbl %al, %eax
cmpl $0x0, %eax
je 0x83206
movb $0x1, -0xe1(%rbp)
movq -0xa0(%rbp), %rax
movl 0xc(%rax), %esi
leaq -0xe0(%rbp), %rdi
movl $0x6, %edx
callq 0x6f080
cmpb $0x0, %al
je 0x8322c
movb $0x1, -0xe1(%rbp)
jmp 0x8322e
movb -0xe1(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_enlarge_root:
push rbp
mov rbp, rsp
sub rsp, 0F0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_80], rax
lea rax, [rbp+var_98]
mov [rbp+var_A0], rax
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_A8], rax
mov [rbp+var_E1], 0
mov rax, [rbp+var_10]
mov [rbp+var_E0], rax
mov rax, [rbp+var_A8]
mov [rbp+var_D8], rax
mov rax, [rbp+var_10]
mov rax, [rax+378h]
mov [rbp+var_D0], rax
mov [rbp+var_B4], 0
mov rax, [rbp+var_20]
cmp qword ptr [rax], 0FFFFFFFFFFFFFFFFh
jz short loc_82FC7
mov rax, [rbp+var_80]
mov eax, [rax+3E4h]
mov [rbp+var_EC], eax
jmp short loc_82FD1
loc_82FC7:
xor eax, eax
mov [rbp+var_EC], eax
jmp short $+2
loc_82FD1:
mov eax, [rbp+var_EC]
mov [rbp+var_28], eax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_D0]
mov rax, [rbp+var_80]
mov eax, [rax+744h]
add rsi, rax
mov rax, [rbp+var_20]
mov rdx, [rax]
call _ma_kpointer
mov rax, [rbp+var_A8]
mov rax, [rax+0F0h]
mov rdi, [rbp+var_18]
mov esi, [rbp+var_28]
xor ecx, ecx
mov r8d, ecx
lea r9, [rbp+var_78]
mov rdx, r8
mov rcx, r8
call rax
mov [rbp+var_24], eax
mov rax, [rbp+var_80]
mov eax, [rax+744h]
add eax, [rbp+var_24]
add eax, [rbp+var_28]
mov [rbp+var_C0], eax
mov rdi, [rbp+var_D0]
mov rax, [rbp+var_80]
mov eax, [rax+744h]
mov edx, eax
xor esi, esi
call _memset
mov rax, [rbp+var_A8]
mov dl, [rax+0A5h]
mov rax, [rbp+var_D0]
mov rcx, [rbp+var_80]
mov ecx, [rcx+744h]
sub ecx, 1
sub ecx, 1
sub ecx, 2
mov ecx, ecx
mov [rax+rcx], dl
cmp [rbp+var_28], 0
jz short loc_83098
mov eax, [rbp+var_B4]
or eax, 1
mov [rbp+var_B4], eax
loc_83098:
mov rax, [rbp+var_18]
mov eax, [rax+18h]
and eax, 180000h
cmp eax, 0
jz short loc_830B8
mov eax, [rbp+var_B4]
or eax, 2
mov [rbp+var_B4], eax
loc_830B8:
mov rax, [rbp+var_A8]
mov rax, [rax+0F8h]
mov rdi, [rbp+var_A8]
mov rsi, [rbp+var_D0]
mov rcx, [rbp+var_80]
mov ecx, [rcx+744h]
add rsi, rcx
mov ecx, [rbp+var_28]
add rsi, rcx
lea rdx, [rbp+var_78]
call rax
mov rax, [rbp+var_10]
mov byte ptr [rax+684h], 1
mov rax, [rbp+var_10]
mov byte ptr [rax+685h], 1
mov rdi, [rbp+var_10]
mov esi, 6
lea rdx, [rbp+var_A0]
call _ma_new
mov [rbp+var_C8], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_83130
jmp short $+2
loc_83127:
mov [rbp+var_1], 1
jmp loc_83237
loc_83130:
mov rcx, [rbp+var_C8]
mov rax, [rbp+var_20]
mov [rax], rcx
mov eax, [rbp+var_B4]
mov dl, al
mov rax, [rbp+var_D0]
mov rcx, [rbp+var_80]
mov ecx, [rcx+744h]
sub ecx, 2
sub ecx, 1
mov ecx, ecx
mov [rax+rcx], dl
mov eax, [rbp+var_C0]
mov [rbp+var_E8], eax
mov eax, [rbp+var_E8]
mov dl, al
mov rax, [rbp+var_D0]
mov rcx, [rbp+var_80]
mov ecx, [rcx+744h]
mov [rax+rcx-1], dl
mov eax, [rbp+var_E8]
shr eax, 8
mov dl, al
mov rax, [rbp+var_D0]
mov rcx, [rbp+var_80]
mov ecx, [rcx+744h]
mov [rax+rcx-2], dl
mov rdi, [rbp+var_D0]
mov eax, [rbp+var_C0]
add rdi, rax
mov rax, [rbp+var_80]
mov eax, [rax+7BCh]
sub eax, [rbp+var_C0]
mov eax, eax
mov edx, eax
xor esi, esi
call _memset
mov rax, [rbp+var_80]
movsx eax, byte ptr [rax+7E7h]
cmp eax, 0
jz short loc_83206
lea rdi, [rbp+var_E0]
mov esi, 1
call _ma_log_new
movsx eax, al
cmp eax, 0
jz short loc_83206
mov [rbp+var_E1], 1
loc_83206:
mov rax, [rbp+var_A0]
mov esi, [rax+0Ch]
lea rdi, [rbp+var_E0]
mov edx, 6
call _ma_write_keypage
cmp al, 0
jz short loc_8322C
mov [rbp+var_E1], 1
loc_8322C:
jmp short $+2
loc_8322E:
mov al, [rbp+var_E1]
mov [rbp+var_1], al
loc_83237:
mov al, [rbp+var_1]
add rsp, 0F0h
pop rbp
retn
|
char ma_enlarge_root(long long *a1, long long a2, unsigned long long *a3)
{
unsigned int v4; // [rsp+4h] [rbp-ECh]
char v5; // [rsp+9h] [rbp-E7h]
char v6; // [rsp+Fh] [rbp-E1h]
long long *v7[2]; // [rsp+10h] [rbp-E0h] BYREF
long long v8; // [rsp+20h] [rbp-D0h]
long long v9; // [rsp+28h] [rbp-C8h]
unsigned int v10; // [rsp+30h] [rbp-C0h]
int v11; // [rsp+3Ch] [rbp-B4h]
long long v12; // [rsp+48h] [rbp-A8h]
char *v13; // [rsp+50h] [rbp-A0h] BYREF
char v14; // [rsp+58h] [rbp-98h] BYREF
long long v15; // [rsp+70h] [rbp-80h]
_BYTE v16[80]; // [rsp+78h] [rbp-78h] BYREF
unsigned int v17; // [rsp+C8h] [rbp-28h]
int v18; // [rsp+CCh] [rbp-24h]
unsigned long long *v19; // [rsp+D0h] [rbp-20h]
long long v20; // [rsp+D8h] [rbp-18h]
long long *v21; // [rsp+E0h] [rbp-10h]
v21 = a1;
v20 = a2;
v19 = a3;
v15 = *a1;
v13 = &v14;
v12 = *(_QWORD *)(a2 + 8);
v6 = 0;
v7[0] = a1;
v7[1] = (long long *)v12;
v8 = a1[111];
v11 = 0;
if ( *a3 == -1LL )
v4 = 0;
else
v4 = *(_DWORD *)(v15 + 996);
v17 = v4;
ma_kpointer((long long)v21, (_BYTE *)(*(unsigned int *)(v15 + 1860) + v8), *v19);
v18 = (*(long long ( **)(long long, _QWORD, _QWORD, _QWORD, _QWORD, _BYTE *))(v12 + 240))(
v20,
v17,
0LL,
0LL,
0LL,
v16);
v10 = v17 + v18 + *(_DWORD *)(v15 + 1860);
memset(v8, 0LL, *(unsigned int *)(v15 + 1860));
*(_BYTE *)(v8 + (unsigned int)(*(_DWORD *)(v15 + 1860) - 4)) = *(_BYTE *)(v12 + 165);
if ( v17 )
v11 |= 1u;
if ( (*(_DWORD *)(v20 + 24) & 0x180000) != 0 )
v11 |= 2u;
(*(void ( **)(long long, long long, _BYTE *))(v12 + 248))(v12, v17 + *(unsigned int *)(v15 + 1860) + v8, v16);
*((_BYTE *)v21 + 1668) = 1;
*((_BYTE *)v21 + 1669) = 1;
v9 = ma_new(v21, 6, &v13);
if ( v9 == -1 )
return 1;
*v19 = v9;
*(_BYTE *)(v8 + (unsigned int)(*(_DWORD *)(v15 + 1860) - 3)) = v11;
v5 = BYTE1(v10);
*(_BYTE *)(v8 + *(unsigned int *)(v15 + 1860) - 1) = v10;
*(_BYTE *)(v8 + *(unsigned int *)(v15 + 1860) - 2) = v5;
memset(v10 + v8, 0LL, *(_DWORD *)(v15 + 1980) - v10);
if ( *(_BYTE *)(v15 + 2023) && (unsigned __int8)ma_log_new(v7, 1LL) )
v6 = 1;
if ( ma_write_keypage(v7, *((_DWORD *)v13 + 3), 6) )
return 1;
return v6;
}
|
_ma_enlarge_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x80],RAX
LEA RAX,[RBP + -0x98]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0xa8],RAX
MOV byte ptr [RBP + -0xe1],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xe0],RAX
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xd8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x378]
MOV qword ptr [RBP + -0xd0],RAX
MOV dword ptr [RBP + -0xb4],0x0
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],-0x1
JZ 0x00182fc7
MOV RAX,qword ptr [RBP + -0x80]
MOV EAX,dword ptr [RAX + 0x3e4]
MOV dword ptr [RBP + -0xec],EAX
JMP 0x00182fd1
LAB_00182fc7:
XOR EAX,EAX
MOV dword ptr [RBP + -0xec],EAX
JMP 0x00182fd1
LAB_00182fd1:
MOV EAX,dword ptr [RBP + -0xec]
MOV dword ptr [RBP + -0x28],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0xd0]
MOV RAX,qword ptr [RBP + -0x80]
MOV EAX,dword ptr [RAX + 0x744]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RAX]
CALL 0x0016add0
MOV RAX,qword ptr [RBP + -0xa8]
MOV RAX,qword ptr [RAX + 0xf0]
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x28]
XOR ECX,ECX
MOV R8D,ECX
LEA R9,[RBP + -0x78]
MOV RDX,R8
MOV RCX,R8
CALL RAX
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV EAX,dword ptr [RAX + 0x744]
ADD EAX,dword ptr [RBP + -0x24]
ADD EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0xc0],EAX
MOV RDI,qword ptr [RBP + -0xd0]
MOV RAX,qword ptr [RBP + -0x80]
MOV EAX,dword ptr [RAX + 0x744]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2c0
MOV RAX,qword ptr [RBP + -0xa8]
MOV DL,byte ptr [RAX + 0xa5]
MOV RAX,qword ptr [RBP + -0xd0]
MOV RCX,qword ptr [RBP + -0x80]
MOV ECX,dword ptr [RCX + 0x744]
SUB ECX,0x1
SUB ECX,0x1
SUB ECX,0x2
MOV ECX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
CMP dword ptr [RBP + -0x28],0x0
JZ 0x00183098
MOV EAX,dword ptr [RBP + -0xb4]
OR EAX,0x1
MOV dword ptr [RBP + -0xb4],EAX
LAB_00183098:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x18]
AND EAX,0x180000
CMP EAX,0x0
JZ 0x001830b8
MOV EAX,dword ptr [RBP + -0xb4]
OR EAX,0x2
MOV dword ptr [RBP + -0xb4],EAX
LAB_001830b8:
MOV RAX,qword ptr [RBP + -0xa8]
MOV RAX,qword ptr [RAX + 0xf8]
MOV RDI,qword ptr [RBP + -0xa8]
MOV RSI,qword ptr [RBP + -0xd0]
MOV RCX,qword ptr [RBP + -0x80]
MOV ECX,dword ptr [RCX + 0x744]
ADD RSI,RCX
MOV ECX,dword ptr [RBP + -0x28]
ADD RSI,RCX
LEA RDX,[RBP + -0x78]
CALL RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x684],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x685],0x1
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x6
LEA RDX,[RBP + -0xa0]
CALL 0x0016f650
MOV qword ptr [RBP + -0xc8],RAX
CMP RAX,-0x1
JNZ 0x00183130
JMP 0x00183127
LAB_00183127:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00183237
LAB_00183130:
MOV RCX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV EAX,dword ptr [RBP + -0xb4]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0xd0]
MOV RCX,qword ptr [RBP + -0x80]
MOV ECX,dword ptr [RCX + 0x744]
SUB ECX,0x2
SUB ECX,0x1
MOV ECX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0xc0]
MOV dword ptr [RBP + -0xe8],EAX
MOV EAX,dword ptr [RBP + -0xe8]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0xd0]
MOV RCX,qword ptr [RBP + -0x80]
MOV ECX,dword ptr [RCX + 0x744]
MOV byte ptr [RAX + RCX*0x1 + -0x1],DL
MOV EAX,dword ptr [RBP + -0xe8]
SHR EAX,0x8
MOV DL,AL
MOV RAX,qword ptr [RBP + -0xd0]
MOV RCX,qword ptr [RBP + -0x80]
MOV ECX,dword ptr [RCX + 0x744]
MOV byte ptr [RAX + RCX*0x1 + -0x2],DL
MOV RDI,qword ptr [RBP + -0xd0]
MOV EAX,dword ptr [RBP + -0xc0]
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV EAX,dword ptr [RAX + 0x7bc]
SUB EAX,dword ptr [RBP + -0xc0]
MOV EAX,EAX
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2c0
MOV RAX,qword ptr [RBP + -0x80]
MOVSX EAX,byte ptr [RAX + 0x7e7]
CMP EAX,0x0
JZ 0x00183206
LEA RDI,[RBP + -0xe0]
MOV ESI,0x1
CALL 0x00183250
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00183206
MOV byte ptr [RBP + -0xe1],0x1
LAB_00183206:
MOV RAX,qword ptr [RBP + -0xa0]
MOV ESI,dword ptr [RAX + 0xc]
LEA RDI,[RBP + -0xe0]
MOV EDX,0x6
CALL 0x0016f080
CMP AL,0x0
JZ 0x0018322c
MOV byte ptr [RBP + -0xe1],0x1
LAB_0018322c:
JMP 0x0018322e
LAB_0018322e:
MOV AL,byte ptr [RBP + -0xe1]
MOV byte ptr [RBP + -0x1],AL
LAB_00183237:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0xf0
POP RBP
RET
|
int8 _ma_enlarge_root(long *param_1,long param_2,long *param_3)
{
char cVar1;
int8 uVar2;
int7 uVar3;
uint local_f4;
int1 local_e9;
long *local_e8;
long local_e0;
void *local_d8;
long local_d0;
uint local_c8;
uint local_bc;
long local_b0;
int1 *local_a8;
int1 local_a0 [24];
long local_88;
int1 local_80 [80];
uint local_30;
int local_2c;
long *local_28;
long local_20;
long *local_18;
int1 local_9;
local_88 = *param_1;
local_a8 = local_a0;
local_e0 = *(long *)(param_2 + 8);
local_e9 = 0;
local_d8 = (void *)param_1[0x6f];
local_bc = 0;
if (*param_3 == -1) {
local_f4 = 0;
}
else {
local_f4 = *(uint *)(local_88 + 0x3e4);
}
local_30 = local_f4;
local_e8 = param_1;
local_b0 = local_e0;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
_ma_kpointer(param_1,(long)local_d8 + (ulong)*(uint *)(local_88 + 0x744),*param_3);
local_2c = (**(code **)(local_b0 + 0xf0))(local_20,local_30,0,0,0,local_80);
local_c8 = *(int *)(local_88 + 0x744) + local_2c + local_30;
memset(local_d8,0,(ulong)*(uint *)(local_88 + 0x744));
*(int1 *)((long)local_d8 + (ulong)(*(int *)(local_88 + 0x744) - 4)) =
*(int1 *)(local_b0 + 0xa5);
if (local_30 != 0) {
local_bc = local_bc | 1;
}
if ((*(uint *)(local_20 + 0x18) & 0x180000) != 0) {
local_bc = local_bc | 2;
}
(**(code **)(local_b0 + 0xf8))
(local_b0,(long)local_d8 + (ulong)local_30 + (ulong)*(uint *)(local_88 + 0x744),local_80
);
*(int1 *)((long)local_18 + 0x684) = 1;
*(int1 *)((long)local_18 + 0x685) = 1;
local_d0 = _ma_new(local_18,6,&local_a8);
if (local_d0 == -1) {
local_9 = 1;
uVar3 = 0xffffffffffffff;
}
else {
*local_28 = local_d0;
*(char *)((long)local_d8 + (ulong)(*(int *)(local_88 + 0x744) - 3)) = (char)local_bc;
*(char *)((long)local_d8 + ((ulong)*(uint *)(local_88 + 0x744) - 1)) = (char)local_c8;
*(char *)((long)local_d8 + ((ulong)*(uint *)(local_88 + 0x744) - 2)) = (char)(local_c8 >> 8);
memset((void *)((long)local_d8 + (ulong)local_c8),0,
(ulong)(*(int *)(local_88 + 0x7bc) - local_c8));
if (*(char *)(local_88 + 0x7e7) != '\0') {
cVar1 = _ma_log_new(&local_e8,1);
if (cVar1 != '\0') {
local_e9 = 1;
}
}
uVar2 = _ma_write_keypage(&local_e8,*(int4 *)(local_a8 + 0xc),6);
if ((char)uVar2 != '\0') {
local_e9 = 1;
}
uVar3 = (int7)((ulong)uVar2 >> 8);
local_9 = local_e9;
}
return CONCAT71(uVar3,local_9);
}
|
|
59,497
|
free_block
|
eloqsql/storage/maria/ma_pagecache.c
|
static my_bool free_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block,
my_bool abort_if_pinned)
{
uint status= block->status;
KEYCACHE_THREAD_TRACE("free block");
KEYCACHE_DBUG_PRINT("free_block",
("block: %u hash_link %p",
PCBLOCK_NUMBER(pagecache, block),
block->hash_link));
mysql_mutex_assert_owner(&pagecache->cache_lock);
if (block->hash_link)
{
/*
While waiting for readers to finish, new readers might request the
block. But since we set block->status|= PCBLOCK_REASSIGNED, they
will wait on block->wqueue[COND_FOR_SAVED]. They must be signaled
later.
*/
block->status|= PCBLOCK_REASSIGNED;
wait_for_readers(pagecache, block);
if (unlikely(abort_if_pinned) && unlikely(block->pins))
{
/*
Block got pinned while waiting for readers.
This can only happens when called from flush_pagecache_blocks_int()
when flushing blocks as part of prepare for maria_close() or from
flush_cached_blocks()
*/
block->status&= ~PCBLOCK_REASSIGNED;
unreg_request(pagecache, block, 0);
/* All pending requests for this page must be resubmitted. */
if (block->wqueue[COND_FOR_SAVED].last_thread)
wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]);
return 1;
}
unlink_hash(pagecache, block->hash_link);
}
unlink_changed(block);
DBUG_ASSERT(block->wlocks == 0);
DBUG_ASSERT(block->rlocks == 0);
DBUG_ASSERT(block->rlocks_queue == 0);
DBUG_ASSERT(block->pins == 0);
DBUG_ASSERT((block->status & ~(PCBLOCK_ERROR | PCBLOCK_READ | PCBLOCK_IN_FLUSH | PCBLOCK_CHANGED | PCBLOCK_REASSIGNED | PCBLOCK_DEL_WRITE)) == 0);
DBUG_ASSERT(block->requests >= 1);
DBUG_ASSERT(block->next_used == NULL);
block->status= 0;
#ifdef DBUG_ASSERT_EXISTS
block->type= PAGECACHE_EMPTY_PAGE;
#endif
block->rec_lsn= LSN_MAX;
DBUG_PRINT("hash", ("block (Free): %p, hash_link: %p -> NULL",
block, block->hash_link));
block->hash_link= NULL;
if (block->temperature == PCBLOCK_WARM)
pagecache->warm_blocks--;
block->temperature= PCBLOCK_COLD;
KEYCACHE_THREAD_TRACE("free block");
KEYCACHE_DBUG_PRINT("free_block",
("block is freed"));
unreg_request(pagecache, block, 0);
/*
Block->requests is != 0 if unreg_requests()/link_block() gave the block
to a waiting thread
*/
if (!block->requests)
{
DBUG_ASSERT(block->next_used != 0);
/* Remove the free block from the LRU ring. */
unlink_block(pagecache, block);
/* Insert the free block in the free list. */
block->next_used= pagecache->free_block_list;
pagecache->free_block_list= block;
/* Keep track of the number of currently unused blocks. */
pagecache->blocks_unused++;
}
else
{
/* keep flag set by link_block() */
block->status= status & PCBLOCK_REASSIGNED;
}
/* All pending requests for this page must be resubmitted. */
if (block->wqueue[COND_FOR_SAVED].last_thread)
wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]);
return 0;
}
|
O0
|
c
|
free_block:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x74(%rax), %eax
movl %eax, -0x20(%rbp)
jmp 0x3e562
jmp 0x3e564
jmp 0x3e566
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x3e614
movq -0x18(%rbp), %rax
movzwl 0x74(%rax), %ecx
orl $0x8, %ecx
movw %cx, 0x74(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x3e860
movsbl -0x19(%rbp), %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3e603
movq -0x18(%rbp), %rax
cmpl $0x0, 0x64(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3e603
movq -0x18(%rbp), %rax
movzwl 0x74(%rax), %ecx
andl $-0x9, %ecx
movw %cx, 0x74(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x3af30
movq -0x18(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x3e5fa
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
addq $0x8, %rdi
callq 0x1060f0
movb $0x1, -0x1(%rbp)
jmp 0x3e719
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x3e390
movq -0x18(%rbp), %rdi
callq 0x3e990
jmp 0x3e61f
jmp 0x3e621
jmp 0x3e623
jmp 0x3e625
jmp 0x3e627
jmp 0x3e629
jmp 0x3e62b
jmp 0x3e62d
jmp 0x3e62f
jmp 0x3e631
jmp 0x3e633
jmp 0x3e635
jmp 0x3e637
movq -0x18(%rbp), %rax
movw $0x0, 0x74(%rax)
movq -0x18(%rbp), %rax
movabsq $0xffffffffffffff, %rcx # imm = 0xFFFFFFFFFFFFFF
movq %rcx, 0x88(%rax)
jmp 0x3e658
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
cmpl $0x1, 0x78(%rax)
jne 0x3e67e
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x60(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x78(%rax)
jmp 0x3e68b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x3af30
movq -0x18(%rbp), %rax
cmpl $0x0, 0x60(%rax)
jne 0x3e6e8
jmp 0x3e6a6
jmp 0x3e6a8
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x3e9d0
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rax)
jmp 0x3e6f9
movl -0x20(%rbp), %eax
andl $0x8, %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x74(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x3e715
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
addq $0x8, %rdi
callq 0x1060f0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
free_block:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, dl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_19], al
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+74h]
mov [rbp+var_20], eax
jmp short $+2
loc_3E562:
jmp short $+2
loc_3E564:
jmp short $+2
loc_3E566:
mov rax, [rbp+var_18]
cmp qword ptr [rax+20h], 0
jz loc_3E614
mov rax, [rbp+var_18]
movzx ecx, word ptr [rax+74h]
or ecx, 8
mov [rax+74h], cx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call wait_for_readers
movsx eax, [rbp+var_19]
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_3E603
mov rax, [rbp+var_18]
cmp dword ptr [rax+64h], 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_3E603
mov rax, [rbp+var_18]
movzx ecx, word ptr [rax+74h]
and ecx, 0FFFFFFF7h
mov [rax+74h], cx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
xor edx, edx
call unreg_request
mov rax, [rbp+var_18]
cmp qword ptr [rax+50h], 0
jz short loc_3E5FA
mov rdi, [rbp+var_18]
add rdi, 48h ; 'H'
add rdi, 8
call wqueue_release_queue
loc_3E5FA:
mov [rbp+var_1], 1
jmp loc_3E719
loc_3E603:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_18]
mov rsi, [rax+20h]
call unlink_hash
loc_3E614:
mov rdi, [rbp+var_18]
call unlink_changed
jmp short $+2
loc_3E61F:
jmp short $+2
loc_3E621:
jmp short $+2
loc_3E623:
jmp short $+2
loc_3E625:
jmp short $+2
loc_3E627:
jmp short $+2
loc_3E629:
jmp short $+2
loc_3E62B:
jmp short $+2
loc_3E62D:
jmp short $+2
loc_3E62F:
jmp short $+2
loc_3E631:
jmp short $+2
loc_3E633:
jmp short $+2
loc_3E635:
jmp short $+2
loc_3E637:
mov rax, [rbp+var_18]
mov word ptr [rax+74h], 0
mov rax, [rbp+var_18]
mov rcx, 0FFFFFFFFFFFFFFh
mov [rax+88h], rcx
jmp short $+2
loc_3E658:
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_18]
cmp dword ptr [rax+78h], 1
jnz short loc_3E67E
mov rax, [rbp+var_10]
mov rcx, [rax+60h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+60h], rcx
loc_3E67E:
mov rax, [rbp+var_18]
mov dword ptr [rax+78h], 0
jmp short $+2
loc_3E68B:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
xor edx, edx
call unreg_request
mov rax, [rbp+var_18]
cmp dword ptr [rax+60h], 0
jnz short loc_3E6E8
jmp short $+2
loc_3E6A6:
jmp short $+2
loc_3E6A8:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call unlink_block
mov rax, [rbp+var_10]
mov rcx, [rax+0A0h]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0A0h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+50h]
add rcx, 1
mov [rax+50h], rcx
jmp short loc_3E6F9
loc_3E6E8:
mov eax, [rbp+var_20]
and eax, 8
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+74h], cx
loc_3E6F9:
mov rax, [rbp+var_18]
cmp qword ptr [rax+50h], 0
jz short loc_3E715
mov rdi, [rbp+var_18]
add rdi, 48h ; 'H'
add rdi, 8
call wqueue_release_queue
loc_3E715:
mov [rbp+var_1], 0
loc_3E719:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char free_block(_QWORD *a1, long long a2, char a3)
{
__int16 v4; // [rsp+0h] [rbp-20h]
v4 = *(_WORD *)(a2 + 116);
if ( *(_QWORD *)(a2 + 32) )
{
*(_WORD *)(a2 + 116) |= 8u;
wait_for_readers(a1, a2);
if ( a3 && *(_DWORD *)(a2 + 100) )
{
*(_WORD *)(a2 + 116) &= ~8u;
unreg_request(a1, a2, 0);
if ( *(_QWORD *)(a2 + 80) )
wqueue_release_queue(a2 + 80);
return 1;
}
unlink_hash(a1, *(long long **)(a2 + 32));
}
unlink_changed(a2);
*(_WORD *)(a2 + 116) = 0;
*(_QWORD *)(a2 + 136) = 0xFFFFFFFFFFFFFFLL;
*(_QWORD *)(a2 + 32) = 0LL;
if ( *(_DWORD *)(a2 + 120) == 1 )
--a1[12];
*(_DWORD *)(a2 + 120) = 0;
unreg_request(a1, a2, 0);
if ( *(_DWORD *)(a2 + 96) )
{
*(_WORD *)(a2 + 116) = v4 & 8;
}
else
{
unlink_block(a1, a2);
*(_QWORD *)a2 = a1[20];
a1[20] = a2;
++a1[10];
}
if ( *(_QWORD *)(a2 + 80) )
wqueue_release_queue(a2 + 80);
return 0;
}
|
free_block:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0x74]
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0013e562
LAB_0013e562:
JMP 0x0013e564
LAB_0013e564:
JMP 0x0013e566
LAB_0013e566:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x0013e614
MOV RAX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RAX + 0x74]
OR ECX,0x8
MOV word ptr [RAX + 0x74],CX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0013e860
MOVSX EAX,byte ptr [RBP + -0x19]
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0013e603
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x64],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0013e603
MOV RAX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RAX + 0x74]
AND ECX,0xfffffff7
MOV word ptr [RAX + 0x74],CX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
XOR EDX,EDX
CALL 0x0013af30
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x0013e5fa
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x48
ADD RDI,0x8
CALL 0x002060f0
LAB_0013e5fa:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013e719
LAB_0013e603:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x20]
CALL 0x0013e390
LAB_0013e614:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013e990
JMP 0x0013e61f
LAB_0013e61f:
JMP 0x0013e621
LAB_0013e621:
JMP 0x0013e623
LAB_0013e623:
JMP 0x0013e625
LAB_0013e625:
JMP 0x0013e627
LAB_0013e627:
JMP 0x0013e629
LAB_0013e629:
JMP 0x0013e62b
LAB_0013e62b:
JMP 0x0013e62d
LAB_0013e62d:
JMP 0x0013e62f
LAB_0013e62f:
JMP 0x0013e631
LAB_0013e631:
JMP 0x0013e633
LAB_0013e633:
JMP 0x0013e635
LAB_0013e635:
JMP 0x0013e637
LAB_0013e637:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x74],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,0xffffffffffffff
MOV qword ptr [RAX + 0x88],RCX
JMP 0x0013e658
LAB_0013e658:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x78],0x1
JNZ 0x0013e67e
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x60]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x60],RCX
LAB_0013e67e:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x78],0x0
JMP 0x0013e68b
LAB_0013e68b:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
XOR EDX,EDX
CALL 0x0013af30
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x60],0x0
JNZ 0x0013e6e8
JMP 0x0013e6a6
LAB_0013e6a6:
JMP 0x0013e6a8
LAB_0013e6a8:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0013e9d0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x50]
ADD RCX,0x1
MOV qword ptr [RAX + 0x50],RCX
JMP 0x0013e6f9
LAB_0013e6e8:
MOV EAX,dword ptr [RBP + -0x20]
AND EAX,0x8
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x74],CX
LAB_0013e6f9:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x0013e715
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x48
ADD RDI,0x8
CALL 0x002060f0
LAB_0013e715:
MOV byte ptr [RBP + -0x1],0x0
LAB_0013e719:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 free_block(long param_1,int8 *param_2,char param_3)
{
ushort uVar1;
uVar1 = *(ushort *)((long)param_2 + 0x74);
if (param_2[4] != 0) {
*(ushort *)((long)param_2 + 0x74) = *(ushort *)((long)param_2 + 0x74) | 8;
wait_for_readers(param_1,param_2);
if ((param_3 != '\0') && (*(int *)((long)param_2 + 100) != 0)) {
*(ushort *)((long)param_2 + 0x74) = *(ushort *)((long)param_2 + 0x74) & 0xfff7;
unreg_request(param_1,param_2,0);
if (param_2[10] != 0) {
wqueue_release_queue(param_2 + 10);
}
return 1;
}
unlink_hash(param_1,param_2[4]);
}
unlink_changed(param_2);
*(int2 *)((long)param_2 + 0x74) = 0;
param_2[0x11] = 0xffffffffffffff;
param_2[4] = 0;
if (*(int *)(param_2 + 0xf) == 1) {
*(long *)(param_1 + 0x60) = *(long *)(param_1 + 0x60) + -1;
}
*(int4 *)(param_2 + 0xf) = 0;
unreg_request(param_1,param_2,0);
if (*(int *)(param_2 + 0xc) == 0) {
unlink_block(param_1,param_2);
*param_2 = *(int8 *)(param_1 + 0xa0);
*(int8 **)(param_1 + 0xa0) = param_2;
*(long *)(param_1 + 0x50) = *(long *)(param_1 + 0x50) + 1;
}
else {
*(ushort *)((long)param_2 + 0x74) = uVar1 & 8;
}
if (param_2[10] != 0) {
wqueue_release_queue(param_2 + 10);
}
return 0;
}
|
|
59,498
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
|
monkey531[P]llama/common/json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O1
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1b3e0
movq %rax, %rbp
addq 0x8(%r12), %rbp
movq %r15, %rdi
callq 0x1b3e0
addq %rax, %rbp
addq 0x8(%r14), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1bd60
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c0d0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1b260
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c0d0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x1b260
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0xb7bac
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x1b8b0
movq %r14, %rdi
callq 0x1bf70
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcS8_RA5_S9_S8_EEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+38h+var_38], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov rbp, rax
add rbp, [r12+8]
mov rdi, r15
call _strlen
add rbp, rax
add rbp, [r14+8]
mov rdi, rbx
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_B7BAC
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7BAC:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],std::string,char const(&)[5],std::string>(
long long a1,
long long a2,
_QWORD *a3,
long long a4,
_QWORD *a5)
{
long long v8; // rbp
long long v9; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v8 = a3[1] + strlen(a2);
v9 = strlen(a4);
std::string::reserve(a1, a5[1] + v9 + v8);
std::string::append(a1, a2);
std::string::_M_append(a1, *a3, a3[1]);
std::string::append(a1, a4);
std::string::_M_append(a1, *a5, a5[1]);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011b3e0
MOV RBP,RAX
ADD RBP,qword ptr [R12 + 0x8]
MOV RDI,R15
CALL 0x0011b3e0
ADD RBP,RAX
ADD RBP,qword ptr [R14 + 0x8]
LAB_001b7b3e:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x0011bd60
MOV RDI,RBX
MOV RSI,R13
CALL 0x0011c0d0
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011b260
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011c0d0
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x0011b260
LAB_001b7b7f:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [29], std::__cxx11::string, char const (&) [5], std::__cxx11::string >(char const (&) [29],
std::__cxx11::string&&, char const (&) [5], std::__cxx11::string&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string>
(detail *this,char *param_1,string *param_2,char *param_3,string *param_4)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(param_3);
/* try { // try from 001b7b3e to 001b7b7e has its CatchHandler @ 001b7b91 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::_M_append((char *)this,*(ulong *)param_4);
return this;
}
|
|
59,499
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
|
monkey531[P]llama/common/json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O2
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x421bf
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24d60
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x87a3e
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x251b8
movq %r14, %rdi
callq 0x24f60
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA39_KcS8_EEET_DpOT0_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEmPKcDpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<std::string>(char const*,std::string const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[39],std::string>(
long long a1,
long long a2,
long long a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<std::string>(a2, a3);
std::string::reserve(a1, v4);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_(
a1,
a2,
a3);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
LAB_00187937:
MOV RDI,RSI
MOV RSI,RDX
CALL 0x001421bf
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00124d60
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x00187a3e
LAB_0018795b:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [39], std::__cxx11::string >(char const (&) [39], std::__cxx11::string&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>
(detail *this,char *param_1,string *param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
/* try { // try from 00187937 to 0018795a has its CatchHandler @ 00187964 */
concat_length<std::__cxx11::string>(param_1,param_2);
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_
(this,param_1,param_2);
return this;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.