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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
50,000 | dirname_length | eloqsql/mysys/mf_dirname.c | size_t dirname_length(const char *name)
{
register char *pos, *gpos;
#ifdef BASKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
#ifdef FN_DEVCHAR
if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0)
#endif
pos=(char*) name-1;
gpos= pos++;
for ( ; *pos ; pos++) /* Find last FN_LIBCHAR */
{
#ifdef BASKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3)))
{
pos+= l - 1;
continue;
}
#endif
if (*pos == FN_LIBCHAR || *pos == '/')
gpos=pos;
}
return (size_t) (gpos+1-(char*) name);
} | O3 | c | dirname_length:
pushq %rbp
movq %rsp, %rbp
leaq -0x1(%rdi), %rax
movq %rdi, %rcx
movzbl (%rcx), %edx
cmpl $0x2f, %edx
je 0x324ed
testl %edx, %edx
jne 0x324f0
jmp 0x324f5
movq %rcx, %rax
incq %rcx
jmp 0x324df
subq %rdi, %rax
incq %rax
popq %rbp
retq
| dirname_length:
push rbp
mov rbp, rsp
lea rax, [rdi-1]
mov rcx, rdi
loc_324DF:
movzx edx, byte ptr [rcx]
cmp edx, 2Fh ; '/'
jz short loc_324ED
test edx, edx
jnz short loc_324F0
jmp short loc_324F5
loc_324ED:
mov rax, rcx
loc_324F0:
inc rcx
jmp short loc_324DF
loc_324F5:
sub rax, rdi
inc rax
pop rbp
retn
| long long dirname_length(_BYTE *a1)
{
_BYTE *v1; // rax
_BYTE *i; // rcx
v1 = a1 - 1;
for ( i = a1; *i == 47; ++i )
{
v1 = i;
LABEL_6:
;
}
if ( *i )
goto LABEL_6;
return v1 - a1 + 1;
}
| dirname_length:
PUSH RBP
MOV RBP,RSP
LEA RAX,[RDI + -0x1]
MOV RCX,RDI
LAB_001324df:
MOVZX EDX,byte ptr [RCX]
CMP EDX,0x2f
JZ 0x001324ed
TEST EDX,EDX
JNZ 0x001324f0
JMP 0x001324f5
LAB_001324ed:
MOV RAX,RCX
LAB_001324f0:
INC RCX
JMP 0x001324df
LAB_001324f5:
SUB RAX,RDI
INC RAX
POP RBP
RET
|
char * dirname_length(char *param_1)
{
char *pcVar1;
char *pcVar2;
char *pcVar3;
pcVar1 = param_1 + -1;
for (pcVar3 = param_1; (pcVar2 = pcVar3, *pcVar3 == '/' || (pcVar2 = pcVar1, *pcVar3 != '\0'));
pcVar3 = pcVar3 + 1) {
pcVar1 = pcVar2;
}
return pcVar1 + (1 - (long)param_1);
}
| |
50,001 | minja::Parser::parseMathUnaryPlusMinus() | llama.cpp/common/minja/minja.hpp | std::shared_ptr<Expression> parseMathUnaryPlusMinus() {
static std::regex unary_plus_minus_tok(R"(\+|-(?![}%#]\}))");
auto op_str = consumeToken(unary_plus_minus_tok);
auto expr = parseExpansion();
if (!expr) throw std::runtime_error("Expected expr of 'unary plus/minus/expansion' expression");
if (!op_str.empty()) {
auto op = op_str == "+" ? UnaryOpExpr::Op::Plus : UnaryOpExpr::Op::Minus;
return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op);
}
return expr;
} | O3 | cpp | minja::Parser::parseMathUnaryPlusMinus():
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x6f7d4(%rip), %rax # 0x10c410
movb (%rax), %al
testb %al, %al
je 0x9cd78
leaq 0x6f7a3(%rip), %rdx # 0x10c3f0
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x99536
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x9ceee
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9cdcf
cmpq $0x0, 0x40(%rsp)
je 0x9ccc5
leaq 0x36d5e(%rip), %rsi # 0xd39e7
leaq 0x38(%rsp), %rdi
callq 0x1dcf0
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl %ecx, 0x1c(%rsp)
movq (%r14), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x9cce3
movq 0x6e2cd(%rip), %rcx # 0x10af88
cmpb $0x0, (%rcx)
je 0x9ccdf
incl 0x8(%rax)
jmp 0x9cce3
movq %rax, (%rbx)
movq 0x10(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, 0x8(%rbx)
movq %rcx, 0x8(%rsp)
jmp 0x9cd46
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
leaq 0x60(%rsp), %r14
movq %rax, 0x8(%r14)
leaq 0x28(%rsp), %r15
movq $0x0, -0x8(%r15)
leaq 0x20(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x58(%rsp), %rcx
leaq 0x8(%rsp), %r8
leaq 0x1c(%rsp), %r9
movq %r15, %rdi
callq 0xa6320
movaps 0x20(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x20(%rsp)
movq %r15, %rdi
callq 0x56124
movq %r14, %rdi
callq 0x56124
leaq 0x10(%rsp), %rdi
callq 0x56124
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9cd6b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1d160
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6f691(%rip), %rdi # 0x10c410
callq 0x1d4a0
testl %eax, %eax
je 0x9cc46
leaq 0x6f65d(%rip), %rdi # 0x10c3f0
leaq 0x383d2(%rip), %rsi # 0xd516c
movl $0x10, %edx
callq 0x562d4
leaq -0x46a71(%rip), %rdi # 0x5633a
leaq 0x6f63e(%rip), %rsi # 0x10c3f0
leaq 0x6eacf(%rip), %rdx # 0x10b888
callq 0x1dc70
leaq 0x6f64b(%rip), %rdi # 0x10c410
callq 0x1d7d0
jmp 0x9cc46
movl $0x10, %edi
callq 0x1d520
movq %rax, %r14
leaq 0x38473(%rip), %rsi # 0xd5256
movq %rax, %rdi
callq 0x1d330
movq 0x6e1c6(%rip), %rsi # 0x10afb8
movq 0x6e177(%rip), %rdx # 0x10af70
movq %r14, %rdi
callq 0x1d890
movq %rax, %rbx
leaq 0x6f605(%rip), %rdi # 0x10c410
callq 0x1d5b0
jmp 0x9ce59
movq %rax, %rbx
jmp 0x9ce2f
movq %rax, %rbx
movq %r14, %rdi
callq 0x1dc90
jmp 0x9ce2f
movq %rax, %rbx
movq %r14, %rdi
callq 0x56124
leaq 0x10(%rsp), %rdi
callq 0x56124
jmp 0x9ce3e
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ce59
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1d160
movq %rbx, %rdi
callq 0x1d8e0
nop
| _ZN5minja6Parser23parseMathUnaryPlusMinusEv:
push r15
push r14
push rbx
sub rsp, 70h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
mov al, [rax]
test al, al
jz loc_9CD78
loc_9CC46:
lea rdx, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; int
lea rdi, [rsp+88h+var_50]; int
mov rsi, r14; 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)
lea rdi, [rsp+88h+var_80]; this
mov rsi, r14
call _ZN5minja6Parser14parseExpansionEv; minja::Parser::parseExpansion(void)
mov rax, [rsp+88h+var_80]
test rax, rax
jz loc_9CDCF
cmp [rsp+88h+var_48], 0
jz short loc_9CCC5
lea rsi, asc_D39E6+1; "+"
lea rdi, [rsp+88h+var_50]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
xor ecx, ecx
test eax, eax
setnz cl
mov [rsp+88h+var_6C], ecx
mov rax, [r14]
mov [rsp+88h+var_30], rax
mov rax, [r14+8]
mov [rsp+88h+var_28], rax
test rax, rax
jz short loc_9CCE3
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_9CCDF
inc dword ptr [rax+8]
jmp short loc_9CCE3
loc_9CCC5:
mov [rbx], rax
mov rax, [rsp+88h+var_78]
xor ecx, ecx
mov [rsp+88h+var_78], rcx
mov [rbx+8], rax
mov [rsp+88h+var_80], rcx
jmp short loc_9CD46
loc_9CCDF:
lock inc dword ptr [rax+8]
loc_9CCE3:
mov rax, [r14+20h]
sub rax, [r14+10h]
lea r14, [rsp+88h+var_28]
mov [r14+8], rax
lea r15, [rsp+88h+var_68+8]
mov qword ptr [r15-8], 0
lea rsi, [rsp+88h+var_68]
lea rdx, [rsp+88h+var_81]
lea rcx, [rsp+88h+var_30]
lea r8, [rsp+88h+var_80]
lea r9, [rsp+88h+var_6C]
mov rdi, r15
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIvEJNS4_8LocationESt10shared_ptrINS4_10ExpressionEERNS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<void>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<void>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &)
movaps xmm0, [rsp+88h+var_68]
xor eax, eax
mov qword ptr [rsp+88h+var_68+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+88h+var_68], rax
mov rdi, r15
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_9CD46:
lea rdi, [rsp+88h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rax, [rsp+88h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9CD6B
mov rsi, [rsp+88h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9CD6B:
mov rax, rbx
add rsp, 70h
pop rbx
pop r14
pop r15
retn
loc_9CD78:
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_9CC46
lea rdi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
lea rsi, asc_D516C; "\\+|-(?![}%#]\\})"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_9CC46
loc_9CDCF:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExprOf; "Expected expr of 'unary plus/minus/expa"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_9CE59
mov rbx, rax
jmp short loc_9CE2F
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_9CE2F
mov rbx, rax
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_9CE2F:
lea rdi, [rsp+88h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_9CE3E
mov rbx, rax
loc_9CE3E:
lea rax, [rsp+88h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9CE59
mov rsi, [rsp+88h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9CE59:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseMathUnaryPlusMinus(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
volatile signed __int32 *v3; // rax
__int128 v4; // xmm0
std::runtime_error *exception; // r14
char v7; // [rsp+7h] [rbp-81h] BYREF
long long v8; // [rsp+8h] [rbp-80h] BYREF
volatile signed __int32 *v9; // [rsp+10h] [rbp-78h] BYREF
BOOL v10; // [rsp+1Ch] [rbp-6Ch] BYREF
__int128 v11; // [rsp+20h] [rbp-68h] BYREF
void *v12[2]; // [rsp+38h] [rbp-50h] BYREF
long long v13; // [rsp+48h] [rbp-40h] BYREF
long long v14; // [rsp+58h] [rbp-30h] BYREF
volatile signed __int32 *v15[5]; // [rsp+60h] [rbp-28h] BYREF
if ( !(_BYTE)`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
(long long)"\\+|-(?![}%#]\\})",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
v12,
(long long)a2,
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
1u);
minja::Parser::parseExpansion((minja::Parser *)&v8);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expr of 'unary plus/minus/expansion' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v12[1] )
{
v10 = std::string::compare(v12, "+") != 0;
v14 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v15[0] = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v15[1] = (volatile signed __int32 *)(a2[4] - a2[2]);
*(_QWORD *)&v11 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<void>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(
(char *)&v11 + 8,
&v11,
&v7,
&v14,
&v8,
&v10);
v4 = v11;
*((_QWORD *)&v11 + 1) = 0LL;
*(_OWORD *)this = v4;
*(_QWORD *)&v11 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v11 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15);
}
else
{
*(_QWORD *)this = v8;
v3 = v9;
v9 = 0LL;
*((_QWORD *)this + 1) = v3;
v8 = 0LL;
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v9);
if ( v12[0] != &v13 )
operator delete(v12[0], v13 + 1);
return this;
}
| parseMathUnaryPlusMinus:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x20c410]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x0019cd78
LAB_0019cc46:
LEA RDX,[0x20c3f0]
LEA RDI,[RSP + 0x38]
MOV RSI,R14
MOV ECX,0x1
CALL 0x00199536
LAB_0019cc5f:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0019ceee
MOV RAX,qword ptr [RSP + 0x8]
TEST RAX,RAX
JZ 0x0019cdcf
CMP qword ptr [RSP + 0x40],0x0
JZ 0x0019ccc5
LEA RSI,[0x1d39e7]
LEA RDI,[RSP + 0x38]
CALL 0x0011dcf0
XOR ECX,ECX
TEST EAX,EAX
SETNZ CL
MOV dword ptr [RSP + 0x1c],ECX
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x60],RAX
TEST RAX,RAX
JZ 0x0019cce3
MOV RCX,qword ptr [0x0020af88]
CMP byte ptr [RCX],0x0
JZ 0x0019ccdf
INC dword ptr [RAX + 0x8]
JMP 0x0019cce3
LAB_0019ccc5:
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x10]
XOR ECX,ECX
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [RSP + 0x8],RCX
JMP 0x0019cd46
LAB_0019ccdf:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0019cce3:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
LEA R14,[RSP + 0x60]
MOV qword ptr [R14 + 0x8],RAX
LEA R15,[RSP + 0x28]
MOV qword ptr [R15 + -0x8],0x0
LAB_0019cd01:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x7]
LEA RCX,[RSP + 0x58]
LEA R8,[RSP + 0x8]
LEA R9,[RSP + 0x1c]
MOV RDI,R15
CALL 0x001a6320
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
XOR EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,R15
CALL 0x00156124
MOV RDI,R14
CALL 0x00156124
LAB_0019cd46:
LEA RDI,[RSP + 0x10]
CALL 0x00156124
LEA RAX,[RSP + 0x48]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0019cd6b
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011d160
LAB_0019cd6b:
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
LAB_0019cd78:
LEA RDI,[0x20c410]
CALL 0x0011d4a0
TEST EAX,EAX
JZ 0x0019cc46
LAB_0019cd8c:
LEA RDI,[0x20c3f0]
LEA RSI,[0x1d516c]
MOV EDX,0x10
CALL 0x001562d4
LAB_0019cda4:
LEA RDI,[0x15633a]
LEA RSI,[0x20c3f0]
LEA RDX,[0x20b888]
CALL 0x0011dc70
LEA RDI,[0x20c410]
CALL 0x0011d7d0
JMP 0x0019cc46
LAB_0019cdcf:
MOV EDI,0x10
CALL 0x0011d520
MOV R14,RAX
LAB_0019cddc:
LEA RSI,[0x1d5256]
MOV RDI,RAX
CALL 0x0011d330
LAB_0019cdeb:
MOV RSI,qword ptr [0x0020afb8]
MOV RDX,qword ptr [0x0020af70]
MOV RDI,R14
CALL 0x0011d890
|
/* minja::Parser::parseMathUnaryPlusMinus() */
void minja::Parser::parseMathUnaryPlusMinus(void)
{
long lVar1;
int iVar2;
runtime_error *this;
int8 *in_RSI;
long *in_RDI;
int1 local_81;
long local_80;
long local_78;
uint local_6c;
long local_68;
long alStack_60 [2];
long *local_50;
long local_48;
long local_40 [2];
int8 local_30;
long local_28;
long local_20;
if (parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0019cd8c to 0019cda3 has its CatchHandler @ 0019ce01 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10
);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
}
}
consumeToken(&local_50);
/* try { // try from 0019cc5f to 0019cc6b has its CatchHandler @ 0019ce3b */
parseExpansion();
lVar1 = local_78;
if (local_80 != 0) {
if (local_48 == 0) {
*in_RDI = local_80;
local_78 = 0;
in_RDI[1] = lVar1;
local_80 = 0;
}
else {
iVar2 = std::__cxx11::string::compare((char *)&local_50);
local_6c = (uint)(iVar2 != 0);
local_30 = *in_RSI;
local_28 = in_RSI[1];
if (local_28 != 0) {
if (*PTR___libc_single_threaded_0020af88 == '\0') {
LOCK();
*(int *)(local_28 + 8) = *(int *)(local_28 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_28 + 8) = *(int *)(local_28 + 8) + 1;
}
}
local_20 = in_RSI[4] - in_RSI[2];
local_68 = 0;
/* try { // try from 0019cd01 to 0019cd21 has its CatchHandler @ 0019ce24 */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::UnaryOpExpr,std::allocator<void>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60,&local_68,&local_81,
&local_30,&local_80,&local_6c);
lVar1 = alStack_60[0];
alStack_60[0] = 0;
*in_RDI = local_68;
in_RDI[1] = lVar1;
local_68 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_28);
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_78);
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019cddc to 0019cdea has its CatchHandler @ 0019ce17 */
std::runtime_error::runtime_error
(this,"Expected expr of \'unary plus/minus/expansion\' expression");
/* try { // try from 0019cdeb to 0019ce00 has its CatchHandler @ 0019ce12 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0020afb8,PTR__runtime_error_0020af70);
}
| |
50,002 | minja::Value::operator-(minja::Value const&) const | llama.cpp/common/minja/minja.hpp | Value operator-(const Value& rhs) const {
if (is_number_integer() && rhs.is_number_integer())
return get<int64_t>() - rhs.get<int64_t>();
else
return get<double>() - rhs.get<double>();
} | O3 | cpp | minja::Value::operator-(minja::Value const&) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movb 0x40(%rsi), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0xefab1
movb 0x40(%r14), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0xefab1
movq %rsi, %rdi
callq 0xc421e
movq %rax, %r15
movq %r14, %rdi
callq 0xc421e
subq %rax, %r15
leaq 0x40(%rbx), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x8e358
jmp 0xefafd
movq %rsi, %rdi
callq 0xc13d8
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0xc13d8
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
leaq 0x40(%rbx), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r14, %rdi
movapd %xmm1, %xmm0
callq 0x8d920
movq %r14, %rdi
movl $0x1, %esi
callq 0x875ae
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZNK5minja5ValuemiERKS0_:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rdx
mov rbx, rdi
mov al, [rsi+40h]
add al, 0FBh
cmp al, 1
ja short loc_EFAB1
mov al, [r14+40h]
add al, 0FBh
cmp al, 1
ja short loc_EFAB1
mov rdi, rsi
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r15, rax
mov rdi, r14
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
sub r15, rax
lea r14, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r14
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
jmp short loc_EFAFD
loc_EFAB1:
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+28h+var_20], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd xmm1, [rsp+28h+var_20]
subsd xmm1, xmm0
lea r14, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r14
movapd xmm0, xmm1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t)
loc_EFAFD:
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
| long long minja::Value::operator-(long long a1, long long a2, long long a3)
{
long long v4; // r15
long long v5; // rax
char *v6; // r14
double v7; // xmm0_8
double v9; // [rsp+8h] [rbp-20h]
if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u )
{
v9 = minja::Value::get<double>((_QWORD *)a2);
v7 = minja::Value::get<double>((_QWORD *)a3);
v6 = (char *)(a1 + 64);
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)(a1 + 64),
v9 - v7);
}
else
{
v4 = minja::Value::get<long>((_QWORD *)a2);
v5 = minja::Value::get<long>((_QWORD *)a3);
v6 = (char *)(a1 + 64);
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)(a1 + 64),
v4 - v5);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v6);
return a1;
}
| operator-:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RDX
MOV RBX,RDI
MOV AL,byte ptr [RSI + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x001efab1
MOV AL,byte ptr [R14 + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x001efab1
MOV RDI,RSI
CALL 0x001c421e
MOV R15,RAX
MOV RDI,R14
CALL 0x001c421e
SUB R15,RAX
LEA R14,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R14
MOV RSI,R15
CALL 0x0018e358
JMP 0x001efafd
LAB_001efab1:
MOV RDI,RSI
CALL 0x001c13d8
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RDI,R14
CALL 0x001c13d8
MOVSD XMM1,qword ptr [RSP + 0x8]
SUBSD XMM1,XMM0
LEA R14,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R14
MOVAPD XMM0,XMM1
CALL 0x0018d920
LAB_001efafd:
MOV RDI,R14
MOV ESI,0x1
CALL 0x001875ae
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
Value * __thiscall minja::Value::operator-(Value *this,Value *param_1)
{
long lVar1;
long lVar2;
Value *in_RDX;
double dVar3;
double dVar4;
if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) {
lVar1 = get<long>(param_1);
lVar2 = get<long>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(this + 0x40,lVar1 - lVar2);
}
else {
dVar3 = get<double>(param_1);
dVar4 = get<double>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(dVar3 - dVar4,this + 0x40);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)this + '@'));
return this;
}
| |
50,003 | testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&) | seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h | void OnTestPartResult(const TestPartResult& test_part_result) override {
const char* file_name = test_part_result.file_name();
if (file_name == nullptr) file_name = "";
SendLn("event=TestPartResult&file=" + UrlEncode(file_name) +
"&line=" + StreamableToString(test_part_result.line_number()) +
"&message=" + UrlEncode(test_part_result.message()));
} | O3 | c | testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x110, %rsp # imm = 0x110
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x3af63
movq 0x8(%r14), %rax
testq %rax, %rax
leaq 0x86f3(%rip), %rsi # 0x43660
cmovneq %rax, %rsi
leaq 0xf0(%rsp), %r15
movq %r15, %rdi
callq 0x3029c
leaq 0x9840(%rip), %rcx # 0x447c8
movl $0x1a, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9580
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3afca
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x3afd1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x97ec(%rip), %rsi # 0x447e3
callq 0x9a70
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3b024
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x3b02c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%r14), %eax
leaq 0xec(%rsp), %rsi
movl %eax, (%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x34c71
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x3b084
movq 0x58(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x3b0b0
leaq 0xb8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x3b0ab
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x3b0bc
leaq 0x48(%rsp), %rdi
callq 0x9170
jmp 0x3b0cd
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9580
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3b0f1
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x3b0f7
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x96cf(%rip), %rsi # 0x447ea
leaq 0x8(%rsp), %rdi
callq 0x9a70
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3b14c
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x3b154
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%r14), %rsi
leaq 0x88(%rsp), %rdi
callq 0x3029c
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x3b1a2
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x3b1ce
leaq 0x98(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x3b1c9
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x3b1da
leaq 0x68(%rsp), %rdi
callq 0x9170
jmp 0x3b1eb
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9580
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3b20f
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3b215
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x8(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3c2f0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b25b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b27c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b293
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b2ae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b2cf
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b2e6
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b303
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b324
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x94c0
addq $0x110, %rsp # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b358
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b358
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b37e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b37e
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b39a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b39a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b3ba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b3ba
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b3e0
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b3e0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b3fc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b3fc
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b41e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b41e
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b43f
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rdi
callq 0x99a0
nop
| _ZN7testing8internal17StreamingListener16OnTestPartResultERKNS_14TestPartResultE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 110h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
test rax, rax
jz short loc_3AF63
mov rax, [r14+8]
loc_3AF63:
test rax, rax
lea rsi, aSFromSSMsTotal+1Ah; ""
cmovnz rsi, rax; int
lea r15, [rsp+138h+var_48]
mov rdi, r15; int
call _ZN7testing8internal17StreamingListener9UrlEncodeB5cxx11EPKc; testing::internal::StreamingListener::UrlEncode(char const*)
lea rcx, aEventTestpartr; "event=TestPartResult&file="
mov r8d, 1Ah
mov rdi, r15
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
lea r15, [rsp+138h+var_60]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_3AFCA
mov [rsp+138h+var_70], rdx
mov rdx, [rcx]
mov [rsp+138h+var_60], rdx
jmp short loc_3AFD1
loc_3AFCA:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_3AFD1:
mov rdx, [rax+8]
lea rdi, [rsp+138h+var_70]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, aLine_1; "&line="
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r12, [rsp+138h+var_E0]
mov [r12-10h], r12
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_3B024
mov [rsp+138h+var_F0], rdx
mov rdx, [rcx]
mov [rsp+138h+var_E0], rdx
jmp short loc_3B02C
loc_3B024:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r12], xmm0
loc_3B02C:
mov rdx, [rax+8]
mov [rsp+138h+var_E8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov eax, [r14+28h]
lea rsi, [rsp+138h+var_4C]
mov [rsi], eax
lea rdi, [rsp+138h+var_90]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
mov rcx, [rsp+138h+var_F0]
mov r8, [rsp+138h+var_E8]
mov rdx, [rsp+138h+var_88]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r12
jz short loc_3B084
mov rdi, [rsp+138h+var_E0]
loc_3B084:
mov rsi, [rsp+138h+var_90]
cmp rax, rdi
jbe short loc_3B0B0
lea r9, [rsp+138h+var_80]
mov edi, 0Fh
cmp rsi, r9
jz short loc_3B0AB
mov rdi, [rsp+138h+var_80]
loc_3B0AB:
cmp rax, rdi
jbe short loc_3B0BC
loc_3B0B0:
lea rdi, [rsp+138h+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_3B0CD
loc_3B0BC:
lea rdi, [rsp+138h+var_90]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_3B0CD:
lea rdx, [rsp+138h+var_120]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_3B0F1
mov [rsp+138h+var_130], rsi
mov rdx, [rcx]
mov [rsp+138h+var_120], rdx
jmp short loc_3B0F7
loc_3B0F1:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_3B0F7:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+138h+var_128], rsi; __int64
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
lea rsi, aMessage; "&message="
lea rdi, [rsp+138h+var_130]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r13, [rsp+138h+var_C0]
mov [r13-10h], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h; int
cmp rdx, rcx
jz short loc_3B14C
mov [rsp+138h+var_D0], rdx
mov rdx, [rcx]
mov [rsp+138h+var_C0], rdx
jmp short loc_3B154
loc_3B14C:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_3B154:
mov rdx, [rax+8]; int
mov [rsp+138h+var_C8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, [r14+50h]; int
lea rdi, [rsp+138h+var_B0]; int
call _ZN7testing8internal17StreamingListener9UrlEncodeB5cxx11EPKc; testing::internal::StreamingListener::UrlEncode(char const*)
mov rcx, [rsp+138h+var_D0]
mov r8, [rsp+138h+var_C8]
mov rdx, [rsp+138h+var_A8]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r13
jz short loc_3B1A2
mov rdi, [rsp+138h+var_C0]
loc_3B1A2:
mov rsi, qword ptr [rsp+138h+var_B0]
cmp rax, rdi
jbe short loc_3B1CE
lea r9, [rsp+138h+var_A0]
mov edi, 0Fh
cmp rsi, r9
jz short loc_3B1C9
mov rdi, [rsp+138h+var_A0]
loc_3B1C9:
cmp rax, rdi
jbe short loc_3B1DA
loc_3B1CE:
lea rdi, [rsp+138h+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_3B1EB
loc_3B1DA:
lea rdi, [rsp+138h+var_B0]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_3B1EB:
lea rdx, [rsp+138h+var_100]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_3B20F
mov [rsp+138h+var_110], rsi
mov rdx, [rcx]
mov [rsp+138h+var_100], rdx
jmp short loc_3B215
loc_3B20F:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_3B215:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+138h+var_108], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, [rbx+8]
lea rsi, [rsp+138h+var_110]
call _ZN7testing8internal17StreamingListener20AbstractSocketWriter6SendLnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StreamingListener::AbstractSocketWriter::SendLn(std::string const&)
lea rax, [rsp+138h+var_100]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B25B
mov rsi, [rsp+138h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B25B:
lea rax, [rsp+138h+var_A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B27C
mov rsi, [rsp+138h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B27C:
mov rdi, [rsp+138h+var_D0]; void *
cmp rdi, r13
jz short loc_3B293
mov rsi, [rsp+138h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B293:
lea rax, [rsp+138h+var_120]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B2AE
mov rsi, [rsp+138h+var_120]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B2AE:
lea rax, [rsp+138h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B2CF
mov rsi, [rsp+138h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B2CF:
mov rdi, [rsp+138h+var_F0]; void *
cmp rdi, r12
jz short loc_3B2E6
mov rsi, [rsp+138h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B2E6:
mov rdi, [rsp+138h+var_70]; void *
cmp rdi, r15
jz short loc_3B303
mov rsi, [rsp+138h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B303:
lea rax, [rsp+138h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B324
mov rsi, [rsp+138h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B324:
add rsp, 110h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B358
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B358
mov rbx, rax
loc_3B358:
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B37E
mov rsi, [rsp+arg_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B37E
mov rbx, rax
loc_3B37E:
mov rdi, [rsp+arg_60]; void *
cmp rdi, r13
jz short loc_3B39A
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B39A
mov rbx, rax
loc_3B39A:
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B3BA
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B3BA
mov rbx, rax
loc_3B3BA:
lea rax, [rsp+arg_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B3E0
mov rsi, [rsp+arg_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B3E0
mov rbx, rax
loc_3B3E0:
mov rdi, [rsp+arg_40]; void *
cmp rdi, r12
jz short loc_3B3FC
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B3FC
mov rbx, rax
loc_3B3FC:
mov rdi, [rsp+arg_C0]; void *
cmp rdi, r15
jz short loc_3B41E
mov rsi, [rsp+arg_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B41E
mov rbx, rax
loc_3B41E:
lea rax, [rsp+arg_F8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B43F
mov rsi, [rsp+arg_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B43F:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::StreamingListener::OnTestPartResult(
testing::internal::StreamingListener *this,
const testing::TestPartResult *a2)
{
char *v4; // rax
char *v5; // rsi
long long v6; // rax
__int128 *v7; // rcx
long long v8; // rax
__int128 *v9; // rcx
char *v10; // rax
unsigned long long v11; // rdi
unsigned long long v12; // rdi
void **v13; // rax
__int128 *v14; // rcx
long long v15; // rax
__int128 *v16; // rcx
unsigned long long v17; // rax
unsigned long long v18; // rdi
unsigned long long v19; // rdi
void **v20; // rax
int v21; // r8d
int v22; // r9d
__int128 *v23; // rcx
void *v24[2]; // [rsp+8h] [rbp-130h] BYREF
__int128 v25; // [rsp+18h] [rbp-120h] BYREF
void *v26[2]; // [rsp+28h] [rbp-110h] BYREF
__int128 v27; // [rsp+38h] [rbp-100h] BYREF
void *v28; // [rsp+48h] [rbp-F0h] BYREF
long long v29; // [rsp+50h] [rbp-E8h]
__int128 v30; // [rsp+58h] [rbp-E0h] BYREF
void *v31; // [rsp+68h] [rbp-D0h] BYREF
long long v32; // [rsp+70h] [rbp-C8h]
__int128 v33; // [rsp+78h] [rbp-C0h] BYREF
int v34[2]; // [rsp+88h] [rbp-B0h] BYREF
long long v35; // [rsp+90h] [rbp-A8h]
_QWORD v36[2]; // [rsp+98h] [rbp-A0h] BYREF
void *v37[2]; // [rsp+A8h] [rbp-90h] BYREF
_QWORD v38[2]; // [rsp+B8h] [rbp-80h] BYREF
void *v39[2]; // [rsp+C8h] [rbp-70h] BYREF
__int128 v40; // [rsp+D8h] [rbp-60h] BYREF
unsigned int v41; // [rsp+ECh] [rbp-4Ch] BYREF
int v42[4]; // [rsp+F0h] [rbp-48h] BYREF
long long v43; // [rsp+100h] [rbp-38h] BYREF
v4 = (char *)*((_QWORD *)a2 + 2);
if ( v4 )
v4 = (char *)*((_QWORD *)a2 + 1);
v5 = "";
if ( v4 )
v5 = v4;
testing::internal::StreamingListener::UrlEncode[abi:cxx11]((long long)v42, v5);
v6 = std::string::replace(v42, 0LL, 0LL);
v39[0] = &v40;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v40 = *v7;
}
else
{
v39[0] = *(void **)v6;
*(_QWORD *)&v40 = *(_QWORD *)v7;
}
v39[1] = *(void **)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
v8 = std::string::append(v39, "&line=");
v28 = &v30;
v9 = (__int128 *)(v8 + 16);
if ( *(_QWORD *)v8 == v8 + 16 )
{
v30 = *v9;
}
else
{
v28 = *(void **)v8;
*(_QWORD *)&v30 = *(_QWORD *)v9;
}
v29 = *(_QWORD *)(v8 + 8);
*(_QWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = 0LL;
*(_BYTE *)(v8 + 16) = 0;
v41 = *((_DWORD *)a2 + 10);
testing::internal::StreamableToString<int>((long long)v37, &v41);
v10 = (char *)v37[1] + v29;
v11 = 15LL;
if ( v28 != &v30 )
v11 = v30;
if ( (unsigned long long)v10 <= v11 )
goto LABEL_17;
v12 = 15LL;
if ( v37[0] != v38 )
v12 = v38[0];
if ( (unsigned long long)v10 <= v12 )
v13 = (void **)std::string::replace(v37, 0LL, 0LL);
else
LABEL_17:
v13 = (void **)std::string::_M_append(&v28, v37[0]);
v24[0] = &v25;
v14 = (__int128 *)(v13 + 2);
if ( *v13 == v13 + 2 )
{
v25 = *v14;
}
else
{
v24[0] = *v13;
*(_QWORD *)&v25 = *(_QWORD *)v14;
}
v24[1] = v13[1];
*v13 = v14;
v13[1] = 0LL;
*(_BYTE *)v14 = 0;
v15 = std::string::append(v24, "&message=");
v31 = &v33;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v33 = *v16;
}
else
{
v31 = *(void **)v15;
*(_QWORD *)&v33 = *(_QWORD *)v16;
}
v32 = *(_QWORD *)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
testing::internal::StreamingListener::UrlEncode[abi:cxx11]((long long)v34, *((_BYTE **)a2 + 10));
v17 = v35 + v32;
v18 = 15LL;
if ( v31 != &v33 )
v18 = v33;
if ( v17 <= v18 )
goto LABEL_31;
v19 = 15LL;
if ( *(_QWORD **)v34 != v36 )
v19 = v36[0];
if ( v17 <= v19 )
v20 = (void **)std::string::replace(v34, 0LL, 0LL);
else
LABEL_31:
v20 = (void **)std::string::_M_append(&v31, *(_QWORD *)v34);
v26[0] = &v27;
v23 = (__int128 *)(v20 + 2);
if ( *v20 == v20 + 2 )
{
v27 = *v23;
}
else
{
v26[0] = *v20;
*(_QWORD *)&v27 = *(_QWORD *)v23;
}
v26[1] = v20[1];
*v20 = v23;
v20[1] = 0LL;
*(_BYTE *)v23 = 0;
testing::internal::StreamingListener::AbstractSocketWriter::SendLn(
*((_QWORD *)this + 1),
(unsigned int)v26,
(_DWORD)v20 + 8,
(_DWORD)v23,
v21,
v22);
if ( v26[0] != &v27 )
operator delete(v26[0], v27 + 1);
if ( *(_QWORD **)v34 != v36 )
operator delete(*(void **)v34, v36[0] + 1LL);
if ( v31 != &v33 )
operator delete(v31, v33 + 1);
if ( v24[0] != &v25 )
operator delete(v24[0], v25 + 1);
if ( v37[0] != v38 )
operator delete(v37[0], v38[0] + 1LL);
if ( v28 != &v30 )
operator delete(v28, v30 + 1);
if ( v39[0] != &v40 )
operator delete(v39[0], v40 + 1);
if ( *(long long **)v42 != &v43 )
operator delete(*(void **)v42, v43 + 1);
}
| OnTestPartResult:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x110
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
TEST RAX,RAX
JZ 0x0013af63
MOV RAX,qword ptr [R14 + 0x8]
LAB_0013af63:
TEST RAX,RAX
LEA RSI,[0x143660]
CMOVNZ RSI,RAX
LEA R15,[RSP + 0xf0]
MOV RDI,R15
CALL 0x0013029c
LAB_0013af81:
LEA RCX,[0x1447c8]
MOV R8D,0x1a
MOV RDI,R15
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00109580
LEA R15,[RSP + 0xd8]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0013afca
MOV qword ptr [RSP + 0xc8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0xd8],RDX
JMP 0x0013afd1
LAB_0013afca:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_0013afd1:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0xc8]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_0013aff0:
LEA RSI,[0x1447e3]
CALL 0x00109a70
LEA R12,[RSP + 0x58]
MOV qword ptr [R12 + -0x10],R12
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0013b024
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x58],RDX
JMP 0x0013b02c
LAB_0013b024:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R12],XMM0
LAB_0013b02c:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [R14 + 0x28]
LEA RSI,[RSP + 0xec]
MOV dword ptr [RSI],EAX
LAB_0013b052:
LEA RDI,[RSP + 0xa8]
CALL 0x00134c71
MOV RCX,qword ptr [RSP + 0x48]
MOV R8,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0xb0]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R12
JZ 0x0013b084
MOV RDI,qword ptr [RSP + 0x58]
LAB_0013b084:
MOV RSI,qword ptr [RSP + 0xa8]
CMP RAX,RDI
JBE 0x0013b0b0
LEA R9,[RSP + 0xb8]
MOV EDI,0xf
CMP RSI,R9
JZ 0x0013b0ab
MOV RDI,qword ptr [RSP + 0xb8]
LAB_0013b0ab:
CMP RAX,RDI
JBE 0x0013b0bc
LAB_0013b0b0:
LEA RDI,[RSP + 0x48]
CALL 0x00109170
JMP 0x0013b0cd
LAB_0013b0bc:
LEA RDI,[RSP + 0xa8]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00109580
LAB_0013b0cd:
LEA RDX,[RSP + 0x18]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x0013b0f1
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x0013b0f7
LAB_0013b0f1:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_0013b0f7:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_0013b114:
LEA RSI,[0x1447ea]
LEA RDI,[RSP + 0x8]
CALL 0x00109a70
LEA R13,[RSP + 0x78]
MOV qword ptr [R13 + -0x10],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0013b14c
MOV qword ptr [RSP + 0x68],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x78],RDX
JMP 0x0013b154
LAB_0013b14c:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_0013b154:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x70],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,qword ptr [R14 + 0x50]
LAB_0013b170:
LEA RDI,[RSP + 0x88]
CALL 0x0013029c
MOV RCX,qword ptr [RSP + 0x68]
MOV R8,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x90]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R13
JZ 0x0013b1a2
MOV RDI,qword ptr [RSP + 0x78]
LAB_0013b1a2:
MOV RSI,qword ptr [RSP + 0x88]
CMP RAX,RDI
JBE 0x0013b1ce
LEA R9,[RSP + 0x98]
MOV EDI,0xf
CMP RSI,R9
JZ 0x0013b1c9
MOV RDI,qword ptr [RSP + 0x98]
LAB_0013b1c9:
CMP RAX,RDI
JBE 0x0013b1da
LAB_0013b1ce:
LEA RDI,[RSP + 0x68]
CALL 0x00109170
JMP 0x0013b1eb
LAB_0013b1da:
LEA RDI,[RSP + 0x88]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00109580
LAB_0013b1eb:
LEA RDX,[RSP + 0x38]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x0013b20f
MOV qword ptr [RSP + 0x28],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x0013b215
LAB_0013b20f:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_0013b215:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
MOV RDI,qword ptr [RBX + 0x8]
LAB_0013b236:
LEA RSI,[RSP + 0x28]
CALL 0x0013c2f0
LAB_0013b240:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b25b
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001094c0
LAB_0013b25b:
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b27c
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x001094c0
LAB_0013b27c:
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R13
JZ 0x0013b293
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001094c0
LAB_0013b293:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b2ae
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
LAB_0013b2ae:
LEA RAX,[RSP + 0xb8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b2cf
MOV RSI,qword ptr [RSP + 0xb8]
INC RSI
CALL 0x001094c0
LAB_0013b2cf:
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R12
JZ 0x0013b2e6
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001094c0
LAB_0013b2e6:
MOV RDI,qword ptr [RSP + 0xc8]
CMP RDI,R15
JZ 0x0013b303
MOV RSI,qword ptr [RSP + 0xd8]
INC RSI
CALL 0x001094c0
LAB_0013b303:
LEA RAX,[RSP + 0x100]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b324
MOV RSI,qword ptr [RSP + 0x100]
INC RSI
CALL 0x001094c0
LAB_0013b324:
ADD RSP,0x110
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&) */
void __thiscall
testing::internal::StreamingListener::OnTestPartResult
(StreamingListener *this,TestPartResult *param_1)
{
char *pcVar1;
long *plVar2;
int8 *puVar3;
long *plVar4;
ulong *puVar5;
char *pcVar6;
ulong uVar7;
long *local_130;
int8 local_128;
long local_120;
int8 uStack_118;
long *local_110;
int8 local_108;
long local_100;
int8 uStack_f8;
ulong *local_f0;
long local_e8;
ulong local_e0;
long lStack_d8;
ulong *local_d0;
long local_c8;
ulong local_c0;
long lStack_b8;
ulong *local_b0;
long local_a8;
ulong local_a0 [2];
ulong *local_90;
long local_88;
ulong local_80 [2];
long *local_70;
long local_68;
long local_60;
long lStack_58;
int local_4c;
long *local_48 [2];
long local_38 [2];
pcVar1 = *(char **)(param_1 + 0x10);
if (pcVar1 != (char *)0x0) {
pcVar1 = *(char **)(param_1 + 8);
}
pcVar6 = "";
if (pcVar1 != (char *)0x0) {
pcVar6 = pcVar1;
}
UrlEncode_abi_cxx11_((StreamingListener *)local_48,pcVar6);
/* try { // try from 0013af81 to 0013af99 has its CatchHandler @ 0013b41b */
plVar2 = (long *)std::__cxx11::string::replace((ulong)local_48,0,(char *)0x0,0x1447c8);
plVar4 = plVar2 + 2;
if ((long *)*plVar2 == plVar4) {
local_60 = *plVar4;
lStack_58 = plVar2[3];
local_70 = &local_60;
}
else {
local_60 = *plVar4;
local_70 = (long *)*plVar2;
}
local_68 = plVar2[1];
*plVar2 = (long)plVar4;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 0013aff0 to 0013affb has its CatchHandler @ 0013b3f9 */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_70);
puVar5 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar5) {
local_e0 = *puVar5;
lStack_d8 = plVar2[3];
local_f0 = &local_e0;
}
else {
local_e0 = *puVar5;
local_f0 = (ulong *)*plVar2;
}
local_e8 = plVar2[1];
*plVar2 = (long)puVar5;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
local_4c = *(int *)(param_1 + 0x28);
/* try { // try from 0013b052 to 0013b05e has its CatchHandler @ 0013b3dd */
StreamableToString<int>((internal *)&local_90,&local_4c);
uVar7 = 0xf;
if (local_f0 != &local_e0) {
uVar7 = local_e0;
}
if (uVar7 < (ulong)(local_88 + local_e8)) {
uVar7 = 0xf;
if (local_90 != local_80) {
uVar7 = local_80[0];
}
if (uVar7 < (ulong)(local_88 + local_e8)) goto LAB_0013b0b0;
puVar3 = (int8 *)
std::__cxx11::string::replace((ulong)&local_90,0,(char *)0x0,(ulong)local_f0);
}
else {
LAB_0013b0b0:
/* try { // try from 0013b0b0 to 0013b0cc has its CatchHandler @ 0013b3b7 */
puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_f0,(ulong)local_90);
}
local_130 = &local_120;
plVar2 = puVar3 + 2;
if ((long *)*puVar3 == plVar2) {
local_120 = *plVar2;
uStack_118 = puVar3[3];
}
else {
local_120 = *plVar2;
local_130 = (long *)*puVar3;
}
local_128 = puVar3[1];
*puVar3 = plVar2;
puVar3[1] = 0;
*(int1 *)plVar2 = 0;
/* try { // try from 0013b114 to 0013b124 has its CatchHandler @ 0013b397 */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_130);
puVar5 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar5) {
local_c0 = *puVar5;
lStack_b8 = plVar2[3];
local_d0 = &local_c0;
}
else {
local_c0 = *puVar5;
local_d0 = (ulong *)*plVar2;
}
local_c8 = plVar2[1];
*plVar2 = (long)puVar5;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 0013b170 to 0013b17c has its CatchHandler @ 0013b37b */
UrlEncode_abi_cxx11_((StreamingListener *)&local_b0,*(char **)(param_1 + 0x50));
uVar7 = 0xf;
if (local_d0 != &local_c0) {
uVar7 = local_c0;
}
if (uVar7 < (ulong)(local_a8 + local_c8)) {
uVar7 = 0xf;
if (local_b0 != local_a0) {
uVar7 = local_a0[0];
}
if ((ulong)(local_a8 + local_c8) <= uVar7) {
puVar3 = (int8 *)
std::__cxx11::string::replace((ulong)&local_b0,0,(char *)0x0,(ulong)local_d0);
goto LAB_0013b1eb;
}
}
/* try { // try from 0013b1ce to 0013b1ea has its CatchHandler @ 0013b355 */
puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_d0,(ulong)local_b0);
LAB_0013b1eb:
local_110 = &local_100;
plVar2 = puVar3 + 2;
if ((long *)*puVar3 == plVar2) {
local_100 = *plVar2;
uStack_f8 = puVar3[3];
}
else {
local_100 = *plVar2;
local_110 = (long *)*puVar3;
}
local_108 = puVar3[1];
*puVar3 = plVar2;
puVar3[1] = 0;
*(int1 *)plVar2 = 0;
/* try { // try from 0013b236 to 0013b23f has its CatchHandler @ 0013b335 */
AbstractSocketWriter::SendLn(*(AbstractSocketWriter **)(this + 8),(string *)&local_110);
if (local_110 != &local_100) {
operator_delete(local_110,local_100 + 1);
}
if (local_b0 != local_a0) {
operator_delete(local_b0,local_a0[0] + 1);
}
if (local_d0 != &local_c0) {
operator_delete(local_d0,local_c0 + 1);
}
if (local_130 != &local_120) {
operator_delete(local_130,local_120 + 1);
}
if (local_90 != local_80) {
operator_delete(local_90,local_80[0] + 1);
}
if (local_f0 != &local_e0) {
operator_delete(local_f0,local_e0 + 1);
}
if (local_70 != &local_60) {
operator_delete(local_70,local_60 + 1);
}
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
return;
}
| |
50,004 | bc_get_sleb128 | bluesky950520[P]quickjs/quickjs.c | static int bc_get_sleb128(BCReaderState *s, int32_t *pval)
{
int ret;
ret = get_sleb128(pval, s->ptr, s->buf_end);
if (unlikely(ret < 0))
return bc_read_error_end(s);
s->ptr += ret;
return 0;
} | O1 | c | bc_get_sleb128:
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdx
movq %rax, %rdi
callq 0x10d68
testl %eax, %eax
js 0x11292
movl %eax, %eax
addq %rax, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
retq
cmpl $0x0, 0x30(%rbx)
jne 0x112a9
movq (%rbx), %rdi
leaq 0x8e69f(%rip), %rsi # 0x9f941
xorl %eax, %eax
callq 0x224d1
orl $-0x1, 0x30(%rbx)
pushq $-0x1
popq %rax
jmp 0x11290
| bc_get_sleb128:
push rbx
mov rax, rsi
mov rbx, rdi
mov rsi, [rdi+10h]
mov rdx, [rdi+18h]
mov rdi, rax
call get_sleb128
test eax, eax
js short loc_11292
mov eax, eax
add [rbx+10h], rax
xor eax, eax
loc_11290:
pop rbx
retn
loc_11292:
cmp dword ptr [rbx+30h], 0
jnz short loc_112A9
mov rdi, [rbx]
lea rsi, aReadAfterTheEn; "read after the end of the buffer"
xor eax, eax
call JS_ThrowSyntaxError
loc_112A9:
or dword ptr [rbx+30h], 0FFFFFFFFh
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_11290
| long long bc_get_sleb128(long long a1, int *a2)
{
int sleb128; // eax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
sleb128 = get_sleb128(a2, *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24));
if ( sleb128 < 0 )
{
if ( !*(_DWORD *)(a1 + 48) )
JS_ThrowSyntaxError(*(_QWORD *)a1, (unsigned int)"read after the end of the buffer", v3, v4, v5, v6);
*(_DWORD *)(a1 + 48) = -1;
return -1LL;
}
else
{
*(_QWORD *)(a1 + 16) += (unsigned int)sleb128;
return 0LL;
}
}
| bc_get_sleb128:
PUSH RBX
MOV RAX,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x10]
MOV RDX,qword ptr [RDI + 0x18]
MOV RDI,RAX
CALL 0x00110d68
TEST EAX,EAX
JS 0x00111292
MOV EAX,EAX
ADD qword ptr [RBX + 0x10],RAX
XOR EAX,EAX
LAB_00111290:
POP RBX
RET
LAB_00111292:
CMP dword ptr [RBX + 0x30],0x0
JNZ 0x001112a9
MOV RDI,qword ptr [RBX]
LEA RSI,[0x19f941]
XOR EAX,EAX
CALL 0x001224d1
LAB_001112a9:
OR dword ptr [RBX + 0x30],0xffffffff
PUSH -0x1
POP RAX
JMP 0x00111290
|
int8 bc_get_sleb128(int8 *param_1,int8 param_2)
{
uint uVar1;
int8 uStack_10;
uVar1 = get_sleb128(param_2,param_1[2],param_1[3]);
if ((int)uVar1 < 0) {
if (*(int *)(param_1 + 6) == 0) {
JS_ThrowSyntaxError(*param_1,"read after the end of the buffer");
}
*(int4 *)(param_1 + 6) = 0xffffffff;
uStack_10 = 0xffffffffffffffff;
}
else {
param_1[2] = param_1[2] + (ulong)uVar1;
uStack_10 = 0;
}
return uStack_10;
}
| |
50,005 | transid_get_packed | eloqsql/storage/maria/ma_key.c | ulonglong transid_get_packed(MARIA_SHARE *share, const uchar *from)
{
ulonglong value;
uint length;
if (from[0] < MARIA_MIN_TRANSID_PACK_OFFSET)
value= (ulonglong) from[0];
else
{
value= 0;
for (length= (uint) (from[0] - MARIA_TRANSID_PACK_OFFSET),
value= (ulonglong) from[1], from+=2;
--length ;
from++)
value= (value << 8) + ((ulonglong) *from);
}
return (value >> 1) + share->state.create_trid;
} | O0 | c | transid_get_packed:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xf3, %eax
jge 0x38cd7
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0x38d3a
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
subl $0xf9, %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
je 0x38d38
movq -0x18(%rbp), %rax
shlq $0x8, %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x38d06
jmp 0x38d3a
movq -0x18(%rbp), %rax
shrq %rax
movq -0x8(%rbp), %rcx
addq 0xe0(%rcx), %rax
popq %rbp
retq
nop
| transid_get_packed:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
cmp eax, 0F3h
jge short loc_38CD7
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
mov [rbp+var_18], rax
jmp short loc_38D3A
loc_38CD7:
mov [rbp+var_18], 0
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
sub eax, 0F9h
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
loc_38D06:
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
cmp eax, 0
jz short loc_38D38
mov rax, [rbp+var_18]
shl rax, 8
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_38D06
loc_38D38:
jmp short $+2
loc_38D3A:
mov rax, [rbp+var_18]
shr rax, 1
mov rcx, [rbp+var_8]
add rax, [rcx+0E0h]
pop rbp
retn
| unsigned long long transid_get_packed(long long a1, unsigned __int8 *a2)
{
int v3; // [rsp+0h] [rbp-1Ch]
unsigned long long v4; // [rsp+4h] [rbp-18h]
unsigned __int8 *i; // [rsp+Ch] [rbp-10h]
if ( *a2 >= 0xF3u )
{
v3 = *a2 - 249;
v4 = a2[1];
for ( i = a2 + 2; --v3; ++i )
v4 = *i + (v4 << 8);
}
else
{
v4 = *a2;
}
return *(_QWORD *)(a1 + 224) + (v4 >> 1);
}
| transid_get_packed:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xf3
JGE 0x00138cd7
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00138d3a
LAB_00138cd7:
MOV qword ptr [RBP + -0x18],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
SUB EAX,0xf9
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
LAB_00138d06:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JZ 0x00138d38
MOV RAX,qword ptr [RBP + -0x18]
SHL RAX,0x8
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00138d06
LAB_00138d38:
JMP 0x00138d3a
LAB_00138d3a:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x1
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0xe0]
POP RBP
RET
|
long transid_get_packed(long param_1,byte *param_2)
{
int local_24;
ulong local_20;
byte *local_18;
if (*param_2 < 0xf3) {
local_20 = (ulong)*param_2;
}
else {
local_24 = *param_2 - 0xf9;
local_20 = (ulong)param_2[1];
local_18 = param_2 + 2;
while (local_24 = local_24 + -1, local_24 != 0) {
local_20 = local_20 * 0x100 + (ulong)*local_18;
local_18 = local_18 + 1;
}
}
return (local_20 >> 1) + *(long *)(param_1 + 0xe0);
}
| |
50,006 | bf_resize | bluesky950520[P]quickjs/libbf.c | int bf_resize(bf_t *r, limb_t len)
{
limb_t *tab;
if (len != r->len) {
tab = bf_realloc(r->ctx, r->tab, len * sizeof(limb_t));
if (!tab && len != 0)
return -1;
r->tab = tab;
r->len = len;
}
return 0;
} | O1 | c | bf_resize:
xorl %eax, %eax
cmpq %rsi, 0x18(%rdi)
je 0x84aba
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x20(%rdi), %rsi
leaq (,%rbx,8), %rdx
movq (%rax), %rdi
callq *0x8(%rax)
movq %rax, %rcx
testq %rbx, %rbx
je 0x84aa9
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x84ab3
movq %rcx, 0x20(%r14)
movq %rbx, 0x18(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| bf_resize:
xor eax, eax
cmp [rdi+18h], rsi
jz short locret_84ABA
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rax, [rdi]
mov rsi, [rdi+20h]
lea rdx, ds:0[rbx*8]
mov rdi, [rax]
call qword ptr [rax+8]
mov rcx, rax
test rbx, rbx
jz short loc_84AA9
mov eax, 0FFFFFFFFh
test rcx, rcx
jz short loc_84AB3
loc_84AA9:
mov [r14+20h], rcx
mov [r14+18h], rbx
xor eax, eax
loc_84AB3:
add rsp, 8
pop rbx
pop r14
locret_84ABA:
retn
| long long bf_resize(long long a1, long long a2)
{
long long result; // rax
long long v3; // rcx
result = 0LL;
if ( *(_QWORD *)(a1 + 24) != a2 )
{
v3 = (*(long long ( **)(_QWORD, _QWORD, long long))(*(_QWORD *)a1 + 8LL))(
**(_QWORD **)a1,
*(_QWORD *)(a1 + 32),
8 * a2);
if ( !a2 || (result = 0xFFFFFFFFLL, v3) )
{
*(_QWORD *)(a1 + 32) = v3;
*(_QWORD *)(a1 + 24) = a2;
return 0LL;
}
}
return result;
}
| bf_resize:
XOR EAX,EAX
CMP qword ptr [RDI + 0x18],RSI
JZ 0x00184aba
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x20]
LEA RDX,[RBX*0x8]
MOV RDI,qword ptr [RAX]
CALL qword ptr [RAX + 0x8]
MOV RCX,RAX
TEST RBX,RBX
JZ 0x00184aa9
MOV EAX,0xffffffff
TEST RCX,RCX
JZ 0x00184ab3
LAB_00184aa9:
MOV qword ptr [R14 + 0x20],RCX
MOV qword ptr [R14 + 0x18],RBX
XOR EAX,EAX
LAB_00184ab3:
ADD RSP,0x8
POP RBX
POP R14
LAB_00184aba:
RET
|
int8 bf_resize(long *param_1,long param_2)
{
long lVar1;
int8 uVar2;
uVar2 = 0;
if ((param_1[3] != param_2) &&
((lVar1 = (*(code *)((int8 *)*param_1)[1])
(*(int8 *)*param_1,param_1[4],param_2 * 8), param_2 == 0 ||
(uVar2 = 0xffffffff, lVar1 != 0)))) {
param_1[4] = lVar1;
param_1[3] = param_2;
uVar2 = 0;
}
return uVar2;
}
| |
50,007 | CLI::Option::_validate_results(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&) const | MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/Option_inl.hpp | CLI11_INLINE void Option::_validate_results(results_t &res) const {
// Run the Validators (can change the string)
if(!validators_.empty()) {
if(type_size_max_ > 1) { // in this context index refers to the index in the type
int index = 0;
if(get_items_expected_max() < static_cast<int>(res.size()) &&
multi_option_policy_ == CLI::MultiOptionPolicy::TakeLast) {
// create a negative index for the earliest ones
index = get_items_expected_max() - static_cast<int>(res.size());
}
for(std::string &result : res) {
if(detail::is_separator(result) && type_size_max_ != type_size_min_ && index >= 0) {
index = 0; // reset index for variable size chunks
continue;
}
auto err_msg = _validate(result, (index >= 0) ? (index % type_size_max_) : index);
if(!err_msg.empty())
throw ValidationError(get_name(), err_msg);
++index;
}
} else {
int index = 0;
if(expected_max_ < static_cast<int>(res.size()) &&
multi_option_policy_ == CLI::MultiOptionPolicy::TakeLast) {
// create a negative index for the earliest ones
index = expected_max_ - static_cast<int>(res.size());
}
for(std::string &result : res) {
auto err_msg = _validate(result, index);
++index;
if(!err_msg.empty())
throw ValidationError(get_name(), err_msg);
}
}
}
} | O0 | cpp | CLI::Option::_validate_results(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&) const:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x140(%rbp)
addq $0x178, %rdi # imm = 0x178
callq 0x1cdb0
testb $0x1, %al
jne 0x1b9ed
movq -0x140(%rbp), %rax
cmpl $0x1, 0x168(%rax)
jle 0x1b7c6
movq -0x140(%rbp), %rdi
movl $0x0, -0x14(%rbp)
callq 0x1cdf0
movl %eax, -0x144(%rbp)
movq -0x10(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movl -0x144(%rbp), %eax
cmpl %ecx, %eax
jge 0x1b5db
movq -0x140(%rbp), %rax
cmpb $0x1, 0x27(%rax)
jne 0x1b5db
movq -0x140(%rbp), %rdi
callq 0x1cdf0
movl %eax, -0x148(%rbp)
movq -0x10(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movl -0x148(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xd5a0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0xd890
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xd8c0
testb $0x1, %al
jne 0x1b613
jmp 0x1b7c1
leaq -0x28(%rbp), %rdi
callq 0xd900
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1ce40
testb $0x1, %al
jne 0x1b62f
jmp 0x1b656
movq -0x140(%rbp), %rcx
movl 0x168(%rcx), %eax
cmpl 0x16c(%rcx), %eax
je 0x1b656
cmpl $0x0, -0x14(%rbp)
jl 0x1b656
movl $0x0, -0x14(%rbp)
jmp 0x1b7b3
movq -0x38(%rbp), %rax
movq %rax, -0x150(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x1b680
movq -0x140(%rbp), %rcx
movl -0x14(%rbp), %eax
cltd
idivl 0x168(%rcx)
movl %edx, -0x154(%rbp)
jmp 0x1b689
movl -0x14(%rbp), %eax
movl %eax, -0x154(%rbp)
movq -0x150(%rbp), %rdx
movq -0x140(%rbp), %rsi
movl -0x154(%rbp), %ecx
leaq -0x58(%rbp), %rdi
callq 0x1cf20
leaq -0x58(%rbp), %rdi
callq 0x99c0
testb $0x1, %al
jne 0x1b7a1
movb $0x1, -0xa9(%rbp)
movl $0x38, %edi
callq 0x92d0
movq -0x140(%rbp), %rsi
movq %rax, -0x160(%rbp)
leaq -0x78(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x1d120
jmp 0x1b6e5
leaq -0xa8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x9250
jmp 0x1b6f7
movq -0x160(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x1dbb0
jmp 0x1b710
movq -0x160(%rbp), %rdi
movb $0x0, -0xa9(%rbp)
leaq 0x85a43(%rip), %rsi # 0xa1168
leaq 0x2534(%rip), %rdx # 0x1dc60
callq 0x9a30
jmp 0x1b9ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x1b77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x1b773
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x9b90
leaq -0x78(%rbp), %rdi
callq 0x9b90
testb $0x1, -0xa9(%rbp)
jne 0x1b787
jmp 0x1b793
movq -0x160(%rbp), %rdi
callq 0x9470
leaq -0x58(%rbp), %rdi
callq 0x9b90
jmp 0x1b9f6
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x9b90
leaq -0x28(%rbp), %rdi
callq 0xf1b0
jmp 0x1b5fd
jmp 0x1b9eb
movq -0x140(%rbp), %rax
movl $0x0, -0xb0(%rbp)
movl 0x174(%rax), %eax
movl %eax, -0x164(%rbp)
movq -0x10(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movl -0x164(%rbp), %eax
cmpl %ecx, %eax
jge 0x1b833
movq -0x140(%rbp), %rax
cmpb $0x1, 0x27(%rax)
jne 0x1b833
movq -0x140(%rbp), %rax
movl 0x174(%rax), %eax
movl %eax, -0x168(%rbp)
movq -0x10(%rbp), %rdi
callq 0x18430
movq %rax, %rcx
movl -0x168(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xd5a0
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xd890
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xd8c0
testb $0x1, %al
jne 0x1b880
jmp 0x1b9e9
leaq -0xc0(%rbp), %rdi
callq 0xd900
movq -0x140(%rbp), %rsi
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdx
movl -0xb0(%rbp), %ecx
leaq -0xf0(%rbp), %rdi
callq 0x1cf20
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x99c0
testb $0x1, %al
jne 0x1b9cc
movb $0x1, -0x131(%rbp)
movl $0x38, %edi
callq 0x92d0
movq -0x140(%rbp), %rsi
movq %rax, -0x170(%rbp)
leaq -0x110(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x1d120
jmp 0x1b907
leaq -0x130(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x9250
jmp 0x1b91c
movq -0x170(%rbp), %rdi
leaq -0x110(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x1dbb0
jmp 0x1b938
movq -0x170(%rbp), %rdi
movb $0x0, -0x131(%rbp)
leaq 0x8581b(%rip), %rsi # 0xa1168
leaq 0x230c(%rip), %rdx # 0x1dc60
callq 0x9a30
jmp 0x1b9ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x1b9a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x1b99b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x9b90
leaq -0x110(%rbp), %rdi
callq 0x9b90
testb $0x1, -0x131(%rbp)
jne 0x1b9b2
jmp 0x1b9be
movq -0x170(%rbp), %rdi
callq 0x9470
leaq -0xf0(%rbp), %rdi
callq 0x9b90
jmp 0x1b9f6
leaq -0xf0(%rbp), %rdi
callq 0x9b90
leaq -0xc0(%rbp), %rdi
callq 0xf1b0
jmp 0x1b864
jmp 0x1b9eb
jmp 0x1b9ed
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x9a70
nop
| _ZNK3CLI6Option17_validate_resultsERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE:
push rbp
mov rbp, rsp
sub rsp, 170h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_140], rdi
add rdi, 178h
call _ZNKSt6vectorIN3CLI9ValidatorESaIS1_EE5emptyEv; std::vector<CLI::Validator>::empty(void)
test al, 1
jnz loc_1B9ED
mov rax, [rbp+var_140]
cmp dword ptr [rax+168h], 1
jle loc_1B7C6
mov rdi, [rbp+var_140]; this
mov [rbp+var_14], 0
call _ZNK3CLI6Option22get_items_expected_maxEv; CLI::Option::get_items_expected_max(void)
mov [rbp+var_144], eax
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov eax, [rbp+var_144]
cmp eax, ecx
jge short loc_1B5DB
mov rax, [rbp+var_140]
cmp byte ptr [rax+27h], 1
jnz short loc_1B5DB
mov rdi, [rbp+var_140]; this
call _ZNK3CLI6Option22get_items_expected_maxEv; CLI::Option::get_items_expected_max(void)
mov [rbp+var_148], eax
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov eax, [rbp+var_148]
sub eax, ecx
mov [rbp+var_14], eax
loc_1B5DB:
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov [rbp+var_28], rax
mov rdi, [rbp+var_20]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_30], rax
loc_1B5FD:
lea rdi, [rbp+var_28]
lea rsi, [rbp+var_30]
call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&)
test al, 1
jnz short loc_1B613
jmp loc_1B7C1
loc_1B613:
lea rdi, [rbp+var_28]
call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void)
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call _ZN3CLI6detail12is_separatorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::is_separator(std::string const&)
test al, 1
jnz short loc_1B62F
jmp short loc_1B656
loc_1B62F:
mov rcx, [rbp+var_140]
mov eax, [rcx+168h]
cmp eax, [rcx+16Ch]
jz short loc_1B656
cmp [rbp+var_14], 0
jl short loc_1B656
mov [rbp+var_14], 0
jmp loc_1B7B3
loc_1B656:
mov rax, [rbp+var_38]
mov [rbp+var_150], rax
cmp [rbp+var_14], 0
jl short loc_1B680
mov rcx, [rbp+var_140]
mov eax, [rbp+var_14]
cdq
idiv dword ptr [rcx+168h]
mov [rbp+var_154], edx
jmp short loc_1B689
loc_1B680:
mov eax, [rbp+var_14]
mov [rbp+var_154], eax
loc_1B689:
mov rdx, [rbp+var_150]
mov rsi, [rbp+var_140]
mov ecx, [rbp+var_154]
lea rdi, [rbp+var_58]
call _ZNK3CLI6Option9_validateERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; CLI::Option::_validate(std::string &,int)
lea rdi, [rbp+var_58]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_1B7A1
mov [rbp+var_A9], 1
mov edi, 38h ; '8'; thrown_size
call ___cxa_allocate_exception
mov rsi, [rbp+var_140]
mov [rbp+var_160], rax
lea rdi, [rbp+var_78]
xor ecx, ecx
mov edx, ecx
call _ZNK3CLI6Option8get_nameB5cxx11Ebb; CLI::Option::get_name(bool,bool)
jmp short $+2
loc_1B6E5:
lea rdi, [rbp+var_A8]
lea rsi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_1B6F7:
mov rdi, [rbp+var_160]
lea rsi, [rbp+var_78]
lea rdx, [rbp+var_A8]
call _ZN3CLI15ValidationErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; CLI::ValidationError::ValidationError(std::string,std::string)
jmp short $+2
loc_1B710:
mov rdi, [rbp+var_160]; void *
mov [rbp+var_A9], 0
lea rsi, _ZTIN3CLI15ValidationErrorE; lptinfo
lea rdx, _ZN3CLI15ValidationErrorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1B9FF
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
jmp short loc_1B77C
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
jmp short loc_1B773
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
lea rdi, [rbp+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B773:
lea rdi, [rbp+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B77C:
test [rbp+var_A9], 1
jnz short loc_1B787
jmp short loc_1B793
loc_1B787:
mov rdi, [rbp+var_160]; void *
call ___cxa_free_exception
loc_1B793:
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_1B9F6
loc_1B7A1:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B7B3:
lea rdi, [rbp+var_28]
call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void)
jmp loc_1B5FD
loc_1B7C1:
jmp loc_1B9EB
loc_1B7C6:
mov rax, [rbp+var_140]
mov [rbp+var_B0], 0
mov eax, [rax+174h]
mov [rbp+var_164], eax
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov eax, [rbp+var_164]
cmp eax, ecx
jge short loc_1B833
mov rax, [rbp+var_140]
cmp byte ptr [rax+27h], 1
jnz short loc_1B833
mov rax, [rbp+var_140]
mov eax, [rax+174h]
mov [rbp+var_168], eax
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax
mov eax, [rbp+var_168]
sub eax, ecx
mov [rbp+var_B0], eax
loc_1B833:
mov rax, [rbp+var_10]
mov [rbp+var_B8], rax
mov rdi, [rbp+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov [rbp+var_C0], rax
mov rdi, [rbp+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_C8], rax
loc_1B864:
lea rdi, [rbp+var_C0]
lea rsi, [rbp+var_C8]
call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&)
test al, 1
jnz short loc_1B880
jmp loc_1B9E9
loc_1B880:
lea rdi, [rbp+var_C0]
call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void)
mov rsi, [rbp+var_140]
mov [rbp+var_D0], rax
mov rdx, [rbp+var_D0]
mov ecx, [rbp+var_B0]
lea rdi, [rbp+var_F0]
call _ZNK3CLI6Option9_validateERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; CLI::Option::_validate(std::string &,int)
mov eax, [rbp+var_B0]
add eax, 1
mov [rbp+var_B0], eax
lea rdi, [rbp+var_F0]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_1B9CC
mov [rbp+var_131], 1
mov edi, 38h ; '8'; thrown_size
call ___cxa_allocate_exception
mov rsi, [rbp+var_140]
mov [rbp+var_170], rax
lea rdi, [rbp+var_110]
xor ecx, ecx
mov edx, ecx
call _ZNK3CLI6Option8get_nameB5cxx11Ebb; CLI::Option::get_name(bool,bool)
jmp short $+2
loc_1B907:
lea rdi, [rbp+var_130]
lea rsi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_1B91C:
mov rdi, [rbp+var_170]
lea rsi, [rbp+var_110]
lea rdx, [rbp+var_130]
call _ZN3CLI15ValidationErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; CLI::ValidationError::ValidationError(std::string,std::string)
jmp short $+2
loc_1B938:
mov rdi, [rbp+var_170]; void *
mov [rbp+var_131], 0
lea rsi, _ZTIN3CLI15ValidationErrorE; lptinfo
lea rdx, _ZN3CLI15ValidationErrorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1B9FF
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
jmp short loc_1B9A7
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
jmp short loc_1B99B
mov rcx, rax
mov eax, edx
mov [rbp+var_80], rcx
mov [rbp+var_84], eax
lea rdi, [rbp+var_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B99B:
lea rdi, [rbp+var_110]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1B9A7:
test [rbp+var_131], 1
jnz short loc_1B9B2
jmp short loc_1B9BE
loc_1B9B2:
mov rdi, [rbp+var_170]; void *
call ___cxa_free_exception
loc_1B9BE:
lea rdi, [rbp+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1B9F6
loc_1B9CC:
lea rdi, [rbp+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_C0]
call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void)
jmp loc_1B864
loc_1B9E9:
jmp short $+2
loc_1B9EB:
jmp short $+2
loc_1B9ED:
add rsp, 170h
pop rbp
retn
loc_1B9F6:
mov rdi, [rbp+var_80]
call __Unwind_Resume
loc_1B9FF:
nop
| char CLI::Option::_validate_results(long long a1, _QWORD *a2)
{
char result; // al
void *exception; // [rsp+0h] [rbp-170h]
int v4; // [rsp+8h] [rbp-168h]
int v5; // [rsp+Ch] [rbp-164h]
void *v6; // [rsp+10h] [rbp-160h]
unsigned int v7; // [rsp+1Ch] [rbp-154h]
int v8; // [rsp+28h] [rbp-148h]
int items_expected_max; // [rsp+2Ch] [rbp-144h]
_BYTE v10[32]; // [rsp+40h] [rbp-130h] BYREF
_BYTE v11[32]; // [rsp+60h] [rbp-110h] BYREF
_BYTE v12[32]; // [rsp+80h] [rbp-F0h] BYREF
long long v13; // [rsp+A0h] [rbp-D0h]
long long v14; // [rsp+A8h] [rbp-C8h] BYREF
_QWORD v15[2]; // [rsp+B0h] [rbp-C0h] BYREF
unsigned int v16; // [rsp+C0h] [rbp-B0h]
char v17; // [rsp+C7h] [rbp-A9h]
_BYTE v18[36]; // [rsp+C8h] [rbp-A8h] BYREF
_BYTE v19[32]; // [rsp+F8h] [rbp-78h] BYREF
_BYTE v20[32]; // [rsp+118h] [rbp-58h] BYREF
long long v21; // [rsp+138h] [rbp-38h]
long long v22; // [rsp+140h] [rbp-30h] BYREF
_QWORD v23[2]; // [rsp+148h] [rbp-28h] BYREF
int v24; // [rsp+15Ch] [rbp-14h]
_QWORD *v25; // [rsp+160h] [rbp-10h]
long long v26; // [rsp+168h] [rbp-8h]
v26 = a1;
v25 = a2;
result = std::vector<CLI::Validator>::empty(a1 + 376);
if ( (result & 1) == 0 )
{
if ( *(int *)(a1 + 360) <= 1 )
{
v16 = 0;
v5 = *(_DWORD *)(a1 + 372);
if ( v5 < (int)std::vector<std::string>::size(v25) && *(_BYTE *)(a1 + 39) == 1 )
{
v4 = *(_DWORD *)(a1 + 372);
v16 = v4 - std::vector<std::string>::size(v25);
}
v15[1] = v25;
v15[0] = std::vector<std::string>::begin((long long)v25);
v14 = std::vector<std::string>::end((long long)v25);
while ( 1 )
{
result = __gnu_cxx::operator!=<std::string *,std::vector<std::string>>((long long)v15, (long long)&v14);
if ( (result & 1) == 0 )
break;
v13 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)v15);
CLI::Option::_validate(v12, a1, v13, v16++);
if ( (std::string::empty(v12) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x38uLL);
CLI::Option::get_name[abi:cxx11](v11, a1, 0LL, 0LL);
std::string::basic_string(v10, v12);
CLI::ValidationError::ValidationError(exception, v11, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'CLI::ValidationError,
CLI::ValidationError::~ValidationError);
}
std::string::~string(v12);
__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(v15);
}
}
else
{
v24 = 0;
items_expected_max = CLI::Option::get_items_expected_max((CLI::Option *)a1);
if ( items_expected_max < (int)std::vector<std::string>::size(v25) && *(_BYTE *)(a1 + 39) == 1 )
{
v8 = CLI::Option::get_items_expected_max((CLI::Option *)a1);
v24 = v8 - std::vector<std::string>::size(v25);
}
v23[1] = v25;
v23[0] = std::vector<std::string>::begin((long long)v25);
v22 = std::vector<std::string>::end((long long)v25);
while ( 1 )
{
result = __gnu_cxx::operator!=<std::string *,std::vector<std::string>>((long long)v23, (long long)&v22);
if ( (result & 1) == 0 )
break;
v21 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)v23);
if ( (CLI::detail::is_separator(v21) & 1) == 0 || *(_DWORD *)(a1 + 360) == *(_DWORD *)(a1 + 364) || v24 < 0 )
{
if ( v24 < 0 )
v7 = v24;
else
v7 = v24 % *(_DWORD *)(a1 + 360);
CLI::Option::_validate(v20, a1, v21, v7);
if ( (std::string::empty(v20) & 1) == 0 )
{
v6 = __cxa_allocate_exception(0x38uLL);
CLI::Option::get_name[abi:cxx11](v19, a1, 0LL, 0LL);
std::string::basic_string(v18, v20);
CLI::ValidationError::ValidationError(v6, v19, v18);
v17 = 0;
__cxa_throw(
v6,
(struct type_info *)&`typeinfo for'CLI::ValidationError,
CLI::ValidationError::~ValidationError);
}
++v24;
std::string::~string(v20);
}
else
{
v24 = 0;
}
__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(v23);
}
}
}
return result;
}
| _validate_results:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x140],RDI
ADD RDI,0x178
CALL 0x0011cdb0
TEST AL,0x1
JNZ 0x0011b9ed
MOV RAX,qword ptr [RBP + -0x140]
CMP dword ptr [RAX + 0x168],0x1
JLE 0x0011b7c6
MOV RDI,qword ptr [RBP + -0x140]
MOV dword ptr [RBP + -0x14],0x0
CALL 0x0011cdf0
MOV dword ptr [RBP + -0x144],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00118430
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x144]
CMP EAX,ECX
JGE 0x0011b5db
MOV RAX,qword ptr [RBP + -0x140]
CMP byte ptr [RAX + 0x27],0x1
JNZ 0x0011b5db
MOV RDI,qword ptr [RBP + -0x140]
CALL 0x0011cdf0
MOV dword ptr [RBP + -0x148],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00118430
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x148]
SUB EAX,ECX
MOV dword ptr [RBP + -0x14],EAX
LAB_0011b5db:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010d5a0
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010d890
MOV qword ptr [RBP + -0x30],RAX
LAB_0011b5fd:
LEA RDI,[RBP + -0x28]
LEA RSI,[RBP + -0x30]
CALL 0x0010d8c0
TEST AL,0x1
JNZ 0x0011b613
JMP 0x0011b7c1
LAB_0011b613:
LEA RDI,[RBP + -0x28]
CALL 0x0010d900
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0011ce40
TEST AL,0x1
JNZ 0x0011b62f
JMP 0x0011b656
LAB_0011b62f:
MOV RCX,qword ptr [RBP + -0x140]
MOV EAX,dword ptr [RCX + 0x168]
CMP EAX,dword ptr [RCX + 0x16c]
JZ 0x0011b656
CMP dword ptr [RBP + -0x14],0x0
JL 0x0011b656
MOV dword ptr [RBP + -0x14],0x0
JMP 0x0011b7b3
LAB_0011b656:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x150],RAX
CMP dword ptr [RBP + -0x14],0x0
JL 0x0011b680
MOV RCX,qword ptr [RBP + -0x140]
MOV EAX,dword ptr [RBP + -0x14]
CDQ
IDIV dword ptr [RCX + 0x168]
MOV dword ptr [RBP + -0x154],EDX
JMP 0x0011b689
LAB_0011b680:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x154],EAX
LAB_0011b689:
MOV RDX,qword ptr [RBP + -0x150]
MOV RSI,qword ptr [RBP + -0x140]
MOV ECX,dword ptr [RBP + -0x154]
LEA RDI,[RBP + -0x58]
CALL 0x0011cf20
LEA RDI,[RBP + -0x58]
CALL 0x001099c0
TEST AL,0x1
JNZ 0x0011b7a1
MOV byte ptr [RBP + -0xa9],0x1
MOV EDI,0x38
CALL 0x001092d0
MOV RSI,qword ptr [RBP + -0x140]
MOV qword ptr [RBP + -0x160],RAX
LAB_0011b6d6:
LEA RDI,[RBP + -0x78]
XOR ECX,ECX
MOV EDX,ECX
CALL 0x0011d120
JMP 0x0011b6e5
LAB_0011b6e5:
LEA RDI,[RBP + -0xa8]
LEA RSI,[RBP + -0x58]
CALL 0x00109250
JMP 0x0011b6f7
LAB_0011b6f7:
MOV RDI,qword ptr [RBP + -0x160]
LEA RSI,[RBP + -0x78]
LEA RDX,[RBP + -0xa8]
CALL 0x0011dbb0
JMP 0x0011b710
LAB_0011b710:
MOV RDI,qword ptr [RBP + -0x160]
MOV byte ptr [RBP + -0xa9],0x0
LEA RSI,[0x1a1168]
LEA RDX,[0x11dc60]
CALL 0x00109a30
LAB_0011b7a1:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
LEA RDI,[RBP + -0x58]
CALL 0x00109b90
LAB_0011b7b3:
LEA RDI,[RBP + -0x28]
CALL 0x0010f1b0
JMP 0x0011b5fd
LAB_0011b7c1:
JMP 0x0011b9eb
LAB_0011b7c6:
MOV RAX,qword ptr [RBP + -0x140]
MOV dword ptr [RBP + -0xb0],0x0
MOV EAX,dword ptr [RAX + 0x174]
MOV dword ptr [RBP + -0x164],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00118430
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x164]
CMP EAX,ECX
JGE 0x0011b833
MOV RAX,qword ptr [RBP + -0x140]
CMP byte ptr [RAX + 0x27],0x1
JNZ 0x0011b833
MOV RAX,qword ptr [RBP + -0x140]
MOV EAX,dword ptr [RAX + 0x174]
MOV dword ptr [RBP + -0x168],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00118430
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x168]
SUB EAX,ECX
MOV dword ptr [RBP + -0xb0],EAX
LAB_0011b833:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xb8],RAX
MOV RDI,qword ptr [RBP + -0xb8]
CALL 0x0010d5a0
MOV qword ptr [RBP + -0xc0],RAX
MOV RDI,qword ptr [RBP + -0xb8]
CALL 0x0010d890
MOV qword ptr [RBP + -0xc8],RAX
LAB_0011b864:
LEA RDI,[RBP + -0xc0]
LEA RSI,[RBP + -0xc8]
CALL 0x0010d8c0
TEST AL,0x1
JNZ 0x0011b880
JMP 0x0011b9e9
LAB_0011b880:
LEA RDI,[RBP + -0xc0]
CALL 0x0010d900
MOV RSI,qword ptr [RBP + -0x140]
MOV qword ptr [RBP + -0xd0],RAX
MOV RDX,qword ptr [RBP + -0xd0]
MOV ECX,dword ptr [RBP + -0xb0]
LEA RDI,[RBP + -0xf0]
CALL 0x0011cf20
MOV EAX,dword ptr [RBP + -0xb0]
ADD EAX,0x1
MOV dword ptr [RBP + -0xb0],EAX
LEA RDI,[RBP + -0xf0]
CALL 0x001099c0
TEST AL,0x1
JNZ 0x0011b9cc
MOV byte ptr [RBP + -0x131],0x1
MOV EDI,0x38
CALL 0x001092d0
MOV RSI,qword ptr [RBP + -0x140]
MOV qword ptr [RBP + -0x170],RAX
LAB_0011b8f5:
LEA RDI,[RBP + -0x110]
XOR ECX,ECX
MOV EDX,ECX
CALL 0x0011d120
JMP 0x0011b907
LAB_0011b907:
LEA RDI,[RBP + -0x130]
LEA RSI,[RBP + -0xf0]
CALL 0x00109250
JMP 0x0011b91c
LAB_0011b91c:
MOV RDI,qword ptr [RBP + -0x170]
LEA RSI,[RBP + -0x110]
LEA RDX,[RBP + -0x130]
CALL 0x0011dbb0
JMP 0x0011b938
LAB_0011b938:
MOV RDI,qword ptr [RBP + -0x170]
MOV byte ptr [RBP + -0x131],0x0
LEA RSI,[0x1a1168]
LEA RDX,[0x11dc60]
CALL 0x00109a30
LAB_0011b9cc:
LEA RDI,[RBP + -0xf0]
CALL 0x00109b90
LEA RDI,[RBP + -0xc0]
CALL 0x0010f1b0
JMP 0x0011b864
LAB_0011b9e9:
JMP 0x0011b9eb
LAB_0011b9eb:
JMP 0x0011b9ed
LAB_0011b9ed:
ADD RSP,0x170
POP RBP
RET
|
/* CLI::Option::_validate_results(std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&) const */
void __thiscall CLI::Option::_validate_results(Option *this,vector *param_1)
{
bool bVar1;
int iVar2;
int iVar3;
ulong uVar4;
ValidationError *pVVar5;
string local_138 [32];
int1 local_118 [32];
string local_f8 [32];
int8 local_d8;
int8 local_d0;
int8 local_c8;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_c0;
int local_b8;
int1 local_b1;
string local_b0 [48];
int1 local_80 [32];
string local_60 [32];
string *local_40;
int8 local_38;
int8 local_30;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_28;
int local_1c;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_18;
Option *local_10;
local_18 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1;
local_10 = this;
uVar4 = std::vector<CLI::Validator,std::allocator<CLI::Validator>>::empty
((vector<CLI::Validator,std::allocator<CLI::Validator>> *)(this + 0x178));
if ((uVar4 & 1) == 0) {
if (*(int *)(this + 0x168) < 2) {
local_b8 = 0;
iVar2 = *(int *)(this + 0x174);
iVar3 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_18)
;
if ((iVar2 < iVar3) && (this[0x27] == (Option)0x1)) {
iVar2 = *(int *)(this + 0x174);
local_b8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
(local_18);
local_b8 = iVar2 - local_b8;
}
local_c0 = local_18;
local_c8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
(local_18);
local_d0 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
(local_c0);
while (bVar1 = __gnu_cxx::operator!=
((__normal_iterator *)&local_c8,(__normal_iterator *)&local_d0),
bVar1) {
local_d8 = __gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_c8);
_validate(local_f8,(int)this);
local_b8 = local_b8 + 1;
uVar4 = std::__cxx11::string::empty();
if ((uVar4 & 1) == 0) {
pVVar5 = (ValidationError *)__cxa_allocate_exception(0x38);
/* try { // try from 0011b8f5 to 0011b904 has its CatchHandler @ 0011b95e */
get_name_abi_cxx11_(SUB81(local_118,0),SUB81(this,0));
/* try { // try from 0011b907 to 0011b919 has its CatchHandler @ 0011b96f */
std::__cxx11::string::string(local_138,local_f8);
/* try { // try from 0011b91c to 0011b958 has its CatchHandler @ 0011b980 */
ValidationError::ValidationError(pVVar5,local_118,local_138);
/* WARNING: Subroutine does not return */
__cxa_throw(pVVar5,&ValidationError::typeinfo,ValidationError::~ValidationError);
}
std::__cxx11::string::~string(local_f8);
__gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_c8);
}
}
else {
local_1c = 0;
iVar2 = get_items_expected_max(this);
iVar3 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_18)
;
if ((iVar2 < iVar3) && (this[0x27] == (Option)0x1)) {
iVar2 = get_items_expected_max(this);
local_1c = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
(local_18);
local_1c = iVar2 - local_1c;
}
local_28 = local_18;
local_30 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
(local_18);
local_38 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
(local_28);
while (bVar1 = __gnu_cxx::operator!=
((__normal_iterator *)&local_30,(__normal_iterator *)&local_38),
bVar1) {
local_40 = (string *)
__gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_30);
uVar4 = detail::is_separator(local_40);
if ((((uVar4 & 1) == 0) || (*(int *)(this + 0x168) == *(int *)(this + 0x16c))) ||
(local_1c < 0)) {
_validate(local_60,(int)this);
uVar4 = std::__cxx11::string::empty();
if ((uVar4 & 1) == 0) {
local_b1 = 1;
pVVar5 = (ValidationError *)__cxa_allocate_exception(0x38);
/* try { // try from 0011b6d6 to 0011b6e2 has its CatchHandler @ 0011b736 */
get_name_abi_cxx11_(SUB81(local_80,0),SUB81(this,0));
/* try { // try from 0011b6e5 to 0011b6f4 has its CatchHandler @ 0011b747 */
std::__cxx11::string::string(local_b0,local_60);
/* try { // try from 0011b6f7 to 0011b730 has its CatchHandler @ 0011b758 */
ValidationError::ValidationError(pVVar5,local_80,local_b0);
local_b1 = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(pVVar5,&ValidationError::typeinfo,ValidationError::~ValidationError);
}
local_1c = local_1c + 1;
std::__cxx11::string::~string(local_60);
}
else {
local_1c = 0;
}
__gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_30);
}
}
}
return;
}
| |
50,008 | retrieve_auto_increment | eloqsql/storage/myisam/mi_key.c | ulonglong retrieve_auto_increment(MI_INFO *info,const uchar *record)
{
ulonglong value= 0; /* Store unsigned values here */
longlong s_value= 0; /* Store signed values here */
HA_KEYSEG *keyseg= info->s->keyinfo[info->s->base.auto_key-1].seg;
const uchar *key= (uchar*) record + keyseg->start;
switch (keyseg->type) {
case HA_KEYTYPE_INT8:
s_value= (longlong) *(const signed char*) key;
break;
case HA_KEYTYPE_BINARY:
value=(ulonglong) *(uchar*) key;
break;
case HA_KEYTYPE_SHORT_INT:
s_value= (longlong) sint2korr(key);
break;
case HA_KEYTYPE_USHORT_INT:
value=(ulonglong) uint2korr(key);
break;
case HA_KEYTYPE_LONG_INT:
s_value= (longlong) sint4korr(key);
break;
case HA_KEYTYPE_ULONG_INT:
value=(ulonglong) uint4korr(key);
break;
case HA_KEYTYPE_INT24:
s_value= (longlong) sint3korr(key);
break;
case HA_KEYTYPE_UINT24:
value=(ulonglong) uint3korr(key);
break;
case HA_KEYTYPE_FLOAT: /* This shouldn't be used */
{
float f_1;
float4get(f_1,key);
/* Ignore negative values */
value = (f_1 < (float) 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_DOUBLE: /* This shouldn't be used */
{
double f_1;
float8get(f_1,key);
/* Ignore negative values */
value = (f_1 < 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_LONGLONG:
s_value= sint8korr(key);
break;
case HA_KEYTYPE_ULONGLONG:
value= uint8korr(key);
break;
default:
DBUG_ASSERT(0);
value=0; /* Error */
break;
}
/*
The following code works because if s_value < 0 then value is 0
and if s_value == 0 then value will contain either s_value or the
correct value.
*/
return (s_value > 0) ? (ulonglong) s_value : value;
} | O0 | c | retrieve_auto_increment:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movq 0x218(%rcx), %rax
movl 0x184(%rcx), %ecx
decl %ecx
imulq $0x70, %rcx, %rcx
movq 0x28(%rax,%rcx), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
movl 0x8(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movzbl 0x18(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x48(%rbp)
subl $0xc, %eax
ja 0xafeae
movq -0x48(%rbp), %rax
leaq 0xa979a(%rip), %rcx # 0x159480
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x30(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movzwl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movzbl 0x2(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xafd8d
movq -0x30(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x10, %eax
orl $0xff000000, %eax # imm = 0xFF000000
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl (%rcx), %ecx
orl %ecx, %eax
movl %eax, -0x4c(%rbp)
jmp 0xafdb1
movq -0x30(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x10, %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl (%rcx), %ecx
orl %ecx, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cltq
movq %rax, -0x20(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
xorps %xmm0, %xmm0
ucomiss -0x34(%rbp), %xmm0
jbe 0xafe05
xorl %eax, %eax
movq %rax, -0x58(%rbp)
jmp 0xafe34
movss -0x34(%rbp), %xmm0
movss 0xa11f2(%rip), %xmm2 # 0x151004
movaps %xmm0, %xmm1
subss %xmm2, %xmm1
cvttss2si %xmm1, %rcx
cvttss2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
xorps %xmm0, %xmm0
ucomisd -0x40(%rbp), %xmm0
jbe 0xafe5b
xorl %eax, %eax
movq %rax, -0x60(%rbp)
jmp 0xafe8a
movsd -0x40(%rbp), %xmm0
movsd 0xa8de8(%rip), %xmm2 # 0x158c50
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xafeba
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xafeba
jmp 0xafeb0
jmp 0xafeb2
movq $0x0, -0x18(%rbp)
cmpq $0x0, -0x20(%rbp)
jle 0xafecb
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0xafed3
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| retrieve_auto_increment:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], 0
mov [rbp+var_20], 0
mov rax, [rbp+var_8]
mov rcx, [rax]
mov rax, [rcx+218h]
mov ecx, [rcx+184h]
dec ecx
imul rcx, 70h ; 'p'
mov rax, [rax+rcx+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
mov ecx, [rcx+8]
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax+18h]
add eax, 0FFFFFFFEh; switch 13 cases
mov ecx, eax
mov [rbp+var_48], rcx
sub eax, 0Ch
ja def_AFCED; jumptable 00000000000AFCED default case, case 7
mov rax, [rbp+var_48]
lea rcx, jpt_AFCED
movsxd rax, ds:(jpt_AFCED - 159480h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_AFCEF:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 14
movsx rax, byte ptr [rax]
mov [rbp+var_20], rax
jmp loc_AFEBA
loc_AFD00:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 2
movzx eax, byte ptr [rax]
mov [rbp+var_18], rax
jmp loc_AFEBA
loc_AFD10:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 3
movsx rax, word ptr [rax]
mov [rbp+var_20], rax
jmp loc_AFEBA
loc_AFD21:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 8
movzx eax, word ptr [rax]
mov [rbp+var_18], rax
jmp loc_AFEBA
loc_AFD31:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 4
movsxd rax, dword ptr [rax]
mov [rbp+var_20], rax
jmp loc_AFEBA
loc_AFD41:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 9
mov eax, [rax]
mov [rbp+var_18], rax
jmp loc_AFEBA
loc_AFD50:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 12
movzx eax, byte ptr [rax+2]
and eax, 80h
cmp eax, 0
jz short loc_AFD8D
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+2]
shl eax, 10h
or eax, 0FF000000h
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx]
or eax, ecx
mov [rbp+var_4C], eax
jmp short loc_AFDB1
loc_AFD8D:
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+2]
shl eax, 10h
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx]
or eax, ecx
mov [rbp+var_4C], eax
loc_AFDB1:
mov eax, [rbp+var_4C]
cdqe
mov [rbp+var_20], rax
jmp loc_AFEBA
loc_AFDBF:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 13
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov [rbp+var_18], rax
jmp loc_AFEBA
loc_AFDEB:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 5
mov eax, [rax]
mov [rbp+var_34], eax
xorps xmm0, xmm0
ucomiss xmm0, [rbp+var_34]
jbe short loc_AFE05
xor eax, eax
mov [rbp+var_58], rax
jmp short loc_AFE34
loc_AFE05:
movss xmm0, [rbp+var_34]
movss xmm2, cs:dword_151004
movaps xmm1, xmm0
subss xmm1, xmm2
cvttss2si rcx, xmm1
cvttss2si rax, xmm0
mov rdx, rax
sar rdx, 3Fh
and rcx, rdx
or rax, rcx
mov [rbp+var_58], rax
loc_AFE34:
mov rax, [rbp+var_58]
mov [rbp+var_18], rax
jmp short loc_AFEBA
loc_AFE3E:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 6
mov rax, [rax]
mov [rbp+var_40], rax
xorps xmm0, xmm0
ucomisd xmm0, [rbp+var_40]
jbe short loc_AFE5B
xor eax, eax
mov [rbp+var_60], rax
jmp short loc_AFE8A
loc_AFE5B:
movsd xmm0, [rbp+var_40]
movsd xmm2, cs:qword_158C50
movaps xmm1, xmm0
subsd xmm1, xmm2
cvttsd2si rcx, xmm1
cvttsd2si rax, xmm0
mov rdx, rax
sar rdx, 3Fh
and rcx, rdx
or rax, rcx
mov [rbp+var_60], rax
loc_AFE8A:
mov rax, [rbp+var_60]
mov [rbp+var_18], rax
jmp short loc_AFEBA
loc_AFE94:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 10
mov rax, [rax]
mov [rbp+var_20], rax
jmp short loc_AFEBA
loc_AFEA1:
mov rax, [rbp+var_30]; jumptable 00000000000AFCED case 11
mov rax, [rax]
mov [rbp+var_18], rax
jmp short loc_AFEBA
def_AFCED:
jmp short $+2; jumptable 00000000000AFCED default case, case 7
loc_AFEB0:
jmp short $+2
loc_AFEB2:
mov [rbp+var_18], 0
loc_AFEBA:
cmp [rbp+var_20], 0
jle short loc_AFECB
mov rax, [rbp+var_20]
mov [rbp+var_68], rax
jmp short loc_AFED3
loc_AFECB:
mov rax, [rbp+var_18]
mov [rbp+var_68], rax
loc_AFED3:
mov rax, [rbp+var_68]
pop rbp
retn
| long long retrieve_auto_increment(long long a1, long long a2)
{
long long v4; // [rsp+8h] [rbp-60h]
long long v5; // [rsp+10h] [rbp-58h]
signed int v6; // [rsp+1Ch] [rbp-4Ch]
float *v7; // [rsp+38h] [rbp-30h]
long long v8; // [rsp+40h] [rbp-28h]
long long v9; // [rsp+48h] [rbp-20h]
long long v10; // [rsp+50h] [rbp-18h]
v10 = 0LL;
v9 = 0LL;
v8 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 536LL)
+ 112LL * (unsigned int)(*(_DWORD *)(*(_QWORD *)a1 + 388LL) - 1)
+ 40);
v7 = (float *)(*(unsigned int *)(v8 + 8) + a2);
switch ( *(_BYTE *)(v8 + 24) )
{
case 2:
v10 = *(unsigned __int8 *)v7;
break;
case 3:
v9 = *(__int16 *)v7;
break;
case 4:
v9 = *(int *)v7;
break;
case 5:
if ( *v7 >= 0.0 )
v5 = (unsigned int)(int)*v7;
else
v5 = 0LL;
v10 = v5;
break;
case 6:
if ( *(double *)v7 >= 0.0 )
v4 = (unsigned int)(int)*(double *)v7;
else
v4 = 0LL;
v10 = v4;
break;
case 8:
v10 = *(unsigned __int16 *)v7;
break;
case 9:
v10 = *(unsigned int *)v7;
break;
case 0xA:
v9 = *(_QWORD *)v7;
break;
case 0xB:
v10 = *(_QWORD *)v7;
break;
case 0xC:
if ( (*((_BYTE *)v7 + 2) & 0x80) != 0 )
v6 = *(unsigned __int8 *)v7 | (*((unsigned __int8 *)v7 + 1) << 8) | (*((unsigned __int8 *)v7 + 2) << 16) | 0xFF000000;
else
v6 = *(unsigned __int8 *)v7 | (*((unsigned __int8 *)v7 + 1) << 8) | (*((unsigned __int8 *)v7 + 2) << 16);
v9 = v6;
break;
case 0xD:
v10 = (*((unsigned __int8 *)v7 + 2) << 16) | (unsigned int)*(unsigned __int16 *)v7;
break;
case 0xE:
v9 = *(char *)v7;
break;
default:
v10 = 0LL;
break;
}
if ( v9 <= 0 )
return v10;
else
return v9;
}
| retrieve_auto_increment:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],0x0
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RCX + 0x218]
MOV ECX,dword ptr [RCX + 0x184]
DEC ECX
IMUL RCX,RCX,0x70
MOV RAX,qword ptr [RAX + RCX*0x1 + 0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RCX + 0x8]
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + 0x18]
ADD EAX,-0x2
MOV ECX,EAX
MOV qword ptr [RBP + -0x48],RCX
SUB EAX,0xc
JA 0x001afeae
MOV RAX,qword ptr [RBP + -0x48]
LEA RCX,[0x259480]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_e:
MOV RAX,qword ptr [RBP + -0x30]
MOVSX RAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001afeba
caseD_2:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_3:
MOV RAX,qword ptr [RBP + -0x30]
MOVSX RAX,word ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001afeba
caseD_8:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_4:
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001afeba
caseD_9:
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_c:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x2]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001afd8d
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x2]
SHL EAX,0x10
OR EAX,0xff000000
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX]
OR EAX,ECX
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x001afdb1
LAB_001afd8d:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x2]
SHL EAX,0x10
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX]
OR EAX,ECX
MOV dword ptr [RBP + -0x4c],EAX
LAB_001afdb1:
MOV EAX,dword ptr [RBP + -0x4c]
CDQE
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001afeba
caseD_d:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_5:
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
XORPS XMM0,XMM0
UCOMISS XMM0,dword ptr [RBP + -0x34]
JBE 0x001afe05
XOR EAX,EAX
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001afe34
LAB_001afe05:
MOVSS XMM0,dword ptr [RBP + -0x34]
MOVSS XMM2,dword ptr [0x00251004]
MOVAPS XMM1,XMM0
SUBSS XMM1,XMM2
CVTTSS2SI RCX,XMM1
CVTTSS2SI RAX,XMM0
MOV RDX,RAX
SAR RDX,0x3f
AND RCX,RDX
OR RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
LAB_001afe34:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_6:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
XORPS XMM0,XMM0
UCOMISD XMM0,qword ptr [RBP + -0x40]
JBE 0x001afe5b
XOR EAX,EAX
MOV qword ptr [RBP + -0x60],RAX
JMP 0x001afe8a
LAB_001afe5b:
MOVSD XMM0,qword ptr [RBP + -0x40]
MOVSD XMM2,qword ptr [0x00258c50]
MOVAPS XMM1,XMM0
SUBSD XMM1,XMM2
CVTTSD2SI RCX,XMM1
CVTTSD2SI RAX,XMM0
MOV RDX,RAX
SAR RDX,0x3f
AND RCX,RDX
OR RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
LAB_001afe8a:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_a:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001afeba
caseD_b:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001afeba
caseD_7:
JMP 0x001afeb0
LAB_001afeb0:
JMP 0x001afeb2
LAB_001afeb2:
MOV qword ptr [RBP + -0x18],0x0
LAB_001afeba:
CMP qword ptr [RBP + -0x20],0x0
JLE 0x001afecb
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x001afed3
LAB_001afecb:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x68],RAX
LAB_001afed3:
MOV RAX,qword ptr [RBP + -0x68]
POP RBP
RET
|
double retrieve_auto_increment(long *param_1,long param_2)
{
float fVar1;
long lVar2;
double dVar3;
double *pdVar4;
double local_70;
double local_68;
double local_60;
uint local_54;
double local_28;
double local_20;
local_20 = 0.0;
local_28 = 0.0;
lVar2 = *(long *)(*(long *)(*param_1 + 0x218) + 0x28 +
(ulong)(*(int *)(*param_1 + 0x184) - 1) * 0x70);
pdVar4 = (double *)(param_2 + (ulong)*(uint *)(lVar2 + 8));
switch(*(int1 *)(lVar2 + 0x18)) {
case 2:
local_20 = (double)(ulong)*(byte *)pdVar4;
break;
case 3:
local_28 = (double)(long)(short)*(ushort *)pdVar4;
break;
case 4:
local_28 = (double)(long)(int)*(float *)pdVar4;
break;
case 5:
fVar1 = *(float *)pdVar4;
if (0.0 <= fVar1) {
local_60 = (double)((long)fVar1 | (long)(fVar1 - DAT_00251004) & (long)fVar1 >> 0x3f);
}
else {
local_60 = 0.0;
}
local_20 = local_60;
break;
case 6:
dVar3 = *pdVar4;
if (0.0 <= dVar3) {
local_68 = (double)((long)dVar3 | (long)(dVar3 - DAT_00258c50) & (long)dVar3 >> 0x3f);
}
else {
local_68 = 0.0;
}
local_20 = local_68;
break;
default:
local_20 = 0.0;
break;
case 8:
local_20 = (double)(ulong)*(ushort *)pdVar4;
break;
case 9:
local_20 = (double)(ulong)(uint)*(float *)pdVar4;
break;
case 10:
local_28 = *pdVar4;
break;
case 0xb:
local_20 = *pdVar4;
break;
case 0xc:
if (((ulong)*pdVar4 & 0x800000) == 0) {
local_54 = (uint)*(byte *)((long)pdVar4 + 2) << 0x10 | (uint)*(byte *)((long)pdVar4 + 1) << 8
| (uint)*(byte *)pdVar4;
}
else {
local_54 = (uint)*(byte *)((long)pdVar4 + 2) << 0x10 | 0xff000000 |
(uint)*(byte *)((long)pdVar4 + 1) << 8 | (uint)*(byte *)pdVar4;
}
local_28 = (double)(long)(int)local_54;
break;
case 0xd:
local_20 = (double)(ulong)*(uint3 *)pdVar4;
break;
case 0xe:
local_28 = (double)(long)(char)*(byte *)pdVar4;
}
if ((long)local_28 < 1) {
local_70 = local_20;
}
else {
local_70 = local_28;
}
return local_70;
}
| |
50,009 | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!context->contains(name)) {
return Value();
}
return context->at(name);
} | O0 | cpp | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq %rdx, 0x100(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x100(%rsp), %rdi
callq 0x12d7d0
movq 0x30(%rsp), %rsi
movq %rax, 0x38(%rsp)
addq $0x20, %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x11be40
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
movb %al, 0x4f(%rsp)
jmp 0x14593f
movb 0x4f(%rsp), %al
xorb $-0x1, %al
movb %al, 0x1f(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x1146d0
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x145960
jmp 0x145995
movq 0x20(%rsp), %rdi
callq 0x11c610
jmp 0x145a14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x1146d0
jmp 0x145a21
movq 0x100(%rsp), %rdi
callq 0x12d7d0
movq 0x30(%rsp), %rsi
movq %rax, (%rsp)
addq $0x20, %rsi
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x11be40
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
movq %rax, 0x10(%rsp)
jmp 0x1459d7
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x123fa0
jmp 0x1459e8
leaq 0x50(%rsp), %rdi
callq 0x1146d0
jmp 0x145a14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x1146d0
jmp 0x145a21
movq 0x28(%rsp), %rax
addq $0x118, %rsp # imm = 0x118
retq
movq 0xa8(%rsp), %rdi
callq 0x5aba0
nop
| _ZNK5minja12VariableExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
sub rsp, 118h
mov [rsp+118h+var_F8], rdi
mov rax, rdi
mov [rsp+118h+var_F0], rax
mov [rsp+118h+var_8], rdi
mov [rsp+118h+var_10], rsi
mov [rsp+118h+var_18], rdx
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_E8], rax
mov rdi, [rsp+118h+var_18]
call _ZNKSt19__shared_ptr_accessIN5minja7ContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Context,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, [rsp+118h+var_E8]
mov [rsp+118h+var_E0], rax
add rsi, 20h ; ' '
lea rdi, [rsp+118h+var_68]
mov [rsp+118h+var_D8], rdi
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, [rsp+118h+var_E0]
mov rsi, [rsp+118h+var_D8]
mov rax, [rdi]
mov rax, [rax+20h]
call rax
mov [rsp+118h+var_C9], al
jmp short $+2
loc_14593F:
mov al, [rsp+118h+var_C9]
xor al, 0FFh
mov [rsp+118h+var_F9], al
lea rdi, [rsp+118h+var_68]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov al, [rsp+118h+var_F9]
test al, 1
jnz short loc_145960
jmp short loc_145995
loc_145960:
mov rdi, [rsp+118h+var_F8]; this
call _ZN5minja5ValueC2Ev; minja::Value::Value(void)
jmp loc_145A14
mov rcx, rax
mov eax, edx
mov [rsp+arg_A0], rcx
mov [rsp+arg_9C], eax
lea rdi, [rsp+arg_A8]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp loc_145A21
loc_145995:
mov rdi, [rsp+118h+var_18]
call _ZNKSt19__shared_ptr_accessIN5minja7ContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Context,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, [rsp+118h+var_E8]
mov [rsp+118h+var_118], rax
add rsi, 20h ; ' '
lea rdi, [rsp+118h+var_C8]
mov [rsp+118h+var_110], rdi
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, [rsp+118h+var_118]
mov rsi, [rsp+118h+var_110]
mov rax, [rdi]
mov rax, [rax+18h]
call rax
mov [rsp+118h+var_108], rax
jmp short $+2
loc_1459D7:
mov rsi, [rsp+118h+var_108]; minja::Value *
mov rdi, [rsp+118h+var_F8]; this
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short $+2
loc_1459E8:
lea rdi, [rsp+118h+var_C8]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_145A14
mov rcx, rax
mov eax, edx
mov [rsp+arg_A0], rcx
mov [rsp+arg_9C], eax
lea rdi, [rsp+arg_48]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_145A21
loc_145A14:
mov rax, [rsp+118h+var_F0]
add rsp, 118h
retn
loc_145A21:
mov rdi, [rsp+arg_A0]
call __Unwind_Resume
| minja::Value * minja::VariableExpr::do_evaluate(minja::Value *a1, long long a2, long long a3)
{
long long v4; // [rsp+0h] [rbp-118h]
minja::Value *v5; // [rsp+10h] [rbp-108h]
char v6; // [rsp+1Fh] [rbp-F9h]
long long v7; // [rsp+38h] [rbp-E0h]
_BYTE v8[96]; // [rsp+50h] [rbp-C8h] BYREF
_BYTE v9[80]; // [rsp+B0h] [rbp-68h] BYREF
long long v10; // [rsp+100h] [rbp-18h]
long long v11; // [rsp+108h] [rbp-10h]
minja::Value *v12; // [rsp+110h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v7 = std::__shared_ptr_access<minja::Context,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a3);
minja::Value::Value((long long)v9, a2 + 32);
v6 = ~(*(unsigned __int8 ( **)(long long, _BYTE *))(*(_QWORD *)v7 + 32LL))(v7, v9);
minja::Value::~Value((minja::Value *)v9);
if ( (v6 & 1) != 0 )
{
minja::Value::Value(a1);
}
else
{
v4 = std::__shared_ptr_access<minja::Context,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v10);
minja::Value::Value((long long)v8, a2 + 32);
v5 = (minja::Value *)(*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v4 + 24LL))(v4, v8);
minja::Value::Value(a1, v5);
minja::Value::~Value((minja::Value *)v8);
}
return a1;
}
| |||
50,010 | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!context->contains(name)) {
return Value();
}
return context->at(name);
} | O2 | cpp | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %r12
addq $0x20, %r14
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x66700
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
callq 0x63722
testb %bpl, %bpl
je 0x7245e
movq (%r15), %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x66700
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x690f8
leaq 0x8(%rsp), %rdi
callq 0x63722
jmp 0x72466
movq %rbx, %rdi
callq 0x66a5e
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7247a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x63722
movq %rbx, %rdi
callq 0x23f90
nop
| _ZNK5minja12VariableExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rdx]
add r14, 20h ; ' '
lea r13, [rsp+88h+var_80]
mov rdi, r13
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r12]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+20h]
mov ebp, eax
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_7245E
mov r15, [r15]
lea r12, [rsp+88h+var_80]
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r15]
mov rdi, r15
mov rsi, r12
call qword ptr [rax+18h]
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_72466
loc_7245E:
mov rdi, rbx; this
call _ZN5minja5ValueC2Ev; minja::Value::Value(void)
loc_72466:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_7247A:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| minja::Value * minja::VariableExpr::do_evaluate(minja::Value *this, long long a2, long long *a3)
{
long long v4; // r12
char v5; // bp
long long v6; // r15
const minja::Value *v7; // rax
_BYTE v9[128]; // [rsp+8h] [rbp-80h] BYREF
v4 = *a3;
minja::Value::Value((long long)v9, a2 + 32);
v5 = (*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v4 + 32LL))(v4, v9);
minja::Value::~Value((minja::Value *)v9);
if ( v5 )
{
v6 = *a3;
minja::Value::Value((long long)v9, a2 + 32);
v7 = (const minja::Value *)(*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v6 + 24LL))(v6, v9);
minja::Value::Value(this, v7);
minja::Value::~Value((minja::Value *)v9);
}
else
{
minja::Value::Value(this);
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDX]
ADD R14,0x20
LEA R13,[RSP + 0x8]
MOV RDI,R13
MOV RSI,R14
CALL 0x00166700
MOV RAX,qword ptr [R12]
LAB_0017240e:
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x20]
LAB_00172417:
MOV EBP,EAX
LEA RDI,[RSP + 0x8]
CALL 0x00163722
TEST BPL,BPL
JZ 0x0017245e
MOV R15,qword ptr [R15]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R14
CALL 0x00166700
MOV RAX,qword ptr [R15]
LAB_0017243e:
MOV RDI,R15
MOV RSI,R12
CALL qword ptr [RAX + 0x18]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001690f8
LAB_00172452:
LEA RDI,[RSP + 0x8]
CALL 0x00163722
JMP 0x00172466
LAB_0017245e:
MOV RDI,RBX
CALL 0x00166a5e
LAB_00172466:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::VariableExpr::do_evaluate(shared_ptr *param_1)
{
long *plVar1;
char cVar2;
Value *pVVar3;
int8 *in_RDX;
long in_RSI;
Value local_80 [80];
plVar1 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 0017240e to 00172416 has its CatchHandler @ 0017247a */
cVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,local_80);
Value::~Value(local_80);
if (cVar2 == '\0') {
Value::Value((Value *)param_1);
}
else {
plVar1 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 0017243e to 00172451 has its CatchHandler @ 00172478 */
pVVar3 = (Value *)(**(code **)(*plVar1 + 0x18))(plVar1,local_80);
Value::Value((Value *)param_1,pVVar3);
Value::~Value(local_80);
}
return param_1;
}
| |
50,011 | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!context->contains(name)) {
return Value();
}
return context->at(name);
} | O3 | cpp | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %r12
addq $0x20, %r14
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x8a94c
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movl %eax, %ebp
leaq 0x48(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58f20
movq %r12, %rdi
callq 0x5e40e
movq -0x8(%r12), %rdi
testq %rdi, %rdi
je 0x98d4f
callq 0x6de32
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x98d5e
callq 0x6de32
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x98d6d
callq 0x6de32
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x98da3
movq 0x9320a(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x98d8e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x98d98
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x98da3
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0x98e3a
movq (%r15), %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x8a94c
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8df9a
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58f20
movq %r14, %rdi
callq 0x5e40e
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x98dfb
callq 0x6de32
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x98e0a
callq 0x6de32
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x98e19
callq 0x6de32
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x98e8d
movq 0x9315e(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x98e78
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x98e82
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x58f20
movq %r14, %rdi
movl $0x1, %esi
callq 0x58f20
jmp 0x98e8d
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x98e8d
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x98ea1
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x868ee
movq %rbx, %rdi
callq 0x1af90
| _ZNK5minja12VariableExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rdx]
add r14, 20h ; ' '
lea r13, [rsp+88h+var_80]
mov rdi, r13
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r12]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+20h]
mov ebp, eax
lea r12, [rsp+88h+var_40]
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r12-8]
test rdi, rdi
jz short loc_98D4F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98D4F:
mov rdi, [rsp+88h+var_58]
test rdi, rdi
jz short loc_98D5E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98D5E:
mov rdi, [rsp+88h+var_68]
test rdi, rdi
jz short loc_98D6D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98D6D:
mov rdi, [rsp+88h+var_78]
test rdi, rdi
jz short loc_98DA3
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_98D8E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_98D98
loc_98D8E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_98D98:
cmp eax, 1
jnz short loc_98DA3
mov rax, [rdi]
call qword ptr [rax+18h]
loc_98DA3:
test bpl, bpl
jz loc_98E3A
mov r15, [r15]
lea r12, [rsp+88h+var_80]
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r15]
mov rdi, r15
mov rsi, r12
call qword ptr [rax+18h]
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
lea r14, [rsp+88h+var_40]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_98DFB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98DFB:
mov rdi, [rsp+88h+var_58]
test rdi, rdi
jz short loc_98E0A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98E0A:
mov rdi, [rsp+88h+var_68]
test rdi, rdi
jz short loc_98E19
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98E19:
mov rdi, [rsp+88h+var_78]
test rdi, rdi
jz short loc_98E8D
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_98E78
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_98E82
loc_98E3A:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp short loc_98E8D
loc_98E78:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_98E82:
cmp eax, 1
jnz short loc_98E8D
mov rax, [rdi]
call qword ptr [rax+18h]
loc_98E8D:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_98EA1:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| minja::Value * minja::VariableExpr::do_evaluate(minja::Value *this, long long a2, long long *a3)
{
long long v5; // r12
char v6; // bp
long long v7; // rdi
signed __int32 v8; // eax
long long v9; // r15
const minja::Value *v10; // rax
long long v11; // rdi
signed __int32 v12; // eax
_BYTE v14[8]; // [rsp+8h] [rbp-80h] BYREF
long long v15; // [rsp+10h] [rbp-78h]
volatile signed __int32 *v16; // [rsp+20h] [rbp-68h]
volatile signed __int32 *v17; // [rsp+30h] [rbp-58h]
volatile signed __int32 *v18; // [rsp+40h] [rbp-48h]
char v19[64]; // [rsp+48h] [rbp-40h] BYREF
v5 = *a3;
minja::Value::Value((long long)v14, a2 + 32);
v6 = (*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v5 + 32LL))(v5, v14);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v19);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v19);
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( v17 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
v7 = v15;
if ( v15 )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(v15 + 12);
*(_DWORD *)(v15 + 12) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(v15 + 12), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
if ( v6 )
{
v9 = *a3;
minja::Value::Value((long long)v14, a2 + 32);
v10 = (const minja::Value *)(*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v9 + 24LL))(v9, v14);
minja::Value::Value(this, v10);
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(v19);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v19);
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( v17 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
v11 = v15;
if ( v15 )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(v15 + 12);
*(_DWORD *)(v15 + 12) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(v15 + 12), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
}
else
{
*((_QWORD *)this + 9) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_BYTE *)this + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDX]
ADD R14,0x20
LEA R13,[RSP + 0x8]
MOV RDI,R13
MOV RSI,R14
CALL 0x0018a94c
MOV RAX,qword ptr [R12]
LAB_00198d1e:
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x20]
LAB_00198d27:
MOV EBP,EAX
LEA R12,[RSP + 0x48]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00158f20
MOV RDI,R12
CALL 0x0015e40e
MOV RDI,qword ptr [R12 + -0x8]
TEST RDI,RDI
JZ 0x00198d4f
CALL 0x0016de32
LAB_00198d4f:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00198d5e
CALL 0x0016de32
LAB_00198d5e:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x00198d6d
CALL 0x0016de32
LAB_00198d6d:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x00198da3
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x00198d8e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00198d98
LAB_00198d8e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00198d98:
CMP EAX,0x1
JNZ 0x00198da3
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00198da3:
TEST BPL,BPL
JZ 0x00198e3a
MOV R15,qword ptr [R15]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R14
CALL 0x0018a94c
MOV RAX,qword ptr [R15]
LAB_00198dc2:
MOV RDI,R15
MOV RSI,R12
CALL qword ptr [RAX + 0x18]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0018df9a
LAB_00198dd6:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158f20
MOV RDI,R14
CALL 0x0015e40e
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x00198dfb
CALL 0x0016de32
LAB_00198dfb:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00198e0a
CALL 0x0016de32
LAB_00198e0a:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x00198e19
CALL 0x0016de32
LAB_00198e19:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x00198e8d
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x00198e78
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00198e82
LAB_00198e3a:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158f20
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158f20
JMP 0x00198e8d
LAB_00198e78:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00198e82:
CMP EAX,0x1
JNZ 0x00198e8d
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00198e8d:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::VariableExpr::do_evaluate(shared_ptr *param_1)
{
int *piVar1;
long *plVar2;
char cVar3;
int iVar4;
Value *pVVar5;
int8 *in_RDX;
long in_RSI;
bool bVar6;
Value local_80 [8];
long *local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
data local_40 [16];
plVar2 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 00198d1e to 00198d26 has its CatchHandler @ 00198ea1 */
cVar3 = (**(code **)(*plVar2 + 0x20))(plVar2,local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_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);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
if (cVar3 == '\0') {
bVar6 = (bool)((char)param_1 + '@');
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x38) = 0;
param_1[0x40] = (shared_ptr)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar6);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar6);
}
else {
plVar2 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 00198dc2 to 00198dd5 has its CatchHandler @ 00198e9f */
pVVar5 = (Value *)(**(code **)(*plVar2 + 0x18))(plVar2,local_80);
Value::Value((Value *)param_1,pVVar5);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_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);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
}
return param_1;
}
| |
50,012 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) | monkey531[P]llama/common/./json.hpp | void destroy(value_t t)
{
if (
(t == value_t::object && object == nullptr) ||
(t == value_t::array && array == nullptr) ||
(t == value_t::string && string == nullptr) ||
(t == value_t::binary && binary == nullptr)
)
{
//not initialized (e.g. due to exception in the ctor)
return;
}
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
current_item.m_data.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_data.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_data.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, %esi
sete %al
movq (%rdi), %rcx
testq %rcx, %rcx
sete %dl
testb %dl, %al
jne 0x30672
movl %esi, %r14d
testq %rcx, %rcx
sete %al
movl %r14d, %edx
andb $-0x2, %dl
cmpb $0x2, %dl
sete %dl
cmpb $0x8, %r14b
sete %sil
orb %dl, %sil
testb %al, %sil
jne 0x30672
movq %rdi, %rbx
leal -0x1(%r14), %eax
cmpb $0x1, %al
ja 0x305e0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x8(%rcx), %rax
subq (%rcx), %rax
cmpb $0x2, %r14b
jne 0x30609
sarq $0x4, %rax
movq %rsp, %rdi
movq %rax, %rsi
callq 0x306a8
movq (%rbx), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %rsp, %rdx
callq 0x30782
leaq 0x18(%rsp), %r15
movq %rsp, %r12
movq 0x8(%rsp), %rsi
cmpq %rsi, (%rsp)
je 0x305d8
addq $-0x10, %rsi
movq %r15, %rdi
callq 0x2f566
movq 0x8(%rsp), %rdi
addq $-0x10, %rdi
movq %rdi, 0x8(%rsp)
callq 0x2a632
movzbl 0x18(%rsp), %eax
cmpl $0x1, %eax
je 0x3059b
cmpl $0x2, %eax
jne 0x305cb
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %r12, %rdx
callq 0x30782
movq 0x20(%rsp), %rdi
callq 0x30750
jmp 0x305cb
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
cmpq %rbp, %r13
je 0x305c1
addq $0x20, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x2f59a
addq $0x10, %r13
jmp 0x305a7
movq 0x20(%rsp), %rdi
callq 0x30758
movq %r15, %rdi
callq 0x2a632
jmp 0x3053e
movq %rsp, %rdi
callq 0x30760
movzbl %r14b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x30672
leaq 0x63f6a(%rip), %rcx # 0x94560
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x3081a
jmp 0x3064f
pushq $0x30
popq %rcx
cqto
idivq %rcx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x306a8
movq (%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
movq %rsp, %r12
cmpq %r13, %r15
je 0x30536
addq $0x20, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x2f59a
addq $0x10, %r15
jmp 0x30629
movq (%rbx), %rdi
callq 0x21dc8
pushq $0x20
jmp 0x30669
movq (%rbx), %rdi
callq 0x30760
pushq $0x18
jmp 0x30669
movq (%rbx), %rdi
callq 0x30420
pushq $0x28
popq %rsi
movq (%rbx), %rdi
callq 0x216d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x30685
jmp 0x3068a
movq %rax, %rbx
jmp 0x30697
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2a632
movq %rsp, %rdi
callq 0x30760
movq %rbx, %rdi
callq 0x21be0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
cmp esi, 1
setz al
mov rcx, [rdi]
test rcx, rcx
setz dl
test al, dl
jnz def_305FD; jumptable 00000000000305FD default case, cases 4-7
mov r14d, esi
test rcx, rcx
setz al
mov edx, r14d
and dl, 0FEh
cmp dl, 2
setz dl
cmp r14b, 8
setz sil
or sil, dl
test sil, al
jnz def_305FD; jumptable 00000000000305FD default case, cases 4-7
mov rbx, rdi
lea eax, [r14-1]
cmp al, 1
ja loc_305E0
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
and [rsp+58h+var_48], 0
mov rax, [rcx+8]
sub rax, [rcx]
cmp r14b, 2
jnz loc_30609
sar rax, 4
mov rdi, rsp
mov rsi, rax
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov rdi, [rax]
mov rsi, [rax+8]
mov rdx, rsp
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
loc_30536:
lea r15, [rsp+58h+var_40]
mov r12, rsp
loc_3053E:
mov rsi, qword ptr [rsp+58h+var_58+8]
cmp qword ptr [rsp+58h+var_58], rsi
jz loc_305D8
add rsi, 0FFFFFFFFFFFFFFF0h
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, qword ptr [rsp+58h+var_58+8]
add rdi, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+58h+var_58+8], rdi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
movzx eax, [rsp+58h+var_40]
cmp eax, 1
jz short loc_3059B
cmp eax, 2
jnz short loc_305CB
mov rax, [rsp+58h+var_38]
mov rdi, [rax]
mov rsi, [rax+8]
mov rdx, r12
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov rdi, [rsp+58h+var_38]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::clear(void)
jmp short loc_305CB
loc_3059B:
mov rax, [rsp+58h+var_38]
mov r13, [rax]
mov rbp, [rax+8]
loc_305A7:
cmp r13, rbp
jz short loc_305C1
add r13, 20h ; ' '
mov rdi, r12
mov rsi, r13
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r13, 10h
jmp short loc_305A7
loc_305C1:
mov rdi, [rsp+58h+var_38]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5clearEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::clear(void)
loc_305CB:
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_3053E
loc_305D8:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_305E0:
movzx eax, r14b
dec eax; switch 8 cases
cmp eax, 7
ja def_305FD; jumptable 00000000000305FD default case, cases 4-7
lea rcx, jpt_305FD
movsxd rax, ds:(jpt_305FD - 94560h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_305FF:
mov rdi, [rbx]; jumptable 00000000000305FD case 1
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~vector()
jmp short loc_3064F
loc_30609:
push 30h ; '0'
pop rcx
cqo
idiv rcx
mov rdi, rsp
mov rsi, rax
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov r15, [rax]
mov r13, [rax+8]
mov r12, rsp
loc_30629:
cmp r15, r13
jz loc_30536
add r15, 20h ; ' '
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r15, 10h
jmp short loc_30629
loc_30647:
mov rdi, [rbx]; jumptable 00000000000305FD case 3
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3064F:
push 20h ; ' '
jmp short loc_30669
loc_30653:
mov rdi, [rbx]; jumptable 00000000000305FD case 2
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
push 18h
jmp short loc_30669
loc_3065F:
mov rdi, [rbx]; jumptable 00000000000305FD case 8
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
push 28h ; '('
loc_30669:
pop rsi; unsigned __int64
mov rdi, [rbx]; void *
call __ZdlPvm; operator delete(void *,ulong)
def_305FD:
add rsp, 28h; jumptable 00000000000305FD default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_30685
jmp short loc_3068A
loc_30685:
mov rbx, rax
jmp short loc_30697
loc_3068A:
mov rbx, rax
lea rdi, [rsp+arg_10]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_30697:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
void **a1,
unsigned int a2)
{
_QWORD *v2; // rcx
long long v3; // rdx
long long v4; // rax
long long v5; // r13
long long v6; // rbp
long long v7; // r15
long long v8; // r13
long long v9; // r15
__int128 v10; // [rsp+0h] [rbp-58h] BYREF
long long v11; // [rsp+10h] [rbp-48h]
char v12[8]; // [rsp+18h] [rbp-40h] BYREF
_QWORD *v13; // [rsp+20h] [rbp-38h]
v2 = *a1;
if ( *a1 != 0LL || a2 != 1 )
{
v3 = a2;
LOBYTE(v3) = (a2 & 0xFE) == 2;
if ( ((v2 == 0LL) & (unsigned __int8)(v3 | ((_BYTE)a2 == 8))) == 0 )
{
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v10 = 0LL;
v11 = 0LL;
v4 = v2[1] - *v2;
if ( (_BYTE)a2 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v10,
v4 >> 4,
v3);
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
*(_QWORD *)*a1,
*((_QWORD *)*a1 + 1),
&v10);
}
else
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v10,
v4 / 48,
v4 % 48);
v7 = *(_QWORD *)*a1;
v8 = *((_QWORD *)*a1 + 1);
while ( v7 != v8 )
{
v9 = v7 + 32;
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v10,
v9);
v7 = v9 + 16;
}
}
while ( (_QWORD)v10 != *((_QWORD *)&v10 + 1) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v12,
*((_QWORD *)&v10 + 1) - 16LL);
*((_QWORD *)&v10 + 1) -= 16LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(*((long long *)&v10 + 1));
if ( v12[0] == 1 )
{
v5 = *v13;
v6 = v13[1];
while ( v5 != v6 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v10,
v5 + 32);
v5 += 48LL;
}
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::clear(v13);
}
else if ( v12[0] == 2 )
{
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
*v13,
v13[1],
&v10);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::clear(v13);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v12);
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(&v10);
}
switch ( (char)a2 )
{
case 1:
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~vector(*a1);
goto LABEL_22;
case 2:
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(*a1);
operator delete(*a1, 0x18uLL);
break;
case 3:
std::string::~string(*a1);
LABEL_22:
operator delete(*a1, 0x20uLL);
break;
case 8:
std::_Vector_base<unsigned char>::~_Vector_base(*a1);
operator delete(*a1, 0x28uLL);
break;
default:
return;
}
}
}
}
| destroy:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
CMP ESI,0x1
SETZ AL
MOV RCX,qword ptr [RDI]
TEST RCX,RCX
SETZ DL
TEST AL,DL
JNZ 0x00130672
MOV R14D,ESI
TEST RCX,RCX
SETZ AL
MOV EDX,R14D
AND DL,0xfe
CMP DL,0x2
SETZ DL
CMP R14B,0x8
SETZ SIL
OR SIL,DL
TEST SIL,AL
JNZ 0x00130672
MOV RBX,RDI
LEA EAX,[R14 + -0x1]
CMP AL,0x1
JA 0x001305e0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
CMP R14B,0x2
JNZ 0x00130609
SAR RAX,0x4
LAB_00130519:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x001306a8
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,RSP
CALL 0x00130782
LAB_00130536:
LEA R15,[RSP + 0x18]
MOV R12,RSP
LAB_0013053e:
MOV RSI,qword ptr [RSP + 0x8]
CMP qword ptr [RSP],RSI
JZ 0x001305d8
ADD RSI,-0x10
MOV RDI,R15
CALL 0x0012f566
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,-0x10
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0012a632
MOVZX EAX,byte ptr [RSP + 0x18]
CMP EAX,0x1
JZ 0x0013059b
CMP EAX,0x2
JNZ 0x001305cb
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
LAB_00130587:
MOV RDX,R12
CALL 0x00130782
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00130750
JMP 0x001305cb
LAB_0013059b:
MOV RAX,qword ptr [RSP + 0x20]
MOV R13,qword ptr [RAX]
MOV RBP,qword ptr [RAX + 0x8]
LAB_001305a7:
CMP R13,RBP
JZ 0x001305c1
ADD R13,0x20
LAB_001305b0:
MOV RDI,R12
MOV RSI,R13
CALL 0x0012f59a
ADD R13,0x10
JMP 0x001305a7
LAB_001305c1:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00130758
LAB_001305cb:
MOV RDI,R15
CALL 0x0012a632
JMP 0x0013053e
LAB_001305d8:
MOV RDI,RSP
CALL 0x00130760
LAB_001305e0:
MOVZX EAX,R14B
DEC EAX
CMP EAX,0x7
JA 0x00130672
LEA RCX,[0x194560]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RBX]
CALL 0x0013081a
JMP 0x0013064f
LAB_00130609:
PUSH 0x30
POP RCX
CQO
IDIV RCX
LAB_00130611:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x001306a8
MOV RAX,qword ptr [RBX]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
MOV R12,RSP
LAB_00130629:
CMP R15,R13
JZ 0x00130536
ADD R15,0x20
LAB_00130636:
MOV RDI,R12
MOV RSI,R15
CALL 0x0012f59a
LAB_00130641:
ADD R15,0x10
JMP 0x00130629
caseD_3:
MOV RDI,qword ptr [RBX]
CALL 0x00121dc8
LAB_0013064f:
PUSH 0x20
JMP 0x00130669
caseD_2:
MOV RDI,qword ptr [RBX]
CALL 0x00130760
PUSH 0x18
JMP 0x00130669
caseD_8:
MOV RDI,qword ptr [RBX]
CALL 0x00130420
PUSH 0x28
LAB_00130669:
POP RSI
MOV RDI,qword ptr [RBX]
CALL 0x001216d0
caseD_4:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::destroy(json_value *this,uint param_2)
{
long *plVar1;
long lVar2;
byte bVar3;
long lVar4;
ulong uStack_60;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_58;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbStack_50;
int8 local_48;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_40 [8];
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*local_38;
plVar1 = *(long **)this;
if (param_2 == 1 && plVar1 == (long *)0x0) {
return;
}
bVar3 = (byte)param_2;
if ((bVar3 == 8 || (bVar3 & 0xfe) == 2) && plVar1 == (long *)0x0) {
return;
}
if ((byte)(bVar3 - 1) < 2) {
local_58 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0;
pbStack_50 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0;
local_48 = 0;
if (bVar3 == 2) {
/* try { // try from 00130519 to 00130535 has its CatchHandler @ 00130681 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,plVar1[1] - *plVar1 >> 4);
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(**(int8 **)this,(*(int8 **)this)[1],&local_58);
}
else {
/* try { // try from 00130611 to 0013061b has its CatchHandler @ 00130681 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(plVar1[1] - *plVar1) / 0x30);
lVar2 = (*(long **)this)[1];
for (lVar4 = **(long **)this; lVar4 != lVar2; lVar4 = lVar4 + 0x30) {
/* try { // try from 00130636 to 00130640 has its CatchHandler @ 00130685 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(basic_json *)(lVar4 + 0x20));
}
}
while (local_58 != pbStack_50) {
basic_json(local_40,pbStack_50 + -0x10);
pbStack_50 = pbStack_50 + -0x10;
~basic_json(pbStack_50);
if (local_40[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>
)0x1) {
lVar2 = *(long *)(local_38 + 8);
for (lVar4 = *(long *)local_38; lVar4 != lVar2; lVar4 = lVar4 + 0x30) {
/* try { // try from 001305b0 to 001305ba has its CatchHandler @ 0013068a */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(basic_json *)(lVar4 + 0x20));
}
std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::clear((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_38);
}
else if (local_40[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>
)0x2) {
/* try { // try from 00130587 to 0013058e has its CatchHandler @ 00130683 */
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(*(long *)local_38,*(long *)(local_38 + 8),&local_58);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::clear(local_38);
}
~basic_json(local_40);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58);
}
switch(param_2 & 0xff) {
case 1:
std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::~vector(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)this);
goto LAB_0013064f;
case 2:
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
uStack_60 = 0x18;
break;
case 3:
std::__cxx11::string::~string(*(string **)this);
LAB_0013064f:
uStack_60 = 0x20;
break;
default:
goto switchD_001305fd_caseD_4;
case 8:
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base
(*(_Vector_base<unsigned_char,std::allocator<unsigned_char>> **)this);
uStack_60 = 0x28;
}
operator_delete(*(void **)this,uStack_60);
switchD_001305fd_caseD_4:
return;
}
| |
50,013 | mysql_stmt_send_long_data_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_send_long_data_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_send_long_data,
(parms->stmt, parms->param_number, parms->data, parms->length),
parms->stmt->mysql,
my_bool,
r_my_bool)
} | O0 | c | mysql_stmt_send_long_data_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
callq 0x2d100
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
| mysql_stmt_send_long_data_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov esi, [rax+8]
mov rax, [rbp+var_10]
mov rdx, [rax+10h]
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
call mysql_stmt_send_long_data
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_stmt_send_long_data_start_internal(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 56LL) + 1152LL) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_stmt_send_long_data(
*(_QWORD *)a1,
*(_DWORD *)(a1 + 8),
*(_QWORD *)(a1 + 16),
*(_QWORD *)(a1 + 24));
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_stmt_send_long_data_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
CALL 0x0012d100
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_stmt_send_long_data_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_send_long_data(*param_1,(int)param_1[1],param_1[2],param_1[3]);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
50,014 | mysql_stmt_send_long_data_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_send_long_data_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_send_long_data,
(parms->stmt, parms->param_number, parms->data, parms->length),
parms->stmt->mysql,
my_bool,
r_my_bool)
} | O3 | c | mysql_stmt_send_long_data_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x38(%rax), %rcx
movq 0x480(%rcx), %rcx
movq 0x28(%rcx), %rbx
movl 0x8(%rdi), %esi
movq 0x10(%rdi), %rdx
movq 0x18(%rdi), %rcx
movq %rax, %rdi
callq 0x22668
movb %al, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_stmt_send_long_data_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rcx, [rax+38h]
mov rcx, [rcx+480h]
mov rbx, [rcx+28h]
mov esi, [rdi+8]
mov rdx, [rdi+10h]
mov rcx, [rdi+18h]
mov rdi, rax
call mysql_stmt_send_long_data
mov [rbx+8], al
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_stmt_send_long_data_start_internal(long long a1)
{
long long v1; // rbx
long long result; // rax
v1 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 56LL) + 1152LL) + 40LL);
result = mysql_stmt_send_long_data(*(_QWORD *)a1, *(_DWORD *)(a1 + 8), *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24));
*(_BYTE *)(v1 + 8) = result;
*(_DWORD *)v1 = 0;
return result;
}
| mysql_stmt_send_long_data_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RCX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV ESI,dword ptr [RDI + 0x8]
MOV RDX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RDI + 0x18]
MOV RDI,RAX
CALL 0x00122668
MOV byte ptr [RBX + 0x8],AL
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_send_long_data_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_send_long_data(*param_1,(int)param_1[1],param_1[2],param_1[3]);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
50,015 | translog_enable_purge | eloqsql/storage/maria/ma_loghandler.c | void translog_enable_purge()
{
mysql_mutex_lock(&log_descriptor.purger_lock);
log_purge_disabled--;
mysql_mutex_unlock(&log_descriptor.purger_lock);
} | O3 | c | translog_enable_purge:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0xbc7794(%rip) # 0xc00db0
jne 0x39649
leaq 0xbc774b(%rip), %rdi # 0xc00d70
callq 0x29200
decl 0x3c5690(%rip) # 0x3fecc0
movq 0xbc7779(%rip), %rdi # 0xc00db0
testq %rdi, %rdi
jne 0x39650
leaq 0xbc772d(%rip), %rdi # 0xc00d70
popq %rbp
jmp 0x291c0
callq 0x2c0f6
jmp 0x3962a
leaq 0x34e9b9(%rip), %rax # 0x388010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x3963c
| translog_enable_purge:
push rbp
mov rbp, rsp
cmp cs:qword_C00DB0, 0
jnz short loc_39649
lea rdi, unk_C00D70
call _pthread_mutex_lock
loc_3962A:
dec cs:log_purge_disabled
mov rdi, cs:qword_C00DB0
test rdi, rdi
jnz short loc_39650
loc_3963C:
lea rdi, unk_C00D70
pop rbp
jmp _pthread_mutex_unlock
loc_39649:
call translog_enable_purge_cold_1
jmp short loc_3962A
loc_39650:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_3963C
| long long translog_enable_purge()
{
if ( qword_C00DB0 )
translog_enable_purge_cold_1();
else
pthread_mutex_lock(&unk_C00D70);
--log_purge_disabled;
if ( qword_C00DB0 )
PSI_server[44]();
return pthread_mutex_unlock(&unk_C00D70);
}
| translog_enable_purge:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [0x00d00db0],0x0
JNZ 0x00139649
LEA RDI,[0xd00d70]
CALL 0x00129200
LAB_0013962a:
DEC dword ptr [0x004fecc0]
MOV RDI,qword ptr [0x00d00db0]
TEST RDI,RDI
JNZ 0x00139650
LAB_0013963c:
LEA RDI,[0xd00d70]
POP RBP
JMP 0x001291c0
LAB_00139649:
CALL 0x0012c0f6
JMP 0x0013962a
LAB_00139650:
LEA RAX,[0x488010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0013963c
|
void translog_enable_purge(void)
{
if (DAT_00d00db0 == 0) {
pthread_mutex_lock((pthread_mutex_t *)&DAT_00d00d70);
}
else {
translog_enable_purge_cold_1();
}
log_purge_disabled = log_purge_disabled + -1;
if (DAT_00d00db0 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d00d70);
return;
}
| |
50,016 | my_utf16le_uni | eloqsql/strings/ctype-ucs2.c | static int
my_utf16le_uni(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
my_wc_t lo;
if (s + 2 > e)
return MY_CS_TOOSMALL2;
if ((*pwc= uint2korr(s)) < MY_UTF16_SURROGATE_HIGH_FIRST ||
(*pwc > MY_UTF16_SURROGATE_LOW_LAST))
return 2; /* [0000-D7FF,E000-FFFF] */
if (*pwc >= MY_UTF16_SURROGATE_LOW_FIRST)
return MY_CS_ILSEQ; /* [DC00-DFFF] Low surrogate part without high part */
if (s + 4 > e)
return MY_CS_TOOSMALL4;
s+= 2;
if ((lo= uint2korr(s)) < MY_UTF16_SURROGATE_LOW_FIRST ||
lo > MY_UTF16_SURROGATE_LOW_LAST)
return MY_CS_ILSEQ; /* Expected low surrogate part, got something else */
*pwc= 0x10000 + (((*pwc & 0x3FF) << 10) | (lo & 0x3FF));
return 4;
} | O3 | c | my_utf16le_uni:
pushq %rbp
movq %rsp, %rbp
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xcd5a5
movzwl (%rdx), %edi
movq %rdi, (%rsi)
leal 0x2000(%rdi), %eax
movzwl %ax, %r9d
movl $0x2, %eax
cmpl $0xf800, %r9d # imm = 0xF800
jb 0xcd5a5
xorl %eax, %eax
cmpl $0xdbff, %edi # imm = 0xDBFF
ja 0xcd5a5
addq $0x4, %rdx
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rcx, %rdx
ja 0xcd5a5
movzwl (%r8), %ecx
leal 0x2000(%rcx), %eax
movzwl %ax, %edx
movl $0x0, %eax
cmpl $0xfc00, %edx # imm = 0xFC00
jb 0xcd5a5
shll $0xa, %edi
andl $0xffc00, %edi # imm = 0xFFC00
andl $0x3ff, %ecx # imm = 0x3FF
leaq (%rdi,%rcx), %rax
addq $0x10000, %rax # imm = 0x10000
movq %rax, (%rsi)
movl $0x4, %eax
popq %rbp
retq
| my_utf16le_uni:
push rbp
mov rbp, rsp
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_CD5A5
movzx edi, word ptr [rdx]
mov [rsi], rdi
lea eax, [rdi+2000h]
movzx r9d, ax
mov eax, 2
cmp r9d, 0F800h
jb short loc_CD5A5
xor eax, eax
cmp edi, 0DBFFh
ja short loc_CD5A5
add rdx, 4
mov eax, 0FFFFFF98h
cmp rdx, rcx
ja short loc_CD5A5
movzx ecx, word ptr [r8]
lea eax, [rcx+2000h]
movzx edx, ax
mov eax, 0
cmp edx, 0FC00h
jb short loc_CD5A5
shl edi, 0Ah
and edi, 0FFC00h
and ecx, 3FFh
lea rax, [rdi+rcx]
add rax, 10000h
mov [rsi], rax
mov eax, 4
loc_CD5A5:
pop rbp
retn
| long long my_utf16le_uni(long long a1, _QWORD *a2, unsigned __int16 *a3, unsigned long long a4)
{
_WORD *v4; // r8
long long result; // rax
long long v6; // rdi
v4 = a3 + 1;
result = 4294967194LL;
if ( (unsigned long long)(a3 + 1) <= a4 )
{
v6 = *a3;
*a2 = v6;
result = 2LL;
if ( (unsigned __int16)(v6 + 0x2000) >= 0xF800u )
{
result = 0LL;
if ( (unsigned int)v6 <= 0xDBFF )
{
result = 4294967192LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
result = 0LL;
if ( (unsigned __int16)(*v4 + 0x2000) >= 0xFC00u )
{
*a2 = (((_DWORD)v6 << 10) & 0xFFC00) + (unsigned long long)(*v4 & 0x3FF) + 0x10000;
return 4LL;
}
}
}
}
}
return result;
}
| my_utf16le_uni:
PUSH RBP
MOV RBP,RSP
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001cd5a5
MOVZX EDI,word ptr [RDX]
MOV qword ptr [RSI],RDI
LEA EAX,[RDI + 0x2000]
MOVZX R9D,AX
MOV EAX,0x2
CMP R9D,0xf800
JC 0x001cd5a5
XOR EAX,EAX
CMP EDI,0xdbff
JA 0x001cd5a5
ADD RDX,0x4
MOV EAX,0xffffff98
CMP RDX,RCX
JA 0x001cd5a5
MOVZX ECX,word ptr [R8]
LEA EAX,[RCX + 0x2000]
MOVZX EDX,AX
MOV EAX,0x0
CMP EDX,0xfc00
JC 0x001cd5a5
SHL EDI,0xa
AND EDI,0xffc00
AND ECX,0x3ff
LEA RAX,[RDI + RCX*0x1]
ADD RAX,0x10000
MOV qword ptr [RSI],RAX
MOV EAX,0x4
LAB_001cd5a5:
POP RBP
RET
|
int8 my_utf16le_uni(int8 param_1,ulong *param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
ushort uVar2;
int8 uVar3;
uVar3 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
uVar1 = *param_3;
*param_2 = (ulong)uVar1;
uVar3 = 2;
if (((0xf7ff < (ushort)(uVar1 + 0x2000)) && (uVar3 = 0, uVar1 < 0xdc00)) &&
(uVar3 = 0xffffff98, param_3 + 2 <= param_4)) {
uVar2 = param_3[1];
uVar3 = 0;
if (0xfbff < (ushort)(uVar2 + 0x2000)) {
*param_2 = (ulong)((uVar1 & 0x3ff) << 10) + (ulong)(uVar2 & 0x3ff) + 0x10000;
uVar3 = 4;
}
}
}
return uVar3;
}
| |
50,017 | mi_fetch_keypage | eloqsql/storage/myisam/mi_page.c | uchar *_mi_fetch_keypage(register MI_INFO *info, MI_KEYDEF *keyinfo,
my_off_t page, int level,
uchar *buff, int return_buffer)
{
uchar *tmp;
uint page_size;
DBUG_ENTER("_mi_fetch_keypage");
DBUG_PRINT("enter",("page: %ld", (long) page));
tmp=(uchar*) key_cache_read(info->s->key_cache,
info->s->kfile, page, level, (uchar*) buff,
(uint) keyinfo->block_length,
(uint) keyinfo->block_length,
return_buffer);
if (tmp == info->buff)
info->buff_used=1;
else if (!tmp)
{
DBUG_PRINT("error",("Got errno: %d from key_cache_read",my_errno));
info->last_keypage=HA_OFFSET_ERROR;
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_RETURN(0);
}
info->last_keypage=page;
page_size=mi_getint(tmp);
if (page_size < 4 || page_size > keyinfo->block_length)
{
DBUG_PRINT("error",("page %lu had wrong page length: %u",
(ulong) page, page_size));
DBUG_DUMP("page", tmp, keyinfo->block_length);
info->last_keypage = HA_OFFSET_ERROR;
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno = HA_ERR_CRASHED;
tmp = 0;
}
DBUG_RETURN(tmp);
} | O0 | c | mi_fetch_keypage:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
jmp 0xbfde1
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x278(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x350(%rax), %esi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %r8
movq -0x18(%rbp), %rax
movzwl 0xe(%rax), %r9d
movq -0x18(%rbp), %rax
movzwl 0xe(%rax), %r10d
movl -0x34(%rbp), %eax
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
callq 0xe8e20
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x100(%rcx), %rax
jne 0xbfe4b
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
jmp 0xbfe97
cmpq $0x0, -0x40(%rbp)
jne 0xbfe95
jmp 0xbfe54
jmp 0xbfe56
movq -0x10(%rbp), %rax
movq $-0x1, 0x190(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xb02e0
callq 0xfe880
movl $0x7e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xbff2c
jmp 0xbfe97
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x190(%rax)
movq -0x40(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x40(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
andl $0x7fff, %eax # imm = 0x7FFF
movl %eax, -0x44(%rbp)
cmpl $0x4, -0x44(%rbp)
jb 0xbfee0
movl -0x44(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
cmpl %ecx, %eax
jbe 0xbff22
jmp 0xbfee2
jmp 0xbfee4
jmp 0xbfee6
jmp 0xbfee8
movq -0x10(%rbp), %rax
movq $-0x1, 0x190(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xb02e0
callq 0xfe880
movl $0x7e, (%rax)
movq $0x0, -0x40(%rbp)
jmp 0xbff24
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_fetch_keypage:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_34], r9d
jmp short $+2
loc_BFDE1:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+278h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov esi, [rax+350h]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_30]
mov rax, [rbp+var_18]
movzx r9d, word ptr [rax+0Eh]
mov rax, [rbp+var_18]
movzx r10d, word ptr [rax+0Eh]
mov eax, [rbp+var_34]
mov [rsp+60h+var_60], r10d
mov [rsp+60h+var_58], eax
call key_cache_read
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
cmp rax, [rcx+100h]
jnz short loc_BFE4B
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
jmp short loc_BFE97
loc_BFE4B:
cmp [rbp+var_40], 0
jnz short loc_BFE95
jmp short $+2
loc_BFE54:
jmp short $+2
loc_BFE56:
mov rax, [rbp+var_10]
mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_8], 0
jmp loc_BFF2C
loc_BFE95:
jmp short $+2
loc_BFE97:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+190h], rcx
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_40]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
and eax, 7FFFh
mov [rbp+var_44], eax
cmp [rbp+var_44], 4
jb short loc_BFEE0
mov eax, [rbp+var_44]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+0Eh]
cmp eax, ecx
jbe short loc_BFF22
loc_BFEE0:
jmp short $+2
loc_BFEE2:
jmp short $+2
loc_BFEE4:
jmp short $+2
loc_BFEE6:
jmp short $+2
loc_BFEE8:
mov rax, [rbp+var_10]
mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_40], 0
loc_BFF22:
jmp short $+2
loc_BFF24:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_BFF2C:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| unsigned __int16 * mi_fetch_keypage(_QWORD *a1, long long a2, long long a3, int a4, int a5, int a6)
{
const char *v6; // rsi
const char *v7; // rsi
unsigned int v9; // [rsp+1Ch] [rbp-44h]
unsigned __int16 *v10; // [rsp+20h] [rbp-40h]
v10 = (unsigned __int16 *)key_cache_read(
*(_QWORD *)(*a1 + 632LL),
*(_DWORD *)(*a1 + 848LL),
a3,
a4,
a5,
*(unsigned __int16 *)(a2 + 14),
*(unsigned __int16 *)(a2 + 14),
a6);
if ( v10 == (unsigned __int16 *)a1[32] )
{
*((_BYTE *)a1 + 829) = 1;
}
else if ( !v10 )
{
a1[50] = -1LL;
v6 = *(const char **)(*a1 + 616LL);
mi_report_error(126, (long long)v6);
*(_DWORD *)my_thread_var(126LL, v6) = 126;
return 0LL;
}
a1[50] = a3;
v9 = _byteswap_ushort(*v10) & 0x7FFF;
if ( v9 < 4 || v9 > *(unsigned __int16 *)(a2 + 14) )
{
a1[50] = -1LL;
v7 = *(const char **)(*a1 + 616LL);
mi_report_error(126, (long long)v7);
*(_DWORD *)my_thread_var(126LL, v7) = 126;
return 0LL;
}
return v10;
}
| _mi_fetch_keypage:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV dword ptr [RBP + -0x34],R9D
JMP 0x001bfde1
LAB_001bfde1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x278]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ESI,dword ptr [RAX + 0x350]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX R9D,word ptr [RAX + 0xe]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX R10D,word ptr [RAX + 0xe]
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RSP],R10D
MOV dword ptr [RSP + 0x8],EAX
CALL 0x001e8e20
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x100]
JNZ 0x001bfe4b
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
JMP 0x001bfe97
LAB_001bfe4b:
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x001bfe95
JMP 0x001bfe54
LAB_001bfe54:
JMP 0x001bfe56
LAB_001bfe56:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001b02e0
CALL 0x001fe880
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001bff2c
LAB_001bfe95:
JMP 0x001bfe97
LAB_001bfe97:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x40]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
AND EAX,0x7fff
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],0x4
JC 0x001bfee0
MOV EAX,dword ptr [RBP + -0x44]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + 0xe]
CMP EAX,ECX
JBE 0x001bff22
LAB_001bfee0:
JMP 0x001bfee2
LAB_001bfee2:
JMP 0x001bfee4
LAB_001bfee4:
JMP 0x001bfee6
LAB_001bfee6:
JMP 0x001bfee8
LAB_001bfee8:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x190],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001b02e0
CALL 0x001fe880
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x40],0x0
LAB_001bff22:
JMP 0x001bff24
LAB_001bff24:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001bff2c:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
byte * _mi_fetch_keypage(long *param_1,long param_2,long param_3,int4 param_4,
int8 param_5,int4 param_6)
{
uint uVar1;
int4 *puVar2;
byte *local_48;
local_48 = (byte *)key_cache_read(*(int8 *)(*param_1 + 0x278),
*(int4 *)(*param_1 + 0x350),param_3,param_4,param_5,
*(int2 *)(param_2 + 0xe),*(int2 *)(param_2 + 0xe),
param_6);
if (local_48 == (byte *)param_1[0x20]) {
*(int1 *)((long)param_1 + 0x33d) = 1;
}
else if (local_48 == (byte *)0x0) {
param_1[0x32] = -1;
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
return (byte *)0x0;
}
param_1[0x32] = param_3;
uVar1 = (uint)local_48[1] | (*local_48 & 0x7f) << 8;
if ((uVar1 < 4) || (*(ushort *)(param_2 + 0xe) < uVar1)) {
param_1[0x32] = -1;
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
local_48 = (byte *)0x0;
}
return local_48;
}
| |
50,018 | reset_root_defaults | eloqsql/mysys/my_alloc.c | void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)))
{
DBUG_ENTER("reset_root_defaults");
DBUG_ASSERT(alloc_root_inited(mem_root));
mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) |
(mem_root->block_size & 1));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
if (pre_alloc_size)
{
size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM));
if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size)
{
USED_MEM *mem, **prev= &mem_root->free;
/*
Free unused blocks, so that consequent calls
to reset_root_defaults won't eat away memory.
*/
while (*prev)
{
mem= *prev;
if (mem->size == size)
{
/* We found a suitable block, no need to do anything else */
mem_root->pre_alloc= mem;
DBUG_VOID_RETURN;
}
if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size)
{
/* remove block from the list and free it */
*prev= mem->next;
my_free(mem);
}
else
prev= &mem->next;
}
/* Allocate new prealloc block and add it to the end of free list */
if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size,
MYF(MALLOC_FLAG(mem_root->
block_size)))))
{
mem->size= size;
mem->left= pre_alloc_size;
mem->next= *prev;
*prev= mem_root->pre_alloc= mem;
TRASH_MEM(mem);
}
else
{
mem_root->pre_alloc= 0;
}
}
}
else
#endif
mem_root->pre_alloc= 0;
DBUG_VOID_RETURN;
} | O3 | c | reset_root_defaults:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
andq $-0x2, %rsi
movq 0x20(%rdi), %rax
andl $0x1, %eax
leaq (%rsi,%rax), %rdx
addq $-0x28, %rdx
movq %rdx, 0x20(%rdi)
testq %r14, %r14
je 0x2f7e4
leaq 0x18(%r14), %r15
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x2f773
cmpq %r15, 0x10(%rax)
je 0x2f7f2
movq (%rbx), %rdi
movq %rbx, %r12
testq %rdi, %rdi
je 0x2f7b5
movq %rbx, %r12
movq 0x10(%rdi), %rax
cmpq %r15, %rax
je 0x2f7ee
movq 0x8(%rdi), %rcx
addq $0x18, %rcx
cmpq %rax, %rcx
jne 0x2f7a5
movq (%rdi), %rax
movq %rax, (%r12)
callq 0x299ae
jmp 0x2f7a8
movq %rdi, %r12
movq (%r12), %rdi
testq %rdi, %rdi
jne 0x2f781
movq 0x20(%rbx), %rdx
movl 0x38(%rbx), %edi
andl $0x1, %edx
shll $0x10, %edx
movq %r15, %rsi
callq 0x29781
testq %rax, %rax
je 0x2f7e4
movq %r15, 0x10(%rax)
movq %r14, 0x8(%rax)
movq (%r12), %rcx
movq %rcx, (%rax)
movq %rax, 0x10(%rbx)
movq %rax, (%r12)
jmp 0x2f7f2
movq $0x0, 0x10(%rbx)
jmp 0x2f7f2
movq %rdi, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| reset_root_defaults:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rdx
mov rbx, rdi
and rsi, 0FFFFFFFFFFFFFFFEh
mov rax, [rdi+20h]
and eax, 1
lea rdx, [rsi+rax]
add rdx, 0FFFFFFFFFFFFFFD8h
mov [rdi+20h], rdx
test r14, r14
jz loc_2F7E4
lea r15, [r14+18h]
mov rax, [rbx+10h]
test rax, rax
jz short loc_2F773
cmp [rax+10h], r15
jz short loc_2F7F2
loc_2F773:
mov rdi, [rbx]
mov r12, rbx
test rdi, rdi
jz short loc_2F7B5
mov r12, rbx
loc_2F781:
mov rax, [rdi+10h]
cmp rax, r15
jz short loc_2F7EE
mov rcx, [rdi+8]
add rcx, 18h
cmp rcx, rax
jnz short loc_2F7A5
mov rax, [rdi]
mov [r12], rax
call my_free
jmp short loc_2F7A8
loc_2F7A5:
mov r12, rdi
loc_2F7A8:
mov rdi, [r12]
test rdi, rdi
jnz short loc_2F781
mov rdx, [rbx+20h]
loc_2F7B5:
mov edi, [rbx+38h]
and edx, 1
shl edx, 10h
mov rsi, r15
call my_malloc
test rax, rax
jz short loc_2F7E4
mov [rax+10h], r15
mov [rax+8], r14
mov rcx, [r12]
mov [rax], rcx
mov [rbx+10h], rax
mov [r12], rax
jmp short loc_2F7F2
loc_2F7E4:
mov qword ptr [rbx+10h], 0
jmp short loc_2F7F2
loc_2F7EE:
mov [rbx+10h], rdi
loc_2F7F2:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| _QWORD * reset_root_defaults(long long a1, long long a2, long long a3)
{
_QWORD *result; // rax
unsigned long long v6; // rdx
_QWORD *v7; // r15
_QWORD *v8; // rdi
_QWORD *v9; // r12
result = (_QWORD *)(*(_QWORD *)(a1 + 32) & 1LL);
v6 = (unsigned long long)result + (a2 & 0xFFFFFFFFFFFFFFFELL) - 40;
*(_QWORD *)(a1 + 32) = v6;
if ( !a3 )
{
LABEL_14:
*(_QWORD *)(a1 + 16) = 0LL;
return result;
}
v7 = (_QWORD *)(a3 + 24);
result = *(_QWORD **)(a1 + 16);
if ( result && (_QWORD *)result[2] == v7 )
return result;
v8 = *(_QWORD **)a1;
v9 = (_QWORD *)a1;
if ( !*(_QWORD *)a1 )
{
LABEL_12:
result = (_QWORD *)my_malloc(*(_DWORD *)(a1 + 56), a3 + 24, (unsigned __int8)(v6 & 1) << 16);
if ( result )
{
result[2] = v7;
result[1] = a3;
*result = *v9;
*(_QWORD *)(a1 + 16) = result;
*v9 = result;
return result;
}
goto LABEL_14;
}
v9 = (_QWORD *)a1;
while ( 1 )
{
result = (_QWORD *)v8[2];
if ( result == v7 )
break;
if ( (_QWORD *)(v8[1] + 24LL) == result )
{
*v9 = *v8;
my_free((long long)v8);
}
else
{
v9 = v8;
}
v8 = (_QWORD *)*v9;
if ( !*v9 )
{
v6 = *(_QWORD *)(a1 + 32);
goto LABEL_12;
}
}
*(_QWORD *)(a1 + 16) = v8;
return result;
}
| reset_root_defaults:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RDX
MOV RBX,RDI
AND RSI,-0x2
MOV RAX,qword ptr [RDI + 0x20]
AND EAX,0x1
LEA RDX,[RSI + RAX*0x1]
ADD RDX,-0x28
MOV qword ptr [RDI + 0x20],RDX
TEST R14,R14
JZ 0x0012f7e4
LEA R15,[R14 + 0x18]
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JZ 0x0012f773
CMP qword ptr [RAX + 0x10],R15
JZ 0x0012f7f2
LAB_0012f773:
MOV RDI,qword ptr [RBX]
MOV R12,RBX
TEST RDI,RDI
JZ 0x0012f7b5
MOV R12,RBX
LAB_0012f781:
MOV RAX,qword ptr [RDI + 0x10]
CMP RAX,R15
JZ 0x0012f7ee
MOV RCX,qword ptr [RDI + 0x8]
ADD RCX,0x18
CMP RCX,RAX
JNZ 0x0012f7a5
MOV RAX,qword ptr [RDI]
MOV qword ptr [R12],RAX
CALL 0x001299ae
JMP 0x0012f7a8
LAB_0012f7a5:
MOV R12,RDI
LAB_0012f7a8:
MOV RDI,qword ptr [R12]
TEST RDI,RDI
JNZ 0x0012f781
MOV RDX,qword ptr [RBX + 0x20]
LAB_0012f7b5:
MOV EDI,dword ptr [RBX + 0x38]
AND EDX,0x1
SHL EDX,0x10
MOV RSI,R15
CALL 0x00129781
TEST RAX,RAX
JZ 0x0012f7e4
MOV qword ptr [RAX + 0x10],R15
MOV qword ptr [RAX + 0x8],R14
MOV RCX,qword ptr [R12]
MOV qword ptr [RAX],RCX
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [R12],RAX
JMP 0x0012f7f2
LAB_0012f7e4:
MOV qword ptr [RBX + 0x10],0x0
JMP 0x0012f7f2
LAB_0012f7ee:
MOV qword ptr [RBX + 0x10],RDI
LAB_0012f7f2:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void reset_root_defaults(long *param_1,ulong param_2,long param_3)
{
long lVar1;
long *plVar2;
long lVar3;
long *plVar4;
long *plVar5;
lVar3 = (param_2 & 0xfffffffffffffffe) + (ulong)((uint)param_1[4] & 1) + -0x28;
param_1[4] = lVar3;
if (param_3 != 0) {
lVar1 = param_3 + 0x18;
if ((param_1[2] != 0) && (*(long *)(param_1[2] + 0x10) == lVar1)) {
return;
}
plVar2 = (long *)*param_1;
plVar4 = param_1;
plVar5 = param_1;
if (plVar2 != (long *)0x0) {
do {
if (plVar2[2] == lVar1) {
param_1[2] = (long)plVar2;
return;
}
plVar5 = plVar2;
if (plVar2[1] + 0x18 == plVar2[2]) {
*plVar4 = *plVar2;
my_free();
plVar5 = plVar4;
}
plVar2 = (long *)*plVar5;
plVar4 = plVar5;
} while (plVar2 != (long *)0x0);
lVar3 = param_1[4];
}
plVar2 = (long *)my_malloc((int)param_1[7],lVar1,((uint)lVar3 & 1) << 0x10);
if (plVar2 != (long *)0x0) {
plVar2[2] = lVar1;
plVar2[1] = param_3;
*plVar2 = *plVar5;
param_1[2] = (long)plVar2;
*plVar5 = (long)plVar2;
return;
}
}
param_1[2] = 0;
return;
}
| |
50,019 | google::protobuf::FileDescriptor::GetSourceLocation(std::vector<int, std::allocator<int>> const&, google::protobuf::SourceLocation*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | bool FileDescriptor::GetSourceLocation(const std::vector<int>& path,
SourceLocation* out_location) const {
GOOGLE_CHECK(out_location != nullptr);
if (source_code_info_) {
if (const SourceCodeInfo_Location* loc =
tables_->GetSourceLocation(path, source_code_info_)) {
const RepeatedField<int32_t>& span = loc->span();
if (span.size() == 3 || span.size() == 4) {
out_location->start_line = span.Get(0);
out_location->start_column = span.Get(1);
out_location->end_line = span.Get(span.size() == 3 ? 0 : 2);
out_location->end_column = span.Get(span.size() - 1);
out_location->leading_comments = loc->leading_comments();
out_location->trailing_comments = loc->trailing_comments();
out_location->leading_detached_comments.assign(
loc->leading_detached_comments().begin(),
loc->leading_detached_comments().end());
return true;
}
}
}
return false;
} | O0 | cpp | google::protobuf::FileDescriptor::GetSourceLocation(std::vector<int, std::allocator<int>> const&, google::protobuf::SourceLocation*) const:
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xa8(%rsp), %rax
movb $0x0, 0x6f(%rsp)
cmpq $0x0, %rax
je 0x40f01
jmp 0x40f51
leaq 0x1ac5cc(%rip), %rdx # 0x1ed4d4
leaq 0x70(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movl $0x3, %esi
movl $0xdb0, %ecx # imm = 0xDB0
callq 0x237e0
movq 0x20(%rsp), %rdi
movb $0x1, 0x6f(%rsp)
leaq 0x1acb7c(%rip), %rsi # 0x1edaae
callq 0x230a0
movq %rax, 0x28(%rsp)
jmp 0x40f3e
movq 0x28(%rsp), %rsi
leaq 0x5b(%rsp), %rdi
callq 0x23250
jmp 0x40f4f
jmp 0x40f51
testb $0x1, 0x6f(%rsp)
jne 0x40f5a
jmp 0x40f64
leaq 0x70(%rsp), %rdi
callq 0x23820
movq 0x30(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x41137
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0xb0(%rsp), %rsi
movq 0x88(%rax), %rdx
callq 0x34470
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x41135
movq 0x50(%rsp), %rdi
callq 0x76d50
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1bcd50
cmpl $0x3, %eax
je 0x40fd9
movq 0x48(%rsp), %rdi
callq 0x1bcd50
cmpl $0x4, %eax
jne 0x41133
movq 0x48(%rsp), %rdi
xorl %esi, %esi
callq 0x1bd0d0
movl (%rax), %ecx
movq 0xa8(%rsp), %rax
movl %ecx, (%rax)
movq 0x48(%rsp), %rdi
movl $0x1, %esi
callq 0x1bd0d0
movl (%rax), %ecx
movq 0xa8(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1bcd50
movq 0x8(%rsp), %rdi
movl %eax, %ecx
movl $0x2, %esi
xorl %eax, %eax
cmpl $0x3, %ecx
cmovel %eax, %esi
callq 0x1bd0d0
movl (%rax), %ecx
movq 0xa8(%rsp), %rax
movl %ecx, 0x4(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1bcd50
movq 0x10(%rsp), %rdi
movl %eax, %esi
subl $0x1, %esi
callq 0x1bd0d0
movl (%rax), %ecx
movq 0xa8(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x50(%rsp), %rdi
callq 0x76d60
movq %rax, %rsi
movq 0xa8(%rsp), %rdi
addq $0x10, %rdi
callq 0x15990
movq 0x50(%rsp), %rdi
callq 0x76d70
movq %rax, %rsi
movq 0xa8(%rsp), %rdi
addq $0x30, %rdi
callq 0x15990
movq 0xa8(%rsp), %rax
addq $0x50, %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0x76dc0
movq %rax, %rdi
callq 0x1ce520
movq %rax, 0x40(%rsp)
movq 0x50(%rsp), %rdi
callq 0x76dc0
movq %rax, %rdi
callq 0x1ce600
movq 0x18(%rsp), %rdi
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x76d80
movb $0x1, 0xc7(%rsp)
jmp 0x4113f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
testb $0x1, 0x6f(%rsp)
jne 0x41127
jmp 0x41131
leaq 0x70(%rsp), %rdi
callq 0x23820
jmp 0x41150
jmp 0x41135
jmp 0x41137
movb $0x0, 0xc7(%rsp)
movb 0xc7(%rsp), %al
andb $0x1, %al
addq $0xc8, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x13750
nopw (%rax,%rax)
| _ZNK6google8protobuf14FileDescriptor17GetSourceLocationERKSt6vectorIiSaIiEEPNS0_14SourceLocationE:
sub rsp, 0C8h
mov [rsp+0C8h+var_10], rdi
mov [rsp+0C8h+var_18], rsi
mov [rsp+0C8h+var_20], rdx
mov rax, [rsp+0C8h+var_10]
mov [rsp+0C8h+var_98], rax
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_59], 0
cmp rax, 0
jz short loc_40F01
jmp short loc_40F51
loc_40F01:
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_A8], rdi
mov esi, 3
mov ecx, 0DB0h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0C8h+var_A8]
mov [rsp+0C8h+var_59], 1
lea rsi, aCheckFailedOut_1; "CHECK failed: out_location != nullptr: "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0C8h+var_A0], rax
jmp short $+2
loc_40F3E:
mov rsi, [rsp+0C8h+var_A0]
lea rdi, [rsp+0C8h+var_6D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_40F4F:
jmp short $+2
loc_40F51:
test [rsp+0C8h+var_59], 1
jnz short loc_40F5A
jmp short loc_40F64
loc_40F5A:
lea rdi, [rsp+0C8h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_40F64:
mov rax, [rsp+0C8h+var_98]
cmp qword ptr [rax+88h], 0
jz loc_41137
mov rax, [rsp+0C8h+var_98]
mov rdi, [rax+80h]
mov rsi, [rsp+0C8h+var_18]
mov rdx, [rax+88h]
call _ZNK6google8protobuf20FileDescriptorTables17GetSourceLocationERKSt6vectorIiSaIiEEPKNS0_14SourceCodeInfoE; google::protobuf::FileDescriptorTables::GetSourceLocation(std::vector<int> const&,google::protobuf::SourceCodeInfo const*)
mov [rsp+0C8h+var_78], rax
cmp [rsp+0C8h+var_78], 0
jz loc_41135
mov rdi, [rsp+0C8h+var_78]; this
call _ZNK6google8protobuf23SourceCodeInfo_Location4spanEv; google::protobuf::SourceCodeInfo_Location::span(void)
mov [rsp+0C8h+var_80], rax
mov rdi, [rsp+0C8h+var_80]
call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void)
cmp eax, 3
jz short loc_40FD9
mov rdi, [rsp+0C8h+var_80]
call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void)
cmp eax, 4
jnz loc_41133
loc_40FD9:
mov rdi, [rsp+0C8h+var_80]
xor esi, esi
call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int)
mov ecx, [rax]
mov rax, [rsp+0C8h+var_20]
mov [rax], ecx
mov rdi, [rsp+0C8h+var_80]
mov esi, 1
call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int)
mov ecx, [rax]
mov rax, [rsp+0C8h+var_20]
mov [rax+8], ecx
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_C0], rax
mov rdi, [rsp+0C8h+var_80]
call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void)
mov rdi, [rsp+0C8h+var_C0]
mov ecx, eax
mov esi, 2
xor eax, eax
cmp ecx, 3
cmovz esi, eax
call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int)
mov ecx, [rax]
mov rax, [rsp+0C8h+var_20]
mov [rax+4], ecx
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_B8], rax
mov rdi, [rsp+0C8h+var_80]
call _ZNK6google8protobuf13RepeatedFieldIiE4sizeEv; google::protobuf::RepeatedField<int>::size(void)
mov rdi, [rsp+0C8h+var_B8]
mov esi, eax
sub esi, 1
call _ZNK6google8protobuf13RepeatedFieldIiE3GetEi; google::protobuf::RepeatedField<int>::Get(int)
mov ecx, [rax]
mov rax, [rsp+0C8h+var_20]
mov [rax+0Ch], ecx
mov rdi, [rsp+0C8h+var_78]
call _ZNK6google8protobuf23SourceCodeInfo_Location16leading_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_comments(void)
mov rsi, rax
mov rdi, [rsp+0C8h+var_20]
add rdi, 10h
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
mov rdi, [rsp+0C8h+var_78]
call _ZNK6google8protobuf23SourceCodeInfo_Location17trailing_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::trailing_comments(void)
mov rsi, rax
mov rdi, [rsp+0C8h+var_20]
add rdi, 30h ; '0'
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
mov rax, [rsp+0C8h+var_20]
add rax, 50h ; 'P'
mov [rsp+0C8h+var_B0], rax
mov rdi, [rsp+0C8h+var_78]
call _ZNK6google8protobuf23SourceCodeInfo_Location25leading_detached_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_detached_comments(void)
mov rdi, rax
call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5beginEv; google::protobuf::RepeatedPtrField<std::string>::begin(void)
mov [rsp+0C8h+var_88], rax
mov rdi, [rsp+0C8h+var_78]
call _ZNK6google8protobuf23SourceCodeInfo_Location25leading_detached_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::leading_detached_comments(void)
mov rdi, rax
call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3endEv; google::protobuf::RepeatedPtrField<std::string>::end(void)
mov rdi, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_90], rax
mov rsi, [rsp+0C8h+var_88]
mov rdx, [rsp+0C8h+var_90]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE6assignIN6google8protobuf8internal19RepeatedPtrIteratorIKS5_EEvEEvT_SF_; std::vector<std::string>::assign<google::protobuf::internal::RepeatedPtrIterator<std::string const>,void>(google::protobuf::internal::RepeatedPtrIterator<std::string const>,google::protobuf::internal::RepeatedPtrIterator<std::string const>)
mov [rsp+0C8h+var_1], 1
jmp short loc_4113F
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
test [rsp+arg_67], 1
jnz short loc_41127
jmp short loc_41131
loc_41127:
lea rdi, [rsp+arg_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_41131:
jmp short loc_41150
loc_41133:
jmp short $+2
loc_41135:
jmp short $+2
loc_41137:
mov [rsp+0C8h+var_1], 0
loc_4113F:
mov al, [rsp+0C8h+var_1]
and al, 1
add rsp, 0C8h
retn
loc_41150:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| char google::protobuf::FileDescriptor::GetSourceLocation(long long a1, long long a2, int *a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int *v7; // rax
int v8; // ecx
int v9; // edx
int v10; // r8d
int v11; // r9d
int v12; // edx
int v13; // ecx
int v14; // r8d
int v15; // r9d
int v16; // esi
int v17; // eax
int v18; // edx
int v19; // ecx
int v20; // r8d
int v21; // r9d
long long v22; // rax
long long v23; // rax
long long v24; // rax
long long v25; // rax
_DWORD *v27; // [rsp+18h] [rbp-B0h]
google::protobuf::internal::LogMessage *v28; // [rsp+28h] [rbp-A0h]
long long v29; // [rsp+38h] [rbp-90h]
long long v30; // [rsp+40h] [rbp-88h]
long long v31; // [rsp+48h] [rbp-80h]
google::protobuf::SourceCodeInfo_Location *SourceLocation; // [rsp+50h] [rbp-78h]
_BYTE v33[20]; // [rsp+5Bh] [rbp-6Dh] BYREF
char v34; // [rsp+6Fh] [rbp-59h]
_BYTE v35[56]; // [rsp+70h] [rbp-58h] BYREF
int *v36; // [rsp+A8h] [rbp-20h]
long long v37; // [rsp+B0h] [rbp-18h]
long long v38; // [rsp+B8h] [rbp-10h]
v38 = a1;
v37 = a2;
v36 = a3;
v34 = 0;
if ( !a3 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v35,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc",
3504);
v34 = 1;
v28 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)v35,
(long long)"CHECK failed: out_location != nullptr: ");
google::protobuf::internal::LogFinisher::operator=((long long)v33, v28);
}
if ( (v34 & 1) != 0 )
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v35);
if ( !*(_QWORD *)(a1 + 136) )
return 0;
SourceLocation = (google::protobuf::SourceCodeInfo_Location *)google::protobuf::FileDescriptorTables::GetSourceLocation(
*(_QWORD *)(a1 + 128),
v37,
*(_QWORD *)(a1 + 136));
if ( !SourceLocation )
return 0;
v31 = google::protobuf::SourceCodeInfo_Location::span(SourceLocation);
if ( (unsigned int)google::protobuf::RepeatedField<int>::size(v31) != 3
&& (unsigned int)google::protobuf::RepeatedField<int>::size(v31) != 4 )
{
return 0;
}
v7 = (int *)google::protobuf::RepeatedField<int>::Get(v31, 0, v3, v4, v5, v6);
v8 = *v7;
*v36 = *v7;
v36[2] = *(_DWORD *)google::protobuf::RepeatedField<int>::Get(v31, 1, v9, v8, v10, v11);
v13 = google::protobuf::RepeatedField<int>::size(v31);
v16 = 2;
if ( v13 == 3 )
v16 = 0;
v36[1] = *(_DWORD *)google::protobuf::RepeatedField<int>::Get(v31, v16, v12, v13, v14, v15);
v17 = google::protobuf::RepeatedField<int>::size(v31);
v36[3] = *(_DWORD *)google::protobuf::RepeatedField<int>::Get(v31, v17 - 1, v18, v19, v20, v21);
v22 = google::protobuf::SourceCodeInfo_Location::leading_comments[abi:cxx11](SourceLocation);
std::string::operator=((long long)(v36 + 4), v22);
v23 = google::protobuf::SourceCodeInfo_Location::trailing_comments[abi:cxx11](SourceLocation);
std::string::operator=((long long)(v36 + 12), v23);
v27 = v36 + 20;
v24 = google::protobuf::SourceCodeInfo_Location::leading_detached_comments[abi:cxx11](SourceLocation);
v30 = google::protobuf::RepeatedPtrField<std::string>::begin(v24);
v25 = google::protobuf::SourceCodeInfo_Location::leading_detached_comments[abi:cxx11](SourceLocation);
v29 = google::protobuf::RepeatedPtrField<std::string>::end(v25);
std::vector<std::string>::assign<google::protobuf::internal::RepeatedPtrIterator<std::string const>,void>(
v27,
v30,
v29);
return 1;
}
| GetSourceLocation:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb8],RDI
MOV qword ptr [RSP + 0xb0],RSI
MOV qword ptr [RSP + 0xa8],RDX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV byte ptr [RSP + 0x6f],0x0
CMP RAX,0x0
JZ 0x00140f01
JMP 0x00140f51
LAB_00140f01:
LEA RDX,[0x2ed4d4]
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x20],RDI
MOV ESI,0x3
MOV ECX,0xdb0
CALL 0x001237e0
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0x6f],0x1
LAB_00140f2b:
LEA RSI,[0x2edaae]
CALL 0x001230a0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x00140f3e
LAB_00140f3e:
MOV RSI,qword ptr [RSP + 0x28]
LEA RDI,[RSP + 0x5b]
CALL 0x00123250
LAB_00140f4d:
JMP 0x00140f4f
LAB_00140f4f:
JMP 0x00140f51
LAB_00140f51:
TEST byte ptr [RSP + 0x6f],0x1
JNZ 0x00140f5a
JMP 0x00140f64
LAB_00140f5a:
LEA RDI,[RSP + 0x70]
CALL 0x00123820
LAB_00140f64:
MOV RAX,qword ptr [RSP + 0x30]
CMP qword ptr [RAX + 0x88],0x0
JZ 0x00141137
MOV RAX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RAX + 0x80]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RAX + 0x88]
CALL 0x00134470
MOV qword ptr [RSP + 0x50],RAX
CMP qword ptr [RSP + 0x50],0x0
JZ 0x00141135
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00176d50
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x002bcd50
CMP EAX,0x3
JZ 0x00140fd9
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x002bcd50
CMP EAX,0x4
JNZ 0x00141133
LAB_00140fd9:
MOV RDI,qword ptr [RSP + 0x48]
XOR ESI,ESI
CALL 0x002bd0d0
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0xa8]
MOV dword ptr [RAX],ECX
MOV RDI,qword ptr [RSP + 0x48]
MOV ESI,0x1
CALL 0x002bd0d0
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0xa8]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x002bcd50
MOV RDI,qword ptr [RSP + 0x8]
MOV ECX,EAX
MOV ESI,0x2
XOR EAX,EAX
CMP ECX,0x3
CMOVZ ESI,EAX
CALL 0x002bd0d0
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0xa8]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x002bcd50
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,EAX
SUB ESI,0x1
CALL 0x002bd0d0
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0xa8]
MOV dword ptr [RAX + 0xc],ECX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00176d60
MOV RSI,RAX
MOV RDI,qword ptr [RSP + 0xa8]
ADD RDI,0x10
CALL 0x00115990
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00176d70
MOV RSI,RAX
MOV RDI,qword ptr [RSP + 0xa8]
ADD RDI,0x30
CALL 0x00115990
MOV RAX,qword ptr [RSP + 0xa8]
ADD RAX,0x50
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00176dc0
MOV RDI,RAX
CALL 0x002ce520
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00176dc0
MOV RDI,RAX
CALL 0x002ce600
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x00176d80
MOV byte ptr [RSP + 0xc7],0x1
JMP 0x0014113f
LAB_00141133:
JMP 0x00141135
LAB_00141135:
JMP 0x00141137
LAB_00141137:
MOV byte ptr [RSP + 0xc7],0x0
LAB_0014113f:
MOV AL,byte ptr [RSP + 0xc7]
AND AL,0x1
ADD RSP,0xc8
RET
|
/* google::protobuf::FileDescriptor::GetSourceLocation(std::vector<int, std::allocator<int> >
const&, google::protobuf::SourceLocation*) const */
int1 __thiscall
google::protobuf::FileDescriptor::GetSourceLocation
(FileDescriptor *this,vector *param_1,SourceLocation *param_2)
{
int iVar1;
int iVar2;
LogMessage *pLVar3;
SourceCodeInfo_Location *this_00;
RepeatedField<int> *this_01;
int4 *puVar4;
string *psVar5;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6;
RepeatedPtrField<std::__cxx11::string> *pRVar7;
int8 uVar8;
int8 uVar9;
LogFinisher local_6d [20];
byte local_59;
LogMessage local_58 [56];
SourceLocation *local_20;
vector *local_18;
FileDescriptor *local_10;
local_59 = 0;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
if (param_2 == (SourceLocation *)0x0) {
internal::LogMessage::LogMessage
(local_58,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc"
,0xdb0);
local_59 = 1;
/* try { // try from 00140f2b to 00140f4c has its CatchHandler @ 00141110 */
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(local_58,"CHECK failed: out_location != nullptr: ");
internal::LogFinisher::operator=(local_6d,pLVar3);
}
if ((local_59 & 1) != 0) {
internal::LogMessage::~LogMessage(local_58);
}
if ((*(long *)(this + 0x88) != 0) &&
(this_00 = (SourceCodeInfo_Location *)
FileDescriptorTables::GetSourceLocation
(*(FileDescriptorTables **)(this + 0x80),local_18,
*(SourceCodeInfo **)(this + 0x88)),
this_00 != (SourceCodeInfo_Location *)0x0)) {
this_01 = (RepeatedField<int> *)SourceCodeInfo_Location::span(this_00);
iVar1 = RepeatedField<int>::size(this_01);
if ((iVar1 == 3) || (iVar1 = RepeatedField<int>::size(this_01), iVar1 == 4)) {
puVar4 = (int4 *)RepeatedField<int>::Get(this_01,0);
*(int4 *)local_20 = *puVar4;
puVar4 = (int4 *)RepeatedField<int>::Get(this_01,1);
*(int4 *)(local_20 + 8) = *puVar4;
iVar2 = RepeatedField<int>::size(this_01);
iVar1 = 2;
if (iVar2 == 3) {
iVar1 = 0;
}
puVar4 = (int4 *)RepeatedField<int>::Get(this_01,iVar1);
*(int4 *)(local_20 + 4) = *puVar4;
iVar1 = RepeatedField<int>::size(this_01);
puVar4 = (int4 *)RepeatedField<int>::Get(this_01,iVar1 + -1);
*(int4 *)(local_20 + 0xc) = *puVar4;
psVar5 = (string *)SourceCodeInfo_Location::leading_comments_abi_cxx11_(this_00);
std::__cxx11::string::operator=((string *)(local_20 + 0x10),psVar5);
psVar5 = (string *)SourceCodeInfo_Location::trailing_comments_abi_cxx11_(this_00);
std::__cxx11::string::operator=((string *)(local_20 + 0x30),psVar5);
pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
(local_20 + 0x50);
pRVar7 = (RepeatedPtrField<std::__cxx11::string> *)
SourceCodeInfo_Location::leading_detached_comments_abi_cxx11_(this_00);
uVar8 = RepeatedPtrField<std::__cxx11::string>::begin(pRVar7);
pRVar7 = (RepeatedPtrField<std::__cxx11::string> *)
SourceCodeInfo_Location::leading_detached_comments_abi_cxx11_(this_00);
uVar9 = RepeatedPtrField<std::__cxx11::string>::end(pRVar7);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
assign<google::protobuf::internal::RepeatedPtrIterator<std::__cxx11::string_const>,void>
(pvVar6,uVar8,uVar9);
return 1;
}
}
return 0;
}
| |
50,020 | 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);
} | O3 | c | my_casefold_ujis:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x40(%rbp)
movq %rcx, %rbx
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0xc997b
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
addq %rsi, %r15
xorl %eax, %eax
testq %r9, %r9
sete %al
shll $0x2, %eax
movq %rax, -0x38(%rbp)
xorl %r14d, %r14d
movq -0x30(%rbp), %rbx
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
cmovll %r14d, %eax
testl %eax, %eax
je 0xc98d5
cmpl $0x2, %eax
jne 0xc98eb
movzbl (%r12), %ecx
movq 0x78(%r13), %rdx
movq 0x8(%rdx), %rdx
movq (%rdx,%rcx,8), %rcx
testq %rcx, %rcx
je 0xc9945
movzbl 0x1(%r12), %edx
jmp 0xc990c
movzbl (%r12), %eax
incq %r12
movq -0x40(%rbp), %rcx
movb (%rcx,%rax), %al
movb %al, (%rbx)
jmp 0xc996f
movzbl 0x1(%r12), %ecx
movq 0x78(%r13), %rdx
movq 0x8(%rdx), %rdx
movq 0x800(%rdx,%rcx,8), %rcx
testq %rcx, %rcx
je 0xc9934
movzbl 0x2(%r12), %edx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,4), %rcx
testq %rcx, %rcx
je 0xc9934
movq -0x38(%rbp), %rdx
movl (%rcx,%rdx), %ecx
cmpl $0x10000, %ecx # imm = 0x10000
jl 0xc995d
movl %ecx, %edx
shrl $0x10, %edx
movb %dl, (%rbx)
incq %rbx
jmp 0xc9965
cmpl $0x3, %eax
jne 0xc9945
movb (%r12), %al
incq %r12
movb %al, (%rbx)
incq %rbx
movb (%r12), %al
movb %al, (%rbx)
movb 0x1(%r12), %al
addq $0x2, %r12
movb %al, 0x1(%rbx)
addq $0x2, %rbx
jmp 0xc9972
cmpl $0x100, %ecx # imm = 0x100
jl 0xc996a
movb %ch, (%rbx)
incq %rbx
addq %rax, %r12
movb %cl, (%rbx)
incq %rbx
cmpq %r15, %r12
jb 0xc9891
subq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casefold_ujis:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], r8
mov rbx, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle loc_C997B
mov r15, rdx
mov r12, rsi
mov r13, rdi
add r15, rsi
xor eax, eax
test r9, r9
setz al
shl eax, 2
mov [rbp+var_38], rax
xor r14d, r14d
mov rbx, [rbp+var_30]
loc_C9891:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, r12
mov rdx, r15
call qword ptr [rax+0C0h]
cmp eax, 2
cmovl eax, r14d
test eax, eax
jz short loc_C98D5
cmp eax, 2
jnz short loc_C98EB
movzx ecx, byte ptr [r12]
mov rdx, [r13+78h]
mov rdx, [rdx+8]
mov rcx, [rdx+rcx*8]
test rcx, rcx
jz short loc_C9945
movzx edx, byte ptr [r12+1]
jmp short loc_C990C
loc_C98D5:
movzx eax, byte ptr [r12]
inc r12
mov rcx, [rbp+var_40]
mov al, [rcx+rax]
mov [rbx], al
jmp loc_C996F
loc_C98EB:
movzx ecx, byte ptr [r12+1]
mov rdx, [r13+78h]
mov rdx, [rdx+8]
mov rcx, [rdx+rcx*8+800h]
test rcx, rcx
jz short loc_C9934
movzx edx, byte ptr [r12+2]
loc_C990C:
lea rdx, [rdx+rdx*2]
lea rcx, [rcx+rdx*4]
test rcx, rcx
jz short loc_C9934
mov rdx, [rbp+var_38]
mov ecx, [rcx+rdx]
cmp ecx, offset stru_10000
jl short loc_C995D
mov edx, ecx
shr edx, 10h
mov [rbx], dl
inc rbx
jmp short loc_C9965
loc_C9934:
cmp eax, 3
jnz short loc_C9945
mov al, [r12]
inc r12
mov [rbx], al
inc rbx
loc_C9945:
mov al, [r12]
mov [rbx], al
mov al, [r12+1]
add r12, 2
mov [rbx+1], al
add rbx, 2
jmp short loc_C9972
loc_C995D:
cmp ecx, 100h
jl short loc_C996A
loc_C9965:
mov [rbx], ch
inc rbx
loc_C996A:
add r12, rax
mov [rbx], cl
loc_C996F:
inc rbx
loc_C9972:
cmp r12, r15
jb loc_C9891
loc_C997B:
sub rbx, [rbp+var_30]
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
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)
{
unsigned __int8 *v6; // rbx
unsigned __int8 *v7; // r12
unsigned long long v8; // r15
long long v9; // rax
long long v10; // rcx
long long v11; // rdx
long long v12; // rax
long long v13; // rcx
int v14; // ecx
unsigned __int8 v15; // al
unsigned __int8 v16; // al
long long v19; // [rsp+8h] [rbp-38h]
v6 = a4;
if ( a3 > 0 )
{
v7 = a2;
v8 = (unsigned long long)&a2[a3];
v19 = 4 * (unsigned int)(a6 == 0);
v6 = a4;
while ( 1 )
{
v9 = (*(long long ( **)(long long, unsigned __int8 *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v7,
v8);
if ( (int)v9 < 2 )
v9 = 0LL;
if ( !(_DWORD)v9 )
{
v12 = *v7++;
*v6 = *(_BYTE *)(a5 + v12);
goto LABEL_21;
}
if ( (_DWORD)v9 != 2 )
break;
v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * *v7);
if ( v10 )
{
v11 = v7[1];
LABEL_12:
v13 = v10 + 12 * v11;
if ( v13 )
{
v14 = *(_DWORD *)(v13 + v19);
if ( v14 >= (int)&stru_10000 )
{
*v6++ = BYTE2(v14);
goto LABEL_19;
}
if ( v14 >= 256 )
LABEL_19:
*v6++ = BYTE1(v14);
v7 += v9;
*v6 = v14;
LABEL_21:
++v6;
goto LABEL_22;
}
goto LABEL_15;
}
LABEL_17:
*v6 = *v7;
v16 = v7[1];
v7 += 2;
v6[1] = v16;
v6 += 2;
LABEL_22:
if ( (unsigned long long)v7 >= v8 )
return (_BYTE *)(v6 - a4);
}
v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * v7[1] + 2048);
if ( v10 )
{
v11 = v7[2];
goto LABEL_12;
}
LABEL_15:
if ( (_DWORD)v9 == 3 )
{
v15 = *v7++;
*v6++ = v15;
}
goto LABEL_17;
}
return (_BYTE *)(v6 - a4);
}
| my_casefold_ujis:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],R8
MOV RBX,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x001c997b
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
ADD R15,RSI
XOR EAX,EAX
TEST R9,R9
SETZ AL
SHL EAX,0x2
MOV qword ptr [RBP + -0x38],RAX
XOR R14D,R14D
MOV RBX,qword ptr [RBP + -0x30]
LAB_001c9891:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
CMOVL EAX,R14D
TEST EAX,EAX
JZ 0x001c98d5
CMP EAX,0x2
JNZ 0x001c98eb
MOVZX ECX,byte ptr [R12]
MOV RDX,qword ptr [R13 + 0x78]
MOV RDX,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RDX + RCX*0x8]
TEST RCX,RCX
JZ 0x001c9945
MOVZX EDX,byte ptr [R12 + 0x1]
JMP 0x001c990c
LAB_001c98d5:
MOVZX EAX,byte ptr [R12]
INC R12
MOV RCX,qword ptr [RBP + -0x40]
MOV AL,byte ptr [RCX + RAX*0x1]
MOV byte ptr [RBX],AL
JMP 0x001c996f
LAB_001c98eb:
MOVZX ECX,byte ptr [R12 + 0x1]
MOV RDX,qword ptr [R13 + 0x78]
MOV RDX,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RDX + RCX*0x8 + 0x800]
TEST RCX,RCX
JZ 0x001c9934
MOVZX EDX,byte ptr [R12 + 0x2]
LAB_001c990c:
LEA RDX,[RDX + RDX*0x2]
LEA RCX,[RCX + RDX*0x4]
TEST RCX,RCX
JZ 0x001c9934
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RCX + RDX*0x1]
CMP ECX,0x10000
JL 0x001c995d
MOV EDX,ECX
SHR EDX,0x10
MOV byte ptr [RBX],DL
INC RBX
JMP 0x001c9965
LAB_001c9934:
CMP EAX,0x3
JNZ 0x001c9945
MOV AL,byte ptr [R12]
INC R12
MOV byte ptr [RBX],AL
INC RBX
LAB_001c9945:
MOV AL,byte ptr [R12]
MOV byte ptr [RBX],AL
MOV AL,byte ptr [R12 + 0x1]
ADD R12,0x2
MOV byte ptr [RBX + 0x1],AL
ADD RBX,0x2
JMP 0x001c9972
LAB_001c995d:
CMP ECX,0x100
JL 0x001c996a
LAB_001c9965:
MOV byte ptr [RBX],CH
INC RBX
LAB_001c996a:
ADD R12,RAX
MOV byte ptr [RBX],CL
LAB_001c996f:
INC RBX
LAB_001c9972:
CMP R12,R15
JC 0x001c9891
LAB_001c997b:
SUB RBX,qword ptr [RBP + -0x30]
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casefold_ujis(long param_1,byte *param_2,long param_3,byte *param_4,long param_5,
long param_6)
{
byte *pbVar1;
byte bVar2;
uint uVar3;
int iVar4;
long lVar6;
byte *pbVar7;
byte *pbVar8;
ulong uVar5;
pbVar7 = param_4;
if (0 < param_3) {
pbVar8 = param_2 + param_3;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,pbVar8);
uVar5 = (ulong)uVar3;
if ((int)uVar3 < 2) {
uVar5 = 0;
}
iVar4 = (int)uVar5;
if (iVar4 == 0) {
bVar2 = *param_2;
param_2 = param_2 + 1;
*pbVar7 = *(byte *)(param_5 + (ulong)bVar2);
LAB_001c996f:
pbVar7 = pbVar7 + 1;
}
else {
if (iVar4 == 2) {
lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + (ulong)*param_2 * 8);
if (lVar6 != 0) {
bVar2 = param_2[1];
LAB_001c990c:
lVar6 = lVar6 + (ulong)bVar2 * 0xc;
if (lVar6 == 0) goto LAB_001c9934;
iVar4 = *(int *)(lVar6 + (ulong)(param_6 == 0) * 4);
if (iVar4 < 0x10000) {
if (0xff < iVar4) goto LAB_001c9965;
}
else {
*pbVar7 = (byte)((uint)iVar4 >> 0x10);
pbVar7 = pbVar7 + 1;
LAB_001c9965:
*pbVar7 = (byte)((uint)iVar4 >> 8);
pbVar7 = pbVar7 + 1;
}
param_2 = param_2 + uVar5;
*pbVar7 = (byte)iVar4;
goto LAB_001c996f;
}
}
else {
lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + 0x800 + (ulong)param_2[1] * 8
);
if (lVar6 != 0) {
bVar2 = param_2[2];
goto LAB_001c990c;
}
LAB_001c9934:
if (iVar4 == 3) {
bVar2 = *param_2;
param_2 = param_2 + 1;
*pbVar7 = bVar2;
pbVar7 = pbVar7 + 1;
}
}
*pbVar7 = *param_2;
pbVar1 = param_2 + 1;
param_2 = param_2 + 2;
pbVar7[1] = *pbVar1;
pbVar7 = pbVar7 + 2;
}
} while (param_2 < pbVar8);
}
return (long)pbVar7 - (long)param_4;
}
| |
50,021 | my_open_parent_dir_nosymlinks | eloqsql/mysys/my_symlink.c | const char *my_open_parent_dir_nosymlinks(const char *pathname, int *pdfd)
{
char buf[FN_REFLEN + 1];
char *s= buf, *e= buf+1, *end= strnmov(buf, pathname, sizeof(buf));
int fd, dfd= -1;
if (*end)
{
errno= ENAMETOOLONG;
return NULL;
}
if (*s != '/') /* not an absolute path */
{
errno= ENOENT;
return NULL;
}
for (;;)
{
if (*e == '/') /* '//' in the path */
{
errno= ENOENT;
goto err;
}
while (*e && *e != '/')
e++;
*e= 0;
if (!memcmp(s, ".", 2) || !memcmp(s, "..", 3))
{
errno= ENOENT;
goto err;
}
if (++e >= end)
{
*pdfd= dfd;
return pathname + (s - buf);
}
fd = openat(dfd, s, O_NOFOLLOW | O_PATH | O_CLOEXEC);
if (fd < 0)
goto err;
if (dfd >= 0)
close(dfd);
dfd= fd;
s= e;
}
err:
if (dfd >= 0)
close(dfd);
return NULL;
} | O3 | c | my_open_parent_dir_nosymlinks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x240(%rbp), %r15
movl $0x201, %edx # imm = 0x201
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ed88
cmpb $0x0, (%rax)
je 0x2c373
callq 0x24050
movl $0x24, (%rax)
jmp 0x2c44a
cmpb $0x2f, -0x240(%rbp)
jne 0x2c41f
movq %rax, %r12
movq %r14, -0x248(%rbp)
movb -0x23f(%rbp), %al
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x2f, %al
je 0x2c42f
leaq -0x23f(%rbp), %rcx
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %r15, %rsi
incq %rcx
movq %rcx, %r15
testb %al, %al
je 0x2c3c8
movzbl %al, %eax
cmpl $0x2f, %eax
je 0x2c3c8
movb (%r15), %al
incq %r15
jmp 0x2c3b4
movb $0x0, -0x1(%r15)
cmpw $0x2e, (%rsi)
je 0x2c42c
movzwl (%rsi), %eax
xorl $0x2e2e, %eax # imm = 0x2E2E
movzbl 0x2(%rsi), %ecx
orw %ax, %cx
je 0x2c42c
cmpq %r12, %r15
jae 0x2c470
movl %r14d, %edi
movl $0x2a0000, %edx # imm = 0x2A0000
xorl %eax, %eax
callq 0x242c0
testl %eax, %eax
js 0x2c43d
movl %eax, %r13d
testl %r14d, %r14d
js 0x2c410
movl %r14d, %edi
callq 0x24670
movb (%r15), %al
movl %r13d, %r14d
movq %r15, %rcx
cmpb $0x2f, %al
jne 0x2c3ab
jmp 0x2c42f
callq 0x24050
movl $0x2, (%rax)
jmp 0x2c44a
movl %r14d, %r13d
callq 0x24050
movl $0x2, (%rax)
movl %r13d, %r14d
testl %r14d, %r14d
js 0x2c44a
movl %r14d, %edi
callq 0x24670
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x2c489
movq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x248(%rbp), %rax
movl %r14d, (%rax)
leaq -0x240(%rbp), %rax
subq %rax, %rsi
addq %rsi, %rbx
jmp 0x2c44c
callq 0x24360
nop
| my_open_parent_dir_nosymlinks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r15, [rbp+var_240]
mov edx, 201h
mov rdi, r15
mov rsi, rbx
call strnmov
cmp byte ptr [rax], 0
jz short loc_2C373
call ___errno_location
mov dword ptr [rax], 24h ; '$'
jmp loc_2C44A
loc_2C373:
cmp [rbp+var_240], 2Fh ; '/'
jnz loc_2C41F
mov r12, rax
mov [rbp+var_248], r14
mov al, [rbp+var_23F]
mov r13d, 0FFFFFFFFh
cmp al, 2Fh ; '/'
jz loc_2C42F
lea rcx, [rbp+var_23F]
mov r14d, 0FFFFFFFFh
loc_2C3AB:
mov rsi, r15
inc rcx
mov r15, rcx
loc_2C3B4:
test al, al
jz short loc_2C3C8
movzx eax, al
cmp eax, 2Fh ; '/'
jz short loc_2C3C8
mov al, [r15]
inc r15
jmp short loc_2C3B4
loc_2C3C8:
mov byte ptr [r15-1], 0
cmp word ptr [rsi], 2Eh ; '.'
jz short loc_2C42C
movzx eax, word ptr [rsi]
xor eax, 2E2Eh
movzx ecx, byte ptr [rsi+2]
or cx, ax
jz short loc_2C42C
cmp r15, r12
jnb loc_2C470
mov edi, r14d
mov edx, offset unk_2A0000
xor eax, eax
call _openat64
test eax, eax
js short loc_2C43D
mov r13d, eax
test r14d, r14d
js short loc_2C410
mov edi, r14d
call _close
loc_2C410:
mov al, [r15]
mov r14d, r13d
mov rcx, r15
cmp al, 2Fh ; '/'
jnz short loc_2C3AB
jmp short loc_2C42F
loc_2C41F:
call ___errno_location
mov dword ptr [rax], 2
jmp short loc_2C44A
loc_2C42C:
mov r13d, r14d
loc_2C42F:
call ___errno_location
mov dword ptr [rax], 2
mov r14d, r13d
loc_2C43D:
test r14d, r14d
js short loc_2C44A
mov edi, r14d
call _close
loc_2C44A:
xor ebx, ebx
loc_2C44C:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_2C489
mov rax, rbx
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2C470:
mov rax, [rbp+var_248]
mov [rax], r14d
lea rax, [rbp+var_240]
sub rsi, rax
add rbx, rsi
jmp short loc_2C44C
loc_2C489:
call ___stack_chk_fail
| long long my_open_parent_dir_nosymlinks(long long a1, unsigned int *a2)
{
char *v3; // r15
char *v4; // rdi
char *v5; // rax
char *v6; // r12
char v7; // al
int v8; // r13d
char *v9; // rcx
unsigned int v10; // r14d
char *v11; // rsi
int v12; // eax
unsigned int *v15; // [rsp+8h] [rbp-248h]
char v16; // [rsp+10h] [rbp-240h] BYREF
char v17; // [rsp+11h] [rbp-23Fh] BYREF
unsigned long long v18; // [rsp+220h] [rbp-30h]
v18 = __readfsqword(0x28u);
v3 = &v16;
v4 = &v16;
v5 = (char *)strnmov(&v16, a1, 513LL);
if ( *v5 )
{
*(_DWORD *)__errno_location(&v16) = 36;
return 0LL;
}
if ( v16 != 47 )
{
*(_DWORD *)__errno_location(&v16) = 2;
return 0LL;
}
v6 = v5;
v15 = a2;
v7 = v17;
v8 = -1;
if ( v17 == 47 )
{
LABEL_20:
*(_DWORD *)__errno_location(v4) = 2;
v10 = v8;
LABEL_21:
if ( (v10 & 0x80000000) == 0 )
close(v10);
return 0LL;
}
v9 = &v17;
v10 = -1;
while ( 1 )
{
v11 = v3;
v3 = v9 + 1;
while ( v7 && v7 != 47 )
v7 = *v3++;
*(v3 - 1) = 0;
if ( *(_WORD *)v11 == 46 || !(*(_WORD *)v11 ^ 0x2E2E | (unsigned __int8)v11[2]) )
{
v8 = v10;
goto LABEL_20;
}
if ( v3 >= v6 )
break;
v4 = (char *)v10;
v12 = openat64(v10, v11, &unk_2A0000);
if ( v12 < 0 )
goto LABEL_21;
v8 = v12;
if ( (v10 & 0x80000000) == 0 )
{
v4 = (char *)v10;
close(v10);
}
v7 = *v3;
v10 = v8;
v9 = v3;
if ( *v3 == 47 )
goto LABEL_20;
}
*v15 = v10;
return v11 - &v16 + a1;
}
| my_open_parent_dir_nosymlinks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[RBP + -0x240]
MOV EDX,0x201
MOV RDI,R15
MOV RSI,RBX
CALL 0x0015ed88
CMP byte ptr [RAX],0x0
JZ 0x0012c373
CALL 0x00124050
MOV dword ptr [RAX],0x24
JMP 0x0012c44a
LAB_0012c373:
CMP byte ptr [RBP + -0x240],0x2f
JNZ 0x0012c41f
MOV R12,RAX
MOV qword ptr [RBP + -0x248],R14
MOV AL,byte ptr [RBP + -0x23f]
MOV R13D,0xffffffff
CMP AL,0x2f
JZ 0x0012c42f
LEA RCX,[RBP + -0x23f]
MOV R14D,0xffffffff
LAB_0012c3ab:
MOV RSI,R15
INC RCX
MOV R15,RCX
LAB_0012c3b4:
TEST AL,AL
JZ 0x0012c3c8
MOVZX EAX,AL
CMP EAX,0x2f
JZ 0x0012c3c8
MOV AL,byte ptr [R15]
INC R15
JMP 0x0012c3b4
LAB_0012c3c8:
MOV byte ptr [R15 + -0x1],0x0
CMP word ptr [RSI],0x2e
JZ 0x0012c42c
MOVZX EAX,word ptr [RSI]
XOR EAX,0x2e2e
MOVZX ECX,byte ptr [RSI + 0x2]
OR CX,AX
JZ 0x0012c42c
CMP R15,R12
JNC 0x0012c470
MOV EDI,R14D
MOV EDX,0x2a0000
XOR EAX,EAX
CALL 0x001242c0
TEST EAX,EAX
JS 0x0012c43d
MOV R13D,EAX
TEST R14D,R14D
JS 0x0012c410
MOV EDI,R14D
CALL 0x00124670
LAB_0012c410:
MOV AL,byte ptr [R15]
MOV R14D,R13D
MOV RCX,R15
CMP AL,0x2f
JNZ 0x0012c3ab
JMP 0x0012c42f
LAB_0012c41f:
CALL 0x00124050
MOV dword ptr [RAX],0x2
JMP 0x0012c44a
LAB_0012c42c:
MOV R13D,R14D
LAB_0012c42f:
CALL 0x00124050
MOV dword ptr [RAX],0x2
MOV R14D,R13D
LAB_0012c43d:
TEST R14D,R14D
JS 0x0012c44a
MOV EDI,R14D
CALL 0x00124670
LAB_0012c44a:
XOR EBX,EBX
LAB_0012c44c:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0012c489
MOV RAX,RBX
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012c470:
MOV RAX,qword ptr [RBP + -0x248]
MOV dword ptr [RAX],R14D
LEA RAX,[RBP + -0x240]
SUB RSI,RAX
ADD RBX,RSI
JMP 0x0012c44c
LAB_0012c489:
CALL 0x00124360
|
long my_open_parent_dir_nosymlinks(long param_1,int *param_2)
{
short *psVar1;
int iVar2;
short *psVar3;
int *piVar4;
long lVar5;
int __fd;
short *psVar6;
short *__file;
long in_FS_OFFSET;
int1 local_248 [2];
int1 local_246 [526];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
psVar3 = (short *)strnmov(local_248,param_1,0x201);
if ((char)*psVar3 == '\0') {
if (local_248[0] == '/') {
__fd = -1;
if (local_248[1] != '/') {
psVar1 = (short *)(local_248 + 1);
__file = (short *)local_248;
__fd = -1;
do {
while ((psVar6 = (short *)((long)psVar1 + 1), local_248[1] != '\0' &&
(local_248[1] != '/'))) {
psVar1 = psVar6;
local_248[1] = *(char *)psVar6;
}
*(char *)psVar1 = '\0';
if ((*__file == 0x2e) || ((char)__file[1] == '\0' && *__file == 0x2e2e)) break;
if (psVar3 <= psVar6) {
*param_2 = __fd;
lVar5 = (long)__file + (param_1 - (long)local_248);
goto LAB_0012c44c;
}
iVar2 = openat64(__fd,(char *)__file,0x2a0000);
if (iVar2 < 0) goto LAB_0012c43d;
if (-1 < __fd) {
close(__fd);
}
local_248[1] = *(char *)psVar6;
__fd = iVar2;
psVar1 = psVar6;
__file = psVar6;
} while (local_248[1] != '/');
}
piVar4 = __errno_location();
*piVar4 = 2;
LAB_0012c43d:
if (-1 < __fd) {
close(__fd);
}
}
else {
piVar4 = __errno_location();
*piVar4 = 2;
}
}
else {
piVar4 = __errno_location();
*piVar4 = 0x24;
}
lVar5 = 0;
LAB_0012c44c:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar5;
}
| |
50,022 | remove_io_thread | eloqsql/mysys/mf_iocache.c | void remove_io_thread(IO_CACHE *cache)
{
IO_CACHE_SHARE *cshare= cache->share;
uint total;
DBUG_ENTER("remove_io_thread");
/* If the writer goes, it needs to flush the write cache. */
if (cache == cshare->source_cache)
flush_io_cache(cache);
mysql_mutex_lock(&cshare->mutex);
DBUG_PRINT("io_cache_share", ("%s: %p",
(cache == cshare->source_cache) ?
"writer" : "reader", cache));
/* Remove from share. */
total= --cshare->total_threads;
DBUG_PRINT("io_cache_share", ("remaining threads: %u", total));
/* Detach from share. */
cache->share= NULL;
/* If the writer goes, let the readers know. */
if (cache == cshare->source_cache)
{
DBUG_PRINT("io_cache_share", ("writer leaves"));
cshare->source_cache= NULL;
}
/* If all threads are waiting for me to join the lock, wake them. */
if (!--cshare->running_threads)
{
DBUG_PRINT("io_cache_share", ("the last running thread leaves, wake all"));
mysql_cond_signal(&cshare->cond_writer);
mysql_cond_broadcast(&cshare->cond);
}
mysql_mutex_unlock(&cshare->mutex);
if (!total)
{
DBUG_PRINT("io_cache_share", ("last thread removed, destroy share"));
mysql_cond_destroy (&cshare->cond_writer);
mysql_cond_destroy (&cshare->cond);
mysql_mutex_destroy(&cshare->mutex);
}
DBUG_VOID_RETURN;
} | O0 | c | remove_io_thread:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0xc0(%rcx), %rax
jne 0xe141a
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0xe0920
movq -0x10(%rbp), %rdi
leaq 0x72b7b(%rip), %rsi # 0x153fa0
movl $0x392, %edx # imm = 0x392
callq 0xe1500
jmp 0xe1431
movq -0x10(%rbp), %rcx
movl 0xdc(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0xdc(%rcx)
movl %eax, -0x14(%rbp)
jmp 0xe1449
movq -0x8(%rbp), %rax
movq $0x0, 0x98(%rax)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0xc0(%rcx), %rax
jne 0xe147c
jmp 0xe146b
jmp 0xe146d
movq -0x10(%rbp), %rax
movq $0x0, 0xc0(%rax)
movq -0x10(%rbp), %rcx
movl 0xd8(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0xd8(%rcx)
cmpl $0x0, %eax
jne 0xe14b5
jmp 0xe1496
jmp 0xe1498
movq -0x10(%rbp), %rdi
addq $0x80, %rdi
callq 0xe1570
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
callq 0xe15d0
movq -0x10(%rbp), %rdi
callq 0xe1630
cmpl $0x0, -0x14(%rbp)
jne 0xe14ee
jmp 0xe14c6
jmp 0xe14c8
movq -0x10(%rbp), %rdi
addq $0x80, %rdi
callq 0xe1690
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
callq 0xe1690
movq -0x10(%rbp), %rdi
callq 0xe1700
jmp 0xe14f0
jmp 0xe14f2
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| remove_io_thread:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+98h]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
cmp rax, [rcx+0C0h]
jnz short loc_E141A
mov rdi, [rbp+var_8]
mov esi, 1
call my_b_flush_io_cache
loc_E141A:
mov rdi, [rbp+var_10]
lea rsi, aWorkspaceLlm4b_35; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 392h
call inline_mysql_mutex_lock_23
jmp short $+2
loc_E1431:
mov rcx, [rbp+var_10]
mov eax, [rcx+0DCh]
add eax, 0FFFFFFFFh
mov [rcx+0DCh], eax
mov [rbp+var_14], eax
jmp short $+2
loc_E1449:
mov rax, [rbp+var_8]
mov qword ptr [rax+98h], 0
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
cmp rax, [rcx+0C0h]
jnz short loc_E147C
jmp short $+2
loc_E146B:
jmp short $+2
loc_E146D:
mov rax, [rbp+var_10]
mov qword ptr [rax+0C0h], 0
loc_E147C:
mov rcx, [rbp+var_10]
mov eax, [rcx+0D8h]
add eax, 0FFFFFFFFh
mov [rcx+0D8h], eax
cmp eax, 0
jnz short loc_E14B5
jmp short $+2
loc_E1496:
jmp short $+2
loc_E1498:
mov rdi, [rbp+var_10]
add rdi, 80h
call inline_mysql_cond_signal_1
mov rdi, [rbp+var_10]
add rdi, 48h ; 'H'
call inline_mysql_cond_broadcast_2
loc_E14B5:
mov rdi, [rbp+var_10]
call inline_mysql_mutex_unlock_24
cmp [rbp+var_14], 0
jnz short loc_E14EE
jmp short $+2
loc_E14C6:
jmp short $+2
loc_E14C8:
mov rdi, [rbp+var_10]
add rdi, 80h
call inline_mysql_cond_destroy_3
mov rdi, [rbp+var_10]
add rdi, 48h ; 'H'
call inline_mysql_cond_destroy_3
mov rdi, [rbp+var_10]
call inline_mysql_mutex_destroy_6
loc_E14EE:
jmp short $+2
loc_E14F0:
jmp short $+2
loc_E14F2:
add rsp, 20h
pop rbp
retn
| long long remove_io_thread(long long a1)
{
int v1; // eax
int v2; // eax
long long result; // rax
int v4; // [rsp+Ch] [rbp-14h]
long long v5; // [rsp+10h] [rbp-10h]
v5 = *(_QWORD *)(a1 + 152);
if ( a1 == *(_QWORD *)(v5 + 192) )
my_b_flush_io_cache(a1, 1);
inline_mysql_mutex_lock_23(v5, "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 914LL);
v1 = *(_DWORD *)(v5 + 220) - 1;
*(_DWORD *)(v5 + 220) = v1;
v4 = v1;
*(_QWORD *)(a1 + 152) = 0LL;
if ( a1 == *(_QWORD *)(v5 + 192) )
*(_QWORD *)(v5 + 192) = 0LL;
v2 = *(_DWORD *)(v5 + 216) - 1;
*(_DWORD *)(v5 + 216) = v2;
if ( !v2 )
{
inline_mysql_cond_signal_1(v5 + 128);
inline_mysql_cond_broadcast_2(v5 + 72);
}
result = inline_mysql_mutex_unlock_24(v5);
if ( !v4 )
{
inline_mysql_cond_destroy_3(v5 + 128);
inline_mysql_cond_destroy_3(v5 + 72);
return inline_mysql_mutex_destroy_6(v5);
}
return result;
}
| remove_io_thread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0xc0]
JNZ 0x001e141a
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x001e0920
LAB_001e141a:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x253fa0]
MOV EDX,0x392
CALL 0x001e1500
JMP 0x001e1431
LAB_001e1431:
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RCX + 0xdc]
ADD EAX,-0x1
MOV dword ptr [RCX + 0xdc],EAX
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001e1449
LAB_001e1449:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x98],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0xc0]
JNZ 0x001e147c
JMP 0x001e146b
LAB_001e146b:
JMP 0x001e146d
LAB_001e146d:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc0],0x0
LAB_001e147c:
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RCX + 0xd8]
ADD EAX,-0x1
MOV dword ptr [RCX + 0xd8],EAX
CMP EAX,0x0
JNZ 0x001e14b5
JMP 0x001e1496
LAB_001e1496:
JMP 0x001e1498
LAB_001e1498:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x80
CALL 0x001e1570
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x48
CALL 0x001e15d0
LAB_001e14b5:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e1630
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x001e14ee
JMP 0x001e14c6
LAB_001e14c6:
JMP 0x001e14c8
LAB_001e14c8:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x80
CALL 0x001e1690
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x48
CALL 0x001e1690
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e1700
LAB_001e14ee:
JMP 0x001e14f0
LAB_001e14f0:
JMP 0x001e14f2
LAB_001e14f2:
ADD RSP,0x20
POP RBP
RET
|
void remove_io_thread(long param_1)
{
long lVar1;
int iVar2;
int iVar3;
lVar1 = *(long *)(param_1 + 0x98);
if (param_1 == *(long *)(lVar1 + 0xc0)) {
my_b_flush_io_cache(param_1,1);
}
inline_mysql_mutex_lock(lVar1,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x392)
;
iVar2 = *(int *)(lVar1 + 0xdc) + -1;
*(int *)(lVar1 + 0xdc) = iVar2;
*(int8 *)(param_1 + 0x98) = 0;
if (param_1 == *(long *)(lVar1 + 0xc0)) {
*(int8 *)(lVar1 + 0xc0) = 0;
}
iVar3 = *(int *)(lVar1 + 0xd8) + -1;
*(int *)(lVar1 + 0xd8) = iVar3;
if (iVar3 == 0) {
inline_mysql_cond_signal(lVar1 + 0x80);
inline_mysql_cond_broadcast(lVar1 + 0x48);
}
inline_mysql_mutex_unlock(lVar1);
if (iVar2 == 0) {
inline_mysql_cond_destroy(lVar1 + 0x80);
inline_mysql_cond_destroy(lVar1 + 0x48);
inline_mysql_mutex_destroy(lVar1);
}
return;
}
| |
50,023 | open_isam_file | eloqsql/storage/myisam/myisampack.c | static MI_INFO *open_isam_file(char *name,int mode)
{
MI_INFO *isam_file;
MYISAM_SHARE *share;
DBUG_ENTER("open_isam_file");
if (!(isam_file=mi_open(name,mode,
(opt_wait ? HA_OPEN_WAIT_IF_LOCKED :
HA_OPEN_ABORT_IF_LOCKED))))
{
(void) fprintf(stderr, "%s gave error %d on open\n", name, my_errno);
DBUG_RETURN(0);
}
share=isam_file->s;
if (share->options & HA_OPTION_COMPRESS_RECORD && !join_table)
{
if (!force_pack)
{
(void) fprintf(stderr, "%s is already compressed\n", name);
(void) mi_close(isam_file);
DBUG_RETURN(0);
}
if (verbose)
puts("Recompressing already compressed table");
share->options&= ~HA_OPTION_READ_ONLY_DATA; /* We are modifing it */
/* We want to use the new checksums if we have null fields */
if (share->has_null_fields)
share->options|= HA_OPTION_NULL_FIELDS;
}
if (! force_pack && share->state.state.records != 0 &&
(share->state.state.records <= 1 ||
share->state.state.data_file_length < 1024))
{
(void) fprintf(stderr, "%s is too small to compress\n", name);
(void) mi_close(isam_file);
DBUG_RETURN(0);
}
(void) mi_lock_database(isam_file,F_WRLCK);
DBUG_RETURN(isam_file);
} | O3 | c | open_isam_file:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %edx, %edx
cmpb $0x0, 0x382e6f(%rip) # 0x3afa00
setne %dl
callq 0x38297
testq %rax, %rax
je 0x2cc3e
movq %rax, %rbx
movq (%rax), %r15
movq 0x318(%r15), %rax
testb $0x4, %al
je 0x2cc09
cmpq $0x0, 0x382c2d(%rip) # 0x3af7e8
jne 0x2cc09
cmpb $0x0, 0x382e40(%rip) # 0x3afa04
je 0x2cc7c
cmpl $0x0, 0x382c23(%rip) # 0x3af7f4
je 0x2cbe6
leaq 0x6bbea(%rip), %rdi # 0x987c4
callq 0x28690
movq 0x318(%r15), %rax
andl $0xfffeffff, %eax # imm = 0xFFFEFFFF
movq %rax, 0x318(%r15)
cmpb $0x0, 0x37d(%r15)
je 0x2cc09
orq $0x400, %rax # imm = 0x400
movq %rax, 0x318(%r15)
cmpb $0x0, 0x382df4(%rip) # 0x3afa04
jne 0x2cc6d
movq 0x18(%r15), %rax
testq %rax, %rax
je 0x2cc6d
cmpq $0x1, %rax
je 0x2cc2b
cmpq $0x3ff, 0x40(%r15) # imm = 0x3FF
ja 0x2cc6d
movq 0x30a396(%rip), %rax # 0x336fc8
movq (%rax), %rdi
leaq 0x6bbaf(%rip), %rdx # 0x987eb
jmp 0x2cc8d
movq 0x30a383(%rip), %rax # 0x336fc8
movq (%rax), %r15
callq 0x624a2
movl (%rax), %r8d
leaq 0x6bb39(%rip), %rdx # 0x98790
xorl %ebx, %ebx
movq %r15, %rdi
movl $0x1, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x28720
jmp 0x2cca6
movq %rbx, %rdi
movl $0x1, %esi
callq 0x36be4
jmp 0x2cca6
movq 0x30a345(%rip), %rax # 0x336fc8
movq (%rax), %rdi
leaq 0x6bb1d(%rip), %rdx # 0x987aa
movl $0x1, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x28720
movq %rbx, %rdi
callq 0x2f6b8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| open_isam_file:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdi
xor edx, edx
cmp cs:opt_wait, 0
setnz dl
call mi_open
test rax, rax
jz loc_2CC3E
mov rbx, rax
mov r15, [rax]
mov rax, [r15+318h]
test al, 4
jz short loc_2CC09
cmp cs:join_table, 0
jnz short loc_2CC09
cmp cs:force_pack, 0
jz loc_2CC7C
cmp cs:verbose, 0
jz short loc_2CBE6
lea rdi, aRecompressingA; "Recompressing already compressed table"
call _puts
mov rax, [r15+318h]
loc_2CBE6:
and eax, 0FFFEFFFFh
mov [r15+318h], rax
cmp byte ptr [r15+37Dh], 0
jz short loc_2CC09
or rax, 400h
mov [r15+318h], rax
loc_2CC09:
cmp cs:force_pack, 0
jnz short loc_2CC6D
mov rax, [r15+18h]
test rax, rax
jz short loc_2CC6D
cmp rax, 1
jz short loc_2CC2B
cmp qword ptr [r15+40h], 3FFh
ja short loc_2CC6D
loc_2CC2B:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rdx, aSIsTooSmallToC; "%s is too small to compress\n"
jmp short loc_2CC8D
loc_2CC3E:
mov rax, cs:stderr_ptr
mov r15, [rax]
call _my_thread_var
mov r8d, [rax]
lea rdx, aSGaveErrorDOnO; "%s gave error %d on open\n"
xor ebx, ebx
mov rdi, r15
mov esi, 1
mov rcx, r14
xor eax, eax
call ___fprintf_chk
jmp short loc_2CCA6
loc_2CC6D:
mov rdi, rbx
mov esi, 1
call mi_lock_database
jmp short loc_2CCA6
loc_2CC7C:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rdx, aSIsAlreadyComp; "%s is already compressed\n"
loc_2CC8D:
mov esi, 1
mov rcx, r14
xor eax, eax
call ___fprintf_chk
mov rdi, rbx
call mi_close
xor ebx, ebx
loc_2CCA6:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long open_isam_file(const char *a1, long long a2)
{
long long v2; // rax
long long v3; // rbx
long long v4; // r15
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // r15
_DWORD *v9; // rax
v2 = mi_open(a1, a2, opt_wait != 0);
if ( v2 )
{
v3 = v2;
v4 = *(_QWORD *)v2;
v5 = *(_QWORD *)(*(_QWORD *)v2 + 792LL);
if ( (v5 & 4) != 0 && !join_table )
{
if ( !force_pack )
{
__fprintf_chk(stderr, 1LL, "%s is already compressed\n", a1);
goto LABEL_17;
}
if ( verbose )
{
puts("Recompressing already compressed table");
v5 = *(_QWORD *)(v4 + 792);
}
v6 = (unsigned int)v5 & 0xFFFEFFFF;
*(_QWORD *)(v4 + 792) = v6;
if ( *(_BYTE *)(v4 + 893) )
*(_QWORD *)(v4 + 792) = v6 | 0x400;
}
if ( !force_pack )
{
v7 = *(_QWORD *)(v4 + 24);
if ( v7 )
{
if ( v7 == 1 || *(_QWORD *)(v4 + 64) <= 0x3FFuLL )
{
__fprintf_chk(stderr, 1LL, "%s is too small to compress\n", a1);
LABEL_17:
mi_close(v3);
return 0LL;
}
}
}
mi_lock_database(v3, 1LL);
}
else
{
v8 = stderr;
v9 = (_DWORD *)my_thread_var();
v3 = 0LL;
__fprintf_chk(v8, 1LL, "%s gave error %d on open\n", a1, *v9);
}
return v3;
}
| open_isam_file:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
XOR EDX,EDX
CMP byte ptr [0x004afa00],0x0
SETNZ DL
CALL 0x00138297
TEST RAX,RAX
JZ 0x0012cc3e
MOV RBX,RAX
MOV R15,qword ptr [RAX]
MOV RAX,qword ptr [R15 + 0x318]
TEST AL,0x4
JZ 0x0012cc09
CMP qword ptr [0x004af7e8],0x0
JNZ 0x0012cc09
CMP byte ptr [0x004afa04],0x0
JZ 0x0012cc7c
CMP dword ptr [0x004af7f4],0x0
JZ 0x0012cbe6
LEA RDI,[0x1987c4]
CALL 0x00128690
MOV RAX,qword ptr [R15 + 0x318]
LAB_0012cbe6:
AND EAX,0xfffeffff
MOV qword ptr [R15 + 0x318],RAX
CMP byte ptr [R15 + 0x37d],0x0
JZ 0x0012cc09
OR RAX,0x400
MOV qword ptr [R15 + 0x318],RAX
LAB_0012cc09:
CMP byte ptr [0x004afa04],0x0
JNZ 0x0012cc6d
MOV RAX,qword ptr [R15 + 0x18]
TEST RAX,RAX
JZ 0x0012cc6d
CMP RAX,0x1
JZ 0x0012cc2b
CMP qword ptr [R15 + 0x40],0x3ff
JA 0x0012cc6d
LAB_0012cc2b:
MOV RAX,qword ptr [0x00436fc8]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x1987eb]
JMP 0x0012cc8d
LAB_0012cc3e:
MOV RAX,qword ptr [0x00436fc8]
MOV R15,qword ptr [RAX]
CALL 0x001624a2
MOV R8D,dword ptr [RAX]
LEA RDX,[0x198790]
XOR EBX,EBX
MOV RDI,R15
MOV ESI,0x1
MOV RCX,R14
XOR EAX,EAX
CALL 0x00128720
JMP 0x0012cca6
LAB_0012cc6d:
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00136be4
JMP 0x0012cca6
LAB_0012cc7c:
MOV RAX,qword ptr [0x00436fc8]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x1987aa]
LAB_0012cc8d:
MOV ESI,0x1
MOV RCX,R14
XOR EAX,EAX
CALL 0x00128720
MOV RDI,RBX
CALL 0x0012f6b8
XOR EBX,EBX
LAB_0012cca6:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
long * open_isam_file(int8 param_1,int8 param_2)
{
long lVar1;
uint uVar2;
long *plVar3;
int4 *puVar4;
char *pcVar5;
int8 uVar6;
plVar3 = (long *)mi_open(param_1,param_2,opt_wait != '\0');
if (plVar3 == (long *)0x0) {
uVar6 = *(int8 *)PTR_stderr_00436fc8;
puVar4 = (int4 *)_my_thread_var();
__fprintf_chk(uVar6,1,"%s gave error %d on open\n",param_1,*puVar4);
return (long *)0x0;
}
lVar1 = *plVar3;
uVar2 = (uint)*(ulong *)(lVar1 + 0x318);
if (((*(ulong *)(lVar1 + 0x318) & 4) != 0) && (join_table == 0)) {
if (force_pack == '\0') {
uVar6 = *(int8 *)PTR_stderr_00436fc8;
pcVar5 = "%s is already compressed\n";
goto LAB_0012cc8d;
}
if (verbose != 0) {
puts("Recompressing already compressed table");
uVar2 = (uint)*(int8 *)(lVar1 + 0x318);
}
*(ulong *)(lVar1 + 0x318) = (ulong)(uVar2 & 0xfffeffff);
if (*(char *)(lVar1 + 0x37d) != '\0') {
*(ulong *)(lVar1 + 0x318) = (ulong)(uVar2 & 0xfffeffff) | 0x400;
}
}
if (((force_pack != '\0') || (*(long *)(lVar1 + 0x18) == 0)) ||
((*(long *)(lVar1 + 0x18) != 1 && (0x3ff < *(ulong *)(lVar1 + 0x40))))) {
mi_lock_database(plVar3,1);
return plVar3;
}
uVar6 = *(int8 *)PTR_stderr_00436fc8;
pcVar5 = "%s is too small to compress\n";
LAB_0012cc8d:
__fprintf_chk(uVar6,1,pcVar5,param_1);
mi_close(plVar3);
return (long *)0x0;
}
| |
50,024 | purge_account(PFS_thread*, PFS_account*) | eloqsql/storage/perfschema/pfs_account.cc | void purge_account(PFS_thread *thread, PFS_account *account)
{
LF_PINS *pins= get_account_hash_pins(thread);
if (unlikely(pins == NULL))
return;
PFS_account **entry;
entry= reinterpret_cast<PFS_account**>
(lf_hash_search(&account_hash, pins,
account->m_key.m_hash_key,
account->m_key.m_key_length));
if (entry && (entry != MY_ERRPTR))
{
assert(*entry == account);
if (account->get_refcount() == 0)
{
lf_hash_delete(&account_hash, pins,
account->m_key.m_hash_key,
account->m_key.m_key_length);
account->aggregate(false, account->m_user, account->m_host);
if (account->m_user != NULL)
{
account->m_user->release();
account->m_user= NULL;
}
if (account->m_host != NULL)
{
account->m_host->release();
account->m_host= NULL;
}
global_account_container.deallocate(account);
}
}
lf_hash_search_unpin(pins);
} | O0 | cpp | purge_account(PFS_thread*, PFS_account*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x374a0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x37e94
jmp 0x37fb5
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x7e4, %rdx # imm = 0x7E4
movq -0x10(%rbp), %rax
movl 0xa68(%rax), %ecx
leaq 0x394514(%rip), %rdi # 0x3cc3c8
callq 0x5ea20
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x37f9b
movl $0x1, %eax
cmpq %rax, -0x20(%rbp)
je 0x37f9b
movq -0x10(%rbp), %rdi
callq 0x38bb0
cmpl $0x0, %eax
jne 0x37f99
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x7e4, %rdx # imm = 0x7E4
movq -0x10(%rbp), %rax
movl 0xa68(%rax), %ecx
leaq 0x3944bf(%rip), %rdi # 0x3cc3c8
callq 0x5e000
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xa90(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0xa98(%rax), %rcx
xorl %esi, %esi
callq 0x375d0
movq -0x10(%rbp), %rax
cmpq $0x0, 0xa90(%rax)
je 0x37f5c
movq -0x10(%rbp), %rax
movq 0xa90(%rax), %rdi
callq 0x56f60
movq -0x10(%rbp), %rax
movq $0x0, 0xa90(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0xa98(%rax)
je 0x37f89
movq -0x10(%rbp), %rax
movq 0xa98(%rax), %rdi
callq 0x41c90
movq -0x10(%rbp), %rax
movq $0x0, 0xa98(%rax)
movq -0x10(%rbp), %rsi
leaq 0x3cc0bc(%rip), %rdi # 0x404050
callq 0x38750
jmp 0x37f9b
jmp 0x37f9d
jmp 0x37f9f
jmp 0x37fa1
movq -0x18(%rbp), %rcx
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
xchgq %rax, 0x10(%rcx)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _Z13purge_accountP10PFS_threadP11PFS_account:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]; PFS_thread *
call _ZL21get_account_hash_pinsP10PFS_thread; get_account_hash_pins(PFS_thread *)
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_37E94
jmp loc_37FB5
loc_37E94:
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_10]
add rdx, 7E4h
mov rax, [rbp+var_10]
mov ecx, [rax+0A68h]
lea rdi, account_hash
call lf_hash_search
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jz loc_37F9B
mov eax, 1
cmp [rbp+var_20], rax
jz loc_37F9B
mov rdi, [rbp+var_10]; this
call _ZN11PFS_account12get_refcountEv; PFS_account::get_refcount(void)
cmp eax, 0
jnz loc_37F99
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_10]
add rdx, 7E4h
mov rax, [rbp+var_10]
mov ecx, [rax+0A68h]
lea rdi, account_hash
call lf_hash_delete
mov rdi, [rbp+var_10]; this
mov rax, [rbp+var_10]
mov rdx, [rax+0A90h]; PFS_user *
mov rax, [rbp+var_10]
mov rcx, [rax+0A98h]; PFS_host *
xor esi, esi; bool
call _ZN11PFS_account9aggregateEbP8PFS_userP8PFS_host; PFS_account::aggregate(bool,PFS_user *,PFS_host *)
mov rax, [rbp+var_10]
cmp qword ptr [rax+0A90h], 0
jz short loc_37F5C
mov rax, [rbp+var_10]
mov rdi, [rax+0A90h]; this
call _ZN8PFS_user7releaseEv; PFS_user::release(void)
mov rax, [rbp+var_10]
mov qword ptr [rax+0A90h], 0
loc_37F5C:
mov rax, [rbp+var_10]
cmp qword ptr [rax+0A98h], 0
jz short loc_37F89
mov rax, [rbp+var_10]
mov rdi, [rax+0A98h]; this
call _ZN8PFS_host7releaseEv; PFS_host::release(void)
mov rax, [rbp+var_10]
mov qword ptr [rax+0A98h], 0
loc_37F89:
mov rsi, [rbp+var_10]
lea rdi, global_account_container
call _ZN29PFS_buffer_scalable_containerI11PFS_accountLi128ELi128E17PFS_account_array21PFS_account_allocatorE10deallocateEPS0_; PFS_buffer_scalable_container<PFS_account,128,128,PFS_account_array,PFS_account_allocator>::deallocate(PFS_account*)
loc_37F99:
jmp short $+2
loc_37F9B:
jmp short $+2
loc_37F9D:
jmp short $+2
loc_37F9F:
jmp short $+2
loc_37FA1:
mov rcx, [rbp+var_18]
mov [rbp+var_28], 0
mov rax, [rbp+var_28]
xchg rax, [rcx+10h]
loc_37FB5:
add rsp, 30h
pop rbp
retn
| long long purge_account(PFS_thread *a1, PFS_user **a2)
{
long long result; // rax
long long account_hash_pins; // [rsp+18h] [rbp-18h]
account_hash_pins = get_account_hash_pins(a1);
result = account_hash_pins == 0;
if ( account_hash_pins )
{
if ( (unsigned long long)lf_hash_search(
&account_hash,
account_hash_pins,
(char *)a2 + 2020,
*((unsigned int *)a2 + 666)) >= 2
&& !(unsigned int)PFS_account::get_refcount((PFS_account *)a2) )
{
lf_hash_delete(&account_hash, account_hash_pins, (char *)a2 + 2020, *((unsigned int *)a2 + 666));
PFS_account::aggregate((PFS_account *)a2, 0, a2[338], a2[339]);
if ( a2[338] )
{
PFS_user::release(a2[338]);
a2[338] = 0LL;
}
if ( a2[339] )
{
PFS_host::release(a2[339]);
a2[339] = 0LL;
}
PFS_buffer_scalable_container<PFS_account,128,128,PFS_account_array,PFS_account_allocator>::deallocate(
global_account_container,
a2);
}
return _InterlockedExchange64((volatile long long *)(account_hash_pins + 16), 0LL);
}
return result;
}
| purge_account:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001374a0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00137e94
JMP 0x00137fb5
LAB_00137e94:
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,0x7e4
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0xa68]
LEA RDI,[0x4cc3c8]
CALL 0x0015ea20
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00137f9b
MOV EAX,0x1
CMP qword ptr [RBP + -0x20],RAX
JZ 0x00137f9b
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00138bb0
CMP EAX,0x0
JNZ 0x00137f99
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,0x7e4
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0xa68]
LEA RDI,[0x4cc3c8]
CALL 0x0015e000
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0xa90]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa98]
XOR ESI,ESI
CALL 0x001375d0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0xa90],0x0
JZ 0x00137f5c
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0xa90]
CALL 0x00156f60
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xa90],0x0
LAB_00137f5c:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0xa98],0x0
JZ 0x00137f89
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0xa98]
CALL 0x00141c90
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xa98],0x0
LAB_00137f89:
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[0x504050]
CALL 0x00138750
LAB_00137f99:
JMP 0x00137f9b
LAB_00137f9b:
JMP 0x00137f9d
LAB_00137f9d:
JMP 0x00137f9f
LAB_00137f9f:
JMP 0x00137fa1
LAB_00137fa1:
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],0x0
MOV RAX,qword ptr [RBP + -0x28]
XCHG qword ptr [RCX + 0x10],RAX
LAB_00137fb5:
ADD RSP,0x30
POP RBP
RET
|
/* purge_account(PFS_thread*, PFS_account*) */
ulong purge_account(PFS_thread *param_1,PFS_account *param_2)
{
int iVar1;
long lVar2;
ulong uVar3;
long lVar4;
lVar2 = get_account_hash_pins(param_1);
uVar3 = (ulong)(lVar2 == 0);
if (lVar2 != 0) {
lVar4 = lf_hash_search(account_hash,lVar2,param_2 + 0x7e4,*(int4 *)(param_2 + 0xa68));
if (((lVar4 != 0) && (lVar4 != 1)) && (iVar1 = PFS_account::get_refcount(param_2), iVar1 == 0))
{
lf_hash_delete(account_hash,lVar2,param_2 + 0x7e4,*(int4 *)(param_2 + 0xa68));
PFS_account::aggregate
(param_2,false,*(PFS_user **)(param_2 + 0xa90),*(PFS_host **)(param_2 + 0xa98));
if (*(long *)(param_2 + 0xa90) != 0) {
PFS_user::release(*(PFS_user **)(param_2 + 0xa90));
*(int8 *)(param_2 + 0xa90) = 0;
}
if (*(long *)(param_2 + 0xa98) != 0) {
PFS_host::release(*(PFS_host **)(param_2 + 0xa98));
*(int8 *)(param_2 + 0xa98) = 0;
}
PFS_buffer_scalable_container<PFS_account,128,128,PFS_account_array,PFS_account_allocator>::
deallocate((PFS_buffer_scalable_container<PFS_account,128,128,PFS_account_array,PFS_account_allocator>
*)&global_account_container,param_2);
}
LOCK();
uVar3 = *(ulong *)(lVar2 + 0x10);
*(ulong *)(lVar2 + 0x10) = 0;
UNLOCK();
}
return uVar3;
}
| |
50,025 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::skip_bom() | monkey531[P]llama/common/json.hpp | bool skip_bom()
{
if (get() == 0xEF)
{
// check if we completely parse the BOM
return get() == 0xBB && get() == 0xBF;
}
// the first character is not the beginning of the BOM; unget it to
// process is later
unget();
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::skip_bom():
pushq %rbx
movq %rdi, %rbx
callq 0x43f8c
cmpl $0xef, %eax
jne 0x436d1
movq %rbx, %rdi
callq 0x43f8c
cmpl $0xbb, %eax
jne 0x436dd
movq %rbx, %rdi
callq 0x43f8c
cmpl $0xbf, %eax
sete %al
jmp 0x436df
movq %rbx, %rdi
callq 0x44002
movb $0x1, %al
jmp 0x436df
xorl %eax, %eax
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv:
push rbx
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0EFh
jnz short loc_436D1
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0BBh
jnz short loc_436DD
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0BFh
setz al
jmp short loc_436DF
loc_436D1:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void)
mov al, 1
jmp short loc_436DF
loc_436DD:
xor eax, eax
loc_436DF:
pop rbx
retn
| bool nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(
long long a1)
{
if ( (unsigned int)((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get)() == 239 )
return (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 187
&& (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 191;
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1);
return 1;
}
| skip_bom:
PUSH RBX
MOV RBX,RDI
CALL 0x00143f8c
CMP EAX,0xef
JNZ 0x001436d1
MOV RDI,RBX
CALL 0x00143f8c
CMP EAX,0xbb
JNZ 0x001436dd
MOV RDI,RBX
CALL 0x00143f8c
CMP EAX,0xbf
SETZ AL
JMP 0x001436df
LAB_001436d1:
MOV RDI,RBX
CALL 0x00144002
MOV AL,0x1
JMP 0x001436df
LAB_001436dd:
XOR EAX,EAX
LAB_001436df:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::skip_bom() */
bool __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::skip_bom(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int iVar1;
bool bVar2;
iVar1 = get(this);
if (iVar1 == 0xef) {
iVar1 = get(this);
if (iVar1 == 0xbb) {
iVar1 = get(this);
bVar2 = iVar1 == 0xbf;
}
else {
bVar2 = false;
}
}
else {
unget(this);
bVar2 = true;
}
return bVar2;
}
| |
50,026 | google::protobuf::FileDescriptorTables::FindParentForFieldsByMap(google::protobuf::FieldDescriptor const*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | const void* FileDescriptorTables::FindParentForFieldsByMap(
const FieldDescriptor* field) const {
if (field->is_extension()) {
if (field->extension_scope() == nullptr) {
return field->file();
} else {
return field->extension_scope();
}
} else {
return field->containing_type();
}
} | O0 | cpp | google::protobuf::FileDescriptorTables::FindParentForFieldsByMap(google::protobuf::FieldDescriptor const*) const:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
movq (%rsp), %rdi
callq 0x73300
testb $0x1, %al
jne 0x335dc
jmp 0x3360b
movq (%rsp), %rdi
callq 0x73320
cmpq $0x0, %rax
jne 0x335fb
movq (%rsp), %rdi
callq 0x733f0
movq %rax, 0x10(%rsp)
jmp 0x33619
movq (%rsp), %rdi
callq 0x73320
movq %rax, 0x10(%rsp)
jmp 0x33619
movq (%rsp), %rdi
callq 0x73400
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZNK6google8protobuf20FileDescriptorTables24FindParentForFieldsByMapEPKNS0_15FieldDescriptorE:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov [rsp+18h+var_18], rsi
mov rdi, [rsp+18h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor12is_extensionEv; google::protobuf::FieldDescriptor::is_extension(void)
test al, 1
jnz short loc_335DC
jmp short loc_3360B
loc_335DC:
mov rdi, [rsp+18h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor15extension_scopeEv; google::protobuf::FieldDescriptor::extension_scope(void)
cmp rax, 0
jnz short loc_335FB
mov rdi, [rsp+18h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor4fileEv; google::protobuf::FieldDescriptor::file(void)
mov [rsp+18h+var_8], rax
jmp short loc_33619
loc_335FB:
mov rdi, [rsp+18h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor15extension_scopeEv; google::protobuf::FieldDescriptor::extension_scope(void)
mov [rsp+18h+var_8], rax
jmp short loc_33619
loc_3360B:
mov rdi, [rsp+18h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor15containing_typeEv; google::protobuf::FieldDescriptor::containing_type(void)
mov [rsp+18h+var_8], rax
loc_33619:
mov rax, [rsp+18h+var_8]
add rsp, 18h
retn
| long long google::protobuf::FileDescriptorTables::FindParentForFieldsByMap(
google::protobuf::FileDescriptorTables *this,
const google::protobuf::FieldDescriptor *a2)
{
if ( (google::protobuf::FieldDescriptor::is_extension(a2) & 1) == 0 )
return google::protobuf::FieldDescriptor::containing_type(a2);
if ( google::protobuf::FieldDescriptor::extension_scope(a2) )
return google::protobuf::FieldDescriptor::extension_scope(a2);
return google::protobuf::FieldDescriptor::file(a2);
}
| FindParentForFieldsByMap:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV qword ptr [RSP],RSI
MOV RDI,qword ptr [RSP]
CALL 0x00173300
TEST AL,0x1
JNZ 0x001335dc
JMP 0x0013360b
LAB_001335dc:
MOV RDI,qword ptr [RSP]
CALL 0x00173320
CMP RAX,0x0
JNZ 0x001335fb
MOV RDI,qword ptr [RSP]
CALL 0x001733f0
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00133619
LAB_001335fb:
MOV RDI,qword ptr [RSP]
CALL 0x00173320
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00133619
LAB_0013360b:
MOV RDI,qword ptr [RSP]
CALL 0x00173400
MOV qword ptr [RSP + 0x10],RAX
LAB_00133619:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x18
RET
|
/* google::protobuf::FileDescriptorTables::FindParentForFieldsByMap(google::protobuf::FieldDescriptor
const*) const */
int8 __thiscall
google::protobuf::FileDescriptorTables::FindParentForFieldsByMap
(FileDescriptorTables *this,FieldDescriptor *param_1)
{
ulong uVar1;
long lVar2;
int8 local_8;
uVar1 = FieldDescriptor::is_extension(param_1);
if ((uVar1 & 1) == 0) {
local_8 = FieldDescriptor::containing_type(param_1);
}
else {
lVar2 = FieldDescriptor::extension_scope(param_1);
if (lVar2 == 0) {
local_8 = FieldDescriptor::file(param_1);
}
else {
local_8 = FieldDescriptor::extension_scope(param_1);
}
}
return local_8;
}
| |
50,027 | POINTonE1_sign | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e1.c | static void POINTonE1_sign(POINTonE1 *out, const POINTonE1 *in, const pow256 SK)
{
vec384 Z, ZZ;
limb_t inf;
POINTonE1_mult_glv(out, in, SK);
/* convert to affine to remove possible bias in out->Z */
inf = vec_is_zero(out->Z, sizeof(out->Z));
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
flt_reciprocal_fp(Z, out->Z); /* 1/Z */
#else
reciprocal_fp(Z, out->Z); /* 1/Z */
#endif
sqr_fp(ZZ, Z);
mul_fp(out->X, out->X, ZZ); /* X = X/Z^2 */
mul_fp(ZZ, ZZ, Z);
mul_fp(out->Y, out->Y, ZZ); /* Y = Y/Z^3 */
vec_select(out->Z, out->Z, BLS12_381_G1.Z, sizeof(BLS12_381_G1.Z),
inf); /* Z = inf ? 0 : 1 */
} | O3 | c | POINTonE1_sign:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r15
callq 0x1aabf
leaq 0x60(%r15), %rbx
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2ff40
movq %rax, %r14
leaq 0x258f2(%rip), %rdx # 0x3fe50
leaq -0x60(%rbp), %rdi
movl $0x17d, %ecx # imm = 0x17D
movq %rbx, %rsi
callq 0x25e87
leaq 0x2559a(%rip), %r12 # 0x3fb10
leaq -0x90(%rbp), %r13
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
movq %r13, %rdi
leaq -0x60(%rbp), %rsi
movq %r12, %rdx
callq 0x33d20
movq %r15, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD
callq 0x344a0
movq %r13, %rdi
movq %r13, %rsi
leaq -0x60(%rbp), %rdx
movq %r12, %rcx
movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD
callq 0x344a0
addq $0x30, %r15
movq %r15, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD
callq 0x344a0
leaq 0x251fd(%rip), %rdx # 0x3f7f0
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x2f8a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| POINTonE1_sign:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, rdi
call POINTonE1_mult_glv
lea rbx, [r15+60h]
mov esi, 30h ; '0'
mov rdi, rbx
call vec_is_zero_16x
mov r14, rax
lea rdx, _flt_reciprocal_fp_BLS12_381_P_minus_2
lea rdi, [rbp+var_60]
mov ecx, 17Dh
mov rsi, rbx
call exp_mont_384
lea r12, BLS12_381_P
lea r13, [rbp+var_90]
mov rcx, 89F3FFFCFFFCFFFDh
mov rdi, r13
lea rsi, [rbp+var_60]
mov rdx, r12
call sqr_mont_384
mov rdi, r15
mov rsi, r15
mov rdx, r13
mov rcx, r12
mov r8, 89F3FFFCFFFCFFFDh
call mul_mont_384
mov rdi, r13
mov rsi, r13
lea rdx, [rbp+var_60]
mov rcx, r12
mov r8, 89F3FFFCFFFCFFFDh
call mul_mont_384
add r15, 30h ; '0'
mov rdi, r15
mov rsi, r15
mov rdx, r13
mov rcx, r12
mov r8, 89F3FFFCFFFCFFFDh
call mul_mont_384
lea rdx, unk_3F7F0
mov rdi, rbx
mov rsi, rbx
mov rcx, r14
call vec_select_48
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long POINTonE1_sign(long long a1)
{
long long is_zero_16x; // r14
_BYTE v4[48]; // [rsp+0h] [rbp-90h] BYREF
_BYTE v5[96]; // [rsp+30h] [rbp-60h] BYREF
POINTonE1_mult_glv();
is_zero_16x = vec_is_zero_16x(a1 + 96, 48LL);
exp_mont_384(v5, a1 + 96, &flt_reciprocal_fp_BLS12_381_P_minus_2, 381LL);
sqr_mont_384(v4, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(a1, a1, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v4, v4, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(a1 + 48, a1 + 48, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
return vec_select_48(a1 + 96, a1 + 96, &unk_3F7F0, is_zero_16x);
}
| POINTonE1_sign:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,RDI
CALL 0x0011aabf
LEA RBX,[R15 + 0x60]
MOV ESI,0x30
MOV RDI,RBX
CALL 0x0012ff40
MOV R14,RAX
LEA RDX,[0x13fe50]
LEA RDI,[RBP + -0x60]
MOV ECX,0x17d
MOV RSI,RBX
CALL 0x00125e87
LEA R12,[0x13fb10]
LEA R13,[RBP + -0x90]
MOV RCX,-0x760c000300030003
MOV RDI,R13
LEA RSI,[RBP + -0x60]
MOV RDX,R12
CALL 0x00133d20
MOV RDI,R15
MOV RSI,R15
MOV RDX,R13
MOV RCX,R12
MOV R8,-0x760c000300030003
CALL 0x001344a0
MOV RDI,R13
MOV RSI,R13
LEA RDX,[RBP + -0x60]
MOV RCX,R12
MOV R8,-0x760c000300030003
CALL 0x001344a0
ADD R15,0x30
MOV RDI,R15
MOV RSI,R15
MOV RDX,R13
MOV RCX,R12
MOV R8,-0x760c000300030003
CALL 0x001344a0
LEA RDX,[0x13f7f0]
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R14
CALL 0x0012f8a0
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void POINTonE1_sign(long param_1)
{
long lVar1;
int8 uVar2;
int1 local_98 [48];
int1 local_68 [56];
POINTonE1_mult_glv();
lVar1 = param_1 + 0x60;
uVar2 = vec_is_zero_16x(lVar1,0x30);
exp_mont_384(local_68,lVar1,flt_reciprocal_fp_BLS12_381_P_minus_2,0x17d);
sqr_mont_384(local_98,local_68,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(param_1,param_1,local_98,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_98,local_98,local_68,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(param_1 + 0x30,param_1 + 0x30,local_98,BLS12_381_P,0x89f3fffcfffcfffd);
vec_select_48(lVar1,lVar1,0x13f7f0,uVar2);
return;
}
| |
50,028 | select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&) | llama.cpp/examples/llava/clip.cpp | static std::pair<int, int> select_best_resolution(const std::pair<int, int> & original_size, const std::vector<std::pair<int, int>> & possible_resolutions) {
int original_width = original_size.first;
int original_height = original_size.second;
std::pair<int, int> best_fit;
int max_effective_resolution = 0;
int min_wasted_resolution = std::numeric_limits<int>::max();
for (const auto& resolution : possible_resolutions) {
int width = resolution.first;
int height = resolution.second;
float scale = std::min(static_cast<float>(width) / original_width, static_cast<float>(height) / original_height);
int downscaled_width = static_cast<int>(original_width * scale);
int downscaled_height = static_cast<int>(original_height * scale);
int effective_resolution = std::min(downscaled_width * downscaled_height, original_width * original_height);
int wasted_resolution = (width * height) - effective_resolution;
// LOG_INF("resolution: %d %d, scale: %f, downscaled: %d %d, effective: %d, wasted: %d\n", width, height, scale, downscaled_width, downscaled_height, effective_resolution, wasted_resolution);
if (effective_resolution > max_effective_resolution || (effective_resolution == max_effective_resolution && wasted_resolution < min_wasted_resolution)) {
max_effective_resolution = effective_resolution;
min_wasted_resolution = wasted_resolution;
best_fit = resolution;
}
}
return best_fit;
} | O3 | cpp | select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&):
xorl %eax, %eax
cmpq %rcx, %rdx
je 0x262e4
pushq %rbp
pushq %rbx
movd %esi, %xmm0
movd %edi, %xmm1
punpckldq %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
imull %edi, %esi
movl $0x7fffffff, %r9d # imm = 0x7FFFFFFF
xorl %edi, %edi
xorl %r8d, %r8d
movq (%rdx), %r10
movq %r10, %xmm1
cvtdq2ps %xmm1, %xmm2
divps %xmm0, %xmm2
movaps %xmm2, %xmm3
shufps $0x55, %xmm2, %xmm3 # xmm3 = xmm3[1,1],xmm2[1,1]
minss %xmm2, %xmm3
shufps $0x0, %xmm3, %xmm3 # xmm3 = xmm3[0,0,0,0]
mulps %xmm0, %xmm3
cvttps2dq %xmm3, %xmm2
movd %xmm2, %ebx
pshufd $0x55, %xmm2, %xmm2 # xmm2 = xmm2[1,1,1,1]
movd %xmm2, %r11d
imull %ebx, %r11d
cmpl %r11d, %esi
cmovll %esi, %r11d
pshufd $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1]
movd %xmm1, %ebx
movl %ebx, %ebp
imull %r10d, %ebp
subl %r11d, %ebp
cmpl %eax, %r11d
jg 0x262c4
jne 0x262cf
cmpl %r9d, %ebp
jge 0x262cf
movl %r10d, %r8d
movl %ebx, %edi
movl %ebp, %r9d
movl %r11d, %eax
addq $0x8, %rdx
cmpq %rcx, %rdx
jne 0x26269
shlq $0x20, %rdi
movl %r8d, %eax
orq %rdi, %rax
popq %rbx
popq %rbp
retq
| _ZL22select_best_resolutionRKSt4pairIiiERKSt6vectorIS0_SaIS0_EE:
xor eax, eax
cmp rdx, rcx
jz locret_262E4
push rbp
push rbx
movd xmm0, esi
movd xmm1, edi
punpckldq xmm1, xmm0
cvtdq2ps xmm0, xmm1
imul esi, edi
mov r9d, 7FFFFFFFh
xor edi, edi
xor r8d, r8d
loc_26269:
mov r10, [rdx]
movq xmm1, r10
cvtdq2ps xmm2, xmm1
divps xmm2, xmm0
movaps xmm3, xmm2
shufps xmm3, xmm2, 55h ; 'U'
minss xmm3, xmm2
shufps xmm3, xmm3, 0
mulps xmm3, xmm0
cvttps2dq xmm2, xmm3
movd ebx, xmm2
pshufd xmm2, xmm2, 55h ; 'U'
movd r11d, xmm2
imul r11d, ebx
cmp esi, r11d
cmovl r11d, esi
pshufd xmm1, xmm1, 55h ; 'U'
movd ebx, xmm1
mov ebp, ebx
imul ebp, r10d
sub ebp, r11d
cmp r11d, eax
jg short loc_262C4
jnz short loc_262CF
cmp ebp, r9d
jge short loc_262CF
loc_262C4:
mov r8d, r10d
mov edi, ebx
mov r9d, ebp
mov eax, r11d
loc_262CF:
add rdx, 8
cmp rdx, rcx
jnz short loc_26269
shl rdi, 20h
mov eax, r8d
or rax, rdi
pop rbx
pop rbp
locret_262E4:
retn
| long long select_best_resolution(unsigned int a1, unsigned int a2, unsigned long long *a3, unsigned long long *a4)
{
long long result; // rax
__m128 v5; // xmm0
int v6; // esi
int v7; // r9d
long long v8; // rdi
unsigned int v9; // r8d
unsigned long long v10; // r10
__m128i v11; // xmm1
__m128 v12; // xmm2
__m128 v13; // xmm3
__m128i v14; // xmm2
int v15; // r11d
unsigned int v16; // ebx
result = 0LL;
if ( a3 != a4 )
{
v5 = _mm_cvtepi32_ps(_mm_unpacklo_epi32(_mm_cvtsi32_si128(a1), _mm_cvtsi32_si128(a2)));
v6 = a1 * a2;
v7 = 0x7FFFFFFF;
v8 = 0LL;
v9 = 0;
do
{
v10 = *a3;
v11 = (__m128i)*a3;
v12 = _mm_div_ps(_mm_cvtepi32_ps(v11), v5);
v13 = _mm_shuffle_ps(v12, v12, 85);
v13.m128_f32[0] = fminf(v13.m128_f32[0], v12.m128_f32[0]);
v14 = _mm_cvttps_epi32(_mm_mul_ps(_mm_shuffle_ps(v13, v13, 0), v5));
v15 = _mm_cvtsi128_si32(v14) * _mm_cvtsi128_si32(_mm_shuffle_epi32(v14, 85));
if ( v6 < v15 )
v15 = v6;
v16 = _mm_cvtsi128_si32(_mm_shuffle_epi32(v11, 85));
if ( v15 > (int)result || v15 == (_DWORD)result && (int)(v10 * v16 - v15) < v7 )
{
v9 = *a3;
v8 = v16;
v7 = v10 * v16 - v15;
LODWORD(result) = v15;
}
++a3;
}
while ( a3 != a4 );
return (v8 << 32) | v9;
}
return result;
}
| select_best_resolution:
XOR EAX,EAX
CMP RDX,RCX
JZ 0x001262e4
PUSH RBP
PUSH RBX
MOVD XMM0,ESI
MOVD XMM1,EDI
PUNPCKLDQ XMM1,XMM0
CVTDQ2PS XMM0,XMM1
IMUL ESI,EDI
MOV R9D,0x7fffffff
XOR EDI,EDI
XOR R8D,R8D
LAB_00126269:
MOV R10,qword ptr [RDX]
MOVQ XMM1,R10
CVTDQ2PS XMM2,XMM1
DIVPS XMM2,XMM0
MOVAPS XMM3,XMM2
SHUFPS XMM3,XMM2,0x55
MINSS XMM3,XMM2
SHUFPS XMM3,XMM3,0x0
MULPS XMM3,XMM0
CVTTPS2DQ XMM2,XMM3
MOVD EBX,XMM2
PSHUFD XMM2,XMM2,0x55
MOVD R11D,XMM2
IMUL R11D,EBX
CMP ESI,R11D
CMOVL R11D,ESI
PSHUFD XMM1,XMM1,0x55
MOVD EBX,XMM1
MOV EBP,EBX
IMUL EBP,R10D
SUB EBP,R11D
CMP R11D,EAX
JG 0x001262c4
JNZ 0x001262cf
CMP EBP,R9D
JGE 0x001262cf
LAB_001262c4:
MOV R8D,R10D
MOV EDI,EBX
MOV R9D,EBP
MOV EAX,R11D
LAB_001262cf:
ADD RDX,0x8
CMP RDX,RCX
JNZ 0x00126269
SHL RDI,0x20
MOV EAX,R8D
OR RAX,RDI
POP RBX
POP RBP
LAB_001262e4:
RET
|
/* select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>,
std::allocator<std::pair<int, int> > > const&) */
ulong select_best_resolution(pair *param_1,vector *param_2)
{
ulong uVar1;
ulong uVar2;
ulong *in_RCX;
ulong *in_RDX;
int iVar3;
uint uVar4;
ulong uVar5;
ulong uVar6;
int iVar7;
uint uVar8;
int1 auVar9 [16];
uint uVar10;
int1 auVar11 [16];
float fVar12;
uVar2 = 0;
if (in_RDX != in_RCX) {
auVar9._0_4_ = (float)(int)param_1;
auVar9._4_4_ = (float)(int)param_2;
auVar9._8_8_ = 0;
uVar4 = (int)param_2 * (int)param_1;
iVar7 = 0x7fffffff;
uVar5 = 0;
uVar6 = 0;
do {
uVar1 = *in_RDX;
auVar11._0_4_ = (float)(int)uVar1;
uVar10 = (uint)(uVar1 >> 0x20);
auVar11._4_4_ = (float)(int)uVar10;
auVar11._8_8_ = 0;
auVar11 = divps(auVar11,auVar9);
fVar12 = auVar11._4_4_;
if (auVar11._0_4_ <= auVar11._4_4_) {
fVar12 = auVar11._0_4_;
}
uVar8 = (int)(fVar12 * auVar9._4_4_) * (int)(fVar12 * auVar9._0_4_);
if ((int)uVar4 < (int)uVar8) {
uVar8 = uVar4;
}
iVar3 = uVar10 * (int)uVar1 - uVar8;
if (((int)(uint)uVar2 < (int)uVar8) || ((uVar8 == (uint)uVar2 && (iVar3 < iVar7)))) {
uVar6 = uVar1 & 0xffffffff;
uVar5 = (ulong)uVar10;
uVar2 = (ulong)uVar8;
iVar7 = iVar3;
}
in_RDX = in_RDX + 1;
} while (in_RDX != in_RCX);
uVar2 = uVar6 | uVar5 << 0x20;
}
return uVar2;
}
| |
50,029 | minja::Parser::parseIfExpression() | monkey531[P]llama/common/minja.hpp | std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
} | O2 | cpp | minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x61824
cmpq $0x0, (%r15)
je 0x61b3f
leaq 0x9d785(%rip), %rax # 0xff1d8
movb (%rax), %al
testb %al, %al
je 0x61b6f
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0x9d74d(%rip), %rdx # 0xff1b8
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x605b4
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %r15
callq 0x24208
testq %r15, %r15
je 0x61af2
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x603ce
movq %rsp, %r14
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x7151c
leaq 0x28(%rsp), %rdi
callq 0x4f7fe
movq (%r14), %rax
testq %rax, %rax
jne 0x61af6
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %r14
leaq 0x52e42(%rip), %rsi # 0xb4914
movq %rax, %rdi
callq 0x23340
movq 0x9c50f(%rip), %rsi # 0xfdff0
movq 0x9c470(%rip), %rdx # 0xfdf58
movq %r14, %rdi
callq 0x23f30
jmp 0x61b6f
movq (%rsp), %rax
leaq 0x18(%rsp), %r14
movaps -0x8(%r14), %xmm0
andq $0x0, (%r14)
andq $0x0, -0x8(%r14)
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
andq $0x0, (%rdi)
movq %rax, 0x18(%rbx)
andq $0x0, -0x8(%rdi)
callq 0x4f7fe
movq %r14, %rdi
callq 0x4f7fe
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %r14
leaq 0x52d9e(%rip), %rsi # 0xb48ef
movq %rax, %rdi
callq 0x23340
movq 0x9c490(%rip), %rsi # 0xfdff0
movq 0x9c3f1(%rip), %rdx # 0xfdf58
movq %r14, %rdi
callq 0x23f30
leaq 0x9d662(%rip), %rdi # 0xff1d8
callq 0x24040
testl %eax, %eax
je 0x61a5d
leaq 0x9d62e(%rip), %rdi # 0xff1b8
leaq 0x52d7c(%rip), %rsi # 0xb490d
pushq $0x10
popq %rdx
callq 0x46350
leaq -0x1b62a(%rip), %rdi # 0x46576
leaq 0x9d611(%rip), %rsi # 0xff1b8
leaq 0x9cd5a(%rip), %rdx # 0xfe908
callq 0x237e0
leaq 0x9d61e(%rip), %rdi # 0xff1d8
callq 0x23600
jmp 0x61a5d
movq %rax, %rbx
leaq 0x9d60a(%rip), %rdi # 0xff1d8
callq 0x235f0
jmp 0x61c05
jmp 0x61bf8
movq %rax, %rbx
movq %r14, %rdi
callq 0x236b0
jmp 0x61bfb
movq %rax, %rbx
jmp 0x61c05
movq %rax, %rbx
movq %r14, %rdi
callq 0x236b0
jmp 0x61c05
jmp 0x61bf8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4f7fe
leaq 0x18(%rsp), %rdi
callq 0x4f7fe
movq %rbx, %rdi
callq 0x23fd0
| _ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+58h+var_48]
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_61B3F
lea rax, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
mov al, [rax]
test al, al
jz loc_61B6F
loc_61A5D:
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+58h+var_38]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+58h+var_38]; void *
mov r15, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15, r15
jz short loc_61AF2
lea rdi, [rsp+58h+var_38]; this
push 1
pop rdx
mov rsi, r14; bool
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov r14, rsp
lea rsi, [rsp+58h+var_38]
mov rdi, r14
call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+58h+var_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, [r14]
test rax, rax
jnz short loc_61AF6
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedElseEx; "Expected 'else' 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, r14; void *
call ___cxa_throw
jmp short loc_61B6F
loc_61AF2:
mov rax, qword ptr [rsp+58h+var_58]
loc_61AF6:
lea r14, [rsp+58h+var_40]
movaps xmm0, xmmword ptr [r14-8]
and qword ptr [r14], 0
and qword ptr [r14-8], 0
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
lea rdi, [rsp+58h+var_58+8]
mov rax, [rdi]
and qword ptr [rdi], 0
mov [rbx+18h], rax
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 rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
loc_61B3F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition 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, r14; void *
call ___cxa_throw
loc_61B6F:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_61A5D
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\b"
push 10h
pop rdx
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, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_61A5D
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_61C05
jmp short loc_61BF8
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_61BFB
mov rbx, rax
jmp short loc_61C05
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_61C05
jmp short $+2
loc_61BF8:
mov rbx, rax
loc_61BFB:
lea rdi, [rsp+arg_0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_61C05:
lea rdi, [rsp+arg_10]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, _QWORD *a2)
{
long long v2; // r15
long long v3; // rax
std::runtime_error *v4; // r14
__int128 v5; // xmm0
long long v6; // rax
std::runtime_error *exception; // r14
__int128 v9; // [rsp+0h] [rbp-58h] BYREF
__int128 v10; // [rsp+10h] [rbp-48h] BYREF
long long v11; // [rsp+20h] [rbp-38h] BYREF
_QWORD v12[6]; // [rsp+28h] [rbp-30h] BYREF
minja::Parser::parseLogicalOr((minja::Parser *)&v10, a2);
if ( !(_QWORD)v10 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition 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::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
(long long)"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
v9 = 0LL;
minja::Parser::consumeToken(
&v11,
(long long)a2,
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
1u);
v2 = v12[0];
std::string::~string(&v11);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v11, a2, 1);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(&v9, &v11);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v12);
v3 = v9;
if ( !(_QWORD)v9 )
{
v4 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v4, "Expected 'else' expression");
__cxa_throw(
v4,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = v9;
}
v5 = v10;
v10 = 0uLL;
*(_OWORD *)this = v5;
*((_QWORD *)this + 2) = v3;
v6 = *((_QWORD *)&v9 + 1);
*((_QWORD *)&v9 + 1) = 0LL;
*((_QWORD *)this + 3) = v6;
*(_QWORD *)&v9 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v9 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v10 + 1);
return this;
}
| parseIfExpression:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV RDI,R15
CALL 0x00161824
CMP qword ptr [R15],0x0
JZ 0x00161b3f
LEA RAX,[0x1ff1d8]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00161b6f
LAB_00161a5d:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
LAB_00161a64:
LEA RDX,[0x1ff1b8]
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RCX
MOV RSI,R14
CALL 0x001605b4
LEA RDI,[RSP + 0x20]
MOV R15,qword ptr [RDI + 0x8]
CALL 0x00124208
TEST R15,R15
JZ 0x00161af2
LAB_00161a8e:
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RDX
MOV RSI,R14
CALL 0x001603ce
LAB_00161a9e:
MOV R14,RSP
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0017151c
LEA RDI,[RSP + 0x28]
CALL 0x0014f7fe
MOV RAX,qword ptr [R14]
TEST RAX,RAX
JNZ 0x00161af6
PUSH 0x10
POP RDI
CALL 0x00123480
MOV R14,RAX
LAB_00161acb:
LEA RSI,[0x1b4914]
MOV RDI,RAX
CALL 0x00123340
LAB_00161ada:
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,R14
CALL 0x00123f30
LAB_00161af2:
MOV RAX,qword ptr [RSP]
LAB_00161af6:
LEA R14,[RSP + 0x18]
MOVAPS XMM0,xmmword ptr [R14 + -0x8]
AND qword ptr [R14],0x0
AND qword ptr [R14 + -0x8],0x0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],RAX
LEA RDI,[RSP + 0x8]
MOV RAX,qword ptr [RDI]
AND qword ptr [RDI],0x0
MOV qword ptr [RBX + 0x18],RAX
AND qword ptr [RDI + -0x8],0x0
CALL 0x0014f7fe
MOV RDI,R14
CALL 0x0014f7fe
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
LAB_00161b3f:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV R14,RAX
LAB_00161b4a:
LEA RSI,[0x1b48ef]
MOV RDI,RAX
CALL 0x00123340
LAB_00161b59:
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,R14
CALL 0x00123f30
LAB_00161b6f:
LEA RDI,[0x1ff1d8]
CALL 0x00124040
TEST EAX,EAX
JZ 0x00161a5d
LAB_00161b83:
LEA RDI,[0x1ff1b8]
LEA RSI,[0x1b490d]
PUSH 0x10
POP RDX
CALL 0x00146350
LAB_00161b99:
LEA RDI,[0x146576]
LEA RSI,[0x1ff1b8]
LEA RDX,[0x1fe908]
CALL 0x001237e0
LEA RDI,[0x1ff1d8]
CALL 0x00123600
JMP 0x00161a5d
|
/* minja::Parser::parseIfExpression() */
void minja::Parser::parseIfExpression(void)
{
long lVar1;
long lVar2;
long lVar3;
int iVar4;
runtime_error *prVar5;
long *in_RDI;
long local_58;
long lStack_50;
long local_48;
long lStack_40;
string local_38 [8];
long local_30 [3];
parseLogicalOr();
if (local_48 == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00161b4a to 00161b58 has its CatchHandler @ 00161be9 */
std::runtime_error::runtime_error(prVar5,"Expected condition expression");
/* try { // try from 00161b59 to 00161b6e has its CatchHandler @ 00161be4 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
if ((parseIfExpression()::else_tok_abi_cxx11_ == '\0') &&
(iVar4 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_), iVar4 != 0)) {
/* try { // try from 00161b83 to 00161b98 has its CatchHandler @ 00161bc4 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_);
}
local_58 = 0;
lStack_50 = 0;
/* try { // try from 00161a64 to 00161a7a has its CatchHandler @ 00161bf8 */
consumeToken(local_38);
std::__cxx11::string::~string(local_38);
if (local_30[0] != 0) {
/* try { // try from 00161a8e to 00161a9d has its CatchHandler @ 00161bf6 */
parseExpression(SUB81(local_38,0));
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *)&local_58,
(__shared_ptr *)local_38);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)local_30);
if (local_58 == 0) {
prVar5 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00161acb to 00161ad9 has its CatchHandler @ 00161bd7 */
std::runtime_error::runtime_error(prVar5,"Expected \'else\' expression");
/* try { // try from 00161ada to 00161aef has its CatchHandler @ 00161bd5 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar5,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
}
lVar3 = lStack_40;
lVar2 = local_48;
lVar1 = lStack_50;
lStack_40 = 0;
local_48 = 0;
*in_RDI = lVar2;
in_RDI[1] = lVar3;
in_RDI[2] = local_58;
lStack_50 = 0;
in_RDI[3] = lVar1;
local_58 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_40);
return;
}
| |
50,030 | minja::Parser::parseIfExpression() | monkey531[P]llama/common/minja.hpp | std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
} | O3 | cpp | minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0x84640
cmpq $0x0, (%r15)
je 0x849b6
leaq 0xa88bf(%rip), %rax # 0x12d1b8
movb (%rax), %al
testb %al, %al
je 0x849e8
leaq 0xa888e(%rip), %rdx # 0x12d198
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x834f2
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r15
cmpq %rax, %rdi
je 0x8493b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1a8f0
testq %r15, %r15
je 0x84995
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x832de
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %r14
testq %rax, %rax
jne 0x8499a
movl $0x10, %edi
callq 0x1a460
movq %rax, %r15
leaq 0x6bf9f(%rip), %rsi # 0xf0914
movq %rax, %rdi
callq 0x1a340
movq 0xa766c(%rip), %rsi # 0x12bff0
movq 0xa75d5(%rip), %rdx # 0x12bf60
movq %r15, %rdi
callq 0x1af30
jmp 0x849e8
xorl %eax, %eax
xorl %r14d, %r14d
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
movq %r14, 0x18(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1a460
movq %rax, %r14
leaq 0x6bf25(%rip), %rsi # 0xf08ef
movq %rax, %rdi
callq 0x1a340
movq 0xa7617(%rip), %rsi # 0x12bff0
movq 0xa7580(%rip), %rdx # 0x12bf60
movq %r14, %rdi
callq 0x1af30
leaq 0xa87c9(%rip), %rdi # 0x12d1b8
callq 0x1b030
testl %eax, %eax
je 0x84903
leaq 0xa8795(%rip), %rdi # 0x12d198
leaq 0x6bf03(%rip), %rsi # 0xf090d
movl $0x10, %edx
callq 0x62324
leaq -0x223f3(%rip), %rdi # 0x62628
leaq 0xa8776(%rip), %rsi # 0x12d198
leaq 0xa7ebf(%rip), %rdx # 0x12c8e8
callq 0x1a7c0
leaq 0xa8783(%rip), %rdi # 0x12d1b8
callq 0x1a5d0
jmp 0x84903
movq %rax, %rbx
leaq 0xa876f(%rip), %rdi # 0x12d1b8
callq 0x1a5c0
jmp 0x84a83
movq %rax, %rbx
jmp 0x84a60
movq %rax, %rbx
movq %r15, %rdi
callq 0x1a690
testq %r14, %r14
je 0x84a83
movq %r14, %rdi
callq 0x6d396
jmp 0x84a83
jmp 0x84a80
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a690
jmp 0x84a83
jmp 0x84a80
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x84a92
callq 0x6d396
movq %rbx, %rdi
callq 0x1afd0
| _ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov r15, rsp
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_849B6
lea rax, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
mov al, [rax]
test al, al
jz loc_849E8
loc_84903:
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+48h+var_38]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
mov r15, [rax-8]
cmp rdi, rax
jz short loc_8493B
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8493B:
test r15, r15
jz short loc_84995
lea rdi, [rsp+48h+var_38]; this
mov rsi, r14; bool
mov edx, 1
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rax, [rsp+48h+var_38]
mov r14, [rsp+48h+var_30]
test rax, rax
jnz short loc_8499A
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedElseEx; "Expected 'else' 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:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_849E8
loc_84995:
xor eax, eax
xor r14d, r14d
loc_8499A:
movaps xmm0, [rsp+48h+var_48]
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
mov [rbx+18h], r14
mov rax, rbx
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_849B6:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition 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:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_849E8:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_84903
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\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, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_84903
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_84A83
mov rbx, rax
jmp short loc_84A60
mov rbx, rax
mov rdi, r15; void *
call ___cxa_free_exception
loc_84A60:
test r14, r14
jz short loc_84A83
mov rdi, r14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_84A83
jmp short loc_84A80
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_84A83
jmp short $+2
loc_84A80:
mov rbx, rax
loc_84A83:
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_84A92
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_84A92:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, long long *a2)
{
long long v2; // r15
long long *v3; // rax
long long v4; // r14
std::runtime_error *v5; // r15
std::runtime_error *exception; // r14
__int128 v8; // [rsp+0h] [rbp-48h] BYREF
long long *v9; // [rsp+10h] [rbp-38h] BYREF
long long v10; // [rsp+18h] [rbp-30h]
long long v11; // [rsp+20h] [rbp-28h] BYREF
minja::Parser::parseLogicalOr((volatile signed __int32 **)&v8, a2);
if ( !(_QWORD)v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition 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::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
(long long)"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)&v9,
(long long)a2,
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
1u);
v2 = v10;
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v9, a2, 1);
v3 = v9;
v4 = v10;
if ( !v9 )
{
v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v5, "Expected 'else' expression");
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = 0LL;
v4 = 0LL;
}
*(_OWORD *)this = v8;
*((_QWORD *)this + 2) = v3;
*((_QWORD *)this + 3) = v4;
return this;
}
| parseIfExpression:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV R15,RSP
MOV RDI,R15
CALL 0x00184640
CMP qword ptr [R15],0x0
JZ 0x001849b6
LEA RAX,[0x22d1b8]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001849e8
LAB_00184903:
LEA RDX,[0x22d198]
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV ECX,0x1
CALL 0x001834f2
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
MOV R15,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0018493b
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0011a8f0
LAB_0018493b:
TEST R15,R15
JZ 0x00184995
LAB_00184940:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV EDX,0x1
CALL 0x001832de
LAB_00184952:
MOV RAX,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x18]
TEST RAX,RAX
JNZ 0x0018499a
MOV EDI,0x10
CALL 0x0011a460
MOV R15,RAX
LAB_0018496e:
LEA RSI,[0x1f0914]
MOV RDI,RAX
CALL 0x0011a340
LAB_0018497d:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R15
CALL 0x0011af30
LAB_00184995:
XOR EAX,EAX
XOR R14D,R14D
LAB_0018499a:
MOVAPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],R14
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_001849b6:
MOV EDI,0x10
CALL 0x0011a460
MOV R14,RAX
LAB_001849c3:
LEA RSI,[0x1f08ef]
MOV RDI,RAX
CALL 0x0011a340
LAB_001849d2:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R14
CALL 0x0011af30
LAB_001849e8:
LEA RDI,[0x22d1b8]
CALL 0x0011b030
TEST EAX,EAX
JZ 0x00184903
LAB_001849fc:
LEA RDI,[0x22d198]
LEA RSI,[0x1f090d]
MOV EDX,0x10
CALL 0x00162324
LAB_00184a14:
LEA RDI,[0x162628]
LEA RSI,[0x22d198]
LEA RDX,[0x22c8e8]
CALL 0x0011a7c0
LEA RDI,[0x22d1b8]
CALL 0x0011a5d0
JMP 0x00184903
|
/* minja::Parser::parseIfExpression() */
void minja::Parser::parseIfExpression(void)
{
long lVar1;
int iVar2;
runtime_error *prVar3;
long *in_RDI;
long local_48;
long lStack_40;
long *local_38;
long local_30;
long local_28 [2];
parseLogicalOr();
if (local_48 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001849c3 to 001849d1 has its CatchHandler @ 00184a71 */
std::runtime_error::runtime_error(prVar3,"Expected condition expression");
/* try { // try from 001849d2 to 001849e7 has its CatchHandler @ 00184a6f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
if (parseIfExpression()::else_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 001849fc to 00184a13 has its CatchHandler @ 00184a3f */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_);
}
}
/* try { // try from 00184903 to 0018491b has its CatchHandler @ 00184a80 */
consumeToken(&local_38);
lVar1 = local_30;
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
if (lVar1 == 0) {
local_38 = (long *)0x0;
local_30 = 0;
}
else {
/* try { // try from 00184940 to 00184951 has its CatchHandler @ 00184a7e */
parseExpression(SUB81(&local_38,0));
if (local_38 == (long *)0x0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018496e to 0018497c has its CatchHandler @ 00184a55 */
std::runtime_error::runtime_error(prVar3,"Expected \'else\' expression");
/* try { // try from 0018497d to 00184992 has its CatchHandler @ 00184a50 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
}
*in_RDI = local_48;
in_RDI[1] = lStack_40;
in_RDI[2] = (long)local_38;
in_RDI[3] = local_30;
return;
}
| |
50,031 | ggml_threadpool_params_from_cpu_params(cpu_params const&) | monkey531[P]llama/common/common.cpp | struct ggml_threadpool_params ggml_threadpool_params_from_cpu_params(const cpu_params & params) {
struct ggml_threadpool_params tpp;
ggml_threadpool_params_init(&tpp, params.n_threads); // setup the defaults
if (params.mask_valid) {
std::memcpy(&tpp.cpumask, ¶ms.cpumask, GGML_MAX_N_THREADS);
}
tpp.prio = params.priority;
tpp.poll = params.poll;
tpp.strict_cpu = params.strict_cpu;
return tpp;
} | O3 | cpp | ggml_threadpool_params_from_cpu_params(cpu_params const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %esi
callq 0x1a7e0
cmpb $0x1, 0x204(%r14)
jne 0x756ef
leaq 0x4(%r14), %rsi
movl $0x200, %edx # imm = 0x200
movq %rbx, %rdi
callq 0x1a750
movl 0x208(%r14), %eax
movl %eax, 0x204(%rbx)
movl 0x210(%r14), %eax
movl %eax, 0x208(%rbx)
movb 0x20c(%r14), %al
movb %al, 0x20c(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _Z38ggml_threadpool_params_from_cpu_paramsRK10cpu_params:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov esi, [rsi]
call _ggml_threadpool_params_init
cmp byte ptr [r14+204h], 1
jnz short loc_756EF
lea rsi, [r14+4]
mov edx, 200h
mov rdi, rbx
call _memcpy
loc_756EF:
mov eax, [r14+208h]
mov [rbx+204h], eax
mov eax, [r14+210h]
mov [rbx+208h], eax
mov al, [r14+20Ch]
mov [rbx+20Ch], al
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
| long long ggml_threadpool_params_from_cpu_params(long long a1, unsigned int *a2)
{
ggml_threadpool_params_init(a1, *a2);
if ( *((_BYTE *)a2 + 516) == 1 )
memcpy(a1, a2 + 1, 512LL);
*(_DWORD *)(a1 + 516) = a2[130];
*(_DWORD *)(a1 + 520) = a2[132];
*(_BYTE *)(a1 + 524) = *((_BYTE *)a2 + 524);
return a1;
}
| ggml_threadpool_params_from_cpu_params:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV ESI,dword ptr [RSI]
CALL 0x0011a7e0
CMP byte ptr [R14 + 0x204],0x1
JNZ 0x001756ef
LEA RSI,[R14 + 0x4]
MOV EDX,0x200
MOV RDI,RBX
CALL 0x0011a750
LAB_001756ef:
MOV EAX,dword ptr [R14 + 0x208]
MOV dword ptr [RBX + 0x204],EAX
MOV EAX,dword ptr [R14 + 0x210]
MOV dword ptr [RBX + 0x208],EAX
MOV AL,byte ptr [R14 + 0x20c]
MOV byte ptr [RBX + 0x20c],AL
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* ggml_threadpool_params_from_cpu_params(cpu_params const&) */
cpu_params * ggml_threadpool_params_from_cpu_params(cpu_params *param_1)
{
int4 *in_RSI;
ggml_threadpool_params_init(param_1,*in_RSI);
if (*(char *)(in_RSI + 0x81) == '\x01') {
memcpy(param_1,in_RSI + 1,0x200);
}
*(int4 *)(param_1 + 0x204) = in_RSI[0x82];
*(int4 *)(param_1 + 0x208) = in_RSI[0x84];
param_1[0x20c] = *(cpu_params *)(in_RSI + 0x83);
return param_1;
}
| |
50,032 | mysql_local_infile_init | eloqsql/libmariadb/libmariadb/ma_loaddata.c | static
int mysql_local_infile_init(void **ptr, const char *filename, void *userdata)
{
MYSQL_INFILE_INFO *info;
MYSQL *mysql= (MYSQL *)userdata;
info = (MYSQL_INFILE_INFO *)malloc(sizeof(MYSQL_INFILE_INFO));
if (!info) {
return(1);
}
memset(info, 0, sizeof(MYSQL_INFILE_INFO));
*ptr = info;
info->filename = filename;
info->fp= ma_open(filename, "rb", mysql);
if (!info->fp)
{
/* error handling is done via mysql_local_infile_error function, so we
need to copy error to info */
if (mysql_errno(mysql) && !info->error_no)
{
info->error_no= mysql_errno(mysql);
ma_strmake(info->error_msg, mysql_error(mysql), MYSQL_ERRMSG_SIZE);
}
else
{
info->error_no = errno;
snprintf((char *)info->error_msg, sizeof(info->error_msg),
CER(CR_FILE_NOT_FOUND), filename, info->error_no);
}
return(1);
}
return(0);
} | O3 | c | mysql_local_infile_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r13
movl $0x1, %edi
movl $0x218, %esi # imm = 0x218
callq 0x132e0
movl $0x1, %r12d
testq %rax, %rax
je 0x26405
movq %rax, %rbx
movq %rax, (%r13)
movq %r14, 0x210(%rax)
leaq 0x13aae(%rip), %rsi # 0x39e1e
movq %r14, %rdi
movq %r15, %rdx
callq 0x2b51c
movq %rax, (%rbx)
xorl %r12d, %r12d
testq %rax, %rax
jne 0x26405
movq %r15, %rdi
callq 0x1ff45
testl %eax, %eax
je 0x26398
cmpl $0x0, 0x8(%rbx)
je 0x263d8
callq 0x13060
movl (%rax), %eax
movl %eax, 0x8(%rbx)
addq $0xc, %rbx
leaq 0x28bf3(%rip), %rcx # 0x4efa0
movq 0x20(%rcx), %r8
movl %eax, (%rsp)
movl $0x1, %r12d
movl $0x201, %esi # imm = 0x201
movl $0x201, %ecx # imm = 0x201
movq %rbx, %rdi
movl $0x1, %edx
movq %r14, %r9
xorl %eax, %eax
callq 0x132c0
jmp 0x26405
movq %r15, %rdi
callq 0x1ff45
movl %eax, 0x8(%rbx)
addq $0xc, %rbx
movq %r15, %rdi
callq 0x1ff5a
movl $0x200, %edx # imm = 0x200
movq %rbx, %rdi
movq %rax, %rsi
callq 0x28a9f
movl $0x1, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mysql_local_infile_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdx
mov r14, rsi
mov r13, rdi
mov edi, 1
mov esi, 218h
call _calloc
mov r12d, 1
test rax, rax
jz loc_26405
mov rbx, rax
mov [r13+0], rax
mov [rax+210h], r14
lea rsi, aRb; "rb"
mov rdi, r14
mov rdx, r15
call ma_open
mov [rbx], rax
xor r12d, r12d
test rax, rax
jnz short loc_26405
mov rdi, r15
call mysql_errno
test eax, eax
jz short loc_26398
cmp dword ptr [rbx+8], 0
jz short loc_263D8
loc_26398:
call ___errno_location
mov eax, [rax]
mov [rbx+8], eax
add rbx, 0Ch
lea rcx, mariadb_client_errors
mov r8, [rcx+20h]
mov [rsp+30h+var_30], eax
mov r12d, 1
mov esi, 201h
mov ecx, 201h
mov rdi, rbx
mov edx, 1
mov r9, r14
xor eax, eax
call ___snprintf_chk
jmp short loc_26405
loc_263D8:
mov rdi, r15
call mysql_errno
mov [rbx+8], eax
add rbx, 0Ch
mov rdi, r15
call mysql_error
mov edx, 200h
mov rdi, rbx
mov rsi, rax
call ma_strmake
mov r12d, 1
loc_26405:
mov eax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mysql_local_infile_init(long long *a1, long long a2, long long a3)
{
long long v3; // rax
long long v5; // rax
unsigned int v6; // r12d
long long v7; // rbx
long long v8; // rax
int v9; // eax
char *v10; // rax
long long v12; // [rsp+0h] [rbp-30h]
HIDWORD(v12) = HIDWORD(v3);
v5 = calloc(1LL, 536LL);
v6 = 1;
if ( v5 )
{
v7 = v5;
*a1 = v5;
*(_QWORD *)(v5 + 528) = a2;
v8 = ma_open(a2, "rb", a3);
*(_QWORD *)v7 = v8;
v6 = 0;
if ( !v8 )
{
if ( (unsigned int)mysql_errno(a3) && !*(_DWORD *)(v7 + 8) )
{
*(_DWORD *)(v7 + 8) = mysql_errno(a3);
v10 = mysql_error(a3);
ma_strmake(v7 + 12, v10, 512LL);
return 1;
}
else
{
v9 = *(_DWORD *)__errno_location(a3);
*(_DWORD *)(v7 + 8) = v9;
LODWORD(v12) = v9;
v6 = 1;
__snprintf_chk(v7 + 12, 513LL, 1LL, 513LL, mariadb_client_errors[4], a2, v12);
}
}
}
return v6;
}
| mysql_local_infile_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV R14,RSI
MOV R13,RDI
MOV EDI,0x1
MOV ESI,0x218
CALL 0x001132e0
MOV R12D,0x1
TEST RAX,RAX
JZ 0x00126405
MOV RBX,RAX
MOV qword ptr [R13],RAX
MOV qword ptr [RAX + 0x210],R14
LEA RSI,[0x139e1e]
MOV RDI,R14
MOV RDX,R15
CALL 0x0012b51c
MOV qword ptr [RBX],RAX
XOR R12D,R12D
TEST RAX,RAX
JNZ 0x00126405
MOV RDI,R15
CALL 0x0011ff45
TEST EAX,EAX
JZ 0x00126398
CMP dword ptr [RBX + 0x8],0x0
JZ 0x001263d8
LAB_00126398:
CALL 0x00113060
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBX + 0x8],EAX
ADD RBX,0xc
LEA RCX,[0x14efa0]
MOV R8,qword ptr [RCX + 0x20]
MOV dword ptr [RSP],EAX
MOV R12D,0x1
MOV ESI,0x201
MOV ECX,0x201
MOV RDI,RBX
MOV EDX,0x1
MOV R9,R14
XOR EAX,EAX
CALL 0x001132c0
JMP 0x00126405
LAB_001263d8:
MOV RDI,R15
CALL 0x0011ff45
MOV dword ptr [RBX + 0x8],EAX
ADD RBX,0xc
MOV RDI,R15
CALL 0x0011ff5a
MOV EDX,0x200
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00128a9f
MOV R12D,0x1
LAB_00126405:
MOV EAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 mysql_local_infile_init(int8 *param_1,long param_2,int8 param_3)
{
int iVar1;
int4 uVar2;
int8 in_RAX;
long *plVar3;
long lVar4;
int *piVar5;
int8 uVar6;
uVar2 = (int4)((ulong)in_RAX >> 0x20);
plVar3 = (long *)calloc(1,0x218);
uVar6 = 1;
if (plVar3 != (long *)0x0) {
*param_1 = plVar3;
plVar3[0x42] = param_2;
lVar4 = ma_open(param_2,&DAT_00139e1e,param_3);
*plVar3 = lVar4;
uVar6 = 0;
if (lVar4 == 0) {
iVar1 = mysql_errno(param_3);
if ((iVar1 == 0) || ((int)plVar3[1] != 0)) {
piVar5 = __errno_location();
iVar1 = *piVar5;
*(int *)(plVar3 + 1) = iVar1;
uVar6 = 1;
__snprintf_chk((long)plVar3 + 0xc,0x201,1,0x201,mariadb_client_errors._32_8_,param_2,
CONCAT44(uVar2,iVar1));
}
else {
uVar2 = mysql_errno(param_3);
*(int4 *)(plVar3 + 1) = uVar2;
uVar6 = mysql_error(param_3);
ma_strmake((long)plVar3 + 0xc,uVar6,0x200);
uVar6 = 1;
}
}
}
return uVar6;
}
| |
50,033 | my_uni_utf16le | eloqsql/strings/ctype-ucs2.c | static int
my_uni_utf16le(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
uint32 first, second, total;
if (wc < MY_UTF16_SURROGATE_HIGH_FIRST ||
(wc > MY_UTF16_SURROGATE_LOW_LAST &&
wc <= 0xFFFF))
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
int2store(s, wc);
return 2; /* [0000-D7FF,E000-FFFF] */
}
if (wc < 0xFFFF || wc > 0x10FFFF)
return MY_CS_ILUNI; /* [D800-DFFF,10FFFF+] */
if (s + 4 > e)
return MY_CS_TOOSMALL4;
wc-= 0x10000;
first= (0xD800 | ((wc >> 10) & 0x3FF));
second= (0xDC00 | (wc & 0x3FF));
total= first | (second << 16);
int4store(s, total);
return 4; /* [010000-10FFFF] */
} | O0 | c | my_uni_utf16le:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0xd800, -0x18(%rbp) # imm = 0xD800
jb 0xb1812
cmpq $0xdfff, -0x18(%rbp) # imm = 0xDFFF
jbe 0xb1850
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
ja 0xb1850
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0xb182c
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0xb18e2
jmp 0xb182e
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movw %ax, %cx
movq -0x40(%rbp), %rax
movw %cx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0xb18e2
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jb 0xb1864
cmpq $0x10ffff, -0x18(%rbp) # imm = 0x10FFFF
jbe 0xb186d
movl $0x0, -0x4(%rbp)
jmp 0xb18e2
movq -0x20(%rbp), %rax
addq $0x4, %rax
cmpq -0x28(%rbp), %rax
jbe 0xb1884
movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98
jmp 0xb18e2
movq -0x18(%rbp), %rax
subq $0x10000, %rax # imm = 0x10000
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
shrq $0xa, %rax
andq $0x3ff, %rax # imm = 0x3FF
orq $0xd800, %rax # imm = 0xD800
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
andq $0x3ff, %rax # imm = 0x3FF
orq $0xdc00, %rax # imm = 0xDC00
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
movl -0x30(%rbp), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x34(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, (%rax)
movl $0x4, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
| my_uni_utf16le:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
cmp [rbp+var_18], 0D800h
jb short loc_B1812
cmp [rbp+var_18], 0DFFFh
jbe short loc_B1850
cmp [rbp+var_18], 0FFFFh
ja short loc_B1850
loc_B1812:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_B182C
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_B18E2
loc_B182C:
jmp short $+2
loc_B182E:
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov cx, ax
mov rax, [rbp+var_40]
mov [rax], cx
mov [rbp+var_4], 2
jmp loc_B18E2
loc_B1850:
cmp [rbp+var_18], 0FFFFh
jb short loc_B1864
cmp [rbp+var_18], offset unk_10FFFF
jbe short loc_B186D
loc_B1864:
mov [rbp+var_4], 0
jmp short loc_B18E2
loc_B186D:
mov rax, [rbp+var_20]
add rax, 4
cmp rax, [rbp+var_28]
jbe short loc_B1884
mov [rbp+var_4], 0FFFFFF98h
jmp short loc_B18E2
loc_B1884:
mov rax, [rbp+var_18]
sub rax, 10000h
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
shr rax, 0Ah
and rax, 3FFh
or rax, 0D800h
mov [rbp+var_2C], eax
mov rax, [rbp+var_18]
and rax, 3FFh
or rax, 0DC00h
mov [rbp+var_30], eax
mov eax, [rbp+var_2C]
mov ecx, [rbp+var_30]
shl ecx, 10h
or eax, ecx
mov [rbp+var_34], eax
mov rax, [rbp+var_20]
mov [rbp+var_48], rax
mov ecx, [rbp+var_34]
mov rax, [rbp+var_48]
mov [rax], ecx
mov [rbp+var_4], 4
loc_B18E2:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_uni_utf16le(long long a1, unsigned long long a2, _DWORD *a3, unsigned long long a4)
{
if ( a2 >= 0xD800 && (a2 <= 0xDFFF || a2 > 0xFFFF) )
{
if ( a2 >= 0xFFFF && a2 <= (unsigned long long)&unk_10FFFF )
{
if ( (unsigned long long)(a3 + 1) <= a4 )
{
*a3 = ((a2 & 0x3FF | 0xDC00) << 16) | ((a2 - 0x10000) >> 10) & 0x3FF | 0xD800;
return 4;
}
else
{
return (unsigned int)-104;
}
}
else
{
return 0;
}
}
else if ( (unsigned long long)a3 + 2 <= a4 )
{
*(_WORD *)a3 = a2;
return 2;
}
else
{
return (unsigned int)-102;
}
}
| my_uni_utf16le:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
CMP qword ptr [RBP + -0x18],0xd800
JC 0x001b1812
CMP qword ptr [RBP + -0x18],0xdfff
JBE 0x001b1850
CMP qword ptr [RBP + -0x18],0xffff
JA 0x001b1850
LAB_001b1812:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001b182c
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x001b18e2
LAB_001b182c:
JMP 0x001b182e
LAB_001b182e:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x40]
MOV word ptr [RAX],CX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001b18e2
LAB_001b1850:
CMP qword ptr [RBP + -0x18],0xffff
JC 0x001b1864
CMP qword ptr [RBP + -0x18],0x10ffff
JBE 0x001b186d
LAB_001b1864:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001b18e2
LAB_001b186d:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x4
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001b1884
MOV dword ptr [RBP + -0x4],0xffffff98
JMP 0x001b18e2
LAB_001b1884:
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0x10000
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0xa
AND RAX,0x3ff
OR RAX,0xd800
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3ff
OR RAX,0xdc00
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + -0x30]
SHL ECX,0x10
OR EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x48],RAX
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0x4
LAB_001b18e2:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_uni_utf16le(int8 param_1,ulong param_2,uint *param_3,uint *param_4)
{
int4 local_c;
if ((param_2 < 0xd800) || ((0xdfff < param_2 && (param_2 < 0x10000)))) {
if (param_4 < (uint *)((long)param_3 + 2)) {
local_c = 0xffffff9a;
}
else {
*(short *)param_3 = (short)param_2;
local_c = 2;
}
}
else if ((param_2 < 0xffff) || (0x10ffff < param_2)) {
local_c = 0;
}
else if (param_4 < param_3 + 1) {
local_c = 0xffffff98;
}
else {
*param_3 = (uint)(param_2 - 0x10000 >> 10) & 0x3ff | 0xd800 |
((uint)(param_2 - 0x10000) & 0x3ff | 0xdc00) << 0x10;
local_c = 4;
}
return local_c;
}
| |
50,034 | minja::LiteralExpr::~LiteralExpr() | monkey531[P]llama/common/minja.hpp | LiteralExpr(const Location & location, const Value& v)
: Expression(location), value(v) {} | O3 | cpp | minja::LiteralExpr::~LiteralExpr():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x9cb1e(%rip), %rax # 0x12a538
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x60(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movq %r14, %rdi
callq 0x5d972
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x8da45
callq 0x6d396
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x8da53
callq 0x6d396
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x8da61
callq 0x6d396
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x8da96
movq 0x9e517(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x8da81
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x8da8b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x8da96
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x9c91b(%rip), %rax # 0x12a3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x8dab9
popq %rbx
popq %r14
jmp 0x6d396
popq %rbx
popq %r14
retq
nop
| _ZN5minja11LiteralExprD2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, _ZTVN5minja11LiteralExprE; `vtable for'minja::LiteralExpr
add rax, 10h
mov [rdi], rax
lea r14, [rdi+60h]
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+58h]
test rdi, rdi
jz short loc_8DA45
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8DA45:
mov rdi, [rbx+48h]
test rdi, rdi
jz short loc_8DA53
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8DA53:
mov rdi, [rbx+38h]
test rdi, rdi
jz short loc_8DA61
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8DA61:
mov rdi, [rbx+28h]
test rdi, rdi
jz short loc_8DA96
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8DA81
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_8DA8B
loc_8DA81:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_8DA8B:
cmp eax, 1
jnz short loc_8DA96
mov rax, [rdi]
call qword ptr [rax+18h]
loc_8DA96:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
add rsp, 8
test rdi, rdi
jz short loc_8DAB9
pop rbx
pop r14
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8DAB9:
pop rbx
pop r14
retn
| void minja::LiteralExpr::~LiteralExpr(minja::LiteralExpr *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
volatile signed __int32 *v4; // rdi
volatile signed __int32 *v5; // rdi
signed __int32 v6; // eax
volatile signed __int32 *v7; // rdi
*(_QWORD *)this = &`vtable for'minja::LiteralExpr + 2;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 96);
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((char *)this + 96);
v2 = (volatile signed __int32 *)*((_QWORD *)this + 11);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
v3 = (volatile signed __int32 *)*((_QWORD *)this + 9);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
v4 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v4 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4);
v5 = (volatile signed __int32 *)*((_QWORD *)this + 5);
if ( v5 )
{
if ( _libc_single_threaded )
{
v6 = *((_DWORD *)v5 + 3);
*((_DWORD *)v5 + 3) = v6 - 1;
}
else
{
v6 = _InterlockedExchangeAdd(v5 + 3, 0xFFFFFFFF);
}
if ( v6 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v5 + 24LL))(v5, 0LL);
}
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v7 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v7 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7);
}
| ~LiteralExpr:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x22a538]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
LEA R14,[RDI + 0x60]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158484
MOV RDI,R14
CALL 0x0015d972
MOV RDI,qword ptr [RBX + 0x58]
TEST RDI,RDI
JZ 0x0018da45
CALL 0x0016d396
LAB_0018da45:
MOV RDI,qword ptr [RBX + 0x48]
TEST RDI,RDI
JZ 0x0018da53
CALL 0x0016d396
LAB_0018da53:
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JZ 0x0018da61
CALL 0x0016d396
LAB_0018da61:
MOV RDI,qword ptr [RBX + 0x28]
TEST RDI,RDI
JZ 0x0018da96
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0018da81
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0018da8b
LAB_0018da81:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0018da8b:
CMP EAX,0x1
JNZ 0x0018da96
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0018da96:
LEA RAX,[0x22a3b8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
ADD RSP,0x8
TEST RDI,RDI
JZ 0x0018dab9
POP RBX
POP R14
JMP 0x0016d396
LAB_0018dab9:
POP RBX
POP R14
RET
|
/* minja::LiteralExpr::~LiteralExpr() */
void __thiscall minja::LiteralExpr::~LiteralExpr(LiteralExpr *this)
{
int *piVar1;
long *plVar2;
int iVar3;
*(int ***)this = &PTR_do_evaluate_0022a548;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)(this + 0x60),0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)(this + 0x60));
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x58) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x58));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x48) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x48));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
plVar2 = *(long **)(this + 0x28);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*plVar2 + 0x18))();
}
}
*(int ***)this = &PTR___cxa_pure_virtual_0022a3c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
| |
50,035 | my_read | eloqsql/mysys/my_read.c | size_t my_read(File Filedes, uchar *Buffer, size_t Count, myf MyFlags)
{
size_t readbytes, save_count= 0;
DBUG_ENTER("my_read");
DBUG_PRINT("my",("fd: %d Buffer: %p Count: %lu MyFlags: %lu",
Filedes, Buffer, (ulong) Count, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP)))
MyFlags|= my_global_flags;
for (;;)
{
errno= 0; /* Linux, Windows don't reset this on EOF/success */
#ifdef _WIN32
readbytes= my_win_read(Filedes, Buffer, Count);
#else
readbytes= read(Filedes, Buffer, Count);
#endif
DBUG_EXECUTE_IF ("simulate_file_read_error",
{
errno= ENOSPC;
readbytes= (size_t) -1;
DBUG_SET("-d,simulate_file_read_error");
DBUG_SET("-d,simulate_my_b_fill_error");
});
if (readbytes != Count)
{
int got_errno= my_errno= errno;
DBUG_PRINT("warning",("Read only %d bytes off %lu from %d, errno: %d",
(int) readbytes, (ulong) Count, Filedes,
got_errno));
if (got_errno == 0 || (readbytes != (size_t) -1 &&
(MyFlags & (MY_NABP | MY_FNABP))))
my_errno= HA_ERR_FILE_TOO_SHORT;
if ((readbytes == 0 || (int) readbytes == -1) && got_errno == EINTR)
{
DBUG_PRINT("debug", ("my_read() was interrupted and returned %ld",
(long) readbytes));
continue; /* Interrupted */
}
/* Do a read retry if we didn't get enough data on first read */
if (readbytes != (size_t) -1 && readbytes != 0 &&
(MyFlags & MY_FULL_IO))
{
Buffer+= readbytes;
Count-= readbytes;
save_count+= readbytes;
continue;
}
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
{
if (readbytes == (size_t) -1)
my_error(EE_READ,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes), got_errno);
else if (MyFlags & (MY_NABP | MY_FNABP))
my_error(EE_EOFERR,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes), got_errno);
}
if (readbytes == (size_t) -1 ||
((MyFlags & (MY_FNABP | MY_NABP)) && !(MyFlags & MY_FULL_IO)))
DBUG_RETURN(MY_FILE_ERROR); /* Return with error */
}
if (MyFlags & (MY_NABP | MY_FNABP))
readbytes= 0; /* Ok on read */
else
readbytes+= save_count;
break;
}
DBUG_RETURN(readbytes);
} | O3 | c | my_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movl %edi, -0x2c(%rbp)
movq $0x0, -0x48(%rbp)
movl $0x0, %r15d
testb $0x1a, %cl
jne 0x3225f
leaq 0x33afbc(%rip), %rax # 0x36d218
movq (%rax), %r15
orq %rcx, %r15
callq 0x24050
movq %rax, -0x50(%rbp)
movl $0x0, (%rax)
movl -0x2c(%rbp), %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x24410
movq %rax, %r14
movl %r15d, %eax
andl $0x6, %eax
movq %rax, -0x38(%rbp)
cmpq %r12, %r14
je 0x32333
movq %r15, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %r15
cmpq $0x0, -0x38(%rbp)
sete %r13b
movl (%r15), %r15d
callq 0x2a59a
movl %r15d, (%rax)
cmpq $-0x1, %r14
sete %al
testl %r15d, %r15d
je 0x322ca
orb %r13b, %al
jne 0x322d5
callq 0x2a59a
movl $0xaf, (%rax)
testq %r14, %r14
sete %al
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
cmpl $0x4, %r15d
sete %al
testb %al, %cl
jne 0x3230e
leaq 0x1(%r14), %rax
cmpq $0x2, %rax
jb 0x32357
movq -0x40(%rbp), %rax
andl $0x200, %eax # imm = 0x200
je 0x32357
addq %r14, %rbx
subq %r14, %r12
addq %r14, -0x48(%rbp)
movq -0x50(%rbp), %r15
movl $0x0, (%r15)
movl -0x2c(%rbp), %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x24410
movq %rax, %r14
cmpq %r12, %rax
jne 0x322a5
movq %r12, %r14
movq -0x48(%rbp), %rcx
addq %r14, %rcx
xorl %eax, %eax
cmpq $0x0, -0x38(%rbp)
cmoveq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rax
testb $0x1a, %al
je 0x323b7
cmpq $-0x1, %r14
je 0x323e4
cmpq $0x0, -0x38(%rbp)
je 0x3241b
movq -0x40(%rbp), %r12
movl %r12d, %ebx
andl $0x440, %ebx # imm = 0x440
orq $0x4, %rbx
movl -0x2c(%rbp), %edi
callq 0x34170
movl $0x9, %edi
movq %rbx, %rsi
movq %rax, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x315bf
btl $0x9, %r12d
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq $-0x1, %rax
jb 0x32336
jmp 0x32348
btl $0x9, %eax
setae %cl
cmpq $0x0, -0x38(%rbp)
setne %dl
movq $-0x1, %rax
cmpq $-0x1, %r14
je 0x32348
andb %cl, %dl
je 0x32336
jmp 0x32348
movq -0x40(%rbp), %rbx
andl $0x440, %ebx # imm = 0x440
orq $0x4, %rbx
movl -0x2c(%rbp), %edi
callq 0x34170
movl $0x2, %edi
movq %rbx, %rsi
movq %rax, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x315bf
movq $-0x1, %rax
jmp 0x32348
movq $0x0, -0x38(%rbp)
jmp 0x32336
| my_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, rdx
mov rbx, rsi
mov [rbp+var_2C], edi
mov [rbp+var_48], 0
mov r15d, 0
test cl, 1Ah
jnz short loc_3225F
lea rax, my_global_flags
mov r15, [rax]
loc_3225F:
or r15, rcx
call ___errno_location
mov [rbp+var_50], rax
mov dword ptr [rax], 0
mov edi, [rbp+var_2C]
mov rsi, rbx
mov rdx, r12
call _read
mov r14, rax
mov eax, r15d
and eax, 6
mov [rbp+var_38], rax
cmp r14, r12
jz loc_32333
mov [rbp+var_40], r15
mov [rbp+var_48], 0
mov r15, [rbp+var_50]
loc_322A5:
cmp [rbp+var_38], 0
setz r13b
mov r15d, [r15]
call _my_thread_var
mov [rax], r15d
cmp r14, 0FFFFFFFFFFFFFFFFh
setz al
test r15d, r15d
jz short loc_322CA
or al, r13b
jnz short loc_322D5
loc_322CA:
call _my_thread_var
mov dword ptr [rax], 0AFh
loc_322D5:
test r14, r14
setz al
cmp r14d, 0FFFFFFFFh
setz cl
or cl, al
cmp r15d, 4
setz al
test cl, al
jnz short loc_3230E
lea rax, [r14+1]
cmp rax, 2
jb short loc_32357
mov rax, [rbp+var_40]
and eax, 200h
jz short loc_32357
add rbx, r14
sub r12, r14
add [rbp+var_48], r14
loc_3230E:
mov r15, [rbp+var_50]
mov dword ptr [r15], 0
mov edi, [rbp+var_2C]
mov rsi, rbx
mov rdx, r12
call _read
mov r14, rax
cmp rax, r12
jnz loc_322A5
loc_32333:
mov r14, r12
loc_32336:
mov rcx, [rbp+var_48]
add rcx, r14
xor eax, eax
cmp [rbp+var_38], 0
cmovz rax, rcx
loc_32348:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_32357:
mov rax, [rbp+var_40]
test al, 1Ah
jz short loc_323B7
cmp r14, 0FFFFFFFFFFFFFFFFh
jz short loc_323E4
cmp [rbp+var_38], 0
jz loc_3241B
mov r12, [rbp+var_40]
mov ebx, r12d
and ebx, 440h
or rbx, 4
mov edi, [rbp+var_2C]
call my_filename
mov edi, 9
mov rsi, rbx
mov rdx, rax
mov ecx, r15d
xor eax, eax
call my_error
bt r12d, 9
mov eax, 1
mov [rbp+var_38], rax
mov rax, 0FFFFFFFFFFFFFFFFh
jb short loc_32336
jmp short loc_32348
loc_323B7:
bt eax, 9
setnb cl
cmp [rbp+var_38], 0
setnz dl
mov rax, 0FFFFFFFFFFFFFFFFh
cmp r14, 0FFFFFFFFFFFFFFFFh
jz loc_32348
and dl, cl
jz loc_32336
jmp loc_32348
loc_323E4:
mov rbx, [rbp+var_40]
and ebx, 440h
or rbx, 4
mov edi, [rbp+var_2C]
call my_filename
mov edi, 2
mov rsi, rbx
mov rdx, rax
mov ecx, r15d
xor eax, eax
call my_error
mov rax, 0FFFFFFFFFFFFFFFFh
jmp loc_32348
loc_3241B:
mov [rbp+var_38], 0
jmp loc_32336
| long long my_read(long long a1, long long a2, long long a3, __int16 a4)
{
long long v5; // rbx
__int16 v6; // r15
__int16 v7; // r15
long long v8; // r14
unsigned int *v9; // r15
unsigned int v10; // r15d
long long result; // rax
long long v12; // rax
long long v13; // rax
unsigned int *v14; // [rsp+0h] [rbp-50h]
long long v15; // [rsp+8h] [rbp-48h]
__int16 v16; // [rsp+10h] [rbp-40h]
long long v17; // [rsp+18h] [rbp-38h]
v5 = a2;
v15 = 0LL;
v6 = 0;
if ( (a4 & 0x1A) == 0 )
v6 = my_global_flags;
v7 = a4 | v6;
v14 = (unsigned int *)__errno_location(a1);
*v14 = 0;
v8 = read((unsigned int)a1, a2, a3);
v17 = v7 & 6;
if ( v8 == a3 )
{
LABEL_13:
v8 = a3;
goto LABEL_14;
}
v16 = v7;
v15 = 0LL;
v9 = v14;
while ( 1 )
{
v10 = *v9;
*(_DWORD *)my_thread_var() = v10;
if ( !v10 || v17 != 0 && v8 != -1 )
*(_DWORD *)my_thread_var() = 175;
if ( v10 == 4 && (v8 == 0 || (_DWORD)v8 == -1) )
goto LABEL_12;
if ( (unsigned long long)(v8 + 1) < 2 || (v16 & 0x200) == 0 )
break;
v5 += v8;
a3 -= v8;
v15 += v8;
LABEL_12:
v9 = v14;
*v14 = 0;
v8 = read((unsigned int)a1, v5, a3);
if ( v8 == a3 )
goto LABEL_13;
}
if ( (v16 & 0x1A) != 0 )
{
if ( v8 == -1 )
{
v13 = my_filename((unsigned int)a1);
my_error(2u, v16 & 0x440 | 4, v13, v10);
return -1LL;
}
if ( v17 )
{
v12 = my_filename((unsigned int)a1);
my_error(9u, v16 & 0x440 | 4, v12, v10);
v17 = 1LL;
result = -1LL;
if ( (v16 & 0x200) == 0 )
return result;
}
else
{
v17 = 0LL;
}
LABEL_14:
result = 0LL;
if ( !v17 )
return v8 + v15;
}
else
{
result = -1LL;
if ( v8 != -1 && ((v16 & 0x200) != 0 || v17 == 0) )
goto LABEL_14;
}
return result;
}
| my_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,RDX
MOV RBX,RSI
MOV dword ptr [RBP + -0x2c],EDI
MOV qword ptr [RBP + -0x48],0x0
MOV R15D,0x0
TEST CL,0x1a
JNZ 0x0013225f
LEA RAX,[0x46d218]
MOV R15,qword ptr [RAX]
LAB_0013225f:
OR R15,RCX
CALL 0x00124050
MOV qword ptr [RBP + -0x50],RAX
MOV dword ptr [RAX],0x0
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,RBX
MOV RDX,R12
CALL 0x00124410
MOV R14,RAX
MOV EAX,R15D
AND EAX,0x6
MOV qword ptr [RBP + -0x38],RAX
CMP R14,R12
JZ 0x00132333
MOV qword ptr [RBP + -0x40],R15
MOV qword ptr [RBP + -0x48],0x0
MOV R15,qword ptr [RBP + -0x50]
LAB_001322a5:
CMP qword ptr [RBP + -0x38],0x0
SETZ R13B
MOV R15D,dword ptr [R15]
CALL 0x0012a59a
MOV dword ptr [RAX],R15D
CMP R14,-0x1
SETZ AL
TEST R15D,R15D
JZ 0x001322ca
OR AL,R13B
JNZ 0x001322d5
LAB_001322ca:
CALL 0x0012a59a
MOV dword ptr [RAX],0xaf
LAB_001322d5:
TEST R14,R14
SETZ AL
CMP R14D,-0x1
SETZ CL
OR CL,AL
CMP R15D,0x4
SETZ AL
TEST CL,AL
JNZ 0x0013230e
LEA RAX,[R14 + 0x1]
CMP RAX,0x2
JC 0x00132357
MOV RAX,qword ptr [RBP + -0x40]
AND EAX,0x200
JZ 0x00132357
ADD RBX,R14
SUB R12,R14
ADD qword ptr [RBP + -0x48],R14
LAB_0013230e:
MOV R15,qword ptr [RBP + -0x50]
MOV dword ptr [R15],0x0
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,RBX
MOV RDX,R12
CALL 0x00124410
MOV R14,RAX
CMP RAX,R12
JNZ 0x001322a5
LAB_00132333:
MOV R14,R12
LAB_00132336:
MOV RCX,qword ptr [RBP + -0x48]
ADD RCX,R14
XOR EAX,EAX
CMP qword ptr [RBP + -0x38],0x0
CMOVZ RAX,RCX
LAB_00132348:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00132357:
MOV RAX,qword ptr [RBP + -0x40]
TEST AL,0x1a
JZ 0x001323b7
CMP R14,-0x1
JZ 0x001323e4
CMP qword ptr [RBP + -0x38],0x0
JZ 0x0013241b
MOV R12,qword ptr [RBP + -0x40]
MOV EBX,R12D
AND EBX,0x440
OR RBX,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x00134170
MOV EDI,0x9
MOV RSI,RBX
MOV RDX,RAX
MOV ECX,R15D
XOR EAX,EAX
CALL 0x001315bf
BT R12D,0x9
MOV EAX,0x1
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,-0x1
JC 0x00132336
JMP 0x00132348
LAB_001323b7:
BT EAX,0x9
SETNC CL
CMP qword ptr [RBP + -0x38],0x0
SETNZ DL
MOV RAX,-0x1
CMP R14,-0x1
JZ 0x00132348
AND DL,CL
JZ 0x00132336
JMP 0x00132348
LAB_001323e4:
MOV RBX,qword ptr [RBP + -0x40]
AND EBX,0x440
OR RBX,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x00134170
MOV EDI,0x2
MOV RSI,RBX
MOV RDX,RAX
MOV ECX,R15D
XOR EAX,EAX
CALL 0x001315bf
MOV RAX,-0x1
JMP 0x00132348
LAB_0013241b:
MOV qword ptr [RBP + -0x38],0x0
JMP 0x00132336
|
long my_read(int param_1,void *param_2,size_t param_3,ulong param_4)
{
int iVar1;
uint uVar2;
int *piVar4;
size_t sVar5;
int *piVar6;
int4 *puVar7;
long lVar8;
int8 uVar9;
ulong uVar10;
long local_50;
uint uVar3;
local_50 = 0;
uVar10 = 0;
if ((param_4 & 0x1a) == 0) {
uVar10 = my_global_flags;
}
uVar10 = uVar10 | param_4;
piVar4 = __errno_location();
*piVar4 = 0;
sVar5 = read(param_1,param_2,param_3);
uVar3 = (uint)uVar10;
uVar2 = uVar3 & 6;
if (sVar5 != param_3) {
local_50 = 0;
do {
iVar1 = *piVar4;
piVar6 = (int *)_my_thread_var();
*piVar6 = iVar1;
if ((iVar1 == 0) || (sVar5 != 0xffffffffffffffff && (uVar10 & 6) != 0)) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0xaf;
}
if ((int)sVar5 != -1 && sVar5 != 0 || iVar1 != 4) {
if ((sVar5 + 1 < 2) || ((uVar10 & 0x200) == 0)) {
param_3 = sVar5;
if ((uVar10 & 0x1a) == 0) {
if (sVar5 == 0xffffffffffffffff) {
return -1;
}
if ((uVar10 & 6) != 0 && (uVar3 >> 9 & 1) == 0) {
return -1;
}
}
else {
if (sVar5 == 0xffffffffffffffff) {
uVar9 = my_filename(param_1);
my_error(2,uVar3 & 0x440 | 4,uVar9,iVar1);
return -1;
}
if ((uVar10 & 6) == 0) {
uVar2 = 0;
}
else {
uVar9 = my_filename(param_1);
my_error(9,uVar3 & 0x440 | 4,uVar9,iVar1);
uVar2 = 1;
if ((uVar3 >> 9 & 1) == 0) {
return -1;
}
}
}
break;
}
param_2 = (void *)((long)param_2 + sVar5);
param_3 = param_3 - sVar5;
local_50 = local_50 + sVar5;
}
*piVar4 = 0;
sVar5 = read(param_1,param_2,param_3);
} while (sVar5 != param_3);
}
lVar8 = 0;
if (uVar2 == 0) {
lVar8 = local_50 + param_3;
}
return lVar8;
}
| |
50,036 | FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | shubhamoy[P]dir2txt/src/FileWriterJson.cpp | void FileWriterJson::writeTreeNode(const std::filesystem::path& relPath, const std::string& type) {
j["tree"].push_back({
{"path", relPath.generic_string()},
{"type", type}
});
} | O1 | cpp | FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r13
movq %rsi, %r14
addq $0x8, %rdi
leaq 0xee2c(%rip), %rsi # 0x37108
callq 0x28e32
movq %rax, %r12
leaq 0xee42(%rip), %rsi # 0x3712d
leaq 0x58(%rsp), %rdi
callq 0x321f8
leaq 0x70(%rsp), %rbx
movq $0x0, -0x8(%rbx)
leaq 0x8(%rsp), %rdi
leaq 0x88(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x29910
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x295a6
leaq 0x58(%rsp), %rsi
movq $0x0, 0x28(%rsi)
leaq 0x28(%rsp), %r14
movl $0x2, %edx
movq %r14, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x2d6cc
leaq 0x40(%rsp), %r14
movq $0x0, -0x8(%r14)
leaq 0xedcd(%rip), %rsi # 0x37132
movq %r15, %rbp
movq %r15, %rdi
callq 0x321f8
leaq 0xa0(%rsp), %rbp
movq $0x0, -0x8(%rbp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x298d6
leaq 0x88(%rsp), %rsi
movq $0x0, 0x28(%rsi)
movl $0x2, %edx
movq %r14, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x2d6cc
leaq 0x28(%rsp), %rsi
movq $0x0, 0x28(%rsi)
movl $0x2, %edx
movq %r12, %rdi
callq 0x295e0
movl $0x18, %r14d
leaq (%rsp,%r14), %rbx
addq $0x28, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x29abe
movq %rbx, %rdi
callq 0x29b94
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x283d3
movl $0x18, %r14d
leaq (%rsp,%r14), %rbx
addq $0x88, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x29abe
movq %rbx, %rdi
callq 0x29b94
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x283fd
movl $0x18, %r14d
leaq (%rsp,%r14), %rbx
addq $0x58, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x29abe
movq %rbx, %rdi
callq 0x29b94
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2842a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28469
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8380
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movl $0x18, %r13d
leaq (%rsp,%r13), %r15
addq $0x28, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x29abe
movq %r15, %rdi
callq 0x29b94
addq $-0x18, %r13
cmpq $-0x18, %r13
jne 0x28484
movb $0x1, %r13b
jmp 0x284b3
movq %rax, %r12
xorl %r13d, %r13d
movl $0x18, %ebp
leaq (%rsp,%rbp), %r15
addq $0x88, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x29abe
movq %r15, %rdi
callq 0x29b94
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x284b8
jmp 0x28548
movq %rax, %r12
jmp 0x2851d
movq %rax, %r12
leaq 0x28(%rsp), %r14
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x28574
movq %rax, %r12
leaq 0x28(%rsp), %r14
xorl %ebp, %ebp
jmp 0x28510
movq %rax, %r12
leaq 0x28(%rsp), %r14
xorl %ebp, %ebp
leaq 0x58(%rsp), %rbx
xorl %r13d, %r13d
jmp 0x2858f
movq %rax, %r12
cmpq %rbp, %r15
jne 0x28522
xorl %r13d, %r13d
jmp 0x28548
leaq 0x88(%rsp), %r15
xorl %r13d, %r13d
addq $-0x18, %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x29abe
movq %rbp, %rdi
callq 0x29b94
cmpq %r15, %rbp
jne 0x2852d
movl $0x18, %ebp
leaq (%rsp,%rbp), %r15
addq $0x58, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x29abe
movq %r15, %rdi
callq 0x29b94
addq $-0x18, %rbp
cmpq $-0x18, %rbp
jne 0x2854d
movb $0x1, %bpl
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2858f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8380
leaq 0x58(%rsp), %rax
cmpq %rbx, %rax
sete %al
orb %bpl, %al
jne 0x285bf
leaq 0x58(%rsp), %r15
addq $-0x18, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x29abe
movq %rbx, %rdi
callq 0x29b94
cmpq %r15, %rbx
jne 0x285a4
leaq 0x28(%rsp), %rbx
cmpq %r14, %rbx
sete %al
orb %al, %r13b
jne 0x285ea
addq $-0x18, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x29abe
movq %r14, %rdi
callq 0x29b94
cmpq %rbx, %r14
jne 0x285cf
movq %r12, %rdi
callq 0x85d0
| _ZN14FileWriterJson13writeTreeNodeERKNSt10filesystem7__cxx114pathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r13, rdx
mov r14, rsi
add rdi, 8
lea rsi, aTree; "tree"
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov r12, rax
lea rsi, aPath; "path"
lea rdi, [rsp+0E8h+var_90]
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea rbx, [rsp+0E8h+var_78]
mov qword ptr [rbx-8], 0
lea rdi, [rsp+0E8h+var_E0]; int
lea r15, [rsp+0E8h+var_60]
mov rsi, r14; int
mov rdx, r15; int
call _ZNKSt10filesystem7__cxx114path14generic_stringIcSt11char_traitsIcESaIcEEENSt7__cxx1112basic_stringIT_T0_T1_EERKSA_; std::filesystem::__cxx11::path::generic_string<char,std::char_traits<char>,std::allocator<char>>(std::allocator<char> const&)
lea rsi, [rsp+0E8h+var_E0]
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
lea rsi, [rsp+0E8h+var_90]
mov qword ptr [rsi+28h], 0
lea r14, [rsp+0E8h+var_C0]
mov edx, 2
mov rdi, r14
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_12_0::detail::value_t)
lea r14, [rsp+0E8h+var_A8]
mov qword ptr [r14-8], 0
lea rsi, aType; "type"
mov rbp, r15
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea rbp, [rsp+0E8h+var_48]
mov qword ptr [rbp-8], 0
mov rdi, rbp
mov rsi, r13
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
lea rsi, [rsp+0E8h+var_60]
mov qword ptr [rsi+28h], 0
mov edx, 2
mov rdi, r14
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_12_0::detail::value_t)
lea rsi, [rsp+0E8h+var_C0]
mov qword ptr [rsi+28h], 0
mov edx, 2
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::push_back(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>)
mov r14d, 18h
loc_283D3:
lea rbx, [rsp+r14+0E8h+var_E8]
add rbx, 28h ; '('
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_283D3
mov r14d, 18h
loc_283FD:
lea rbx, [rsp+r14+0E8h+var_E8]
add rbx, 88h
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_283FD
mov r14d, 18h
loc_2842A:
lea rbx, [rsp+r14+0E8h+var_E8]
add rbx, 58h ; 'X'
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_2842A
lea rax, [rsp+0E8h+var_D0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_28469
mov rsi, [rsp+0E8h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_28469:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r12, rax
mov r13d, 18h
loc_28484:
lea r15, [rsp+r13+0]
add r15, 28h ; '('
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add r13, 0FFFFFFFFFFFFFFE8h
cmp r13, 0FFFFFFFFFFFFFFE8h
jnz short loc_28484
mov r13b, 1
jmp short loc_284B3
mov r12, rax
xor r13d, r13d
loc_284B3:
mov ebp, 18h
loc_284B8:
lea r15, [rsp+rbp+0]
add r15, 88h
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_284B8
jmp short loc_28548
mov r12, rax
jmp short loc_2851D
mov r12, rax
lea r14, [rsp+arg_20]
xor ebp, ebp
xor r13d, r13d
jmp short loc_28574
mov r12, rax
lea r14, [rsp+arg_20]
xor ebp, ebp
jmp short loc_28510
mov r12, rax
lea r14, [rsp+arg_20]
xor ebp, ebp
lea rbx, [rsp+arg_50]
loc_28510:
xor r13d, r13d
jmp short loc_2858F
mov r12, rax
cmp r15, rbp
jnz short loc_28522
loc_2851D:
xor r13d, r13d
jmp short loc_28548
loc_28522:
lea r15, [rsp+arg_80]
xor r13d, r13d
loc_2852D:
add rbp, 0FFFFFFFFFFFFFFE8h
mov rdi, rbp
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbp
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
cmp rbp, r15
jnz short loc_2852D
loc_28548:
mov ebp, 18h
loc_2854D:
lea r15, [rsp+rbp+0]
add r15, 58h ; 'X'
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
add rbp, 0FFFFFFFFFFFFFFE8h
cmp rbp, 0FFFFFFFFFFFFFFE8h
jnz short loc_2854D
mov bpl, 1
loc_28574:
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2858F
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2858F:
lea rax, [rsp+arg_50]
cmp rax, rbx
setz al
or al, bpl
jnz short loc_285BF
lea r15, [rsp+arg_50]
loc_285A4:
add rbx, 0FFFFFFFFFFFFFFE8h
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
cmp rbx, r15
jnz short loc_285A4
loc_285BF:
lea rbx, [rsp+arg_20]
cmp rbx, r14
setz al
or r13b, al
jnz short loc_285EA
loc_285CF:
add r14, 0FFFFFFFFFFFFFFE8h
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::data::~data()
cmp r14, rbx
jnz short loc_285CF
loc_285EA:
mov rdi, r12
call __Unwind_Resume
| void FileWriterJson::writeTreeNode(int a1, int a2, long long a3, int a4, int a5, int a6)
{
int v7; // r12d
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v11; // ecx
int v12; // r8d
int v13; // r9d
long long i; // r14
long long j; // r14
long long k; // r14
void *v17; // [rsp+0h] [rbp-E8h]
int v18; // [rsp+0h] [rbp-E8h]
long long *v19; // [rsp+8h] [rbp-E0h] BYREF
long long v20; // [rsp+10h] [rbp-D8h]
long long v21; // [rsp+18h] [rbp-D0h] BYREF
_BYTE v22[16]; // [rsp+28h] [rbp-C0h] BYREF
long long v23; // [rsp+38h] [rbp-B0h]
_BYTE v24[16]; // [rsp+40h] [rbp-A8h] BYREF
long long v25; // [rsp+50h] [rbp-98h]
_BYTE v26[16]; // [rsp+58h] [rbp-90h] BYREF
long long v27; // [rsp+68h] [rbp-80h]
_BYTE v28[16]; // [rsp+70h] [rbp-78h] BYREF
long long v29; // [rsp+80h] [rbp-68h]
int v30[4]; // [rsp+88h] [rbp-60h] BYREF
long long v31; // [rsp+98h] [rbp-50h]
_BYTE v32[16]; // [rsp+A0h] [rbp-48h] BYREF
long long v33; // [rsp+B0h] [rbp-38h]
v7 = nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1 + 8,
(unsigned int)"tree",
a3,
a4,
a5,
a6);
ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
v26,
"path");
v27 = 0LL;
std::filesystem::__cxx11::path::generic_string<char,std::char_traits<char>,std::allocator<char>>(
(int)&v19,
a2,
(int)v30,
v8,
v9,
v10,
v17,
(int)v19,
v20);
ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(
v28,
&v19);
v29 = 0LL;
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v22,
v26,
2LL,
1LL,
2LL);
v23 = 0LL;
ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
v30,
"type");
v31 = 0LL;
ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_(
v32,
a3);
v33 = 0LL;
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v24,
v30,
2LL,
1LL,
2LL);
v25 = 0LL;
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::push_back(
v7,
(unsigned int)v22,
2,
v11,
v12,
v13,
v18,
(char)v19,
v20,
v21);
for ( i = 24LL; i != -24; i -= 24LL )
{
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v22[i],
0LL);
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v22[i]);
}
for ( j = 6LL; j != -6; j -= 6LL )
{
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v30[j],
0LL);
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v30[j]);
}
for ( k = 24LL; k != -24; k -= 24LL )
{
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
&v26[k],
0LL);
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26[k]);
}
if ( v19 != &v21 )
operator delete(v19, v21 + 1);
}
| writeTreeNode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R13,RDX
MOV R14,RSI
ADD RDI,0x8
LEA RSI,[0x137108]
CALL 0x00128e32
MOV R12,RAX
LAB_001282e4:
LEA RSI,[0x13712d]
LEA RDI,[RSP + 0x58]
CALL 0x001321f8
LEA RBX,[RSP + 0x70]
MOV qword ptr [RBX + -0x8],0x0
LAB_00128302:
LEA RDI,[RSP + 0x8]
LEA R15,[RSP + 0x88]
MOV RSI,R14
MOV RDX,R15
CALL 0x00129910
LAB_0012831a:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001295a6
LEA RSI,[RSP + 0x58]
MOV qword ptr [RSI + 0x28],0x0
LAB_00128334:
LEA R14,[RSP + 0x28]
MOV EDX,0x2
MOV RDI,R14
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0012d6cc
LEA R14,[RSP + 0x40]
MOV qword ptr [R14 + -0x8],0x0
LAB_0012835e:
LEA RSI,[0x137132]
MOV RBP,R15
MOV RDI,R15
CALL 0x001321f8
LEA RBP,[RSP + 0xa0]
MOV qword ptr [RBP + -0x8],0x0
MOV RDI,RBP
MOV RSI,R13
CALL 0x001298d6
LEA RSI,[RSP + 0x88]
MOV qword ptr [RSI + 0x28],0x0
LAB_0012839b:
MOV EDX,0x2
MOV RDI,R14
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0012d6cc
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSI + 0x28],0x0
LAB_001283c0:
MOV EDX,0x2
MOV RDI,R12
CALL 0x001295e0
LAB_001283cd:
MOV R14D,0x18
LAB_001283d3:
LEA RBX,[RSP + R14*0x1]
ADD RBX,0x28
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00129abe
MOV RDI,RBX
CALL 0x00129b94
ADD R14,-0x18
CMP R14,-0x18
JNZ 0x001283d3
MOV R14D,0x18
LAB_001283fd:
LEA RBX,[RSP + R14*0x1]
ADD RBX,0x88
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00129abe
MOV RDI,RBX
CALL 0x00129b94
ADD R14,-0x18
CMP R14,-0x18
JNZ 0x001283fd
MOV R14D,0x18
LAB_0012842a:
LEA RBX,[RSP + R14*0x1]
ADD RBX,0x58
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00129abe
MOV RDI,RBX
CALL 0x00129b94
ADD R14,-0x18
CMP R14,-0x18
JNZ 0x0012842a
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00128469
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00108380
LAB_00128469:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::string const&)
*/
void __thiscall FileWriterJson::writeTreeNode(FileWriterJson *this,path *param_1,string *param_2)
{
basic_json *pbVar1;
long lVar2;
long *local_e0 [2];
long local_d0 [2];
data local_c0 [16];
int8 local_b0;
int1 local_a8 [16];
int8 local_98;
data local_90 [16];
int8 local_80;
int1 local_78 [16];
int8 local_68;
data local_60 [16];
int8 local_50;
int1 local_48 [16];
int8 local_38;
pbVar1 = nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>
((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)(this + 8),"tree");
/* try { // try from 001282e4 to 001282f4 has its CatchHandler @ 00128501 */
_ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_90,&DAT_0013712d);
local_80 = 0;
/* try { // try from 00128302 to 00128319 has its CatchHandler @ 001284f5 */
std::filesystem::__cxx11::path::generic_string<char,std::char_traits<char>,std::allocator<char>>
((path *)local_e0,(allocator *)param_1);
/* try { // try from 0012831a to 00128326 has its CatchHandler @ 001284e6 */
_ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_78,local_e0);
local_68 = 0;
/* try { // try from 00128334 to 00128350 has its CatchHandler @ 001284e1 */
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_c0,local_90,2,1,2);
local_b0 = 0;
/* try { // try from 0012835e to 0012838a has its CatchHandler @ 00128515 */
_ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_60,&DAT_00137132);
local_50 = 0;
_ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
(local_48,param_2);
local_38 = 0;
/* try { // try from 0012839b to 001283b2 has its CatchHandler @ 001284ad */
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_a8,local_60,2,1,2);
local_98 = 0;
/* try { // try from 001283c0 to 001283cc has its CatchHandler @ 0012847b */
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(pbVar1,local_c0,2);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_c0 + lVar2,0));
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_c0 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_60 + lVar2,0));
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_60 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_90 + lVar2,0));
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_90 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
if (local_e0[0] != local_d0) {
operator_delete(local_e0[0],local_d0[0] + 1);
}
return;
}
| |
50,037 | FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | shubhamoy[P]dir2txt/src/FileWriterJson.cpp | void FileWriterJson::writeTreeNode(const std::filesystem::path& relPath, const std::string& type) {
j["tree"].push_back({
{"path", relPath.generic_string()},
{"type", type}
});
} | O2 | cpp | FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r15
movq %rsi, %rbx
addq $0x8, %rdi
leaq 0xddd4(%rip), %rsi # 0x31158
callq 0x23ba0
movq %rax, %r14
leaq 0xddea(%rip), %rsi # 0x3117d
leaq 0x88(%rsp), %rdi
callq 0x24350
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x24360
leaq 0xa0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x2437c
leaq 0x8(%rsp), %rbx
leaq 0x88(%rsp), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x2438c
leaq 0x20(%rsp), %rbx
leaq 0xdd9f(%rip), %rsi # 0x31182
leaq 0x38(%rsp), %rdi
callq 0x24350
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x243a4
leaq 0x38(%rsp), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x2438c
leaq 0x8(%rsp), %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0x2424e
pushq $0x18
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x8, %rdi
callq 0x239d8
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x2341d
pushq $0x18
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x38, %rdi
callq 0x239d8
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x23437
pushq $0x18
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x88, %rdi
callq 0x239d8
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x23451
leaq 0x68(%rsp), %rdi
callq 0x8e46
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
pushq $0x18
popq %r15
leaq (%rsp,%r15), %rdi
addq $0x8, %rdi
callq 0x239d8
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x2348a
movb $0x1, %bpl
jmp 0x234ab
movq %rax, %r14
xorl %ebp, %ebp
pushq $0x18
popq %r15
leaq (%rsp,%r15), %rdi
addq $0x38, %rdi
callq 0x239d8
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x234af
jmp 0x234de
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x239d8
jmp 0x234dc
jmp 0x234d9
movq %rax, %r14
xorl %ebp, %ebp
pushq $0x18
popq %r15
leaq (%rsp,%r15), %rdi
addq $0x88, %rdi
callq 0x239d8
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x234e2
movb $0x1, %r15b
leaq 0x68(%rsp), %rdi
callq 0x8e46
testb %r15b, %r15b
je 0x23529
jmp 0x23536
movq %rax, %r14
leaq 0x8(%rsp), %rbx
xorl %r15d, %r15d
xorl %ebp, %ebp
jmp 0x234ff
movq %rax, %r14
leaq 0x8(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x88(%rsp), %rdi
callq 0x239d8
leaq 0x8(%rsp), %r15
cmpq %rbx, %r15
sete %al
testb %bpl, %bpl
jne 0x2355b
testb %al, %al
jne 0x2355b
addq $-0x18, %rbx
movq %rbx, %rdi
callq 0x239d8
cmpq %r15, %rbx
jne 0x2354a
movq %r14, %rdi
callq 0x85e0
nop
| _ZN14FileWriterJson13writeTreeNodeERKNSt10filesystem7__cxx114pathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push rbx
sub rsp, 0B8h
mov r15, rdx
mov rbx, rsi
add rdi, 8
lea rsi, aTree; "tree"
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov r14, rax
lea rsi, aPath; "path"
lea rdi, [rsp+0D8h+var_50]
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
lea rdi, [rsp+0D8h+var_70]; this
mov rsi, rbx
call _ZNKSt10filesystem7__cxx114path14generic_stringEv; std::filesystem::__cxx11::path::generic_string(void)
lea rdi, [rsp+0D8h+var_38]
lea rsi, [rsp+0D8h+var_70]
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
lea rbx, [rsp+0D8h+var_D0]
lea rsi, [rsp+0D8h+var_50]
push 2
pop rdx
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>)
lea rbx, [rsp+0D8h+var_B8]
lea rsi, aType; "type"
lea rdi, [rsp+0D8h+var_A0]
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
lea rdi, [rsp+0D8h+var_88]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
lea rsi, [rsp+0D8h+var_A0]
push 2
pop rdx
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>)
lea rsi, [rsp+0D8h+var_D0]
push 2
pop rdx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::push_back(std::initializer_list<nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>)
push 18h
pop rbx
loc_2341D:
lea rdi, [rsp+rbx+0D8h+var_D8]
add rdi, 8
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add rbx, 0FFFFFFFFFFFFFFE8h
cmp rbx, 0FFFFFFFFFFFFFFE8h
jnz short loc_2341D
push 18h
pop rbx
loc_23437:
lea rdi, [rsp+rbx+0D8h+var_D8]
add rdi, 38h ; '8'
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add rbx, 0FFFFFFFFFFFFFFE8h
cmp rbx, 0FFFFFFFFFFFFFFE8h
jnz short loc_23437
push 18h
pop rbx
loc_23451:
lea rdi, [rsp+rbx+0D8h+var_D8]
add rdi, 88h
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add rbx, 0FFFFFFFFFFFFFFE8h
cmp rbx, 0FFFFFFFFFFFFFFE8h
jnz short loc_23451
lea rdi, [rsp+0D8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 0B8h
pop rbx
pop r14
pop r15
pop rbp
retn
mov r14, rax
push 18h
pop r15
loc_2348A:
lea rdi, [rsp+r15+0]
add rdi, 8
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_2348A
mov bpl, 1
jmp short loc_234AB
mov r14, rax
xor ebp, ebp
loc_234AB:
push 18h
pop r15
loc_234AF:
lea rdi, [rsp+r15+0]
add rdi, 38h ; '8'
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_234AF
jmp short loc_234DE
mov r14, rax
lea rdi, [rsp+arg_30]
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_234DC
jmp short $+2
loc_234D9:
mov r14, rax
loc_234DC:
xor ebp, ebp
loc_234DE:
push 18h
pop r15
loc_234E2:
lea rdi, [rsp+r15+0]
add rdi, 88h
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_234E2
mov r15b, 1
loc_234FF:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15b, r15b
jz short loc_23529
jmp short loc_23536
mov r14, rax
lea rbx, [rsp+arg_0]
xor r15d, r15d
xor ebp, ebp
jmp short loc_234FF
mov r14, rax
lea rbx, [rsp+arg_0]
xor ebp, ebp
loc_23529:
lea rdi, [rsp+arg_80]
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_23536:
lea r15, [rsp+arg_0]
cmp r15, rbx
setz al
test bpl, bpl
jnz short loc_2355B
test al, al
jnz short loc_2355B
loc_2354A:
add rbx, 0FFFFFFFFFFFFFFE8h
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::~basic_json()
cmp rbx, r15
jnz short loc_2354A
loc_2355B:
mov rdi, r14
call __Unwind_Resume
| void FileWriterJson::writeTreeNode(int a1, long long a2, long long a3, int a4, int a5, int a6)
{
int v7; // r14d
int v8; // ecx
int v9; // r8d
int v10; // r9d
long long i; // rbx
long long j; // rbx
long long k; // rbx
_BYTE v14[24]; // [rsp+8h] [rbp-D0h] BYREF
_BYTE v15[24]; // [rsp+20h] [rbp-B8h] BYREF
_BYTE v16[24]; // [rsp+38h] [rbp-A0h] BYREF
_BYTE v17[24]; // [rsp+50h] [rbp-88h] BYREF
_BYTE v18[32]; // [rsp+68h] [rbp-70h] BYREF
_BYTE v19[24]; // [rsp+88h] [rbp-50h] BYREF
_BYTE v20[56]; // [rsp+A0h] [rbp-38h] BYREF
v7 = nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1 + 8,
(unsigned int)"tree",
a3,
a4,
a5,
a6);
ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_(
v19,
"path");
std::filesystem::__cxx11::path::generic_string((std::filesystem::__cxx11::path *)v18);
ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_(
v20,
v18);
nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>::json_ref(
v14,
v19,
2LL);
ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_(
v16,
"type");
ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_(
v17,
a3);
nlohmann::json_abi_v3_12_0::detail::json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>::json_ref(
v15,
v16,
2LL);
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::push_back(
v7,
(unsigned int)v14,
2,
v8,
v9,
v10);
for ( i = 24LL; i != -24; i -= 24LL )
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::~basic_json(&v14[i]);
for ( j = 24LL; j != -24; j -= 24LL )
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::~basic_json(&v16[j]);
for ( k = 24LL; k != -24; k -= 24LL )
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::~basic_json(&v19[k]);
std::string::~string(v18);
}
| writeTreeNode:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xb8
MOV R15,RDX
MOV RBX,RSI
ADD RDI,0x8
LEA RSI,[0x131158]
CALL 0x00123ba0
MOV R14,RAX
LEA RSI,[0x13117d]
LEA RDI,[RSP + 0x88]
CALL 0x00124350
LAB_001233a0:
LEA RDI,[RSP + 0x68]
MOV RSI,RBX
CALL 0x00124360
LEA RDI,[RSP + 0xa0]
LAB_001233b5:
LEA RSI,[RSP + 0x68]
CALL 0x0012437c
LAB_001233bf:
LEA RBX,[RSP + 0x8]
LEA RSI,[RSP + 0x88]
PUSH 0x2
POP RDX
MOV RDI,RBX
CALL 0x0012438c
LEA RBX,[RSP + 0x20]
LAB_001233dc:
LEA RSI,[0x131182]
LEA RDI,[RSP + 0x38]
CALL 0x00124350
LEA RDI,[RSP + 0x50]
LAB_001233f2:
MOV RSI,R15
CALL 0x001243a4
LAB_001233fa:
LEA RSI,[RSP + 0x38]
PUSH 0x2
POP RDX
MOV RDI,RBX
CALL 0x0012438c
LAB_0012340a:
LEA RSI,[RSP + 0x8]
PUSH 0x2
POP RDX
MOV RDI,R14
CALL 0x0012424e
LAB_0012341a:
PUSH 0x18
POP RBX
LAB_0012341d:
LEA RDI,[RSP + RBX*0x1]
ADD RDI,0x8
CALL 0x001239d8
ADD RBX,-0x18
CMP RBX,-0x18
JNZ 0x0012341d
PUSH 0x18
POP RBX
LAB_00123437:
LEA RDI,[RSP + RBX*0x1]
ADD RDI,0x38
CALL 0x001239d8
ADD RBX,-0x18
CMP RBX,-0x18
JNZ 0x00123437
PUSH 0x18
POP RBX
LAB_00123451:
LEA RDI,[RSP + RBX*0x1]
ADD RDI,0x88
CALL 0x001239d8
ADD RBX,-0x18
CMP RBX,-0x18
JNZ 0x00123451
LEA RDI,[RSP + 0x68]
CALL 0x00108e46
ADD RSP,0xb8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* FileWriterJson::writeTreeNode(std::filesystem::__cxx11::path const&, std::__cxx11::string const&)
*/
void __thiscall FileWriterJson::writeTreeNode(FileWriterJson *this,path *param_1,string *param_2)
{
basic_json *pbVar1;
long lVar2;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_d0 [24];
int1 local_b8 [24];
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_a0 [24];
int1 local_88 [24];
string local_70 [32];
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_50 [24];
int1 local_38 [24];
pbVar1 = nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>
((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)(this + 8),"tree");
_ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_50,&DAT_0013117d);
/* try { // try from 001233a0 to 001233ac has its CatchHandler @ 0012351f */
std::filesystem::__cxx11::path::generic_string();
/* try { // try from 001233b5 to 001233be has its CatchHandler @ 00123510 */
_ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_
(local_38,local_70);
/* try { // try from 001233bf to 001233d6 has its CatchHandler @ 001234d9 */
nlohmann::json_abi_v3_12_0::detail::
json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::json_ref(local_d0,local_50,2);
/* try { // try from 001233dc to 001233ec has its CatchHandler @ 001234d7 */
_ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_a0,&DAT_00131182);
/* try { // try from 001233f2 to 001233f9 has its CatchHandler @ 001234c8 */
_ZN8nlohmann16json_abi_v3_12_06detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
(local_88,param_2);
/* try { // try from 001233fa to 00123409 has its CatchHandler @ 001234a6 */
nlohmann::json_abi_v3_12_0::detail::
json_ref<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::json_ref(local_b8,local_a0,2);
/* try { // try from 0012340a to 00123419 has its CatchHandler @ 00123483 */
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(pbVar1,local_d0,2);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_d0 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_a0 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
lVar2 = 0x18;
do {
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_50 + lVar2);
lVar2 = lVar2 + -0x18;
} while (lVar2 != -0x18);
std::__cxx11::string::~string(local_70);
return;
}
| |
50,038 | ggml_group_norm | ngxson[P]ggml-easy/ggml/src/ggml.c | struct ggml_tensor * ggml_group_norm(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_groups,
float eps) {
return ggml_group_norm_impl(ctx, a, n_groups, eps, false);
} | O1 | c | ggml_group_norm:
pushq %r14
pushq %rbx
pushq %rax
movss %xmm0, 0x4(%rsp)
movl %edx, %ebx
movq %rsi, %r14
movl (%rsi), %esi
leaq 0x10(%r14), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19cd9
movl %ebx, 0x54(%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x58(%rax)
movl $0x19, 0x50(%rax)
movq %r14, 0x98(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| ggml_group_norm:
push r14
push rbx
push rax
movss [rsp+18h+var_14], xmm0
mov ebx, edx
mov r14, rsi
mov esi, [rsi]
lea rcx, [r14+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov [rax+54h], ebx
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rax+58h], xmm0
mov dword ptr [rax+50h], 19h
mov [rax+98h], r14
add rsp, 8
pop rbx
pop r14
retn
| long long ggml_group_norm(long long a1, long long a2, int a3, float a4)
{
long long result; // rax
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (_QWORD *)(a2 + 16), 0LL, 0LL);
*(_DWORD *)(result + 84) = a3;
*(float *)(result + 88) = a4;
*(_DWORD *)(result + 80) = 25;
*(_QWORD *)(result + 152) = a2;
return result;
}
| ggml_group_norm:
PUSH R14
PUSH RBX
PUSH RAX
MOVSS dword ptr [RSP + 0x4],XMM0
MOV EBX,EDX
MOV R14,RSI
MOV ESI,dword ptr [RSI]
LEA RCX,[R14 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119cd9
MOV dword ptr [RAX + 0x54],EBX
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x58],XMM0
MOV dword ptr [RAX + 0x50],0x19
MOV qword ptr [RAX + 0x98],R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
void ggml_group_norm(int4 param_1,int8 param_2,int4 *param_3,int4 param_4)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_2,*param_3,4,param_3 + 4,0,0);
*(int4 *)(lVar1 + 0x54) = param_4;
*(int4 *)(lVar1 + 0x58) = param_1;
*(int4 *)(lVar1 + 0x50) = 0x19;
*(int4 **)(lVar1 + 0x98) = param_3;
return;
}
| |
50,039 | ggml_group_norm | ngxson[P]ggml-easy/ggml/src/ggml.c | struct ggml_tensor * ggml_group_norm(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_groups,
float eps) {
return ggml_group_norm_impl(ctx, a, n_groups, eps, false);
} | O3 | c | ggml_group_norm:
pushq %r14
pushq %rbx
pushq %rax
movss %xmm0, 0x4(%rsp)
movl %edx, %ebx
movq %rsi, %r14
movl (%rsi), %esi
leaq 0x10(%r14), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19c13
movl %ebx, 0x54(%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x58(%rax)
movl $0x19, 0x50(%rax)
movq %r14, 0x98(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| ggml_group_norm:
push r14
push rbx
push rax
movss [rsp+18h+var_14], xmm0
mov ebx, edx
mov r14, rsi
mov esi, [rsi]
lea rcx, [r14+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov [rax+54h], ebx
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rax+58h], xmm0
mov dword ptr [rax+50h], 19h
mov [rax+98h], r14
add rsp, 8
pop rbx
pop r14
retn
| long long ggml_group_norm(long long a1, long long a2, int a3, float a4)
{
long long result; // rax
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (_QWORD *)(a2 + 16), 0LL, 0LL);
*(_DWORD *)(result + 84) = a3;
*(float *)(result + 88) = a4;
*(_DWORD *)(result + 80) = 25;
*(_QWORD *)(result + 152) = a2;
return result;
}
| ggml_group_norm:
PUSH R14
PUSH RBX
PUSH RAX
MOVSS dword ptr [RSP + 0x4],XMM0
MOV EBX,EDX
MOV R14,RSI
MOV ESI,dword ptr [RSI]
LEA RCX,[R14 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119c13
MOV dword ptr [RAX + 0x54],EBX
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x58],XMM0
MOV dword ptr [RAX + 0x50],0x19
MOV qword ptr [RAX + 0x98],R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
void ggml_group_norm(int4 param_1,int8 param_2,int4 *param_3,int4 param_4)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_2,*param_3,4,param_3 + 4,0,0);
*(int4 *)(lVar1 + 0x54) = param_4;
*(int4 *)(lVar1 + 0x58) = param_1;
*(int4 *)(lVar1 + 0x50) = 0x19;
*(int4 **)(lVar1 + 0x98) = param_3;
return;
}
| |
50,040 | 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 0x1ad30e(%rip), %rax # 0x1da0f8
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 0x253c0
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,[0x2da0f8]
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 0x001253c0
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;
}
| |
50,041 | bitmap_is_overlapping | eloqsql/mysys/my_bitmap.c | my_bool bitmap_is_overlapping(const MY_BITMAP *map1, const MY_BITMAP *map2)
{
my_bitmap_map *m1= map1->bitmap, *m2= map2->bitmap, *end;
DBUG_ASSERT(map1->bitmap);
DBUG_ASSERT(map2->bitmap);
DBUG_ASSERT(map1->n_bits==map2->n_bits);
end= map1->last_word_ptr;
while (m1 < end)
{
if ((*m1++) & (*m2++))
return 1;
}
/* here both maps have the same number of bits - see assert above */
return ((*m1 & *m2 & ~map1->last_word_mask) ? 1 : 0);
} | O0 | c | bitmap_is_overlapping:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0xf08f4
jmp 0xf08f6
jmp 0xf08f8
jmp 0xf08fa
jmp 0xf08fc
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0xf0941
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x20(%rbp)
movl (%rax), %eax
movq -0x28(%rbp), %rcx
movq %rcx, %rdx
addq $0x4, %rdx
movq %rdx, -0x28(%rbp)
andl (%rcx), %eax
cmpl $0x0, %eax
je 0xf093f
movb $0x1, -0x1(%rbp)
jmp 0xf0969
jmp 0xf0908
movq -0x20(%rbp), %rax
movl (%rax), %edx
movq -0x28(%rbp), %rax
andl (%rax), %edx
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
xorl $-0x1, %eax
andl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nop
| bitmap_is_overlapping:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_28], rax
jmp short $+2
loc_F08F4:
jmp short $+2
loc_F08F6:
jmp short $+2
loc_F08F8:
jmp short $+2
loc_F08FA:
jmp short $+2
loc_F08FC:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_30], rax
loc_F0908:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jnb short loc_F0941
mov rax, [rbp+var_20]
mov rcx, rax
add rcx, 4
mov [rbp+var_20], rcx
mov eax, [rax]
mov rcx, [rbp+var_28]
mov rdx, rcx
add rdx, 4
mov [rbp+var_28], rdx
and eax, [rcx]
cmp eax, 0
jz short loc_F093F
mov [rbp+var_1], 1
jmp short loc_F0969
loc_F093F:
jmp short loc_F0908
loc_F0941:
mov rax, [rbp+var_20]
mov edx, [rax]
mov rax, [rbp+var_28]
and edx, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+18h]
xor eax, 0FFFFFFFFh
and edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_1], al
loc_F0969:
mov al, [rbp+var_1]
pop rbp
retn
| bool bitmap_is_overlapping(long long a1, _DWORD **a2)
{
_DWORD *v2; // rax
_DWORD *v3; // rcx
_DWORD *v5; // [rsp+8h] [rbp-28h]
_DWORD *v6; // [rsp+10h] [rbp-20h]
v6 = *(_DWORD **)a1;
v5 = *a2;
while ( (unsigned long long)v6 < *(_QWORD *)(a1 + 8) )
{
v2 = v6++;
v3 = v5++;
if ( (*v3 & *v2) != 0 )
return 1;
}
return (~*(_DWORD *)(a1 + 24) & *v5 & *v6) != 0;
}
| bitmap_is_overlapping:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001f08f4
LAB_001f08f4:
JMP 0x001f08f6
LAB_001f08f6:
JMP 0x001f08f8
LAB_001f08f8:
JMP 0x001f08fa
LAB_001f08fa:
JMP 0x001f08fc
LAB_001f08fc:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f0908:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001f0941
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x20],RCX
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,RCX
ADD RDX,0x4
MOV qword ptr [RBP + -0x28],RDX
AND EAX,dword ptr [RCX]
CMP EAX,0x0
JZ 0x001f093f
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001f0969
LAB_001f093f:
JMP 0x001f0908
LAB_001f0941:
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
AND EDX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x18]
XOR EAX,0xffffffff
AND EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV byte ptr [RBP + -0x1],AL
LAB_001f0969:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int8 bitmap_is_overlapping(int8 *param_1,int8 *param_2)
{
uint uVar1;
uint uVar2;
ulong uVar3;
uint *local_30;
uint *local_28;
bool local_9;
local_30 = (uint *)*param_2;
local_28 = (uint *)*param_1;
do {
if ((uint *)param_1[1] <= local_28) {
local_9 = (*local_28 & *local_30 & (*(uint *)(param_1 + 3) ^ 0xffffffff)) != 0;
uVar3 = 0;
goto LAB_001f0969;
}
uVar1 = *local_28;
uVar2 = *local_30;
uVar3 = (ulong)(uVar1 & uVar2);
local_30 = local_30 + 1;
local_28 = local_28 + 1;
} while ((uVar1 & uVar2) == 0);
local_9 = true;
LAB_001f0969:
return CONCAT71((int7)(uVar3 >> 8),local_9);
}
| |
50,042 | testing::internal::UnitTestImpl::GetTestSuite(char const*, char const*, void (*)(), void (*)()) | seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/src/gtest.cc | TestSuite* UnitTestImpl::GetTestSuite(
const char* test_suite_name, const char* type_param,
internal::SetUpTestSuiteFunc set_up_tc,
internal::TearDownTestSuiteFunc tear_down_tc) {
// Can we find a TestSuite with the given name?
const auto test_suite =
std::find_if(test_suites_.rbegin(), test_suites_.rend(),
TestSuiteNameIs(test_suite_name));
if (test_suite != test_suites_.rend()) return *test_suite;
// No. Let's create one.
auto* const new_test_suite =
new TestSuite(test_suite_name, type_param, set_up_tc, tear_down_tc);
const UnitTestFilter death_test_suite_filter(kDeathTestSuiteFilter);
// Is this a death test suite?
if (death_test_suite_filter.MatchesName(test_suite_name)) {
// Yes. Inserts the test suite after the last death test suite
// defined so far. This only works when the test suites haven't
// been shuffled. Otherwise we may end up running a death test
// after a non-death test.
++last_death_test_suite_;
test_suites_.insert(test_suites_.begin() + last_death_test_suite_,
new_test_suite);
} else {
// No. Appends to the end of the list.
test_suites_.push_back(new_test_suite);
}
test_suite_indices_.push_back(static_cast<int>(test_suite_indices_.size()));
return new_test_suite;
} | O0 | cpp | testing::internal::UnitTestImpl::GetTestSuite(char const*, char const*, void (*)(), void (*)()):
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp # imm = 0x1E0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0x198(%rbp)
addq $0xb8, %rsi
movq %rsi, -0x190(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x52d00
movq -0x190(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x52d50
movq -0x18(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0xbce0
movq -0x188(%rbp), %rsi
movq -0x180(%rbp), %rdx
leaq -0x88(%rbp), %rdi
callq 0x13a30
jmp 0x44eab
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x52da0
jmp 0x44ebd
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x48(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x52c10
jmp 0x44ed4
leaq -0x68(%rbp), %rdi
callq 0x52dd0
leaq -0x88(%rbp), %rdi
callq 0xbe58
leaq -0x89(%rbp), %rdi
callq 0xb730
movq -0x198(%rbp), %rsi
addq $0xb8, %rsi
leaq -0xa8(%rbp), %rdi
callq 0x52d50
leaq -0x38(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x52df0
testb $0x1, %al
jne 0x44f25
jmp 0x44f9a
leaq -0x38(%rbp), %rdi
callq 0x52e20
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x45286
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x44f89
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x44f7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x52dd0
leaq -0x88(%rbp), %rdi
callq 0xbe58
leaq -0x89(%rbp), %rdi
callq 0xb730
jmp 0x45293
movl $0x108, %edi # imm = 0x108
callq 0xb660
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1a0(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x34010
jmp 0x44fc8
movq -0x1a0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x121(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0xbce0
movq -0x1a8(%rbp), %rdx
leaq 0x2d7b9(%rip), %rsi # 0x727b0
leaq -0x120(%rbp), %rdi
callq 0x13a30
jmp 0x45005
leaq -0x100(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x2c0b0
jmp 0x4501a
leaq -0x120(%rbp), %rdi
callq 0xbe58
leaq -0x121(%rbp), %rdi
callq 0xb730
movq -0x18(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq -0x149(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0xbce0
movq -0x1b8(%rbp), %rsi
movq -0x1b0(%rbp), %rdx
leaq -0x148(%rbp), %rdi
callq 0x13a30
jmp 0x4506c
leaq -0x100(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x2c370
movb %al, -0x1b9(%rbp)
jmp 0x45087
leaq -0x148(%rbp), %rdi
callq 0xbe58
leaq -0x149(%rbp), %rdi
callq 0xb730
movb -0x1b9(%rbp), %al
testb $0x1, %al
jne 0x450ae
jmp 0x4520c
movq -0x198(%rbp), %rdi
movl 0x164(%rdi), %eax
incl %eax
movl %eax, 0x164(%rdi)
addq $0xb8, %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x53050
movq %rax, %rcx
movq -0x198(%rbp), %rax
movq %rcx, -0x168(%rbp)
movslq 0x164(%rax), %rsi
leaq -0x168(%rbp), %rdi
callq 0x53080
movq %rax, -0x160(%rbp)
leaq -0x158(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x530c0
movq -0x1d0(%rbp), %rdi
movq -0x158(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x52e50
movq %rax, -0x1c8(%rbp)
jmp 0x45137
movq -0x1c8(%rbp), %rax
movq %rax, -0x170(%rbp)
jmp 0x4522a
movq -0x1a0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
movl $0x108, %esi # imm = 0x108
callq 0xb690
jmp 0x45293
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x451a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x120(%rbp), %rdi
callq 0xbe58
leaq -0x121(%rbp), %rdi
callq 0xb730
jmp 0x45293
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x451e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x148(%rbp), %rdi
callq 0xbe58
leaq -0x149(%rbp), %rdi
callq 0xb730
jmp 0x45278
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x45278
movq -0x198(%rbp), %rdi
addq $0xb8, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x53100
jmp 0x45228
jmp 0x4522a
movq -0x198(%rbp), %rdi
addq $0xd0, %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x50c80
movq -0x1d8(%rbp), %rdi
movl %eax, -0x174(%rbp)
leaq -0x174(%rbp), %rsi
callq 0x50c50
jmp 0x4525f
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x2c3f0
jmp 0x45286
leaq -0x100(%rbp), %rdi
callq 0x2c3f0
jmp 0x45293
movq -0x8(%rbp), %rax
addq $0x1e0, %rsp # imm = 0x1E0
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0xbcd0
nop
| _ZN7testing8internal12UnitTestImpl12GetTestSuiteEPKcS3_PFvvES5_:
push rbp
mov rbp, rsp
sub rsp, 1E0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov rsi, [rbp+var_10]
mov [rbp+var_198], rsi
add rsi, 0B8h
mov [rbp+var_190], rsi
lea rdi, [rbp+var_40]
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE6rbeginEv; std::vector<testing::TestSuite *>::rbegin(void)
mov rsi, [rbp+var_190]
lea rdi, [rbp+var_48]
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE4rendEv; std::vector<testing::TestSuite *>::rend(void)
mov rax, [rbp+var_18]
mov [rbp+var_188], rax
lea rdi, [rbp+var_89]
mov [rbp+var_180], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rbp+var_188]
mov rdx, [rbp+var_180]
lea rdi, [rbp+var_88]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_44EAB:
lea rdi, [rbp+var_68]
lea rsi, [rbp+var_88]
call _ZN7testing8internal15TestSuiteNameIsC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::TestSuiteNameIs::TestSuiteNameIs(std::string const&)
jmp short $+2
loc_44EBD:
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_40]
lea rdx, [rbp+var_48]
lea rcx, [rbp+var_68]
call _ZSt7find_ifISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPPN7testing9TestSuiteESt6vectorIS5_SaIS5_EEEEENS3_8internal15TestSuiteNameIsEET_SE_SE_T0_; std::find_if<std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>,testing::internal::TestSuiteNameIs>(std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>,std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>,testing::internal::TestSuiteNameIs)
jmp short $+2
loc_44ED4:
lea rdi, [rbp+var_68]; this
call _ZN7testing8internal15TestSuiteNameIsD2Ev; testing::internal::TestSuiteNameIs::~TestSuiteNameIs()
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_89]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rsi, [rbp+var_198]
add rsi, 0B8h
lea rdi, [rbp+var_A8]
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE4rendEv; std::vector<testing::TestSuite *>::rend(void)
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_A8]
call _ZStneIN9__gnu_cxx17__normal_iteratorIPPN7testing9TestSuiteESt6vectorIS4_SaIS4_EEEEEbRKSt16reverse_iteratorIT_ESE_; std::operator!=<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>(std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>> const&,std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>> const&)
test al, 1
jnz short loc_44F25
jmp short loc_44F9A
loc_44F25:
lea rdi, [rbp+var_38]
call _ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPPN7testing9TestSuiteESt6vectorIS4_SaIS4_EEEEEdeEv; std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>::operator*(void)
mov rax, [rax]
mov [rbp+var_8], rax
jmp loc_45286
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_44F89
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_44F7D
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_68]; this
call _ZN7testing8internal15TestSuiteNameIsD2Ev; testing::internal::TestSuiteNameIs::~TestSuiteNameIs()
loc_44F7D:
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_44F89:
lea rdi, [rbp+var_89]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_45293
loc_44F9A:
mov edi, 108h; unsigned __int64
call __Znwm; operator new(ulong)
mov rdi, rax; this
mov rax, rdi
mov [rbp+var_1A0], rax
mov rsi, [rbp+var_18]; char *
mov rdx, [rbp+var_20]; char *
mov rcx, [rbp+var_28]; void (*)(void)
mov r8, [rbp+var_30]; void (*)(void)
call _ZN7testing9TestSuiteC2EPKcS2_PFvvES4_; testing::TestSuite::TestSuite(char const*,char const*,void (*)(void),void (*)(void))
jmp short $+2
loc_44FC8:
mov rax, [rbp+var_1A0]
mov [rbp+var_B0], rax
lea rdi, [rbp+var_121]
mov [rbp+var_1A8], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rbp+var_1A8]
lea rsi, _ZN7testingL21kDeathTestSuiteFilterE; "*DeathTest:*DeathTest/*"
lea rdi, [rbp+var_120]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_45005:
lea rdi, [rbp+var_100]
lea rsi, [rbp+var_120]
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
jmp short $+2
loc_4501A:
lea rdi, [rbp+var_120]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_121]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, [rbp+var_18]
mov [rbp+var_1B8], rax
lea rdi, [rbp+var_149]
mov [rbp+var_1B0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rbp+var_1B8]
mov rdx, [rbp+var_1B0]
lea rdi, [rbp+var_148]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_4506C:
lea rdi, [rbp+var_100]
lea rsi, [rbp+var_148]
call _ZNK7testing8internal12_GLOBAL__N_114UnitTestFilter11MatchesNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(std::string const&)
mov [rbp+var_1B9], al
jmp short $+2
loc_45087:
lea rdi, [rbp+var_148]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_149]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov al, [rbp+var_1B9]
test al, 1
jnz short loc_450AE
jmp loc_4520C
loc_450AE:
mov rdi, [rbp+var_198]
mov eax, [rdi+164h]
inc eax
mov [rdi+164h], eax
add rdi, 0B8h
mov [rbp+var_1D0], rdi
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE5beginEv; std::vector<testing::TestSuite *>::begin(void)
mov rcx, rax
mov rax, [rbp+var_198]
mov [rbp+var_168], rcx
movsxd rsi, dword ptr [rax+164h]
lea rdi, [rbp+var_168]
call _ZNK9__gnu_cxx17__normal_iteratorIPPN7testing9TestSuiteESt6vectorIS3_SaIS3_EEEplEl; __gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>::operator+(long)
mov [rbp+var_160], rax
lea rdi, [rbp+var_158]
lea rsi, [rbp+var_160]
call _ZN9__gnu_cxx17__normal_iteratorIPKPN7testing9TestSuiteESt6vectorIS3_SaIS3_EEEC2IPS3_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE
mov rdi, [rbp+var_1D0]
mov rsi, [rbp+var_158]
lea rdx, [rbp+var_B0]
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EERS7_; std::vector<testing::TestSuite *>::insert(__gnu_cxx::__normal_iterator<testing::TestSuite * const*,std::vector<testing::TestSuite *>>,testing::TestSuite * const&)
mov [rbp+var_1C8], rax
jmp short $+2
loc_45137:
mov rax, [rbp+var_1C8]
mov [rbp+var_170], rax
jmp loc_4522A
mov rdi, [rbp+var_1A0]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
mov esi, 108h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_45293
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_451A4
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_120]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_451A4:
lea rdi, [rbp+var_121]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_45293
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_451E7
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_148]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_451E7:
lea rdi, [rbp+var_149]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_45278
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_45278
loc_4520C:
mov rdi, [rbp+var_198]
add rdi, 0B8h
lea rsi, [rbp+var_B0]
call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EE9push_backERKS2_; std::vector<testing::TestSuite *>::push_back(testing::TestSuite * const&)
jmp short $+2
loc_45228:
jmp short $+2
loc_4522A:
mov rdi, [rbp+var_198]
add rdi, 0D0h
mov [rbp+var_1D8], rdi
call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void)
mov rdi, [rbp+var_1D8]
mov [rbp+var_174], eax
lea rsi, [rbp+var_174]
call _ZNSt6vectorIiSaIiEE9push_backEOi; std::vector<int>::push_back(int &&)
jmp short $+2
loc_4525F:
mov rax, [rbp+var_B0]
mov [rbp+var_8], rax
lea rdi, [rbp+var_100]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
jmp short loc_45286
loc_45278:
lea rdi, [rbp+var_100]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
jmp short loc_45293
loc_45286:
mov rax, [rbp+var_8]
add rsp, 1E0h
pop rbp
retn
loc_45293:
mov rdi, [rbp+var_98]
call __Unwind_Resume
| testing::TestSuite * testing::internal::UnitTestImpl::GetTestSuite(
testing::internal::UnitTestImpl *this,
char *a2,
char *a3,
void (*a4)(void),
void (*a5)(void))
{
char *v5; // rsi
char v7; // [rsp+27h] [rbp-1B9h]
char *v8; // [rsp+28h] [rbp-1B8h]
testing::TestSuite *v9; // [rsp+40h] [rbp-1A0h]
char *v10; // [rsp+58h] [rbp-188h]
int v11; // [rsp+6Ch] [rbp-174h] BYREF
long long v12; // [rsp+70h] [rbp-170h]
long long v13; // [rsp+78h] [rbp-168h] BYREF
long long v14; // [rsp+80h] [rbp-160h] BYREF
long long v15; // [rsp+88h] [rbp-158h] BYREF
char v16; // [rsp+97h] [rbp-149h] BYREF
_BYTE v17[39]; // [rsp+98h] [rbp-148h] BYREF
char v18; // [rsp+BFh] [rbp-121h] BYREF
_BYTE v19[32]; // [rsp+C0h] [rbp-120h] BYREF
_BYTE v20[80]; // [rsp+E0h] [rbp-100h] BYREF
testing::TestSuite *v21; // [rsp+130h] [rbp-B0h] BYREF
_BYTE v22[12]; // [rsp+138h] [rbp-A8h] BYREF
char v23; // [rsp+157h] [rbp-89h] BYREF
_BYTE v24[32]; // [rsp+158h] [rbp-88h] BYREF
_BYTE v25[32]; // [rsp+178h] [rbp-68h] BYREF
char v26[8]; // [rsp+198h] [rbp-48h] BYREF
char v27[8]; // [rsp+1A0h] [rbp-40h] BYREF
char v28[8]; // [rsp+1A8h] [rbp-38h] BYREF
void (*v29)(void); // [rsp+1B0h] [rbp-30h]
void (*v30)(void); // [rsp+1B8h] [rbp-28h]
char *v31; // [rsp+1C0h] [rbp-20h]
char *v32; // [rsp+1C8h] [rbp-18h]
testing::internal::UnitTestImpl *v33; // [rsp+1D0h] [rbp-10h]
testing::TestSuite *v34; // [rsp+1D8h] [rbp-8h]
v33 = this;
v32 = a2;
v31 = a3;
v30 = a4;
v29 = a5;
std::vector<testing::TestSuite *>::rbegin(v27);
std::vector<testing::TestSuite *>::rend(v26, (char *)this + 184);
v10 = v32;
std::allocator<char>::allocator(&v23, (char *)this + 184);
std::string::basic_string<std::allocator<char>>((long long)v24, (long long)v10, (long long)&v23);
testing::internal::TestSuiteNameIs::TestSuiteNameIs(v25, v24);
std::find_if<std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>,testing::internal::TestSuiteNameIs>(
v28,
v27,
v26,
v25);
testing::internal::TestSuiteNameIs::~TestSuiteNameIs((testing::internal::TestSuiteNameIs *)v25);
std::string::~string(v24);
std::allocator<char>::~allocator(&v23);
std::vector<testing::TestSuite *>::rend(v22, (char *)this + 184);
if ( (std::operator!=<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>(v28, v22) & 1) != 0 )
return *(testing::TestSuite **)std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>>::operator*(v28);
v9 = (testing::TestSuite *)operator new(0x108uLL);
v5 = v32;
testing::TestSuite::TestSuite(v9, v32, v31, v30, v29);
v21 = v9;
std::allocator<char>::allocator(&v18, v5);
std::string::basic_string<std::allocator<char>>((long long)v19, (long long)"*DeathTest:*DeathTest/*", (long long)&v18);
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v20, (long long)v19);
std::string::~string(v19);
std::allocator<char>::~allocator(&v18);
v8 = v32;
std::allocator<char>::allocator(&v16, v19);
std::string::basic_string<std::allocator<char>>((long long)v17, (long long)v8, (long long)&v16);
v7 = testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName((long long)v20, (long long)v17);
std::string::~string(v17);
std::allocator<char>::~allocator(&v16);
if ( (v7 & 1) != 0 )
{
++*((_DWORD *)this + 89);
v13 = std::vector<testing::TestSuite *>::begin();
v14 = __gnu_cxx::__normal_iterator<testing::TestSuite **,std::vector<testing::TestSuite *>>::operator+(
&v13,
*((int *)this + 89));
__gnu_cxx::__normal_iterator<testing::TestSuite * const*,std::vector<testing::TestSuite *>>::__normal_iterator<testing::TestSuite **>(
&v15,
&v14);
v12 = std::vector<testing::TestSuite *>::insert((char *)this + 184, v15, &v21);
}
else
{
std::vector<testing::TestSuite *>::push_back((char *)this + 184, &v21);
}
v11 = std::vector<int>::size((char *)this + 208);
std::vector<int>::push_back((char *)this + 208, &v11);
v34 = v21;
testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v20);
return v34;
}
| GetTestSuite:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1e0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV RSI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x198],RSI
ADD RSI,0xb8
MOV qword ptr [RBP + -0x190],RSI
LEA RDI,[RBP + -0x40]
CALL 0x00152d00
MOV RSI,qword ptr [RBP + -0x190]
LEA RDI,[RBP + -0x48]
CALL 0x00152d50
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x188],RAX
LEA RDI,[RBP + -0x89]
MOV qword ptr [RBP + -0x180],RDI
CALL 0x0010bce0
MOV RSI,qword ptr [RBP + -0x188]
MOV RDX,qword ptr [RBP + -0x180]
LAB_00144e9d:
LEA RDI,[RBP + -0x88]
CALL 0x00113a30
JMP 0x00144eab
LAB_00144eab:
LEA RDI,[RBP + -0x68]
LEA RSI,[RBP + -0x88]
CALL 0x00152da0
JMP 0x00144ebd
LAB_00144ebd:
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x40]
LEA RDX,[RBP + -0x48]
LEA RCX,[RBP + -0x68]
CALL 0x00152c10
LAB_00144ed2:
JMP 0x00144ed4
LAB_00144ed4:
LEA RDI,[RBP + -0x68]
CALL 0x00152dd0
LEA RDI,[RBP + -0x88]
CALL 0x0010be58
LEA RDI,[RBP + -0x89]
CALL 0x0010b730
MOV RSI,qword ptr [RBP + -0x198]
ADD RSI,0xb8
LEA RDI,[RBP + -0xa8]
CALL 0x00152d50
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0xa8]
CALL 0x00152df0
TEST AL,0x1
JNZ 0x00144f25
JMP 0x00144f9a
LAB_00144f25:
LEA RDI,[RBP + -0x38]
CALL 0x00152e20
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00145286
LAB_00144f9a:
MOV EDI,0x108
CALL 0x0010b660
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RBP + -0x1a0],RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
LAB_00144fc1:
CALL 0x00134010
JMP 0x00144fc8
LAB_00144fc8:
MOV RAX,qword ptr [RBP + -0x1a0]
MOV qword ptr [RBP + -0xb0],RAX
LEA RDI,[RBP + -0x121]
MOV qword ptr [RBP + -0x1a8],RDI
CALL 0x0010bce0
MOV RDX,qword ptr [RBP + -0x1a8]
LAB_00144ff0:
LEA RSI,[0x1727b0]
LEA RDI,[RBP + -0x120]
CALL 0x00113a30
JMP 0x00145005
LAB_00145005:
LEA RDI,[RBP + -0x100]
LEA RSI,[RBP + -0x120]
CALL 0x0012c0b0
JMP 0x0014501a
LAB_0014501a:
LEA RDI,[RBP + -0x120]
CALL 0x0010be58
LEA RDI,[RBP + -0x121]
CALL 0x0010b730
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x1b8],RAX
LEA RDI,[RBP + -0x149]
MOV qword ptr [RBP + -0x1b0],RDI
CALL 0x0010bce0
MOV RSI,qword ptr [RBP + -0x1b8]
MOV RDX,qword ptr [RBP + -0x1b0]
LAB_0014505e:
LEA RDI,[RBP + -0x148]
CALL 0x00113a30
JMP 0x0014506c
LAB_0014506c:
LEA RDI,[RBP + -0x100]
LEA RSI,[RBP + -0x148]
CALL 0x0012c370
MOV byte ptr [RBP + -0x1b9],AL
JMP 0x00145087
LAB_00145087:
LEA RDI,[RBP + -0x148]
CALL 0x0010be58
LEA RDI,[RBP + -0x149]
CALL 0x0010b730
MOV AL,byte ptr [RBP + -0x1b9]
TEST AL,0x1
JNZ 0x001450ae
JMP 0x0014520c
LAB_001450ae:
MOV RDI,qword ptr [RBP + -0x198]
MOV EAX,dword ptr [RDI + 0x164]
INC EAX
MOV dword ptr [RDI + 0x164],EAX
ADD RDI,0xb8
MOV qword ptr [RBP + -0x1d0],RDI
CALL 0x00153050
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x198]
MOV qword ptr [RBP + -0x168],RCX
MOVSXD RSI,dword ptr [RAX + 0x164]
LEA RDI,[RBP + -0x168]
CALL 0x00153080
MOV qword ptr [RBP + -0x160],RAX
LEA RDI,[RBP + -0x158]
LEA RSI,[RBP + -0x160]
CALL 0x001530c0
MOV RDI,qword ptr [RBP + -0x1d0]
MOV RSI,qword ptr [RBP + -0x158]
LAB_00145122:
LEA RDX,[RBP + -0xb0]
CALL 0x00152e50
MOV qword ptr [RBP + -0x1c8],RAX
JMP 0x00145137
LAB_00145137:
MOV RAX,qword ptr [RBP + -0x1c8]
MOV qword ptr [RBP + -0x170],RAX
JMP 0x0014522a
LAB_0014520c:
MOV RDI,qword ptr [RBP + -0x198]
ADD RDI,0xb8
LEA RSI,[RBP + -0xb0]
CALL 0x00153100
JMP 0x00145228
LAB_00145228:
JMP 0x0014522a
LAB_0014522a:
MOV RDI,qword ptr [RBP + -0x198]
ADD RDI,0xd0
MOV qword ptr [RBP + -0x1d8],RDI
CALL 0x00150c80
MOV RDI,qword ptr [RBP + -0x1d8]
MOV dword ptr [RBP + -0x174],EAX
LEA RSI,[RBP + -0x174]
CALL 0x00150c50
LAB_0014525d:
JMP 0x0014525f
LAB_0014525f:
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[RBP + -0x100]
CALL 0x0012c3f0
JMP 0x00145286
LAB_00145286:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x1e0
POP RBP
RET
|
/* testing::internal::UnitTestImpl::GetTestSuite(char const*, char const*, void (*)(), void (*)())
*/
TestSuite * __thiscall
testing::internal::UnitTestImpl::GetTestSuite
(UnitTestImpl *this,char *param_1,char *param_2,_func_void *param_3,_func_void *param_4)
{
char *pcVar1;
bool bVar2;
byte bVar3;
int8 *puVar4;
TestSuite *this_00;
int local_17c;
int8 local_178;
int8 local_170;
int8 local_168;
int8 local_160;
allocator local_151;
string local_150 [39];
allocator local_129;
string local_128 [32];
UnitTestFilter local_108 [80];
TestSuite *local_b8;
reverse_iterator local_b0 [31];
allocator local_91;
string local_90 [32];
TestSuiteNameIs local_70 [32];
int1 local_50 [8];
int1 local_48 [8];
reverse_iterator local_40 [8];
_func_void *local_38;
_func_void *local_30;
char *local_28;
char *local_20;
UnitTestImpl *local_18;
TestSuite *local_10;
local_38 = param_4;
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
local_18 = this;
std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::rbegin();
std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::rend();
pcVar1 = local_20;
std::allocator<char>::allocator();
/* try { // try from 00144e9d to 00144ea8 has its CatchHandler @ 00144f3a */
std::__cxx11::string::string<std::allocator<char>>(local_90,pcVar1,&local_91);
/* try { // try from 00144eab to 00144eba has its CatchHandler @ 00144f4e */
TestSuiteNameIs::TestSuiteNameIs(local_70,local_90);
/* try { // try from 00144ebd to 00144ed1 has its CatchHandler @ 00144f62 */
std::
find_if<std::reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite**,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>>,testing::internal::TestSuiteNameIs>
(local_40,local_48,local_50,local_70);
TestSuiteNameIs::~TestSuiteNameIs(local_70);
std::__cxx11::string::~string(local_90);
std::allocator<char>::~allocator((allocator<char> *)&local_91);
std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::rend();
bVar2 = std::operator!=(local_40,local_b0);
if (bVar2) {
puVar4 = (int8 *)
std::
reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite**,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>>
::operator*((reverse_iterator<__gnu_cxx::__normal_iterator<testing::TestSuite**,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>>
*)local_40);
local_10 = (TestSuite *)*puVar4;
}
else {
this_00 = (TestSuite *)operator_new(0x108);
/* try { // try from 00144fc1 to 00144fc5 has its CatchHandler @ 0014514a */
TestSuite::TestSuite(this_00,local_20,local_28,local_30,local_38);
local_b8 = this_00;
std::allocator<char>::allocator();
/* try { // try from 00144ff0 to 00145002 has its CatchHandler @ 00145172 */
std::__cxx11::string::string<std::allocator<char>>
(local_128,"*DeathTest:*DeathTest/*",&local_129);
/* try { // try from 00145005 to 00145017 has its CatchHandler @ 00145186 */
(anonymous_namespace)::UnitTestFilter::UnitTestFilter(local_108,local_128);
std::__cxx11::string::~string(local_128);
std::allocator<char>::~allocator((allocator<char> *)&local_129);
pcVar1 = local_20;
std::allocator<char>::allocator();
/* try { // try from 0014505e to 00145069 has its CatchHandler @ 001451b5 */
std::__cxx11::string::string<std::allocator<char>>(local_150,pcVar1,&local_151);
/* try { // try from 0014506c to 0014507e has its CatchHandler @ 001451c9 */
bVar3 = (anonymous_namespace)::UnitTestFilter::MatchesName(local_108,local_150);
std::__cxx11::string::~string(local_150);
std::allocator<char>::~allocator((allocator<char> *)&local_151);
if ((bVar3 & 1) == 0) {
std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::push_back
((vector<testing::TestSuite*,std::allocator<testing::TestSuite*>> *)(this + 0xb8),
&local_b8);
}
else {
*(int *)(this + 0x164) = *(int *)(this + 0x164) + 1;
local_170 = std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::begin
((vector<testing::TestSuite*,std::allocator<testing::TestSuite*>> *)
(this + 0xb8));
local_168 = __gnu_cxx::
__normal_iterator<testing::TestSuite**,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>
::operator+((__normal_iterator<testing::TestSuite**,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>
*)&local_170,(long)*(int *)(this + 0x164));
__gnu_cxx::
__normal_iterator<testing::TestSuite*const*,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>
::__normal_iterator<testing::TestSuite**>
((__normal_iterator<testing::TestSuite*const*,std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>>
*)&local_160,(__normal_iterator *)&local_168);
/* try { // try from 00145122 to 0014525c has its CatchHandler @ 001451f8 */
local_178 = std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::insert
((vector<testing::TestSuite*,std::allocator<testing::TestSuite*>> *)
(this + 0xb8),local_160,&local_b8);
}
local_17c = std::vector<int,std::allocator<int>>::size
((vector<int,std::allocator<int>> *)(this + 0xd0));
std::vector<int,std::allocator<int>>::push_back
((vector<int,std::allocator<int>> *)(this + 0xd0),&local_17c);
local_10 = local_b8;
(anonymous_namespace)::UnitTestFilter::~UnitTestFilter(local_108);
}
return local_10;
}
| |
50,043 | Render::CalculateTextureHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, float) | csit-sgu[P]mit-game-2025_1/internal.hpp | TextureHash
CalculateTextureHash(std::string path, float width, float height) {
const char *path_bytes = path.c_str();
char *width_bytes = reinterpret_cast<char *>(&width);
char *height_bytes = reinterpret_cast<char *>(&height);
uint64_t mod64 = 4'294'967'291;
size_t path_len = strlen(path_bytes);
uint64_t s1 = 1;
uint64_t s2 = 0;
for (int i = 0; i < path_len; ++i) {
s1 = (s1 + path_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
for (int i = 0; i < 4; ++i) {
s1 = (s1 + width_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
for (int i = 0; i < 4; ++i) {
s1 = (s1 + height_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
return (s2 << 32) | s1;
} | O0 | cpp | Render::CalculateTextureHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, float):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x68(%rbp)
movq %rdi, %rax
movq -0x68(%rbp), %rdi
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movss %xmm1, -0x18(%rbp)
callq 0xda30
movq %rax, -0x20(%rbp)
leaq -0x14(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0xfffffffb, %eax # imm = 0xFFFFFFFB
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
callq 0xa230
movq %rax, -0x40(%rbp)
movq $0x1, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movslq -0x54(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0xd844
movq -0x48(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq -0x54(%rbp), %rdx
movsbq (%rcx,%rdx), %rcx
addq %rcx, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rax
addq -0x48(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0xd7fb
movl $0x0, -0x58(%rbp)
cmpl $0x4, -0x58(%rbp)
jge 0xd890
movq -0x48(%rbp), %rax
movq -0x28(%rbp), %rcx
movslq -0x58(%rbp), %rdx
movsbq (%rcx,%rdx), %rcx
addq %rcx, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rax
addq -0x48(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0xd84b
movl $0x0, -0x5c(%rbp)
cmpl $0x4, -0x5c(%rbp)
jge 0xd8dc
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq -0x5c(%rbp), %rdx
movsbq (%rcx,%rdx), %rcx
addq %rcx, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rax
addq -0x48(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x38(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0xd897
movq -0x50(%rbp), %rax
shlq $0x20, %rax
orq -0x48(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
| _ZN6Render20CalculateTextureHashENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEff:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_68], rsi
mov rax, rdi
mov rdi, [rbp+var_68]
mov [rbp+var_8], rax
mov [rbp+var_10], rdi
movss [rbp+var_14], xmm0
movss [rbp+var_18], xmm1
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov [rbp+var_20], rax
lea rax, [rbp+var_14]
mov [rbp+var_28], rax
lea rax, [rbp+var_18]
mov [rbp+var_30], rax
mov eax, 0FFFFFFFBh
mov [rbp+var_38], rax
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_40], rax
mov [rbp+var_48], 1
mov [rbp+var_50], 0
mov [rbp+var_54], 0
loc_D7FB:
movsxd rax, [rbp+var_54]
cmp rax, [rbp+var_40]
jnb short loc_D844
mov rax, [rbp+var_48]
mov rcx, [rbp+var_20]
movsxd rdx, [rbp+var_54]
movsx rcx, byte ptr [rcx+rdx]
add rax, rcx
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_48], rdx
mov rax, [rbp+var_50]
add rax, [rbp+var_48]
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_50], rdx
mov eax, [rbp+var_54]
add eax, 1
mov [rbp+var_54], eax
jmp short loc_D7FB
loc_D844:
mov [rbp+var_58], 0
loc_D84B:
cmp [rbp+var_58], 4
jge short loc_D890
mov rax, [rbp+var_48]
mov rcx, [rbp+var_28]
movsxd rdx, [rbp+var_58]
movsx rcx, byte ptr [rcx+rdx]
add rax, rcx
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_48], rdx
mov rax, [rbp+var_50]
add rax, [rbp+var_48]
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_50], rdx
mov eax, [rbp+var_58]
add eax, 1
mov [rbp+var_58], eax
jmp short loc_D84B
loc_D890:
mov [rbp+var_5C], 0
loc_D897:
cmp [rbp+var_5C], 4
jge short loc_D8DC
mov rax, [rbp+var_48]
mov rcx, [rbp+var_30]
movsxd rdx, [rbp+var_5C]
movsx rcx, byte ptr [rcx+rdx]
add rax, rcx
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_48], rdx
mov rax, [rbp+var_50]
add rax, [rbp+var_48]
xor ecx, ecx
mov edx, ecx
div [rbp+var_38]
mov [rbp+var_50], rdx
mov eax, [rbp+var_5C]
add eax, 1
mov [rbp+var_5C], eax
jmp short loc_D897
loc_D8DC:
mov rax, [rbp+var_50]
shl rax, 20h
or rax, [rbp+var_48]
add rsp, 70h
pop rbp
retn
| unsigned long long Render::CalculateTextureHash(long long a1, long long a2, float a3, float a4)
{
int k; // [rsp+14h] [rbp-5Ch]
int j; // [rsp+18h] [rbp-58h]
int i; // [rsp+1Ch] [rbp-54h]
unsigned long long v8; // [rsp+20h] [rbp-50h]
unsigned long long v9; // [rsp+28h] [rbp-48h]
unsigned long long v10; // [rsp+30h] [rbp-40h]
long long v11; // [rsp+50h] [rbp-20h]
float v12; // [rsp+58h] [rbp-18h]
float v13; // [rsp+5Ch] [rbp-14h]
long long v14; // [rsp+60h] [rbp-10h]
long long v15; // [rsp+68h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = std::string::c_str(a2);
v10 = strlen(v11);
v9 = 1LL;
v8 = 0LL;
for ( i = 0; i < v10; ++i )
{
v9 = (*(char *)(v11 + i) + v9) % 0xFFFFFFFB;
v8 = (v9 + v8) % 0xFFFFFFFB;
}
for ( j = 0; j < 4; ++j )
{
v9 = (*((char *)&v13 + j) + v9) % 0xFFFFFFFB;
v8 = (v9 + v8) % 0xFFFFFFFB;
}
for ( k = 0; k < 4; ++k )
{
v9 = (*((char *)&v12 + k) + v9) % 0xFFFFFFFB;
v8 = (v9 + v8) % 0xFFFFFFFB;
}
return v9 | (v8 << 32);
}
| CalculateTextureHash:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x68],RSI
MOV RAX,RDI
MOV RDI,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x10],RDI
MOVSS dword ptr [RBP + -0x14],XMM0
MOVSS dword ptr [RBP + -0x18],XMM1
CALL 0x0010da30
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[RBP + -0x14]
MOV qword ptr [RBP + -0x28],RAX
LEA RAX,[RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,0xfffffffb
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010a230
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x48],0x1
MOV qword ptr [RBP + -0x50],0x0
MOV dword ptr [RBP + -0x54],0x0
LAB_0010d7fb:
MOVSXD RAX,dword ptr [RBP + -0x54]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x0010d844
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x20]
MOVSXD RDX,dword ptr [RBP + -0x54]
MOVSX RCX,byte ptr [RCX + RDX*0x1]
ADD RAX,RCX
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x48],RDX
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,qword ptr [RBP + -0x48]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x50],RDX
MOV EAX,dword ptr [RBP + -0x54]
ADD EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x0010d7fb
LAB_0010d844:
MOV dword ptr [RBP + -0x58],0x0
LAB_0010d84b:
CMP dword ptr [RBP + -0x58],0x4
JGE 0x0010d890
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x28]
MOVSXD RDX,dword ptr [RBP + -0x58]
MOVSX RCX,byte ptr [RCX + RDX*0x1]
ADD RAX,RCX
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x48],RDX
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,qword ptr [RBP + -0x48]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x50],RDX
MOV EAX,dword ptr [RBP + -0x58]
ADD EAX,0x1
MOV dword ptr [RBP + -0x58],EAX
JMP 0x0010d84b
LAB_0010d890:
MOV dword ptr [RBP + -0x5c],0x0
LAB_0010d897:
CMP dword ptr [RBP + -0x5c],0x4
JGE 0x0010d8dc
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RDX,dword ptr [RBP + -0x5c]
MOVSX RCX,byte ptr [RCX + RDX*0x1]
ADD RAX,RCX
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x48],RDX
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,qword ptr [RBP + -0x48]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x50],RDX
MOV EAX,dword ptr [RBP + -0x5c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x0010d897
LAB_0010d8dc:
MOV RAX,qword ptr [RBP + -0x50]
SHL RAX,0x20
OR RAX,qword ptr [RBP + -0x48]
ADD RSP,0x70
POP RBP
RET
|
/* Render::CalculateTextureHash(std::__cxx11::string, float, float) */
ulong __thiscall
Render::CalculateTextureHash(int4 param_1,int4 param_2,Render *this,string *param_4)
{
char *__s;
size_t sVar1;
int local_64;
int local_60;
int local_5c;
ulong local_58;
ulong local_50;
int4 local_20;
int4 local_1c;
string *local_18;
Render *local_10;
local_20 = param_2;
local_1c = param_1;
local_18 = param_4;
local_10 = this;
__s = (char *)std::__cxx11::string::c_str(param_4);
sVar1 = strlen(__s);
local_50 = 1;
local_58 = 0;
for (local_5c = 0; (ulong)(long)local_5c < sVar1; local_5c = local_5c + 1) {
local_50 = (local_50 + (long)__s[local_5c]) % 0xfffffffb;
local_58 = (local_58 + local_50) % 0xfffffffb;
}
for (local_60 = 0; local_60 < 4; local_60 = local_60 + 1) {
local_50 = (local_50 + (long)*(char *)((long)&local_1c + (long)local_60)) % 0xfffffffb;
local_58 = (local_58 + local_50) % 0xfffffffb;
}
for (local_64 = 0; local_64 < 4; local_64 = local_64 + 1) {
local_50 = (local_50 + (long)*(char *)((long)&local_20 + (long)local_64)) % 0xfffffffb;
local_58 = (local_58 + local_50) % 0xfffffffb;
}
return local_58 << 0x20 | local_50;
}
| |
50,044 | Render::CalculateTextureHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, float) | csit-sgu[P]mit-game-2025_1/internal.hpp | TextureHash
CalculateTextureHash(std::string path, float width, float height) {
const char *path_bytes = path.c_str();
char *width_bytes = reinterpret_cast<char *>(&width);
char *height_bytes = reinterpret_cast<char *>(&height);
uint64_t mod64 = 4'294'967'291;
size_t path_len = strlen(path_bytes);
uint64_t s1 = 1;
uint64_t s2 = 0;
for (int i = 0; i < path_len; ++i) {
s1 = (s1 + path_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
for (int i = 0; i < 4; ++i) {
s1 = (s1 + width_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
for (int i = 0; i < 4; ++i) {
s1 = (s1 + height_bytes[i]) % mod64;
s2 = (s2 + s1) % mod64;
}
return (s2 << 32) | s1;
} | O1 | cpp | Render::CalculateTextureHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, float):
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movss %xmm1, 0x8(%rsp)
movq (%rsi), %rbx
movq %rbx, %rdi
callq 0x9230
movabsq $-0x7ffffffd7ffffff3, %r8 # imm = 0x800000028000000D
testq %rax, %rax
je 0xb172
movq %rax, %rdi
movl $0x1, %eax
xorl %r9d, %r9d
movl $0xfffffffb, %r10d # imm = 0xFFFFFFFB
xorl %ecx, %ecx
movsbq (%rbx,%r9), %rsi
addq %rax, %rsi
movq %rsi, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r10, %rdx
subq %rdx, %rsi
addq %rsi, %rcx
movq %rcx, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r10, %rdx
subq %rdx, %rcx
incq %r9
movq %rsi, %rax
cmpq %r9, %rdi
jne 0xb138
jmp 0xb179
movl $0x1, %esi
xorl %ecx, %ecx
xorl %edi, %edi
movl $0xfffffffb, %r9d # imm = 0xFFFFFFFB
movsbq 0xc(%rsp,%rdi), %rax
addq %rax, %rsi
movq %rsi, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r9, %rdx
subq %rdx, %rsi
addq %rsi, %rcx
movq %rcx, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r9, %rdx
subq %rdx, %rcx
incq %rdi
cmpq $0x4, %rdi
jne 0xb181
xorl %edi, %edi
movl $0xfffffffb, %r9d # imm = 0xFFFFFFFB
movsbq 0x8(%rsp,%rdi), %rax
addq %rax, %rsi
movq %rsi, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r9, %rdx
subq %rdx, %rsi
addq %rsi, %rcx
movq %rcx, %rax
mulq %r8
shrq $0x1f, %rdx
imulq %r9, %rdx
subq %rdx, %rcx
incq %rdi
cmpq $0x4, %rdi
jne 0xb1c0
shlq $0x20, %rcx
orq %rsi, %rcx
movq %rcx, %rax
addq $0x10, %rsp
popq %rbx
retq
nop
| _ZN6Render20CalculateTextureHashENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEff:
push rbx
sub rsp, 10h
movss [rsp+18h+var_C], xmm0
movss [rsp+18h+var_10], xmm1
mov rbx, [rsi]
mov rdi, rbx
call _strlen
mov r8, 800000028000000Dh
test rax, rax
jz short loc_B172
mov rdi, rax
mov eax, 1
xor r9d, r9d
mov r10d, 0FFFFFFFBh
xor ecx, ecx
loc_B138:
movsx rsi, byte ptr [rbx+r9]
add rsi, rax
mov rax, rsi
mul r8
shr rdx, 1Fh
imul rdx, r10
sub rsi, rdx
add rcx, rsi
mov rax, rcx
mul r8
shr rdx, 1Fh
imul rdx, r10
sub rcx, rdx
inc r9
mov rax, rsi
cmp rdi, r9
jnz short loc_B138
jmp short loc_B179
loc_B172:
mov esi, 1
xor ecx, ecx
loc_B179:
xor edi, edi
mov r9d, 0FFFFFFFBh
loc_B181:
movsx rax, byte ptr [rsp+rdi+18h+var_C]
add rsi, rax
mov rax, rsi
mul r8
shr rdx, 1Fh
imul rdx, r9
sub rsi, rdx
add rcx, rsi
mov rax, rcx
mul r8
shr rdx, 1Fh
imul rdx, r9
sub rcx, rdx
inc rdi
cmp rdi, 4
jnz short loc_B181
xor edi, edi
mov r9d, 0FFFFFFFBh
loc_B1C0:
movsx rax, byte ptr [rsp+rdi+18h+var_10]
add rsi, rax
mov rax, rsi
mul r8
shr rdx, 1Fh
imul rdx, r9
sub rsi, rdx
add rcx, rsi
mov rax, rcx
mul r8
shr rdx, 1Fh
imul rdx, r9
sub rcx, rdx
inc rdi
cmp rdi, 4
jnz short loc_B1C0
shl rcx, 20h
or rcx, rsi
mov rax, rcx
add rsp, 10h
pop rbx
retn
| unsigned long long Render::CalculateTextureHash(float a1, float a2, long long a3, _QWORD *a4)
{
long long v4; // rbx
long long v5; // rax
long long v6; // rdi
long long v7; // rax
long long v8; // r9
unsigned long long v9; // rcx
unsigned long long v10; // rsi
long long i; // rdi
long long j; // rdi
float v14; // [rsp+8h] [rbp-10h]
_DWORD v15[3]; // [rsp+Ch] [rbp-Ch]
*(float *)v15 = a1;
v14 = a2;
v4 = *a4;
v5 = strlen(*a4);
if ( v5 )
{
v6 = v5;
v7 = 1LL;
v8 = 0LL;
v9 = 0LL;
do
{
v10 = (v7 + *(char *)(v4 + v8)) % 0xFFFFFFFBuLL;
v9 = (v10 + v9) % 0xFFFFFFFB;
++v8;
v7 = v10;
}
while ( v6 != v8 );
}
else
{
v10 = 1LL;
v9 = 0LL;
}
for ( i = 0LL; i != 4; ++i )
{
v10 = (*((char *)v15 + i) + v10) % 0xFFFFFFFB;
v9 = (v10 + v9) % 0xFFFFFFFB;
}
for ( j = 0LL; j != 4; ++j )
{
v10 = (*((char *)&v15[-1] + j) + v10) % 0xFFFFFFFB;
v9 = (v10 + v9) % 0xFFFFFFFB;
}
return v10 | (v9 << 32);
}
| CalculateTextureHash:
PUSH RBX
SUB RSP,0x10
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS dword ptr [RSP + 0x8],XMM1
MOV RBX,qword ptr [RSI]
MOV RDI,RBX
CALL 0x00109230
MOV R8,-0x7ffffffd7ffffff3
TEST RAX,RAX
JZ 0x0010b172
MOV RDI,RAX
MOV EAX,0x1
XOR R9D,R9D
MOV R10D,0xfffffffb
XOR ECX,ECX
LAB_0010b138:
MOVSX RSI,byte ptr [RBX + R9*0x1]
ADD RSI,RAX
MOV RAX,RSI
MUL R8
SHR RDX,0x1f
IMUL RDX,R10
SUB RSI,RDX
ADD RCX,RSI
MOV RAX,RCX
MUL R8
SHR RDX,0x1f
IMUL RDX,R10
SUB RCX,RDX
INC R9
MOV RAX,RSI
CMP RDI,R9
JNZ 0x0010b138
JMP 0x0010b179
LAB_0010b172:
MOV ESI,0x1
XOR ECX,ECX
LAB_0010b179:
XOR EDI,EDI
MOV R9D,0xfffffffb
LAB_0010b181:
MOVSX RAX,byte ptr [RSP + RDI*0x1 + 0xc]
ADD RSI,RAX
MOV RAX,RSI
MUL R8
SHR RDX,0x1f
IMUL RDX,R9
SUB RSI,RDX
ADD RCX,RSI
MOV RAX,RCX
MUL R8
SHR RDX,0x1f
IMUL RDX,R9
SUB RCX,RDX
INC RDI
CMP RDI,0x4
JNZ 0x0010b181
XOR EDI,EDI
MOV R9D,0xfffffffb
LAB_0010b1c0:
MOVSX RAX,byte ptr [RSP + RDI*0x1 + 0x8]
ADD RSI,RAX
MOV RAX,RSI
MUL R8
SHR RDX,0x1f
IMUL RDX,R9
SUB RSI,RDX
ADD RCX,RSI
MOV RAX,RCX
MUL R8
SHR RDX,0x1f
IMUL RDX,R9
SUB RCX,RDX
INC RDI
CMP RDI,0x4
JNZ 0x0010b1c0
SHL RCX,0x20
OR RCX,RSI
MOV RAX,RCX
ADD RSP,0x10
POP RBX
RET
|
/* Render::CalculateTextureHash(std::__cxx11::string, float, float) */
ulong __thiscall
Render::CalculateTextureHash
(int4 param_1,int4 param_2,int8 param_3,int8 *param_4)
{
char *__s;
size_t sVar1;
ulong uVar2;
ulong uVar3;
long lVar4;
size_t sVar5;
int4 local_10;
int4 local_c;
__s = (char *)*param_4;
local_10 = param_2;
local_c = param_1;
sVar1 = strlen(__s);
if (sVar1 == 0) {
uVar2 = 1;
uVar3 = 0;
}
else {
uVar2 = 1;
sVar5 = 0;
uVar3 = 0;
do {
uVar2 = ((long)__s[sVar5] + uVar2) % 0xfffffffb;
uVar3 = (uVar3 + uVar2) % 0xfffffffb;
sVar5 = sVar5 + 1;
} while (sVar1 != sVar5);
}
lVar4 = 0;
do {
uVar2 = (uVar2 + (long)*(char *)((long)&local_c + lVar4)) % 0xfffffffb;
uVar3 = (uVar3 + uVar2) % 0xfffffffb;
lVar4 = lVar4 + 1;
} while (lVar4 != 4);
lVar4 = 0;
do {
uVar2 = (uVar2 + (long)*(char *)((long)&local_10 + lVar4)) % 0xfffffffb;
uVar3 = (uVar3 + uVar2) % 0xfffffffb;
lVar4 = lVar4 + 1;
} while (lVar4 != 4);
return uVar3 << 0x20 | uVar2;
}
| |
50,045 | wsrep_check_ip(char const*, bool*) | eloqsql/sql/wsrep_utils.cc | unsigned int wsrep_check_ip (const char* const addr, bool *is_ipv6)
{
unsigned int ret= INADDR_NONE;
struct addrinfo *res, hints;
memset (&hints, 0, sizeof(hints));
hints.ai_flags= AI_PASSIVE/*|AI_ADDRCONFIG*/;
hints.ai_socktype= SOCK_STREAM;
hints.ai_family= AF_UNSPEC;
*is_ipv6= false;
int gai_ret= getaddrinfo(addr, NULL, &hints, &res);
if (0 == gai_ret)
{
if (AF_INET == res->ai_family) /* IPv4 */
{
struct sockaddr_in* a= (struct sockaddr_in*)res->ai_addr;
ret= htonl(a->sin_addr.s_addr);
}
else /* IPv6 */
{
struct sockaddr_in6* a= (struct sockaddr_in6*)res->ai_addr;
if (IN6_IS_ADDR_UNSPECIFIED(&a->sin6_addr))
ret= INADDR_ANY;
else if (IN6_IS_ADDR_LOOPBACK(&a->sin6_addr))
ret= INADDR_LOOPBACK;
else
ret= 0xdeadbeef;
*is_ipv6= true;
}
freeaddrinfo (res);
}
else {
WSREP_ERROR ("getaddrinfo() failed on '%s': %d (%s)",
addr, gai_ret, gai_strerror(gai_ret));
}
return ret;
} | O0 | cpp | wsrep_check_ip(char const*, bool*):
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x7584b0
movl $0x1, -0x50(%rbp)
movl $0x1, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq -0x50(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x75a3f0
movl %eax, -0x54(%rbp)
xorl %eax, %eax
cmpl -0x54(%rbp), %eax
jne 0xf623a8
movq -0x20(%rbp), %rcx
movl $0x2, %eax
cmpl 0x4(%rcx), %eax
jne 0xf62287
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x759d60
movl %eax, -0x14(%rbp)
jmp 0xf6239d
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, (%rcx)
movb %al, -0x82(%rbp)
jne 0xf622e5
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x4(%rcx)
movb %al, -0x82(%rbp)
jne 0xf622e5
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x8(%rcx)
movb %al, -0x82(%rbp)
jne 0xf622e5
movq -0x70(%rbp), %rax
cmpl $0x0, 0xc(%rax)
sete %al
movb %al, -0x82(%rbp)
movb -0x82(%rbp), %al
andb $0x1, %al
movb %al, -0x71(%rbp)
testb $0x1, -0x71(%rbp)
je 0xf62302
movl $0x0, -0x14(%rbp)
jmp 0xf62396
movq -0x68(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, (%rcx)
movb %al, -0x83(%rbp)
jne 0xf6236d
movq -0x80(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x4(%rcx)
movb %al, -0x83(%rbp)
jne 0xf6236d
movq -0x80(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x8(%rcx)
movb %al, -0x83(%rbp)
jne 0xf6236d
movq -0x80(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x88(%rbp)
movl $0x1, %edi
callq 0x759d60
movl %eax, %ecx
movl -0x88(%rbp), %eax
cmpl %ecx, %eax
sete %al
movb %al, -0x83(%rbp)
movb -0x83(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
testb $0x1, -0x81(%rbp)
je 0xf6238d
movl $0x7f000001, -0x14(%rbp) # imm = 0x7F000001
jmp 0xf62394
movl $0xdeadbeef, -0x14(%rbp) # imm = 0xDEADBEEF
jmp 0xf62396
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
movq -0x20(%rbp), %rdi
callq 0x759cc0
jmp 0xf623f7
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x54(%rbp), %edi
callq 0x759220
movq -0x98(%rbp), %r8
movl -0x8c(%rbp), %r9d
leaq -0x238cd9(%rip), %rdi # 0xd29700
leaq 0x4a9959(%rip), %rsi # 0x140bd39
movl $0x1e4, %edx # imm = 0x1E4
leaq 0x4a9e02(%rip), %rcx # 0x140c1ee
movq %rax, (%rsp)
movb $0x0, %al
callq 0xf64bc0
movl -0x14(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _Z14wsrep_check_ipPKcPb:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], 0FFFFFFFFh
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 30h ; '0'
call _memset
mov [rbp+var_50], 1
mov [rbp+var_48], 1
mov [rbp+var_4C], 0
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
lea rdx, [rbp+var_50]
lea rcx, [rbp+var_20]
call _getaddrinfo
mov [rbp+var_54], eax
xor eax, eax
cmp eax, [rbp+var_54]
jnz loc_F623A8
mov rcx, [rbp+var_20]
mov eax, 2
cmp eax, [rcx+4]
jnz short loc_F62287
mov rax, [rbp+var_20]
mov rax, [rax+18h]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov edi, [rax+4]
call _htonl
mov [rbp+var_14], eax
jmp loc_F6239D
loc_F62287:
mov rax, [rbp+var_20]
mov rax, [rax+18h]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
add rax, 8
mov [rbp+var_70], rax
mov rcx, [rbp+var_70]
xor eax, eax
cmp dword ptr [rcx], 0
mov [rbp+var_82], al
jnz short loc_F622E5
mov rcx, [rbp+var_70]
xor eax, eax
cmp dword ptr [rcx+4], 0
mov [rbp+var_82], al
jnz short loc_F622E5
mov rcx, [rbp+var_70]
xor eax, eax
cmp dword ptr [rcx+8], 0
mov [rbp+var_82], al
jnz short loc_F622E5
mov rax, [rbp+var_70]
cmp dword ptr [rax+0Ch], 0
setz al
mov [rbp+var_82], al
loc_F622E5:
mov al, [rbp+var_82]
and al, 1
mov [rbp+var_71], al
test [rbp+var_71], 1
jz short loc_F62302
mov [rbp+var_14], 0
jmp loc_F62396
loc_F62302:
mov rax, [rbp+var_68]
add rax, 8
mov [rbp+var_80], rax
mov rcx, [rbp+var_80]
xor eax, eax
cmp dword ptr [rcx], 0
mov [rbp+var_83], al
jnz short loc_F6236D
mov rcx, [rbp+var_80]
xor eax, eax
cmp dword ptr [rcx+4], 0
mov [rbp+var_83], al
jnz short loc_F6236D
mov rcx, [rbp+var_80]
xor eax, eax
cmp dword ptr [rcx+8], 0
mov [rbp+var_83], al
jnz short loc_F6236D
mov rax, [rbp+var_80]
mov eax, [rax+0Ch]
mov [rbp+var_88], eax
mov edi, 1
call _htonl
mov ecx, eax
mov eax, [rbp+var_88]
cmp eax, ecx
setz al
mov [rbp+var_83], al
loc_F6236D:
mov al, [rbp+var_83]
and al, 1
mov [rbp+var_81], al
test [rbp+var_81], 1
jz short loc_F6238D
mov [rbp+var_14], 7F000001h
jmp short loc_F62394
loc_F6238D:
mov [rbp+var_14], 0DEADBEEFh
loc_F62394:
jmp short $+2
loc_F62396:
mov rax, [rbp+var_10]
mov byte ptr [rax], 1
loc_F6239D:
mov rdi, [rbp+var_20]
call _freeaddrinfo
jmp short loc_F623F7
loc_F623A8:
mov rax, [rbp+var_8]
mov [rbp+var_98], rax
mov eax, [rbp+var_54]
mov [rbp+var_8C], eax
mov edi, [rbp+var_54]
call _gai_strerror
mov r8, [rbp+var_98]
mov r9d, [rbp+var_8C]
lea rdi, _Z16glog_print_errorPKciS0_z; void (*)(const char *, int, const char *, ...)
lea rsi, aWorkspaceLlm4b_169; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1E4h; int
lea rcx, aGetaddrinfoFai; "getaddrinfo() failed on '%s': %d (%s)"
mov [rsp+0A0h+var_A0], rax
mov al, 0
call _Z9WSREP_LOGPFvPKciS0_zES0_iS0_z; WSREP_LOG(void (*)(char const*,int,char const*,...),char const*,int,char const*,...)
loc_F623F7:
mov eax, [rbp+var_14]
add rsp, 0A0h
pop rbp
retn
| long long wsrep_check_ip(const char *a1, bool *a2)
{
const char *v2; // rax
const char *v4; // [rsp+8h] [rbp-98h]
int v5; // [rsp+18h] [rbp-88h]
bool v6; // [rsp+1Dh] [rbp-83h]
bool v7; // [rsp+1Eh] [rbp-82h]
_DWORD *v8; // [rsp+38h] [rbp-68h]
unsigned int v9; // [rsp+4Ch] [rbp-54h]
_DWORD v10[12]; // [rsp+50h] [rbp-50h] BYREF
long long v11; // [rsp+80h] [rbp-20h] BYREF
unsigned int v12; // [rsp+8Ch] [rbp-14h]
bool *v13; // [rsp+90h] [rbp-10h]
const char *v14; // [rsp+98h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = -1;
memset(v10, 0LL);
v10[0] = 1;
v10[2] = 1;
v10[1] = 0;
*v13 = 0;
v9 = getaddrinfo(v14, 0LL, v10, &v11);
if ( v9 )
{
v4 = v14;
v2 = (const char *)gai_strerror(v9);
WSREP_LOG(
(void (*)(const char *, int, const char *, ...))glog_print_error,
"/workspace/llm4binary/github2025/eloqsql/sql/wsrep_utils.cc",
484,
"getaddrinfo() failed on '%s': %d (%s)",
v4,
v9,
v2);
}
else
{
if ( *(_DWORD *)(v11 + 4) == 2 )
{
v12 = htonl(*(unsigned int *)(*(_QWORD *)(v11 + 24) + 4LL));
}
else
{
v8 = *(_DWORD **)(v11 + 24);
v7 = 0;
if ( !v8[2] )
{
v7 = 0;
if ( !v8[3] )
{
v7 = 0;
if ( !v8[4] )
v7 = v8[5] == 0;
}
}
if ( v7 )
{
v12 = 0;
}
else
{
v6 = 0;
if ( !v8[2] )
{
v6 = 0;
if ( !v8[3] )
{
v6 = 0;
if ( !v8[4] )
{
v5 = v8[5];
v6 = v5 == (unsigned int)htonl(1LL);
}
}
}
if ( v6 )
v12 = 2130706433;
else
v12 = -559038737;
}
*v13 = 1;
}
freeaddrinfo(v11);
}
return v12;
}
| wait_for_readers:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CALL 0x013ca030
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00f6220b
LAB_00f6220b:
JMP 0x00f6220d
LAB_00f6220d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
CMP dword ptr [RAX + 0x68],0x0
JZ 0x00f62261
JMP 0x00f6221d
LAB_00f6221d:
JMP 0x00f6221f
LAB_00f6221f:
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],RCX
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc8
LEA RDX,[0x14e0745]
MOV ECX,0x64d
CALL 0x00f618e0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],0x0
JMP 0x00f62261
LAB_00f62261:
ADD RSP,0x20
POP RBP
RET
|
void wait_for_readers(long param_1,long param_2)
{
long lVar1;
lVar1 = _my_thread_var();
if (*(int *)(*(long *)(param_2 + 0x20) + 0x68) != 0) {
*(long *)(param_2 + 0x28) = lVar1 + 8;
inline_mysql_cond_wait
(lVar1 + 8,param_1 + 200,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x64d);
*(int8 *)(param_2 + 0x28) = 0;
}
return;
}
| |
50,046 | CLI::Option::~Option() | MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Option.hpp | class Option : public OptionBase<Option> {
friend App;
protected:
/// @name Names
///@{
/// A list of the short names (`-a`) without the leading dashes
std::vector<std::string> snames_{};
/// A list of the long names (`--long`) without the leading dashes
std::vector<std::string> lnames_{};
/// A list of the flag names with the appropriate default value, the first part of the pair should be duplicates of
/// what is in snames or lnames but will trigger a particular response on a flag
std::vector<std::pair<std::string, std::string>> default_flag_values_{};
/// a list of flag names with specified default values;
std::vector<std::string> fnames_{};
/// A positional name
std::string pname_{};
/// If given, check the environment for this option
std::string envname_{};
///@}
/// @name Help
///@{
/// The description for help strings
std::string description_{};
/// A human readable default value, either manually set, captured, or captured by default
std::string default_str_{};
/// If given, replace the text that describes the option type and usage in the help text
std::string option_text_{};
/// A human readable type value, set when App creates this
///
/// This is a lambda function so "types" can be dynamic, such as when a set prints its contents.
std::function<std::string()> type_name_{[]() { return std::string(); }};
/// Run this function to capture a default (ignore if empty)
std::function<std::string()> default_function_{};
///@}
/// @name Configuration
///@{
/// The number of arguments that make up one option. max is the nominal type size, min is the minimum number of
/// strings
int type_size_max_{1};
/// The minimum number of arguments an option should be expecting
int type_size_min_{1};
/// The minimum number of expected values
int expected_min_{1};
/// The maximum number of expected values
int expected_max_{1};
/// A list of Validators to run on each value parsed
std::vector<Validator> validators_{};
/// A list of options that are required with this option
std::set<Option *> needs_{};
/// A list of options that are excluded with this option
std::set<Option *> excludes_{};
///@}
/// @name Other
///@{
/// link back up to the parent App for fallthrough
App *parent_{nullptr};
/// Options store a callback to do all the work
callback_t callback_{};
///@}
/// @name Parsing results
///@{
/// complete Results of parsing
results_t results_{};
/// results after reduction
results_t proc_results_{};
/// enumeration for the option state machine
enum class option_state : char {
parsing = 0, //!< The option is currently collecting parsed results
validated = 2, //!< the results have been validated
reduced = 4, //!< a subset of results has been generated
callback_run = 6, //!< the callback has been executed
};
/// Whether the callback has run (needed for INI parsing)
option_state current_option_state_{option_state::parsing};
/// Specify that extra args beyond type_size_max should be allowed
bool allow_extra_args_{false};
/// Specify that the option should act like a flag vs regular option
bool flag_like_{false};
/// Control option to run the callback to set the default
bool run_callback_for_default_{false};
/// flag indicating a separator needs to be injected after each argument call
bool inject_separator_{false};
/// flag indicating that the option should trigger the validation and callback chain on each result when loaded
bool trigger_on_result_{false};
/// flag indicating that the option should force the callback regardless if any results present
bool force_callback_{false};
///@}
/// Making an option by hand is not defined, it must be made by the App class
Option(std::string option_name, std::string option_description, callback_t callback, App *parent)
: description_(std::move(option_description)), parent_(parent), callback_(std::move(callback)) {
std::tie(snames_, lnames_, pname_) = detail::get_names(detail::split_names(option_name));
}
public:
/// @name Basic
///@{
Option(const Option &) = delete;
Option &operator=(const Option &) = delete;
/// Count the total number of times an option was passed
CLI11_NODISCARD std::size_t count() const { return results_.size(); }
/// True if the option was not passed
CLI11_NODISCARD bool empty() const { return results_.empty(); } | O3 | cpp | CLI::Option::~Option():
pushq %rbx
movq %rdi, %rbx
addq $0x230, %rdi # imm = 0x230
callq 0xb00e
leaq 0x218(%rbx), %rdi
callq 0xb00e
movq 0x208(%rbx), %rax
testq %rax, %rax
je 0x19897
leaq 0x1f8(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x1c0(%rbx), %rdi
callq 0x1da38
leaq 0x190(%rbx), %rdi
callq 0x1da38
leaq 0x178(%rbx), %rdi
callq 0x199d6
movq 0x158(%rbx), %rax
testq %rax, %rax
je 0x198d8
leaq 0x148(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x138(%rbx), %rax
testq %rax, %rax
je 0x198f5
leaq 0x128(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x108(%rbx), %rdi
leaq 0x118(%rbx), %rax
cmpq %rax, %rdi
je 0x19913
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq 0xe8(%rbx), %rdi
leaq 0xf8(%rbx), %rax
cmpq %rax, %rdi
je 0x19931
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq 0xc8(%rbx), %rdi
leaq 0xd8(%rbx), %rax
cmpq %rax, %rdi
je 0x1994f
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq 0xa8(%rbx), %rdi
leaq 0xb8(%rbx), %rax
cmpq %rax, %rdi
je 0x1996d
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq 0x88(%rbx), %rdi
leaq 0x98(%rbx), %rax
cmpq %rax, %rdi
je 0x1998b
movq (%rax), %rsi
incq %rsi
callq 0x7430
leaq 0x70(%rbx), %rdi
callq 0xb00e
leaq 0x58(%rbx), %rdi
callq 0x19a06
leaq 0x40(%rbx), %rdi
callq 0xb00e
leaq 0x28(%rbx), %rdi
callq 0xb00e
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x199c7
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x7430
popq %rbx
retq
jmp 0x199cd
jmp 0x199cd
movq %rax, %rdi
callq 0xc95c
nop
| _ZN3CLI6OptionD2Ev:
push rbx
mov rbx, rdi
add rdi, 230h
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rbx+218h]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, [rbx+208h]
test rax, rax
jz short loc_19897
lea rdi, [rbx+1F8h]
mov rsi, rdi
mov edx, 3
call rax
loc_19897:
lea rdi, [rbx+1C0h]
call _ZNSt8_Rb_treeIPN3CLI6OptionES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev; std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree()
lea rdi, [rbx+190h]
call _ZNSt8_Rb_treeIPN3CLI6OptionES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev; std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree()
lea rdi, [rbx+178h]
call _ZNSt6vectorIN3CLI9ValidatorESaIS1_EED2Ev; std::vector<CLI::Validator>::~vector()
mov rax, [rbx+158h]
test rax, rax
jz short loc_198D8
lea rdi, [rbx+148h]
mov rsi, rdi
mov edx, 3
call rax
loc_198D8:
mov rax, [rbx+138h]
test rax, rax
jz short loc_198F5
lea rdi, [rbx+128h]
mov rsi, rdi
mov edx, 3
call rax
loc_198F5:
mov rdi, [rbx+108h]; void *
lea rax, [rbx+118h]
cmp rdi, rax
jz short loc_19913
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19913:
mov rdi, [rbx+0E8h]; void *
lea rax, [rbx+0F8h]
cmp rdi, rax
jz short loc_19931
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19931:
mov rdi, [rbx+0C8h]; void *
lea rax, [rbx+0D8h]
cmp rdi, rax
jz short loc_1994F
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1994F:
mov rdi, [rbx+0A8h]; void *
lea rax, [rbx+0B8h]
cmp rdi, rax
jz short loc_1996D
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1996D:
mov rdi, [rbx+88h]; void *
lea rax, [rbx+98h]
cmp rdi, rax
jz short loc_1998B
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1998B:
lea rdi, [rbx+70h]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rbx+58h]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED2Ev; std::vector<std::pair<std::string,std::string>>::~vector()
lea rdi, [rbx+40h]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rbx+28h]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rbx]; void *
add rbx, 10h
cmp rdi, rbx
jz short loc_199C7
mov rsi, [rbx]
inc rsi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_199C7:
pop rbx
retn
jmp short loc_199CD
jmp short $+2
loc_199CD:
mov rdi, rax
call __clang_call_terminate
| void CLI::Option::~Option(CLI::Option *this)
{
void ( *v2)(char *, char *, long long); // rax
void ( *v3)(char *, char *, long long); // rax
void ( *v4)(char *, char *, long long); // rax
char *v5; // rdi
char *v6; // rdi
char *v7; // rdi
char *v8; // rdi
char *v9; // rdi
_QWORD *v10; // rdi
_QWORD *v11; // rbx
std::vector<std::string>::~vector((long long)this + 560);
std::vector<std::string>::~vector((long long)this + 536);
v2 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 65);
if ( v2 )
v2((char *)this + 504, (char *)this + 504, 3LL);
std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree((char *)this + 448);
std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree((char *)this + 400);
std::vector<CLI::Validator>::~vector((char *)this + 376);
v3 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 43);
if ( v3 )
v3((char *)this + 328, (char *)this + 328, 3LL);
v4 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 39);
if ( v4 )
v4((char *)this + 296, (char *)this + 296, 3LL);
v5 = (char *)*((_QWORD *)this + 33);
if ( v5 != (char *)this + 280 )
operator delete(v5, *((_QWORD *)this + 35) + 1LL);
v6 = (char *)*((_QWORD *)this + 29);
if ( v6 != (char *)this + 248 )
operator delete(v6, *((_QWORD *)this + 31) + 1LL);
v7 = (char *)*((_QWORD *)this + 25);
if ( v7 != (char *)this + 216 )
operator delete(v7, *((_QWORD *)this + 27) + 1LL);
v8 = (char *)*((_QWORD *)this + 21);
if ( v8 != (char *)this + 184 )
operator delete(v8, *((_QWORD *)this + 23) + 1LL);
v9 = (char *)*((_QWORD *)this + 17);
if ( v9 != (char *)this + 152 )
operator delete(v9, *((_QWORD *)this + 19) + 1LL);
std::vector<std::string>::~vector((long long)this + 112);
std::vector<std::pair<std::string,std::string>>::~vector((char *)this + 88);
std::vector<std::string>::~vector((long long)this + 64);
std::vector<std::string>::~vector((long long)this + 40);
v10 = *(_QWORD **)this;
v11 = (_QWORD *)((char *)this + 16);
if ( v10 != v11 )
operator delete(v10, *v11 + 1LL);
}
| ~Option:
PUSH RBX
MOV RBX,RDI
ADD RDI,0x230
CALL 0x0010b00e
LEA RDI,[RBX + 0x218]
CALL 0x0010b00e
MOV RAX,qword ptr [RBX + 0x208]
TEST RAX,RAX
JZ 0x00119897
LEA RDI,[RBX + 0x1f8]
LAB_0011988d:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00119897:
LEA RDI,[RBX + 0x1c0]
CALL 0x0011da38
LEA RDI,[RBX + 0x190]
CALL 0x0011da38
LEA RDI,[RBX + 0x178]
CALL 0x001199d6
MOV RAX,qword ptr [RBX + 0x158]
TEST RAX,RAX
JZ 0x001198d8
LEA RDI,[RBX + 0x148]
LAB_001198ce:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001198d8:
MOV RAX,qword ptr [RBX + 0x138]
TEST RAX,RAX
JZ 0x001198f5
LEA RDI,[RBX + 0x128]
LAB_001198eb:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001198f5:
MOV RDI,qword ptr [RBX + 0x108]
LEA RAX,[RBX + 0x118]
CMP RDI,RAX
JZ 0x00119913
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_00119913:
MOV RDI,qword ptr [RBX + 0xe8]
LEA RAX,[RBX + 0xf8]
CMP RDI,RAX
JZ 0x00119931
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_00119931:
MOV RDI,qword ptr [RBX + 0xc8]
LEA RAX,[RBX + 0xd8]
CMP RDI,RAX
JZ 0x0011994f
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_0011994f:
MOV RDI,qword ptr [RBX + 0xa8]
LEA RAX,[RBX + 0xb8]
CMP RDI,RAX
JZ 0x0011996d
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_0011996d:
MOV RDI,qword ptr [RBX + 0x88]
LEA RAX,[RBX + 0x98]
CMP RDI,RAX
JZ 0x0011998b
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_0011998b:
LEA RDI,[RBX + 0x70]
CALL 0x0010b00e
LEA RDI,[RBX + 0x58]
CALL 0x00119a06
LEA RDI,[RBX + 0x40]
CALL 0x0010b00e
LEA RDI,[RBX + 0x28]
CALL 0x0010b00e
MOV RDI,qword ptr [RBX]
ADD RBX,0x10
CMP RDI,RBX
JZ 0x001199c7
MOV RSI,qword ptr [RBX]
INC RSI
POP RBX
JMP 0x00107430
LAB_001199c7:
POP RBX
RET
|
/* CLI::Option::~Option() */
void __thiscall CLI::Option::~Option(Option *this)
{
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x230));
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x218));
if (*(code **)(this + 0x208) != (code *)0x0) {
/* try { // try from 0011988d to 00119896 has its CatchHandler @ 001199cd */
(**(code **)(this + 0x208))(this + 0x1f8,this + 0x1f8,3);
}
std::
_Rb_tree<CLI::Option*,CLI::Option*,std::_Identity<CLI::Option*>,std::less<CLI::Option*>,std::allocator<CLI::Option*>>
::~_Rb_tree((_Rb_tree<CLI::Option*,CLI::Option*,std::_Identity<CLI::Option*>,std::less<CLI::Option*>,std::allocator<CLI::Option*>>
*)(this + 0x1c0));
std::
_Rb_tree<CLI::Option*,CLI::Option*,std::_Identity<CLI::Option*>,std::less<CLI::Option*>,std::allocator<CLI::Option*>>
::~_Rb_tree((_Rb_tree<CLI::Option*,CLI::Option*,std::_Identity<CLI::Option*>,std::less<CLI::Option*>,std::allocator<CLI::Option*>>
*)(this + 400));
std::vector<CLI::Validator,std::allocator<CLI::Validator>>::~vector
((vector<CLI::Validator,std::allocator<CLI::Validator>> *)(this + 0x178));
if (*(code **)(this + 0x158) != (code *)0x0) {
/* try { // try from 001198ce to 001198d7 has its CatchHandler @ 001199cb */
(**(code **)(this + 0x158))(this + 0x148,this + 0x148,3);
}
if (*(code **)(this + 0x138) != (code *)0x0) {
/* try { // try from 001198eb to 001198f4 has its CatchHandler @ 001199c9 */
(**(code **)(this + 0x138))(this + 0x128,this + 0x128,3);
}
if (*(Option **)(this + 0x108) != this + 0x118) {
operator_delete(*(Option **)(this + 0x108),*(long *)(this + 0x118) + 1);
}
if (*(Option **)(this + 0xe8) != this + 0xf8) {
operator_delete(*(Option **)(this + 0xe8),*(long *)(this + 0xf8) + 1);
}
if (*(Option **)(this + 200) != this + 0xd8) {
operator_delete(*(Option **)(this + 200),*(long *)(this + 0xd8) + 1);
}
if (*(Option **)(this + 0xa8) != this + 0xb8) {
operator_delete(*(Option **)(this + 0xa8),*(long *)(this + 0xb8) + 1);
}
if (*(Option **)(this + 0x88) != this + 0x98) {
operator_delete(*(Option **)(this + 0x88),*(long *)(this + 0x98) + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x70));
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::~vector((vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
*)(this + 0x58));
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40));
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x28));
if (*(Option **)this != this + 0x10) {
operator_delete(*(Option **)this,*(long *)(this + 0x10) + 1);
return;
}
return;
}
| |
50,047 | 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 0x5b3ca
movq %r14, %rdi
callq 0x2a230
leaq 0x3ca1ca(%rip), %rax # 0x425508
movl (%rax), %esi
movq 0x5b0(%rbx), %r12
movl $0xa0000, %r15d # imm = 0xA0000
orl 0x7a4(%rbx), %r15d
leaq 0x3536bd(%rip), %rax # 0x3aea18
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 0x5b3e3
movl $0x210, %edx # imm = 0x210
movq %r12, %rdi
movl %r15d, %esi
callq 0xbf950
movl %eax, %r15d
movl %r15d, 0x760(%rbx)
movq 0x930(%rbx), %rdi
testq %rdi, %rdi
jne 0x5b42c
movq %r14, %rdi
callq 0x2a1f0
movl 0x760(%rbx), %eax
shrl $0x1f, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa0463(%rip), %rsi # 0xfb834
movq %r14, %rdi
movl $0x811, %edx # imm = 0x811
callq 0x312ea
jmp 0x5b337
leaq 0x35362e(%rip), %r13 # 0x3aea18
movq (%r13), %rcx
leaq 0xa043f(%rip), %rsi # 0xfb834
movq %rax, %rdi
movl $0x815, %edx # imm = 0x815
callq *0x1f0(%rcx)
movl $0x210, %edx # imm = 0x210
movq %r12, %rdi
movl %r15d, %esi
callq 0xbf950
movl %eax, %r15d
movq (%r13), %rax
movq -0x30(%rbp), %rdi
movl %r15d, %esi
callq *0x200(%rax)
jmp 0x5b393
leaq 0x3535e5(%rip), %rax # 0x3aea18
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x5b3aa
| _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_5B3CA
mov rdi, r14
call _pthread_mutex_lock
loc_5B337:
lea rax, key_file_kfile
mov esi, [rax]
mov r12, [rbx+5B0h]
mov r15d, offset loc_A0000
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_5B3E3
mov edx, 210h
mov rdi, r12
mov esi, r15d
call my_open
mov r15d, eax
loc_5B393:
mov [rbx+760h], r15d
mov rdi, [rbx+930h]
test rdi, rdi
jnz loc_5B42C
loc_5B3AA:
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_5B3CA:
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r14
mov edx, 811h
call psi_mutex_lock
jmp loc_5B337
loc_5B3E3:
lea r13, PSI_server
mov rcx, [r13+0]
lea rsi, aWorkspaceLlm4b_9; "/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_5B393
loc_5B42C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_5B3AA
| 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) | (unsigned int)&loc_A0000;
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 0x0015b3ca
MOV RDI,R14
CALL 0x0012a230
LAB_0015b337:
LEA RAX,[0x525508]
MOV ESI,dword ptr [RAX]
MOV R12,qword ptr [RBX + 0x5b0]
MOV R15D,0xa0000
OR R15D,dword ptr [RBX + 0x7a4]
LEA RAX,[0x4aea18]
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 0x0015b3e3
MOV EDX,0x210
MOV RDI,R12
MOV ESI,R15D
CALL 0x001bf950
MOV R15D,EAX
LAB_0015b393:
MOV dword ptr [RBX + 0x760],R15D
MOV RDI,qword ptr [RBX + 0x930]
TEST RDI,RDI
JNZ 0x0015b42c
LAB_0015b3aa:
MOV RDI,R14
CALL 0x0012a1f0
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_0015b3ca:
LEA RSI,[0x1fb834]
MOV RDI,R14
MOV EDX,0x811
CALL 0x001312ea
JMP 0x0015b337
LAB_0015b3e3:
LEA R13,[0x4aea18]
MOV RCX,qword ptr [R13]
LEA RSI,[0x1fb834]
MOV RDI,RAX
MOV EDX,0x815
CALL qword ptr [RCX + 0x1f0]
MOV EDX,0x210
MOV RDI,R12
MOV ESI,R15D
CALL 0x001bf950
MOV R15D,EAX
MOV RAX,qword ptr [R13]
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,R15D
CALL qword ptr [RAX + 0x200]
JMP 0x0015b393
LAB_0015b42c:
LEA RAX,[0x4aea18]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0015b3aa
|
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;
}
| |
50,048 | VSmile::Io::ReadCsb2(unsigned int) | sp1187[P]veesem/src/core/vsmile/vsmile.cc | word_t VSmile::Io::ReadCsb2(addr_t addr) {
if (has_art_nvram_) {
// In-cartridge ROM used for the drawing area buffer in V.Smile Art Studio
return (*art_nvram_)[addr & 0x1ffff];
}
// Some games have a dual-ROM cartridge configuration with a larger 4 MiB ROM
// connected to ROMCSB and CSB1, and a smaller 2 MiB ROM connected to CSB2.
// This code handles combined ROM dumps where the CSB2 rom is appended to the
// larger ROM.
return (*cart_rom_)[addr + 0x200000];
} | O3 | cpp | VSmile::Io::ReadCsb2(unsigned int):
movl %esi, %eax
andl $0x1ffff, %eax # imm = 0x1FFFF
addl %eax, %eax
addq 0x28(%rdi), %rax
addl $0x200000, %esi # imm = 0x200000
addq %rsi, %rsi
addq 0x18(%rdi), %rsi
cmpb $0x0, 0x20(%rdi)
cmovneq %rax, %rsi
movzwl (%rsi), %eax
retq
| _ZN6VSmile2Io8ReadCsb2Ej:
mov eax, esi
and eax, 1FFFFh
add eax, eax
add rax, [rdi+28h]
add esi, 200000h
add rsi, rsi
add rsi, [rdi+18h]
cmp byte ptr [rdi+20h], 0
cmovnz rsi, rax
movzx eax, word ptr [rsi]
retn
| long long VSmile::Io::ReadCsb2(VSmile::Io *this, int a2)
{
unsigned __int16 *v2; // rax
unsigned __int16 *v3; // rsi
v2 = (unsigned __int16 *)(*((_QWORD *)this + 5) + 2 * (a2 & 0x1FFFFu));
v3 = (unsigned __int16 *)(*((_QWORD *)this + 3) + 2LL * (unsigned int)(a2 + 0x200000));
if ( *((_BYTE *)this + 32) )
v3 = v2;
return *v3;
}
| ReadCsb2:
MOV EAX,ESI
AND EAX,0x1ffff
ADD EAX,EAX
ADD RAX,qword ptr [RDI + 0x28]
ADD ESI,0x200000
ADD RSI,RSI
ADD RSI,qword ptr [RDI + 0x18]
CMP byte ptr [RDI + 0x20],0x0
CMOVNZ RSI,RAX
MOVZX EAX,word ptr [RSI]
RET
|
/* VSmile::Io::ReadCsb2(unsigned int) */
int2 __thiscall VSmile::Io::ReadCsb2(Io *this,uint param_1)
{
int2 *puVar1;
puVar1 = (int2 *)((ulong)(param_1 + 0x200000) * 2 + *(long *)(this + 0x18));
if (this[0x20] != (Io)0x0) {
puVar1 = (int2 *)((ulong)((param_1 & 0x1ffff) * 2) + *(long *)(this + 0x28));
}
return *puVar1;
}
| |
50,049 | str2int | eloqsql/strings/str2int.c | char *str2int(register const char *src, register int radix, long int lower,
long int upper, long int *val)
{
int sign; /* is number negative (+1) or positive (-1) */
int n; /* number of digits yet to be converted */
long limit; /* "largest" possible valid input */
long scale; /* the amount to multiply next digit by */
long sofar; /* the running value */
register int d; /* (negative of) next digit */
char *start;
int digits[32]; /* Room for numbers */
/* Make sure *val is sensible in case of error */
*val = 0;
/* Check that the radix is in the range 2..36 */
#ifndef DBUG_OFF
if (radix < 2 || radix > 36) {
errno=EDOM;
return NullS;
}
#endif
/* The basic problem is: how do we handle the conversion of
a number without resorting to machine-specific code to
check for overflow? Obviously, we have to ensure that
no calculation can overflow. We are guaranteed that the
"lower" and "upper" arguments are valid machine integers.
On sign-and-magnitude, twos-complement, and ones-complement
machines all, if +|n| is representable, so is -|n|, but on
twos complement machines the converse is not true. So the
"maximum" representable number has a negative representative.
Limit is set to MY_MIN(-|lower|,-|upper|); this is the "largest"
number we are concerned with. */
/* Calculate Limit using Scale as a scratch variable */
if ((limit = lower) > 0) limit = -limit;
if ((scale = upper) > 0) scale = -scale;
if (scale < limit) limit = scale;
/* Skip leading spaces and check for a sign.
Note: because on a 2s complement machine MinLong is a valid
integer but |MinLong| is not, we have to keep the current
converted value (and the scale!) as *negative* numbers,
so the sign is the opposite of what you might expect.
*/
while (my_isspace(&my_charset_latin1,*src)) src++;
sign = -1;
if (*src == '+') src++; else
if (*src == '-') src++, sign = 1;
/* Skip leading zeros so that we never compute a power of radix
in scale that we won't have a need for. Otherwise sticking
enough 0s in front of a number could cause the multiplication
to overflow when it neededn't.
*/
start=(char*) src;
while (*src == '0') src++;
/* Move over the remaining digits. We have to convert from left
to left in order to avoid overflow. Answer is after last digit.
*/
for (n = 0; (digits[n]=char_val(*src)) < radix && n < 20; n++,src++) ;
/* Check that there is at least one digit */
if (start == src) {
errno=EDOM;
return NullS;
}
/* The invariant we want to maintain is that src is just
to the right of n digits, we've converted k digits to
sofar, scale = -radix**k, and scale < sofar < 0. Now
if the final number is to be within the original
Limit, we must have (to the left)*scale+sofar >= Limit,
or (to the left)*scale >= Limit-sofar, i.e. the digits
to the left of src must form an integer <= (Limit-sofar)/(scale).
In particular, this is true of the next digit. In our
incremental calculation of Limit,
IT IS VITAL that (-|N|)/(-|D|) = |N|/|D|
*/
for (sofar = 0, scale = -1; --n >= 1;)
{
if ((long) -(d=digits[n]) < limit) {
errno=ERANGE;
return NullS;
}
limit = (limit+d)/radix, sofar += d*scale; scale *= radix;
}
if (n == 0)
{
if ((long) -(d=digits[n]) < limit) /* get last digit */
{
errno=ERANGE;
return NullS;
}
sofar+=d*scale;
}
/* Now it might still happen that sofar = -32768 or its equivalent,
so we can't just multiply by the sign and check that the result
is in the range lower..upper. All of this caution is a right
pain in the neck. If only there were a standard routine which
says generate thus and such a signal on integer overflow...
But not enough machines can do it *SIGH*.
*/
if (sign < 0)
{
if (sofar < -LONG_MAX || (sofar= -sofar) > upper)
{
errno=ERANGE;
return NullS;
}
}
else if (sofar < lower)
{
errno=ERANGE;
return NullS;
}
*val = sofar;
errno=0; /* indicate that all went well */
return (char*) src;
} | O3 | c | str2int:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %r9
movq $0x0, (%r8)
movq %rdx, %rax
negq %rax
cmovsq %rdx, %rax
movq %rcx, %rdx
negq %rdx
cmovnsq %rcx, %rdx
leaq 0x2d5011(%rip), %r10 # 0x3abf20
movq 0x40(%r10), %r11
movzbl (%rdi), %r10d
incq %rdi
testb $0x8, 0x1(%r11,%r10)
jne 0xd6f13
negq %rax
cmpq %rax, %rdx
cmovlq %rdx, %rax
cmpl $0x2b, %r10d
je 0xd6f40
cmpl $0x2d, %r10d
jne 0xd6f3d
xorl %r10d, %r10d
jmp 0xd6f43
decq %rdi
movb $0x1, %r10b
leaq -0x1(%rdi), %rbx
movb 0x1(%rbx), %r14b
incq %rbx
cmpb $0x30, %r14b
je 0xd6f47
xorl %r11d, %r11d
xorl %edx, %edx
leal -0x30(%r14), %r15d
cmpb $0x9, %r15b
ja 0xd6f69
movzbl %r15b, %r15d
jmp 0xd6f95
leal -0x41(%r14), %r15d
cmpb $0x19, %r15b
ja 0xd6f7d
movzbl %r14b, %r15d
addl $-0x37, %r15d
jmp 0xd6f95
leal -0x61(%r14), %r12d
movl $0x7f, %r15d
cmpb $0x19, %r12b
ja 0xd6f95
movzbl %r14b, %r15d
addl $-0x57, %r15d
movl %r15d, -0xa0(%rbp,%rdx,4)
cmpl %esi, %r15d
jge 0xd6fb7
cmpq $0x13, %rdx
ja 0xd6fb7
incq %rdx
movb 0x1(%rbx), %r14b
incq %rbx
incl %r11d
jmp 0xd6f59
cmpq %rdi, %rbx
je 0xd6fff
cmpq $0x2, %rdx
jb 0xd7007
movslq %esi, %r14
movq $-0x1, %rdi
xorl %esi, %esi
decl %r11d
movslq -0xa0(%rbp,%r11,4), %r15
movq %r15, %rdx
negq %rdx
cmpq %rdx, %rax
jg 0xd7042
addq %r15, %rax
cqto
idivq %r14
imulq %rdi, %r15
addq %r15, %rsi
imulq %r14, %rdi
cmpl $0x1, %r11d
jg 0xd6fce
jmp 0xd7014
movl $0x21, %r14d
jmp 0xd7048
xorl %esi, %esi
decl %edx
jne 0xd702d
movq $-0x1, %rdi
movslq -0xa0(%rbp), %rdx
movq %rdx, %r11
negq %r11
cmpq %r11, %rax
jg 0xd7042
imulq %rdx, %rdi
addq %rdi, %rsi
testb %r10b, %r10b
je 0xd7065
negq %rsi
seto %al
cmpq %rcx, %rsi
setg %cl
orb %al, %cl
je 0xd706a
movl $0x22, %r14d
xorl %ebx, %ebx
callq 0x297b0
movl %r14d, (%rax)
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq %r9, %rsi
jl 0xd7042
movq %rsi, (%r8)
xorl %r14d, %r14d
jmp 0xd704a
nop
| str2int:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 80h
mov r9, rdx
mov qword ptr [r8], 0
mov rax, rdx
neg rax
cmovs rax, rdx
mov rdx, rcx
neg rdx
cmovns rdx, rcx
lea r10, my_charset_latin1
mov r11, [r10+40h]
loc_D6F13:
movzx r10d, byte ptr [rdi]
inc rdi
test byte ptr [r11+r10+1], 8
jnz short loc_D6F13
neg rax
cmp rdx, rax
cmovl rax, rdx
cmp r10d, 2Bh ; '+'
jz short loc_D6F40
cmp r10d, 2Dh ; '-'
jnz short loc_D6F3D
xor r10d, r10d
jmp short loc_D6F43
loc_D6F3D:
dec rdi
loc_D6F40:
mov r10b, 1
loc_D6F43:
lea rbx, [rdi-1]
loc_D6F47:
mov r14b, [rbx+1]
inc rbx
cmp r14b, 30h ; '0'
jz short loc_D6F47
xor r11d, r11d
xor edx, edx
loc_D6F59:
lea r15d, [r14-30h]
cmp r15b, 9
ja short loc_D6F69
movzx r15d, r15b
jmp short loc_D6F95
loc_D6F69:
lea r15d, [r14-41h]
cmp r15b, 19h
ja short loc_D6F7D
movzx r15d, r14b
add r15d, 0FFFFFFC9h
jmp short loc_D6F95
loc_D6F7D:
lea r12d, [r14-61h]
mov r15d, 7Fh
cmp r12b, 19h
ja short loc_D6F95
movzx r15d, r14b
add r15d, 0FFFFFFA9h
loc_D6F95:
mov [rbp+rdx*4+var_A0], r15d
cmp r15d, esi
jge short loc_D6FB7
cmp rdx, 13h
ja short loc_D6FB7
inc rdx
mov r14b, [rbx+1]
inc rbx
inc r11d
jmp short loc_D6F59
loc_D6FB7:
cmp rbx, rdi
jz short loc_D6FFF
cmp rdx, 2
jb short loc_D7007
movsxd r14, esi
mov rdi, 0FFFFFFFFFFFFFFFFh
xor esi, esi
loc_D6FCE:
dec r11d
movsxd r15, [rbp+r11*4+var_A0]
mov rdx, r15
neg rdx
cmp rax, rdx
jg short loc_D7042
add rax, r15
cqo
idiv r14
imul r15, rdi
add rsi, r15
imul rdi, r14
cmp r11d, 1
jg short loc_D6FCE
jmp short loc_D7014
loc_D6FFF:
mov r14d, 21h ; '!'
jmp short loc_D7048
loc_D7007:
xor esi, esi
dec edx
jnz short loc_D702D
mov rdi, 0FFFFFFFFFFFFFFFFh
loc_D7014:
movsxd rdx, [rbp+var_A0]
mov r11, rdx
neg r11
cmp rax, r11
jg short loc_D7042
imul rdi, rdx
add rsi, rdi
loc_D702D:
test r10b, r10b
jz short loc_D7065
neg rsi
seto al
cmp rsi, rcx
setnle cl
or cl, al
jz short loc_D706A
loc_D7042:
mov r14d, 22h ; '"'
loc_D7048:
xor ebx, ebx
loc_D704A:
call ___errno_location
mov [rax], r14d
mov rax, rbx
add rsp, 80h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_D7065:
cmp rsi, r9
jl short loc_D7042
loc_D706A:
mov [r8], rsi
xor r14d, r14d
jmp short loc_D704A
| long long str2int(long long a1, int a2, long long a3, long long a4, long long *a5)
{
long long v6; // rax
long long v7; // rdx
long long v8; // r10
long long v9; // rax
char v10; // r10
long long v11; // rbx
unsigned __int8 v12; // r14
long long v13; // r11
unsigned long long i; // rdx
int v15; // r15d
long long v16; // r14
long long v17; // rsi
long long v18; // r15
int v19; // r14d
_DWORD v21[40]; // [rsp+0h] [rbp-A0h]
*a5 = 0LL;
v6 = -a3;
if ( a3 > 0 )
v6 = a3;
v7 = -a4;
if ( a4 <= 0 )
v7 = a4;
do
v8 = *(unsigned __int8 *)a1++;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v8 + 1) & 8) != 0 );
v9 = -v6;
if ( v7 < v9 )
v9 = v7;
if ( (_DWORD)v8 != 43 )
{
if ( (_DWORD)v8 == 45 )
{
v10 = 0;
goto LABEL_13;
}
--a1;
}
v10 = 1;
LABEL_13:
v11 = a1 - 1;
do
v12 = *(_BYTE *)++v11;
while ( v12 == 48 );
LODWORD(v13) = 0;
for ( i = 0LL; ; ++i )
{
LOBYTE(v15) = v12 - 48;
if ( (unsigned __int8)(v12 - 48) > 9u )
{
if ( (unsigned __int8)(v12 - 65) > 0x19u )
{
v15 = 127;
if ( (unsigned __int8)(v12 - 97) <= 0x19u )
v15 = v12 - 87;
}
else
{
v15 = v12 - 55;
}
}
else
{
v15 = (unsigned __int8)v15;
}
v21[i] = v15;
if ( v15 >= a2 || i > 0x13 )
break;
v12 = *(_BYTE *)++v11;
LODWORD(v13) = v13 + 1;
}
if ( v11 != a1 )
{
if ( i >= 2 )
{
v16 = a2;
a1 = -1LL;
v17 = 0LL;
while ( 1 )
{
v13 = (unsigned int)(v13 - 1);
v18 = (int)v21[v13];
if ( v9 > -v18 )
goto LABEL_38;
v9 = (v18 + v9) / v16;
v17 += a1 * v18;
a1 *= v16;
if ( (int)v13 <= 1 )
goto LABEL_34;
}
}
v17 = 0LL;
if ( (_DWORD)i == 1 )
{
a1 = -1LL;
LABEL_34:
if ( v9 > -(long long)v21[0] )
goto LABEL_38;
a1 *= v21[0];
v17 += a1;
}
if ( v10 )
{
v17 = -v17;
if ( __OFSUB__(v17, 1LL) || v17 > a4 )
{
LABEL_38:
v19 = 34;
goto LABEL_39;
}
}
else if ( v17 < a3 )
{
goto LABEL_38;
}
*a5 = v17;
v19 = 0;
goto LABEL_40;
}
v19 = 33;
LABEL_39:
v11 = 0LL;
LABEL_40:
*(_DWORD *)__errno_location(a1) = v19;
return v11;
}
| str2int:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x80
MOV R9,RDX
MOV qword ptr [R8],0x0
MOV RAX,RDX
NEG RAX
CMOVS RAX,RDX
MOV RDX,RCX
NEG RDX
CMOVNS RDX,RCX
LEA R10,[0x4abf20]
MOV R11,qword ptr [R10 + 0x40]
LAB_001d6f13:
MOVZX R10D,byte ptr [RDI]
INC RDI
TEST byte ptr [R11 + R10*0x1 + 0x1],0x8
JNZ 0x001d6f13
NEG RAX
CMP RDX,RAX
CMOVL RAX,RDX
CMP R10D,0x2b
JZ 0x001d6f40
CMP R10D,0x2d
JNZ 0x001d6f3d
XOR R10D,R10D
JMP 0x001d6f43
LAB_001d6f3d:
DEC RDI
LAB_001d6f40:
MOV R10B,0x1
LAB_001d6f43:
LEA RBX,[RDI + -0x1]
LAB_001d6f47:
MOV R14B,byte ptr [RBX + 0x1]
INC RBX
CMP R14B,0x30
JZ 0x001d6f47
XOR R11D,R11D
XOR EDX,EDX
LAB_001d6f59:
LEA R15D,[R14 + -0x30]
CMP R15B,0x9
JA 0x001d6f69
MOVZX R15D,R15B
JMP 0x001d6f95
LAB_001d6f69:
LEA R15D,[R14 + -0x41]
CMP R15B,0x19
JA 0x001d6f7d
MOVZX R15D,R14B
ADD R15D,-0x37
JMP 0x001d6f95
LAB_001d6f7d:
LEA R12D,[R14 + -0x61]
MOV R15D,0x7f
CMP R12B,0x19
JA 0x001d6f95
MOVZX R15D,R14B
ADD R15D,-0x57
LAB_001d6f95:
MOV dword ptr [RBP + RDX*0x4 + -0xa0],R15D
CMP R15D,ESI
JGE 0x001d6fb7
CMP RDX,0x13
JA 0x001d6fb7
INC RDX
MOV R14B,byte ptr [RBX + 0x1]
INC RBX
INC R11D
JMP 0x001d6f59
LAB_001d6fb7:
CMP RBX,RDI
JZ 0x001d6fff
CMP RDX,0x2
JC 0x001d7007
MOVSXD R14,ESI
MOV RDI,-0x1
XOR ESI,ESI
LAB_001d6fce:
DEC R11D
MOVSXD R15,dword ptr [RBP + R11*0x4 + -0xa0]
MOV RDX,R15
NEG RDX
CMP RAX,RDX
JG 0x001d7042
ADD RAX,R15
CQO
IDIV R14
IMUL R15,RDI
ADD RSI,R15
IMUL RDI,R14
CMP R11D,0x1
JG 0x001d6fce
JMP 0x001d7014
LAB_001d6fff:
MOV R14D,0x21
JMP 0x001d7048
LAB_001d7007:
XOR ESI,ESI
DEC EDX
JNZ 0x001d702d
MOV RDI,-0x1
LAB_001d7014:
MOVSXD RDX,dword ptr [RBP + -0xa0]
MOV R11,RDX
NEG R11
CMP RAX,R11
JG 0x001d7042
IMUL RDI,RDX
ADD RSI,RDI
LAB_001d702d:
TEST R10B,R10B
JZ 0x001d7065
NEG RSI
SETO AL
CMP RSI,RCX
SETG CL
OR CL,AL
JZ 0x001d706a
LAB_001d7042:
MOV R14D,0x22
LAB_001d7048:
XOR EBX,EBX
LAB_001d704a:
CALL 0x001297b0
MOV dword ptr [RAX],R14D
MOV RAX,RBX
ADD RSP,0x80
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001d7065:
CMP RSI,R9
JL 0x001d7042
LAB_001d706a:
MOV qword ptr [R8],RSI
XOR R14D,R14D
JMP 0x001d704a
|
byte * str2int(byte *param_1,int param_2,long param_3,long param_4,long *param_5)
{
long lVar1;
int *piVar2;
ulong uVar3;
byte *pbVar4;
long lVar5;
byte *pbVar6;
long lVar7;
ulong uVar8;
byte bVar9;
int iVar10;
uint uVar11;
long lVar12;
bool bVar13;
uint local_a8 [32];
*param_5 = 0;
lVar5 = -param_3;
if (0 < param_3) {
lVar5 = param_3;
}
lVar7 = -param_4;
if (param_4 < 1) {
lVar7 = param_4;
}
do {
pbVar4 = param_1;
bVar9 = *pbVar4;
param_1 = pbVar4 + 1;
} while ((PTR_ctype_latin1_004abf60[(ulong)bVar9 + 1] & 8) != 0);
lVar1 = -lVar5;
if (SBORROW8(lVar7,-lVar5) != lVar7 + lVar5 < 0) {
lVar1 = lVar7;
}
pbVar6 = param_1;
if ((bVar9 == 0x2b) || (pbVar6 = pbVar4, bVar9 != 0x2d)) {
bVar13 = true;
}
else {
bVar13 = false;
pbVar6 = param_1;
}
pbVar4 = pbVar6 + -1;
do {
bVar9 = pbVar4[1];
pbVar4 = pbVar4 + 1;
} while (bVar9 == 0x30);
uVar8 = 0;
uVar3 = 0;
while( true ) {
if ((byte)(bVar9 - 0x30) < 10) {
uVar11 = (uint)(byte)(bVar9 - 0x30);
}
else if ((byte)(bVar9 + 0xbf) < 0x1a) {
uVar11 = bVar9 - 0x37;
}
else {
uVar11 = 0x7f;
if ((byte)(bVar9 + 0x9f) < 0x1a) {
uVar11 = bVar9 - 0x57;
}
}
local_a8[uVar3] = uVar11;
if ((param_2 <= (int)uVar11) || (0x13 < uVar3)) break;
uVar3 = uVar3 + 1;
bVar9 = pbVar4[1];
pbVar4 = pbVar4 + 1;
uVar8 = (ulong)((int)uVar8 + 1);
}
if (pbVar4 == pbVar6) {
iVar10 = 0x21;
}
else {
if (uVar3 < 2) {
lVar5 = 0;
if ((int)uVar3 == 1) {
lVar7 = -1;
goto LAB_001d7014;
}
LAB_001d702d:
if (bVar13) {
lVar7 = -lVar5;
bVar13 = -param_4 == lVar5;
lVar5 = lVar7;
if (bVar13 || lVar7 < param_4) {
LAB_001d706a:
*param_5 = lVar5;
iVar10 = 0;
goto LAB_001d704a;
}
}
else if (param_3 <= lVar5) goto LAB_001d706a;
}
else {
lVar7 = -1;
lVar5 = 0;
do {
uVar11 = (int)uVar8 - 1;
uVar8 = (ulong)uVar11;
lVar12 = (long)(int)local_a8[uVar8];
if (lVar1 != -lVar12 && SBORROW8(lVar1,-lVar12) == lVar1 + lVar12 < 0) goto LAB_001d7042;
lVar1 = (lVar1 + lVar12) / (long)param_2;
lVar5 = lVar5 + lVar12 * lVar7;
lVar7 = lVar7 * param_2;
} while (1 < (int)uVar11);
LAB_001d7014:
lVar12 = (long)(int)local_a8[0];
if (lVar1 == -lVar12 || SBORROW8(lVar1,-lVar12) != lVar1 + lVar12 < 0) {
lVar5 = lVar5 + lVar7 * lVar12;
goto LAB_001d702d;
}
}
LAB_001d7042:
iVar10 = 0x22;
}
pbVar4 = (byte *)0x0;
LAB_001d704a:
piVar2 = __errno_location();
*piVar2 = iVar10;
return pbVar4;
}
| |
50,050 | VoxelInfoBuilder::~VoxelInfoBuilder() | untodesu[P]voxelius/game/shared/voxel_registry.hh | virtual ~VoxelInfoBuilder(void) = default; | O1 | cpp | VoxelInfoBuilder::~VoxelInfoBuilder():
pushq %rbx
movq %rdi, %rbx
addq $0x58, %rdi
callq 0x83354
movq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0x83189
movq (%rax), %rsi
incq %rsi
callq 0x268d0
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x415ca
| _ZN16VoxelInfoBuilderD2Ev:
push rbx
mov rbx, rdi
add rdi, 58h ; 'X'
call _ZNSt6vectorI12VoxelTextureSaIS0_EED2Ev; std::vector<VoxelTexture>::~vector()
mov rdi, [rbx+30h]; void *
lea rax, [rbx+40h]
cmp rdi, rax
jz short loc_83189
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_83189:
add rbx, 8
mov rdi, rbx; void *
pop rbx
jmp _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
| void VoxelInfoBuilder::~VoxelInfoBuilder(VoxelInfoBuilder *this)
{
char *v2; // rdi
std::vector<VoxelTexture>::~vector((char *)this + 88);
v2 = (char *)*((_QWORD *)this + 6);
if ( v2 != (char *)this + 64 )
operator delete(v2, *((_QWORD *)this + 8) + 1LL);
std::vector<std::string>::~vector((_QWORD *)this + 1);
}
| ~VoxelInfoBuilder:
PUSH RBX
MOV RBX,RDI
ADD RDI,0x58
CALL 0x00183354
MOV RDI,qword ptr [RBX + 0x30]
LEA RAX,[RBX + 0x40]
CMP RDI,RAX
JZ 0x00183189
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001268d0
LAB_00183189:
ADD RBX,0x8
MOV RDI,RBX
POP RBX
JMP 0x001415ca
|
/* VoxelInfoBuilder::~VoxelInfoBuilder() */
void __thiscall VoxelInfoBuilder::~VoxelInfoBuilder(VoxelInfoBuilder *this)
{
std::vector<VoxelTexture,std::allocator<VoxelTexture>>::~vector
((vector<VoxelTexture,std::allocator<VoxelTexture>> *)(this + 0x58));
if (*(VoxelInfoBuilder **)(this + 0x30) != this + 0x40) {
operator_delete(*(VoxelInfoBuilder **)(this + 0x30),*(long *)(this + 0x40) + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 8));
return;
}
| |
50,051 | inline_mysql_mutex_init | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_mutex_init(
#ifdef HAVE_PSI_MUTEX_INTERFACE
PSI_mutex_key key,
#endif
mysql_mutex_t *that,
const pthread_mutexattr_t *attr
#ifdef SAFE_MUTEX
, const char *src_name, const char *src_file, uint src_line
#endif
)
{
#ifdef HAVE_PSI_MUTEX_INTERFACE
that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex);
#else
that->m_psi= NULL;
#endif
#ifdef COROUTINE_ENABLED
that->l.data= that;
that->l.prev= that->l.next= NULL;
#endif
#ifdef SAFE_MUTEX
return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line);
#else
return pthread_mutex_init(&that->m_mutex, attr);
#endif
} | O0 | c | inline_mysql_mutex_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1af46e(%rip), %rax # 0x1e3e98
movq (%rax), %rax
movq 0x40(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x254d0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| inline_mysql_mutex_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+40h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+28h], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_mutex_init
add rsp, 20h
pop rbp
retn
| long long inline_mysql_mutex_init(unsigned int a1, _QWORD *a2, long long a3)
{
a2[8] = (*((long long ( **)(_QWORD, _QWORD *))PSI_server + 8))(a1, a2);
a2[7] = a2;
a2[6] = 0LL;
a2[5] = 0LL;
return pthread_mutex_init(a2, a3);
}
| inline_mysql_mutex_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,[0x2e3e98]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x40]
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 + 0x40],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001254d0
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_mutex_init
(int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3)
{
int8 uVar1;
uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2);
*(int8 *)((long)param_2 + 0x40) = uVar1;
*(pthread_mutex_t **)((long)param_2 + 0x38) = param_2;
*(int8 *)((long)param_2 + 0x30) = 0;
param_2[1].__align = 0;
pthread_mutex_init(param_2,param_3);
return;
}
| |
50,052 | google::protobuf::CEscapeInternal(char const*, int, char*, int, bool, bool) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | int CEscapeInternal(const char* src, int src_len, char* dest,
int dest_len, bool use_hex, bool utf8_safe) {
const char* src_end = src + src_len;
int used = 0;
bool last_hex_escape = false; // true if last output char was \xNN
for (; src < src_end; src++) {
if (dest_len - used < 2) // Need space for two letter escape
return -1;
bool is_hex_escape = false;
switch (*src) {
case '\n': dest[used++] = '\\'; dest[used++] = 'n'; break;
case '\r': dest[used++] = '\\'; dest[used++] = 'r'; break;
case '\t': dest[used++] = '\\'; dest[used++] = 't'; break;
case '\"': dest[used++] = '\\'; dest[used++] = '\"'; break;
case '\'': dest[used++] = '\\'; dest[used++] = '\''; break;
case '\\': dest[used++] = '\\'; dest[used++] = '\\'; break;
default:
// Note that if we emit \xNN and the src character after that is a hex
// digit then that digit must be escaped too to prevent it being
// interpreted as part of the character code by C.
if ((!utf8_safe || static_cast<uint8_t>(*src) < 0x80) &&
(!isprint(*src) ||
(last_hex_escape && isxdigit(*src)))) {
if (dest_len - used < 4) // need space for 4 letter escape
return -1;
sprintf(dest + used, (use_hex ? "\\x%02x" : "\\%03o"),
static_cast<uint8_t>(*src));
is_hex_escape = use_hex;
used += 4;
} else {
dest[used++] = *src; break;
}
}
last_hex_escape = is_hex_escape;
}
if (dest_len - used < 1) // make sure that there is room for \0
return -1;
dest[used] = '\0'; // doesn't count towards return value though
return used;
} | O0 | cpp | google::protobuf::CEscapeInternal(char const*, int, char*, int, bool, bool):
subq $0x58, %rsp
movl %r8d, 0x8(%rsp)
movl %ecx, %eax
movl 0x8(%rsp), %ecx
movl %eax, 0xc(%rsp)
movq %rdx, %rax
movl 0xc(%rsp), %edx
movq %rax, 0x10(%rsp)
movl %esi, %eax
movq 0x10(%rsp), %rsi
movl %eax, 0x1c(%rsp)
movq %rdi, %r8
movl 0x1c(%rsp), %edi
movb %r9b, %al
movq %r8, 0x48(%rsp)
movl %edi, 0x44(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
andb $0x1, %cl
movb %cl, 0x33(%rsp)
andb $0x1, %al
movb %al, 0x32(%rsp)
movq 0x48(%rsp), %rax
movslq 0x44(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movb $0x0, 0x23(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x28045
movl 0x34(%rsp), %eax
subl 0x24(%rsp), %eax
cmpl $0x2, %eax
jge 0x27dac
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x28072
movb $0x0, 0x22(%rsp)
movq 0x48(%rsp), %rax
movsbl (%rax), %eax
movl %eax, 0x4(%rsp)
subl $0x9, %eax
je 0x27e7c
jmp 0x27dc8
movl 0x4(%rsp), %eax
subl $0xa, %eax
je 0x27e0e
jmp 0x27dd3
movl 0x4(%rsp), %eax
subl $0xd, %eax
je 0x27e45
jmp 0x27dde
movl 0x4(%rsp), %eax
subl $0x22, %eax
je 0x27eb3
jmp 0x27ded
movl 0x4(%rsp), %eax
subl $0x27, %eax
je 0x27eea
jmp 0x27dfc
movl 0x4(%rsp), %eax
subl $0x5c, %eax
je 0x27f21
jmp 0x27f58
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x6e, (%rax,%rcx)
jmp 0x28028
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x72, (%rax,%rcx)
jmp 0x28028
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x74, (%rax,%rcx)
jmp 0x28028
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x22, (%rax,%rcx)
jmp 0x28028
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x27, (%rax,%rcx)
jmp 0x28028
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x24(%rsp)
movslq %ecx, %rcx
movb $0x5c, (%rax,%rcx)
jmp 0x28028
testb $0x1, 0x32(%rsp)
je 0x27f72
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jge 0x28005
movq 0x48(%rsp), %rax
movsbl (%rax), %edi
callq 0x30500
testb $0x1, %al
jne 0x27f85
jmp 0x27f9f
testb $0x1, 0x23(%rsp)
je 0x28005
movq 0x48(%rsp), %rax
movsbl (%rax), %edi
callq 0x30390
testb $0x1, %al
jne 0x27f9f
jmp 0x28005
movl 0x34(%rsp), %eax
subl 0x24(%rsp), %eax
cmpl $0x4, %eax
jge 0x27fb9
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x28072
movq 0x38(%rsp), %rdi
movslq 0x24(%rsp), %rax
addq %rax, %rdi
movb 0x33(%rsp), %cl
leaq 0x1c4d88(%rip), %rsi # 0x1ecd59
leaq 0x1c4d7a(%rip), %rax # 0x1ecd52
testb $0x1, %cl
cmovneq %rax, %rsi
movq 0x48(%rsp), %rax
movzbl (%rax), %edx
movb $0x0, %al
callq 0x130b0
movb 0x33(%rsp), %al
andb $0x1, %al
movb %al, 0x22(%rsp)
movl 0x24(%rsp), %eax
addl $0x4, %eax
movl %eax, 0x24(%rsp)
jmp 0x28026
movq 0x48(%rsp), %rax
movb (%rax), %dl
movq 0x38(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x24(%rsp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x28028
jmp 0x28028
movb 0x22(%rsp), %al
andb $0x1, %al
movb %al, 0x23(%rsp)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x27d82
movl 0x34(%rsp), %eax
subl 0x24(%rsp), %eax
cmpl $0x1, %eax
jge 0x2805c
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x28072
movq 0x38(%rsp), %rax
movslq 0x24(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movl 0x24(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)
| _ZN6google8protobuf15CEscapeInternalEPKciPcibb:
sub rsp, 58h
mov [rsp+58h+var_50], r8d
mov eax, ecx
mov ecx, [rsp+58h+var_50]
mov [rsp+58h+var_4C], eax
mov rax, rdx
mov edx, [rsp+58h+var_4C]
mov qword ptr [rsp+58h+var_48], rax
mov eax, esi
mov rsi, qword ptr [rsp+58h+var_48]; char
mov [rsp+58h+var_3C], eax
mov r8, rdi
mov edi, [rsp+58h+var_3C]
mov al, r9b
mov [rsp+58h+var_10], r8
mov [rsp+58h+var_14], edi
mov [rsp+58h+var_20], rsi
mov [rsp+58h+var_24], edx
and cl, 1
mov [rsp+58h+var_25], cl
and al, 1
mov [rsp+58h+var_26], al
mov rax, [rsp+58h+var_10]
movsxd rcx, [rsp+58h+var_14]
add rax, rcx
mov [rsp+58h+var_30], rax
mov [rsp+58h+var_34], 0
mov [rsp+58h+var_35], 0
loc_27D82:
mov rax, [rsp+58h+var_10]
cmp rax, [rsp+58h+var_30]
jnb loc_28045
mov eax, [rsp+58h+var_24]
sub eax, [rsp+58h+var_34]
cmp eax, 2
jge short loc_27DAC
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp loc_28072
loc_27DAC:
mov [rsp+58h+var_36], 0
mov rax, [rsp+58h+var_10]
movsx eax, byte ptr [rax]
mov [rsp+58h+var_54], eax
sub eax, 9
jz loc_27E7C
jmp short $+2
loc_27DC8:
mov eax, [rsp+58h+var_54]
sub eax, 0Ah
jz short loc_27E0E
jmp short $+2
loc_27DD3:
mov eax, [rsp+58h+var_54]
sub eax, 0Dh
jz short loc_27E45
jmp short $+2
loc_27DDE:
mov eax, [rsp+58h+var_54]
sub eax, 22h ; '"'
jz loc_27EB3
jmp short $+2
loc_27DED:
mov eax, [rsp+58h+var_54]
sub eax, 27h ; '''
jz loc_27EEA
jmp short $+2
loc_27DFC:
mov eax, [rsp+58h+var_54]
sub eax, 5Ch ; '\'
jz loc_27F21
jmp loc_27F58
loc_27E0E:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 6Eh ; 'n'
jmp loc_28028
loc_27E45:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 72h ; 'r'
jmp loc_28028
loc_27E7C:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 74h ; 't'
jmp loc_28028
loc_27EB3:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 22h ; '"'
jmp loc_28028
loc_27EEA:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 27h ; '''
jmp loc_28028
loc_27F21:
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov edx, ecx
add edx, 1
mov [rsp+58h+var_34], edx
movsxd rcx, ecx
mov byte ptr [rax+rcx], 5Ch ; '\'
jmp loc_28028
loc_27F58:
test [rsp+58h+var_26], 1
jz short loc_27F72
mov rax, [rsp+58h+var_10]
movzx eax, byte ptr [rax]
cmp eax, 80h
jge loc_28005
loc_27F72:
mov rax, [rsp+58h+var_10]
movsx edi, byte ptr [rax]; this
call _ZN6google8protobuf7isprintEc; google::protobuf::isprint(char)
test al, 1
jnz short loc_27F85
jmp short loc_27F9F
loc_27F85:
test [rsp+58h+var_35], 1
jz short loc_28005
mov rax, [rsp+58h+var_10]
movsx edi, byte ptr [rax]; this
call _ZN6google8protobuf8isxdigitEc; google::protobuf::isxdigit(char)
test al, 1
jnz short loc_27F9F
jmp short loc_28005
loc_27F9F:
mov eax, [rsp+58h+var_24]
sub eax, [rsp+58h+var_34]
cmp eax, 4
jge short loc_27FB9
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp loc_28072
loc_27FB9:
mov rdi, [rsp+58h+var_20]
movsxd rax, [rsp+58h+var_34]
add rdi, rax
mov cl, [rsp+58h+var_25]
lea rsi, a03o; "\\%03o"
lea rax, aX02x; "\\x%02x"
test cl, 1
cmovnz rsi, rax
mov rax, [rsp+58h+var_10]
movzx edx, byte ptr [rax]
mov al, 0
call _sprintf
mov al, [rsp+58h+var_25]
and al, 1
mov [rsp+58h+var_36], al
mov eax, [rsp+58h+var_34]
add eax, 4
mov [rsp+58h+var_34], eax
jmp short loc_28026
loc_28005:
mov rax, [rsp+58h+var_10]
mov dl, [rax]
mov rax, [rsp+58h+var_20]
mov ecx, [rsp+58h+var_34]
mov esi, ecx
add esi, 1
mov [rsp+58h+var_34], esi
movsxd rcx, ecx
mov [rax+rcx], dl
jmp short loc_28028
loc_28026:
jmp short $+2
loc_28028:
mov al, [rsp+58h+var_36]
and al, 1
mov [rsp+58h+var_35], al
mov rax, [rsp+58h+var_10]
add rax, 1
mov [rsp+58h+var_10], rax
jmp loc_27D82
loc_28045:
mov eax, [rsp+58h+var_24]
sub eax, [rsp+58h+var_34]
cmp eax, 1
jge short loc_2805C
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp short loc_28072
loc_2805C:
mov rax, [rsp+58h+var_20]
movsxd rcx, [rsp+58h+var_34]
mov byte ptr [rax+rcx], 0
mov eax, [rsp+58h+var_34]
mov [rsp+58h+var_4], eax
loc_28072:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
| long long google::protobuf::CEscapeInternal(
google::protobuf *this,
const char *a2,
long long a3,
char *a4,
char a5,
char a6)
{
int v6; // eax
unsigned int v7; // ecx
unsigned int v8; // ecx
unsigned int v9; // ecx
unsigned int v10; // ecx
unsigned int v11; // ecx
unsigned int v12; // ecx
unsigned int v13; // ecx
int v15; // [rsp+4h] [rbp-54h]
char v16; // [rsp+22h] [rbp-36h]
char v17; // [rsp+23h] [rbp-35h]
unsigned int v18; // [rsp+24h] [rbp-34h]
google::protobuf *v19; // [rsp+28h] [rbp-30h]
char v20; // [rsp+32h] [rbp-26h]
char v21; // [rsp+33h] [rbp-25h]
int v22; // [rsp+34h] [rbp-24h]
google::protobuf *v24; // [rsp+48h] [rbp-10h]
v6 = (int)a2;
LOBYTE(a2) = a3;
v24 = this;
v22 = (int)a4;
v21 = a5 & 1;
v20 = a6 & 1;
v19 = (google::protobuf *)((char *)this + v6);
v18 = 0;
v17 = 0;
while ( v24 < v19 )
{
if ( (int)(v22 - v18) < 2 )
return (unsigned int)-1;
v16 = 0;
v15 = *(char *)v24;
switch ( v15 )
{
case 9:
*(_BYTE *)(a3 + (int)v18) = 92;
v9 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v9) = 116;
break;
case 10:
*(_BYTE *)(a3 + (int)v18) = 92;
v7 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v7) = 110;
break;
case 13:
*(_BYTE *)(a3 + (int)v18) = 92;
v8 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v8) = 114;
break;
case 34:
*(_BYTE *)(a3 + (int)v18) = 92;
v10 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v10) = 34;
break;
case 39:
*(_BYTE *)(a3 + (int)v18) = 92;
v11 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v11) = 39;
break;
case 92:
*(_BYTE *)(a3 + (int)v18) = 92;
v12 = v18 + 1;
v18 += 2;
*(_BYTE *)(a3 + (int)v12) = 92;
break;
default:
if ( (v20 & 1) != 0 && *(unsigned __int8 *)v24 >= 0x80u
|| (google::protobuf::isprint((google::protobuf *)(unsigned int)*(char *)v24, (char)a2) & 1) != 0
&& ((v17 & 1) == 0
|| (google::protobuf::isxdigit((google::protobuf *)(unsigned int)*(char *)v24, (char)a2) & 1) == 0) )
{
v13 = v18;
LOBYTE(a2) = ++v18;
*(_BYTE *)(a3 + (int)v13) = *(_BYTE *)v24;
}
else
{
if ( (int)(v22 - v18) < 4 )
return (unsigned int)-1;
a2 = "\\%03o";
if ( (v21 & 1) != 0 )
a2 = "\\x%02x";
sprintf((int)v18 + a3, a2, *(unsigned __int8 *)v24);
v16 = v21 & 1;
v18 += 4;
}
break;
}
v17 = v16;
v24 = (google::protobuf *)((char *)v24 + 1);
}
if ( (int)(v22 - v18) >= 1 )
{
*(_BYTE *)(a3 + (int)v18) = 0;
return v18;
}
else
{
return (unsigned int)-1;
}
}
| CEscapeInternal:
SUB RSP,0x58
MOV dword ptr [RSP + 0x8],R8D
MOV EAX,ECX
MOV ECX,dword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,RDX
MOV EDX,dword ptr [RSP + 0xc]
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,ESI
MOV RSI,qword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x1c],EAX
MOV R8,RDI
MOV EDI,dword ptr [RSP + 0x1c]
MOV AL,R9B
MOV qword ptr [RSP + 0x48],R8
MOV dword ptr [RSP + 0x44],EDI
MOV qword ptr [RSP + 0x38],RSI
MOV dword ptr [RSP + 0x34],EDX
AND CL,0x1
MOV byte ptr [RSP + 0x33],CL
AND AL,0x1
MOV byte ptr [RSP + 0x32],AL
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x44]
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x24],0x0
MOV byte ptr [RSP + 0x23],0x0
LAB_00127d82:
MOV RAX,qword ptr [RSP + 0x48]
CMP RAX,qword ptr [RSP + 0x28]
JNC 0x00128045
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,dword ptr [RSP + 0x24]
CMP EAX,0x2
JGE 0x00127dac
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x00128072
LAB_00127dac:
MOV byte ptr [RSP + 0x22],0x0
MOV RAX,qword ptr [RSP + 0x48]
MOVSX EAX,byte ptr [RAX]
MOV dword ptr [RSP + 0x4],EAX
SUB EAX,0x9
JZ 0x00127e7c
JMP 0x00127dc8
LAB_00127dc8:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0xa
JZ 0x00127e0e
JMP 0x00127dd3
LAB_00127dd3:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0xd
JZ 0x00127e45
JMP 0x00127dde
LAB_00127dde:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x22
JZ 0x00127eb3
JMP 0x00127ded
LAB_00127ded:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x27
JZ 0x00127eea
JMP 0x00127dfc
LAB_00127dfc:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x5c
JZ 0x00127f21
JMP 0x00127f58
LAB_00127e0e:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x6e
JMP 0x00128028
LAB_00127e45:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x72
JMP 0x00128028
LAB_00127e7c:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x74
JMP 0x00128028
LAB_00127eb3:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x22
JMP 0x00128028
LAB_00127eea:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x27
JMP 0x00128028
LAB_00127f21:
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x24],EDX
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],0x5c
JMP 0x00128028
LAB_00127f58:
TEST byte ptr [RSP + 0x32],0x1
JZ 0x00127f72
MOV RAX,qword ptr [RSP + 0x48]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x80
JGE 0x00128005
LAB_00127f72:
MOV RAX,qword ptr [RSP + 0x48]
MOVSX EDI,byte ptr [RAX]
CALL 0x00130500
TEST AL,0x1
JNZ 0x00127f85
JMP 0x00127f9f
LAB_00127f85:
TEST byte ptr [RSP + 0x23],0x1
JZ 0x00128005
MOV RAX,qword ptr [RSP + 0x48]
MOVSX EDI,byte ptr [RAX]
CALL 0x00130390
TEST AL,0x1
JNZ 0x00127f9f
JMP 0x00128005
LAB_00127f9f:
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,dword ptr [RSP + 0x24]
CMP EAX,0x4
JGE 0x00127fb9
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x00128072
LAB_00127fb9:
MOV RDI,qword ptr [RSP + 0x38]
MOVSXD RAX,dword ptr [RSP + 0x24]
ADD RDI,RAX
MOV CL,byte ptr [RSP + 0x33]
LEA RSI,[0x2ecd59]
LEA RAX,[0x2ecd52]
TEST CL,0x1
CMOVNZ RSI,RAX
MOV RAX,qword ptr [RSP + 0x48]
MOVZX EDX,byte ptr [RAX]
MOV AL,0x0
CALL 0x001130b0
MOV AL,byte ptr [RSP + 0x33]
AND AL,0x1
MOV byte ptr [RSP + 0x22],AL
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x4
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00128026
LAB_00128005:
MOV RAX,qword ptr [RSP + 0x48]
MOV DL,byte ptr [RAX]
MOV RAX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x24]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RSP + 0x24],ESI
MOVSXD RCX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x00128028
LAB_00128026:
JMP 0x00128028
LAB_00128028:
MOV AL,byte ptr [RSP + 0x22]
AND AL,0x1
MOV byte ptr [RSP + 0x23],AL
MOV RAX,qword ptr [RSP + 0x48]
ADD RAX,0x1
MOV qword ptr [RSP + 0x48],RAX
JMP 0x00127d82
LAB_00128045:
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,dword ptr [RSP + 0x24]
CMP EAX,0x1
JGE 0x0012805c
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x00128072
LAB_0012805c:
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x54],EAX
LAB_00128072:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
/* google::protobuf::CEscapeInternal(char const*, int, char*, int, bool, bool) */
int google::protobuf::CEscapeInternal
(char *param_1,int param_2,char *param_3,int param_4,bool param_5,bool param_6)
{
byte bVar1;
ulong uVar2;
int iVar3;
char *__format;
byte local_36;
byte local_35;
int local_34;
byte *local_10;
int local_4;
local_34 = 0;
local_35 = 0;
local_10 = (byte *)param_1;
while( true ) {
if (param_1 + param_2 <= local_10) {
if (param_4 - local_34 < 1) {
local_4 = -1;
}
else {
param_3[local_34] = '\0';
local_4 = local_34;
}
return local_4;
}
if (param_4 - local_34 < 2) break;
local_36 = 0;
bVar1 = *local_10;
if (bVar1 == 9) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = 't';
}
else if (bVar1 == 10) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = 'n';
}
else if (bVar1 == 0xd) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = 'r';
}
else if (bVar1 == 0x22) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = '\"';
}
else if (bVar1 == 0x27) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = '\'';
}
else if (bVar1 == 0x5c) {
iVar3 = local_34 + 1;
param_3[local_34] = '\\';
local_34 = local_34 + 2;
param_3[iVar3] = '\\';
}
else if (((param_6) && (0x7f < *local_10)) ||
((uVar2 = isprint(*local_10), (uVar2 & 1) != 0 &&
((local_35 == 0 || (uVar2 = isxdigit(*local_10), (uVar2 & 1) == 0)))))) {
param_3[local_34] = *local_10;
local_34 = local_34 + 1;
}
else {
if (param_4 - local_34 < 4) {
return -1;
}
__format = "\\%03o";
if (param_5) {
__format = "\\x%02x";
}
sprintf(param_3 + local_34,__format,(ulong)*local_10);
local_36 = param_5;
local_34 = local_34 + 4;
}
local_35 = local_36 & 1;
local_10 = local_10 + 1;
}
return -1;
}
| |
50,053 | ggml_fp32_to_bf16_row | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | void ggml_fp32_to_bf16_row(const float * x, ggml_bf16_t * y, int64_t n) {
int i = 0;
#if defined(__AVX512BF16__)
// subnormals are flushed to zero on this platform
for (; i + 32 <= n; i += 32) {
_mm512_storeu_si512(
(__m512i *)(y + i),
m512i(_mm512_cvtne2ps_pbh(_mm512_loadu_ps(x + i + 16),
_mm512_loadu_ps(x + i))));
}
#endif
for (; i < n; i++) {
y[i] = GGML_FP32_TO_BF16(x[i]);
}
} | O0 | c | ggml_fp32_to_bf16_row:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movslq -0x1c(%rbp), %rax
cmpq -0x18(%rbp), %rax
jge 0x4ac49
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movslq -0x1c(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
callq 0x4a9f0
movq -0x30(%rbp), %rcx
movw %ax, %dx
movq -0x28(%rbp), %rax
movw %dx, -0x1e(%rbp)
movw -0x1e(%rbp), %dx
movw %dx, (%rax,%rcx,2)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4abfb
addq $0x30, %rsp
popq %rbp
retq
nop
| ggml_fp32_to_bf16_row:
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_1C], 0
loc_4ABFB:
movsxd rax, [rbp+var_1C]
cmp rax, [rbp+var_18]
jge short loc_4AC49
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
movsxd rax, [rbp+var_1C]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_1C]
movss xmm0, dword ptr [rax+rcx*4]
call ggml_compute_fp32_to_bf16
mov rcx, [rbp+var_30]
mov dx, ax
mov rax, [rbp+var_28]
mov [rbp+var_1E], dx
mov dx, [rbp+var_1E]
mov [rax+rcx*2], dx
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_4ABFB
loc_4AC49:
add rsp, 30h
pop rbp
retn
| long long ggml_fp32_to_bf16_row(long long a1, long long a2, long long a3)
{
long long result; // rax
int i; // [rsp+14h] [rbp-1Ch]
for ( i = 0; ; ++i )
{
result = i;
if ( i >= a3 )
break;
*(_WORD *)(a2 + 2LL * i) = ggml_compute_fp32_to_bf16(*(float *)(a1 + 4LL * i));
}
return result;
}
| ggml_fp32_to_bf16_row:
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 dword ptr [RBP + -0x1c],0x0
LAB_0014abfb:
MOVSXD RAX,dword ptr [RBP + -0x1c]
CMP RAX,qword ptr [RBP + -0x18]
JGE 0x0014ac49
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOVSXD RAX,dword ptr [RBP + -0x1c]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CALL 0x0014a9f0
MOV RCX,qword ptr [RBP + -0x30]
MOV DX,AX
MOV RAX,qword ptr [RBP + -0x28]
MOV word ptr [RBP + -0x1e],DX
MOV DX,word ptr [RBP + -0x1e]
MOV word ptr [RAX + RCX*0x2],DX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0014abfb
LAB_0014ac49:
ADD RSP,0x30
POP RBP
RET
|
void ggml_fp32_to_bf16_row(long param_1,long param_2,long param_3)
{
int2 uVar1;
int local_24;
for (local_24 = 0; local_24 < param_3; local_24 = local_24 + 1) {
uVar1 = ggml_compute_fp32_to_bf16(*(int4 *)(param_1 + (long)local_24 * 4));
*(int2 *)(param_2 + (long)local_24 * 2) = uVar1;
}
return;
}
| |
50,054 | ggml_fp32_to_bf16_row | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | void ggml_fp32_to_bf16_row(const float * x, ggml_bf16_t * y, int64_t n) {
int i = 0;
#if defined(__AVX512BF16__)
// subnormals are flushed to zero on this platform
for (; i + 32 <= n; i += 32) {
_mm512_storeu_si512(
(__m512i *)(y + i),
m512i(_mm512_cvtne2ps_pbh(_mm512_loadu_ps(x + i + 16),
_mm512_loadu_ps(x + i))));
}
#endif
for (; i < n; i++) {
y[i] = GGML_FP32_TO_BF16(x[i]);
}
} | O1 | c | ggml_fp32_to_bf16_row:
testq %rdx, %rdx
jle 0x1af47
xorl %eax, %eax
movl (%rdi,%rax,4), %r8d
movl %r8d, %r9d
andl $0x7fffffff, %r9d # imm = 0x7FFFFFFF
movl %r8d, %ecx
shrl $0x10, %ecx
cmpl $0x7f800001, %r9d # imm = 0x7F800001
jb 0x1af2c
orl $0x40, %ecx
jmp 0x1af3b
andl $0x1, %ecx
addl %r8d, %ecx
addl $0x7fff, %ecx # imm = 0x7FFF
shrl $0x10, %ecx
movw %cx, (%rsi,%rax,2)
incq %rax
cmpq %rax, %rdx
jne 0x1af0a
retq
| ggml_fp32_to_bf16_row:
test rdx, rdx
jle short locret_1AF47
xor eax, eax
loc_1AF0A:
mov r8d, [rdi+rax*4]
mov r9d, r8d
and r9d, 7FFFFFFFh
mov ecx, r8d
shr ecx, 10h
cmp r9d, 7F800001h
jb short loc_1AF2C
or ecx, 40h
jmp short loc_1AF3B
loc_1AF2C:
and ecx, 1
add ecx, r8d
add ecx, 7FFFh
shr ecx, 10h
loc_1AF3B:
mov [rsi+rax*2], cx
inc rax
cmp rdx, rax
jnz short loc_1AF0A
locret_1AF47:
retn
| void ggml_fp32_to_bf16_row(long long a1, long long a2, long long a3)
{
long long i; // rax
int v4; // ecx
if ( a3 > 0 )
{
for ( i = 0LL; i != a3; ++i )
{
v4 = HIWORD(*(_DWORD *)(a1 + 4 * i));
if ( (*(_DWORD *)(a1 + 4 * i) & 0x7FFFFFFFu) < 0x7F800001 )
v4 = (*(_DWORD *)(a1 + 4 * i) + (v4 & 1u) + 0x7FFF) >> 16;
else
LOWORD(v4) = v4 | 0x40;
*(_WORD *)(a2 + 2 * i) = v4;
}
}
}
| ggml_fp32_to_bf16_row:
TEST RDX,RDX
JLE 0x0011af47
XOR EAX,EAX
LAB_0011af0a:
MOV R8D,dword ptr [RDI + RAX*0x4]
MOV R9D,R8D
AND R9D,0x7fffffff
MOV ECX,R8D
SHR ECX,0x10
CMP R9D,0x7f800001
JC 0x0011af2c
OR ECX,0x40
JMP 0x0011af3b
LAB_0011af2c:
AND ECX,0x1
ADD ECX,R8D
ADD ECX,0x7fff
SHR ECX,0x10
LAB_0011af3b:
MOV word ptr [RSI + RAX*0x2],CX
INC RAX
CMP RDX,RAX
JNZ 0x0011af0a
LAB_0011af47:
RET
|
void ggml_fp32_to_bf16_row(long param_1,long param_2,long param_3)
{
uint uVar1;
long lVar2;
ushort uVar3;
if (0 < param_3) {
lVar2 = 0;
do {
uVar1 = *(uint *)(param_1 + lVar2 * 4);
if ((uVar1 & 0x7fffffff) < 0x7f800001) {
uVar3 = (ushort)((uVar1 >> 0x10 & 1) + uVar1 + 0x7fff >> 0x10);
}
else {
uVar3 = (ushort)(uVar1 >> 0x10) | 0x40;
}
*(ushort *)(param_2 + lVar2 * 2) = uVar3;
lVar2 = lVar2 + 1;
} while (param_3 != lVar2);
}
return;
}
| |
50,055 | testing::GetDirFromEnv[abi:cxx11](std::initializer_list<char const*>, char const*, char) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | static std::string GetDirFromEnv(
std::initializer_list<const char*> environment_variables,
const char* fallback, char separator) {
for (const char* variable_name : environment_variables) {
const char* value = internal::posix::GetEnv(variable_name);
if (value != nullptr && value[0] != '\0') {
if (value[strlen(value) - 1] != separator) {
return std::string(value).append(1, separator);
}
return value;
}
}
return fallback;
} | O0 | cpp | testing::GetDirFromEnv[abi:cxx11](std::initializer_list<char const*>, char const*, char):
subq $0xd8, %rsp
movq %rdi, 0x40(%rsp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, 0x48(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xc8(%rsp)
movq %rcx, 0xb8(%rsp)
movb %al, 0xb7(%rsp)
leaq 0xc0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xf9260
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xf9270
movq %rax, 0x98(%rsp)
movq 0xa0(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0xdc53a
movq 0xa0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0xe4170
movq %rax, 0x88(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0xdc51f
movq 0x88(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0xdc51f
movq 0x88(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x88(%rsp), %rdi
callq 0x14280
movq %rax, %rcx
movq 0x38(%rsp), %rax
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
movsbl 0xb7(%rsp), %ecx
cmpl %ecx, %eax
je 0xdc4c4
movq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x67(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x14c90
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x1a6a0
jmp 0xdc445
movsbl 0xb7(%rsp), %edx
leaq 0x68(%rsp), %rdi
movl $0x1, %esi
callq 0xf92b0
movq %rax, 0x20(%rsp)
jmp 0xdc463
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdi
callq 0x39160
jmp 0xdc474
leaq 0x68(%rsp), %rdi
callq 0x1aac0
leaq 0x67(%rsp), %rdi
callq 0x14750
jmp 0xdc590
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0xdc4b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x1aac0
leaq 0x67(%rsp), %rdi
callq 0x14750
jmp 0xdc59d
movq 0x88(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x53(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x14c90
movq 0x40(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1a6a0
jmp 0xdc4f6
leaq 0x53(%rsp), %rdi
callq 0x14750
jmp 0xdc590
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x53(%rsp), %rdi
callq 0x14750
jmp 0xdc59d
jmp 0xdc521
movq 0xa0(%rsp), %rax
addq $0x8, %rax
movq %rax, 0xa0(%rsp)
jmp 0xdc378
movq 0xb8(%rsp), %rax
movq %rax, (%rsp)
leaq 0x52(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x14c90
movq 0x40(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x1a6a0
jmp 0xdc56a
leaq 0x52(%rsp), %rdi
callq 0x14750
jmp 0xdc590
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x52(%rsp), %rdi
callq 0x14750
jmp 0xdc59d
movq 0x48(%rsp), %rax
addq $0xd8, %rsp
retq
movq 0x58(%rsp), %rdi
callq 0x14c80
nopw (%rax,%rax)
| _ZN7testingL13GetDirFromEnvB5cxx11ESt16initializer_listIPKcES2_c:
sub rsp, 0D8h
mov [rsp+0D8h+var_98], rdi
mov al, r8b
mov r8, rdi
mov [rsp+0D8h+var_90], r8
mov [rsp+0D8h+var_8], rdi
mov [rsp+0D8h+var_18], rsi
mov [rsp+0D8h+var_10], rdx
mov [rsp+0D8h+var_20], rcx
mov [rsp+0D8h+var_21], al
lea rax, [rsp+0D8h+var_18]
mov [rsp+0D8h+var_30], rax
mov rdi, [rsp+0D8h+var_30]
call _ZNKSt16initializer_listIPKcE5beginEv; std::initializer_list<char const*>::begin(void)
mov [rsp+0D8h+var_38], rax
mov rdi, [rsp+0D8h+var_30]
call _ZNKSt16initializer_listIPKcE3endEv; std::initializer_list<char const*>::end(void)
mov [rsp+0D8h+var_40], rax
loc_DC378:
mov rax, [rsp+0D8h+var_38]
cmp rax, [rsp+0D8h+var_40]
jz loc_DC53A
mov rax, [rsp+0D8h+var_38]
mov rax, [rax]
mov [rsp+0D8h+var_48], rax
mov rdi, [rsp+0D8h+var_48]; this
call _ZN7testing8internal5posix6GetEnvEPKc; testing::internal::posix::GetEnv(char const*)
mov [rsp+0D8h+var_50], rax
cmp [rsp+0D8h+var_50], 0
jz loc_DC51F
mov rax, [rsp+0D8h+var_50]
movsx eax, byte ptr [rax]
cmp eax, 0
jz loc_DC51F
mov rax, [rsp+0D8h+var_50]
mov [rsp+0D8h+var_A0], rax
mov rdi, [rsp+0D8h+var_50]
call _strlen
mov rcx, rax
mov rax, [rsp+0D8h+var_A0]
sub rcx, 1
movsx eax, byte ptr [rax+rcx]
movsx ecx, [rsp+0D8h+var_21]
cmp eax, ecx
jz loc_DC4C4
mov rax, [rsp+0D8h+var_50]
mov [rsp+0D8h+var_B0], rax
lea rdi, [rsp+0D8h+var_71]
mov [rsp+0D8h+var_A8], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+0D8h+var_B0]
mov rdx, [rsp+0D8h+var_A8]
lea rdi, [rsp+0D8h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_DC445:
movsx edx, [rsp+0D8h+var_21]
lea rdi, [rsp+0D8h+var_70]
mov esi, 1
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc; std::string::append(ulong,char)
mov [rsp+0D8h+var_B8], rax
jmp short $+2
loc_DC463:
mov rsi, [rsp+0D8h+var_B8]
mov rdi, [rsp+0D8h+var_98]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_DC474:
lea rdi, [rsp+0D8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_71]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_DC590
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_DC4B5
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_DC4B5:
lea rdi, [rsp+arg_5F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_DC59D
loc_DC4C4:
mov rax, [rsp+0D8h+var_50]
mov [rsp+0D8h+var_C8], rax
lea rdi, [rsp+0D8h+var_85]
mov [rsp+0D8h+var_C0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0D8h+var_98]
mov rsi, [rsp+0D8h+var_C8]
mov rdx, [rsp+0D8h+var_C0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_DC4F6:
lea rdi, [rsp+0D8h+var_85]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_DC590
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_4B]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_DC59D
loc_DC51F:
jmp short $+2
loc_DC521:
mov rax, [rsp+0D8h+var_38]
add rax, 8
mov [rsp+0D8h+var_38], rax
jmp loc_DC378
loc_DC53A:
mov rax, [rsp+0D8h+var_20]
mov [rsp+0D8h+var_D8], rax
lea rdi, [rsp+0D8h+var_86]
mov [rsp+0D8h+var_D0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0D8h+var_98]
mov rsi, [rsp+0D8h+var_D8]
mov rdx, [rsp+0D8h+var_D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_DC56A:
lea rdi, [rsp+0D8h+var_86]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_DC590
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_4A]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_DC59D
loc_DC590:
mov rax, [rsp+0D8h+var_90]
add rsp, 0D8h
retn
loc_DC59D:
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| _QWORD * testing::GetDirFromEnv[abi:cxx11](_QWORD *a1, const char *a2, long long a3, const char *a4, char a5)
{
long long v5; // rdx
long long v6; // rdx
const char *v7; // rsi
const char *v9; // [rsp+0h] [rbp-D8h]
const char *v10; // [rsp+10h] [rbp-C8h]
long long v11; // [rsp+28h] [rbp-B0h]
char v12; // [rsp+52h] [rbp-86h] BYREF
_BYTE v13[20]; // [rsp+53h] [rbp-85h] BYREF
char v14; // [rsp+67h] [rbp-71h] BYREF
_BYTE v15[32]; // [rsp+68h] [rbp-70h] BYREF
const char *Env; // [rsp+88h] [rbp-50h]
testing::internal::posix *v17; // [rsp+90h] [rbp-48h]
long long v18; // [rsp+98h] [rbp-40h]
testing::internal::posix **v19; // [rsp+A0h] [rbp-38h]
_QWORD *v20; // [rsp+A8h] [rbp-30h]
char v21; // [rsp+B7h] [rbp-21h]
const char *v22; // [rsp+B8h] [rbp-20h]
_QWORD v23[3]; // [rsp+C0h] [rbp-18h] BYREF
v23[2] = a1;
v23[0] = a2;
v23[1] = a3;
v22 = a4;
v21 = a5;
v20 = v23;
v19 = (testing::internal::posix **)std::initializer_list<char const*>::begin(v23);
v18 = std::initializer_list<char const*>::end(v23);
while ( 1 )
{
if ( v19 == (testing::internal::posix **)v18 )
{
v9 = v22;
std::allocator<char>::allocator(&v12, a2, v5);
std::string::basic_string<std::allocator<char>>((long long)a1, (long long)v9, (long long)&v12);
std::allocator<char>::~allocator(&v12, v9);
return a1;
}
v17 = *v19;
Env = (const char *)testing::internal::posix::GetEnv(v17, a2);
if ( Env )
{
if ( *Env )
break;
}
++v19;
}
if ( Env[strlen(Env) - 1] == v21 )
{
v10 = Env;
std::allocator<char>::allocator(v13, a2, v6);
std::string::basic_string<std::allocator<char>>((long long)a1, (long long)v10, (long long)v13);
std::allocator<char>::~allocator(v13, v10);
}
else
{
v11 = (long long)Env;
std::allocator<char>::allocator(&v14, a2, v6);
std::string::basic_string<std::allocator<char>>((long long)v15, v11, (long long)&v14);
v7 = (const char *)std::string::append(v15, 1LL, (unsigned int)v21);
std::string::basic_string(a1, (long long)v7);
std::string::~string(v15);
std::allocator<char>::~allocator(&v14, v7);
}
return a1;
}
| GetDirFromEnv[abi:cxx11]:
SUB RSP,0xd8
MOV qword ptr [RSP + 0x40],RDI
MOV AL,R8B
MOV R8,RDI
MOV qword ptr [RSP + 0x48],R8
MOV qword ptr [RSP + 0xd0],RDI
MOV qword ptr [RSP + 0xc0],RSI
MOV qword ptr [RSP + 0xc8],RDX
MOV qword ptr [RSP + 0xb8],RCX
MOV byte ptr [RSP + 0xb7],AL
LEA RAX,[RSP + 0xc0]
MOV qword ptr [RSP + 0xa8],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001f9260
MOV qword ptr [RSP + 0xa0],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001f9270
MOV qword ptr [RSP + 0x98],RAX
LAB_001dc378:
MOV RAX,qword ptr [RSP + 0xa0]
CMP RAX,qword ptr [RSP + 0x98]
JZ 0x001dc53a
MOV RAX,qword ptr [RSP + 0xa0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x90],RAX
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001e4170
MOV qword ptr [RSP + 0x88],RAX
CMP qword ptr [RSP + 0x88],0x0
JZ 0x001dc51f
MOV RAX,qword ptr [RSP + 0x88]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001dc51f
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00114280
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x38]
SUB RCX,0x1
MOVSX EAX,byte ptr [RAX + RCX*0x1]
MOVSX ECX,byte ptr [RSP + 0xb7]
CMP EAX,ECX
JZ 0x001dc4c4
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0x67]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x00114c90
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
LAB_001dc439:
LEA RDI,[RSP + 0x68]
CALL 0x0011a6a0
JMP 0x001dc445
LAB_001dc445:
MOVSX EDX,byte ptr [RSP + 0xb7]
LAB_001dc44d:
LEA RDI,[RSP + 0x68]
MOV ESI,0x1
CALL 0x001f92b0
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001dc463
LAB_001dc463:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x00139160
JMP 0x001dc474
LAB_001dc474:
LEA RDI,[RSP + 0x68]
CALL 0x0011aac0
LEA RDI,[RSP + 0x67]
CALL 0x00114750
JMP 0x001dc590
LAB_001dc4c4:
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x53]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x00114c90
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
LAB_001dc4ef:
CALL 0x0011a6a0
JMP 0x001dc4f6
LAB_001dc4f6:
LEA RDI,[RSP + 0x53]
CALL 0x00114750
JMP 0x001dc590
LAB_001dc51f:
JMP 0x001dc521
LAB_001dc521:
MOV RAX,qword ptr [RSP + 0xa0]
ADD RAX,0x8
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x001dc378
LAB_001dc53a:
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x52]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00114c90
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_001dc563:
CALL 0x0011a6a0
LAB_001dc568:
JMP 0x001dc56a
LAB_001dc56a:
LEA RDI,[RSP + 0x52]
CALL 0x00114750
JMP 0x001dc590
LAB_001dc590:
MOV RAX,qword ptr [RSP + 0x48]
ADD RSP,0xd8
RET
|
/* testing::GetDirFromEnv[abi:cxx11](std::initializer_list<char const*>, char const*, char) */
string * testing::GetDirFromEnv_abi_cxx11_
(string *param_1,int8 param_2,int8 param_3,char *param_4,char param_5
)
{
char *pcVar1;
char *pcVar2;
size_t sVar3;
string *psVar4;
allocator local_86;
allocator local_85 [20];
allocator local_71;
string local_70 [32];
char *local_50;
char *local_48;
int8 *local_40;
int8 *local_38;
initializer_list<char_const*> *local_30;
char local_21;
char *local_20;
int8 local_18;
int8 local_10;
string *local_8;
local_30 = (initializer_list<char_const*> *)&local_18;
local_21 = param_5;
local_20 = param_4;
local_18 = param_2;
local_10 = param_3;
local_8 = param_1;
local_38 = (int8 *)std::initializer_list<char_const*>::begin(local_30);
local_40 = (int8 *)std::initializer_list<char_const*>::end(local_30);
while( true ) {
pcVar2 = local_20;
if (local_38 == local_40) {
std::allocator<char>::allocator();
/* try { // try from 001dc563 to 001dc567 has its CatchHandler @ 001dc576 */
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar2,&local_86);
std::allocator<char>::~allocator((allocator<char> *)&local_86);
return param_1;
}
local_48 = (char *)*local_38;
pcVar2 = (char *)internal::posix::GetEnv(local_48);
local_50 = pcVar2;
if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) break;
local_38 = local_38 + 1;
}
sVar3 = strlen(pcVar2);
pcVar1 = local_50;
if (pcVar2[sVar3 - 1] != local_21) {
std::allocator<char>::allocator();
/* try { // try from 001dc439 to 001dc442 has its CatchHandler @ 001dc48d */
std::__cxx11::string::string<std::allocator<char>>(local_70,pcVar1,&local_71);
/* try { // try from 001dc44d to 001dc471 has its CatchHandler @ 001dc49d */
psVar4 = (string *)std::__cxx11::string::append(local_70,1,local_21);
std::__cxx11::string::string(param_1,psVar4);
std::__cxx11::string::~string(local_70);
std::allocator<char>::~allocator((allocator<char> *)&local_71);
return param_1;
}
std::allocator<char>::allocator();
/* try { // try from 001dc4ef to 001dc4f3 has its CatchHandler @ 001dc505 */
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar1,local_85);
std::allocator<char>::~allocator((allocator<char> *)local_85);
return param_1;
}
| |
50,056 | minja::Context::at(minja::Value const&) | llama.cpp/common/minja/minja.hpp | virtual Value & at(const Value & key) {
if (values_.contains(key)) return values_.at(key);
if (parent_) return parent_->at(key);
throw std::runtime_error("Undefined variable: " + key.dump());
} | O3 | cpp | minja::Context::at(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x7737a
testb %al, %al
je 0x7723d
movq %r15, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x775c6
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x7725c
movq (%rdi), %rax
movq 0x18(%rax), %rax
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movl $0x10, %edi
callq 0x1c460
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x6cb9a
leaq 0x5505d(%rip), %rsi # 0xcc2e1
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x66b64
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x1c2c0
xorl %ebp, %ebp
movq 0x88d0c(%rip), %rsi # 0xfffb8
movq 0x88cc5(%rip), %rdx # 0xfff78
movq %rbx, %rdi
callq 0x1c7b0
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x772d9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c110
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x772f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
testb %bpl, %bpl
jne 0x7731e
jmp 0x77326
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7731e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x7731e
movq %rax, %r14
movq %rbx, %rdi
callq 0x1caa0
movq %r14, %rdi
callq 0x1c7d0
| _ZN5minja7Context2atERKNS_5ValueE:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
lea r15, [rdi+18h]
mov rdi, r15; this
call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&)
test al, al
jz short loc_7723D
mov rdi, r15; this
mov rsi, r14; minja::Value *
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
loc_7723D:
mov rdi, [rbx+68h]
test rdi, rdi
jz short loc_7725C
mov rax, [rdi]
mov rax, [rax+18h]
mov rsi, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp rax
loc_7725C:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUndefinedVaria; "Undefined variable: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+68h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_772D9
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_772D9:
lea rax, [rsp+68h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_772F4
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_772F4:
test bpl, bpl
jnz short loc_7731E
jmp short loc_77326
mov r14, rax
lea rax, [rsp+68h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7731E
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7731E
mov r14, rax
loc_7731E:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_77326:
mov rdi, r14
call __Unwind_Resume
| long long minja::Context::at(minja::Context *this, const minja::Value *a2)
{
long long v3; // rdi
void *exception; // rbx
_BYTE v5[16]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v6[2]; // [rsp+28h] [rbp-40h] BYREF
if ( (unsigned __int8)minja::Value::contains((minja::Context *)((char *)this + 24), a2) )
return minja::Value::at((minja::Context *)((char *)this + 24), a2);
v3 = *((_QWORD *)this + 13);
if ( !v3 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v5, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>(v6, (long long)"Undefined variable: ", (long long)v5);
std::runtime_error::runtime_error(exception, v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return (*(long long ( **)(long long, const minja::Value *))(*(_QWORD *)v3 + 24LL))(v3, a2);
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RDI + 0x18]
MOV RDI,R15
CALL 0x0017737a
TEST AL,AL
JZ 0x0017723d
MOV RDI,R15
MOV RSI,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001775c6
LAB_0017723d:
MOV RDI,qword ptr [RBX + 0x68]
TEST RDI,RDI
JZ 0x0017725c
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
MOV RSI,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP RAX
LAB_0017725c:
MOV EDI,0x10
CALL 0x0011c460
MOV RBX,RAX
LAB_00177269:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0016cb9a
LAB_0017727d:
LEA RSI,[0x1cc2e1]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00166b64
MOV BPL,0x1
LAB_00177296:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x0011c2c0
XOR EBP,EBP
MOV RSI,qword ptr [0x001fffb8]
MOV RDX,qword ptr [0x001fff78]
MOV RDI,RBX
CALL 0x0011c7b0
|
/* minja::Context::at(minja::Value const&) */
void __thiscall minja::Context::at(Context *this,Value *param_1)
{
long *plVar1;
char cVar2;
runtime_error *this_00;
int1 local_60 [32];
string local_40 [32];
cVar2 = Value::contains((Value *)(this + 0x18),param_1);
if (cVar2 != '\0') {
Value::at((Value *)(this + 0x18),param_1);
return;
}
plVar1 = *(long **)(this + 0x68);
if (plVar1 != (long *)0x0) {
/* WARNING: Could not recover jumptable at 0x0017725a. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar1 + 0x18))(plVar1,param_1);
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00177269 to 0017727c has its CatchHandler @ 0017731b */
Value::dump_abi_cxx11_((int)local_60,SUB81(param_1,0));
/* try { // try from 0017727d to 00177292 has its CatchHandler @ 001772fb */
std::operator+((char *)local_40,(string *)"Undefined variable: ");
/* try { // try from 00177296 to 001772ba has its CatchHandler @ 001772bb */
std::runtime_error::runtime_error(this_00,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78);
}
| |
50,057 | Catch::StringRef::compare(Catch::StringRef) const | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | int StringRef::compare( StringRef rhs ) const {
auto cmpResult =
strncmp( m_start, rhs.m_start, std::min( m_size, rhs.m_size ) );
// This means that strncmp found a difference before the strings
// ended, and we can return it directly
if ( cmpResult != 0 ) {
return cmpResult;
}
// If strings are equal up to length, then their comparison results on
// their size
if ( m_size < rhs.m_size ) {
return -1;
} else if ( m_size > rhs.m_size ) {
return 1;
} else {
return 0;
}
} | O3 | cpp | Catch::StringRef::compare(Catch::StringRef) const:
pushq %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
xorl %edi, %edi
cmpq %rdx, %rcx
seta %dil
cmovbq %rcx, %rdx
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
cmovael %edi, %ebx
movq %rax, %rdi
callq 0x172f0
testl %eax, %eax
cmovel %ebx, %eax
popq %rbx
retq
| _ZNK5Catch9StringRef7compareES0_:
push rbx
mov rax, [rdi]
mov rcx, [rdi+8]
xor edi, edi
cmp rcx, rdx
setnbe dil
cmovb rdx, rcx
mov ebx, 0FFFFFFFFh
cmovnb ebx, edi
mov rdi, rax
call _strncmp
test eax, eax
cmovz eax, ebx
pop rbx
retn
| long long Catch::StringRef::compare(long long *a1, long long a2, unsigned long long a3)
{
long long v3; // rax
unsigned long long v4; // rcx
bool v5; // cf
BOOL v6; // edi
unsigned int v7; // ebx
long long result; // rax
v3 = *a1;
v4 = a1[1];
v5 = v4 < a3;
v6 = v4 > a3;
if ( v4 < a3 )
a3 = v4;
v7 = -1;
if ( !v5 )
v7 = v6;
result = strncmp(v3, a2, a3, v4);
if ( !(_DWORD)result )
return v7;
return result;
}
| compare:
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RDI + 0x8]
XOR EDI,EDI
CMP RCX,RDX
SETA DIL
CMOVC RDX,RCX
MOV EBX,0xffffffff
CMOVNC EBX,EDI
MOV RDI,RAX
CALL 0x001172f0
TEST EAX,EAX
CMOVZ EAX,EBX
POP RBX
RET
|
/* Catch::StringRef::compare(Catch::StringRef) const */
uint Catch::StringRef::compare(int8 *param_1,char *param_2,ulong param_3)
{
ulong uVar1;
uint uVar2;
ulong __n;
uint uVar3;
uVar1 = param_1[1];
__n = param_3;
if (uVar1 < param_3) {
__n = uVar1;
}
uVar3 = 0xffffffff;
if (uVar1 >= param_3) {
uVar3 = (uint)(param_3 < uVar1);
}
uVar2 = strncmp((char *)*param_1,param_2,__n);
if (uVar2 == 0) {
uVar2 = uVar3;
}
return uVar2;
}
| |
50,058 | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/topologyMap.cpp | TopologyMap::TopologyMap(Traits traits, Options options) : _traits(traits), _options(options) {
resizeAddressSpace(_options.initialAddressSpace);
if constexpr (kRegularPlanAtIndexZero)
_plansTable.emplace_back(nullptr);
} | O1 | cpp | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb %sil, (%rdi)
movq %rdx, 0x4(%rdi)
movq %rcx, 0xc(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x44(%rdi)
movl $0x1, 0x54(%rdi)
leaq 0x70(%rdi), %r14
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movl 0x8(%rdi), %esi
callq 0x3acf0
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %r14, %rdi
callq 0x3abe0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xaee54
movq %rax, %r15
leaq 0x58(%rbx), %r12
movq %r14, %rdi
callq 0x3b6b0
movq (%r12), %rdi
testq %rdi, %rdi
je 0xaee78
movq 0x68(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq %r15, %rdi
callq 0x3bd70
| _ZN10OpenSubdiv6v3_6_03Tmr11TopologyMapC2ENS2_6TraitsENS2_7OptionsE:
push r15; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options)'
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov [rdi], sil
mov [rdi+4], rdx
mov [rdi+0Ch], rcx
xorps xmm0, xmm0
movups xmmword ptr [rdi+18h], xmm0
movups xmmword ptr [rdi+28h], xmm0
movups xmmword ptr [rdi+38h], xmm0
movups xmmword ptr [rdi+44h], xmm0
mov dword ptr [rdi+54h], 1
lea r14, [rdi+70h]
movups xmmword ptr [rdi+58h], xmm0
movups xmmword ptr [rdi+68h], xmm0
movups xmmword ptr [rdi+78h], xmm0
mov esi, [rdi+8]; unsigned __int64
call __ZN10OpenSubdiv6v3_6_03Tmr11TopologyMap18resizeAddressSpaceEm; OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace(ulong)
mov rsi, rsp
mov qword ptr [rsi], 0
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EE12emplace_backIJDnEEERS8_DpOT_; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::emplace_back<decltype(nullptr)>(decltype(nullptr) &&)
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_AEE54:
mov r15, rax
lea r12, [rbx+58h]
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EED2Ev; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::~vector()
mov rdi, [r12]; void *
test rdi, rdi
jz short loc_AEE78
mov rsi, [rbx+68h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AEE78:
mov rdi, r15
call __Unwind_Resume
| long long OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(long long a1, char a2, long long a3, long long a4)
{
long long v4; // rax
long long v6; // [rsp-8h] [rbp-28h] BYREF
v6 = v4;
*(_BYTE *)a1 = a2;
*(_QWORD *)(a1 + 4) = a3;
*(_QWORD *)(a1 + 12) = a4;
*(_OWORD *)(a1 + 24) = 0LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_OWORD *)(a1 + 56) = 0LL;
*(_OWORD *)(a1 + 68) = 0LL;
*(_DWORD *)(a1 + 84) = 1;
*(_OWORD *)(a1 + 88) = 0LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_OWORD *)(a1 + 120) = 0LL;
OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace(
(OpenSubdiv::v3_6_0::Tmr::TopologyMap *)a1,
*(unsigned int *)(a1 + 8));
v6 = 0LL;
return std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::emplace_back<decltype(nullptr)>(
a1 + 112,
&v6);
}
| TopologyMap:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV byte ptr [RDI],SIL
MOV qword ptr [RDI + 0x4],RDX
MOV qword ptr [RDI + 0xc],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOVUPS xmmword ptr [RDI + 0x44],XMM0
MOV dword ptr [RDI + 0x54],0x1
LEA R14,[RDI + 0x70]
MOVUPS xmmword ptr [RDI + 0x58],XMM0
MOVUPS xmmword ptr [RDI + 0x68],XMM0
MOVUPS xmmword ptr [RDI + 0x78],XMM0
MOV ESI,dword ptr [RDI + 0x8]
LAB_001aee2f:
CALL 0x0013acf0
MOV RSI,RSP
MOV qword ptr [RSI],0x0
LAB_001aee3e:
MOV RDI,R14
CALL 0x0013abe0
LAB_001aee46:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits,
OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap
(TopologyMap *this,TopologyMap param_2,int8 param_3,int8 param_4)
{
_func_decltype_nullptr *local_28;
*this = param_2;
*(int8 *)(this + 4) = param_3;
*(int8 *)(this + 0xc) = param_4;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x44) = 0;
*(int8 *)(this + 0x4c) = 0;
*(int4 *)(this + 0x54) = 1;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
/* try { // try from 001aee2f to 001aee33 has its CatchHandler @ 001aee54 */
resizeAddressSpace(this,(ulong)*(uint *)(this + 8));
local_28 = (_func_decltype_nullptr *)0x0;
/* try { // try from 001aee3e to 001aee45 has its CatchHandler @ 001aee52 */
std::
vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>,std::allocator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>>>
::emplace_back<decltype(nullptr)>
((vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>,std::allocator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>>>
*)(this + 0x70),&local_28);
return;
}
| |
50,059 | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/topologyMap.cpp | TopologyMap::TopologyMap(Traits traits, Options options) : _traits(traits), _options(options) {
resizeAddressSpace(_options.initialAddressSpace);
if constexpr (kRegularPlanAtIndexZero)
_plansTable.emplace_back(nullptr);
} | O2 | cpp | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movb %sil, (%rdi)
movq %rdx, 0x4(%rdi)
movq %rcx, 0xc(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x44(%rdi)
movl $0x1, 0x54(%rdi)
leaq 0x70(%rdi), %r14
shrq $0x20, %rdx
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movq %rdx, %rsi
callq 0x53940
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
movq %r14, %rdi
callq 0x537b0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0xb9646
movq %rax, %r15
addq $0x58, %rbx
movq %r14, %rdi
callq 0x548b0
movq %rbx, %rdi
callq 0x50a30
movq %r15, %rdi
callq 0x55300
nop
| _ZN10OpenSubdiv6v3_6_03Tmr11TopologyMapC2ENS2_6TraitsENS2_7OptionsE:
push r15; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options)'
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
mov [rdi], sil
mov [rdi+4], rdx
mov [rdi+0Ch], rcx
xorps xmm0, xmm0
movups xmmword ptr [rdi+18h], xmm0
movups xmmword ptr [rdi+28h], xmm0
movups xmmword ptr [rdi+38h], xmm0
movups xmmword ptr [rdi+44h], xmm0
mov dword ptr [rdi+54h], 1
lea r14, [rdi+70h]
shr rdx, 20h
movups xmmword ptr [rdi+58h], xmm0
movups xmmword ptr [rdi+68h], xmm0
movups xmmword ptr [rdi+78h], xmm0
mov rsi, rdx; unsigned __int64
call __ZN10OpenSubdiv6v3_6_03Tmr11TopologyMap18resizeAddressSpaceEm; OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace(ulong)
lea rsi, [rsp+28h+var_20]
and qword ptr [rsi], 0
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EE12emplace_backIJDnEEERS8_DpOT_; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::emplace_back<decltype(nullptr)>(decltype(nullptr) &&)
add rsp, 10h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_B9646:
mov r15, rax
add rbx, 58h ; 'X'
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EED2Ev; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::~vector()
mov rdi, rbx
call __ZNSt12_Vector_baseIjSaIjEED2Ev; std::_Vector_base<uint>::~_Vector_base()
mov rdi, r15
call __Unwind_Resume
| long long OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(
long long a1,
char a2,
unsigned long long a3,
long long a4)
{
_QWORD v5[4]; // [rsp+8h] [rbp-20h] BYREF
*(_BYTE *)a1 = a2;
*(_QWORD *)(a1 + 4) = a3;
*(_QWORD *)(a1 + 12) = a4;
*(_OWORD *)(a1 + 24) = 0LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_OWORD *)(a1 + 56) = 0LL;
*(_OWORD *)(a1 + 68) = 0LL;
*(_DWORD *)(a1 + 84) = 1;
*(_OWORD *)(a1 + 88) = 0LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_OWORD *)(a1 + 120) = 0LL;
OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace((OpenSubdiv::v3_6_0::Tmr::TopologyMap *)a1, HIDWORD(a3));
v5[0] = 0LL;
return std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::emplace_back<decltype(nullptr)>(
a1 + 112,
v5);
}
| TopologyMap:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOV byte ptr [RDI],SIL
MOV qword ptr [RDI + 0x4],RDX
MOV qword ptr [RDI + 0xc],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOVUPS xmmword ptr [RDI + 0x44],XMM0
MOV dword ptr [RDI + 0x54],0x1
LEA R14,[RDI + 0x70]
SHR RDX,0x20
MOVUPS xmmword ptr [RDI + 0x58],XMM0
MOVUPS xmmword ptr [RDI + 0x68],XMM0
MOVUPS xmmword ptr [RDI + 0x78],XMM0
LAB_001b9621:
MOV RSI,RDX
CALL 0x00153940
LEA RSI,[RSP + 0x8]
AND qword ptr [RSI],0x0
LAB_001b9632:
MOV RDI,R14
CALL 0x001537b0
LAB_001b963a:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits,
OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap
(TopologyMap *this,TopologyMap param_2,ulong param_3,int8 param_4)
{
_func_decltype_nullptr *local_20;
*this = param_2;
*(ulong *)(this + 4) = param_3;
*(int8 *)(this + 0xc) = param_4;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x44) = 0;
*(int8 *)(this + 0x4c) = 0;
*(int4 *)(this + 0x54) = 1;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
/* try { // try from 001b9621 to 001b9628 has its CatchHandler @ 001b9646 */
resizeAddressSpace(this,param_3 >> 0x20);
local_20 = (_func_decltype_nullptr *)0x0;
/* try { // try from 001b9632 to 001b9639 has its CatchHandler @ 001b9644 */
std::
vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>,std::allocator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>>>
::emplace_back<decltype(nullptr)>
((vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>,std::allocator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>>>
*)(this + 0x70),&local_20);
return;
}
| |
50,060 | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/topologyMap.cpp | TopologyMap::TopologyMap(Traits traits, Options options) : _traits(traits), _options(options) {
resizeAddressSpace(_options.initialAddressSpace);
if constexpr (kRegularPlanAtIndexZero)
_plansTable.emplace_back(nullptr);
} | O3 | cpp | OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb %sil, (%rdi)
movq %rdx, 0x4(%rdi)
movq %rcx, 0xc(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x44(%rdi)
movl $0x1, 0x54(%rdi)
leaq 0x70(%rdi), %r14
shrq $0x20, %rdx
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movq %rdx, %rsi
callq 0x3acc0
movq $0x0, (%rsp)
movq 0x78(%rbx), %rsi
cmpq 0x80(%rbx), %rsi
je 0xb1e06
movq $0x0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x78(%rbx)
jmp 0xb1e11
movq %rsp, %rdx
movq %r14, %rdi
callq 0x3a190
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xb1e1f
movq %rax, %r15
leaq 0x58(%rbx), %r12
movq %r14, %rdi
callq 0x3b670
movq (%r12), %rdi
testq %rdi, %rdi
je 0xb1e43
movq 0x68(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq %r15, %rdi
callq 0x3bd30
nop
| _ZN10OpenSubdiv6v3_6_03Tmr11TopologyMapC2ENS2_6TraitsENS2_7OptionsE:
push r15; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits, OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options)'
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov [rdi], sil
mov [rdi+4], rdx
mov [rdi+0Ch], rcx
xorps xmm0, xmm0
movups xmmword ptr [rdi+18h], xmm0
movups xmmword ptr [rdi+28h], xmm0
movups xmmword ptr [rdi+38h], xmm0
movups xmmword ptr [rdi+44h], xmm0
mov dword ptr [rdi+54h], 1
lea r14, [rdi+70h]
shr rdx, 20h
movups xmmword ptr [rdi+58h], xmm0
movups xmmword ptr [rdi+68h], xmm0
movups xmmword ptr [rdi+78h], xmm0
mov rsi, rdx; unsigned __int64
call __ZN10OpenSubdiv6v3_6_03Tmr11TopologyMap18resizeAddressSpaceEm; OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace(ulong)
mov [rsp+28h+var_28], 0
mov rsi, [rbx+78h]
cmp rsi, [rbx+80h]
jz short loc_B1E06
mov qword ptr [rsi], 0
add rsi, 8
mov [rbx+78h], rsi
jmp short loc_B1E11
loc_B1E06:
mov rdx, rsp
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EE17_M_realloc_insertIJDnEEEvN9__gnu_cxx17__normal_iteratorIPS8_SA_EEDpOT_; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::_M_realloc_insert<decltype(nullptr)>(__gnu_cxx::__normal_iterator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>*,std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>>,decltype(nullptr) &&)
loc_B1E11:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_B1E1F:
mov r15, rax
lea r12, [rbx+58h]
mov rdi, r14
call __ZNSt6vectorISt10unique_ptrIKN10OpenSubdiv6v3_6_03Tmr15SubdivisionPlanESt14default_deleteIS5_EESaIS8_EED2Ev; std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::~vector()
mov rdi, [r12]; void *
test rdi, rdi
jz short loc_B1E43
mov rsi, [rbx+68h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B1E43:
mov rdi, r15
call __Unwind_Resume
| long long OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(
long long a1,
char a2,
unsigned long long a3,
long long a4)
{
long long result; // rax
_QWORD *v5; // rsi
_QWORD v6[5]; // [rsp+0h] [rbp-28h] BYREF
*(_BYTE *)a1 = a2;
*(_QWORD *)(a1 + 4) = a3;
*(_QWORD *)(a1 + 12) = a4;
*(_OWORD *)(a1 + 24) = 0LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_OWORD *)(a1 + 56) = 0LL;
*(_OWORD *)(a1 + 68) = 0LL;
*(_DWORD *)(a1 + 84) = 1;
*(_OWORD *)(a1 + 88) = 0LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_OWORD *)(a1 + 120) = 0LL;
result = OpenSubdiv::v3_6_0::Tmr::TopologyMap::resizeAddressSpace(
(OpenSubdiv::v3_6_0::Tmr::TopologyMap *)a1,
HIDWORD(a3));
v6[0] = 0LL;
v5 = *(_QWORD **)(a1 + 120);
if ( v5 == *(_QWORD **)(a1 + 128) )
return std::vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan const>>::_M_realloc_insert<decltype(nullptr)>(
a1 + 112,
v5,
v6);
*v5 = 0LL;
*(_QWORD *)(a1 + 120) = v5 + 1;
return result;
}
| TopologyMap:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV byte ptr [RDI],SIL
MOV qword ptr [RDI + 0x4],RDX
MOV qword ptr [RDI + 0xc],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOVUPS xmmword ptr [RDI + 0x44],XMM0
MOV dword ptr [RDI + 0x54],0x1
LEA R14,[RDI + 0x70]
SHR RDX,0x20
MOVUPS xmmword ptr [RDI + 0x58],XMM0
MOVUPS xmmword ptr [RDI + 0x68],XMM0
MOVUPS xmmword ptr [RDI + 0x78],XMM0
LAB_001b1dd8:
MOV RSI,RDX
CALL 0x0013acc0
MOV qword ptr [RSP],0x0
MOV RSI,qword ptr [RBX + 0x78]
CMP RSI,qword ptr [RBX + 0x80]
JZ 0x001b1e06
MOV qword ptr [RSI],0x0
ADD RSI,0x8
MOV qword ptr [RBX + 0x78],RSI
JMP 0x001b1e11
LAB_001b1e06:
MOV RDX,RSP
MOV RDI,R14
CALL 0x0013a190
LAB_001b1e11:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap(OpenSubdiv::v3_6_0::Tmr::TopologyMap::Traits,
OpenSubdiv::v3_6_0::Tmr::TopologyMap::Options) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::TopologyMap::TopologyMap
(TopologyMap *this,TopologyMap param_2,ulong param_3,int8 param_4)
{
int8 *puVar1;
int8 local_28;
*this = param_2;
*(ulong *)(this + 4) = param_3;
*(int8 *)(this + 0xc) = param_4;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x44) = 0;
*(int8 *)(this + 0x4c) = 0;
*(int4 *)(this + 0x54) = 1;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
/* try { // try from 001b1dd8 to 001b1ddf has its CatchHandler @ 001b1e1f */
resizeAddressSpace(this,param_3 >> 0x20);
local_28 = 0;
puVar1 = *(int8 **)(this + 0x78);
if (puVar1 == *(int8 **)(this + 0x80)) {
/* try { // try from 001b1e06 to 001b1e10 has its CatchHandler @ 001b1e1d */
std::
vector<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>,std::allocator<std::unique_ptr<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const,std::default_delete<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan_const>>>>
::_M_realloc_insert<decltype(nullptr)>(this + 0x70,puVar1,&local_28);
}
else {
*puVar1 = 0;
*(int8 **)(this + 0x78) = puVar1 + 1;
}
return;
}
| |
50,061 | mimi_residual_vector_quantizer::decode(ggml_context*, ggml_easy::ctx::build_utils&, ggml_tensor*) | ngxson[P]ggml-easy/demo/kyutai-mimi.cpp | ggml_tensor * decode(ggml_context * ctx0, ggml_easy::ctx::build_utils & utils, ggml_tensor * input) {
GGML_ASSERT(input->type == GGML_TYPE_I32);
size_t n_semantic = semantic_components.size();
int64_t n_codes_per_embd = (n_semantic + acoustic_components.size());
int64_t n_codes = input->ne[0] / n_codes_per_embd;
GGML_ASSERT(input->ne[0] % n_codes_per_embd == 0);
ggml_tensor * out_s = ggml_new_tensor_2d(ctx0, GGML_TYPE_F32, mimi_config.codebook_dim, n_codes);
ggml_tensor * out_a = ggml_new_tensor_2d(ctx0, GGML_TYPE_F32, mimi_config.codebook_dim, n_codes);
out_s = ggml_scale(ctx0, out_s, 0.0f); // clear
out_a = ggml_scale(ctx0, out_a, 0.0f); // clear
for (size_t ir = 0; ir < n_codes_per_embd; ir++) {
ggml_tensor * row = ggml_view_1d(ctx0, input, n_codes, ir*n_codes*ggml_element_size(input));
if (ir < n_semantic) {
// semantic
ggml_tensor * codebook = semantic_components[ir].get_embd(ctx0);
ggml_tensor * embd = ggml_get_rows(ctx0, codebook, row);
out_s = ggml_add(ctx0, out_s, embd);
} else {
// acoustic
ggml_tensor * codebook = acoustic_components[ir-n_semantic].get_embd(ctx0);
ggml_tensor * embd = ggml_get_rows(ctx0, codebook, row);
out_a = ggml_add(ctx0, out_a, embd);
}
}
ggml_tensor * proj_s = ggml_reshape_2d(ctx0, semantic_out_proj,
semantic_out_proj->ne[1], semantic_out_proj->ne[2]); // TODO: do this at conversion time
ggml_tensor * proj_a = ggml_reshape_2d(ctx0, acoustic_out_proj,
acoustic_out_proj->ne[1], acoustic_out_proj->ne[2]); // TODO: do this at conversion time
out_s = ggml_mul_mat(ctx0, proj_s, out_s);
out_a = ggml_mul_mat(ctx0, proj_a, out_a);
return ggml_add(ctx0, out_s, out_a);
} | O2 | cpp | mimi_residual_vector_quantizer::decode(ggml_context*, ggml_easy::ctx::build_utils&, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x1a, (%rcx)
jne 0xc6d7
movq %rsi, %rbx
movq 0x10(%rdi), %r15
movq 0x38(%rdi), %rsi
subq 0x8(%rdi), %r15
sarq $0x4, %r15
movq %rdi, 0x10(%rsp)
subq 0x30(%rdi), %rsi
sarq $0x4, %rsi
addq %r15, %rsi
movq %rcx, 0x28(%rsp)
movq 0x10(%rcx), %rax
cqto
movq %rsi, 0x30(%rsp)
idivq %rsi
testq %rdx, %rdx
jne 0xc6f3
movq %rax, %r12
movslq 0x6f88(%rip), %rdx # 0x134d0
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x5590
movq %rax, %r14
movslq 0x6f6f(%rip), %rdx # 0x134d0
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rcx
callq 0x5590
movq %rax, %r13
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x50c0
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x50c0
movq %rax, (%rsp)
movq %r15, 0x20(%rsp)
shlq $0x4, %r15
negq %r15
movq %r15, 0x18(%rsp)
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpq %r15, 0x30(%rsp)
je 0xc666
movq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x5490
imulq %rbp, %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x5670
movq %rax, %r14
cmpq 0x20(%rsp), %r15
jae 0xc61d
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
addq %r13, %rdi
movq %rbx, %rsi
callq 0xcb16
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x51b0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
callq 0x5280
movq %rax, 0x8(%rsp)
jmp 0xc657
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rdi
addq 0x18(%rsp), %rdi
addq %r13, %rdi
movq %rbx, %rsi
callq 0xcb16
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x51b0
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rax, %rdx
callq 0x5280
movq %rax, (%rsp)
incq %r15
addq $0x10, %r13
addq %r12, %rbp
jmp 0xc5ad
movq 0x10(%rsp), %r15
movq 0x20(%r15), %rsi
movq 0x18(%rsi), %rdx
movq 0x20(%rsi), %rcx
movq %rbx, %rdi
callq 0x5770
movq %rax, %r14
movq 0x48(%r15), %rsi
movq 0x18(%rsi), %rdx
movq 0x20(%rsi), %rcx
movq %rbx, %rdi
callq 0x5770
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x52d0
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
callq 0x52d0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5280
leaq 0x15dc(%rip), %rdi # 0xdcba
leaq 0x9fe(%rip), %rdx # 0xd0e3
leaq 0x1637(%rip), %rcx # 0xdd23
movl $0x233, %esi # imm = 0x233
jmp 0xc70d
leaq 0x15c0(%rip), %rdi # 0xdcba
leaq 0x9e2(%rip), %rdx # 0xd0e3
leaq 0x1638(%rip), %rcx # 0xdd40
movl $0x239, %esi # imm = 0x239
xorl %eax, %eax
callq 0x5780
| _ZN30mimi_residual_vector_quantizer6decodeEP12ggml_contextRN9ggml_easy3ctx11build_utilsEP11ggml_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
cmp dword ptr [rcx], 1Ah
jnz loc_C6D7
mov rbx, rsi
mov r15, [rdi+10h]
mov rsi, [rdi+38h]
sub r15, [rdi+8]
sar r15, 4
mov [rsp+68h+var_58], rdi
sub rsi, [rdi+30h]
sar rsi, 4
add rsi, r15
mov [rsp+68h+var_40], rcx
mov rax, [rcx+10h]
cqo
mov [rsp+68h+var_38], rsi
idiv rsi
test rdx, rdx
jnz loc_C6F3
mov r12, rax
movsxd rdx, cs:dword_134D0
xor ebp, ebp
mov rdi, rbx
xor esi, esi
mov rcx, rax
call _ggml_new_tensor_2d
mov r14, rax
movsxd rdx, cs:dword_134D0
mov rdi, rbx
xor esi, esi
mov rcx, r12
call _ggml_new_tensor_2d
mov r13, rax
xorps xmm0, xmm0
mov rdi, rbx
mov rsi, r14
call _ggml_scale
mov [rsp+68h+var_60], rax
xorps xmm0, xmm0
mov rdi, rbx
mov rsi, r13
call _ggml_scale
mov [rsp+68h+var_68], rax
mov [rsp+68h+var_48], r15
shl r15, 4
neg r15
mov [rsp+68h+var_50], r15
xor r13d, r13d
xor r15d, r15d
loc_C5AD:
cmp [rsp+68h+var_38], r15
jz loc_C666
mov r14, [rsp+68h+var_40]
mov rdi, r14
call _ggml_element_size
imul rax, rbp
mov rdi, rbx
mov rsi, r14
mov rdx, r12
mov rcx, rax
call _ggml_view_1d
mov r14, rax
cmp r15, [rsp+68h+var_48]
jnb short loc_C61D
mov rax, [rsp+68h+var_58]
mov rdi, [rax+8]
add rdi, r13
mov rsi, rbx
call _ZN30mimi_residual_vector_quantizer9component8get_embdEP12ggml_context; mimi_residual_vector_quantizer::component::get_embd(ggml_context *)
mov rdi, rbx
mov rsi, rax
mov rdx, r14
call _ggml_get_rows
mov rdi, rbx
mov rsi, [rsp+68h+var_60]
mov rdx, rax
call _ggml_add
mov [rsp+68h+var_60], rax
jmp short loc_C657
loc_C61D:
mov rax, [rsp+68h+var_58]
mov rdi, [rax+30h]
add rdi, [rsp+68h+var_50]
add rdi, r13
mov rsi, rbx
call _ZN30mimi_residual_vector_quantizer9component8get_embdEP12ggml_context; mimi_residual_vector_quantizer::component::get_embd(ggml_context *)
mov rdi, rbx
mov rsi, rax
mov rdx, r14
call _ggml_get_rows
mov rdi, rbx
mov rsi, [rsp+68h+var_68]
mov rdx, rax
call _ggml_add
mov [rsp+68h+var_68], rax
loc_C657:
inc r15
add r13, 10h
add rbp, r12
jmp loc_C5AD
loc_C666:
mov r15, [rsp+68h+var_58]
mov rsi, [r15+20h]
mov rdx, [rsi+18h]
mov rcx, [rsi+20h]
mov rdi, rbx
call _ggml_reshape_2d
mov r14, rax
mov rsi, [r15+48h]
mov rdx, [rsi+18h]
mov rcx, [rsi+20h]
mov rdi, rbx
call _ggml_reshape_2d
mov r15, rax
mov rdi, rbx
mov rsi, r14
mov rdx, [rsp+68h+var_60]
call _ggml_mul_mat
mov r14, rax
mov rdi, rbx
mov rsi, r15
mov rdx, [rsp+68h+var_68]
call _ggml_mul_mat
mov rdi, rbx
mov rsi, r14
mov rdx, rax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ggml_add
loc_C6D7:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aInputTypeGgmlT; "input->type == GGML_TYPE_I32"
mov esi, 233h
jmp short loc_C70D
loc_C6F3:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aInputNe0NCodes; "input->ne[0] % n_codes_per_embd == 0"
mov esi, 239h
loc_C70D:
xor eax, eax
call _ggml_abort
| long long mimi_residual_vector_quantizer::decode(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long v4; // r15
long long v5; // r12
long long v6; // rbp
long long v7; // r14
long long v8; // r13
long long v9; // r13
unsigned long long i; // r15
long long v11; // rax
long long v12; // r14
long long v13; // rax
long long v14; // rax
long long embd; // rax
long long rows; // rax
long long v17; // r14
long long v18; // r15
long long v19; // r14
long long v20; // rax
long long v22; // rsi
long long v23; // rdx
long long v24; // [rsp+0h] [rbp-68h]
long long v25; // [rsp+8h] [rbp-60h]
long long v26; // [rsp+18h] [rbp-50h]
unsigned long long v27; // [rsp+20h] [rbp-48h]
long long v29; // [rsp+30h] [rbp-38h]
if ( *(_DWORD *)a4 != 26 )
{
v22 = 563LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/demo/kyutai-mimi.cpp",
563LL,
"GGML_ASSERT(%s) failed",
"input->type == GGML_TYPE_I32");
return ggml_easy::ctx::build_utils::debug_print<char const(&)[19]>(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/demo/kyutai-mimi.cpp",
v22,
v23);
}
v4 = (long long)(a1[2] - a1[1]) >> 4;
v29 = v4 + ((long long)(a1[7] - a1[6]) >> 4);
if ( *(_QWORD *)(a4 + 16) % v29 )
{
v22 = 569LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/demo/kyutai-mimi.cpp",
569LL,
"GGML_ASSERT(%s) failed",
"input->ne[0] % n_codes_per_embd == 0");
return ggml_easy::ctx::build_utils::debug_print<char const(&)[19]>(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/demo/kyutai-mimi.cpp",
v22,
v23);
}
v5 = *(_QWORD *)(a4 + 16) / v29;
v6 = 0LL;
v7 = ggml_new_tensor_2d(a2, 0LL, dword_134D0, v5);
v8 = ggml_new_tensor_2d(a2, 0LL, dword_134D0, v5);
v25 = ggml_scale(a2, v7, 0.0);
v24 = ggml_scale(a2, v8, 0.0);
v27 = v4;
v26 = -16 * v4;
v9 = 0LL;
for ( i = 0LL; v29 != i; ++i )
{
v11 = ggml_element_size(a4);
v12 = ggml_view_1d(a2, a4, v5, v6 * v11);
if ( i >= v27 )
{
embd = mimi_residual_vector_quantizer::component::get_embd(v9 + v26 + a1[6], a2);
rows = ggml_get_rows(a2, embd, v12);
v24 = ggml_add(a2, v24, rows);
}
else
{
v13 = mimi_residual_vector_quantizer::component::get_embd(v9 + a1[1], a2);
v14 = ggml_get_rows(a2, v13, v12);
v25 = ggml_add(a2, v25, v14);
}
v9 += 16LL;
v6 += v5;
}
v17 = ggml_reshape_2d(a2, a1[4], *(_QWORD *)(a1[4] + 24LL), *(_QWORD *)(a1[4] + 32LL));
v18 = ggml_reshape_2d(a2, a1[9], *(_QWORD *)(a1[9] + 24LL), *(_QWORD *)(a1[9] + 32LL));
v19 = ggml_mul_mat(a2, v17, v25);
v20 = ggml_mul_mat(a2, v18, v24);
return ggml_add(a2, v19, v20);
}
| decode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
CMP dword ptr [RCX],0x1a
JNZ 0x0010c6d7
MOV RBX,RSI
MOV R15,qword ptr [RDI + 0x10]
MOV RSI,qword ptr [RDI + 0x38]
SUB R15,qword ptr [RDI + 0x8]
SAR R15,0x4
MOV qword ptr [RSP + 0x10],RDI
SUB RSI,qword ptr [RDI + 0x30]
SAR RSI,0x4
ADD RSI,R15
MOV qword ptr [RSP + 0x28],RCX
MOV RAX,qword ptr [RCX + 0x10]
CQO
MOV qword ptr [RSP + 0x30],RSI
IDIV RSI
TEST RDX,RDX
JNZ 0x0010c6f3
MOV R12,RAX
MOVSXD RDX,dword ptr [0x001134d0]
XOR EBP,EBP
MOV RDI,RBX
XOR ESI,ESI
MOV RCX,RAX
CALL 0x00105590
MOV R14,RAX
MOVSXD RDX,dword ptr [0x001134d0]
MOV RDI,RBX
XOR ESI,ESI
MOV RCX,R12
CALL 0x00105590
MOV R13,RAX
XORPS XMM0,XMM0
MOV RDI,RBX
MOV RSI,R14
CALL 0x001050c0
MOV qword ptr [RSP + 0x8],RAX
XORPS XMM0,XMM0
MOV RDI,RBX
MOV RSI,R13
CALL 0x001050c0
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x20],R15
SHL R15,0x4
NEG R15
MOV qword ptr [RSP + 0x18],R15
XOR R13D,R13D
XOR R15D,R15D
LAB_0010c5ad:
CMP qword ptr [RSP + 0x30],R15
JZ 0x0010c666
MOV R14,qword ptr [RSP + 0x28]
MOV RDI,R14
CALL 0x00105490
IMUL RAX,RBP
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
MOV RCX,RAX
CALL 0x00105670
MOV R14,RAX
CMP R15,qword ptr [RSP + 0x20]
JNC 0x0010c61d
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x8]
ADD RDI,R13
MOV RSI,RBX
CALL 0x0010cb16
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,R14
CALL 0x001051b0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,RAX
CALL 0x00105280
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0010c657
LAB_0010c61d:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x30]
ADD RDI,qword ptr [RSP + 0x18]
ADD RDI,R13
MOV RSI,RBX
CALL 0x0010cb16
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,R14
CALL 0x001051b0
MOV RDI,RBX
MOV RSI,qword ptr [RSP]
MOV RDX,RAX
CALL 0x00105280
MOV qword ptr [RSP],RAX
LAB_0010c657:
INC R15
ADD R13,0x10
ADD RBP,R12
JMP 0x0010c5ad
LAB_0010c666:
MOV R15,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [R15 + 0x20]
MOV RDX,qword ptr [RSI + 0x18]
MOV RCX,qword ptr [RSI + 0x20]
MOV RDI,RBX
CALL 0x00105770
MOV R14,RAX
MOV RSI,qword ptr [R15 + 0x48]
MOV RDX,qword ptr [RSI + 0x18]
MOV RCX,qword ptr [RSI + 0x20]
MOV RDI,RBX
CALL 0x00105770
MOV R15,RAX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x001052d0
MOV R14,RAX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,qword ptr [RSP]
CALL 0x001052d0
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00105280
LAB_0010c6d7:
LEA RDI,[0x10dcba]
LEA RDX,[0x10d0e3]
LEA RCX,[0x10dd23]
MOV ESI,0x233
JMP 0x0010c70d
LAB_0010c6f3:
LEA RDI,[0x10dcba]
LEA RDX,[0x10d0e3]
LEA RCX,[0x10dd40]
MOV ESI,0x239
LAB_0010c70d:
XOR EAX,EAX
CALL 0x00105780
|
/* mimi_residual_vector_quantizer::decode(ggml_context*, ggml_easy::ctx::build_utils&, ggml_tensor*)
*/
void __thiscall
mimi_residual_vector_quantizer::decode
(mimi_residual_vector_quantizer *this,ggml_context *param_1,build_utils *param_2,
ggml_tensor *param_3)
{
long lVar1;
int8 uVar2;
int8 uVar3;
long lVar4;
char *pcVar5;
long lVar6;
ulong uVar7;
long lVar8;
ulong uVar9;
ulong uVar10;
int8 local_68;
int8 local_60;
if (*(int *)param_3 == 0x1a) {
uVar9 = *(long *)(this + 0x10) - *(long *)(this + 8) >> 4;
uVar7 = (*(long *)(this + 0x38) - *(long *)(this + 0x30) >> 4) + uVar9;
lVar1 = *(long *)(param_3 + 0x10) / (long)uVar7;
if (*(long *)(param_3 + 0x10) % (long)uVar7 == 0) {
lVar6 = 0;
uVar2 = ggml_new_tensor_2d(param_1,0,(long)DAT_001134d0,lVar1);
uVar3 = ggml_new_tensor_2d(param_1,0,(long)DAT_001134d0,lVar1);
local_60 = ggml_scale(0,param_1,uVar2);
local_68 = ggml_scale(0,param_1,uVar3);
lVar8 = 0;
for (uVar10 = 0; uVar7 != uVar10; uVar10 = uVar10 + 1) {
lVar4 = ggml_element_size(param_3);
uVar2 = ggml_view_1d(param_1,param_3,lVar1,lVar4 * lVar6);
if (uVar10 < uVar9) {
uVar3 = component::get_embd((component *)(*(long *)(this + 8) + lVar8),param_1);
uVar2 = ggml_get_rows(param_1,uVar3,uVar2);
local_60 = ggml_add(param_1,local_60,uVar2);
}
else {
uVar3 = component::get_embd((component *)(*(long *)(this + 0x30) + uVar9 * -0x10 + lVar8),
param_1);
uVar2 = ggml_get_rows(param_1,uVar3,uVar2);
local_68 = ggml_add(param_1,local_68,uVar2);
}
lVar8 = lVar8 + 0x10;
lVar6 = lVar6 + lVar1;
}
lVar1 = *(long *)(this + 0x20);
uVar2 = ggml_reshape_2d(param_1,lVar1,*(int8 *)(lVar1 + 0x18),
*(int8 *)(lVar1 + 0x20));
lVar1 = *(long *)(this + 0x48);
uVar3 = ggml_reshape_2d(param_1,lVar1,*(int8 *)(lVar1 + 0x18),
*(int8 *)(lVar1 + 0x20));
uVar2 = ggml_mul_mat(param_1,uVar2,local_60);
uVar3 = ggml_mul_mat(param_1,uVar3,local_68);
ggml_add(param_1,uVar2,uVar3);
return;
}
pcVar5 = "input->ne[0] % n_codes_per_embd == 0";
uVar2 = 0x239;
}
else {
pcVar5 = "input->type == GGML_TYPE_I32";
uVar2 = 0x233;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/demo/kyutai-mimi.cpp",uVar2
,"GGML_ASSERT(%s) failed",pcVar5);
}
| |
50,062 | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&) | monkey531[P]llama/common/minja.hpp | TemplateNode(const Location & location) : location_(location) {} | O1 | cpp | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&):
leaq 0x6ec99(%rip), %rax # 0xee148
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x7f4df
movq 0x6fabf(%rip), %rcx # 0xeef90
cmpb $0x0, (%rcx)
je 0x7f4db
incl 0x8(%rax)
jmp 0x7f4df
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x6ec0a(%rip), %rax # 0xee0f8
addq $0x10, %rax
movq %rax, (%rdi)
movups (%rdx), %xmm0
movups %xmm0, 0x20(%rdi)
movq 0x10(%rdx), %rax
movq %rax, 0x30(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
retq
nop
| _ZN5minja6IfNodeC2ERKNS_8LocationEOSt6vectorISt4pairISt10shared_ptrINS_10ExpressionEES6_INS_12TemplateNodeEEESaISB_EE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_7F4DF
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_7F4DB
inc dword ptr [rax+8]
jmp short loc_7F4DF
loc_7F4DB:
lock inc dword ptr [rax+8]
loc_7F4DF:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja6IfNodeE; `vtable for'minja::IfNode
add rax, 10h
mov [rdi], rax
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [rdi+20h], xmm0
mov rax, [rdx+10h]
mov [rdi+30h], rax
xorps xmm0, xmm0
movups xmmword ptr [rdx], xmm0
mov qword ptr [rdx+10h], 0
retn
| long long minja::IfNode::IfNode(long long a1, _QWORD *a2, long long a3)
{
long long v3; // rax
long long result; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v3 = a2[1];
*(_QWORD *)(a1 + 16) = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::IfNode + 2;
*(_OWORD *)(a1 + 32) = *(_OWORD *)a3;
result = *(_QWORD *)(a3 + 16);
*(_QWORD *)(a1 + 48) = result;
*(_OWORD *)a3 = 0LL;
*(_QWORD *)(a3 + 16) = 0LL;
return result;
}
| IfNode:
LEA RAX,[0x1ee148]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0017f4df
MOV RCX,qword ptr [0x001eef90]
CMP byte ptr [RCX],0x0
JZ 0x0017f4db
INC dword ptr [RAX + 0x8]
JMP 0x0017f4df
LAB_0017f4db:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0017f4df:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1ee0f8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV RAX,qword ptr [RDX + 0x10]
MOV qword ptr [RDI + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],0x0
RET
|
/* minja::IfNode::IfNode(minja::Location const&,
std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode> >,
std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>
> > >&&) */
void __thiscall minja::IfNode::IfNode(IfNode *this,Location *param_1,vector *param_2)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001ee158;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001eef90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001ee108;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)(this + 0x30) = *(int8 *)(param_2 + 0x10);
*(int8 *)param_2 = 0;
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(param_2 + 0x10) = 0;
return;
}
| |
50,063 | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&) | monkey531[P]llama/common/minja.hpp | TemplateNode(const Location & location) : location_(location) {} | O3 | cpp | minja::IfNode::IfNode(minja::Location const&, std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>, std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>>>>&&):
leaq 0x6db59(%rip), %rax # 0xeb148
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x7d61f
movq 0x6e97f(%rip), %rcx # 0xebf90
cmpb $0x0, (%rcx)
je 0x7d61b
incl 0x8(%rax)
jmp 0x7d61f
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x6daca(%rip), %rax # 0xeb0f8
addq $0x10, %rax
movq %rax, (%rdi)
movups (%rdx), %xmm0
movups %xmm0, 0x20(%rdi)
movq 0x10(%rdx), %rax
movq %rax, 0x30(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
retq
nop
| _ZN5minja6IfNodeC2ERKNS_8LocationEOSt6vectorISt4pairISt10shared_ptrINS_10ExpressionEES6_INS_12TemplateNodeEEESaISB_EE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_7D61F
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_7D61B
inc dword ptr [rax+8]
jmp short loc_7D61F
loc_7D61B:
lock inc dword ptr [rax+8]
loc_7D61F:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja6IfNodeE; `vtable for'minja::IfNode
add rax, 10h
mov [rdi], rax
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [rdi+20h], xmm0
mov rax, [rdx+10h]
mov [rdi+30h], rax
xorps xmm0, xmm0
movups xmmword ptr [rdx], xmm0
mov qword ptr [rdx+10h], 0
retn
| long long minja::IfNode::IfNode(long long a1, _QWORD *a2, long long a3)
{
long long v3; // rax
long long result; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v3 = a2[1];
*(_QWORD *)(a1 + 16) = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::IfNode + 2;
*(_OWORD *)(a1 + 32) = *(_OWORD *)a3;
result = *(_QWORD *)(a3 + 16);
*(_QWORD *)(a1 + 48) = result;
*(_OWORD *)a3 = 0LL;
*(_QWORD *)(a3 + 16) = 0LL;
return result;
}
| IfNode:
LEA RAX,[0x1eb148]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0017d61f
MOV RCX,qword ptr [0x001ebf90]
CMP byte ptr [RCX],0x0
JZ 0x0017d61b
INC dword ptr [RAX + 0x8]
JMP 0x0017d61f
LAB_0017d61b:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0017d61f:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1eb0f8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV RAX,qword ptr [RDX + 0x10]
MOV qword ptr [RDI + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],0x0
RET
|
/* minja::IfNode::IfNode(minja::Location const&,
std::vector<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode> >,
std::allocator<std::pair<std::shared_ptr<minja::Expression>, std::shared_ptr<minja::TemplateNode>
> > >&&) */
void __thiscall minja::IfNode::IfNode(IfNode *this,Location *param_1,vector *param_2)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001eb158;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001ebf90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_001eb108;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)(this + 0x30) = *(int8 *)(param_2 + 0x10);
*(int8 *)param_2 = 0;
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(param_2 + 0x10) = 0;
return;
}
| |
50,064 | unlink_deleted_block | eloqsql/storage/myisam/mi_dynrec.c | static my_bool unlink_deleted_block(MI_INFO *info, MI_BLOCK_INFO *block_info)
{
DBUG_ENTER("unlink_deleted_block");
if (block_info->filepos == info->s->state.dellink)
{
/* First deleted block; We can just use this ! */
info->s->state.dellink=block_info->next_filepos;
}
else
{
MI_BLOCK_INFO tmp;
tmp.second_read=0;
/* Unlink block from the previous block */
if (!(_mi_get_block_info(&tmp,info->dfile,block_info->prev_filepos)
& BLOCK_DELETED))
DBUG_RETURN(1); /* Something is wrong */
mi_sizestore(tmp.header+4,block_info->next_filepos);
if (info->s->file_write(info, tmp.header+4,8,
block_info->prev_filepos+4, MYF(MY_NABP)))
DBUG_RETURN(1);
/* Unlink block from next block */
if (block_info->next_filepos != HA_OFFSET_ERROR)
{
if (!(_mi_get_block_info(&tmp,info->dfile,block_info->next_filepos)
& BLOCK_DELETED))
DBUG_RETURN(1); /* Something is wrong */
mi_sizestore(tmp.header+12,block_info->prev_filepos);
if (info->s->file_write(info, tmp.header+12,8,
block_info->next_filepos+12,
MYF(MY_NABP)))
DBUG_RETURN(1);
}
}
/* We now have one less deleted block */
info->state->del--;
info->state->empty-= block_info->block_len;
info->s->state.split--;
/*
If this was a block that we where accessing through table scan
(mi_rrnd() or mi_scan(), then ensure that we skip over this block
when doing next mi_rrnd() or mi_scan().
*/
if (info->nextpos == block_info->filepos)
info->nextpos+=block_info->block_len;
DBUG_RETURN(0);
} | O0 | c | unlink_deleted_block:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x70(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x58(%rcx), %rax
jne 0xa9d3d
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x58(%rax)
jmp 0xa9f7e
movl $0x0, -0x10(%rbp)
movq -0x70(%rbp), %rax
movl 0x1c0(%rax), %esi
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rdx
leaq -0x60(%rbp), %rdi
callq 0xa92e0
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xa9d72
jmp 0xa9d69
movb $0x1, -0x61(%rbp)
jmp 0xa9ff5
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x20, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movb %al, -0x59(%rbp)
movq -0x90(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x5a(%rbp)
movq -0x90(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x5b(%rbp)
movq -0x90(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x5c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movb %al, -0x55(%rbp)
movq -0x98(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x56(%rbp)
movq -0x98(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x57(%rbp)
movq -0x98(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x58(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rsi
addq $0x4, %rsi
movq -0x78(%rbp), %rcx
movq 0x48(%rcx), %rcx
addq $0x4, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xa9e56
jmp 0xa9e4d
movb $0x1, -0x61(%rbp)
jmp 0xa9ff5
movq -0x78(%rbp), %rax
cmpq $-0x1, 0x40(%rax)
je 0xa9f7c
movq -0x70(%rbp), %rax
movl 0x1c0(%rax), %esi
movq -0x78(%rbp), %rax
movq 0x40(%rax), %rdx
leaq -0x60(%rbp), %rdi
callq 0xa92e0
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xa9e93
jmp 0xa9e8a
movb $0x1, -0x61(%rbp)
jmp 0xa9ff5
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rax
shrq $0x20, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movb %al, -0x51(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x52(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x53(%rbp)
movq -0xb0(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x54(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movb %al, -0x4d(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x4e(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x4f(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x50(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rsi
addq $0xc, %rsi
movq -0x78(%rbp), %rcx
movq 0x40(%rcx), %rcx
addq $0xc, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xa9f7a
jmp 0xa9f74
movb $0x1, -0x61(%rbp)
jmp 0xa9ff5
jmp 0xa9f7c
jmp 0xa9f7e
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdx
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x10(%rax)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x50(%rax)
movq -0x70(%rbp), %rax
movq 0x178(%rax), %rax
movq -0x78(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0xa9fef
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x70(%rbp), %rax
addq 0x178(%rax), %rcx
movq %rcx, 0x178(%rax)
jmp 0xa9ff1
movb $0x0, -0x61(%rbp)
movb -0x61(%rbp), %al
movb %al, -0xb9(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xaa01f
movb -0xb9(%rbp), %al
addq $0xc0, %rsp
popq %rbp
retq
callq 0x2a260
nopw %cs:(%rax,%rax)
| unlink_deleted_block_0:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_70], rdi
mov [rbp+var_78], rsi
mov rax, [rbp+var_78]
mov rax, [rax+38h]
mov rcx, [rbp+var_70]
mov rcx, [rcx]
cmp rax, [rcx+58h]
jnz short loc_A9D3D
mov rax, [rbp+var_78]
mov rcx, [rax+40h]
mov rax, [rbp+var_70]
mov rax, [rax]
mov [rax+58h], rcx
jmp loc_A9F7E
loc_A9D3D:
mov [rbp+var_10], 0
mov rax, [rbp+var_70]
mov esi, [rax+1C0h]
mov rax, [rbp+var_78]
mov rdx, [rax+48h]
lea rdi, [rbp+var_60]
call _mi_get_block_info
and eax, 4
cmp eax, 0
jnz short loc_A9D72
jmp short $+2
loc_A9D69:
mov [rbp+var_61], 1
jmp loc_A9FF5
loc_A9D72:
mov rax, [rbp+var_78]
mov rax, [rax+40h]
mov [rbp+var_80], rax
mov rax, [rbp+var_78]
mov rax, [rax+40h]
shr rax, 20h
mov [rbp+var_88], rax
mov rax, [rbp+var_88]
mov [rbp+var_90], rax
mov rax, [rbp+var_90]
mov [rbp+var_59], al
mov rax, [rbp+var_90]
shr rax, 8
mov [rbp+var_5A], al
mov rax, [rbp+var_90]
shr rax, 10h
mov [rbp+var_5B], al
mov rax, [rbp+var_90]
shr rax, 18h
mov [rbp+var_5C], al
mov rax, [rbp+var_80]
mov [rbp+var_98], rax
mov rax, [rbp+var_98]
mov [rbp+var_55], al
mov rax, [rbp+var_98]
shr rax, 8
mov [rbp+var_56], al
mov rax, [rbp+var_98]
shr rax, 10h
mov [rbp+var_57], al
mov rax, [rbp+var_98]
shr rax, 18h
mov [rbp+var_58], al
mov rax, [rbp+var_70]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_70]
lea rsi, [rbp+var_60]
add rsi, 4
mov rcx, [rbp+var_78]
mov rcx, [rcx+48h]
add rcx, 4
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_A9E56
jmp short $+2
loc_A9E4D:
mov [rbp+var_61], 1
jmp loc_A9FF5
loc_A9E56:
mov rax, [rbp+var_78]
cmp qword ptr [rax+40h], 0FFFFFFFFFFFFFFFFh
jz loc_A9F7C
mov rax, [rbp+var_70]
mov esi, [rax+1C0h]
mov rax, [rbp+var_78]
mov rdx, [rax+40h]
lea rdi, [rbp+var_60]
call _mi_get_block_info
and eax, 4
cmp eax, 0
jnz short loc_A9E93
jmp short $+2
loc_A9E8A:
mov [rbp+var_61], 1
jmp loc_A9FF5
loc_A9E93:
mov rax, [rbp+var_78]
mov rax, [rax+48h]
mov [rbp+var_A0], rax
mov rax, [rbp+var_78]
mov rax, [rax+48h]
shr rax, 20h
mov [rbp+var_A8], rax
mov rax, [rbp+var_A8]
mov [rbp+var_B0], rax
mov rax, [rbp+var_B0]
mov [rbp+var_51], al
mov rax, [rbp+var_B0]
shr rax, 8
mov [rbp+var_52], al
mov rax, [rbp+var_B0]
shr rax, 10h
mov [rbp+var_53], al
mov rax, [rbp+var_B0]
shr rax, 18h
mov [rbp+var_54], al
mov rax, [rbp+var_A0]
mov [rbp+var_B8], rax
mov rax, [rbp+var_B8]
mov [rbp+var_4D], al
mov rax, [rbp+var_B8]
shr rax, 8
mov [rbp+var_4E], al
mov rax, [rbp+var_B8]
shr rax, 10h
mov [rbp+var_4F], al
mov rax, [rbp+var_B8]
shr rax, 18h
mov [rbp+var_50], al
mov rax, [rbp+var_70]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_70]
lea rsi, [rbp+var_60]
add rsi, 0Ch
mov rcx, [rbp+var_78]
mov rcx, [rcx+40h]
add rcx, 0Ch
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_A9F7A
jmp short $+2
loc_A9F74:
mov [rbp+var_61], 1
jmp short loc_A9FF5
loc_A9F7A:
jmp short $+2
loc_A9F7C:
jmp short $+2
loc_A9F7E:
mov rax, [rbp+var_70]
mov rax, [rax+8]
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+8], rcx
mov rax, [rbp+var_78]
mov rdx, [rax+28h]
mov rax, [rbp+var_70]
mov rax, [rax+8]
mov rcx, [rax+10h]
sub rcx, rdx
mov [rax+10h], rcx
mov rax, [rbp+var_70]
mov rax, [rax]
mov rcx, [rax+50h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+50h], rcx
mov rax, [rbp+var_70]
mov rax, [rax+178h]
mov rcx, [rbp+var_78]
cmp rax, [rcx+38h]
jnz short loc_A9FEF
mov rax, [rbp+var_78]
mov rcx, [rax+28h]
mov rax, [rbp+var_70]
add rcx, [rax+178h]
mov [rax+178h], rcx
loc_A9FEF:
jmp short $+2
loc_A9FF1:
mov [rbp+var_61], 0
loc_A9FF5:
mov al, [rbp+var_61]
mov [rbp+var_B9], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_AA01F
mov al, [rbp+var_B9]
add rsp, 0C0h
pop rbp
retn
loc_AA01F:
call ___stack_chk_fail
| char unlink_deleted_block_0(int *a1, _QWORD *a2, double a3)
{
long long v4; // [rsp+20h] [rbp-A0h]
long long v5; // [rsp+40h] [rbp-80h]
unsigned __int8 v7[4]; // [rsp+60h] [rbp-60h] BYREF
_BYTE v8[8]; // [rsp+64h] [rbp-5Ch] BYREF
_BYTE v9[68]; // [rsp+6Ch] [rbp-54h] BYREF
int v10; // [rsp+B0h] [rbp-10h]
unsigned long long v11; // [rsp+B8h] [rbp-8h]
v11 = __readfsqword(0x28u);
if ( a2[7] == *(_QWORD *)(*(_QWORD *)a1 + 88LL) )
{
*(_QWORD *)(*(_QWORD *)a1 + 88LL) = a2[8];
}
else
{
v10 = 0;
if ( (mi_get_block_info(v7, a1[112], a2[9], a3) & 4) == 0 )
return 1;
v5 = a2[8];
v8[2] = BYTE5(v5);
v8[3] = BYTE4(v5);
v8[0] = HIBYTE(v5);
v8[1] = BYTE6(v5);
v8[6] = BYTE1(v5);
v8[7] = v5;
v8[4] = BYTE3(v5);
v8[5] = BYTE2(v5);
if ( (*(long long ( **)(int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
v8,
8LL,
a2[9] + 4LL,
4LL) )
{
return 1;
}
if ( a2[8] != -1LL )
{
if ( (mi_get_block_info(v7, a1[112], a2[8], a3) & 4) == 0 )
return 1;
v4 = a2[9];
v9[2] = BYTE5(v4);
v9[3] = BYTE4(v4);
v9[0] = HIBYTE(v4);
v9[1] = BYTE6(v4);
v9[6] = BYTE1(v4);
v9[7] = v4;
v9[4] = BYTE3(v4);
v9[5] = BYTE2(v4);
if ( (*(long long ( **)(int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
v9,
8LL,
a2[8] + 12LL,
4LL) )
{
return 1;
}
}
}
--*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL);
*(_QWORD *)(*((_QWORD *)a1 + 1) + 16LL) -= a2[5];
--*(_QWORD *)(*(_QWORD *)a1 + 80LL);
if ( *((_QWORD *)a1 + 47) == a2[7] )
*((_QWORD *)a1 + 47) += a2[5];
return 0;
}
| unlink_deleted_block:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x70],RDI
MOV qword ptr [RBP + -0x78],RSI
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x58]
JNZ 0x001a9d3d
MOV RAX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x58],RCX
JMP 0x001a9f7e
LAB_001a9d3d:
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RAX + 0x1c0]
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x48]
LEA RDI,[RBP + -0x60]
CALL 0x001a92e0
AND EAX,0x4
CMP EAX,0x0
JNZ 0x001a9d72
JMP 0x001a9d69
LAB_001a9d69:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001a9ff5
LAB_001a9d72:
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x20
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x90]
MOV byte ptr [RBP + -0x59],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x8
MOV byte ptr [RBP + -0x5a],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x10
MOV byte ptr [RBP + -0x5b],AL
MOV RAX,qword ptr [RBP + -0x90]
SHR RAX,0x18
MOV byte ptr [RBP + -0x5c],AL
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV byte ptr [RBP + -0x55],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x8
MOV byte ptr [RBP + -0x56],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x10
MOV byte ptr [RBP + -0x57],AL
MOV RAX,qword ptr [RBP + -0x98]
SHR RAX,0x18
MOV byte ptr [RBP + -0x58],AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[RBP + -0x60]
ADD RSI,0x4
MOV RCX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RCX + 0x48]
ADD RCX,0x4
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001a9e56
JMP 0x001a9e4d
LAB_001a9e4d:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001a9ff5
LAB_001a9e56:
MOV RAX,qword ptr [RBP + -0x78]
CMP qword ptr [RAX + 0x40],-0x1
JZ 0x001a9f7c
MOV RAX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RAX + 0x1c0]
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x40]
LEA RDI,[RBP + -0x60]
CALL 0x001a92e0
AND EAX,0x4
CMP EAX,0x0
JNZ 0x001a9e93
JMP 0x001a9e8a
LAB_001a9e8a:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001a9ff5
LAB_001a9e93:
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX + 0x48]
SHR RAX,0x20
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0xb0]
MOV byte ptr [RBP + -0x51],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x8
MOV byte ptr [RBP + -0x52],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x10
MOV byte ptr [RBP + -0x53],AL
MOV RAX,qword ptr [RBP + -0xb0]
SHR RAX,0x18
MOV byte ptr [RBP + -0x54],AL
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0xb8]
MOV byte ptr [RBP + -0x4d],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x8
MOV byte ptr [RBP + -0x4e],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x10
MOV byte ptr [RBP + -0x4f],AL
MOV RAX,qword ptr [RBP + -0xb8]
SHR RAX,0x18
MOV byte ptr [RBP + -0x50],AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[RBP + -0x60]
ADD RSI,0xc
MOV RCX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RCX + 0x40]
ADD RCX,0xc
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001a9f7a
JMP 0x001a9f74
LAB_001a9f74:
MOV byte ptr [RBP + -0x61],0x1
JMP 0x001a9ff5
LAB_001a9f7a:
JMP 0x001a9f7c
LAB_001a9f7c:
JMP 0x001a9f7e
LAB_001a9f7e:
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,RDX
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x50]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x50],RCX
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX + 0x178]
MOV RCX,qword ptr [RBP + -0x78]
CMP RAX,qword ptr [RCX + 0x38]
JNZ 0x001a9fef
MOV RAX,qword ptr [RBP + -0x78]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x70]
ADD RCX,qword ptr [RAX + 0x178]
MOV qword ptr [RAX + 0x178],RCX
LAB_001a9fef:
JMP 0x001a9ff1
LAB_001a9ff1:
MOV byte ptr [RBP + -0x61],0x0
LAB_001a9ff5:
MOV AL,byte ptr [RBP + -0x61]
MOV byte ptr [RBP + -0xb9],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001aa01f
MOV AL,byte ptr [RBP + -0xb9]
ADD RSP,0xc0
POP RBP
RET
LAB_001aa01f:
CALL 0x0012a260
|
int8 unlink_deleted_block(long *param_1,long param_2)
{
int8 uVar1;
int8 uVar2;
uint uVar3;
long lVar4;
long in_FS_OFFSET;
int1 local_69;
int1 local_68 [4];
int1 local_64;
int1 local_63;
int1 local_62;
int1 local_61;
int1 local_60;
int1 local_5f;
int1 local_5e;
int1 local_5d;
int1 local_5c;
int1 local_5b;
int1 local_5a;
int1 local_59;
int1 local_58;
int1 local_57;
int1 local_56;
int1 local_55;
int4 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (*(long *)(param_2 + 0x38) == *(long *)(*param_1 + 0x58)) {
*(int8 *)(*param_1 + 0x58) = *(int8 *)(param_2 + 0x40);
}
else {
local_18 = 0;
uVar3 = _mi_get_block_info(local_68,(int)param_1[0x38],*(int8 *)(param_2 + 0x48));
if ((uVar3 & 4) == 0) {
local_69 = 1;
goto LAB_001a9ff5;
}
uVar1 = *(int8 *)(param_2 + 0x40);
uVar2 = *(int8 *)(param_2 + 0x40);
local_61 = (int1)((ulong)uVar2 >> 0x20);
local_62 = (int1)((ulong)uVar2 >> 0x28);
local_63 = (int1)((ulong)uVar2 >> 0x30);
local_64 = (int1)((ulong)uVar2 >> 0x38);
local_5d = (int1)uVar1;
local_5e = (int1)((ulong)uVar1 >> 8);
local_5f = (int1)((ulong)uVar1 >> 0x10);
local_60 = (int1)((ulong)uVar1 >> 0x18);
lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_64,8,*(long *)(param_2 + 0x48) + 4,4);
if (lVar4 != 0) {
local_69 = 1;
goto LAB_001a9ff5;
}
if (*(long *)(param_2 + 0x40) != -1) {
uVar3 = _mi_get_block_info(local_68,(int)param_1[0x38],*(int8 *)(param_2 + 0x40));
if ((uVar3 & 4) == 0) {
local_69 = 1;
goto LAB_001a9ff5;
}
uVar1 = *(int8 *)(param_2 + 0x48);
uVar2 = *(int8 *)(param_2 + 0x48);
local_59 = (int1)((ulong)uVar2 >> 0x20);
local_5a = (int1)((ulong)uVar2 >> 0x28);
local_5b = (int1)((ulong)uVar2 >> 0x30);
local_5c = (int1)((ulong)uVar2 >> 0x38);
local_55 = (int1)uVar1;
local_56 = (int1)((ulong)uVar1 >> 8);
local_57 = (int1)((ulong)uVar1 >> 0x10);
local_58 = (int1)((ulong)uVar1 >> 0x18);
lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_5c,8,*(long *)(param_2 + 0x40) + 0xc,4)
;
if (lVar4 != 0) {
local_69 = 1;
goto LAB_001a9ff5;
}
}
}
*(long *)(param_1[1] + 8) = *(long *)(param_1[1] + 8) + -1;
*(long *)(param_1[1] + 0x10) = *(long *)(param_1[1] + 0x10) - *(long *)(param_2 + 0x28);
*(long *)(*param_1 + 0x50) = *(long *)(*param_1 + 0x50) + -1;
if (param_1[0x2f] == *(long *)(param_2 + 0x38)) {
param_1[0x2f] = *(long *)(param_2 + 0x28) + param_1[0x2f];
}
local_69 = 0;
LAB_001a9ff5:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_69);
}
| |
50,065 | permissions_to_flags(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>) | msxemulator/build_O3/_deps/picotool-src/main.cpp | uint32_t permissions_to_flags(json permissions) {
uint32_t ret = 0;
if (permissions.contains("secure")) {
string perms = permissions["secure"];
if (perms.find("r") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_S_R_BITS;
if (perms.find("w") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_S_W_BITS;
}
if (permissions.contains("nonsecure")) {
string perms = permissions["nonsecure"];
if (perms.find("r") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_NS_R_BITS;
if (perms.find("w") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_NS_W_BITS;
}
if (permissions.contains("bootloader")) {
string perms = permissions["bootloader"];
if (perms.find("r") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_NSBOOT_R_BITS;
if (perms.find("w") != string::npos) ret |= PICOBIN_PARTITION_PERMISSION_NSBOOT_W_BITS;
}
return ret;
} | O3 | cpp | permissions_to_flags(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
xorl %r14d, %r14d
cmpb $0x1, (%rdi)
jne 0x300d8
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x7529d(%rip), %rsi # 0xa517b
callq 0x5d2e4
movq 0x8(%rbx), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x2ff7a
leaq 0x75280(%rip), %rsi # 0xa517b
movq %rbx, %rdi
callq 0x3a81a
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x6f39a
leaq 0x778d7(%rip), %rsi # 0xa77f1
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xf7c0
xorl %r12d, %r12d
cmpq $-0x1, %rax
setne %r12b
shll $0x1a, %r12d
leaq 0x748e1(%rip), %rsi # 0xa4820
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xf7c0
leal 0x8000000(%r12), %r14d
cmpq $-0x1, %rax
cmovel %r12d, %r14d
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ff7d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
jmp 0x2ff7d
xorl %r14d, %r14d
cmpb $0x1, (%rbx)
jne 0x300d8
movq 0x8(%rbx), %rdi
leaq 0x751e7(%rip), %rsi # 0xa5178
callq 0x5d350
movq 0x8(%rbx), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x3002b
leaq 0x751ca(%rip), %rsi # 0xa5178
movq %rbx, %rdi
callq 0x3a81a
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x6f39a
leaq 0x77824(%rip), %rsi # 0xa77f1
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xf7c0
leal 0x10000000(%r14), %r12d
cmpq $-0x1, %rax
cmovel %r14d, %r12d
leaq 0x7482e(%rip), %rsi # 0xa4820
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xf7c0
leal 0x20000000(%r12), %r14d
cmpq $-0x1, %rax
cmovel %r12d, %r14d
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3002b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
cmpb $0x1, (%rbx)
jne 0x300d8
movq 0x8(%rbx), %rdi
leaq 0x75143(%rip), %rsi # 0xa5182
callq 0x5d278
movq 0x8(%rbx), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x300d8
leaq 0x75126(%rip), %rsi # 0xa5182
movq %rbx, %rdi
callq 0x3a81a
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6f39a
leaq 0x77776(%rip), %rsi # 0xa77f1
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf7c0
leal 0x40000000(%r14), %r15d
cmpq $-0x1, %rax
cmovel %r14d, %r15d
leaq 0x74780(%rip), %rsi # 0xa4820
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf7c0
leal -0x80000000(%r15), %r14d
cmpq $-0x1, %rax
cmovel %r15d, %r14d
movq (%rbx), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x300d8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _Z20permissions_to_flagsN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE:
push r15
push r14
push r12
push rbx
sub rsp, 28h
xor r14d, r14d
cmp byte ptr [rdi], 1
jnz loc_300D8
mov rbx, rdi
mov rdi, [rdi+8]
lea rsi, aNonsecure+3; "secure"
call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE10_M_find_trIA7_cvEESt23_Rb_tree_const_iteratorISH_ERKT_; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::_M_find_tr<char [7],void>(char [7] const&)
mov rcx, [rbx+8]
add rcx, 8
cmp rax, rcx
jz loc_2FF7A
lea rsi, aNonsecure+3; "secure"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r15, [rsp+48h+var_40]
mov rdi, r15
mov rsi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
lea rsi, aInvalidStringC_22+4Ch; "r"
mov ecx, 1
mov rdi, r15
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
xor r12d, r12d
cmp rax, 0FFFFFFFFFFFFFFFFh
setnz r12b
shl r12d, 1Ah
lea rsi, aWindow+5; "w"
mov ecx, 1
mov rdi, r15
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
lea r14d, [r12+8000000h]
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovz r14d, r12d
mov rdi, [r15]; void *
lea rax, [rsp+48h+var_30]
cmp rdi, rax
jz short loc_2FF7D
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2FF7D
loc_2FF7A:
xor r14d, r14d
loc_2FF7D:
cmp byte ptr [rbx], 1
jnz loc_300D8
mov rdi, [rbx+8]
lea rsi, aNonsecure; "nonsecure"
call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE10_M_find_trIA10_cvEESt23_Rb_tree_const_iteratorISH_ERKT_; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::_M_find_tr<char [10],void>(char [10] const&)
mov rcx, [rbx+8]
add rcx, 8
cmp rax, rcx
jz loc_3002B
lea rsi, aNonsecure; "nonsecure"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r15, [rsp+48h+var_40]
mov rdi, r15
mov rsi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
lea rsi, aInvalidStringC_22+4Ch; "r"
mov ecx, 1
mov rdi, r15
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
lea r12d, [r14+10000000h]
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovz r12d, r14d
lea rsi, aWindow+5; "w"
mov ecx, 1
mov rdi, r15
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
lea r14d, [r12+20000000h]
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovz r14d, r12d
mov rdi, [r15]; void *
lea rax, [rsp+48h+var_30]
cmp rdi, rax
jz short loc_3002B
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3002B:
cmp byte ptr [rbx], 1
jnz loc_300D8
mov rdi, [rbx+8]
lea rsi, aBootloader; "bootloader"
call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE10_M_find_trIA11_cvEESt23_Rb_tree_const_iteratorISH_ERKT_; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::_M_find_tr<char [11],void>(char [11] const&)
mov rcx, [rbx+8]
add rcx, 8
cmp rax, rcx
jz loc_300D8
lea rsi, aBootloader; "bootloader"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea rbx, [rsp+48h+var_40]
mov rdi, rbx
mov rsi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
lea rsi, aInvalidStringC_22+4Ch; "r"
mov ecx, 1
mov rdi, rbx
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
lea r15d, [r14+40000000h]
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovz r15d, r14d
lea rsi, aWindow+5; "w"
mov ecx, 1
mov rdi, rbx
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
lea r14d, [r15-80000000h]
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovz r14d, r15d
mov rdi, [rbx]; void *
lea rax, [rsp+48h+var_30]
cmp rdi, rax
jz short loc_300D8
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_300D8:
mov eax, r14d
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
| long long permissions_to_flags(long long a1)
{
unsigned int v1; // r14d
long long v2; // rax
int v3; // edx
int v4; // r8d
int v5; // r9d
long long v6; // rcx
long long v7; // rax
int v8; // r12d
long long v9; // rax
int v10; // edx
int v11; // r8d
int v12; // r9d
long long v13; // rcx
long long v14; // rax
unsigned int v15; // r12d
long long v16; // rax
int v17; // edx
int v18; // r8d
int v19; // r9d
long long v20; // rcx
long long v21; // rax
unsigned int v22; // r15d
void *v24[2]; // [rsp+8h] [rbp-40h] BYREF
_QWORD v25[6]; // [rsp+18h] [rbp-30h] BYREF
v1 = 0;
if ( *(_BYTE *)a1 == 1 )
{
v2 = std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::_M_find_tr<char [7],void>(
*(_QWORD *)(a1 + 8),
"secure");
v6 = *(_QWORD *)(a1 + 8) + 8LL;
if ( v2 == v6 )
{
v1 = 0;
}
else
{
v7 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(unsigned int)"secure",
v3,
v6,
v4,
v5);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
v24,
v7);
v8 = (std::string::find(v24, "r", 0LL, 1LL) != -1) << 26;
v1 = v8 + 0x8000000;
if ( std::string::find(v24, "w", 0LL, 1LL) == -1 )
v1 = v8;
if ( v24[0] != v25 )
operator delete(v24[0], v25[0] + 1LL);
}
if ( *(_BYTE *)a1 == 1 )
{
v9 = std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::_M_find_tr<char [10],void>(
*(_QWORD *)(a1 + 8),
"nonsecure");
v13 = *(_QWORD *)(a1 + 8) + 8LL;
if ( v9 != v13 )
{
v14 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(unsigned int)"nonsecure",
v10,
v13,
v11,
v12);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
v24,
v14);
v15 = v1 + 0x10000000;
if ( std::string::find(v24, "r", 0LL, 1LL) == -1 )
v15 = v1;
v1 = v15 + 0x20000000;
if ( std::string::find(v24, "w", 0LL, 1LL) == -1 )
v1 = v15;
if ( v24[0] != v25 )
operator delete(v24[0], v25[0] + 1LL);
}
if ( *(_BYTE *)a1 == 1 )
{
v16 = std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::_M_find_tr<char [11],void>(
*(_QWORD *)(a1 + 8),
"bootloader");
v20 = *(_QWORD *)(a1 + 8) + 8LL;
if ( v16 != v20 )
{
v21 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(unsigned int)"bootloader",
v17,
v20,
v18,
v19);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
v24,
v21);
v22 = v1 + 0x40000000;
if ( std::string::find(v24, "r", 0LL, 1LL) == -1 )
v22 = v1;
v1 = v22 + 0x80000000;
if ( std::string::find(v24, "w", 0LL, 1LL) == -1 )
v1 = v22;
if ( v24[0] != v25 )
operator delete(v24[0], v25[0] + 1LL);
}
}
}
}
return v1;
}
| permissions_to_flags:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
XOR R14D,R14D
CMP byte ptr [RDI],0x1
JNZ 0x001300d8
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x8]
LEA RSI,[0x1a517b]
CALL 0x0015d2e4
MOV RCX,qword ptr [RBX + 0x8]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x0012ff7a
LEA RSI,[0x1a517b]
MOV RDI,RBX
CALL 0x0013a81a
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,RAX
CALL 0x0016f39a
LEA RSI,[0x1a77f1]
MOV ECX,0x1
MOV RDI,R15
XOR EDX,EDX
CALL 0x0010f7c0
XOR R12D,R12D
CMP RAX,-0x1
SETNZ R12B
SHL R12D,0x1a
LEA RSI,[0x1a4820]
MOV ECX,0x1
MOV RDI,R15
XOR EDX,EDX
CALL 0x0010f7c0
LEA R14D,[R12 + 0x8000000]
CMP RAX,-0x1
CMOVZ R14D,R12D
MOV RDI,qword ptr [R15]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x0012ff7d
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010f470
JMP 0x0012ff7d
LAB_0012ff7a:
XOR R14D,R14D
LAB_0012ff7d:
CMP byte ptr [RBX],0x1
JNZ 0x001300d8
MOV RDI,qword ptr [RBX + 0x8]
LEA RSI,[0x1a5178]
CALL 0x0015d350
MOV RCX,qword ptr [RBX + 0x8]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x0013002b
LEA RSI,[0x1a5178]
MOV RDI,RBX
CALL 0x0013a81a
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,RAX
CALL 0x0016f39a
LEA RSI,[0x1a77f1]
MOV ECX,0x1
MOV RDI,R15
XOR EDX,EDX
CALL 0x0010f7c0
LEA R12D,[R14 + 0x10000000]
CMP RAX,-0x1
CMOVZ R12D,R14D
LEA RSI,[0x1a4820]
MOV ECX,0x1
MOV RDI,R15
XOR EDX,EDX
CALL 0x0010f7c0
LEA R14D,[R12 + 0x20000000]
CMP RAX,-0x1
CMOVZ R14D,R12D
MOV RDI,qword ptr [R15]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x0013002b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010f470
LAB_0013002b:
CMP byte ptr [RBX],0x1
JNZ 0x001300d8
MOV RDI,qword ptr [RBX + 0x8]
LEA RSI,[0x1a5182]
CALL 0x0015d278
MOV RCX,qword ptr [RBX + 0x8]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x001300d8
LEA RSI,[0x1a5182]
MOV RDI,RBX
CALL 0x0013a81a
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0016f39a
LEA RSI,[0x1a77f1]
MOV ECX,0x1
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0010f7c0
LEA R15D,[R14 + 0x40000000]
CMP RAX,-0x1
CMOVZ R15D,R14D
LEA RSI,[0x1a4820]
MOV ECX,0x1
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0010f7c0
LEA R14D,[R15 + -0x80000000]
CMP RAX,-0x1
CMOVZ R14D,R15D
MOV RDI,qword ptr [RBX]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001300d8
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010f470
LAB_001300d8:
MOV EAX,R14D
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
|
/* permissions_to_flags(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>) */
int permissions_to_flags
(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1)
{
long lVar1;
basic_json *pbVar2;
int iVar3;
int iVar4;
long *local_40 [2];
long local_30 [2];
iVar4 = 0;
if (*param_1 ==
(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
lVar1 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::_M_find_tr<char[7],void>(*(char **)(param_1 + 8));
if (lVar1 == *(long *)(param_1 + 8) + 8) {
iVar4 = 0;
}
else {
pbVar2 = nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(param_1,"secure");
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_40,pbVar2);
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a77f1,0);
iVar3 = (uint)(lVar1 != -1) * 0x4000000;
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a4820,0);
iVar4 = iVar3 + 0x8000000;
if (lVar1 == -1) {
iVar4 = iVar3;
}
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
}
if (*param_1 ==
(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
lVar1 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::_M_find_tr<char[10],void>(*(char **)(param_1 + 8));
if (lVar1 != *(long *)(param_1 + 8) + 8) {
pbVar2 = nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(param_1,"nonsecure");
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_40,pbVar2);
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a77f1,0);
iVar3 = iVar4 + 0x10000000;
if (lVar1 == -1) {
iVar3 = iVar4;
}
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a4820,0);
iVar4 = iVar3 + 0x20000000;
if (lVar1 == -1) {
iVar4 = iVar3;
}
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
}
if (*param_1 ==
(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
lVar1 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::_M_find_tr<char[11],void>(*(char **)(param_1 + 8));
if (lVar1 != *(long *)(param_1 + 8) + 8) {
pbVar2 = nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(param_1,"bootloader");
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_40,pbVar2);
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a77f1,0);
iVar3 = iVar4 + 0x40000000;
if (lVar1 == -1) {
iVar3 = iVar4;
}
lVar1 = std::__cxx11::string::find((char *)local_40,0x1a4820,0);
iVar4 = iVar3 + -0x80000000;
if (lVar1 == -1) {
iVar4 = iVar3;
}
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
}
}
}
}
return iVar4;
}
| |
50,066 | fmt::v8::appender fmt::v8::detail::write<char, fmt::v8::appender, bool, 0>(fmt::v8::appender, bool, fmt::v8::basic_format_specs<char> const&, fmt::v8::detail::locale_ref) | aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto write(OutputIt out, T value,
const basic_format_specs<Char>& specs = {},
locale_ref = {}) -> OutputIt {
return specs.type && specs.type != 's'
? write(out, value ? 1 : 0, specs, {})
: write_bytes(out, value ? "true" : "false", specs);
} | O0 | c | fmt::v8::appender fmt::v8::detail::write<char, fmt::v8::appender, bool, 0>(fmt::v8::appender, bool, fmt::v8::basic_format_specs<char> const&, fmt::v8::detail::locale_ref):
subq $0x78, %rsp
movb %sil, %al
movq %rdi, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
andb $0x1, %al
movb %al, 0x4f(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpb $0x0, 0x8(%rax)
je 0x9bd87
movq 0x40(%rsp), %rax
movsbl 0x8(%rax), %eax
cmpl $0x73, %eax
je 0x9bd87
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
movb 0x4f(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0xc(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x99090
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rcx
callq 0x9be80
movq %rax, 0x60(%rsp)
jmp 0x9bdfd
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movb 0x4f(%rsp), %dl
leaq 0x76b8a(%rip), %rax # 0x112926
leaq 0x76b7e(%rip), %rcx # 0x112921
testb $0x1, %dl
cmovneq %rcx, %rax
leaq 0x18(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq %rax, (%rsp)
movq 0x68(%rsp), %rcx
movq %rcx, (%rax)
movq 0x68(%rsp), %rdi
callq 0x19f90
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rcx
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x9cbd0
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x78, %rsp
retq
nopw (%rax,%rax)
| _ZN3fmt2v86detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_18basic_format_specsIT_EENS1_10locale_refE:
sub rsp, 78h
mov al, sil
mov [rsp+78h+var_20], rdi
mov [rsp+78h+var_28], rcx
and al, 1
mov [rsp+78h+var_29], al
mov [rsp+78h+var_38], rdx
mov rax, [rsp+78h+var_38]
cmp byte ptr [rax+8], 0
jz short loc_9BD87
mov rax, [rsp+78h+var_38]
movsx eax, byte ptr [rax+8]
cmp eax, 73h ; 's'
jz short loc_9BD87
mov rax, [rsp+78h+var_20]
mov [rsp+78h+var_40], rax
mov dl, [rsp+78h+var_29]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rsp+78h+var_6C], eax
mov rax, [rsp+78h+var_38]
mov [rsp+78h+var_68], rax
lea rdi, [rsp+78h+var_48]; this
call _ZN3fmt2v86detail10locale_refC2Ev; fmt::v8::detail::locale_ref::locale_ref(void)
mov esi, [rsp+78h+var_6C]
mov rdx, [rsp+78h+var_68]
mov rdi, [rsp+78h+var_40]
mov rcx, [rsp+78h+var_48]
call _ZN3fmt2v86detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuesr3std7is_sameIT0_NSt11conditionalIXsr3std7is_sameIT_cEE5valueES3_St20back_insert_iteratorINS1_6bufferIS8_EEEE4typeEEE5valueEiE4typeELi0EEES6_S6_S5_RKNS0_18basic_format_specsIS8_EENS1_10locale_refE
mov [rsp+78h+var_18], rax
jmp short loc_9BDFD
loc_9BD87:
mov rax, [rsp+78h+var_20]
mov [rsp+78h+var_50], rax
mov dl, [rsp+78h+var_29]
lea rax, aFalse; "false"
lea rcx, aTrue; "true"
test dl, 1
cmovnz rax, rcx
lea rcx, [rsp+78h+var_60]
mov [rsp+78h+var_8], rcx
mov [rsp+78h+var_10], rax
mov rax, [rsp+78h+var_8]
mov [rsp+78h+var_78], rax
mov rcx, [rsp+78h+var_10]
mov [rax], rcx
mov rdi, [rsp+78h+var_10]
call _strlen
mov rcx, rax
mov rax, [rsp+78h+var_78]
mov [rax+8], rcx
mov rcx, [rsp+78h+var_38]
mov rdi, [rsp+78h+var_50]
mov rsi, [rsp+78h+var_60]
mov rdx, [rsp+78h+var_58]
call _ZN3fmt2v86detail11write_bytesILNS0_5align4typeE1EcNS0_8appenderEEET1_S6_NS0_17basic_string_viewIcEERKNS0_18basic_format_specsIT0_EE; fmt::v8::detail::write_bytes<(fmt::v8::align::type)1,char,fmt::v8::appender>(fmt::v8::appender,fmt::v8::basic_string_view<char>,fmt::v8::basic_format_specs<char> const&)
mov [rsp+78h+var_18], rax
loc_9BDFD:
mov rax, [rsp+78h+var_18]
add rsp, 78h
retn
| long long ZN3fmt2v86detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_18basic_format_specsIT_EENS1_10locale_refE(
long long a1,
char a2,
long long a3,
long long a4)
{
const char *v4; // rax
BOOL v6; // [rsp+Ch] [rbp-6Ch]
long long v7; // [rsp+10h] [rbp-68h]
const char *v8; // [rsp+18h] [rbp-60h] BYREF
long long v9; // [rsp+20h] [rbp-58h]
long long v10; // [rsp+28h] [rbp-50h]
long long v11; // [rsp+30h] [rbp-48h] BYREF
long long v12; // [rsp+38h] [rbp-40h]
long long v13; // [rsp+40h] [rbp-38h]
char v14; // [rsp+4Fh] [rbp-29h]
long long v15; // [rsp+50h] [rbp-28h]
long long v16; // [rsp+58h] [rbp-20h]
const char *v18; // [rsp+68h] [rbp-10h]
const char **v19; // [rsp+70h] [rbp-8h]
v16 = a1;
v15 = a4;
v14 = a2 & 1;
v13 = a3;
if ( !*(_BYTE *)(a3 + 8) || *(_BYTE *)(v13 + 8) == 115 )
{
v10 = v16;
v4 = "false";
if ( (v14 & 1) != 0 )
v4 = "true";
v19 = &v8;
v18 = v4;
v8 = v4;
v9 = strlen(v4);
return fmt::v8::detail::write_bytes<(fmt::v8::align::type)1,char,fmt::v8::appender>(v10, v8, v9, v13);
}
else
{
v12 = v16;
v6 = (v14 & 1) != 0;
v7 = v13;
fmt::v8::detail::locale_ref::locale_ref((fmt::v8::detail::locale_ref *)&v11);
return ZN3fmt2v86detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuesr3std7is_sameIT0_NSt11conditionalIXsr3std7is_sameIT_cEE5valueES3_St20back_insert_iteratorINS1_6bufferIS8_EEEE4typeEEE5valueEiE4typeELi0EEES6_S6_S5_RKNS0_18basic_format_specsIS8_EENS1_10locale_refE(
v12,
v6,
v7,
v11);
}
}
| _ZN3fmt2v86detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_18basic_format_specsIT_EENS1_10locale_refE:
SUB RSP,0x78
MOV AL,SIL
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RCX
AND AL,0x1
MOV byte ptr [RSP + 0x4f],AL
MOV qword ptr [RSP + 0x40],RDX
MOV RAX,qword ptr [RSP + 0x40]
CMP byte ptr [RAX + 0x8],0x0
JZ 0x0019bd87
MOV RAX,qword ptr [RSP + 0x40]
MOVSX EAX,byte ptr [RAX + 0x8]
CMP EAX,0x73
JZ 0x0019bd87
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
MOV DL,byte ptr [RSP + 0x4f]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x30]
CALL 0x00199090
MOV ESI,dword ptr [RSP + 0xc]
MOV RDX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x30]
CALL 0x0019be80
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0019bdfd
LAB_0019bd87:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x28],RAX
MOV DL,byte ptr [RSP + 0x4f]
LEA RAX,[0x212926]
LEA RCX,[0x212921]
TEST DL,0x1
CMOVNZ RAX,RCX
LEA RCX,[RSP + 0x18]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP],RAX
MOV RCX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x00119f90
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x0019cbd0
MOV qword ptr [RSP + 0x60],RAX
LAB_0019bdfd:
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x78
RET
|
int8
_ZN3fmt2v86detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_18basic_format_specsIT_EENS1_10locale_refE
(detail *param_1,byte param_2,long param_3,int8 param_4)
{
size_t sVar1;
bool bVar2;
char *local_60 [2];
detail *local_50;
int8 local_48;
detail *local_40;
long local_38;
byte local_29;
int8 local_28;
detail *local_20;
int8 local_18;
char *local_10;
char **local_8;
local_29 = param_2 & 1;
local_38 = param_3;
local_28 = param_4;
local_20 = param_1;
if ((*(char *)(param_3 + 8) == '\0') || (*(char *)(param_3 + 8) == 's')) {
local_60[0] = "false";
if (local_29 != 0) {
local_60[0] = "true";
}
local_8 = local_60;
local_50 = param_1;
local_10 = local_60[0];
sVar1 = strlen(local_60[0]);
local_18 = fmt::v8::detail::write_bytes<(fmt::v8::align::type)1,char,fmt::v8::appender>
(local_50,local_60[0],sVar1,local_38);
}
else {
bVar2 = local_29 != 0;
local_40 = param_1;
fmt::v8::detail::locale_ref::locale_ref((locale_ref *)&local_48);
local_18 = _ZN3fmt2v86detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuesr3std7is_sameIT0_NSt11conditionalIXsr3std7is_sameIT_cEE5valueES3_St20back_insert_iteratorINS1_6bufferIS8_EEEE4typeEEE5valueEiE4typeELi0EEES6_S6_S5_RKNS0_18basic_format_specsIS8_EENS1_10locale_refE
(local_40,bVar2,param_3,local_48);
}
return local_18;
}
| |
50,067 | remove_key | eloqsql/storage/maria/ma_delete.c | static uint remove_key(MARIA_KEYDEF *keyinfo, uint page_flag, uint nod_flag,
uchar *keypos, uchar *lastkey,
uchar *page_end, my_off_t *next_block,
MARIA_KEY_PARAM *s_temp)
{
int s_length;
uchar *start;
DBUG_ENTER("remove_key");
DBUG_PRINT("enter", ("keypos:%p page_end: %p",
keypos, page_end));
start= s_temp->key_pos= keypos;
s_temp->changed_length= 0;
if (!(keyinfo->flag &
(HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY |
HA_BINARY_PACK_KEY)) &&
!(page_flag & KEYPAGE_FLAG_HAS_TRANSID))
{
/* Static length key */
s_length=(int) (keyinfo->keylength+nod_flag);
if (next_block && nod_flag)
*next_block= _ma_kpos(nod_flag,keypos+s_length);
}
else
{
/* Let keypos point at next key */
MARIA_KEY key;
/* Calculate length of key */
key.keyinfo= keyinfo;
key.data= lastkey;
if (!(*keyinfo->get_key)(&key, page_flag, nod_flag, &keypos))
DBUG_RETURN(0); /* Error */
if (next_block && nod_flag)
*next_block= _ma_kpos(nod_flag,keypos);
s_length=(int) (keypos-start);
if (keypos != page_end)
{
if (keyinfo->flag & HA_BINARY_PACK_KEY)
{
uchar *old_key= start;
uint next_length,prev_length,prev_pack_length;
/* keypos points here on start of next key */
get_key_length(next_length,keypos);
get_key_pack_length(prev_length,prev_pack_length,old_key);
if (next_length > prev_length)
{
uint diff= (next_length-prev_length);
/* We have to copy data from the current key to the next key */
keypos-= diff + prev_pack_length;
store_key_length(keypos, prev_length);
bmove(keypos + prev_pack_length, lastkey + prev_length, diff);
s_length=(int) (keypos-start);
s_temp->changed_length= diff + prev_pack_length;
}
}
else
{
/* Check if a variable length first key part */
if ((keyinfo->seg->flag & HA_PACK_KEY) && *keypos & 128)
{
/* Next key is packed against the current one */
uint next_length,prev_length,prev_pack_length,lastkey_length,
rest_length;
if (keyinfo->seg[0].length >= 127)
{
if (!(prev_length=mi_uint2korr(start) & 32767))
goto end;
next_length=mi_uint2korr(keypos) & 32767;
keypos+=2;
prev_pack_length=2;
}
else
{
if (!(prev_length= *start & 127))
goto end; /* Same key as previous*/
next_length= *keypos & 127;
keypos++;
prev_pack_length=1;
}
if (!(*start & 128))
prev_length=0; /* prev key not packed */
if (keyinfo->seg[0].flag & HA_NULL_PART)
lastkey++; /* Skip null marker */
get_key_length(lastkey_length,lastkey);
if (!next_length) /* Same key after */
{
next_length=lastkey_length;
rest_length=0;
}
else
get_key_length(rest_length,keypos);
if (next_length >= prev_length)
{
/* Next key is based on deleted key */
uint pack_length;
uint diff= (next_length-prev_length);
/* keypos points to data of next key (after key length) */
bmove(keypos - diff, lastkey + prev_length, diff);
rest_length+= diff;
pack_length= prev_length ? get_pack_length(rest_length): 0;
keypos-= diff + pack_length + prev_pack_length;
s_length=(int) (keypos-start);
if (prev_length) /* Pack against prev key */
{
*keypos++= start[0];
if (prev_pack_length == 2)
*keypos++= start[1];
store_key_length(keypos,rest_length);
}
else
{
/* Next key is not packed anymore */
if (keyinfo->seg[0].flag & HA_NULL_PART)
{
rest_length++; /* Mark not null */
}
if (prev_pack_length == 2)
{
mi_int2store(keypos,rest_length);
}
else
*keypos= rest_length;
}
s_temp->changed_length= diff + pack_length + prev_pack_length;
}
}
}
}
}
end:
bmove(start, start+s_length, (uint) (page_end-start-s_length));
s_temp->move_length= s_length;
DBUG_RETURN((uint) s_length);
} | O3 | c | remove_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r13
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %r12
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rbx
movq %rcx, -0x30(%rbp)
movq %rcx, 0x18(%rax)
movl $0x0, 0x40(%rax)
testb $0x2, %sil
jne 0x6edb6
movzwl 0xa2(%r12), %eax
andl $0x2e, %eax
jne 0x6edb6
movzwl 0xaa(%r12), %r13d
addl %r15d, %r13d
testq %rbx, %rbx
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
jne 0x6ef9b
movslq %r13d, %rsi
addq %r14, %rsi
movl %r15d, %edi
movq %r9, %r15
callq 0x5dc0f
movq %r15, %r9
movq %rax, (%rbx)
jmp 0x6ef9b
movq %r9, -0x48(%rbp)
leaq -0x68(%rbp), %rdi
movq %r12, 0x8(%rdi)
movq %r13, (%rdi)
leaq -0x30(%rbp), %rcx
movl %r15d, %edx
callq *0xe0(%r12)
testl %eax, %eax
je 0x6ee8e
movq %r13, -0x40(%rbp)
testq %rbx, %rbx
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
jne 0x6edff
movq -0x30(%rbp), %rsi
movl %r15d, %edi
callq 0x5dc0f
movq %rax, (%rbx)
movq -0x30(%rbp), %rax
movq -0x48(%rbp), %r9
movq %r9, %r13
cmpq %r9, %rax
je 0x6ef98
testb $0x20, 0xa2(%r12)
jne 0x6ee96
movq 0xc0(%r12), %rdx
movzwl 0x12(%rdx), %esi
testb $0x2, %sil
je 0x6ef95
movzbl (%rax), %ecx
testb %cl, %cl
jns 0x6ef95
movzwl 0x14(%rdx), %edi
cmpw $0x7f, %di
jb 0x6ef47
movzbl 0x1(%r14), %edx
movzbl (%r14), %r11d
movl %r11d, %r8d
andl $0x7f, %r8d
shll $0x8, %r8d
orl %edx, %r8d
movq -0x40(%rbp), %r10
je 0x6ef95
movw %di, -0x32(%rbp)
movzbl 0x1(%rax), %edx
andl $0x7f, %ecx
shll $0x8, %ecx
orl %edx, %ecx
movl $0x2, %r15d
movl $0x2, %edi
jmp 0x6ef6a
xorl %r13d, %r13d
jmp 0x6efb7
cmpb $-0x1, (%rax)
je 0x6eead
leaq 0x1(%rax), %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %ecx
movl $0x1, %edi
jmp 0x6eec5
movzwl 0x1(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
leaq 0x3(%rax), %rdx
movq %rdx, -0x30(%rbp)
movl $0x3, %edi
movzbl (%r14), %edx
cmpl $0xff, %edx
movq -0x40(%rbp), %rsi
je 0x6eedd
movl $0x1, %r8d
jmp 0x6eeef
movzwl 0x1(%r14), %edx
rolw $0x8, %dx
movzwl %dx, %edx
movl $0x3, %r8d
subl %edx, %ecx
jbe 0x6ef95
addq %rdi, %rax
leal (%rcx,%r8), %r15d
subq %r15, %rax
movq %rax, -0x30(%rbp)
cmpl $0xfe, %edx
ja 0x6ef11
movb %dl, (%rax)
jmp 0x6ef22
movb $-0x1, (%rax)
movq -0x30(%rbp), %rax
movb %dl, 0x2(%rax)
movq -0x30(%rbp), %rax
movb %dh, 0x1(%rax)
movl %r8d, %edi
addq -0x30(%rbp), %rdi
movl %edx, %eax
addq %rax, %rsi
movl %ecx, %edx
callq 0x2a150
movq -0x30(%rbp), %r13
movq -0x48(%rbp), %r9
movq 0x18(%rbp), %rax
movl %r15d, 0x40(%rax)
jmp 0x6ef98
movzbl (%r14), %r11d
movl %r11d, %r8d
andl $0x7f, %r8d
movq -0x40(%rbp), %r10
je 0x6ef95
movw %di, -0x32(%rbp)
andl $0x7f, %ecx
movl $0x1, %r15d
movl $0x1, %edi
addq %rax, %rdi
movq %rdi, -0x30(%rbp)
xorl %ebx, %ebx
testb %r11b, %r11b
cmovsl %r8d, %ebx
btl $0x4, %esi
adcq $0x0, %r10
movzbl (%r10), %edx
cmpl $0xff, %edx
je 0x6efc9
movl $0x1, %esi
jmp 0x6efda
movq %rax, %r13
subl %r14d, %r13d
movslq %r13d, %rbx
leaq (%r14,%rbx), %rsi
subl %esi, %r9d
movq %r14, %rdi
movq %r9, %rdx
callq 0x2a150
movq 0x18(%rbp), %rax
movl %ebx, 0x44(%rax)
movl %r13d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl 0x1(%r10), %esi
rolw $0x8, %si
movzwl %si, %edx
movl $0x3, %esi
testl %ecx, %ecx
je 0x6eff6
cmpb $-0x1, (%rdi)
je 0x6efff
leaq 0x1(%rdi), %r8
movq %r8, -0x30(%rbp)
movzbl (%rdi), %edi
movl %edi, -0x40(%rbp)
movq %r8, %rdi
jmp 0x6f019
movl $0x0, -0x40(%rbp)
jmp 0x6f01b
movzwl 0x1(%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
movl %r8d, -0x40(%rbp)
addq $0x3, %rdi
movq %rdi, -0x30(%rbp)
movl %ecx, %edx
movq %rax, %r13
subl %ebx, %edx
jb 0x6ef98
addq %rsi, %r10
subq %rdx, %rdi
movl %ebx, %esi
addq %r10, %rsi
movl %r11d, %ebx
movq %rdx, %r13
callq 0x2a150
movl -0x40(%rbp), %edx
addl %r13d, %edx
xorl %eax, %eax
cmpl $0xff, %edx
setae %al
xorl %ecx, %ecx
testb %bl, %bl
leal 0x1(%rax,%rax), %eax
cmovnsl %ecx, %eax
addl %r13d, %r15d
addl %eax, %r15d
movq -0x30(%rbp), %r13
subq %r15, %r13
movq %r13, -0x30(%rbp)
testb %bl, %bl
js 0x6f096
movq 0xc0(%r12), %rax
movzwl 0x12(%rax), %eax
btl $0x4, %eax
adcl $0x0, %edx
cmpw $0x7f, -0x32(%rbp)
jb 0x6f0d9
movb %dl, 0x1(%r13)
movq -0x30(%rbp), %rax
movb %dh, (%rax)
jmp 0x6ef39
leaq 0x1(%r13), %rax
movb (%r14), %cl
movq %rax, -0x30(%rbp)
movb %cl, (%r13)
cmpw $0x7f, -0x32(%rbp)
jb 0x6f0c2
movb 0x1(%r14), %al
movq -0x30(%rbp), %rcx
movl %edx, %esi
leaq 0x1(%rcx), %rdx
movq %rdx, -0x30(%rbp)
movl %esi, %edx
movb %al, (%rcx)
cmpl $0xfe, %edx
movq -0x48(%rbp), %r9
ja 0x6f0e2
movq -0x30(%rbp), %rax
movb %dl, (%rax)
jmp 0x6ef3d
movb %dl, (%r13)
jmp 0x6ef39
movq -0x30(%rbp), %rax
movb $-0x1, (%rax)
movq -0x30(%rbp), %rax
movb %dl, 0x2(%rax)
movq -0x30(%rbp), %rax
movb %dh, 0x1(%rax)
jmp 0x6ef3d
| remove_key:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r13, r8
mov r14, rcx
mov r15d, edx
mov r12, rdi
mov rax, [rbp+arg_8]
mov rbx, [rbp+arg_0]
mov [rbp+var_30], rcx
mov [rax+18h], rcx
mov dword ptr [rax+40h], 0
test sil, 2
jnz short loc_6EDB6
movzx eax, word ptr [r12+0A2h]
and eax, 2Eh
jnz short loc_6EDB6
movzx r13d, word ptr [r12+0AAh]
add r13d, r15d
test rbx, rbx
setz al
test r15d, r15d
setz cl
or cl, al
jnz loc_6EF9B
movsxd rsi, r13d
add rsi, r14
mov edi, r15d
mov r15, r9
call _ma_kpos
mov r9, r15
mov [rbx], rax
jmp loc_6EF9B
loc_6EDB6:
mov [rbp+var_48], r9
lea rdi, [rbp+var_68]
mov [rdi+8], r12
mov [rdi], r13
lea rcx, [rbp+var_30]
mov edx, r15d
call qword ptr [r12+0E0h]
test eax, eax
jz loc_6EE8E
mov [rbp+var_40], r13
test rbx, rbx
setz al
test r15d, r15d
setz cl
or cl, al
jnz short loc_6EDFF
mov rsi, [rbp+var_30]
mov edi, r15d
call _ma_kpos
mov [rbx], rax
loc_6EDFF:
mov rax, [rbp+var_30]
mov r9, [rbp+var_48]
mov r13, r9
cmp rax, r9
jz loc_6EF98
test byte ptr [r12+0A2h], 20h
jnz short loc_6EE96
mov rdx, [r12+0C0h]
movzx esi, word ptr [rdx+12h]
test sil, 2
jz loc_6EF95
movzx ecx, byte ptr [rax]
test cl, cl
jns loc_6EF95
movzx edi, word ptr [rdx+14h]
cmp di, 7Fh
jb loc_6EF47
movzx edx, byte ptr [r14+1]
movzx r11d, byte ptr [r14]
mov r8d, r11d
and r8d, 7Fh
shl r8d, 8
or r8d, edx
mov r10, [rbp+var_40]
jz loc_6EF95
mov [rbp+var_32], di
movzx edx, byte ptr [rax+1]
and ecx, 7Fh
shl ecx, 8
or ecx, edx
mov r15d, 2
mov edi, 2
jmp loc_6EF6A
loc_6EE8E:
xor r13d, r13d
jmp loc_6EFB7
loc_6EE96:
cmp byte ptr [rax], 0FFh
jz short loc_6EEAD
lea rcx, [rax+1]
mov [rbp+var_30], rcx
movzx ecx, byte ptr [rax]
mov edi, 1
jmp short loc_6EEC5
loc_6EEAD:
movzx ecx, word ptr [rax+1]
rol cx, 8
movzx ecx, cx
lea rdx, [rax+3]
mov [rbp+var_30], rdx
mov edi, 3
loc_6EEC5:
movzx edx, byte ptr [r14]
cmp edx, 0FFh
mov rsi, [rbp+var_40]
jz short loc_6EEDD
mov r8d, 1
jmp short loc_6EEEF
loc_6EEDD:
movzx edx, word ptr [r14+1]
rol dx, 8
movzx edx, dx
mov r8d, 3
loc_6EEEF:
sub ecx, edx
jbe loc_6EF95
add rax, rdi
lea r15d, [rcx+r8]
sub rax, r15
mov [rbp+var_30], rax
cmp edx, 0FEh
ja short loc_6EF11
mov [rax], dl
jmp short loc_6EF22
loc_6EF11:
mov byte ptr [rax], 0FFh
mov rax, [rbp+var_30]
mov [rax+2], dl
mov rax, [rbp+var_30]
mov [rax+1], dh
loc_6EF22:
mov edi, r8d
add rdi, [rbp+var_30]
mov eax, edx
add rsi, rax
mov edx, ecx
call _memmove
mov r13, [rbp+var_30]
loc_6EF39:
mov r9, [rbp+var_48]
loc_6EF3D:
mov rax, [rbp+arg_8]
mov [rax+40h], r15d
jmp short loc_6EF98
loc_6EF47:
movzx r11d, byte ptr [r14]
mov r8d, r11d
and r8d, 7Fh
mov r10, [rbp+var_40]
jz short loc_6EF95
mov [rbp+var_32], di
and ecx, 7Fh
mov r15d, 1
mov edi, 1
loc_6EF6A:
add rdi, rax
mov [rbp+var_30], rdi
xor ebx, ebx
test r11b, r11b
cmovs ebx, r8d
bt esi, 4
adc r10, 0
movzx edx, byte ptr [r10]
cmp edx, 0FFh
jz short loc_6EFC9
mov esi, 1
jmp short loc_6EFDA
loc_6EF95:
mov r13, rax
loc_6EF98:
sub r13d, r14d
loc_6EF9B:
movsxd rbx, r13d
lea rsi, [r14+rbx]
sub r9d, esi
mov rdi, r14
mov rdx, r9
call _memmove
mov rax, [rbp+arg_8]
mov [rax+44h], ebx
loc_6EFB7:
mov eax, r13d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6EFC9:
movzx esi, word ptr [r10+1]
rol si, 8
movzx edx, si
mov esi, 3
loc_6EFDA:
test ecx, ecx
jz short loc_6EFF6
cmp byte ptr [rdi], 0FFh
jz short loc_6EFFF
lea r8, [rdi+1]
mov [rbp+var_30], r8
movzx edi, byte ptr [rdi]
mov dword ptr [rbp+var_40], edi
mov rdi, r8
jmp short loc_6F019
loc_6EFF6:
mov dword ptr [rbp+var_40], 0
jmp short loc_6F01B
loc_6EFFF:
movzx r8d, word ptr [rdi+1]
rol r8w, 8
movzx r8d, r8w
mov dword ptr [rbp+var_40], r8d
add rdi, 3
mov [rbp+var_30], rdi
loc_6F019:
mov edx, ecx
loc_6F01B:
mov r13, rax
sub edx, ebx
jb loc_6EF98
add r10, rsi
sub rdi, rdx
mov esi, ebx
add rsi, r10
mov ebx, r11d
mov r13, rdx
call _memmove
mov edx, dword ptr [rbp+var_40]
add edx, r13d
xor eax, eax
cmp edx, 0FFh
setnb al
xor ecx, ecx
test bl, bl
lea eax, [rax+rax+1]
cmovns eax, ecx
add r15d, r13d
add r15d, eax
mov r13, [rbp+var_30]
sub r13, r15
mov [rbp+var_30], r13
test bl, bl
js short loc_6F096
mov rax, [r12+0C0h]
movzx eax, word ptr [rax+12h]
bt eax, 4
adc edx, 0
cmp [rbp+var_32], 7Fh
jb short loc_6F0D9
mov [r13+1], dl
mov rax, [rbp+var_30]
mov [rax], dh
jmp loc_6EF39
loc_6F096:
lea rax, [r13+1]
mov cl, [r14]
mov [rbp+var_30], rax
mov [r13+0], cl
cmp [rbp+var_32], 7Fh
jb short loc_6F0C2
mov al, [r14+1]
mov rcx, [rbp+var_30]
mov esi, edx
lea rdx, [rcx+1]
mov [rbp+var_30], rdx
mov edx, esi
mov [rcx], al
loc_6F0C2:
cmp edx, 0FEh
mov r9, [rbp+var_48]
ja short loc_6F0E2
mov rax, [rbp+var_30]
mov [rax], dl
jmp loc_6EF3D
loc_6F0D9:
mov [r13+0], dl
jmp loc_6EF39
loc_6F0E2:
mov rax, [rbp+var_30]
mov byte ptr [rax], 0FFh
mov rax, [rbp+var_30]
mov [rax+2], dl
mov rax, [rbp+var_30]
mov [rax+1], dh
jmp loc_6EF3D
| long long remove_key(
long long a1,
long long a2,
unsigned int a3,
unsigned __int8 *a4,
long long a5,
unsigned __int8 *a6,
long long *a7,
long long a8)
{
unsigned int v12; // r13d
int v13; // r15d
long long v14; // rax
unsigned __int8 *v15; // rax
char *v16; // r13
long long v17; // rdx
__int16 v18; // si
unsigned __int8 v19; // cl
char v20; // r11
int v21; // r8d
long long v22; // r10
int v23; // ecx
int v24; // r15d
long long v25; // rdi
unsigned int v26; // ecx
long long v27; // rdi
unsigned int v28; // edx
long long v29; // rsi
unsigned int v30; // r8d
bool v31; // cc
unsigned int v32; // ecx
long long v33; // r15
unsigned __int8 *v34; // rax
unsigned __int8 *v35; // rdi
unsigned int v36; // ebx
unsigned __int8 *v37; // r10
unsigned int v38; // edx
long long v39; // rsi
bool v41; // cf
long long v42; // rdx
unsigned __int8 *v43; // rsi
char v44; // bl
int v45; // r13d
unsigned int v46; // edx
int v47; // eax
__int16 v48; // dx
char v49; // cl
unsigned __int8 v50; // al
unsigned __int8 *v51; // rcx
_QWORD v52[4]; // [rsp+8h] [rbp-68h] BYREF
unsigned __int8 *v53; // [rsp+28h] [rbp-48h]
long long v54; // [rsp+30h] [rbp-40h]
unsigned __int16 v55; // [rsp+3Eh] [rbp-32h]
unsigned __int8 *v56; // [rsp+40h] [rbp-30h] BYREF
v56 = a4;
*(_QWORD *)(a8 + 24) = a4;
*(_DWORD *)(a8 + 64) = 0;
if ( (a2 & 2) == 0 && (*(_WORD *)(a1 + 162) & 0x2E) == 0 )
{
v12 = a3 + *(unsigned __int16 *)(a1 + 170);
if ( a7 != 0LL && a3 != 0 )
{
v13 = (int)a6;
v14 = ma_kpos(a3, (long long)&a4[v12]);
LODWORD(a6) = v13;
*a7 = v14;
}
goto LABEL_37;
}
v53 = a6;
v52[1] = a1;
v52[0] = a5;
if ( (*(unsigned int ( **)(_QWORD *, long long, _QWORD, unsigned __int8 **))(a1 + 224))(v52, a2, a3, &v56) )
{
v54 = a5;
if ( a7 != 0LL && a3 != 0 )
*a7 = ma_kpos(a3, (long long)v56);
v15 = v56;
LODWORD(a6) = (_DWORD)v53;
LODWORD(v16) = (_DWORD)v53;
if ( v56 == v53 )
goto LABEL_36;
if ( (*(_BYTE *)(a1 + 162) & 0x20) != 0 )
{
if ( *v56 == 0xFF )
{
v26 = (unsigned __int16)__ROL2__(*(_WORD *)(v56 + 1), 8);
v56 += 3;
v27 = 3LL;
}
else
{
++v56;
v26 = *v15;
v27 = 1LL;
}
v28 = *a4;
v29 = v54;
if ( v28 == 255 )
{
v28 = (unsigned __int16)__ROL2__(*(_WORD *)(a4 + 1), 8);
v30 = 3;
}
else
{
v30 = 1;
}
v31 = v26 <= v28;
v32 = v26 - v28;
if ( !v31 )
{
v33 = v32 + v30;
v34 = &v15[v27 - v33];
v56 = v34;
if ( v28 > 0xFE )
{
*v34 = -1;
v56[2] = v28;
v56[1] = BYTE1(v28);
}
else
{
*v34 = v28;
}
memmove(&v56[v30], v28 + v29, v32);
LODWORD(v16) = (_DWORD)v56;
goto LABEL_27;
}
}
else
{
v17 = *(_QWORD *)(a1 + 192);
v18 = *(_WORD *)(v17 + 18);
if ( (v18 & 2) != 0 )
{
v19 = *v56;
if ( (*v56 & 0x80u) != 0 )
{
if ( *(_WORD *)(v17 + 20) < 0x7Fu )
{
v20 = *a4;
v21 = *a4 & 0x7F;
v22 = v54;
if ( (*a4 & 0x7F) != 0 )
{
v55 = *(_WORD *)(v17 + 20);
v23 = v19 & 0x7F;
v24 = 1;
v25 = 1LL;
goto LABEL_31;
}
}
else
{
v20 = *a4;
v21 = a4[1] | ((*a4 & 0x7F) << 8);
v22 = v54;
if ( v21 )
{
v55 = *(_WORD *)(v17 + 20);
v23 = v56[1] | ((v19 & 0x7F) << 8);
v24 = 2;
v25 = 2LL;
LABEL_31:
v35 = &v56[v25];
v56 = v35;
v36 = 0;
if ( v20 < 0 )
v36 = v21;
v37 = (unsigned __int8 *)(((v18 & 0x10) != 0) + v22);
v38 = *v37;
if ( v38 == 255 )
{
v38 = (unsigned __int16)__ROL2__(*(_WORD *)(v37 + 1), 8);
v39 = 3LL;
}
else
{
v39 = 1LL;
}
if ( v23 )
{
if ( *v35 == 0xFF )
{
LODWORD(v54) = (unsigned __int16)__ROL2__(*(_WORD *)(v35 + 1), 8);
v35 += 3;
v56 = v35;
}
else
{
v56 = v35 + 1;
LODWORD(v54) = *v35++;
}
v38 = v23;
}
else
{
LODWORD(v54) = 0;
}
LODWORD(v16) = (_DWORD)v15;
v41 = v38 < v36;
v42 = v38 - v36;
if ( v41 )
goto LABEL_36;
v43 = &v37[v39 + v36];
v44 = v20;
v45 = v42;
memmove(&v35[-(unsigned int)v42], v43, v42);
v46 = v45 + v54;
v47 = 2 * ((unsigned int)(v45 + v54) >= 0xFF) + 1;
if ( v44 >= 0 )
v47 = 0;
v33 = (unsigned int)(v47 + v45 + v24);
v16 = (char *)&v56[-v33];
v56 -= v33;
if ( v44 < 0 )
{
v49 = *a4;
v56 = (unsigned __int8 *)(v16 + 1);
*v16 = v49;
if ( v55 >= 0x7Fu )
{
v50 = a4[1];
v51 = v56++;
*v51 = v50;
}
LODWORD(a6) = (_DWORD)v53;
if ( v46 > 0xFE )
{
*v56 = -1;
v56[2] = v46;
v56[1] = BYTE1(v46);
}
else
{
*v56 = v46;
}
goto LABEL_28;
}
v48 = ((*(_WORD *)(*(_QWORD *)(a1 + 192) + 18LL) & 0x10) != 0) + (_WORD)v46;
if ( v55 < 0x7Fu )
{
*v16 = v48;
}
else
{
v16[1] = v48;
*v56 = HIBYTE(v48);
}
LABEL_27:
LODWORD(a6) = (_DWORD)v53;
LABEL_28:
*(_DWORD *)(a8 + 64) = v33;
LABEL_36:
v12 = (_DWORD)v16 - (_DWORD)a4;
LABEL_37:
memmove(a4, &a4[v12], (unsigned int)a6 - ((_DWORD)a4 + v12));
*(_DWORD *)(a8 + 68) = v12;
return v12;
}
}
}
}
}
LODWORD(v16) = (_DWORD)v15;
goto LABEL_36;
}
return 0;
}
| remove_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R13,R8
MOV R14,RCX
MOV R15D,EDX
MOV R12,RDI
MOV RAX,qword ptr [RBP + 0x18]
MOV RBX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x30],RCX
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RAX + 0x40],0x0
TEST SIL,0x2
JNZ 0x0016edb6
MOVZX EAX,word ptr [R12 + 0xa2]
AND EAX,0x2e
JNZ 0x0016edb6
MOVZX R13D,word ptr [R12 + 0xaa]
ADD R13D,R15D
TEST RBX,RBX
SETZ AL
TEST R15D,R15D
SETZ CL
OR CL,AL
JNZ 0x0016ef9b
MOVSXD RSI,R13D
ADD RSI,R14
MOV EDI,R15D
MOV R15,R9
CALL 0x0015dc0f
MOV R9,R15
MOV qword ptr [RBX],RAX
JMP 0x0016ef9b
LAB_0016edb6:
MOV qword ptr [RBP + -0x48],R9
LEA RDI,[RBP + -0x68]
MOV qword ptr [RDI + 0x8],R12
MOV qword ptr [RDI],R13
LEA RCX,[RBP + -0x30]
MOV EDX,R15D
CALL qword ptr [R12 + 0xe0]
TEST EAX,EAX
JZ 0x0016ee8e
MOV qword ptr [RBP + -0x40],R13
TEST RBX,RBX
SETZ AL
TEST R15D,R15D
SETZ CL
OR CL,AL
JNZ 0x0016edff
MOV RSI,qword ptr [RBP + -0x30]
MOV EDI,R15D
CALL 0x0015dc0f
MOV qword ptr [RBX],RAX
LAB_0016edff:
MOV RAX,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x48]
MOV R13,R9
CMP RAX,R9
JZ 0x0016ef98
TEST byte ptr [R12 + 0xa2],0x20
JNZ 0x0016ee96
MOV RDX,qword ptr [R12 + 0xc0]
MOVZX ESI,word ptr [RDX + 0x12]
TEST SIL,0x2
JZ 0x0016ef95
MOVZX ECX,byte ptr [RAX]
TEST CL,CL
JNS 0x0016ef95
MOVZX EDI,word ptr [RDX + 0x14]
CMP DI,0x7f
JC 0x0016ef47
MOVZX EDX,byte ptr [R14 + 0x1]
MOVZX R11D,byte ptr [R14]
MOV R8D,R11D
AND R8D,0x7f
SHL R8D,0x8
OR R8D,EDX
MOV R10,qword ptr [RBP + -0x40]
JZ 0x0016ef95
MOV word ptr [RBP + -0x32],DI
MOVZX EDX,byte ptr [RAX + 0x1]
AND ECX,0x7f
SHL ECX,0x8
OR ECX,EDX
MOV R15D,0x2
MOV EDI,0x2
JMP 0x0016ef6a
LAB_0016ee8e:
XOR R13D,R13D
JMP 0x0016efb7
LAB_0016ee96:
CMP byte ptr [RAX],0xff
JZ 0x0016eead
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBP + -0x30],RCX
MOVZX ECX,byte ptr [RAX]
MOV EDI,0x1
JMP 0x0016eec5
LAB_0016eead:
MOVZX ECX,word ptr [RAX + 0x1]
ROL CX,0x8
MOVZX ECX,CX
LEA RDX,[RAX + 0x3]
MOV qword ptr [RBP + -0x30],RDX
MOV EDI,0x3
LAB_0016eec5:
MOVZX EDX,byte ptr [R14]
CMP EDX,0xff
MOV RSI,qword ptr [RBP + -0x40]
JZ 0x0016eedd
MOV R8D,0x1
JMP 0x0016eeef
LAB_0016eedd:
MOVZX EDX,word ptr [R14 + 0x1]
ROL DX,0x8
MOVZX EDX,DX
MOV R8D,0x3
LAB_0016eeef:
SUB ECX,EDX
JBE 0x0016ef95
ADD RAX,RDI
LEA R15D,[RCX + R8*0x1]
SUB RAX,R15
MOV qword ptr [RBP + -0x30],RAX
CMP EDX,0xfe
JA 0x0016ef11
MOV byte ptr [RAX],DL
JMP 0x0016ef22
LAB_0016ef11:
MOV byte ptr [RAX],0xff
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x2],DL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x1],DH
LAB_0016ef22:
MOV EDI,R8D
ADD RDI,qword ptr [RBP + -0x30]
MOV EAX,EDX
ADD RSI,RAX
MOV EDX,ECX
CALL 0x0012a150
MOV R13,qword ptr [RBP + -0x30]
LAB_0016ef39:
MOV R9,qword ptr [RBP + -0x48]
LAB_0016ef3d:
MOV RAX,qword ptr [RBP + 0x18]
MOV dword ptr [RAX + 0x40],R15D
JMP 0x0016ef98
LAB_0016ef47:
MOVZX R11D,byte ptr [R14]
MOV R8D,R11D
AND R8D,0x7f
MOV R10,qword ptr [RBP + -0x40]
JZ 0x0016ef95
MOV word ptr [RBP + -0x32],DI
AND ECX,0x7f
MOV R15D,0x1
MOV EDI,0x1
LAB_0016ef6a:
ADD RDI,RAX
MOV qword ptr [RBP + -0x30],RDI
XOR EBX,EBX
TEST R11B,R11B
CMOVS EBX,R8D
BT ESI,0x4
ADC R10,0x0
MOVZX EDX,byte ptr [R10]
CMP EDX,0xff
JZ 0x0016efc9
MOV ESI,0x1
JMP 0x0016efda
LAB_0016ef95:
MOV R13,RAX
LAB_0016ef98:
SUB R13D,R14D
LAB_0016ef9b:
MOVSXD RBX,R13D
LEA RSI,[R14 + RBX*0x1]
SUB R9D,ESI
MOV RDI,R14
MOV RDX,R9
CALL 0x0012a150
MOV RAX,qword ptr [RBP + 0x18]
MOV dword ptr [RAX + 0x44],EBX
LAB_0016efb7:
MOV EAX,R13D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016efc9:
MOVZX ESI,word ptr [R10 + 0x1]
ROL SI,0x8
MOVZX EDX,SI
MOV ESI,0x3
LAB_0016efda:
TEST ECX,ECX
JZ 0x0016eff6
CMP byte ptr [RDI],0xff
JZ 0x0016efff
LEA R8,[RDI + 0x1]
MOV qword ptr [RBP + -0x30],R8
MOVZX EDI,byte ptr [RDI]
MOV dword ptr [RBP + -0x40],EDI
MOV RDI,R8
JMP 0x0016f019
LAB_0016eff6:
MOV dword ptr [RBP + -0x40],0x0
JMP 0x0016f01b
LAB_0016efff:
MOVZX R8D,word ptr [RDI + 0x1]
ROL R8W,0x8
MOVZX R8D,R8W
MOV dword ptr [RBP + -0x40],R8D
ADD RDI,0x3
MOV qword ptr [RBP + -0x30],RDI
LAB_0016f019:
MOV EDX,ECX
LAB_0016f01b:
MOV R13,RAX
SUB EDX,EBX
JC 0x0016ef98
ADD R10,RSI
SUB RDI,RDX
MOV ESI,EBX
ADD RSI,R10
MOV EBX,R11D
MOV R13,RDX
CALL 0x0012a150
MOV EDX,dword ptr [RBP + -0x40]
ADD EDX,R13D
XOR EAX,EAX
CMP EDX,0xff
SETNC AL
XOR ECX,ECX
TEST BL,BL
LEA EAX,[RAX + RAX*0x1 + 0x1]
CMOVNS EAX,ECX
ADD R15D,R13D
ADD R15D,EAX
MOV R13,qword ptr [RBP + -0x30]
SUB R13,R15
MOV qword ptr [RBP + -0x30],R13
TEST BL,BL
JS 0x0016f096
MOV RAX,qword ptr [R12 + 0xc0]
MOVZX EAX,word ptr [RAX + 0x12]
BT EAX,0x4
ADC EDX,0x0
CMP word ptr [RBP + -0x32],0x7f
JC 0x0016f0d9
MOV byte ptr [R13 + 0x1],DL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],DH
JMP 0x0016ef39
LAB_0016f096:
LEA RAX,[R13 + 0x1]
MOV CL,byte ptr [R14]
MOV qword ptr [RBP + -0x30],RAX
MOV byte ptr [R13],CL
CMP word ptr [RBP + -0x32],0x7f
JC 0x0016f0c2
MOV AL,byte ptr [R14 + 0x1]
MOV RCX,qword ptr [RBP + -0x30]
MOV ESI,EDX
LEA RDX,[RCX + 0x1]
MOV qword ptr [RBP + -0x30],RDX
MOV EDX,ESI
MOV byte ptr [RCX],AL
LAB_0016f0c2:
CMP EDX,0xfe
MOV R9,qword ptr [RBP + -0x48]
JA 0x0016f0e2
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],DL
JMP 0x0016ef3d
LAB_0016f0d9:
MOV byte ptr [R13],DL
JMP 0x0016ef39
LAB_0016f0e2:
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0xff
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x2],DL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x1],DH
JMP 0x0016ef3d
|
int remove_key(long param_1,ulong param_2,int param_3,byte *param_4,long param_5,byte *param_6,
int8 *param_7,long param_8)
{
ushort uVar1;
ushort uVar2;
int8 uVar3;
uint uVar4;
uint uVar5;
byte bVar6;
uint uVar7;
long lVar8;
byte *pbVar9;
uint uVar10;
byte *pbVar11;
byte bVar12;
int iVar13;
int iVar14;
long local_70;
long local_68;
byte *local_50;
int8 local_48;
ushort local_3a;
byte *local_38;
*(byte **)(param_8 + 0x18) = param_4;
*(int4 *)(param_8 + 0x40) = 0;
local_38 = param_4;
if (((param_2 & 2) == 0) && ((*(ushort *)(param_1 + 0xa2) & 0x2e) == 0)) {
iVar13 = (uint)*(ushort *)(param_1 + 0xaa) + param_3;
if (param_3 != 0 && param_7 != (int8 *)0x0) {
uVar3 = _ma_kpos(param_3,param_4 + iVar13);
*param_7 = uVar3;
}
goto LAB_0016ef9b;
}
local_70 = param_5;
local_68 = param_1;
local_50 = param_6;
iVar13 = (**(code **)(param_1 + 0xe0))(&local_70,param_2,param_3,&local_38);
if (iVar13 == 0) {
return 0;
}
local_48 = param_5;
if (param_3 != 0 && param_7 != (int8 *)0x0) {
uVar3 = _ma_kpos(param_3,local_38);
*param_7 = uVar3;
}
pbVar11 = local_38;
iVar13 = (int)local_50;
if (local_38 != local_50) {
iVar13 = (int)local_38;
if ((*(byte *)(param_1 + 0xa2) & 0x20) == 0) {
uVar1 = *(ushort *)(*(long *)(param_1 + 0xc0) + 0x12);
if (((uVar1 & 2) != 0) && (bVar6 = *local_38, (char)bVar6 < '\0')) {
uVar2 = *(ushort *)(*(long *)(param_1 + 0xc0) + 0x14);
if (uVar2 < 0x7f) {
bVar12 = *param_4;
uVar10 = bVar12 & 0x7f;
if ((bVar12 & 0x7f) != 0) {
uVar4 = bVar6 & 0x7f;
iVar14 = 1;
lVar8 = 1;
goto LAB_0016ef6a;
}
}
else {
bVar12 = *param_4;
uVar10 = (bVar12 & 0x7f) << 8 | (uint)param_4[1];
if (uVar10 != 0) {
uVar4 = (bVar6 & 0x7f) << 8 | (uint)local_38[1];
iVar14 = 2;
lVar8 = 2;
LAB_0016ef6a:
local_38 = local_38 + lVar8;
uVar7 = 0;
if ((char)bVar12 < '\0') {
uVar7 = uVar10;
}
pbVar11 = (byte *)(local_48 + (ulong)((uVar1 >> 4 & 1) != 0));
uVar10 = (uint)*pbVar11;
if (*pbVar11 == 0xff) {
uVar10 = (uint)(ushort)(*(ushort *)(pbVar11 + 1) << 8 | *(ushort *)(pbVar11 + 1) >> 8)
;
lVar8 = 3;
}
else {
lVar8 = 1;
}
if (uVar4 == 0) {
local_48 = (ulong)local_48._4_4_ << 0x20;
}
else {
if (*local_38 == 0xff) {
uVar10 = (uint)(ushort)(*(ushort *)(local_38 + 1) << 8 |
*(ushort *)(local_38 + 1) >> 8);
pbVar9 = local_38 + 3;
}
else {
pbVar9 = local_38 + 1;
uVar10 = (uint)*local_38;
}
local_48 = CONCAT44(local_48._4_4_,uVar10);
uVar10 = uVar4;
local_38 = pbVar9;
}
uVar4 = uVar10 - uVar7;
local_3a = uVar2;
if (uVar7 <= uVar10) {
memmove(local_38 + -(ulong)uVar4,pbVar11 + (ulong)uVar7 + lVar8,(ulong)uVar4);
uVar7 = (int)local_48 + uVar4;
iVar13 = (0xfe < uVar7) + 1 + (uint)(0xfe < uVar7);
if (-1 < (char)bVar12) {
iVar13 = 0;
}
uVar10 = iVar14 + uVar4 + iVar13;
pbVar11 = local_38 + -(ulong)uVar10;
if ((char)bVar12 < '\0') {
*pbVar11 = *param_4;
local_38 = pbVar11 + 1;
if (0x7e < local_3a) {
local_38 = pbVar11 + 2;
pbVar11[1] = param_4[1];
}
if (uVar7 < 0xff) {
*local_38 = (byte)uVar7;
}
else {
*local_38 = 0xff;
local_38[2] = (byte)uVar7;
local_38[1] = (byte)(uVar7 >> 8);
}
}
else {
iVar13 = uVar7 + ((*(ushort *)(*(long *)(param_1 + 0xc0) + 0x12) >> 4 & 1) != 0);
bVar6 = (byte)iVar13;
local_38 = pbVar11;
if (local_3a < 0x7f) {
*pbVar11 = bVar6;
}
else {
pbVar11[1] = bVar6;
*pbVar11 = (byte)((uint)iVar13 >> 8);
}
}
goto LAB_0016ef3d;
}
}
}
}
}
else {
if (*local_38 == 0xff) {
uVar10 = (uint)(ushort)(*(ushort *)(local_38 + 1) << 8 | *(ushort *)(local_38 + 1) >> 8);
local_38 = local_38 + 3;
lVar8 = 3;
}
else {
uVar10 = (uint)*local_38;
lVar8 = 1;
local_38 = local_38 + 1;
}
uVar4 = (uint)*param_4;
if (*param_4 == 0xff) {
uVar4 = (uint)(ushort)(*(ushort *)(param_4 + 1) << 8 | *(ushort *)(param_4 + 1) >> 8);
uVar7 = 3;
}
else {
uVar7 = 1;
}
uVar5 = uVar10 - uVar4;
if (uVar4 <= uVar10 && uVar5 != 0) {
uVar10 = uVar5 + uVar7;
local_38 = pbVar11 + (lVar8 - (ulong)uVar10);
if (uVar4 < 0xff) {
*local_38 = (byte)uVar4;
}
else {
*local_38 = 0xff;
local_38[2] = (byte)uVar4;
local_38[1] = (byte)(uVar4 >> 8);
}
memmove(local_38 + uVar7,(void *)(local_48 + (ulong)uVar4),(ulong)uVar5);
pbVar11 = local_38;
LAB_0016ef3d:
iVar13 = (int)pbVar11;
*(uint *)(param_8 + 0x40) = uVar10;
}
}
}
iVar13 = iVar13 - (int)param_4;
param_6 = local_50;
LAB_0016ef9b:
memmove(param_4,param_4 + iVar13,(ulong)(uint)((int)param_6 - (int)(param_4 + iVar13)));
*(int *)(param_8 + 0x44) = iVar13;
return iVar13;
}
| |
50,068 | Gis_line_string::get_data_size() const | eloqsql/sql/spatial.cc | uint32 Gis_line_string::get_data_size() const
{
uint32 n_points;
if (no_data(m_data, 4))
return GET_SIZE_ERROR;
n_points= uint4korr(m_data);
if (not_enough_points(m_data + 4, n_points))
return GET_SIZE_ERROR;
return 4 + n_points * POINT_DATA_SIZE;
} | O0 | cpp | Gis_line_string::get_data_size() const:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq 0x8(%rdi), %rsi
movl $0x4, %edx
callq 0xcc5470
testb $0x1, %al
jne 0xdafd48
jmp 0xdafd51
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xdafd8b
movq -0x20(%rbp), %rdi
movq 0x8(%rdi), %rax
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq 0x8(%rdi), %rsi
addq $0x4, %rsi
movl -0x14(%rbp), %edx
xorl %ecx, %ecx
callq 0xdb7460
testb $0x1, %al
jne 0xdafd76
jmp 0xdafd7f
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xdafd8b
movl -0x14(%rbp), %eax
shll $0x4, %eax
addl $0x4, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZNK15Gis_line_string13get_data_sizeEv:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]; this
mov [rbp+var_20], rdi
mov rsi, [rdi+8]; char *
mov edx, 4; unsigned __int64
call _ZNK8Geometry7no_dataEPKcm; Geometry::no_data(char const*,ulong)
test al, 1
jnz short loc_DAFD48
jmp short loc_DAFD51
loc_DAFD48:
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_DAFD8B
loc_DAFD51:
mov rdi, [rbp+var_20]; this
mov rax, [rdi+8]
mov eax, [rax]
mov [rbp+var_14], eax
mov rsi, [rdi+8]
add rsi, 4; char *
mov edx, [rbp+var_14]; unsigned int
xor ecx, ecx; unsigned int
call _ZNK8Geometry17not_enough_pointsEPKcjj; Geometry::not_enough_points(char const*,uint,uint)
test al, 1
jnz short loc_DAFD76
jmp short loc_DAFD7F
loc_DAFD76:
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_DAFD8B
loc_DAFD7F:
mov eax, [rbp+var_14]
shl eax, 4
add eax, 4
mov [rbp+var_4], eax
loc_DAFD8B:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long Gis_line_string::get_data_size(Gis_line_string *this)
{
unsigned int v2; // [rsp+Ch] [rbp-14h]
if ( Geometry::no_data(this, *((const char **)this + 1), 4LL) )
{
return (unsigned int)-1;
}
else
{
v2 = **((_DWORD **)this + 1);
if ( (Geometry::not_enough_points(this, (const char *)(*((_QWORD *)this + 1) + 4LL), v2, 0) & 1) != 0 )
return (unsigned int)-1;
else
return 16 * v2 + 4;
}
}
| Item_func_numhybrid:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RDI
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00d74830
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x1a75d90]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RSP,0x20
POP RBP
RET
|
/* Item_func_numhybrid::Item_func_numhybrid(Item_func_numhybrid const&) */
void __thiscall
Item_func_numhybrid::Item_func_numhybrid(Item_func_numhybrid *this,Item_func_numhybrid *param_1)
{
Item_func_hybrid_field_type::Item_func_hybrid_field_type
((Item_func_hybrid_field_type *)this,(Item_func_hybrid_field_type *)param_1);
*(int ***)this = &PTR__Item_func_numhybrid_01a75da0;
return;
}
| |
50,069 | my_scan_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_scan_utf32(CHARSET_INFO *cs,
const char *str, const char *end, int sequence_type)
{
const char *str0= str;
switch (sequence_type)
{
case MY_SEQ_SPACES:
for ( ; str < end; )
{
my_wc_t wc;
int res= my_utf32_uni(cs, &wc, (uchar*) str, (uchar*) end);
if (res < 0 || wc != ' ')
break;
str+= res;
}
return (size_t) (str - str0);
case MY_SEQ_NONSPACES:
DBUG_ASSERT(0); /* Not implemented */
/* pass through */
default:
return 0;
}
} | O3 | c | my_scan_utf32:
cmpl $0x2, %ecx
jne 0xcbd75
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rcx, %rax
cmpq %rdx, %rcx
jae 0xcbd70
leaq 0x4(%rax), %rcx
cmpq %rdx, %rcx
ja 0xcbd70
movzbl (%rax), %ecx
shll $0x18, %ecx
movzbl 0x1(%rax), %edi
shll $0x10, %edi
orl %ecx, %edi
xorl %ecx, %ecx
cmpl $0x110000, %edi # imm = 0x110000
setb %cl
movzwl 0x2(%rax), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
orl %edi, %r8d
leaq (%rax,%rcx,4), %rcx
cmpl $0x20, %r8d
je 0xcbd2a
subq %rsi, %rax
popq %rbp
retq
xorl %eax, %eax
retq
| my_scan_utf32:
cmp ecx, 2
jnz short loc_CBD75
push rbp
mov rbp, rsp
mov rcx, rsi
loc_CBD2A:
mov rax, rcx
cmp rcx, rdx
jnb short loc_CBD70
lea rcx, [rax+4]
cmp rcx, rdx
ja short loc_CBD70
movzx ecx, byte ptr [rax]
shl ecx, 18h
movzx edi, byte ptr [rax+1]
shl edi, 10h
or edi, ecx
xor ecx, ecx
cmp edi, offset unk_110000
setb cl
movzx r8d, word ptr [rax+2]
rol r8w, 8
movzx r8d, r8w
or r8d, edi
lea rcx, [rax+rcx*4]
cmp r8d, 20h ; ' '
jz short loc_CBD2A
loc_CBD70:
sub rax, rsi
pop rbp
retn
loc_CBD75:
xor eax, eax
retn
| long long my_scan_utf32(long long a1, unsigned __int8 *a2, unsigned long long a3, int a4)
{
unsigned __int8 *v4; // rcx
unsigned __int8 *v5; // rax
unsigned int v6; // edi
if ( a4 != 2 )
return 0LL;
v4 = a2;
do
{
v5 = v4;
if ( (unsigned long long)v4 >= a3 )
break;
if ( (unsigned long long)(v4 + 4) > a3 )
break;
v6 = (*v4 << 24) | (v4[1] << 16);
v4 += 4 * (v6 < (unsigned int)&unk_110000);
}
while ( (v6 | (unsigned __int16)__ROL2__(*((_WORD *)v5 + 1), 8)) == 0x20 );
return v5 - a2;
}
| my_scan_utf32:
CMP ECX,0x2
JNZ 0x001cbd75
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
LAB_001cbd2a:
MOV RAX,RCX
CMP RCX,RDX
JNC 0x001cbd70
LEA RCX,[RAX + 0x4]
CMP RCX,RDX
JA 0x001cbd70
MOVZX ECX,byte ptr [RAX]
SHL ECX,0x18
MOVZX EDI,byte ptr [RAX + 0x1]
SHL EDI,0x10
OR EDI,ECX
XOR ECX,ECX
CMP EDI,0x110000
SETC CL
MOVZX R8D,word ptr [RAX + 0x2]
ROL R8W,0x8
MOVZX R8D,R8W
OR R8D,EDI
LEA RCX,[RAX + RCX*0x4]
CMP R8D,0x20
JZ 0x001cbd2a
LAB_001cbd70:
SUB RAX,RSI
POP RBP
RET
LAB_001cbd75:
XOR EAX,EAX
RET
|
long my_scan_utf32(int8 param_1,byte *param_2,byte *param_3,int param_4)
{
byte *pbVar1;
byte *pbVar2;
uint uVar3;
pbVar1 = param_2;
if (param_4 != 2) {
return 0;
}
do {
pbVar2 = pbVar1;
if ((param_3 <= pbVar2) || (param_3 < pbVar2 + 4)) break;
uVar3 = (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18;
pbVar1 = pbVar2 + (ulong)(uVar3 < 0x110000) * 4;
} while (((ushort)(*(ushort *)(pbVar2 + 2) << 8 | *(ushort *)(pbVar2 + 2) >> 8) | uVar3) == 0x20);
return (long)pbVar2 - (long)param_2;
}
| |
50,070 | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | void destroy(value_t t)
{
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
current_item.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O0 | cpp | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t):
subq $0x128, %rsp # imm = 0x128
movb %sil, %al
movq %rdi, 0x120(%rsp)
movb %al, 0x11f(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x50(%rsp)
cmpb $0x2, 0x11f(%rsp)
je 0xc90be
cmpb $0x1, 0x11f(%rsp)
jne 0xc9427
leaq 0x100(%rsp), %rdi
callq 0xc9620
cmpb $0x2, 0x11f(%rsp)
jne 0xc9195
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xc9740
movq %rax, %rsi
leaq 0x100(%rsp), %rdi
callq 0xc9630
jmp 0xc90f8
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xc97d0
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0xe8(%rsp)
movq (%rax), %rdi
callq 0xc9800
movq %rax, 0xe0(%rsp)
leaq 0x100(%rsp), %rdi
callq 0xc9830
movq %rax, 0x48(%rsp)
jmp 0xc9139
movq 0x48(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xe8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
callq 0xc9760
movq %rax, 0x40(%rsp)
jmp 0xc916a
movq 0x40(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0xc924c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0xc9415
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xc9860
movq %rax, %rsi
leaq 0x100(%rsp), %rdi
callq 0xc9630
jmp 0xc91b4
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rdi
callq 0xc9870
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rdi
callq 0xc98a0
movq %rax, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xc98d0
testb $0x1, %al
jne 0xc9209
jmp 0xc924a
leaq 0xc0(%rsp), %rdi
callq 0xc98f0
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rsi
addq $0x20, %rsi
leaq 0x100(%rsp), %rdi
callq 0xc9920
jmp 0xc9239
jmp 0xc923b
leaq 0xc0(%rsp), %rdi
callq 0xc9950
jmp 0xc91ee
jmp 0xc924c
jmp 0xc924e
leaq 0x100(%rsp), %rdi
callq 0xc9980
xorb $-0x1, %al
testb $0x1, %al
jne 0xc9266
jmp 0xc9406
leaq 0x100(%rsp), %rdi
callq 0xc99d0
movq %rax, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xc9a10
leaq 0x100(%rsp), %rdi
callq 0xc9aa0
leaq 0xa0(%rsp), %rdi
callq 0xc9ac0
testb $0x1, %al
jne 0xc92a6
jmp 0xc935a
movq 0xa8(%rsp), %rdi
callq 0xc97d0
movq %rax, 0x98(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xc9800
movq %rax, 0x90(%rsp)
leaq 0x100(%rsp), %rdi
callq 0xc9830
movq %rax, 0x38(%rsp)
jmp 0xc92e4
movq 0x38(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0xc9760
movq %rax, 0x30(%rsp)
jmp 0xc9315
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xc9ae0
jmp 0xc93f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0xc35b0
jmp 0xc9415
leaq 0xa0(%rsp), %rdi
callq 0xc9b00
testb $0x1, %al
jne 0xc9370
jmp 0xc93f2
movq 0xa8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0xc9870
movq %rax, 0x70(%rsp)
movq 0x78(%rsp), %rdi
callq 0xc98a0
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xc98d0
testb $0x1, %al
jne 0xc93b0
jmp 0xc93e5
leaq 0x70(%rsp), %rdi
callq 0xc98f0
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rsi
addq $0x20, %rsi
leaq 0x100(%rsp), %rdi
callq 0xc9920
jmp 0xc93d7
jmp 0xc93d9
leaq 0x70(%rsp), %rdi
callq 0xc9950
jmp 0xc939b
movq 0xa8(%rsp), %rdi
callq 0xc9b20
jmp 0xc93f4
leaq 0xa0(%rsp), %rdi
callq 0xc35b0
jmp 0xc924e
leaq 0x100(%rsp), %rdi
callq 0xc9b30
jmp 0xc9427
leaq 0x100(%rsp), %rdi
callq 0xc9b30
jmp 0xc9606
movzbl 0x11f(%rsp), %eax
movq %rax, 0x28(%rsp)
subq $0x9, %rax
ja 0xc95fc
movq 0x28(%rsp), %rax
leaq 0xb907e(%rip), %rcx # 0x1824c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xc9b90
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rdi
movq (%rax), %rsi
callq 0xc9ba0
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xc9bd0
jmp 0xc948d
leaq 0x5f(%rsp), %rdi
callq 0xc9c00
jmp 0xc95fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5f(%rsp), %rdi
callq 0xc9c00
jmp 0xc9606
leaq 0x5e(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xc9c10
movq 0x50(%rsp), %rax
movq 0x18(%rsp), %rdi
movq (%rax), %rsi
callq 0xc9c20
movq 0x50(%rsp), %rax
movq 0x18(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xc9c50
jmp 0xc94f9
leaq 0x5e(%rsp), %rdi
callq 0xc9c80
jmp 0xc95fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5e(%rsp), %rdi
callq 0xc9c80
jmp 0xc9606
leaq 0x5d(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x561c0
movq 0x50(%rsp), %rax
movq 0x10(%rsp), %rdi
movq (%rax), %rsi
callq 0x7db80
movq 0x50(%rsp), %rax
movq 0x10(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x518e0
jmp 0xc9565
leaq 0x5d(%rsp), %rdi
callq 0x99fc0
jmp 0xc95fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5d(%rsp), %rdi
callq 0x99fc0
jmp 0xc9606
leaq 0x5c(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xc9c90
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rdi
movq (%rax), %rsi
callq 0xc9ca0
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xc9cd0
jmp 0xc95ce
leaq 0x5c(%rsp), %rdi
callq 0xc9d00
jmp 0xc95fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5c(%rsp), %rdi
callq 0xc9d00
jmp 0xc9606
jmp 0xc95fc
jmp 0xc95fe
addq $0x128, %rsp # imm = 0x128
retq
movq 0xf8(%rsp), %rdi
callq 0xbd30
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE10json_value7destroyENS0_6detail7value_tE:
sub rsp, 128h
mov al, sil
mov [rsp+128h+var_8], rdi
mov [rsp+128h+var_9], al
mov rax, [rsp+128h+var_8]
mov [rsp+128h+var_D8], rax
cmp [rsp+128h+var_9], 2
jz short loc_C90BE
cmp [rsp+128h+var_9], 1
jnz loc_C9427
loc_C90BE:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EEC2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::vector(void)
cmp [rsp+128h+var_9], 2
jnz loc_C9195
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::size(void)
mov rsi, rax
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
jmp short $+2
loc_C90F8:
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::begin(void)
mov rcx, rax
mov rax, [rsp+128h+var_D8]
mov [rsp+128h+var_40], rcx
mov rdi, [rax]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE3endEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::end(void)
mov [rsp+128h+var_48], rax
lea rdi, [rsp+128h+var_28]
call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>(std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>&)
mov [rsp+128h+var_E0], rax
jmp short $+2
loc_C9139:
mov rax, [rsp+128h+var_E0]
mov [rsp+128h+var_50], rax
mov rdi, [rsp+128h+var_40]
mov rsi, [rsp+128h+var_48]
mov rdx, [rsp+128h+var_50]
call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>)
mov [rsp+128h+var_E8], rax
jmp short $+2
loc_C916A:
mov rax, [rsp+128h+var_E8]
mov [rsp+128h+var_58], rax
jmp loc_C924C
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
jmp loc_C9415
loc_C9195:
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE4sizeEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::size(void)
mov rsi, rax
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
jmp short $+2
loc_C91B4:
mov rax, [rsp+128h+var_D8]
mov rax, [rax]
mov [rsp+128h+var_60], rax
mov rdi, [rsp+128h+var_60]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE5beginEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::begin(void)
mov [rsp+128h+var_68], rax
mov rdi, [rsp+128h+var_60]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE3endEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::end(void)
mov [rsp+128h+var_70], rax
loc_C91EE:
lea rdi, [rsp+128h+var_68]
lea rsi, [rsp+128h+var_70]
call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEESK_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>> const&,std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>> const&)
test al, 1
jnz short loc_C9209
jmp short loc_C924A
loc_C9209:
lea rdi, [rsp+128h+var_68]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEEdeEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::operator*(void)
mov [rsp+128h+var_78], rax
mov rsi, [rsp+128h+var_78]
add rsi, 20h ; ' '
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE9push_backEOSD_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::push_back(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>&&)
jmp short $+2
loc_C9239:
jmp short $+2
loc_C923B:
lea rdi, [rsp+128h+var_68]
call _ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEEppEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::operator++(void)
jmp short loc_C91EE
loc_C924A:
jmp short $+2
loc_C924C:
jmp short $+2
loc_C924E:
lea rdi, [rsp+128h+var_28]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_C9266
jmp loc_C9406
loc_C9266:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::back(void)
mov rsi, rax
lea rdi, [rsp+128h+var_88]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEEC2EOSD_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::basic_json(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>&&)
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::pop_back(void)
lea rdi, [rsp+128h+var_88]
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE8is_arrayEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::is_array(void)
test al, 1
jnz short loc_C92A6
jmp loc_C935A
loc_C92A6:
mov rdi, [rsp+128h+var_80]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE5beginEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::begin(void)
mov [rsp+128h+var_90], rax
mov rdi, [rsp+128h+var_80]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE3endEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::end(void)
mov [rsp+128h+var_98], rax
lea rdi, [rsp+128h+var_28]
call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>(std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>&)
mov [rsp+128h+var_F0], rax
jmp short $+2
loc_C92E4:
mov rax, [rsp+128h+var_F0]
mov [rsp+128h+var_A0], rax
mov rdi, [rsp+128h+var_90]
mov rsi, [rsp+128h+var_98]
mov rdx, [rsp+128h+var_A0]
call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>)
mov [rsp+128h+var_F8], rax
jmp short $+2
loc_C9315:
mov rax, [rsp+128h+var_F8]
mov [rsp+128h+var_A8], rax
mov rdi, [rsp+128h+var_80]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE5clearEv; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::clear(void)
jmp loc_C93F4
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_98]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
jmp loc_C9415
loc_C935A:
lea rdi, [rsp+128h+var_88]
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9is_objectEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::is_object(void)
test al, 1
jnz short loc_C9370
jmp loc_C93F2
loc_C9370:
mov rax, [rsp+128h+var_80]
mov [rsp+128h+var_B0], rax
mov rdi, [rsp+128h+var_B0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE5beginEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::begin(void)
mov [rsp+128h+var_B8], rax
mov rdi, [rsp+128h+var_B0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE3endEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::end(void)
mov [rsp+128h+var_C0], rax
loc_C939B:
lea rdi, [rsp+128h+var_B8]
lea rsi, [rsp+128h+var_C0]
call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEESK_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>> const&,std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>> const&)
test al, 1
jnz short loc_C93B0
jmp short loc_C93E5
loc_C93B0:
lea rdi, [rsp+128h+var_B8]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEEdeEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::operator*(void)
mov [rsp+128h+var_C8], rax
mov rsi, [rsp+128h+var_C8]
add rsi, 20h ; ' '
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE9push_backEOSD_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::push_back(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>&&)
jmp short $+2
loc_C93D7:
jmp short $+2
loc_C93D9:
lea rdi, [rsp+128h+var_B8]
call _ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEEEppEv; std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::operator++(void)
jmp short loc_C939B
loc_C93E5:
mov rdi, [rsp+128h+var_80]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEE5clearEv; std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::clear(void)
loc_C93F2:
jmp short $+2
loc_C93F4:
lea rdi, [rsp+128h+var_88]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
jmp loc_C924E
loc_C9406:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
jmp short loc_C9427
loc_C9415:
lea rdi, [rsp+arg_F8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
jmp loc_C9606
loc_C9427:
movzx eax, [rsp+128h+var_9]
mov [rsp+128h+var_100], rax
sub rax, 9; switch 10 cases
ja def_C9451; jumptable 00000000000C9451 default case
mov rax, [rsp+128h+var_100]
lea rcx, jpt_C9451
movsxd rax, ds:(jpt_C9451 - 1824C8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C9453:
lea rdi, [rsp+128h+var_C9]; jumptable 00000000000C9451 case 1
mov [rsp+128h+var_108], rdi
call _ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEEEC2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_108]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS0_St6vectorS6_blmdSaNS8_14adl_serializerESA_IhSaIhEEEESt4lessIvESaISt4pairIKS6_SE_EEEEE7destroyISL_EEvRSM_PT_; std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::destroy<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>(std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>&,std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>> *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_108]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS0_St6vectorS6_blmdSaNS8_14adl_serializerESA_IhSaIhEEEESt4lessIvESaISt4pairIKS6_SE_EEEEE10deallocateERSM_PSL_m; std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::deallocate(std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>&,std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>*,ulong)
jmp short $+2
loc_C948D:
lea rdi, [rsp+128h+var_C9]
call _ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEEED2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::~allocator()
jmp loc_C95FE
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_57]
call _ZNSaISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_210basic_jsonIS_St6vectorS5_blmdSaNS7_14adl_serializerES9_IhSaIhEEEESt4lessIvESaISt4pairIKS5_SD_EEEED2Ev; std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::~allocator()
jmp loc_C9606
loc_C94BF:
lea rdi, [rsp+128h+var_CA]; jumptable 00000000000C9451 case 2
mov [rsp+128h+var_110], rdi
call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EEEC2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_110]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEEESaISE_EEEE7destroyISG_EEvRSH_PT_; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::destroy<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>(std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>&,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>> *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_110]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEEESaISE_EEEE10deallocateERSH_PSG_m; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::deallocate(std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>&,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>*,ulong)
jmp short $+2
loc_C94F9:
lea rdi, [rsp+128h+var_CA]
call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EEED2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::~allocator()
jmp loc_C95FE
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_56]
call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EEED2Ev; std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>::~allocator()
jmp loc_C9606
loc_C952B:
lea rdi, [rsp+128h+var_CB]; jumptable 00000000000C9451 case 3
mov [rsp+128h+var_118], rdi
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_118]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_118]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong)
jmp short $+2
loc_C9565:
lea rdi, [rsp+128h+var_CB]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_C95FE
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_55]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp short loc_C9606
loc_C9594:
lea rdi, [rsp+128h+var_CC]; jumptable 00000000000C9451 case 8
mov [rsp+128h+var_120], rdi
call _ZNSaIN8nlohmann16json_abi_v3_11_227byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_120]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_227byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>> *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_120]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_227byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>*,ulong)
jmp short $+2
loc_C95CE:
lea rdi, [rsp+128h+var_CC]
call _ZNSaIN8nlohmann16json_abi_v3_11_227byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_C95FE
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_54]
call _ZNSaIN8nlohmann16json_abi_v3_11_227byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_C9606
loc_C95FA:
jmp short $+2; jumptable 00000000000C9451 cases 0,4-7,9
def_C9451:
jmp short $+2; jumptable 00000000000C9451 default case
loc_C95FE:
add rsp, 128h
retn
loc_C9606:
mov rdi, [rsp+arg_F0]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::json_value::destroy(
long long *a1,
unsigned __int8 a2)
{
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long result; // rax
long long v6; // rcx
long long v7; // r8
long long v8; // r9
char v9; // [rsp+5Ch] [rbp-CCh] BYREF
char v10; // [rsp+5Dh] [rbp-CBh] BYREF
char v11; // [rsp+5Eh] [rbp-CAh] BYREF
char v12; // [rsp+5Fh] [rbp-C9h] BYREF
long long v13; // [rsp+60h] [rbp-C8h]
long long v14; // [rsp+68h] [rbp-C0h] BYREF
long long v15; // [rsp+70h] [rbp-B8h] BYREF
long long v16; // [rsp+78h] [rbp-B0h]
long long v17; // [rsp+80h] [rbp-A8h]
long long v18; // [rsp+88h] [rbp-A0h]
long long v19; // [rsp+90h] [rbp-98h]
long long v20; // [rsp+98h] [rbp-90h]
_BYTE v21[8]; // [rsp+A0h] [rbp-88h] BYREF
long long v22; // [rsp+A8h] [rbp-80h]
long long v23; // [rsp+B0h] [rbp-78h]
long long v24; // [rsp+B8h] [rbp-70h] BYREF
long long v25; // [rsp+C0h] [rbp-68h] BYREF
long long v26; // [rsp+C8h] [rbp-60h]
long long v27; // [rsp+D0h] [rbp-58h]
long long v28; // [rsp+D8h] [rbp-50h]
long long v29; // [rsp+E0h] [rbp-48h]
long long v30; // [rsp+E8h] [rbp-40h]
_BYTE v31[31]; // [rsp+100h] [rbp-28h] BYREF
unsigned __int8 v32; // [rsp+11Fh] [rbp-9h]
long long *v33; // [rsp+120h] [rbp-8h]
v33 = a1;
v32 = a2;
if ( a2 == 2 || v32 == 1 )
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::vector(v31);
if ( v32 == 2 )
{
v2 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::size(*a1);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
v31,
v2);
v30 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::begin(*a1);
v29 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end(*a1);
v28 = std::back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>(v31);
v27 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>(
v30,
v29,
v28);
}
else
{
v3 = std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::size(*a1);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
v31,
v3);
v26 = *a1;
v25 = std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::begin(v26);
v24 = std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end(v26);
while ( (std::operator!=(&v25, &v24) & 1) != 0 )
{
v23 = std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::operator*(&v25);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::push_back(
v31,
v23 + 32);
std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::operator++(&v25);
}
}
while ( (std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::empty(v31) & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::back(v31);
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::basic_json(
v21,
v4);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::pop_back(v31);
if ( (nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::is_array(v21) & 1) != 0 )
{
v20 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::begin(v22);
v19 = std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end(v22);
v18 = std::back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>(v31);
v17 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>> *,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>(
v20,
v19,
v18);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::clear(v22);
}
else if ( (nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::is_object(v21) & 1) != 0 )
{
v16 = v22;
v15 = std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::begin(v22);
v14 = std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::end(v16);
while ( (std::operator!=(&v15, &v14) & 1) != 0 )
{
v13 = std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::operator*(&v15);
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::push_back(
v31,
v13 + 32);
std::_Rb_tree_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::operator++(&v15);
}
std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::clear(v22);
}
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v21);
}
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::~vector(v31);
}
result = v32;
switch ( v32 )
{
case 1u:
std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::allocator();
std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::destroy<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>(
&v12,
*a1);
std::allocator_traits<std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::deallocate(
&v12,
*a1,
1LL);
result = std::allocator<std::map<std::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::~allocator(&v12);
break;
case 2u:
std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::allocator();
std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::destroy<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>(
&v11,
*a1);
std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::deallocate(
&v11,
*a1,
1LL);
result = std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>::~allocator(&v11);
break;
case 3u:
std::allocator<std::string>::allocator((long long)&v10);
std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)&v10, *a1);
std::allocator_traits<std::allocator<std::string>>::deallocate((long long)&v10, *a1, 1LL, v6, v7, v8);
result = std::allocator<std::string>::~allocator((long long)&v10);
break;
case 8u:
std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned char>>>::allocator();
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned char>>>(
&v9,
*a1);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate(
&v9,
*a1,
1LL);
result = std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator(&v9);
break;
default:
return result;
}
return result;
}
| destroy:
SUB RSP,0x128
MOV AL,SIL
MOV qword ptr [RSP + 0x120],RDI
MOV byte ptr [RSP + 0x11f],AL
MOV RAX,qword ptr [RSP + 0x120]
MOV qword ptr [RSP + 0x50],RAX
CMP byte ptr [RSP + 0x11f],0x2
JZ 0x001c90be
CMP byte ptr [RSP + 0x11f],0x1
JNZ 0x001c9427
LAB_001c90be:
LEA RDI,[RSP + 0x100]
CALL 0x001c9620
CMP byte ptr [RSP + 0x11f],0x2
JNZ 0x001c9195
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001c9740
MOV RSI,RAX
LAB_001c90e9:
LEA RDI,[RSP + 0x100]
CALL 0x001c9630
JMP 0x001c90f8
LAB_001c90f8:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001c97d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0xe8],RCX
MOV RDI,qword ptr [RAX]
CALL 0x001c9800
MOV qword ptr [RSP + 0xe0],RAX
LEA RDI,[RSP + 0x100]
CALL 0x001c9830
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001c9139
LAB_001c9139:
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0xd8],RAX
MOV RDI,qword ptr [RSP + 0xe8]
MOV RSI,qword ptr [RSP + 0xe0]
MOV RDX,qword ptr [RSP + 0xd8]
CALL 0x001c9760
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001c916a
LAB_001c916a:
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0xd0],RAX
JMP 0x001c924c
LAB_001c9195:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001c9860
MOV RSI,RAX
LEA RDI,[RSP + 0x100]
CALL 0x001c9630
JMP 0x001c91b4
LAB_001c91b4:
MOV RAX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xc8],RAX
MOV RDI,qword ptr [RSP + 0xc8]
CALL 0x001c9870
MOV qword ptr [RSP + 0xc0],RAX
MOV RDI,qword ptr [RSP + 0xc8]
CALL 0x001c98a0
MOV qword ptr [RSP + 0xb8],RAX
LAB_001c91ee:
LEA RDI,[RSP + 0xc0]
LEA RSI,[RSP + 0xb8]
CALL 0x001c98d0
TEST AL,0x1
JNZ 0x001c9209
JMP 0x001c924a
LAB_001c9209:
LEA RDI,[RSP + 0xc0]
CALL 0x001c98f0
MOV qword ptr [RSP + 0xb0],RAX
MOV RSI,qword ptr [RSP + 0xb0]
ADD RSI,0x20
LEA RDI,[RSP + 0x100]
CALL 0x001c9920
JMP 0x001c9239
LAB_001c9239:
JMP 0x001c923b
LAB_001c923b:
LEA RDI,[RSP + 0xc0]
CALL 0x001c9950
JMP 0x001c91ee
LAB_001c924a:
JMP 0x001c924c
LAB_001c924c:
JMP 0x001c924e
LAB_001c924e:
LEA RDI,[RSP + 0x100]
CALL 0x001c9980
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c9266
JMP 0x001c9406
LAB_001c9266:
LEA RDI,[RSP + 0x100]
CALL 0x001c99d0
MOV RSI,RAX
LEA RDI,[RSP + 0xa0]
CALL 0x001c9a10
LEA RDI,[RSP + 0x100]
CALL 0x001c9aa0
LEA RDI,[RSP + 0xa0]
CALL 0x001c9ac0
TEST AL,0x1
JNZ 0x001c92a6
JMP 0x001c935a
LAB_001c92a6:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001c97d0
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001c9800
MOV qword ptr [RSP + 0x90],RAX
LAB_001c92d0:
LEA RDI,[RSP + 0x100]
CALL 0x001c9830
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001c92e4
LAB_001c92e4:
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0x98]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x88]
CALL 0x001c9760
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001c9315
LAB_001c9315:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x80],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001c9ae0
JMP 0x001c93f4
LAB_001c935a:
LEA RDI,[RSP + 0xa0]
CALL 0x001c9b00
TEST AL,0x1
JNZ 0x001c9370
JMP 0x001c93f2
LAB_001c9370:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001c9870
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001c98a0
MOV qword ptr [RSP + 0x68],RAX
LAB_001c939b:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x68]
CALL 0x001c98d0
TEST AL,0x1
JNZ 0x001c93b0
JMP 0x001c93e5
LAB_001c93b0:
LEA RDI,[RSP + 0x70]
CALL 0x001c98f0
MOV qword ptr [RSP + 0x60],RAX
MOV RSI,qword ptr [RSP + 0x60]
ADD RSI,0x20
LEA RDI,[RSP + 0x100]
CALL 0x001c9920
JMP 0x001c93d7
LAB_001c93d7:
JMP 0x001c93d9
LAB_001c93d9:
LEA RDI,[RSP + 0x70]
CALL 0x001c9950
JMP 0x001c939b
LAB_001c93e5:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001c9b20
LAB_001c93f2:
JMP 0x001c93f4
LAB_001c93f4:
LEA RDI,[RSP + 0xa0]
CALL 0x001c35b0
JMP 0x001c924e
LAB_001c9406:
LEA RDI,[RSP + 0x100]
CALL 0x001c9b30
JMP 0x001c9427
LAB_001c9427:
MOVZX EAX,byte ptr [RSP + 0x11f]
MOV qword ptr [RSP + 0x28],RAX
SUB RAX,0x9
JA 0x001c95fc
MOV RAX,qword ptr [RSP + 0x28]
LEA RCX,[0x2824c8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
LEA RDI,[RSP + 0x5f]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x001c9b90
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX]
CALL 0x001c9ba0
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX]
LAB_001c9481:
MOV EDX,0x1
CALL 0x001c9bd0
JMP 0x001c948d
LAB_001c948d:
LEA RDI,[RSP + 0x5f]
CALL 0x001c9c00
JMP 0x001c95fe
caseD_2:
LEA RDI,[RSP + 0x5e]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001c9c10
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX]
CALL 0x001c9c20
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX]
LAB_001c94ed:
MOV EDX,0x1
CALL 0x001c9c50
JMP 0x001c94f9
LAB_001c94f9:
LEA RDI,[RSP + 0x5e]
CALL 0x001c9c80
JMP 0x001c95fe
caseD_3:
LEA RDI,[RSP + 0x5d]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x001561c0
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
CALL 0x0017db80
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
LAB_001c9559:
MOV EDX,0x1
CALL 0x001518e0
JMP 0x001c9565
LAB_001c9565:
LEA RDI,[RSP + 0x5d]
CALL 0x00199fc0
JMP 0x001c95fe
caseD_8:
LEA RDI,[RSP + 0x5c]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001c9c90
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX]
CALL 0x001c9ca0
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX]
LAB_001c95c2:
MOV EDX,0x1
CALL 0x001c9cd0
LAB_001c95cc:
JMP 0x001c95ce
LAB_001c95ce:
LEA RDI,[RSP + 0x5c]
CALL 0x001c9d00
JMP 0x001c95fe
caseD_0:
JMP 0x001c95fc
LAB_001c95fc:
JMP 0x001c95fe
default:
ADD RSP,0x128
RET
|
/* nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >
>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_2::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::json_value::destroy(json_value *this,char param_2)
{
byte bVar1;
ulong uVar2;
basic_json *pbVar3;
allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
local_cc;
allocator<std::__cxx11::string> local_cb;
allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
local_ca;
allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
local_c9;
long local_c8;
int8 local_c0;
int8 local_b8;
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
*local_b0;
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
local_88 [8];
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*local_80;
long local_78;
int8 local_70;
int8 local_68;
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
*local_60;
int8 local_58;
int8 local_50;
int8 local_48;
int8 local_40;
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
local_28 [31];
char local_9;
json_value *local_8;
local_9 = param_2;
local_8 = this;
if ((param_2 == '\x02') || (param_2 == '\x01')) {
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::vector(local_28);
if (local_9 == '\x02') {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::size(*(vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
**)this);
/* try { // try from 001c90e9 to 001c9236 has its CatchHandler @ 001c917c */
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::reserve(local_28,uVar2);
local_40 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::begin(*(vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
**)this);
local_48 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::end(*(vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
**)this);
local_50 = std::
back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
((vector *)local_28);
local_58 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>*,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
(local_40,local_48,local_50);
}
else {
uVar2 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::size(*(map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
**)this);
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::reserve(local_28,uVar2);
local_60 = *(map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
**)this;
local_68 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::begin(local_60);
local_70 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::end(local_60);
while (uVar2 = std::operator!=((_Rb_tree_iterator *)&local_68,(_Rb_tree_iterator *)&local_70),
(uVar2 & 1) != 0) {
local_78 = std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::operator*((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*)&local_68);
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::push_back(local_28,(basic_json *)(local_78 + 0x20));
std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::operator++((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*)&local_68);
}
}
while (bVar1 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::empty(local_28), ((bVar1 ^ 0xff) & 1) != 0) {
pbVar3 = (basic_json *)
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::back(local_28);
basic_json(local_88,pbVar3);
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::pop_back(local_28);
uVar2 = is_array(local_88);
if ((uVar2 & 1) == 0) {
uVar2 = is_object(local_88);
if ((uVar2 & 1) != 0) {
local_b0 = (map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
*)local_80;
local_b8 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::begin((map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
*)local_80);
local_c0 = std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::end(local_b0);
while (uVar2 = std::operator!=((_Rb_tree_iterator *)&local_b8,
(_Rb_tree_iterator *)&local_c0), (uVar2 & 1) != 0) {
local_c8 = std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::operator*((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*)&local_b8);
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::push_back(local_28,(basic_json *)(local_c8 + 0x20));
std::
_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::operator++((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
*)&local_b8);
}
std::
map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::clear((map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
*)local_80);
}
}
else {
local_90 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::begin(local_80);
local_98 = std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::end(local_80);
/* try { // try from 001c92d0 to 001c93d4 has its CatchHandler @ 001c9334 */
local_a0 = std::
back_inserter<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
((vector *)local_28);
local_a8 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>*,std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
(local_90,local_98,local_a0);
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::clear(local_80);
}
~basic_json(local_88);
}
std::
vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::~vector(local_28);
}
switch(local_9) {
case '\0':
case '\x04':
case '\x05':
case '\x06':
case '\a':
case '\t':
break;
case '\x01':
std::
allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
::allocator(&local_c9);
std::
allocator_traits<std::allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>>
::
destroy<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
((allocator *)&local_c9,*(map **)this);
/* try { // try from 001c9481 to 001c948a has its CatchHandler @ 001c949c */
std::
allocator_traits<std::allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>>
::deallocate((allocator *)&local_c9,*(map **)this,1);
std::
allocator<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
::~allocator(&local_c9);
break;
case '\x02':
std::
allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::allocator(&local_ca);
std::
allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
::
destroy<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
((allocator *)&local_ca,*(vector **)this);
/* try { // try from 001c94ed to 001c94f6 has its CatchHandler @ 001c9508 */
std::
allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>>
::deallocate((allocator *)&local_ca,*(vector **)this,1);
std::
allocator<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>
::~allocator(&local_ca);
break;
case '\x03':
std::allocator<std::__cxx11::string>::allocator(&local_cb);
std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string>
((allocator *)&local_cb,*(string **)this);
/* try { // try from 001c9559 to 001c9562 has its CatchHandler @ 001c9574 */
std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate
((allocator *)&local_cb,*(string **)this,1);
std::allocator<std::__cxx11::string>::~allocator(&local_cb);
break;
case '\b':
std::
allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::allocator(&local_cc);
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::
destroy<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
((allocator *)&local_cc,*(byte_container_with_subtype **)this);
/* try { // try from 001c95c2 to 001c95cb has its CatchHandler @ 001c95da */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::deallocate((allocator *)&local_cc,*(byte_container_with_subtype **)this,1);
std::
allocator<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::~allocator(&local_cc);
}
return;
}
| |
50,071 | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | void destroy(value_t t)
{
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
current_item.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O1 | cpp | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %r14d
movq %rdi, %rbx
leal -0x1(%r14), %eax
cmpb $0x1, %al
ja 0x6f316
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rbx), %rax
cmpb $0x2, %r14b
jne 0x6f1b8
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x4, %rsi
movq %rsp, %rdi
callq 0x6f3ce
movq (%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
subq %r15, %r13
sarq $0x4, %r13
testq %r13, %r13
jle 0x6f1f3
incq %r13
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6f518
addq $0x10, %r15
decq %r13
cmpq $0x1, %r13
jg 0x6f19e
jmp 0x6f1f3
movq 0x28(%rax), %rsi
movq %rsp, %rdi
callq 0x6f3ce
movq (%rbx), %r13
movq 0x18(%r13), %r15
addq $0x8, %r13
cmpq %r13, %r15
je 0x6f1f3
movq %rsp, %r12
leaq 0x40(%r15), %rsi
movq %r12, %rdi
callq 0x6f518
movq %r15, %rdi
callq 0xa3e0
movq %rax, %r15
cmpq %r13, %rax
jne 0x6f1d7
movq %r14, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
movq 0x8(%rsp), %rax
cmpq %rax, (%rsp)
je 0x6f304
movq %rsp, %r15
leaq 0x18(%rsp), %r12
movb -0x10(%rax), %cl
movb %cl, 0x18(%rsp)
movq -0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movb $0x0, -0x10(%rax)
movq $0x0, -0x8(%rax)
movq 0x8(%rsp), %rdi
addq $-0x10, %rdi
movq %rdi, 0x8(%rsp)
callq 0x6d512
movzbl 0x18(%rsp), %eax
cmpl $0x1, %eax
je 0x6f2b5
cmpl $0x2, %eax
jne 0x6f2ed
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
subq %r13, %rbp
sarq $0x4, %rbp
testq %rbp, %rbp
jle 0x6f289
incq %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f518
addq $0x10, %r13
decq %rbp
cmpq $0x1, %rbp
jg 0x6f271
movq 0x20(%rsp), %rbp
movq (%rbp), %rbx
movq 0x8(%rbp), %r14
cmpq %rbx, %r14
je 0x6f2ed
movq %rbx, %r13
movq %r13, %rdi
callq 0x6d512
addq $0x10, %r13
cmpq %r14, %r13
jne 0x6f29e
movq %rbx, 0x8(%rbp)
jmp 0x6f2ed
movq 0x20(%rsp), %rbp
movq 0x18(%rbp), %r13
addq $0x8, %rbp
cmpq %rbp, %r13
je 0x6f2e3
leaq 0x40(%r13), %rsi
movq %r15, %rdi
callq 0x6f518
movq %r13, %rdi
callq 0xa3e0
movq %rax, %r13
cmpq %rbp, %rax
jne 0x6f2c7
movq 0x20(%rsp), %rdi
callq 0x6f6da
movq %r12, %rdi
callq 0x6d512
movq 0x8(%rsp), %rax
cmpq %rax, (%rsp)
jne 0x6f214
movq %rsp, %rdi
callq 0x6f4ba
movq 0x30(%rsp), %rbx
movq 0x28(%rsp), %r14
movzbl %r14b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x6f396
leaq 0x51688(%rip), %rcx # 0xc09b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x6f778
movl $0x30, %r14d
jmp 0x6f38b
movq (%rbx), %rax
movq (%rax), %rdi
addq $0x10, %rax
movl $0x20, %r14d
cmpq %rax, %rdi
je 0x6f38b
movq (%rax), %rsi
incq %rsi
jmp 0x6f386
movq (%rbx), %rdi
callq 0x6f4ba
movl $0x18, %r14d
jmp 0x6f38b
movq (%rbx), %rax
movq (%rax), %rdi
movl $0x28, %r14d
testq %rdi, %rdi
je 0x6f38b
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0xa5e0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0xa5e0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6f3a9
jmp 0x6f3a9
movq %rax, %rbx
jmp 0x6f3bd
jmp 0x6f3b0
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6d512
movq %rsp, %rdi
callq 0x6f4ba
movq %rbx, %rdi
callq 0xaae0
nop
| _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14d, esi
mov rbx, rdi
lea eax, [r14-1]
cmp al, 1
ja loc_6F316
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
mov [rsp+68h+var_58], 0
mov rax, [rbx]
cmp r14b, 2
jnz short loc_6F1B8
mov rsi, [rax+8]
sub rsi, [rax]
sar rsi, 4
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
mov rax, [rbx]
mov r15, [rax]
mov r13, [rax+8]
sub r13, r15
sar r13, 4
test r13, r13
jle short loc_6F1F3
inc r13
mov r12, rsp
loc_6F19E:
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
add r15, 10h
dec r13
cmp r13, 1
jg short loc_6F19E
jmp short loc_6F1F3
loc_6F1B8:
mov rsi, [rax+28h]
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
mov r13, [rbx]
mov r15, [r13+18h]
add r13, 8
cmp r15, r13
jz short loc_6F1F3
mov r12, rsp
loc_6F1D7:
lea rsi, [r15+40h]
mov rdi, r12
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
mov rdi, r15
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r15, rax
cmp rax, r13
jnz short loc_6F1D7
loc_6F1F3:
mov [rsp+68h+var_40], r14
mov [rsp+68h+var_38], rbx
mov rax, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], rax
jz loc_6F304
mov r15, rsp
lea r12, [rsp+68h+var_50]
loc_6F214:
mov cl, [rax-10h]
mov [rsp+68h+var_50], cl
mov rcx, [rax-8]
mov [rsp+68h+var_48], rcx
mov byte ptr [rax-10h], 0
mov qword ptr [rax-8], 0
mov rdi, qword ptr [rsp+68h+var_68+8]
add rdi, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+68h+var_68+8], rdi
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
movzx eax, [rsp+68h+var_50]
cmp eax, 1
jz short loc_6F2B5
cmp eax, 2
jnz loc_6F2ED
mov rax, [rsp+68h+var_48]
mov r13, [rax]
mov rbp, [rax+8]
sub rbp, r13
sar rbp, 4
test rbp, rbp
jle short loc_6F289
inc rbp
loc_6F271:
mov rdi, r15
mov rsi, r13
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
add r13, 10h
dec rbp
cmp rbp, 1
jg short loc_6F271
loc_6F289:
mov rbp, [rsp+68h+var_48]
mov rbx, [rbp+0]
mov r14, [rbp+8]
cmp r14, rbx
jz short loc_6F2ED
mov r13, rbx
loc_6F29E:
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
add r13, 10h
cmp r13, r14
jnz short loc_6F29E
mov [rbp+8], rbx
jmp short loc_6F2ED
loc_6F2B5:
mov rbp, [rsp+68h+var_48]
mov r13, [rbp+18h]
add rbp, 8
cmp r13, rbp
jz short loc_6F2E3
loc_6F2C7:
lea rsi, [r13+40h]
mov rdi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
mov rdi, r13
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r13, rax
cmp rax, rbp
jnz short loc_6F2C7
loc_6F2E3:
mov rdi, [rsp+68h+var_48]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEESt10_Select1stISH_ESt4lessIvESaISH_EE5clearEv; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::clear(void)
loc_6F2ED:
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
mov rax, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], rax
jnz loc_6F214
loc_6F304:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov rbx, [rsp+68h+var_38]
mov r14, [rsp+68h+var_40]
loc_6F316:
movzx eax, r14b
dec eax; switch 8 cases
cmp eax, 7
ja short def_6F32F; jumptable 000000000006F32F default case, cases 4-7
lea rcx, jpt_6F32F
movsxd rax, ds:(jpt_6F32F - 0C09B0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_6F331:
mov rdi, [rbx]; jumptable 000000000006F32F case 1
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEESt10_Select1stISH_ESt4lessIvESaISH_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::~_Rb_tree()
mov r14d, 30h ; '0'
jmp short loc_6F38B
loc_6F341:
mov rax, [rbx]; jumptable 000000000006F32F case 3
mov rdi, [rax]
add rax, 10h
mov r14d, 20h ; ' '
cmp rdi, rax
jz short loc_6F38B
mov rsi, [rax]
inc rsi
jmp short loc_6F386
loc_6F35E:
mov rdi, [rbx]; jumptable 000000000006F32F case 2
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov r14d, 18h
jmp short loc_6F38B
loc_6F36E:
mov rax, [rbx]; jumptable 000000000006F32F case 8
mov rdi, [rax]; void *
mov r14d, 28h ; '('
test rdi, rdi
jz short loc_6F38B
mov rsi, [rax+10h]
sub rsi, rdi; unsigned __int64
loc_6F386:
call __ZdlPvm; operator delete(void *,ulong)
loc_6F38B:
mov rdi, [rbx]; void *
mov rsi, r14; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
def_6F32F:
add rsp, 38h; jumptable 000000000006F32F default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6F3A9
jmp short $+2
loc_6F3A9:
mov rbx, rax
jmp short loc_6F3BD
jmp short $+2
loc_6F3B0:
mov rbx, rax
lea rdi, [rsp+arg_10]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
loc_6F3BD:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::json_value::destroy(
void **a1,
unsigned int a2)
{
char v2; // r14
void **v3; // rbx
_QWORD *v4; // rax
long long v5; // r15
long long v6; // r13
long long v7; // r13
long long v8; // r15
long long i; // r13
long long j; // rax
long long v11; // r13
long long v12; // rbp
long long v13; // rbp
_QWORD *v14; // rbp
long long v15; // rbx
long long v16; // r14
long long v17; // r13
long long v18; // r13
_QWORD *k; // rbp
unsigned long long v20; // r14
_QWORD *v21; // rdi
_QWORD *v22; // rax
unsigned long long v23; // rsi
__int128 v24; // [rsp+0h] [rbp-68h] BYREF
long long v25; // [rsp+10h] [rbp-58h]
_BYTE v26[8]; // [rsp+18h] [rbp-50h] BYREF
_QWORD *v27; // [rsp+20h] [rbp-48h]
long long v28; // [rsp+28h] [rbp-40h]
void **v29; // [rsp+30h] [rbp-38h]
v2 = a2;
v3 = a1;
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v24 = 0LL;
v25 = 0LL;
v4 = *a1;
if ( (_BYTE)a2 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
&v24,
(long long)(v4[1] - *v4) >> 4);
v5 = *(_QWORD *)*a1;
v6 = (*((_QWORD *)*a1 + 1) - v5) >> 4;
if ( v6 > 0 )
{
v7 = v6 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v24,
v5);
v5 += 16LL;
--v7;
}
while ( v7 > 1 );
}
}
else
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
&v24,
v4[5]);
v8 = *((_QWORD *)*a1 + 3);
for ( i = (long long)*a1 + 8; v8 != i; v8 = std::_Rb_tree_increment(v8) )
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v24,
v8 + 64);
}
v28 = a2;
v29 = a1;
for ( j = *((_QWORD *)&v24 + 1); (_QWORD)v24 != *((_QWORD *)&v24 + 1); j = *((_QWORD *)&v24 + 1) )
{
v26[0] = *(_BYTE *)(j - 16);
v27 = *(_QWORD **)(j - 8);
*(_BYTE *)(j - 16) = 0;
*(_QWORD *)(j - 8) = 0LL;
*((_QWORD *)&v24 + 1) -= 16LL;
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(*((_QWORD *)&v24 + 1));
if ( v26[0] == 1 )
{
v18 = v27[3];
for ( k = v27 + 1; (_QWORD *)v18 != k; v18 = std::_Rb_tree_increment(v18) )
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v24,
v18 + 64);
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::clear(v27);
}
else if ( v26[0] == 2 )
{
v11 = *v27;
v12 = (long long)(v27[1] - *v27) >> 4;
if ( v12 > 0 )
{
v13 = v12 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v24,
v11);
v11 += 16LL;
--v13;
}
while ( v13 > 1 );
}
v14 = v27;
v15 = *v27;
v16 = v27[1];
if ( v16 != *v27 )
{
v17 = *v27;
do
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v17);
v17 += 16LL;
}
while ( v17 != v16 );
v14[1] = v15;
}
}
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v26);
}
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::~vector(&v24);
v3 = v29;
v2 = v28;
}
switch ( v2 )
{
case 1:
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::~_Rb_tree(*v3);
v20 = 48LL;
goto LABEL_32;
case 2:
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::~vector(*v3);
v20 = 24LL;
goto LABEL_32;
case 3:
v21 = *(_QWORD **)*v3;
v22 = (char *)*v3 + 16;
v20 = 32LL;
if ( v21 == v22 )
goto LABEL_32;
v23 = *v22 + 1LL;
break;
case 8:
v21 = *(_QWORD **)*v3;
v20 = 40LL;
if ( !v21 )
goto LABEL_32;
v23 = *((_QWORD *)*v3 + 2) - (_QWORD)v21;
break;
default:
return;
}
operator delete(v21, v23);
LABEL_32:
operator delete(*v3, v20);
}
| |||
50,072 | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | void destroy(value_t t)
{
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
current_item.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O3 | cpp | nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::destroy(nlohmann::json_abi_v3_11_2::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %r13d
movq %rdi, %r14
leal -0x1(%r13), %eax
cmpb $0x1, %al
ja 0x6e6b6
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%r14), %rax
cmpb $0x2, %r13b
jne 0x6e556
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x4, %rsi
movq %rsp, %rdi
callq 0x6e77e
movq (%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %rbx
subq %r15, %rbx
sarq $0x4, %rbx
testq %rbx, %rbx
jle 0x6e591
incq %rbx
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6e8d6
addq $0x10, %r15
decq %rbx
cmpq $0x1, %rbx
jg 0x6e53c
jmp 0x6e591
movq 0x28(%rax), %rsi
movq %rsp, %rdi
callq 0x6e77e
movq (%r14), %rbx
movq 0x18(%rbx), %r15
addq $0x8, %rbx
cmpq %rbx, %r15
je 0x6e591
movq %rsp, %r12
leaq 0x40(%r15), %rsi
movq %r12, %rdi
callq 0x6e8d6
movq %r15, %rdi
callq 0xa3d0
movq %rax, %r15
cmpq %rbx, %rax
jne 0x6e575
movq %r13, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq 0x8(%rsp), %rax
cmpq %rax, (%rsp)
je 0x6e6a4
movq %rsp, %r15
leaq 0x18(%rsp), %r12
movb -0x10(%rax), %cl
movb %cl, 0x18(%rsp)
movq -0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movb $0x0, -0x10(%rax)
movq $0x0, -0x8(%rax)
movq 0x8(%rsp), %rdi
addq $-0x10, %rdi
movq %rdi, 0x8(%rsp)
callq 0x6c896
movzbl 0x18(%rsp), %eax
cmpl $0x1, %eax
je 0x6e655
cmpl $0x2, %eax
jne 0x6e68d
movq 0x20(%rsp), %rbx
movq (%rbx), %r13
movq 0x8(%rbx), %r14
movq %r14, %rbp
subq %r13, %rbp
sarq $0x4, %rbp
testq %rbp, %rbp
jle 0x6e636
incq %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x6e8d6
addq $0x10, %r13
decq %rbp
cmpq $0x1, %rbp
jg 0x6e612
movq 0x20(%rsp), %rbx
movq (%rbx), %r13
movq 0x8(%rbx), %r14
cmpq %r13, %r14
je 0x6e68d
movq %r13, %rbp
movq %rbp, %rdi
callq 0x6c896
addq $0x10, %rbp
cmpq %r14, %rbp
jne 0x6e63e
movq %r13, 0x8(%rbx)
jmp 0x6e68d
movq 0x20(%rsp), %rdi
movq 0x18(%rdi), %r13
leaq 0x8(%rdi), %rbx
cmpq %rbx, %r13
je 0x6e688
leaq 0x40(%r13), %rsi
movq %r15, %rdi
callq 0x6e8d6
movq %r13, %rdi
callq 0xa3d0
movq %rax, %r13
cmpq %rbx, %rax
jne 0x6e667
movq 0x20(%rsp), %rdi
callq 0x6ea9e
movq %r12, %rdi
callq 0x6c896
movq 0x8(%rsp), %rax
cmpq %rax, (%rsp)
jne 0x6e5b2
movq %rsp, %rdi
callq 0x6e872
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r13
movzbl %r13b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x6e747
leaq 0x512f4(%rip), %rcx # 0xbf9c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r14), %rdi
callq 0x6eb3c
movq (%r14), %rdi
movl $0x30, %esi
jmp 0x6e742
movq (%r14), %rdi
movq (%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0x6e707
movq (%rcx), %rsi
incq %rsi
movq %rax, %rdi
callq 0xa5d0
movq (%r14), %rdi
movl $0x20, %esi
jmp 0x6e742
movq (%r14), %rdi
callq 0x6e872
movq (%r14), %rdi
movl $0x18, %esi
jmp 0x6e742
movq (%r14), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x6e73d
movq 0x10(%rdi), %rsi
subq %rax, %rsi
movq %rax, %rdi
callq 0xa5d0
movq (%r14), %rdi
movl $0x28, %esi
callq 0xa5d0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6e75a
jmp 0x6e75a
movq %rax, %rbx
jmp 0x6e76e
jmp 0x6e761
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6c896
movq %rsp, %rdi
callq 0x6e872
movq %rbx, %rdi
callq 0xaad0
| _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r13d, esi
mov r14, rdi
lea eax, [r13-1]
cmp al, 1
ja loc_6E6B6
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
mov [rsp+68h+var_58], 0
mov rax, [r14]
cmp r13b, 2
jnz short loc_6E556
mov rsi, [rax+8]
sub rsi, [rax]
sar rsi, 4
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
mov rax, [r14]
mov r15, [rax]
mov rbx, [rax+8]
sub rbx, r15
sar rbx, 4
test rbx, rbx
jle short loc_6E591
inc rbx
mov r12, rsp
loc_6E53C:
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
add r15, 10h
dec rbx
cmp rbx, 1
jg short loc_6E53C
jmp short loc_6E591
loc_6E556:
mov rsi, [rax+28h]
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::reserve(ulong)
mov rbx, [r14]
mov r15, [rbx+18h]
add rbx, 8
cmp r15, rbx
jz short loc_6E591
mov r12, rsp
loc_6E575:
lea rsi, [r15+40h]
mov rdi, r12
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
mov rdi, r15
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r15, rax
cmp rax, rbx
jnz short loc_6E575
loc_6E591:
mov [rsp+68h+var_40], r13
mov [rsp+68h+var_38], r14
mov rax, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], rax
jz loc_6E6A4
mov r15, rsp
lea r12, [rsp+68h+var_50]
loc_6E5B2:
mov cl, [rax-10h]
mov [rsp+68h+var_50], cl
mov rcx, [rax-8]
mov [rsp+68h+var_48], rcx
mov byte ptr [rax-10h], 0
mov qword ptr [rax-8], 0
mov rdi, qword ptr [rsp+68h+var_68+8]
add rdi, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+68h+var_68+8], rdi
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
movzx eax, [rsp+68h+var_50]
cmp eax, 1
jz short loc_6E655
cmp eax, 2
jnz loc_6E68D
mov rbx, [rsp+68h+var_48]
mov r13, [rbx]
mov r14, [rbx+8]
mov rbp, r14
sub rbp, r13
sar rbp, 4
test rbp, rbp
jle short loc_6E636
inc rbp
loc_6E612:
mov rdi, r15
mov rsi, r13
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
add r13, 10h
dec rbp
cmp rbp, 1
jg short loc_6E612
mov rbx, [rsp+68h+var_48]
mov r13, [rbx]
mov r14, [rbx+8]
loc_6E636:
cmp r14, r13
jz short loc_6E68D
mov rbp, r13
loc_6E63E:
mov rdi, rbp
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
add rbp, 10h
cmp rbp, r14
jnz short loc_6E63E
mov [rbx+8], r13
jmp short loc_6E68D
loc_6E655:
mov rdi, [rsp+68h+var_48]
mov r13, [rdi+18h]
lea rbx, [rdi+8]
cmp r13, rbx
jz short loc_6E688
loc_6E667:
lea rsi, [r13+40h]
mov rdi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> &&)
mov rdi, r13
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov r13, rax
cmp rax, rbx
jnz short loc_6E667
mov rdi, [rsp+68h+var_48]
loc_6E688:
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEESt10_Select1stISH_ESt4lessIvESaISH_EE5clearEv; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::clear(void)
loc_6E68D:
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
mov rax, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], rax
jnz loc_6E5B2
loc_6E6A4:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov r14, [rsp+68h+var_38]
mov r13, [rsp+68h+var_40]
loc_6E6B6:
movzx eax, r13b
dec eax; switch 8 cases
cmp eax, 7
ja def_6E6D3; jumptable 000000000006E6D3 default case, cases 4-7
lea rcx, jpt_6E6D3
movsxd rax, ds:(jpt_6E6D3 - 0BF9C0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_6E6D5:
mov rdi, [r14]; jumptable 000000000006E6D3 case 1
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEEEESt10_Select1stISH_ESt4lessIvESaISH_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>>>::~_Rb_tree()
mov rdi, [r14]
mov esi, 30h ; '0'
jmp short loc_6E742
loc_6E6E7:
mov rdi, [r14]; jumptable 000000000006E6D3 case 3
mov rax, [rdi]
lea rcx, [rdi+10h]
cmp rax, rcx
jz short loc_6E707
mov rsi, [rcx]
inc rsi; unsigned __int64
mov rdi, rax; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [r14]
loc_6E707:
mov esi, 20h ; ' '
jmp short loc_6E742
loc_6E70E:
mov rdi, [r14]; jumptable 000000000006E6D3 case 2
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov rdi, [r14]
mov esi, 18h
jmp short loc_6E742
loc_6E720:
mov rdi, [r14]; jumptable 000000000006E6D3 case 8
mov rax, [rdi]
test rax, rax
jz short loc_6E73D
mov rsi, [rdi+10h]
sub rsi, rax; unsigned __int64
mov rdi, rax; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [r14]; void *
loc_6E73D:
mov esi, 28h ; '('; unsigned __int64
loc_6E742:
call __ZdlPvm; operator delete(void *,ulong)
def_6E6D3:
add rsp, 38h; jumptable 000000000006E6D3 default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6E75A
jmp short $+2
loc_6E75A:
mov rbx, rax
jmp short loc_6E76E
jmp short $+2
loc_6E761:
mov rbx, rax
lea rdi, [rsp+arg_10]
call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEED2Ev; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::~basic_json()
loc_6E76E:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::json_value::destroy(
void ***a1,
unsigned int a2)
{
char v2; // r13
void ***v3; // r14
void **v4; // rax
char *v5; // r15
long long v6; // rbx
long long v7; // rbx
long long v8; // r15
long long i; // rbx
long long j; // rax
_QWORD *v11; // rbx
long long v12; // r13
long long v13; // r14
long long v14; // rbp
long long v15; // rbp
long long v16; // rbp
long long v17; // r13
_QWORD *k; // rbx
void **v19; // rdi
unsigned long long v20; // rsi
_QWORD *v21; // rcx
_BYTE *v22; // rax
__int128 v23; // [rsp+0h] [rbp-68h] BYREF
long long v24; // [rsp+10h] [rbp-58h]
char v25[8]; // [rsp+18h] [rbp-50h] BYREF
_QWORD *v26; // [rsp+20h] [rbp-48h]
long long v27; // [rsp+28h] [rbp-40h]
void ***v28; // [rsp+30h] [rbp-38h]
v2 = a2;
v3 = a1;
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v23 = 0LL;
v24 = 0LL;
v4 = *a1;
if ( (_BYTE)a2 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
&v23,
((_BYTE *)v4[1] - (_BYTE *)*v4) >> 4);
v5 = (char *)**a1;
v6 = ((_BYTE *)(*a1)[1] - v5) >> 4;
if ( v6 > 0 )
{
v7 = v6 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v23,
v5);
v5 += 16;
--v7;
}
while ( v7 > 1 );
}
}
else
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::reserve(
&v23,
v4[5]);
v8 = (long long)(*a1)[3];
for ( i = (long long)(*a1 + 1); v8 != i; v8 = std::_Rb_tree_increment(v8) )
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v23,
v8 + 64);
}
v27 = a2;
v28 = a1;
for ( j = *((_QWORD *)&v23 + 1); (_QWORD)v23 != *((_QWORD *)&v23 + 1); j = *((_QWORD *)&v23 + 1) )
{
v25[0] = *(_BYTE *)(j - 16);
v26 = *(_QWORD **)(j - 8);
*(_BYTE *)(j - 16) = 0;
*(_QWORD *)(j - 8) = 0LL;
*((_QWORD *)&v23 + 1) -= 16LL;
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(*((_QWORD *)&v23 + 1));
if ( v25[0] == 1 )
{
v17 = v26[3];
for ( k = v26 + 1; (_QWORD *)v17 != k; v17 = std::_Rb_tree_increment(v17) )
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v23,
v17 + 64);
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::clear();
}
else if ( v25[0] == 2 )
{
v11 = v26;
v12 = *v26;
v13 = v26[1];
v14 = (v13 - *v26) >> 4;
if ( v14 > 0 )
{
v15 = v14 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::emplace_back<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
&v23,
v12);
v12 += 16LL;
--v15;
}
while ( v15 > 1 );
v11 = v26;
v12 = *v26;
v13 = v26[1];
}
if ( v13 != v12 )
{
v16 = v12;
do
{
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v16);
v16 += 16LL;
}
while ( v16 != v13 );
v11[1] = v12;
}
}
nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::~basic_json(v25);
}
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::~vector(&v23);
v3 = v28;
v2 = v27;
}
switch ( v2 )
{
case 1:
std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>>>::~_Rb_tree(*v3);
v19 = *v3;
v20 = 48LL;
goto LABEL_34;
case 2:
std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>::~vector(*v3);
v19 = *v3;
v20 = 24LL;
goto LABEL_34;
case 3:
v19 = *v3;
v21 = *v3 + 2;
if ( **v3 != v21 )
{
operator delete(**v3, *v21 + 1LL);
v19 = *v3;
}
v20 = 32LL;
goto LABEL_34;
case 8:
v19 = *v3;
v22 = **v3;
if ( v22 )
{
operator delete(**v3, (_BYTE *)v19[2] - v22);
v19 = *v3;
}
v20 = 40LL;
LABEL_34:
operator delete(v19, v20);
break;
default:
return;
}
}
| |||
50,073 | JS_ThrowSyntaxError | bluesky950520[P]quickjs/quickjs.c | JSValue __attribute__((format(printf, 2, 3))) JS_ThrowSyntaxError(JSContext *ctx, const char *fmt, ...)
{
JSValue val;
va_list ap;
va_start(ap, fmt);
val = JS_ThrowError(ctx, JS_SYNTAX_ERROR, fmt, ap);
va_end(ap);
return val;
} | O1 | c | JS_ThrowSyntaxError:
subq $0xd8, %rsp
movq %rsi, %r10
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x2252b
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rsi, 0x10(%rcx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, (%rcx)
movl $0x3, %esi
movq %r10, %rdx
callq 0x22450
movl $0x6, %edx
xorl %eax, %eax
addq $0xd8, %rsp
retq
| JS_ThrowSyntaxError:
sub rsp, 0D8h
mov r10, rsi
lea rsi, [rsp+0D8h+var_B8]
mov [rsi+10h], rdx
mov [rsi+18h], rcx
mov [rsi+20h], r8
mov [rsi+28h], r9
test al, al
jz short loc_2252B
movaps [rsp+0D8h+var_88], xmm0
movaps [rsp+0D8h+var_78], xmm1
movaps [rsp+0D8h+var_68], xmm2
movaps [rsp+0D8h+var_58], xmm3
movaps [rsp+0D8h+var_48], xmm4
movaps [rsp+0D8h+var_38], xmm5
movaps [rsp+0D8h+var_28], xmm6
movaps [rsp+0D8h+var_18], xmm7
loc_2252B:
mov rcx, rsp
mov [rcx+10h], rsi
lea rax, [rsp+0D8h+arg_0]
mov [rcx+8], rax
mov rax, 3000000010h
mov [rcx], rax
mov esi, 3
mov rdx, r10
call JS_ThrowError
mov edx, 6
xor eax, eax
add rsp, 0D8h
retn
| long long JS_ThrowSyntaxError(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
_QWORD v16[4]; // [rsp+0h] [rbp-D8h] BYREF
char v17; // [rsp+20h] [rbp-B8h] BYREF
long long v18; // [rsp+30h] [rbp-A8h]
long long v19; // [rsp+38h] [rbp-A0h]
long long v20; // [rsp+40h] [rbp-98h]
long long v21; // [rsp+48h] [rbp-90h]
__m128 v22; // [rsp+50h] [rbp-88h]
__m128 v23; // [rsp+60h] [rbp-78h]
__m128 v24; // [rsp+70h] [rbp-68h]
__m128 v25; // [rsp+80h] [rbp-58h]
__m128 v26; // [rsp+90h] [rbp-48h]
__m128 v27; // [rsp+A0h] [rbp-38h]
__m128 v28; // [rsp+B0h] [rbp-28h]
__m128 v29; // [rsp+C0h] [rbp-18h]
v22 = a7;
v23 = a8;
v24 = a9;
v25 = a10;
v26 = a11;
v27 = a12;
v28 = a13;
v29 = a14;
v18 = a3;
v19 = a4;
v20 = a5;
v21 = a6;
v16[2] = &v17;
v16[1] = &a15;
v16[0] = 0x3000000010LL;
JS_ThrowError(a1, 3LL, a2, (long long)v16);
return 0LL;
}
| |||
50,074 | JS_ThrowSyntaxError | bluesky950520[P]quickjs/quickjs.c | JSValue __attribute__((format(printf, 2, 3))) JS_ThrowSyntaxError(JSContext *ctx, const char *fmt, ...)
{
JSValue val;
va_list ap;
va_start(ap, fmt);
val = JS_ThrowError(ctx, JS_SYNTAX_ERROR, fmt, ap);
va_end(ap);
return val;
} | O2 | c | JS_ThrowSyntaxError:
subq $0xd8, %rsp
movq %rsi, %r10
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x1c615
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rsi, 0x10(%rcx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, (%rcx)
pushq $0x3
popq %rsi
movq %r10, %rdx
callq 0x1c551
pushq $0x6
popq %rdx
xorl %eax, %eax
addq $0xd8, %rsp
retq
| JS_ThrowSyntaxError:
sub rsp, 0D8h
mov r10, rsi
lea rsi, [rsp+0D8h+var_B8]
mov [rsi+10h], rdx
mov [rsi+18h], rcx
mov [rsi+20h], r8
mov [rsi+28h], r9
test al, al
jz short loc_1C615
movaps [rsp+0D8h+var_88], xmm0
movaps [rsp+0D8h+var_78], xmm1
movaps [rsp+0D8h+var_68], xmm2
movaps [rsp+0D8h+var_58], xmm3
movaps [rsp+0D8h+var_48], xmm4
movaps [rsp+0D8h+var_38], xmm5
movaps [rsp+0D8h+var_28], xmm6
movaps [rsp+0D8h+var_18], xmm7
loc_1C615:
mov rcx, rsp
mov [rcx+10h], rsi
lea rax, [rsp+0D8h+arg_0]
mov [rcx+8], rax
mov rax, 3000000010h
mov [rcx], rax
push 3
pop rsi
mov rdx, r10
call JS_ThrowError
push 6
pop rdx
xor eax, eax
add rsp, 0D8h
retn
| long long JS_ThrowSyntaxError(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
_QWORD v16[4]; // [rsp+0h] [rbp-D8h] BYREF
char v17; // [rsp+20h] [rbp-B8h] BYREF
long long v18; // [rsp+30h] [rbp-A8h]
long long v19; // [rsp+38h] [rbp-A0h]
long long v20; // [rsp+40h] [rbp-98h]
long long v21; // [rsp+48h] [rbp-90h]
__m128 v22; // [rsp+50h] [rbp-88h]
__m128 v23; // [rsp+60h] [rbp-78h]
__m128 v24; // [rsp+70h] [rbp-68h]
__m128 v25; // [rsp+80h] [rbp-58h]
__m128 v26; // [rsp+90h] [rbp-48h]
__m128 v27; // [rsp+A0h] [rbp-38h]
__m128 v28; // [rsp+B0h] [rbp-28h]
__m128 v29; // [rsp+C0h] [rbp-18h]
v22 = a7;
v23 = a8;
v24 = a9;
v25 = a10;
v26 = a11;
v27 = a12;
v28 = a13;
v29 = a14;
v18 = a3;
v19 = a4;
v20 = a5;
v21 = a6;
v16[2] = &v17;
v16[1] = &a15;
v16[0] = 0x3000000010LL;
JS_ThrowError(a1, 3LL, a2, (long long)v16);
return 0LL;
}
| JS_ThrowSyntaxError:
SUB RSP,0xd8
MOV R10,RSI
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI + 0x10],RDX
MOV qword ptr [RSI + 0x18],RCX
MOV qword ptr [RSI + 0x20],R8
MOV qword ptr [RSI + 0x28],R9
TEST AL,AL
JZ 0x0011c615
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM1
MOVAPS xmmword ptr [RSP + 0x70],XMM2
MOVAPS xmmword ptr [RSP + 0x80],XMM3
MOVAPS xmmword ptr [RSP + 0x90],XMM4
MOVAPS xmmword ptr [RSP + 0xa0],XMM5
MOVAPS xmmword ptr [RSP + 0xb0],XMM6
MOVAPS xmmword ptr [RSP + 0xc0],XMM7
LAB_0011c615:
MOV RCX,RSP
MOV qword ptr [RCX + 0x10],RSI
LEA RAX,[RSP + 0xe0]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,0x3000000010
MOV qword ptr [RCX],RAX
PUSH 0x3
POP RSI
MOV RDX,R10
CALL 0x0011c551
PUSH 0x6
POP RDX
XOR EAX,EAX
ADD RSP,0xd8
RET
|
int1 [16] JS_ThrowSyntaxError(int8 param_1,int8 param_2)
{
JS_ThrowError(param_1,3,param_2);
return ZEXT816(6) << 0x40;
}
| |
50,075 | my_strnncollsp_tis620 | eloqsql/strings/ctype-tis620.c | static
int my_strnncollsp_tis620(CHARSET_INFO * cs __attribute__((unused)),
const uchar *a0, size_t a_length,
const uchar *b0, size_t b_length)
{
uchar buf[80], *end, *a, *b, *alloced= NULL;
size_t length;
int res= 0;
a= buf;
if ((a_length + b_length +2) > (int) sizeof(buf))
alloced= a= (uchar*) my_malloc(PSI_INSTRUMENT_ME, a_length+b_length+2, MYF(MY_FAE));
b= a + a_length+1;
if (a_length)
memcpy((char*) a, (char*) a0, a_length);
a[a_length]= 0; /* if length(a0)> len1, need to put 'end of string' */
if (b_length)
memcpy((char *)b, (char *)b0, b_length);
b[b_length]= 0; /* put end of string */
a_length= thai2sortable(a, a_length);
b_length= thai2sortable(b, b_length);
end= a + (length= MY_MIN(a_length, b_length));
while (a < end)
{
if (*a++ != *b++)
{
res= ((int) a[-1] - (int) b[-1]);
goto ret;
}
}
res= a_length == b_length ? 0 :
a_length < b_length ?
-my_strnncollsp_padspace_bin(b, b_length - length) :
my_strnncollsp_padspace_bin(a, a_length - length);
ret:
if (alloced)
my_free(alloced);
return res;
} | O3 | c | my_strnncollsp_tis620:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r14
movq %rcx, -0x90(%rbp)
movq %rdx, %r15
movq %rsi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq (%rdx,%r8), %rsi
addq $0x2, %rsi
cmpq $0x51, %rsi
jb 0xb7de8
movl $0x8, %edx
xorl %edi, %edi
callq 0x9fe9d
movq %rax, %r12
movq %rax, -0x88(%rbp)
jmp 0xb7df7
movq $0x0, -0x88(%rbp)
leaq -0x80(%rbp), %r12
leaq (%r12,%r15), %r13
testq %r15, %r15
je 0xb7e0e
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x29080
leaq (%r12,%r15), %rbx
incq %rbx
movb $0x0, (%r13)
testq %r14, %r14
je 0xb7e31
movq %rbx, %rdi
movq -0x90(%rbp), %rsi
movq %r14, %rdx
callq 0x29080
movb $0x0, (%rbx,%r14)
movq %r12, %rdi
movq %r15, %rsi
callq 0xb7f8f
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb7f8f
cmpq %r14, %r15
movq %r14, %rax
cmovbq %r15, %rax
leaq (%r12,%rax), %rcx
cmpq %rcx, %r12
jae 0xb7e77
movzbl (%r12), %r13d
movzbl 0x1(%r12,%r15), %edx
incq %r12
cmpb %dl, %r13b
je 0xb7e5a
subl %edx, %r13d
jmp 0xb7eac
xorl %r13d, %r13d
cmpq %r14, %r15
je 0xb7eac
jae 0xb7e9b
leaq (%r15,%r12), %rdi
incq %rdi
subq %rax, %r14
movq %r14, %rsi
callq 0xac4a5
movl %eax, %r13d
negl %r13d
jmp 0xb7eac
subq %rax, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xac4a5
movl %eax, %r13d
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0xb7ebd
callq 0xa00ca
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xb7ede
movl %r13d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
| my_strnncollsp_tis620:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r14, r8
mov [rbp+var_90], rcx
mov r15, rdx
mov rbx, rsi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rsi, [rdx+r8]
add rsi, 2
cmp rsi, 51h ; 'Q'
jb short loc_B7DE8
mov edx, 8
xor edi, edi
call my_malloc
mov r12, rax
mov [rbp+var_88], rax
jmp short loc_B7DF7
loc_B7DE8:
mov [rbp+var_88], 0
lea r12, [rbp+var_80]
loc_B7DF7:
lea r13, [r12+r15]
test r15, r15
jz short loc_B7E0E
mov rdi, r12
mov rsi, rbx
mov rdx, r15
call _memcpy
loc_B7E0E:
lea rbx, [r12+r15]
inc rbx
mov byte ptr [r13+0], 0
test r14, r14
jz short loc_B7E31
mov rdi, rbx
mov rsi, [rbp+var_90]
mov rdx, r14
call _memcpy
loc_B7E31:
mov byte ptr [rbx+r14], 0
mov rdi, r12
mov rsi, r15
call thai2sortable
mov rdi, rbx
mov rsi, r14
call thai2sortable
cmp r15, r14
mov rax, r14
cmovb rax, r15
lea rcx, [r12+rax]
loc_B7E5A:
cmp r12, rcx
jnb short loc_B7E77
movzx r13d, byte ptr [r12]
movzx edx, byte ptr [r12+r15+1]
inc r12
cmp r13b, dl
jz short loc_B7E5A
sub r13d, edx
jmp short loc_B7EAC
loc_B7E77:
xor r13d, r13d
cmp r15, r14
jz short loc_B7EAC
jnb short loc_B7E9B
lea rdi, [r15+r12]
inc rdi
sub r14, rax
mov rsi, r14
call my_strnncollsp_padspace_bin
mov r13d, eax
neg r13d
jmp short loc_B7EAC
loc_B7E9B:
sub r15, rax
mov rdi, r12
mov rsi, r15
call my_strnncollsp_padspace_bin
mov r13d, eax
loc_B7EAC:
mov rdi, [rbp+var_88]
test rdi, rdi
jz short loc_B7EBD
call my_free
loc_B7EBD:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_B7EDE
mov eax, r13d
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B7EDE:
call ___stack_chk_fail
| long long my_strnncollsp_tis620(long long a1, long long a2, unsigned long long a3, long long a4, unsigned long long a5)
{
unsigned long long v8; // rsi
unsigned __int8 *v9; // r12
unsigned long long v10; // rax
unsigned __int8 *v11; // rcx
int v12; // r13d
int v13; // edx
unsigned int v14; // r13d
long long v17; // [rsp+8h] [rbp-88h]
char v18; // [rsp+10h] [rbp-80h] BYREF
unsigned long long v19; // [rsp+60h] [rbp-30h]
v19 = __readfsqword(0x28u);
v8 = a3 + a5 + 2;
if ( v8 < 0x51 )
{
v17 = 0LL;
v9 = (unsigned __int8 *)&v18;
}
else
{
v9 = (unsigned __int8 *)my_malloc(0, v8, 8);
v17 = (long long)v9;
}
if ( a3 )
memcpy(v9, a2, a3);
v9[a3] = 0;
if ( a5 )
memcpy(&v9[a3 + 1], a4, a5);
v9[a3 + 1 + a5] = 0;
thai2sortable(v9, a3);
thai2sortable(&v9[a3 + 1], a5);
v10 = a5;
if ( a3 < a5 )
v10 = a3;
v11 = &v9[v10];
while ( v9 < v11 )
{
v12 = *v9;
v13 = v9[a3 + 1];
++v9;
if ( (_BYTE)v12 != (_BYTE)v13 )
{
v14 = v12 - v13;
goto LABEL_18;
}
}
v14 = 0;
if ( a3 != a5 )
{
if ( a3 >= a5 )
v14 = my_strnncollsp_padspace_bin((long long)v9, a3 - v10);
else
v14 = -(int)my_strnncollsp_padspace_bin((long long)&v9[a3 + 1], a5 - v10);
}
LABEL_18:
if ( v17 )
my_free(v17);
return v14;
}
| my_strnncollsp_tis620:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,R8
MOV qword ptr [RBP + -0x90],RCX
MOV R15,RDX
MOV RBX,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RSI,[RDX + R8*0x1]
ADD RSI,0x2
CMP RSI,0x51
JC 0x001b7de8
MOV EDX,0x8
XOR EDI,EDI
CALL 0x0019fe9d
MOV R12,RAX
MOV qword ptr [RBP + -0x88],RAX
JMP 0x001b7df7
LAB_001b7de8:
MOV qword ptr [RBP + -0x88],0x0
LEA R12,[RBP + -0x80]
LAB_001b7df7:
LEA R13,[R12 + R15*0x1]
TEST R15,R15
JZ 0x001b7e0e
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
CALL 0x00129080
LAB_001b7e0e:
LEA RBX,[R12 + R15*0x1]
INC RBX
MOV byte ptr [R13],0x0
TEST R14,R14
JZ 0x001b7e31
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x90]
MOV RDX,R14
CALL 0x00129080
LAB_001b7e31:
MOV byte ptr [RBX + R14*0x1],0x0
MOV RDI,R12
MOV RSI,R15
CALL 0x001b7f8f
MOV RDI,RBX
MOV RSI,R14
CALL 0x001b7f8f
CMP R15,R14
MOV RAX,R14
CMOVC RAX,R15
LEA RCX,[R12 + RAX*0x1]
LAB_001b7e5a:
CMP R12,RCX
JNC 0x001b7e77
MOVZX R13D,byte ptr [R12]
MOVZX EDX,byte ptr [R12 + R15*0x1 + 0x1]
INC R12
CMP R13B,DL
JZ 0x001b7e5a
SUB R13D,EDX
JMP 0x001b7eac
LAB_001b7e77:
XOR R13D,R13D
CMP R15,R14
JZ 0x001b7eac
JNC 0x001b7e9b
LEA RDI,[R15 + R12*0x1]
INC RDI
SUB R14,RAX
MOV RSI,R14
CALL 0x001ac4a5
MOV R13D,EAX
NEG R13D
JMP 0x001b7eac
LAB_001b7e9b:
SUB R15,RAX
MOV RDI,R12
MOV RSI,R15
CALL 0x001ac4a5
MOV R13D,EAX
LAB_001b7eac:
MOV RDI,qword ptr [RBP + -0x88]
TEST RDI,RDI
JZ 0x001b7ebd
CALL 0x001a00ca
LAB_001b7ebd:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001b7ede
MOV EAX,R13D
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b7ede:
CALL 0x00129250
|
int my_strnncollsp_tis620
(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5)
{
byte *pbVar1;
byte bVar2;
byte *__dest;
byte *pbVar3;
ulong uVar4;
int iVar5;
long in_FS_OFFSET;
byte *local_90;
byte local_88 [80];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar4 = param_3 + param_5 + 2;
if (uVar4 < 0x51) {
local_90 = (byte *)0x0;
__dest = local_88;
}
else {
__dest = (byte *)my_malloc(0,uVar4,8);
local_90 = __dest;
}
if (param_3 != 0) {
memcpy(__dest,param_2,param_3);
}
pbVar3 = __dest + param_3 + 1;
__dest[param_3] = 0;
if (param_5 != 0) {
memcpy(pbVar3,param_4,param_5);
}
pbVar3[param_5] = 0;
thai2sortable(__dest,param_3);
thai2sortable(pbVar3,param_5);
uVar4 = param_5;
if (param_3 < param_5) {
uVar4 = param_3;
}
pbVar3 = __dest + uVar4;
do {
if (pbVar3 <= __dest) {
iVar5 = 0;
if (param_3 != param_5) {
if (param_3 < param_5) {
iVar5 = my_strnncollsp_padspace_bin(__dest + param_3 + 1,param_5 - uVar4);
iVar5 = -iVar5;
}
else {
iVar5 = my_strnncollsp_padspace_bin(__dest,param_3 - uVar4);
}
}
goto LAB_001b7eac;
}
bVar2 = *__dest;
pbVar1 = __dest + param_3 + 1;
__dest = __dest + 1;
} while (bVar2 == *pbVar1);
iVar5 = (uint)bVar2 - (uint)*pbVar1;
LAB_001b7eac:
if (local_90 != (byte *)0x0) {
my_free();
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar5;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
50,076 | mp_add_ui | bluesky950520[P]quickjs/libbf.c | limb_t mp_add_ui(limb_t *tab, limb_t b, size_t n)
{
size_t i;
limb_t k, a;
k=b;
for(i=0;i<n;i++) {
if (k == 0)
break;
a = tab[i] + k;
k = (a < k);
tab[i] = a;
}
return k;
} | O0 | c | mp_add_ui:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq -0x10(%rsp), %rax
movq %rax, -0x28(%rsp)
movq $0x0, -0x20(%rsp)
movq -0x20(%rsp), %rax
cmpq -0x18(%rsp), %rax
jae 0xe615c
cmpq $0x0, -0x28(%rsp)
jne 0xe6108
jmp 0xe615c
movq -0x8(%rsp), %rax
movq -0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq -0x28(%rsp), %rax
movq %rax, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x28(%rsp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x28(%rsp)
movq -0x30(%rsp), %rdx
movq -0x8(%rsp), %rax
movq -0x20(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rsp)
jmp 0xe60f2
movq -0x28(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
| mp_add_ui:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov rax, [rsp+var_10]
mov [rsp+var_28], rax
mov [rsp+var_20], 0
loc_E60F2:
mov rax, [rsp+var_20]
cmp rax, [rsp+var_18]
jnb short loc_E615C
cmp [rsp+var_28], 0
jnz short loc_E6108
jmp short loc_E615C
loc_E6108:
mov rax, [rsp+var_8]
mov rcx, [rsp+var_20]
mov rax, [rax+rcx*8]
add rax, [rsp+var_28]
mov [rsp+var_30], rax
mov rax, [rsp+var_30]
cmp rax, [rsp+var_28]
setb al
and al, 1
movzx eax, al
cdqe
mov [rsp+var_28], rax
mov rdx, [rsp+var_30]
mov rax, [rsp+var_8]
mov rcx, [rsp+var_20]
mov [rax+rcx*8], rdx
mov rax, [rsp+var_20]
add rax, 1
mov [rsp+var_20], rax
jmp short loc_E60F2
loc_E615C:
mov rax, [rsp+var_28]
retn
| _BOOL8 mp_add_ui(long long a1, _BOOL8 a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-30h]
unsigned long long i; // [rsp+10h] [rbp-20h]
for ( i = 0LL; i < a3 && a2; ++i )
{
v4 = a2 + *(_QWORD *)(a1 + 8 * i);
a2 = v4 < a2;
*(_QWORD *)(a1 + 8 * i) = v4;
}
return a2;
}
| mp_add_ui:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV RAX,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x28],RAX
MOV qword ptr [RSP + -0x20],0x0
LAB_001e60f2:
MOV RAX,qword ptr [RSP + -0x20]
CMP RAX,qword ptr [RSP + -0x18]
JNC 0x001e615c
CMP qword ptr [RSP + -0x28],0x0
JNZ 0x001e6108
JMP 0x001e615c
LAB_001e6108:
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
ADD RAX,qword ptr [RSP + -0x28]
MOV qword ptr [RSP + -0x30],RAX
MOV RAX,qword ptr [RSP + -0x30]
CMP RAX,qword ptr [RSP + -0x28]
SETC AL
AND AL,0x1
MOVZX EAX,AL
CDQE
MOV qword ptr [RSP + -0x28],RAX
MOV RDX,qword ptr [RSP + -0x30]
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x20]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RSP + -0x20]
ADD RAX,0x1
MOV qword ptr [RSP + -0x20],RAX
JMP 0x001e60f2
LAB_001e615c:
MOV RAX,qword ptr [RSP + -0x28]
RET
|
ulong mp_add_ui(long param_1,ulong param_2,ulong param_3)
{
ulong uVar1;
ulong local_28;
ulong local_20;
local_20 = 0;
for (local_28 = param_2; (local_20 < param_3 && (local_28 != 0));
local_28 = (ulong)(int)(uint)(uVar1 < local_28)) {
uVar1 = *(long *)(param_1 + local_20 * 8) + local_28;
*(ulong *)(param_1 + local_20 * 8) = uVar1;
local_20 = local_20 + 1;
}
return local_28;
}
| |
50,077 | void nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_integer<unsigned char, 0>(unsigned char) | llama.cpp/common/json.hpp | void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_integer<unsigned char, 0>(unsigned char):
pushq %rbx
testq %rsi, %rsi
je 0xd3ab8
movq %rsi, %rcx
leaq 0x10(%rdi), %rsi
cmpq $0xa, %rcx
jae 0xd3ac9
leaq 0x11(%rdi), %r9
movl $0x1, %r8d
jmp 0xd3b94
movq (%rdi), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x30, %esi
popq %rbx
jmpq *%rax
movl $0x4, %r9d
movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B
movq %rcx, %r8
cmpq $0x63, %r8
jbe 0xd3b14
cmpq $0x3e7, %r8 # imm = 0x3E7
jbe 0xd3b1a
cmpq $0x2710, %r8 # imm = 0x2710
jb 0xd3b1d
movq %r8, %rax
mulq %r10
shrq $0xb, %rdx
addl $0x4, %r9d
cmpq $0x1869f, %r8 # imm = 0x1869F
movq %rdx, %r8
ja 0xd3adc
addl $-0x3, %r9d
jmp 0xd3b1d
addl $-0x2, %r9d
jmp 0xd3b1d
decl %r9d
cmpl $0x3f, %r9d
jae 0xd3bab
movl %r9d, %r8d
leaq (%rsi,%r8), %r9
cmpq $0x64, %rcx
jb 0xd3b76
movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3
leaq 0x52773(%rip), %r11 # 0x1262b8
movq %rcx, %rax
shrq $0x2, %rax
mulq %r10
shrq $0x2, %rdx
imull $0x64, %edx, %eax
movl %ecx, %ebx
subl %eax, %ebx
movzwl (%r11,%rbx,2), %eax
movw %ax, -0x2(%r9)
addq $-0x2, %r9
cmpq $0x270f, %rcx # imm = 0x270F
movq %rdx, %rcx
ja 0xd3b45
jmp 0xd3b79
movq %rcx, %rdx
cmpq $0xa, %rdx
jb 0xd3b91
leaq 0x52732(%rip), %rax # 0x1262b8
movzwl (%rax,%rdx,2), %eax
movw %ax, -0x2(%r9)
jmp 0xd3b9b
movq %rdx, %rcx
orb $0x30, %cl
movb %cl, -0x1(%r9)
movq (%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
movq %r8, %rdx
popq %rbx
jmpq *%rax
leaq 0x49066(%rip), %rdi # 0x11cc18
leaq 0x4182e(%rip), %rdx # 0x1153e7
leaq 0x4a451(%rip), %rcx # 0x11e011
movl $0x4952, %esi # imm = 0x4952
xorl %eax, %eax
callq 0x21fe0
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
push rbx
test rsi, rsi
jz short loc_D3AB8
mov rcx, rsi
lea rsi, [rdi+10h]
cmp rcx, 0Ah
jnb short loc_D3AC9
lea r9, [rdi+11h]
mov r8d, 1
jmp loc_D3B94
loc_D3AB8:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax]
mov esi, 30h ; '0'
pop rbx
jmp rax
loc_D3AC9:
mov r9d, 4
mov r10, 346DC5D63886594Bh
mov r8, rcx
loc_D3ADC:
cmp r8, 63h ; 'c'
jbe short loc_D3B14
cmp r8, 3E7h
jbe short loc_D3B1A
cmp r8, 2710h
jb short loc_D3B1D
mov rax, r8
mul r10
shr rdx, 0Bh
add r9d, 4
cmp r8, 1869Fh
mov r8, rdx
ja short loc_D3ADC
add r9d, 0FFFFFFFDh
jmp short loc_D3B1D
loc_D3B14:
add r9d, 0FFFFFFFEh
jmp short loc_D3B1D
loc_D3B1A:
dec r9d
loc_D3B1D:
cmp r9d, 3Fh ; '?'
jnb loc_D3BAB
mov r8d, r9d
lea r9, [rsi+r8]
cmp rcx, 64h ; 'd'
jb short loc_D3B76
mov r10, 28F5C28F5C28F5C3h
lea r11, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
loc_D3B45:
mov rax, rcx
shr rax, 2
mul r10
shr rdx, 2
imul eax, edx, 64h ; 'd'
mov ebx, ecx
sub ebx, eax
movzx eax, word ptr [r11+rbx*2]
mov [r9-2], ax
add r9, 0FFFFFFFFFFFFFFFEh
cmp rcx, 270Fh
mov rcx, rdx
ja short loc_D3B45
jmp short loc_D3B79
loc_D3B76:
mov rdx, rcx
loc_D3B79:
cmp rdx, 0Ah
jb short loc_D3B91
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rax+rdx*2]
mov [r9-2], ax
jmp short loc_D3B9B
loc_D3B91:
mov rcx, rdx
loc_D3B94:
or cl, 30h
mov [r9-1], cl
loc_D3B9B:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax+8]
mov rdx, r8
pop rbx
jmp rax
loc_D3BAB:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1"
mov esi, 4952h
xor eax, eax
call _ggml_abort
| long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
_QWORD *a1,
unsigned long long a2)
{
unsigned long long v2; // rcx
_QWORD *v3; // rsi
char *v4; // r9
long long v5; // r8
unsigned int v7; // r9d
unsigned long long v8; // r8
bool v9; // cc
unsigned long long v10; // rdx
if ( !a2 )
return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL);
v2 = a2;
v3 = a1 + 2;
if ( v2 < 0xA )
{
v4 = (char *)a1 + 17;
v5 = 1LL;
goto LABEL_21;
}
v7 = 4;
v8 = v2;
while ( 1 )
{
if ( v8 <= 0x63 )
{
v7 -= 2;
goto LABEL_13;
}
if ( v8 <= 0x3E7 )
break;
if ( v8 < 0x2710 )
goto LABEL_13;
v7 += 4;
v9 = v8 <= 0x1869F;
v8 /= 0x2710uLL;
if ( v9 )
{
v7 -= 3;
goto LABEL_13;
}
}
--v7;
LABEL_13:
if ( v7 < 0x3F )
{
v5 = v7;
v4 = (char *)v3 + v7;
if ( v2 < 0x64 )
{
v10 = v2;
}
else
{
do
{
v10 = v2 / 0x64;
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v2 % 0x64];
v4 -= 2;
v9 = v2 <= 0x270F;
v2 /= 0x64uLL;
}
while ( !v9 );
}
if ( v10 >= 0xA )
{
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v10];
return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
v3,
v5,
v2);
}
v2 = v10;
LABEL_21:
LOBYTE(v2) = v2 | 0x30;
*(v4 - 1) = v2;
return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
v3,
v5,
v2);
}
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
18770LL,
"GGML_ASSERT(%s) failed",
"n_chars < number_buffer.size() - 1");
return ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
18770LL);
}
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
PUSH RBX
TEST RSI,RSI
JZ 0x001d3ab8
MOV RCX,RSI
LEA RSI,[RDI + 0x10]
CMP RCX,0xa
JNC 0x001d3ac9
LEA R9,[RDI + 0x11]
MOV R8D,0x1
JMP 0x001d3b94
LAB_001d3ab8:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV ESI,0x30
POP RBX
JMP RAX
LAB_001d3ac9:
MOV R9D,0x4
MOV R10,0x346dc5d63886594b
MOV R8,RCX
LAB_001d3adc:
CMP R8,0x63
JBE 0x001d3b14
CMP R8,0x3e7
JBE 0x001d3b1a
CMP R8,0x2710
JC 0x001d3b1d
MOV RAX,R8
MUL R10
SHR RDX,0xb
ADD R9D,0x4
CMP R8,0x1869f
MOV R8,RDX
JA 0x001d3adc
ADD R9D,-0x3
JMP 0x001d3b1d
LAB_001d3b14:
ADD R9D,-0x2
JMP 0x001d3b1d
LAB_001d3b1a:
DEC R9D
LAB_001d3b1d:
CMP R9D,0x3f
JNC 0x001d3bab
MOV R8D,R9D
LEA R9,[RSI + R8*0x1]
CMP RCX,0x64
JC 0x001d3b76
MOV R10,0x28f5c28f5c28f5c3
LEA R11,[0x2262b8]
LAB_001d3b45:
MOV RAX,RCX
SHR RAX,0x2
MUL R10
SHR RDX,0x2
IMUL EAX,EDX,0x64
MOV EBX,ECX
SUB EBX,EAX
MOVZX EAX,word ptr [R11 + RBX*0x2]
MOV word ptr [R9 + -0x2],AX
ADD R9,-0x2
CMP RCX,0x270f
MOV RCX,RDX
JA 0x001d3b45
JMP 0x001d3b79
LAB_001d3b76:
MOV RDX,RCX
LAB_001d3b79:
CMP RDX,0xa
JC 0x001d3b91
LEA RAX,[0x2262b8]
MOVZX EAX,word ptr [RAX + RDX*0x2]
MOV word ptr [R9 + -0x2],AX
JMP 0x001d3b9b
LAB_001d3b91:
MOV RCX,RDX
LAB_001d3b94:
OR CL,0x30
MOV byte ptr [R9 + -0x1],CL
LAB_001d3b9b:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,R8
POP RBX
JMP RAX
LAB_001d3bab:
LEA RDI,[0x21cc18]
LEA RDX,[0x2153e7]
LEA RCX,[0x21e011]
MOV ESI,0x4952
XOR EAX,EAX
CALL 0x00121fe0
|
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_
(int8 *param_1,ulong param_2)
{
bool bVar1;
ulong uVar2;
ulong uVar3;
int iVar4;
long lVar5;
if (param_2 == 0) {
/* WARNING: Could not recover jumptable at 0x001d3ac7. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30);
return;
}
if (param_2 < 10) {
lVar5 = (long)param_1 + 0x11;
uVar3 = 1;
}
else {
uVar3 = 4;
uVar2 = param_2;
do {
iVar4 = (int)uVar3;
if (uVar2 < 100) {
uVar3 = (ulong)(iVar4 - 2);
goto LAB_001d3b1d;
}
if (uVar2 < 1000) {
uVar3 = (ulong)(iVar4 - 1);
goto LAB_001d3b1d;
}
if (uVar2 < 10000) goto LAB_001d3b1d;
uVar3 = (ulong)(iVar4 + 4);
bVar1 = 99999 < uVar2;
uVar2 = uVar2 / 10000;
} while (bVar1);
uVar3 = (ulong)(iVar4 + 1);
LAB_001d3b1d:
if (0x3e < (uint)uVar3) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x4952,
"GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1");
}
lVar5 = (long)(param_1 + 2) + uVar3;
if (99 < param_2) {
do {
uVar2 = param_2 / 100;
*(int2 *)(lVar5 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)(uint)((int)param_2 + (int)uVar2 * -100) * 2);
lVar5 = lVar5 + -2;
bVar1 = 9999 < param_2;
param_2 = uVar2;
} while (bVar1);
}
if (9 < param_2) {
*(int2 *)(lVar5 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ param_2 * 2);
goto LAB_001d3b9b;
}
}
*(byte *)(lVar5 + -1) = (byte)param_2 | 0x30;
LAB_001d3b9b:
/* WARNING: Could not recover jumptable at 0x001d3ba9. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,uVar3);
return;
}
| |
50,078 | my_convert_fix | eloqsql/strings/ctype.c | size_t
my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length,
CHARSET_INFO *from_cs, const char *from, size_t from_length,
size_t nchars,
MY_STRCOPY_STATUS *copy_status,
MY_STRCONV_STATUS *conv_status)
{
int cnvres;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb;
const uchar *from_end= (const uchar*) from + from_length;
uchar *to_end= (uchar*) to + to_length;
char *to_start= to;
DBUG_ASSERT(to_cs != &my_charset_bin);
DBUG_ASSERT(from_cs != &my_charset_bin);
copy_status->m_well_formed_error_pos= NULL;
conv_status->m_cannot_convert_error_pos= NULL;
for ( ; nchars; nchars--)
{
const char *from_prev= from;
if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0)
from+= cnvres;
else if (cnvres == MY_CS_ILSEQ)
{
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
else if (cnvres > MY_CS_TOOSMALL)
{
/*
A correct multibyte sequence detected
But it doesn't have Unicode mapping.
*/
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from;
from+= (-cnvres);
wc= '?';
}
else
{
if ((uchar *) from >= from_end)
break; // End of line
// Incomplete byte sequence
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
outp:
if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0)
to+= cnvres;
else if (cnvres == MY_CS_ILUNI && wc != '?')
{
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from_prev;
wc= '?';
goto outp;
}
else
{
from= from_prev;
break;
}
}
copy_status->m_source_end_pos= from;
return to - to_start;
} | O3 | c | my_convert_fix:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movq %rdx, %r12
movq %rdi, %r13
movq 0x20(%rbp), %rdi
movq 0x18(%rbp), %rdx
movq 0x10(%rbp), %r8
movq %rcx, -0x60(%rbp)
movq 0xb8(%rcx), %rax
movq 0x28(%rax), %rax
movq %rax, -0x58(%rbp)
movq 0xb8(%r13), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rax, (%rdi)
testq %r8, %r8
movq %rsi, -0x48(%rbp)
je 0xd1f6f
movq %r8, -0x50(%rbp)
addq %r14, %r9
movq %r9, -0x38(%rbp)
addq %rsi, %r12
movq %rsi, %rbx
movq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq *-0x58(%rbp)
movl %eax, %r15d
testl %eax, %eax
jle 0xd1ee7
movl %r15d, %r15d
addq %r14, %r15
movq -0x30(%rbp), %rsi
jmp 0xd1f1f
je 0xd1f0a
cmpl $-0x64, %r15d
jb 0xd1f04
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xd1efc
movq %r14, (%rax)
negl %r15d
addq %r14, %r15
jmp 0xd1f47
cmpq -0x38(%rbp), %r14
jae 0xd1f6a
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xd1f19
movq %r14, 0x8(%rax)
leaq 0x1(%r14), %r15
jmp 0xd1f47
movq %r13, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq *-0x40(%rbp)
testl %eax, %eax
jg 0xd1f56
testl %eax, %eax
jne 0xd1f6a
cmpq $0x3f, -0x30(%rbp)
je 0xd1f6a
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xd1f47
movq %r14, (%rax)
movq $0x3f, -0x30(%rbp)
movl $0x3f, %esi
jmp 0xd1f1f
movl %eax, %eax
addq %rax, %rbx
movq %r15, %r14
decq -0x50(%rbp)
jne 0xd1ec2
jmp 0xd1f75
movq %r14, %r15
jmp 0xd1f75
movq %r14, %r15
movq %rsi, %rbx
movq 0x18(%rbp), %rax
movq %r15, (%rax)
subq -0x48(%rbp), %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_convert_fix:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r8
mov r12, rdx
mov r13, rdi
mov rdi, [rbp+arg_10]
mov rdx, [rbp+arg_8]
mov r8, [rbp+arg_0]
mov [rbp+var_60], rcx
mov rax, [rcx+0B8h]
mov rax, [rax+28h]
mov [rbp+var_58], rax
mov rax, [r13+0B8h]
mov rax, [rax+30h]
mov [rbp+var_40], rax
xor eax, eax
mov [rdx+8], rax
mov [rdi], rax
test r8, r8
mov [rbp+var_48], rsi
jz loc_D1F6F
mov [rbp+var_50], r8
add r9, r14
mov [rbp+var_38], r9
add r12, rsi
mov rbx, rsi
loc_D1EC2:
mov rdi, [rbp+var_60]
lea rsi, [rbp+var_30]
mov rdx, r14
mov rcx, [rbp+var_38]
call [rbp+var_58]
mov r15d, eax
test eax, eax
jle short loc_D1EE7
mov r15d, r15d
add r15, r14
mov rsi, [rbp+var_30]
jmp short loc_D1F1F
loc_D1EE7:
jz short loc_D1F0A
cmp r15d, 0FFFFFF9Ch
jb short loc_D1F04
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_D1EFC
mov [rax], r14
loc_D1EFC:
neg r15d
add r15, r14
jmp short loc_D1F47
loc_D1F04:
cmp r14, [rbp+var_38]
jnb short loc_D1F6A
loc_D1F0A:
mov rax, [rbp+arg_8]
cmp qword ptr [rax+8], 0
jnz short loc_D1F19
mov [rax+8], r14
loc_D1F19:
lea r15, [r14+1]
jmp short loc_D1F47
loc_D1F1F:
mov rdi, r13
mov rdx, rbx
mov rcx, r12
call [rbp+var_40]
test eax, eax
jg short loc_D1F56
test eax, eax
jnz short loc_D1F6A
cmp [rbp+var_30], 3Fh ; '?'
jz short loc_D1F6A
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_D1F47
mov [rax], r14
loc_D1F47:
mov [rbp+var_30], 3Fh ; '?'
mov esi, 3Fh ; '?'
jmp short loc_D1F1F
loc_D1F56:
mov eax, eax
add rbx, rax
mov r14, r15
dec [rbp+var_50]
jnz loc_D1EC2
jmp short loc_D1F75
loc_D1F6A:
mov r15, r14
jmp short loc_D1F75
loc_D1F6F:
mov r15, r14
mov rbx, rsi
loc_D1F75:
mov rax, [rbp+arg_8]
mov [rax], r15
sub rbx, [rbp+var_48]
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_convert_fix(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
long long a6,
long long a7,
unsigned long long *a8,
unsigned long long *a9)
{
unsigned long long v9; // r14
long long v10; // r12
long long v11; // rbx
int v12; // eax
unsigned long long v13; // r15
long long v14; // rsi
int v15; // eax
long long ( *v18)(long long, long long *, unsigned long long, unsigned long long); // [rsp+8h] [rbp-58h]
long long v19; // [rsp+10h] [rbp-50h]
long long ( *v21)(long long, long long, long long, long long); // [rsp+20h] [rbp-40h]
unsigned long long v22; // [rsp+28h] [rbp-38h]
long long v23[6]; // [rsp+30h] [rbp-30h] BYREF
v9 = a5;
v18 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL);
v21 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL);
a8[1] = 0LL;
*a9 = 0LL;
if ( a7 )
{
v19 = a7;
v22 = a5 + a6;
v10 = a2 + a3;
v11 = a2;
while ( 1 )
{
v12 = v18(a4, v23, v9, v22);
if ( v12 > 0 )
{
v13 = v9 + (unsigned int)v12;
v14 = v23[0];
goto LABEL_14;
}
if ( !v12 )
goto LABEL_11;
if ( (unsigned int)v12 < 0xFFFFFF9C )
break;
if ( !*a9 )
*a9 = v9;
v13 = v9 + (unsigned int)-v12;
LABEL_19:
while ( 1 )
{
v23[0] = 63LL;
v14 = 63LL;
LABEL_14:
v15 = v21(a1, v14, v11, v10);
if ( v15 > 0 )
break;
if ( v15 || v23[0] == 63 )
goto LABEL_22;
if ( !*a9 )
*a9 = v9;
}
v11 += (unsigned int)v15;
v9 = v13;
if ( !--v19 )
goto LABEL_24;
}
if ( v9 < v22 )
{
LABEL_11:
if ( !a8[1] )
a8[1] = v9;
v13 = v9 + 1;
goto LABEL_19;
}
LABEL_22:
v13 = v9;
}
else
{
v13 = a5;
v11 = a2;
}
LABEL_24:
*a8 = v13;
return v11 - a2;
}
| my_convert_fix:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R8
MOV R12,RDX
MOV R13,RDI
MOV RDI,qword ptr [RBP + 0x20]
MOV RDX,qword ptr [RBP + 0x18]
MOV R8,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x60],RCX
MOV RAX,qword ptr [RCX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [R13 + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x40],RAX
XOR EAX,EAX
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RDI],RAX
TEST R8,R8
MOV qword ptr [RBP + -0x48],RSI
JZ 0x001d1f6f
MOV qword ptr [RBP + -0x50],R8
ADD R9,R14
MOV qword ptr [RBP + -0x38],R9
ADD R12,RSI
MOV RBX,RSI
LAB_001d1ec2:
MOV RDI,qword ptr [RBP + -0x60]
LEA RSI,[RBP + -0x30]
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x38]
CALL qword ptr [RBP + -0x58]
MOV R15D,EAX
TEST EAX,EAX
JLE 0x001d1ee7
MOV R15D,R15D
ADD R15,R14
MOV RSI,qword ptr [RBP + -0x30]
JMP 0x001d1f1f
LAB_001d1ee7:
JZ 0x001d1f0a
CMP R15D,-0x64
JC 0x001d1f04
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001d1efc
MOV qword ptr [RAX],R14
LAB_001d1efc:
NEG R15D
ADD R15,R14
JMP 0x001d1f47
LAB_001d1f04:
CMP R14,qword ptr [RBP + -0x38]
JNC 0x001d1f6a
LAB_001d1f0a:
MOV RAX,qword ptr [RBP + 0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001d1f19
MOV qword ptr [RAX + 0x8],R14
LAB_001d1f19:
LEA R15,[R14 + 0x1]
JMP 0x001d1f47
LAB_001d1f1f:
MOV RDI,R13
MOV RDX,RBX
MOV RCX,R12
CALL qword ptr [RBP + -0x40]
TEST EAX,EAX
JG 0x001d1f56
TEST EAX,EAX
JNZ 0x001d1f6a
CMP qword ptr [RBP + -0x30],0x3f
JZ 0x001d1f6a
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001d1f47
MOV qword ptr [RAX],R14
LAB_001d1f47:
MOV qword ptr [RBP + -0x30],0x3f
MOV ESI,0x3f
JMP 0x001d1f1f
LAB_001d1f56:
MOV EAX,EAX
ADD RBX,RAX
MOV R14,R15
DEC qword ptr [RBP + -0x50]
JNZ 0x001d1ec2
JMP 0x001d1f75
LAB_001d1f6a:
MOV R15,R14
JMP 0x001d1f75
LAB_001d1f6f:
MOV R15,R14
MOV RBX,RSI
LAB_001d1f75:
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX],R15
SUB RBX,qword ptr [RBP + -0x48]
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6,
long param_7,ulong *param_8,ulong *param_9)
{
code *pcVar1;
code *pcVar2;
uint uVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
long local_58;
long local_38;
pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28);
pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
param_8[1] = 0;
*param_9 = 0;
lVar4 = param_2;
uVar5 = param_5;
if (param_7 != 0) {
local_58 = param_7;
while( true ) {
uVar3 = (*pcVar1)(param_4,&local_38,uVar5,param_6 + param_5);
if ((int)uVar3 < 1) break;
uVar6 = uVar3 + uVar5;
while (uVar3 = (*pcVar2)(param_1,local_38,lVar4,param_3 + param_2), (int)uVar3 < 1) {
if ((uVar3 != 0) || (local_38 == 0x3f)) goto LAB_001d1f75;
if (*param_9 == 0) {
*param_9 = uVar5;
}
LAB_001d1f47:
local_38 = 0x3f;
}
lVar4 = lVar4 + (ulong)uVar3;
local_58 = local_58 + -1;
uVar5 = uVar6;
if (local_58 == 0) goto LAB_001d1f75;
}
if (uVar3 != 0) {
if (0xffffff9b < uVar3) {
if (*param_9 == 0) {
*param_9 = uVar5;
}
uVar6 = -uVar3 + uVar5;
goto LAB_001d1f47;
}
if (param_6 + param_5 <= uVar5) goto LAB_001d1f75;
}
if (param_8[1] == 0) {
param_8[1] = uVar5;
}
uVar6 = uVar5 + 1;
goto LAB_001d1f47;
}
LAB_001d1f75:
*param_8 = uVar5;
return lVar4 - param_2;
}
| |
50,079 | utf8_decode_buf8 | bluesky950520[P]quickjs/cutils.c | size_t utf8_decode_buf8(uint8_t *dest, size_t dest_len, const char *src, size_t src_len)
{
const uint8_t *p, *p_end;
size_t i;
p = (const uint8_t *)src;
p_end = p + src_len;
for (i = 0; p < p_end; i++) {
uint32_t c = *p++;
if (c >= 0xC0)
c = (c << 6) + *p++ - ((0xC0 << 6) + 0x80);
if (i < dest_len)
dest[i] = c;
}
if (i < dest_len)
dest[i] = '\0';
else if (dest_len > 0)
dest[dest_len - 1] = '\0';
return i;
} | O0 | c | utf8_decode_buf8:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq -0x18(%rsp), %rax
movq %rax, -0x28(%rsp)
movq -0x28(%rsp), %rax
addq -0x20(%rsp), %rax
movq %rax, -0x30(%rsp)
movq $0x0, -0x38(%rsp)
movq -0x28(%rsp), %rax
cmpq -0x30(%rsp), %rax
jae 0x1de1e
movq -0x28(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rsp)
movzbl (%rax), %eax
movl %eax, -0x3c(%rsp)
cmpl $0xc0, -0x3c(%rsp)
jb 0x1ddea
movl -0x3c(%rsp), %eax
shll $0x6, %eax
movq -0x28(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rsp)
movzbl (%rcx), %ecx
addl %ecx, %eax
subl $0x3080, %eax # imm = 0x3080
movl %eax, -0x3c(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x10(%rsp), %rax
jae 0x1de09
movl -0x3c(%rsp), %eax
movb %al, %dl
movq -0x8(%rsp), %rax
movq -0x38(%rsp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x1de0b
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x1dd96
movq -0x38(%rsp), %rax
cmpq -0x10(%rsp), %rax
jae 0x1de3a
movq -0x8(%rsp), %rax
movq -0x38(%rsp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x1de56
cmpq $0x0, -0x10(%rsp)
jbe 0x1de54
movq -0x8(%rsp), %rax
movq -0x10(%rsp), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x1de56
movq -0x38(%rsp), %rax
retq
nopl (%rax)
| utf8_decode_buf8:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov [rsp+var_20], rcx
mov rax, [rsp+var_18]
mov [rsp+var_28], rax
mov rax, [rsp+var_28]
add rax, [rsp+var_20]
mov [rsp+var_30], rax
mov [rsp+var_38], 0
loc_1DD96:
mov rax, [rsp+var_28]
cmp rax, [rsp+var_30]
jnb short loc_1DE1E
mov rax, [rsp+var_28]
mov rcx, rax
add rcx, 1
mov [rsp+var_28], rcx
movzx eax, byte ptr [rax]
mov [rsp+var_3C], eax
cmp [rsp+var_3C], 0C0h
jb short loc_1DDEA
mov eax, [rsp+var_3C]
shl eax, 6
mov rcx, [rsp+var_28]
mov rdx, rcx
add rdx, 1
mov [rsp+var_28], rdx
movzx ecx, byte ptr [rcx]
add eax, ecx
sub eax, 3080h
mov [rsp+var_3C], eax
loc_1DDEA:
mov rax, [rsp+var_38]
cmp rax, [rsp+var_10]
jnb short loc_1DE09
mov eax, [rsp+var_3C]
mov dl, al
mov rax, [rsp+var_8]
mov rcx, [rsp+var_38]
mov [rax+rcx], dl
loc_1DE09:
jmp short $+2
loc_1DE0B:
mov rax, [rsp+var_38]
add rax, 1
mov [rsp+var_38], rax
jmp loc_1DD96
loc_1DE1E:
mov rax, [rsp+var_38]
cmp rax, [rsp+var_10]
jnb short loc_1DE3A
mov rax, [rsp+var_8]
mov rcx, [rsp+var_38]
mov byte ptr [rax+rcx], 0
jmp short loc_1DE56
loc_1DE3A:
cmp [rsp+var_10], 0
jbe short loc_1DE54
mov rax, [rsp+var_8]
mov rcx, [rsp+var_10]
sub rcx, 1
mov byte ptr [rax+rcx], 0
loc_1DE54:
jmp short $+2
loc_1DE56:
mov rax, [rsp+var_38]
retn
| unsigned long long utf8_decode_buf8(long long a1, unsigned long long a2, unsigned __int8 *a3, long long a4)
{
unsigned __int8 *v4; // rax
unsigned __int8 *v5; // rcx
unsigned int v7; // [rsp+0h] [rbp-3Ch]
unsigned long long v8; // [rsp+4h] [rbp-38h]
unsigned long long v9; // [rsp+Ch] [rbp-30h]
unsigned __int8 *v10; // [rsp+14h] [rbp-28h]
v10 = a3;
v9 = (unsigned long long)&a3[a4];
v8 = 0LL;
while ( (unsigned long long)v10 < v9 )
{
v4 = v10++;
v7 = *v4;
if ( v7 >= 0xC0 )
{
v5 = v10++;
LOBYTE(v7) = *v5 + ((_BYTE)v7 << 6) + 0x80;
}
if ( v8 < a2 )
*(_BYTE *)(a1 + v8) = v7;
++v8;
}
if ( v8 >= a2 )
{
if ( a2 )
*(_BYTE *)(a1 + a2 - 1) = 0;
}
else
{
*(_BYTE *)(a1 + v8) = 0;
}
return v8;
}
| utf8_decode_buf8:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV qword ptr [RSP + -0x20],RCX
MOV RAX,qword ptr [RSP + -0x18]
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + -0x28]
ADD RAX,qword ptr [RSP + -0x20]
MOV qword ptr [RSP + -0x30],RAX
MOV qword ptr [RSP + -0x38],0x0
LAB_0011dd96:
MOV RAX,qword ptr [RSP + -0x28]
CMP RAX,qword ptr [RSP + -0x30]
JNC 0x0011de1e
MOV RAX,qword ptr [RSP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RSP + -0x28],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RSP + -0x3c],EAX
CMP dword ptr [RSP + -0x3c],0xc0
JC 0x0011ddea
MOV EAX,dword ptr [RSP + -0x3c]
SHL EAX,0x6
MOV RCX,qword ptr [RSP + -0x28]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RSP + -0x28],RDX
MOVZX ECX,byte ptr [RCX]
ADD EAX,ECX
SUB EAX,0x3080
MOV dword ptr [RSP + -0x3c],EAX
LAB_0011ddea:
MOV RAX,qword ptr [RSP + -0x38]
CMP RAX,qword ptr [RSP + -0x10]
JNC 0x0011de09
MOV EAX,dword ptr [RSP + -0x3c]
MOV DL,AL
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x38]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0011de09:
JMP 0x0011de0b
LAB_0011de0b:
MOV RAX,qword ptr [RSP + -0x38]
ADD RAX,0x1
MOV qword ptr [RSP + -0x38],RAX
JMP 0x0011dd96
LAB_0011de1e:
MOV RAX,qword ptr [RSP + -0x38]
CMP RAX,qword ptr [RSP + -0x10]
JNC 0x0011de3a
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x38]
MOV byte ptr [RAX + RCX*0x1],0x0
JMP 0x0011de56
LAB_0011de3a:
CMP qword ptr [RSP + -0x10],0x0
JBE 0x0011de54
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x10]
SUB RCX,0x1
MOV byte ptr [RAX + RCX*0x1],0x0
LAB_0011de54:
JMP 0x0011de56
LAB_0011de56:
MOV RAX,qword ptr [RSP + -0x38]
RET
|
ulong utf8_decode_buf8(long param_1,ulong param_2,byte *param_3,long param_4)
{
byte *pbVar1;
byte local_3c;
ulong local_38;
byte *local_28;
local_38 = 0;
local_28 = param_3;
while (local_28 < param_3 + param_4) {
local_3c = *local_28;
pbVar1 = local_28 + 1;
if (0xbf < local_3c) {
local_3c = local_3c * '@' + local_28[1] + 0x80;
pbVar1 = local_28 + 2;
}
local_28 = pbVar1;
if (local_38 < param_2) {
*(byte *)(param_1 + local_38) = local_3c;
}
local_38 = local_38 + 1;
}
if (local_38 < param_2) {
*(int1 *)(param_1 + local_38) = 0;
}
else if (param_2 != 0) {
*(int1 *)(param_1 + (param_2 - 1)) = 0;
}
return local_38;
}
| |
50,080 | parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) | llama.cpp/common/chat.cpp | static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) {
auto content_end = input.find(prefix);
size_t tc_start = std::string::npos;
common_chat_msg result;
result.role = "assistant";
if (content_end == std::string::npos) {
result.content = input;
} else {
tc_start = content_end + prefix.size() - rstrip_prefix;
result.content = input.substr(0, content_end);
auto tool_calls = json::parse(input.substr(tc_start));
for (const auto & tool_call : tool_calls) {
result.tool_calls.emplace_back(process_tool_call(tool_call));
}
}
return result;
} | O3 | cpp | parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbp
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %ebx, %ebx
movq %r14, %rdi
xorl %edx, %edx
callq 0x1d4d0
movq %rax, %r15
leaq 0x10(%rbp), %rax
movq %rax, (%rbp)
movq %rbx, 0x8(%rbp)
movb %bl, 0x10(%rbp)
leaq 0x30(%rbp), %rax
movq %rax, 0x20(%rbp)
movq %rbx, 0x28(%rbp)
movb %bl, 0x30(%rbp)
leaq 0x80(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbp)
movups %xmm0, 0x50(%rbp)
movups %xmm0, 0x60(%rbp)
movq %rax, 0x70(%rbp)
movq %rbx, 0x78(%rbp)
movb %bl, 0x80(%rbp)
leaq 0xa0(%rbp), %rax
movq %rax, 0x90(%rbp)
movq %rbx, 0x98(%rbp)
movb %bl, 0xa0(%rbp)
leaq 0xc0(%rbp), %rax
movq %rax, 0xb0(%rbp)
movq %rbx, 0xb8(%rbp)
movb %bl, 0xc0(%rbp)
movq %rbp, %rbx
leaq 0x8200b(%rip), %rcx # 0xd1c7b
movl $0x9, %r8d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1d6d0
leaq 0x20(%rbx), %rbp
cmpq $-0x1, %r15
je 0x4fe57
movq %rbx, 0x8(%rsp)
movq 0x8(%r13), %rbx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x1de20
subq %r12, %r15
addq %rbx, %r15
leaq 0x10(%rsp), %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1d720
movq (%r12), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fcdc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1d160
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x1de20
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x70(%rsp), %r12
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x5ae8e
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x4fd3e
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fd5a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1d160
leaq 0xc8(%rsp), %r14
movq %r12, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
movq %rbx, 0x18(%r14)
movq %r14, %rdi
callq 0x648d2
leaq 0xa8(%rsp), %r15
movq %r12, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq %rbx, 0x18(%r15)
movq %r15, %rdi
callq 0x64944
movq 0x8(%rsp), %rax
leaq 0x58(%rax), %r12
leaq 0x60(%rsp), %rbp
leaq 0x40(%rsp), %rbx
leaq 0x10(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x649aa
testb %al, %al
jne 0x4fe3e
movq %r14, %rdi
callq 0x5a5bc
movq %r13, %rdi
movq %rax, %rsi
callq 0x4ff0b
movq %r12, %rdi
movq %r13, %rsi
callq 0x88cba
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4fdfe
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1d160
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4fe15
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x1d160
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fe31
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1d160
movq %r14, %rdi
callq 0x5afba
jmp 0x4fdba
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60b38
movq %rbx, %rdi
callq 0x60bd8
jmp 0x4fe62
movq %rbp, %rdi
movq %r14, %rsi
callq 0x1dfe0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4feb6
movq %rax, %r14
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x4fe98
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fef9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1d160
jmp 0x4fef9
movq %rax, %rdi
callq 0x232f3
jmp 0x4fec7
jmp 0x4fec7
movq %rbx, 0x8(%rsp)
movq %rax, %r14
jmp 0x4fef9
jmp 0x4fedf
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x550f0
jmp 0x4fee2
jmp 0x4fedf
movq %rax, %r14
leaq 0x70(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r15, %rdi
callq 0x60bd8
movq 0x8(%rsp), %rdi
callq 0x3128c
movq %r14, %rdi
callq 0x1d8e0
| _ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbp, rdi
mov rsi, [rdx]
mov rcx, [rdx+8]
xor ebx, ebx
mov rdi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
mov r15, rax
lea rax, [rbp+10h]
mov [rbp+0], rax
mov [rbp+8], rbx
mov [rbp+10h], bl
lea rax, [rbp+30h]
mov [rbp+20h], rax
mov [rbp+28h], rbx
mov [rbp+30h], bl
lea rax, [rbp+80h]
xorps xmm0, xmm0
movups xmmword ptr [rbp+40h], xmm0
movups xmmword ptr [rbp+50h], xmm0
movups xmmword ptr [rbp+60h], xmm0
mov [rbp+70h], rax
mov [rbp+78h], rbx
mov [rbp+80h], bl
lea rax, [rbp+0A0h]
mov [rbp+90h], rax
mov [rbp+98h], rbx
mov [rbp+0A0h], bl
lea rax, [rbp+0C0h]
mov [rbp+0B0h], rax
mov [rbp+0B8h], rbx
mov [rbp+0C0h], bl
mov rbx, rbp
lea rcx, aYouAreAHelpful+12h; "assistant"
mov r8d, 9
mov rdi, rbp
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
lea rbp, [rbx+20h]
cmp r15, 0FFFFFFFFFFFFFFFFh
jz loc_4FE57
mov [rsp+118h+var_110], rbx
mov rbx, [r13+8]
lea rdi, [rsp+118h+var_108]
mov rsi, r14
xor edx, edx
mov rcx, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
sub r15, r12
add r15, rbx
lea r12, [rsp+118h+var_108]
mov rdi, rbp
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea rax, [rsp+118h+var_F8]
cmp rdi, rax
jz short loc_4FCDC
mov rsi, [rsp+118h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FCDC:
lea rdi, [rsp+118h+var_108]
mov rsi, r14
mov rdx, r15
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
xorps xmm0, xmm0
lea rdx, [rsp+118h+var_98]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea r12, [rsp+118h+var_A8]
lea rsi, [rsp+118h+var_108]
mov rdi, r12
mov ecx, 1
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rax, [rsp+118h+var_88]
test rax, rax
jz short loc_4FD3E
lea rdi, [rsp+118h+var_98]
mov rsi, rdi
mov edx, 3
call rax
loc_4FD3E:
mov rdi, [rsp+118h+var_108]; void *
lea rax, [rsp+118h+var_F8]
cmp rdi, rax
jz short loc_4FD5A
mov rsi, [rsp+118h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FD5A:
lea r14, [rsp+118h+var_50]
mov [r14], r12
xorps xmm0, xmm0
movups xmmword ptr [r14+8], xmm0
mov rbx, 8000000000000000h
mov [r14+18h], rbx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_begin(void)
lea r15, [rsp+118h+var_70]
mov [r15], r12
xorps xmm0, xmm0
movups xmmword ptr [r15+8], xmm0
mov [r15+18h], rbx
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
mov rax, [rsp+118h+var_110]
lea r12, [rax+58h]
lea rbp, [rsp+118h+var_B8]
lea rbx, [rsp+118h+var_D8]
lea r13, [rsp+118h+var_108]
loc_4FDBA:
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jnz short loc_4FE3E
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator*(void)
mov rdi, r13
mov rsi, rax
call _ZL17process_tool_callRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE; process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, r12
mov rsi, r13
call _ZNSt6vectorI21common_chat_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_chat_tool_call>::emplace_back<common_chat_tool_call>(common_chat_tool_call &&)
mov rdi, [rsp+118h+var_C8]; void *
cmp rdi, rbp
jz short loc_4FDFE
mov rsi, [rsp+118h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FDFE:
mov rdi, [rsp+118h+var_E8]; void *
cmp rdi, rbx
jz short loc_4FE15
mov rsi, [rsp+118h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FE15:
mov rdi, [rsp+118h+var_108]; void *
lea rax, [rsp+118h+var_F8]
cmp rdi, rax
jz short loc_4FE31
mov rsi, [rsp+118h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FE31:
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
jmp loc_4FDBA
loc_4FE3E:
lea rbx, [rsp+118h+var_A8]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_4FE62
loc_4FE57:
mov rdi, rbp
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_4FE62:
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_4FEB6
mov r14, rax
mov rax, [rsp+118h+var_88]
test rax, rax
jz short loc_4FE98
lea rdi, [rsp+118h+var_98]
mov rsi, rdi
mov edx, 3
call rax
loc_4FE98:
mov rdi, [rsp+118h+var_108]; void *
lea rax, [rsp+118h+var_F8]
cmp rdi, rax
jz short loc_4FEF9
mov rsi, [rsp+118h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_4FEF9
loc_4FEB6:
mov rdi, rax
call __clang_call_terminate
jmp short loc_4FEC7
jmp short loc_4FEC7
mov [rsp+118h+var_110], rbx
loc_4FEC7:
mov r14, rax
jmp short loc_4FEF9
jmp short loc_4FEDF
mov r14, rax
lea rdi, [rsp+118h+var_108]; this
call _ZN21common_chat_tool_callD2Ev; common_chat_tool_call::~common_chat_tool_call()
jmp short loc_4FEE2
jmp short $+2
loc_4FEDF:
mov r14, rax
loc_4FEE2:
lea r15, [rsp+118h+var_A8]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_4FEF9:
mov rdi, [rsp+118h+var_110]; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
mov rdi, r14
call __Unwind_Resume
| long long parse_prefixed_json_tool_call_array(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v6; // r15
long long v7; // rbx
long long v8; // r15
long long v9; // rax
void *v11[2]; // [rsp+10h] [rbp-108h] BYREF
_QWORD v12[2]; // [rsp+20h] [rbp-F8h] BYREF
void *v13; // [rsp+30h] [rbp-E8h]
long long v14; // [rsp+40h] [rbp-D8h] BYREF
void *v15; // [rsp+50h] [rbp-C8h]
long long v16; // [rsp+60h] [rbp-B8h] BYREF
_BYTE v17[16]; // [rsp+70h] [rbp-A8h] BYREF
__int128 v18; // [rsp+80h] [rbp-98h] BYREF
__int128 v19; // [rsp+90h] [rbp-88h]
_BYTE *v20; // [rsp+A8h] [rbp-70h] BYREF
__int128 v21; // [rsp+B0h] [rbp-68h]
unsigned long long v22; // [rsp+C0h] [rbp-58h]
_BYTE *v23; // [rsp+C8h] [rbp-50h] BYREF
__int128 v24; // [rsp+D0h] [rbp-48h]
unsigned long long v25; // [rsp+E0h] [rbp-38h]
v6 = std::string::find(a2, *a3, 0LL, a3[1]);
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 32) = a1 + 48;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = 0;
*(_OWORD *)(a1 + 64) = 0LL;
*(_OWORD *)(a1 + 80) = 0LL;
*(_OWORD *)(a1 + 96) = 0LL;
*(_QWORD *)(a1 + 112) = a1 + 128;
*(_QWORD *)(a1 + 120) = 0LL;
*(_BYTE *)(a1 + 128) = 0;
*(_QWORD *)(a1 + 144) = a1 + 160;
*(_QWORD *)(a1 + 152) = 0LL;
*(_BYTE *)(a1 + 160) = 0;
*(_QWORD *)(a1 + 176) = a1 + 192;
*(_QWORD *)(a1 + 184) = 0LL;
*(_BYTE *)(a1 + 192) = 0;
std::string::_M_replace(a1, 0LL, 0LL, "assistant", 9LL);
if ( v6 == -1 )
return std::string::_M_assign(a1 + 32, a2);
v7 = a3[1];
std::string::substr(v11, a2, 0LL, v6);
v8 = v7 + v6 - a4;
std::string::operator=(a1 + 32, v11);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
std::string::substr(v11, a2, v8, -1LL);
v19 = 0LL;
v18 = 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>::parse<std::string>(
v17,
v11,
&v18,
1LL,
0LL);
if ( (_QWORD)v19 )
((void ( *)(__int128 *, __int128 *, long long))v19)(&v18, &v18, 3LL);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
v23 = v17;
v24 = 0LL;
v25 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_begin(&v23);
v20 = v17;
v21 = 0LL;
v22 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(&v20);
while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v23,
&v20) )
{
v9 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator*(&v23);
process_tool_call(v11, v9);
std::vector<common_chat_tool_call>::emplace_back<common_chat_tool_call>(a1 + 88, v11);
if ( v15 != &v16 )
operator delete(v15, v16 + 1);
if ( v13 != &v14 )
operator delete(v13, v14 + 1);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator++(&v23);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(
v17,
0LL);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v17);
}
| parse_prefixed_json_tool_call_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBP,RDI
MOV RSI,qword ptr [RDX]
MOV RCX,qword ptr [RDX + 0x8]
XOR EBX,EBX
MOV RDI,R14
XOR EDX,EDX
CALL 0x0011d4d0
MOV R15,RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP],RAX
MOV qword ptr [RBP + 0x8],RBX
MOV byte ptr [RBP + 0x10],BL
LEA RAX,[RBP + 0x30]
MOV qword ptr [RBP + 0x20],RAX
MOV qword ptr [RBP + 0x28],RBX
MOV byte ptr [RBP + 0x30],BL
LEA RAX,[RBP + 0x80]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP + 0x40],XMM0
MOVUPS xmmword ptr [RBP + 0x50],XMM0
MOVUPS xmmword ptr [RBP + 0x60],XMM0
MOV qword ptr [RBP + 0x70],RAX
MOV qword ptr [RBP + 0x78],RBX
MOV byte ptr [RBP + 0x80],BL
LEA RAX,[RBP + 0xa0]
MOV qword ptr [RBP + 0x90],RAX
MOV qword ptr [RBP + 0x98],RBX
MOV byte ptr [RBP + 0xa0],BL
LEA RAX,[RBP + 0xc0]
MOV qword ptr [RBP + 0xb0],RAX
MOV qword ptr [RBP + 0xb8],RBX
MOV byte ptr [RBP + 0xc0],BL
MOV RBX,RBP
LAB_0014fc69:
LEA RCX,[0x1d1c7b]
MOV R8D,0x9
MOV RDI,RBP
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011d6d0
LEA RBP,[RBX + 0x20]
CMP R15,-0x1
JZ 0x0014fe57
MOV qword ptr [RSP + 0x8],RBX
MOV RBX,qword ptr [R13 + 0x8]
LAB_0014fc99:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
XOR EDX,EDX
MOV RCX,R15
CALL 0x0011de20
SUB R15,R12
ADD R15,RBX
LEA R12,[RSP + 0x10]
MOV RDI,RBP
MOV RSI,R12
CALL 0x0011d720
MOV RDI,qword ptr [R12]
LEA RAX,[RSP + 0x20]
CMP RDI,RAX
JZ 0x0014fcdc
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0011d160
LAB_0014fcdc:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV RDX,R15
MOV RCX,-0x1
CALL 0x0011de20
XORPS XMM0,XMM0
LEA RDX,[RSP + 0x80]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_0014fd05:
LEA R12,[RSP + 0x70]
LEA RSI,[RSP + 0x10]
MOV RDI,R12
MOV ECX,0x1
XOR R8D,R8D
CALL 0x0015ae8e
MOV RAX,qword ptr [RSP + 0x90]
TEST RAX,RAX
JZ 0x0014fd3e
LAB_0014fd2c:
LEA RDI,[RSP + 0x80]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0014fd3e:
MOV RDI,qword ptr [RSP + 0x10]
LEA RAX,[RSP + 0x20]
CMP RDI,RAX
JZ 0x0014fd5a
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0011d160
LAB_0014fd5a:
LEA R14,[RSP + 0xc8]
MOV qword ptr [R14],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV RBX,-0x8000000000000000
MOV qword ptr [R14 + 0x18],RBX
MOV RDI,R14
CALL 0x001648d2
LEA R15,[RSP + 0xa8]
MOV qword ptr [R15],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x8],XMM0
MOV qword ptr [R15 + 0x18],RBX
MOV RDI,R15
CALL 0x00164944
MOV RAX,qword ptr [RSP + 0x8]
LEA R12,[RAX + 0x58]
LEA RBP,[RSP + 0x60]
LEA RBX,[RSP + 0x40]
LEA R13,[RSP + 0x10]
LAB_0014fdba:
MOV RDI,R14
MOV RSI,R15
CALL 0x001649aa
TEST AL,AL
JNZ 0x0014fe3e
LAB_0014fdc9:
MOV RDI,R14
CALL 0x0015a5bc
LAB_0014fdd1:
MOV RDI,R13
MOV RSI,RAX
CALL 0x0014ff0b
LAB_0014fddc:
MOV RDI,R12
MOV RSI,R13
CALL 0x00188cba
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,RBP
JZ 0x0014fdfe
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x0011d160
LAB_0014fdfe:
MOV RDI,qword ptr [RSP + 0x30]
CMP RDI,RBX
JZ 0x0014fe15
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x0011d160
LAB_0014fe15:
MOV RDI,qword ptr [RSP + 0x10]
LEA RAX,[RSP + 0x20]
CMP RDI,RAX
JZ 0x0014fe31
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0011d160
LAB_0014fe31:
MOV RDI,R14
CALL 0x0015afba
JMP 0x0014fdba
LAB_0014fe3e:
LEA RBX,[RSP + 0x70]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,RBX
CALL 0x00160bd8
JMP 0x0014fe62
LAB_0014fe57:
MOV RDI,RBP
MOV RSI,R14
CALL 0x0011dfe0
LAB_0014fe62:
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&,
unsigned long) */
void parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3)
{
char cVar1;
long lVar2;
long *local_108 [2];
long local_f8 [2];
long *local_e8;
long local_d8 [2];
long *local_c8;
long local_b8 [2];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_a8 [16];
int8 local_98;
int8 uStack_90;
code *local_88;
int8 uStack_80;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
lVar2 = std::__cxx11::string::find((char *)param_2,*(ulong *)param_3,0);
*(string **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (string)0x0;
*(string **)(param_1 + 0x20) = param_1 + 0x30;
*(int8 *)(param_1 + 0x28) = 0;
param_1[0x30] = (string)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(string **)(param_1 + 0x70) = param_1 + 0x80;
*(int8 *)(param_1 + 0x78) = 0;
param_1[0x80] = (string)0x0;
*(string **)(param_1 + 0x90) = param_1 + 0xa0;
*(int8 *)(param_1 + 0x98) = 0;
param_1[0xa0] = (string)0x0;
*(string **)(param_1 + 0xb0) = param_1 + 0xc0;
*(int8 *)(param_1 + 0xb8) = 0;
param_1[0xc0] = (string)0x0;
/* try { // try from 0014fc69 to 0014fc81 has its CatchHandler @ 0014fec2 */
std::__cxx11::string::_M_replace((ulong)param_1,0,(char *)0x0,0x1d1c7b);
if (lVar2 == -1) {
/* try { // try from 0014fe57 to 0014fe61 has its CatchHandler @ 0014fec2 */
std::__cxx11::string::_M_assign(param_1 + 0x20);
}
else {
/* try { // try from 0014fc99 to 0014fcaa has its CatchHandler @ 0014fec0 */
std::__cxx11::string::substr((ulong)local_108,(ulong)param_2);
std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_108);
if (local_108[0] != local_f8) {
operator_delete(local_108[0],local_f8[0] + 1);
}
/* try { // try from 0014fcdc to 0014fcf2 has its CatchHandler @ 0014febe */
std::__cxx11::string::substr((ulong)local_108,(ulong)param_2);
local_88 = (code *)0x0;
uStack_80 = 0;
local_98 = 0;
uStack_90 = 0;
/* try { // try from 0014fd05 to 0014fd1e has its CatchHandler @ 0014fe76 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string>(local_a8,local_108,&local_98,1,0);
if (local_88 != (code *)0x0) {
/* try { // try from 0014fd2c to 0014fd3d has its CatchHandler @ 0014fe74 */
(*local_88)(&local_98,&local_98,3);
}
if (local_108[0] != local_f8) {
operator_delete(local_108[0],local_f8[0] + 1);
}
local_48 = 0;
uStack_40 = 0;
local_38 = 0x8000000000000000;
local_50 = local_a8;
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_50);
local_68 = 0;
uStack_60 = 0;
local_58 = 0x8000000000000000;
local_70 = local_a8;
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_70);
while( true ) {
/* try { // try from 0014fdba to 0014fdc4 has its CatchHandler @ 0014fedf */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_50,
(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_70);
if (cVar1 != '\0') break;
/* try { // try from 0014fdc9 to 0014fdd0 has its CatchHandler @ 0014fedd */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_50);
/* try { // try from 0014fdd1 to 0014fddb has its CatchHandler @ 0014fecc */
process_tool_call((basic_json *)local_108);
/* try { // try from 0014fddc to 0014fde6 has its CatchHandler @ 0014fece */
std::vector<common_chat_tool_call,std::allocator<common_chat_tool_call>>::
emplace_back<common_chat_tool_call>
((vector<common_chat_tool_call,std::allocator<common_chat_tool_call>> *)
(param_1 + 0x58),(common_chat_tool_call *)local_108);
if (local_c8 != local_b8) {
operator_delete(local_c8,local_b8[0] + 1);
}
if (local_e8 != local_d8) {
operator_delete(local_e8,local_d8[0] + 1);
}
if (local_108[0] != local_f8) {
operator_delete(local_108[0],local_f8[0] + 1);
}
/* try { // try from 0014fe31 to 0014fe38 has its CatchHandler @ 0014fedf */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_50);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)local_a8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_a8);
}
return;
}
| |
50,081 | LefDefParser::defiNonDefault::layerSpacing(int) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNonDefault.cpp | double defiNonDefault::layerSpacing(int index) const {
char msg[160];
if (index < 0 || index >= numLayers_) {
sprintf (msg, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again.",
index, numLayers_);
defiError(0, 6090, msg, defData);
return 0;
}
return spacing_[index];
} | O3 | cpp | LefDefParser::defiNonDefault::layerSpacing(int) const:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movl %esi, %edx
movq %rdi, %rbx
testl %esi, %esi
setns %al
movl 0xc(%rdi), %ecx
cmpl %esi, %ecx
setg %sil
testb %sil, %al
je 0x291fd
movq 0x40(%rbx), %rax
movl %edx, %ecx
movsd (%rax,%rcx,8), %xmm0
jmp 0x2922a
leaq 0x1a3e7(%rip), %rsi # 0x435eb
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x6060
movq 0xb8(%rbx), %rcx
xorl %edi, %edi
movl $0x17ca, %esi # imm = 0x17CA
movq %r14, %rdx
callq 0x18f80
xorps %xmm0, %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZNK12LefDefParser14defiNonDefault12layerSpacingEi:
push r14
push rbx
sub rsp, 0A8h
mov edx, esi
mov rbx, rdi
test esi, esi
setns al
mov ecx, [rdi+0Ch]
cmp ecx, esi
setnle sil
test al, sil
jz short loc_291FD
mov rax, [rbx+40h]
mov ecx, edx
movsd xmm0, qword ptr [rax+rcx*8]
jmp short loc_2922A
loc_291FD:
lea rsi, aErrorDefpars60_8; "ERROR (DEFPARS-6090): The index number "...
mov r14, rsp
mov rdi, r14
xor eax, eax
call _sprintf
mov rcx, [rbx+0B8h]; LefDefParser::defrData *
xor edi, edi; this
mov esi, 17CAh; int
mov rdx, r14; char *
call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *)
xorps xmm0, xmm0
loc_2922A:
add rsp, 0A8h
pop rbx
pop r14
retn
| double LefDefParser::defiNonDefault::layerSpacing(LefDefParser::defiNonDefault *this, signed int a2)
{
int v2; // ecx
LefDefParser::defrData *v4; // r8
char v5[184]; // [rsp+0h] [rbp-B8h] BYREF
v2 = *((_DWORD *)this + 3);
if ( v2 > a2 && a2 >= 0 )
return *(double *)(*((_QWORD *)this + 8) + 8LL * (unsigned int)a2);
sprintf(
v5,
"ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\n"
"Valid index is from 0 to %d. Specify a valid index number and then try again.",
a2,
v2);
LefDefParser::defiError(0LL, 6090, v5, *((LefDefParser::defrData **)this + 23), v4);
return 0.0;
}
| layerSpacing:
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV EDX,ESI
MOV RBX,RDI
TEST ESI,ESI
SETNS AL
MOV ECX,dword ptr [RDI + 0xc]
CMP ECX,ESI
SETG SIL
TEST AL,SIL
JZ 0x001291fd
MOV RAX,qword ptr [RBX + 0x40]
MOV ECX,EDX
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
JMP 0x0012922a
LAB_001291fd:
LEA RSI,[0x1435eb]
MOV R14,RSP
MOV RDI,R14
XOR EAX,EAX
CALL 0x00106060
MOV RCX,qword ptr [RBX + 0xb8]
XOR EDI,EDI
MOV ESI,0x17ca
MOV RDX,R14
CALL 0x00118f80
XORPS XMM0,XMM0
LAB_0012922a:
ADD RSP,0xa8
POP RBX
POP R14
RET
|
/* LefDefParser::defiNonDefault::layerSpacing(int) const */
int8 __thiscall LefDefParser::defiNonDefault::layerSpacing(defiNonDefault *this,int param_1)
{
int8 uVar1;
char acStack_b8 [168];
if (param_1 < 0 || *(int *)(this + 0xc) <= param_1) {
sprintf(acStack_b8,
"ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again."
);
defiError(0,0x17ca,acStack_b8,*(defrData **)(this + 0xb8));
uVar1 = 0;
}
else {
uVar1 = *(int8 *)(*(long *)(this + 0x40) + (ulong)(uint)param_1 * 8);
}
return uVar1;
}
| |
50,082 | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x665da(%rip), %rsi # 0xcf26c
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2ac52
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl %ebp, %edx
callq 0x65530
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x655a6
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x654c7
leaq 0x10(%rsp), %rdi
callq 0x27998
leaq 0x50(%rsp), %rdi
callq 0x27998
leaq 0x30(%rsp), %rdi
callq 0x27998
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x695e6
leaq 0x70(%rsp), %rdi
callq 0x27998
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x68d4b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27998
jmp 0x68d37
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x27998
jmp 0x68d46
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x27998
jmp 0x68d55
movq %rax, %rbx
movq %rbx, %rdi
callq 0x27660
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r14
push rbx
sub rsp, 90h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aOutOfRange; "out_of_range"
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_58]
lea rsi, [rsp+0A8h+var_78]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_98]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr))
lea rdi, [rsp+0A8h+var_38]
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_98]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_38]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*)
lea rdi, [rsp+0A8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 90h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_68]
jmp short loc_68D4B
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_68D37
mov rbx, rax
loc_68D37:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_68D46
mov rbx, rax
loc_68D46:
lea rdi, [rsp+arg_28]; void *
loc_68D4B:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_68D55
mov rbx, rax
loc_68D55:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::out_of_range *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+10h] [rbp-98h] BYREF
_QWORD v6[4]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v7[32]; // [rsp+50h] [rbp-58h] BYREF
char *v8[7]; // [rsp+70h] [rbp-38h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"out_of_range");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00168c8b:
LEA RSI,[0x1cf26c]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x0012ac52
LAB_00168ca1:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
MOV EDX,EBP
CALL 0x00165530
LAB_00168cb2:
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
CALL 0x001655a6
LAB_00168cbe:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x10]
MOV RCX,R14
CALL 0x001654c7
LEA RDI,[RSP + 0x10]
CALL 0x00127998
LEA RDI,[RSP + 0x50]
CALL 0x00127998
LEA RDI,[RSP + 0x30]
CALL 0x00127998
MOV RDX,qword ptr [RSP + 0x70]
LAB_00168cf8:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001695e6
LAB_00168d02:
LEA RDI,[RSP + 0x70]
CALL 0x00127998
MOV RAX,RBX
ADD RSP,0x90
POP RBX
POP R14
POP RBP
RET
|
out_of_range *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(out_of_range *param_1,int param_2,string *param_3)
{
allocator local_99;
string local_98 [32];
string local_78 [32];
exception local_58 [32];
char *local_38 [4];
/* try { // try from 00168c8b to 00168ca0 has its CatchHandler @ 00168d52 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"out_of_range",&local_99);
/* try { // try from 00168ca1 to 00168cb1 has its CatchHandler @ 00168d43 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_58,local_78,param_2);
/* try { // try from 00168cb2 to 00168cbd has its CatchHandler @ 00168d34 */
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_
((_func_decltype_nullptr *)local_98);
/* try { // try from 00168cbe to 00168cd4 has its CatchHandler @ 00168d25 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_38,(string *)local_58,local_98,param_3);
std::__cxx11::string::~string(local_98);
std::__cxx11::string::~string((string *)local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 00168cf8 to 00168d01 has its CatchHandler @ 00168d1b */
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_38[0]);
std::__cxx11::string::~string((string *)local_38);
return param_1;
}
| |
50,083 | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | ForNode(const Location & location, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
: TemplateNode(location), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {} | O2 | cpp | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
callq 0x576ea
leaq 0x7832c(%rip), %rax # 0xd00a0
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x36ec2
andq $0x0, 0x40(%rbx)
movups (%r12), %xmm0
andq $0x0, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
andq $0x0, (%r12)
movq 0x38(%rsp), %rax
andq $0x0, 0x50(%rbx)
movups (%r15), %xmm0
andq $0x0, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
andq $0x0, (%r15)
movb 0x30(%rsp), %cl
andq $0x0, 0x60(%rbx)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
andq $0x0, (%r14)
movb %cl, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movups (%rax), %xmm0
andq $0x0, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
andq $0x0, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x5c6c6
movq %r14, %rdi
callq 0x20b90
| _ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
and qword ptr [rbx+40h], 0
movups xmm0, xmmword ptr [r12]
and qword ptr [r12+8], 0
movups xmmword ptr [rbx+38h], xmm0
and qword ptr [r12], 0
mov rax, [rsp+28h+arg_8]
and qword ptr [rbx+50h], 0
movups xmm0, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [rbx+48h], xmm0
and qword ptr [r15], 0
mov cl, [rsp+28h+arg_0]
and qword ptr [rbx+60h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [rbx+58h], xmm0
and qword ptr [r14], 0
mov [rbx+68h], cl
and qword ptr [rbx+78h], 0
movups xmm0, xmmword ptr [rax]
and qword ptr [rax+8], 0
movups xmmword ptr [rbx+70h], xmm0
and qword ptr [rax], 0
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
mov rdi, r14
call __Unwind_Resume
| long long minja::ForNode::ForNode(
long long a1,
_QWORD *a2,
_QWORD *a3,
__int128 *a4,
__int128 *a5,
__int128 *a6,
char a7,
__int128 *a8)
{
__int128 v12; // xmm0
long long result; // rax
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector((_QWORD *)(a1 + 32), a3);
*(_QWORD *)(a1 + 64) = 0LL;
v12 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v12;
*(_QWORD *)a4 = 0LL;
result = (long long)a8;
*(_QWORD *)(a1 + 80) = 0LL;
v14 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v14;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v15 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v15;
*(_QWORD *)a6 = 0LL;
*(_BYTE *)(a1 + 104) = a7;
*(_QWORD *)(a1 + 120) = 0LL;
v16 = *a8;
*((_QWORD *)a8 + 1) = 0LL;
*(_OWORD *)(a1 + 112) = v16;
*(_QWORD *)a8 = 0LL;
return result;
}
| ForNode:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
CALL 0x001576ea
LEA RAX,[0x1d00a0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_00157d7f:
MOV RSI,R13
CALL 0x00136ec2
LAB_00157d87:
AND qword ptr [RBX + 0x40],0x0
MOVUPS XMM0,xmmword ptr [R12]
AND qword ptr [R12 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x38],XMM0
AND qword ptr [R12],0x0
MOV RAX,qword ptr [RSP + 0x38]
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM0,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
AND qword ptr [R15],0x0
MOV CL,byte ptr [RSP + 0x30]
AND qword ptr [RBX + 0x60],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
AND qword ptr [R14],0x0
MOV byte ptr [RBX + 0x68],CL
AND qword ptr [RBX + 0x78],0x0
MOVUPS XMM0,xmmword ptr [RAX]
AND qword ptr [RAX + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x70],XMM0
AND qword ptr [RAX],0x0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::ForNode::ForNode
(ForNode *this,Location *param_1,vector *param_2,shared_ptr *param_3,shared_ptr *param_4,
shared_ptr *param_5,bool param_6,shared_ptr *param_7)
{
int8 uVar1;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_001d00b0;
/* try { // try from 00157d7f to 00157d86 has its CatchHandler @ 00157df7 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x20),
param_2);
*(int8 *)(this + 0x40) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar1;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar1 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar1;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar1 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar1;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar1 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar1;
*(int8 *)param_7 = 0;
return;
}
| |
50,084 | bool fmt::v11::detail::loc_writer<char>::operator()<long long, 0>(long long) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h | auto operator()(T value) -> bool {
auto arg = make_write_int_arg(value, specs.sign());
write_int(out, static_cast<uint64_or_128_t<T>>(arg.abs_value), arg.prefix,
specs, digit_grouping<Char>(grouping, sep));
return true;
} | O0 | c | bool fmt::v11::detail::loc_writer<char>::operator()<long long, 0>(long long):
subq $0x168, %rsp # imm = 0x168
movq %rsi, 0x150(%rsp)
movq %rdx, 0x158(%rsp)
movq 0x150(%rsp), %rax
movq 0x158(%rsp), %rcx
movq %rdi, 0x148(%rsp)
movq %rcx, 0x138(%rsp)
movq %rax, 0x130(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x130(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x138(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rdi
callq 0xae670
movq 0x10(%rsp), %rdx
movl %eax, %ecx
movq 0x18(%rsp), %rax
movq %rdx, 0x108(%rsp)
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rdx
leaq 0x110(%rsp), %rdi
callq 0xc1200
movq 0x40(%rsp), %rsi
movq (%rsi), %rax
movq %rax, 0xf8(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x120(%rsp), %eax
movl %eax, 0x34(%rsp)
movq 0x8(%rsi), %rax
movq %rax, 0x38(%rsp)
addq $0x30, %rsi
leaq 0x98(%rsp), %rdi
callq 0x12510
movq 0x40(%rsp), %rsi
addq $0x10, %rsi
leaq 0x78(%rsp), %rdi
callq 0x12510
jmp 0xc628c
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0xc6ba0
jmp 0xc62a8
movq 0x38(%rsp), %r8
movl 0x34(%rsp), %ecx
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rdx
movq 0xf8(%rsp), %rdi
movq %rdx, 0x50(%rsp)
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq 0xb8(%rsp), %r9
callq 0xc6fc0
movq %rax, 0x8(%rsp)
jmp 0xc62eb
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xb1490
leaq 0x78(%rsp), %rdi
callq 0x13768
leaq 0x98(%rsp), %rdi
callq 0x13768
movb $0x1, %al
andb $0x1, %al
addq $0x168, %rsp # imm = 0x168
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0xc636a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0xc6360
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xb1490
leaq 0x78(%rsp), %rdi
callq 0x13768
leaq 0x98(%rsp), %rdi
callq 0x13768
movq 0x70(%rsp), %rdi
callq 0x13540
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN3fmt3v116detail10loc_writerIcEclInTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_:
sub rsp, 168h
mov [rsp+168h+var_18], rsi
mov [rsp+168h+var_10], rdx
mov rax, [rsp+168h+var_18]
mov rcx, [rsp+168h+var_10]
mov [rsp+168h+var_20], rdi
mov [rsp+168h+var_30], rcx
mov [rsp+168h+var_38], rax
mov rax, [rsp+168h+var_20]
mov [rsp+168h+var_128], rax
mov rcx, [rsp+168h+var_38]
mov [rsp+168h+var_150], rcx
mov rcx, [rsp+168h+var_30]
mov [rsp+168h+var_158], rcx
mov rdi, [rax+8]; this
call _ZNK3fmt3v1111basic_specs4signEv; fmt::v11::basic_specs::sign(void)
mov rdx, [rsp+168h+var_158]
mov ecx, eax
mov rax, [rsp+168h+var_150]
mov [rsp+168h+var_60], rdx
mov [rsp+168h+var_68], rax
mov rsi, [rsp+168h+var_68]
mov rdx, [rsp+168h+var_60]
lea rdi, [rsp+168h+var_58]
call _ZN3fmt3v116detail18make_write_int_argInEENS1_13write_int_argINSt11conditionalIXaalecl8num_bitsIT_EELi32EntLi0EEjNS4_IXlecl8num_bitsIS5_EELi64EEmoE4typeEE4typeEEES5_NS0_4signE; fmt::v11::detail::make_write_int_arg<__int128>(__int128,fmt::v11::sign)
mov rsi, [rsp+168h+var_128]
mov rax, [rsi]
mov [rsp+168h+var_70], rax
mov rax, [rsp+168h+var_58]
mov [rsp+168h+var_148], rax
mov rax, [rsp+168h+var_50]
mov [rsp+168h+var_140], rax
mov eax, [rsp+168h+var_48]
mov [rsp+168h+var_134], eax
mov rax, [rsi+8]
mov [rsp+168h+var_130], rax
add rsi, 30h ; '0'
lea rdi, [rsp+168h+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
mov rsi, [rsp+168h+var_128]
add rsi, 10h
lea rdi, [rsp+168h+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_C628C:
lea rdi, [rsp+168h+var_B0]
lea rsi, [rsp+168h+var_D0]
lea rdx, [rsp+168h+var_F0]
call _ZN3fmt3v116detail14digit_groupingIcEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_; fmt::v11::detail::digit_grouping<char>::digit_grouping(std::string,std::string)
jmp short $+2
loc_C62A8:
mov r8, [rsp+168h+var_130]
mov ecx, [rsp+168h+var_134]
mov rax, [rsp+168h+var_140]
mov rdx, [rsp+168h+var_148]
mov rdi, [rsp+168h+var_70]
mov [rsp+168h+var_118], rdx
mov [rsp+168h+var_110], rax
mov rsi, [rsp+168h+var_118]
mov rdx, [rsp+168h+var_110]
lea r9, [rsp+168h+var_B0]
call _ZN3fmt3v116detail9write_intINS0_14basic_appenderIcEEocEET_S5_T0_jRKNS0_12format_specsERKNS1_14digit_groupingIT1_EE; fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned __int128,char>(fmt::v11::basic_appender<char>,unsigned __int128,uint,fmt::v11::format_specs const&,fmt::v11::detail::digit_grouping<char> const&)
mov [rsp+168h+var_160], rax
jmp short $+2
loc_C62EB:
mov rax, [rsp+168h+var_160]
mov [rsp+168h+var_120], rax
lea rdi, [rsp+168h+var_B0]
call _ZN3fmt3v116detail14digit_groupingIcED2Ev; fmt::v11::detail::digit_grouping<char>::~digit_grouping()
lea rdi, [rsp+168h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+168h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov al, 1
and al, 1
add rsp, 168h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
jmp short loc_C636A
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
jmp short loc_C6360
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
lea rdi, [rsp+arg_B0]
call _ZN3fmt3v116detail14digit_groupingIcED2Ev; fmt::v11::detail::digit_grouping<char>::~digit_grouping()
loc_C6360:
lea rdi, [rsp+arg_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C636A:
lea rdi, [rsp+arg_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_68]
call __Unwind_Resume
| _ZN3fmt3v116detail10loc_writerIcEclInTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_:
SUB RSP,0x168
MOV qword ptr [RSP + 0x150],RSI
MOV qword ptr [RSP + 0x158],RDX
MOV RAX,qword ptr [RSP + 0x150]
MOV RCX,qword ptr [RSP + 0x158]
MOV qword ptr [RSP + 0x148],RDI
MOV qword ptr [RSP + 0x138],RCX
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0x148]
MOV qword ptr [RSP + 0x40],RAX
MOV RCX,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x18],RCX
MOV RCX,qword ptr [RSP + 0x138]
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001ae670
MOV RDX,qword ptr [RSP + 0x10]
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x108],RDX
MOV qword ptr [RSP + 0x100],RAX
MOV RSI,qword ptr [RSP + 0x100]
MOV RDX,qword ptr [RSP + 0x108]
LEA RDI,[RSP + 0x110]
CALL 0x001c1200
MOV RSI,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSI]
MOV qword ptr [RSP + 0xf8],RAX
MOV RAX,qword ptr [RSP + 0x110]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x118]
MOV qword ptr [RSP + 0x28],RAX
MOV EAX,dword ptr [RSP + 0x120]
MOV dword ptr [RSP + 0x34],EAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RSP + 0x38],RAX
ADD RSI,0x30
LEA RDI,[RSP + 0x98]
CALL 0x00112510
MOV RSI,qword ptr [RSP + 0x40]
ADD RSI,0x10
LAB_001c6280:
LEA RDI,[RSP + 0x78]
CALL 0x00112510
JMP 0x001c628c
LAB_001c628c:
LEA RDI,[RSP + 0xb8]
LEA RSI,[RSP + 0x98]
LEA RDX,[RSP + 0x78]
CALL 0x001c6ba0
JMP 0x001c62a8
LAB_001c62a8:
MOV R8,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RSP + 0x34]
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0xf8]
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x58],RAX
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
LAB_001c62d7:
LEA R9,[RSP + 0xb8]
CALL 0x001c6fc0
LAB_001c62e4:
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001c62eb
LAB_001c62eb:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x48],RAX
LEA RDI,[RSP + 0xb8]
CALL 0x001b1490
LEA RDI,[RSP + 0x78]
CALL 0x00113768
LEA RDI,[RSP + 0x98]
CALL 0x00113768
MOV AL,0x1
AND AL,0x1
ADD RSP,0x168
RET
|
int8
_ZN3fmt3v116detail10loc_writerIcEclInTnNSt9enable_ifIXsr10is_integerIT_EE5valueEiE4typeELi0EEEbS6_
(int8 *param_1,int8 param_2,int8 param_3)
{
int8 uVar1;
int4 uVar2;
string local_f0 [32];
string local_d0 [32];
digit_grouping<char> local_b0 [64];
detail *local_70;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int4 local_48;
int8 local_38;
int8 local_30;
int8 *local_20;
int8 local_18;
int8 local_10;
local_38 = param_2;
local_30 = param_3;
local_20 = param_1;
local_18 = param_2;
local_10 = param_3;
uVar2 = fmt::v11::basic_specs::sign((basic_specs *)param_1[1]);
local_68 = param_2;
local_60 = param_3;
fmt::v11::detail::write_int_arg<std::
conditional<(((num_bits<__int128>)())<=(32))&&(!(0)),unsigned_int,std::
conditional<((num_bits<__int128>)())<=(64),unsigned_long,unsigned__int128>::type>::type>fmt::v11::
detail::make_write_int_arg<__int128>(&local_58,param_2,param_3,uVar2);
local_70 = (detail *)*param_1;
uVar1 = param_1[1];
std::__cxx11::string::string(local_d0,(string *)(param_1 + 6));
/* try { // try from 001c6280 to 001c6289 has its CatchHandler @ 001c6325 */
std::__cxx11::string::string(local_f0,(string *)(param_1 + 2));
/* try { // try from 001c628c to 001c62a5 has its CatchHandler @ 001c6335 */
fmt::v11::detail::digit_grouping<char>::digit_grouping(local_b0,local_d0,local_f0);
/* try { // try from 001c62d7 to 001c62e3 has its CatchHandler @ 001c6345 */
fmt::v11::detail::write_int<fmt::v11::basic_appender<char>,unsigned__int128,char>
(local_70,local_58,local_50,local_48,uVar1,local_b0);
fmt::v11::detail::digit_grouping<char>::~digit_grouping(local_b0);
std::__cxx11::string::~string(local_f0);
std::__cxx11::string::~string(local_d0);
return 1;
}
| ||
50,085 | minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char) | monkey531[P]llama/common/minja.hpp | static void dump_string(const json & primitive, std::ostringstream & out, char string_quote = '\'') {
if (!primitive.is_string()) throw std::runtime_error("Value is not a string: " + primitive.dump());
auto s = primitive.dump();
if (string_quote == '"' || s.find('\'') != std::string::npos) {
out << s;
return;
}
// Reuse json dump, just changing string quotes
out << string_quote;
for (size_t i = 1, n = s.size() - 1; i < n; ++i) {
if (s[i] == '\\' && s[i + 1] == '"') {
out << '"';
i++;
} else if (s[i] == string_quote) {
out << '\\' << string_quote;
} else {
out << s[i];
}
}
out << string_quote;
} | O1 | cpp | minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x3eb17
movl %edx, %ebp
movq %rsi, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2bc96
cmpb $0x22, %bpl
je 0x3ea17
movq %rsp, %rdi
movl $0x27, %esi
xorl %edx, %edx
callq 0x18850
cmpq $-0x1, %rax
je 0x3ea50
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x18770
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ea43
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x18770
movq 0x8(%rsp), %r15
decq %r15
cmpq $0x2, %r15
jb 0x3eafd
movl $0x1, %r12d
leaq 0x20(%rsp), %r14
movq (%rsp), %rcx
movb (%rcx,%r12), %al
cmpb $0x5c, %al
jne 0x3eab0
cmpb $0x22, 0x1(%rcx,%r12)
jne 0x3eab0
movb $0x22, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18770
incq %r12
jmp 0x3eaf5
cmpb %bpl, %al
jne 0x3eae1
movb $0x5c, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18770
movb %bpl, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x18770
jmp 0x3eaf5
movb %al, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18770
incq %r12
cmpq %r15, %r12
jb 0x3ea82
leaq 0x20(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x18770
jmp 0x3ea28
movl $0x10, %edi
callq 0x18350
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2bc96
leaq 0x6cd17(%rip), %rsi # 0xab85f
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x2463f
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x18a80
xorl %ebp, %ebp
movq 0x9f484(%rip), %rsi # 0xddff0
movq 0x9f3fd(%rip), %rdx # 0xddf70
movq %rbx, %rdi
callq 0x18b30
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3eba1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x3eba1
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ebc4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x3ebc4
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x3ebf3
movq %rbx, %rdi
callq 0x184f0
jmp 0x3ebf3
jmp 0x3ebd5
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ebf3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %r14, %rdi
callq 0x18ba0
nop
| _ZN5minja5Value11dump_stringERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERNS6_19basic_ostringstreamIcS9_SA_EEc:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz loc_3EB17
mov ebp, edx
mov rbx, rsi
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
cmp bpl, 22h ; '"'
jz short loc_3EA17
mov rdi, rsp
mov esi, 27h ; '''
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_3EA50
loc_3EA17:
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_3EA28:
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3EA43
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3EA43:
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_3EA50:
lea rsi, [rsp+68h+var_48]
mov [rsi], bpl
mov edx, 1
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r15, [rsp+68h+var_60]
dec r15
cmp r15, 2
jb loc_3EAFD
mov r12d, 1
lea r14, [rsp+68h+var_48]
loc_3EA82:
mov rcx, [rsp+68h+var_68]
mov al, [rcx+r12]
cmp al, 5Ch ; '\'
jnz short loc_3EAB0
cmp byte ptr [rcx+r12+1], 22h ; '"'
jnz short loc_3EAB0
mov [rsp+68h+var_48], 22h ; '"'
mov edx, 1
mov rdi, rbx
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
inc r12
jmp short loc_3EAF5
loc_3EAB0:
cmp al, bpl
jnz short loc_3EAE1
mov [rsp+68h+var_48], 5Ch ; '\'
mov edx, 1
mov rdi, rbx
mov rsi, 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 [rsp+68h+var_48], bpl
mov edx, 1
mov rdi, rax
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_3EAF5
loc_3EAE1:
mov [rsp+68h+var_48], al
mov edx, 1
mov rdi, rbx
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_3EAF5:
inc r12
cmp r12, r15
jb short loc_3EA82
loc_3EAFD:
lea rsi, [rsp+68h+var_48]
mov [rsi], bpl
mov edx, 1
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp loc_3EA28
loc_3EB17:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_48]
mov rsi, r14
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aValueIsNotAStr; "Value is not a string: "
mov rdi, rsp
lea rdx, [rsp+68h+var_48]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3EBA1
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3EBA1
mov r14, rax
mov bpl, 1
loc_3EBA1:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3EBC4
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3EBC4
mov r14, rax
mov bpl, 1
loc_3EBC4:
test bpl, bpl
jz short loc_3EBF3
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_3EBF3
jmp short $+2
loc_3EBD5:
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3EBF3
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3EBF3:
mov rdi, r14
call __Unwind_Resume
| void minja::Value::dump_string(_BYTE *a1, long long a2, char a3)
{
unsigned long long v4; // r15
unsigned long long v5; // r12
char v6; // al
long long v7; // rax
void *exception; // rbx
long long *v9; // [rsp+0h] [rbp-68h] BYREF
long long v10; // [rsp+8h] [rbp-60h]
long long v11; // [rsp+10h] [rbp-58h] BYREF
_BYTE v12[16]; // [rsp+20h] [rbp-48h] BYREF
if ( *a1 != 3 )
{
exception = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v12,
(long long)a1,
-1,
32,
0,
0);
std::operator+<char>((long long)&v9, (long long)"Value is not a string: ", (long long)v12);
std::runtime_error::runtime_error(exception, &v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)&v9,
(long long)a1,
-1,
32,
0,
0);
if ( a3 != 34 && std::string::find(&v9, 39LL, 0LL) == -1 )
{
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
v4 = v10 - 1;
if ( (unsigned long long)(v10 - 1) >= 2 )
{
v5 = 1LL;
do
{
v6 = *((_BYTE *)v9 + v5);
if ( v6 == 92 && *((_BYTE *)v9 + v5 + 1) == 34 )
{
v12[0] = 34;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
++v5;
}
else if ( v6 == a3 )
{
v12[0] = 92;
v7 = std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(v7, v12, 1LL);
}
else
{
v12[0] = *((_BYTE *)v9 + v5);
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
}
++v5;
}
while ( v5 < v4 );
}
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
}
else
{
std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10);
}
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
}
| dump_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x0013eb17
MOV EBP,EDX
MOV RBX,RSI
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0012bc96
CMP BPL,0x22
JZ 0x0013ea17
MOV RDI,RSP
MOV ESI,0x27
XOR EDX,EDX
CALL 0x00118850
CMP RAX,-0x1
JZ 0x0013ea50
LAB_0013ea17:
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_0013ea20:
MOV RDI,RBX
CALL 0x00118770
LAB_0013ea28:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013ea43
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_0013ea43:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0013ea50:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],BPL
MOV EDX,0x1
MOV RDI,RBX
CALL 0x00118770
MOV R15,qword ptr [RSP + 0x8]
DEC R15
CMP R15,0x2
JC 0x0013eafd
MOV R12D,0x1
LEA R14,[RSP + 0x20]
LAB_0013ea82:
MOV RCX,qword ptr [RSP]
MOV AL,byte ptr [RCX + R12*0x1]
CMP AL,0x5c
JNZ 0x0013eab0
CMP byte ptr [RCX + R12*0x1 + 0x1],0x22
JNZ 0x0013eab0
MOV byte ptr [RSP + 0x20],0x22
LAB_0013ea9b:
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x00118770
INC R12
JMP 0x0013eaf5
LAB_0013eab0:
CMP AL,BPL
JNZ 0x0013eae1
MOV byte ptr [RSP + 0x20],0x5c
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x00118770
MOV byte ptr [RSP + 0x20],BPL
MOV EDX,0x1
MOV RDI,RAX
MOV RSI,R14
CALL 0x00118770
JMP 0x0013eaf5
LAB_0013eae1:
MOV byte ptr [RSP + 0x20],AL
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x00118770
LAB_0013eaf5:
INC R12
CMP R12,R15
JC 0x0013ea82
LAB_0013eafd:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],BPL
LAB_0013eb05:
MOV EDX,0x1
MOV RDI,RBX
CALL 0x00118770
LAB_0013eb12:
JMP 0x0013ea28
LAB_0013eb17:
MOV EDI,0x10
CALL 0x00118350
MOV RBX,RAX
LAB_0013eb24:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0012bc96
LAB_0013eb41:
LEA RSI,[0x1ab85f]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0012463f
MOV BPL,0x1
LAB_0013eb58:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00118a80
XOR EBP,EBP
MOV RSI,qword ptr [0x001ddff0]
MOV RDX,qword ptr [0x001ddf70]
MOV RDI,RBX
CALL 0x00118b30
|
/* minja::Value::dump_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> const&, std::__cxx11::ostringstream&, char) */
void minja::Value::dump_string(basic_json *param_1,ostringstream *param_2,char param_3)
{
long lVar1;
ostream *poVar2;
runtime_error *this;
ulong uVar3;
long *local_68;
long local_60;
long local_58 [2];
char local_48 [32];
if (*param_1 != (basic_json)0x3) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013eb24 to 0013eb40 has its CatchHandler @ 0013ebbe */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_48,param_1,0xffffffff,0x20,0,0);
/* try { // try from 0013eb41 to 0013eb54 has its CatchHandler @ 0013eb9b */
std::operator+((char *)&local_68,(string *)"Value is not a string: ");
/* try { // try from 0013eb58 to 0013eb7a has its CatchHandler @ 0013eb7b */
std::runtime_error::runtime_error(this,(string *)&local_68);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ddff0,PTR__runtime_error_001ddf70);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(&local_68,param_1,0xffffffff,0x20,0,0);
if (param_3 != '\"') {
lVar1 = std::__cxx11::string::find((char)&local_68,0x27);
if (lVar1 == -1) {
local_48[0] = param_3;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
if (1 < local_60 - 1U) {
uVar3 = 1;
do {
local_48[0] = *(char *)((long)local_68 + uVar3);
if ((local_48[0] == '\\') && (*(char *)((long)local_68 + uVar3 + 1) == '\"')) {
local_48[0] = '\"';
/* try { // try from 0013ea9b to 0013eaf4 has its CatchHandler @ 0013ebd5 */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
uVar3 = uVar3 + 1;
}
else if (local_48[0] == param_3) {
local_48[0] = '\\';
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)param_2,local_48,1);
local_48[0] = param_3;
std::__ostream_insert<char,std::char_traits<char>>(poVar2,local_48,1);
}
else {
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
}
uVar3 = uVar3 + 1;
} while (uVar3 < local_60 - 1U);
}
local_48[0] = param_3;
/* try { // try from 0013eb05 to 0013eb11 has its CatchHandler @ 0013ebd3 */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
goto LAB_0013ea28;
}
}
/* try { // try from 0013ea20 to 0013ea64 has its CatchHandler @ 0013ebd3 */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,(char *)local_68,local_60);
LAB_0013ea28:
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
return;
}
| |
50,086 | double minja::Value::get<double>() const | monkey531[P]llama/common/minja.hpp | T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
} | O0 | cpp | double minja::Value::get<double>() const:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x1107d0
testb $0x1, %al
jne 0x11214e
jmp 0x112163
movq 0x8(%rsp), %rdi
addq $0x40, %rdi
callq 0x1124d0
andb $0x1, %al
addq $0x68, %rsp
retq
movb $0x1, 0x13(%rsp)
movl $0x10, %edi
callq 0x59660
movq 0x8(%rsp), %rsi
movq %rax, (%rsp)
leaq 0x20(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x110850
jmp 0x11218e
leaq 0xfc299(%rip), %rsi # 0x20e42e
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0xf4e10
jmp 0x1121a6
movq (%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x594a0
jmp 0x1121b6
movq (%rsp), %rdi
movb $0x0, 0x13(%rsp)
movq 0x18ddea(%rip), %rsi # 0x29ffb0
movq 0x18ddab(%rip), %rdx # 0x29ff78
callq 0x59ac0
jmp 0x112234
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x112216
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x11220c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x5a4d8
leaq 0x20(%rsp), %rdi
callq 0x5a4d8
testb $0x1, 0x13(%rsp)
jne 0x11221f
jmp 0x112228
movq (%rsp), %rdi
callq 0x59f20
jmp 0x11222a
movq 0x18(%rsp), %rdi
callq 0x59b80
nopw %cs:(%rax,%rax)
nop
| _ZNK5minja5Value3getIbEET_v:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
mov rdi, [rsp+68h+var_8]; this
mov [rsp+68h+var_60], rdi
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, 1
jnz short loc_11214E
jmp short loc_112163
loc_11214E:
mov rdi, [rsp+68h+var_60]
add rdi, 40h ; '@'
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3getIbbEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv
and al, 1
add rsp, 68h
retn
loc_112163:
mov [rsp+68h+var_55], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+68h+var_60]
mov [rsp+68h+var_68], rax
lea rdi, [rsp+68h+var_48]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_11218E:
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+68h+var_28]
lea rdx, [rsp+68h+var_48]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_1121A6:
mov rdi, [rsp+68h+var_68]
lea rsi, [rsp+68h+var_28]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_1121B6:
mov rdi, [rsp+68h+var_68]; void *
mov [rsp+68h+var_55], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
| char minja::Value::get<bool>(minja::Value *a1)
{
void *exception; // [rsp+0h] [rbp-68h]
_BYTE v3[32]; // [rsp+20h] [rbp-48h] BYREF
_BYTE v4[32]; // [rsp+40h] [rbp-28h] BYREF
minja::Value *v5; // [rsp+60h] [rbp-8h]
v5 = a1;
if ( (minja::Value::is_primitive(a1) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v3, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v4, (long long)"get<T> not defined for this value type: ", (long long)v3);
std::runtime_error::runtime_error(exception, v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return 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>::get<bool,bool>((char *)a1 + 64) & 1;
}
| |||
50,087 | double minja::Value::get<double>() const | monkey531[P]llama/common/minja.hpp | T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
} | O1 | cpp | double minja::Value::get<double>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
jne 0x868f8
cmpq $0x0, 0x20(%r14)
jne 0x868f8
cmpq $0x0, 0x30(%r14)
jne 0x868f8
addq $0x40, %r14
movq %rsp, %rbx
movb $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x86b37
movb (%rbx), %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x85ba8
leaq 0x6a147(%rip), %rsi # 0xf0a67
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x778d3
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0xa56a4(%rip), %rsi # 0x12bfe8
movq 0xa560d(%rip), %rdx # 0x12bf58
movq %rbx, %rdi
callq 0x1aea0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x86979
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x86979
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8699c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x8699c
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x869a9
movq %rbx, %rdi
callq 0x1a640
movq %r14, %rdi
callq 0x1af20
nop
| _ZNK5minja5Value3getIbEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
cmp qword ptr [rdi+10h], 0
jnz short loc_868F8
cmp qword ptr [r14+20h], 0
jnz short loc_868F8
cmp qword ptr [r14+30h], 0
jnz short loc_868F8
add r14, 40h ; '@'
mov rbx, rsp
mov byte ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t &)
mov al, [rbx]
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_868F8:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+58h+var_38]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
mov rdi, rsp
lea rdx, [rsp+58h+var_38]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_86979
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_86979
mov r14, rax
mov bpl, 1
loc_86979:
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8699C
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8699C
mov r14, rax
mov bpl, 1
loc_8699C:
test bpl, bpl
jz short loc_869A9
mov rdi, rbx; void *
call ___cxa_free_exception
loc_869A9:
mov rdi, r14
call __Unwind_Resume
| char minja::Value::get<bool>(_QWORD *a1)
{
void *exception; // rbx
_BYTE v3[16]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v4[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a1[2] || a1[4] || a1[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v3, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3[0] = 0;
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
a1 + 8,
v3);
return v3[0];
}
| get<bool>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP qword ptr [RDI + 0x10],0x0
JNZ 0x001868f8
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x001868f8
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x001868f8
ADD R14,0x40
MOV RBX,RSP
MOV byte ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00186b37
MOV AL,byte ptr [RBX]
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_001868f8:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LAB_00186905:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00185ba8
LAB_00186919:
LEA RSI,[0x1f0a67]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001778d3
MOV BPL,0x1
LAB_00186930:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bfe8]
MOV RDX,qword ptr [0x0022bf58]
MOV RDI,RBX
CALL 0x0011aea0
|
/* bool minja::Value::get<bool>() const */
bool __thiscall minja::Value::get<bool>(Value *this)
{
runtime_error *this_00;
string local_58 [32];
int1 local_38 [32];
if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) &&
(*(long *)(this + 0x30) == 0)) {
local_58[0] = (string)0x0;
nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((basic_json *)(this + 0x40),local_58);
return (bool)local_58[0];
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00186905 to 00186918 has its CatchHandler @ 00186996 */
dump_abi_cxx11_((int)local_38,SUB81(this,0));
/* try { // try from 00186919 to 0018692c has its CatchHandler @ 00186973 */
std::operator+((char *)local_58,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00186930 to 00186952 has its CatchHandler @ 00186953 */
std::runtime_error::runtime_error(this_00,local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022bfe8,PTR__runtime_error_0022bf58);
}
| |
50,088 | double minja::Value::get<double>() const | monkey531[P]llama/common/minja.hpp | T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
} | O3 | cpp | double minja::Value::get<double>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
cmpq $0x0, 0x10(%rsi)
jne 0x8661b
cmpq $0x0, 0x20(%r14)
jne 0x8661b
cmpq $0x0, 0x30(%r14)
jne 0x8661b
movq %rdi, %rbx
addq $0x40, %r14
movq %r14, %rsi
callq 0x868c2
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x85792
leaq 0x68416(%rip), %rsi # 0xeea57
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x77e59
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0xa3981(%rip), %rsi # 0x129fe8
movq 0xa38ea(%rip), %rdx # 0x129f58
movq %rbx, %rdi
callq 0x1aea0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x86694
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x866af
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0x866d9
jmp 0x866e1
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x866d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x866d9
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a640
movq %r14, %rdi
callq 0x1af20
nop
| _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
cmp qword ptr [rsi+10h], 0
jnz short loc_8661B
cmp qword ptr [r14+20h], 0
jnz short loc_8661B
cmp qword ptr [r14+30h], 0
jnz short loc_8661B
mov rbx, rdi
add r14, 40h ; '@'
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_8661B:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_86694
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_86694:
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_866AF
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_866AF:
test bpl, bpl
jnz short loc_866D9
jmp short loc_866E1
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_866D9
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_866D9
mov r14, rax
loc_866D9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_866E1:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::get<std::string>(long long a1, _QWORD *a2)
{
void *exception; // rbx
_BYTE v4[16]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v5[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a2[2] || a2[4] || a2[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
a1,
a2 + 8);
return a1;
}
| get<std::__cxx11::string>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x0018661b
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x0018661b
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x0018661b
MOV RBX,RDI
ADD R14,0x40
MOV RSI,R14
CALL 0x001868c2
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_0018661b:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LAB_00186628:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00185792
LAB_0018663a:
LEA RSI,[0x1eea57]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00177e59
MOV BPL,0x1
LAB_00186651:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x00229fe8]
MOV RDX,qword ptr [0x00229f58]
MOV RDI,RBX
CALL 0x0011aea0
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >() const */
void minja::Value::get<std::__cxx11::string>(void)
{
runtime_error *this;
long in_RSI;
int8 in_RDI;
int1 auStack_58 [32];
string local_38 [32];
if (((*(long *)(in_RSI + 0x10) == 0) && (*(long *)(in_RSI + 0x20) == 0)) &&
(*(long *)(in_RSI + 0x30) == 0)) {
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(in_RDI,in_RSI + 0x40);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00186628 to 00186639 has its CatchHandler @ 001866d6 */
dump_abi_cxx11_((int)auStack_58,SUB81(in_RSI,0));
/* try { // try from 0018663a to 0018664d has its CatchHandler @ 001866b6 */
std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00186651 to 00186675 has its CatchHandler @ 00186676 */
std::runtime_error::runtime_error(this,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00229fe8,PTR__runtime_error_00229f58);
}
| |
50,089 | ItemInfoBuilder::ItemInfoBuilder(char const*) | untodesu[P]voxelius/game/shared/item_registry.cc | ItemInfoBuilder::ItemInfoBuilder(const char *name)
{
prototype.name = name;
prototype.texture = std::string();
prototype.place_voxel = NULL_VOXEL_ID;
prototype.cached_texture = nullptr;
} | O2 | cpp | ItemInfoBuilder::ItemInfoBuilder(char const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xca435(%rip), %rax # 0x108858
movq %rax, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
xorl %eax, %eax
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rdi)
andq $0x0, 0x30(%rdi)
leaq 0x8(%rdi), %r14
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
movq %r14, %rdi
callq 0x17df0
leaq 0x28(%rbx), %rdi
leaq 0x50(%rbx), %r14
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rsp, %r15
movq %r15, %rsi
callq 0x178b0
movq %r15, %rdi
callq 0x17ec8
andw $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq %rsp, %rsi
movq %r14, %rdi
callq 0x3eaa6
leaq 0x8(%rsp), %rdi
callq 0x19592
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x3e7de
movq %rbx, %rdi
callq 0x17cd0
nop
| _ZN15ItemInfoBuilderC2EPKc:
push r15; Alternative name is 'ItemInfoBuilder::ItemInfoBuilder(char const*)'
push r14
push rbx
sub rsp, 20h
mov rbx, rdi
lea rax, off_108858
mov [rdi], rax
lea rax, [rdi+18h]
mov [rdi+8], rax
and qword ptr [rdi+10h], 0
xor eax, eax
mov [rdi+18h], al
lea rcx, [rdi+38h]
mov [rdi+28h], rcx
and qword ptr [rdi+30h], 0
lea r14, [rdi+8]
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+50h], xmm0
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
lea rdi, [rbx+28h]
lea r14, [rbx+50h]
lea rax, [rsp+38h+var_28]
mov [rax-10h], rax
and qword ptr [rax-8], 0
mov byte ptr [rax], 0
mov r15, rsp
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
and word ptr [rbx+48h], 0
xorps xmm0, xmm0
movaps xmmword ptr [r15], xmm0
mov rsi, rsp
mov rdi, r14
call _ZNSt12__shared_ptrIK10TextureGUILN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<TextureGUI const,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<TextureGUI const,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+38h+var_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
add rsp, 20h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, r14; this
call _ZN8ItemInfoD2Ev; ItemInfo::~ItemInfo()
mov rdi, rbx
call __Unwind_Resume
| void ItemInfoBuilder::ItemInfoBuilder(
ItemInfoBuilder *this,
const char *a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
__int128 v6; // [rsp+0h] [rbp-38h] BYREF
char v7; // [rsp+10h] [rbp-28h] BYREF
*(_QWORD *)this = off_108858;
*((_QWORD *)this + 1) = (char *)this + 24;
*((_QWORD *)this + 2) = 0LL;
*((_BYTE *)this + 24) = 0;
*((_QWORD *)this + 5) = (char *)this + 56;
*((_QWORD *)this + 6) = 0LL;
*((_BYTE *)this + 56) = 0;
*((_OWORD *)this + 5) = 0LL;
std::string::assign((char *)this + 8, a2, a3, (char *)this + 56, a5, a6);
*(_QWORD *)&v6 = &v7;
*((_QWORD *)&v6 + 1) = 0LL;
v7 = 0;
std::string::operator=((char *)this + 40, &v6);
std::string::~string(&v6);
*((_WORD *)this + 36) = 0;
v6 = 0LL;
std::__shared_ptr<TextureGUI const,(__gnu_cxx::_Lock_policy)2>::operator=((char *)this + 80, &v6);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v6 + 1);
}
| ItemInfoBuilder:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA RAX,[0x208858]
MOV qword ptr [RDI],RAX
LEA RAX,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],RAX
AND qword ptr [RDI + 0x10],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x18],AL
LEA RCX,[RDI + 0x38]
MOV qword ptr [RDI + 0x28],RCX
AND qword ptr [RDI + 0x30],0x0
LEA R14,[RDI + 0x8]
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
LAB_0013e453:
MOV RDI,R14
CALL 0x00117df0
LAB_0013e45b:
LEA RDI,[RBX + 0x28]
LEA R14,[RBX + 0x50]
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
AND qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
MOV R15,RSP
MOV RSI,R15
CALL 0x001178b0
MOV RDI,R15
CALL 0x00117ec8
AND word ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R15],XMM0
MOV RSI,RSP
MOV RDI,R14
CALL 0x0013eaa6
LEA RDI,[RSP + 0x8]
CALL 0x00119592
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* ItemInfoBuilder::ItemInfoBuilder(char const*) */
void __thiscall ItemInfoBuilder::ItemInfoBuilder(ItemInfoBuilder *this,char *param_1)
{
int1 *local_38;
int8 uStack_30;
int1 local_28 [16];
*(int ***)this = &PTR__ItemInfoBuilder_00208858;
*(ItemInfoBuilder **)(this + 8) = this + 0x18;
*(int8 *)(this + 0x10) = 0;
this[0x18] = (ItemInfoBuilder)0x0;
*(ItemInfoBuilder **)(this + 0x28) = this + 0x38;
*(int8 *)(this + 0x30) = 0;
this[0x38] = (ItemInfoBuilder)0x0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
/* try { // try from 0013e453 to 0013e45a has its CatchHandler @ 0013e4b2 */
std::__cxx11::string::assign((char *)(this + 8));
local_38 = local_28;
uStack_30 = 0;
local_28[0] = 0;
std::__cxx11::string::operator=((string *)(this + 0x28),(string *)&local_38);
std::__cxx11::string::~string((string *)&local_38);
*(int2 *)(this + 0x48) = 0;
local_38 = (int1 *)0x0;
uStack_30 = 0;
std::__shared_ptr<TextureGUI_const,(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_ptr<TextureGUI_const,(__gnu_cxx::_Lock_policy)2> *)(this + 0x50),
(__shared_ptr *)&local_38);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_30);
return;
}
| |
50,090 | ma_bitmap_create_missing_into_pagecache | eloqsql/storage/maria/ma_bitmap.c | static my_bool
_ma_bitmap_create_missing_into_pagecache(MARIA_SHARE *share,
MARIA_FILE_BITMAP *bitmap,
pgcache_page_no_t from,
pgcache_page_no_t to,
uchar *zeroes)
{
pgcache_page_no_t i;
/*
We do not use my_chsize() because there can be a race between when it
reads the physical size and when it writes (assume data_file_length is 10,
physical length is 8 and two data pages are in cache, and here we do a
my_chsize: my_chsize sees physical length is 8, then the two data pages go
to disk then my_chsize writes from page 8 and so overwrites the two data
pages, wrongly).
We instead rely on the filesystem filling gaps with zeroes.
*/
for (i= from; i <= to; i+= bitmap->pages_covered)
{
/**
No need to keep them pinned, they are new so flushable.
@todo but we may want to keep them pinned, as an optimization: if they
are not pinned they may go to disk before the data pages go (so, the
physical pages would be in non-ascending "sparse" order on disk), or the
filesystem may fill gaps with zeroes physically which is a waste of
time.
*/
if (pagecache_write(share->pagecache,
&bitmap->file, i, 0,
zeroes, PAGECACHE_PLAIN_PAGE,
PAGECACHE_LOCK_LEFT_UNLOCKED,
PAGECACHE_PIN_LEFT_UNPINNED,
PAGECACHE_WRITE_DELAY, 0, LSN_IMPOSSIBLE))
goto err;
}
/*
Data pages after data_file_length are full of zeroes but that is allowed
as they are marked empty in the bitmap.
*/
return FALSE;
err:
_ma_set_fatal_error_with_share(share, my_errno);
return TRUE;
} | O3 | c | ma_bitmap_create_missing_into_pagecache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
xorl %r14d, %r14d
cmpq %rcx, %rdx
ja 0x57aea
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
leaq 0x40(%rsi), %r15
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movl 0x80(%rdi), %eax
movl %eax, 0x30(%rsp)
movl %r14d, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movl %r14d, 0x10(%rsp)
movl %r14d, (%rsp)
movl $0x1, 0x8(%rsp)
movq %r15, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movq -0x38(%rbp), %r8
movl $0x1, %r9d
callq 0x3f45e
testb %al, %al
jne 0x57ad7
addq 0x138(%rbx), %r13
cmpq %r12, %r13
jbe 0x57a78
xorl %r14d, %r14d
jmp 0x57aea
callq 0xa813e
movl (%rax), %esi
movq -0x30(%rbp), %rdi
callq 0x42bd2
movb $0x1, %r14b
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_bitmap_create_missing_into_pagecache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_38], r8
mov [rbp+var_30], rdi
xor r14d, r14d
cmp rdx, rcx
ja short loc_57AEA
mov r12, rcx
mov r13, rdx
mov rbx, rsi
lea r15, [rsi+40h]
loc_57A78:
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov eax, [rdi+80h]
mov [rsp+70h+var_40], eax
mov [rsp+70h+var_48], r14d
xorps xmm0, xmm0
movups [rsp+70h+var_58], xmm0
mov [rsp+70h+var_60], r14d
mov [rsp+70h+var_70], r14d
mov [rsp+70h+var_68], 1
mov rsi, r15
mov rdx, r13
xor ecx, ecx
mov r8, [rbp+var_38]
mov r9d, 1
call pagecache_write_part
test al, al
jnz short loc_57AD7
add r13, [rbx+138h]
cmp r13, r12
jbe short loc_57A78
xor r14d, r14d
jmp short loc_57AEA
loc_57AD7:
call _my_thread_var
mov esi, [rax]
mov rdi, [rbp+var_30]
call _ma_set_fatal_error_with_share
mov r14b, 1
loc_57AEA:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_bitmap_create_missing_into_pagecache(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
char *a5)
{
unsigned int v5; // r14d
unsigned long long v7; // r13
__m128i *v8; // rdi
int *v9; // rax
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
int v13; // r9d
v5 = 0;
if ( a3 <= a4 )
{
v7 = a3;
while ( 1 )
{
v8 = *(__m128i **)(a1 + 1536);
if ( (unsigned __int8)pagecache_write_part(
v8,
(char *)(a2 + 64),
v7,
0,
a5,
1,
0,
1u,
0,
0LL,
0LL,
0,
v8[8].m128i_u32[0]) )
break;
v7 += *(_QWORD *)(a2 + 312);
if ( v7 > a4 )
return 0;
}
v9 = (int *)my_thread_var(v8);
ma_set_fatal_error_with_share(a1, *v9, v10, v11, v12, v13);
LOBYTE(v5) = 1;
}
return v5;
}
| _ma_bitmap_create_missing_into_pagecache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV qword ptr [RBP + -0x38],R8
MOV qword ptr [RBP + -0x30],RDI
XOR R14D,R14D
CMP RDX,RCX
JA 0x00157aea
MOV R12,RCX
MOV R13,RDX
MOV RBX,RSI
LEA R15,[RSI + 0x40]
LAB_00157a78:
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV EAX,dword ptr [RDI + 0x80]
MOV dword ptr [RSP + 0x30],EAX
MOV dword ptr [RSP + 0x28],R14D
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV dword ptr [RSP + 0x10],R14D
MOV dword ptr [RSP],R14D
MOV dword ptr [RSP + 0x8],0x1
MOV RSI,R15
MOV RDX,R13
XOR ECX,ECX
MOV R8,qword ptr [RBP + -0x38]
MOV R9D,0x1
CALL 0x0013f45e
TEST AL,AL
JNZ 0x00157ad7
ADD R13,qword ptr [RBX + 0x138]
CMP R13,R12
JBE 0x00157a78
XOR R14D,R14D
JMP 0x00157aea
LAB_00157ad7:
CALL 0x001a813e
MOV ESI,dword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00142bd2
MOV R14B,0x1
LAB_00157aea:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_bitmap_create_missing_into_pagecache
(long param_1,long param_2,ulong param_3,ulong param_4,int8 param_5)
{
char cVar1;
int4 *puVar2;
if (param_3 <= param_4) {
do {
cVar1 = pagecache_write_part
(*(long *)(param_1 + 0x600),param_2 + 0x40,param_3,0,param_5,1,0,1,0,0,0,0,
*(int4 *)(*(long *)(param_1 + 0x600) + 0x80));
if (cVar1 != '\0') {
puVar2 = (int4 *)_my_thread_var();
_ma_set_fatal_error_with_share(param_1,*puVar2);
return 1;
}
param_3 = param_3 + *(long *)(param_2 + 0x138);
} while (param_3 <= param_4);
}
return 0;
}
| |
50,091 | exported_names_cmp | bluesky950520[P]quickjs/quickjs.c | static int exported_names_cmp(const void *p1, const void *p2, void *opaque)
{
JSContext *ctx = opaque;
const ExportedNameEntry *me1 = p1;
const ExportedNameEntry *me2 = p2;
JSValue str1, str2;
int ret;
/* XXX: should avoid allocation memory in atom comparison */
str1 = JS_AtomToString(ctx, me1->export_name);
str2 = JS_AtomToString(ctx, me2->export_name);
if (JS_IsException(str1) || JS_IsException(str2)) {
/* XXX: raise an error ? */
ret = 0;
} else {
ret = js_string_compare(JS_VALUE_GET_STRING(str1),
JS_VALUE_GET_STRING(str2));
}
JS_FreeValue(ctx, str1);
JS_FreeValue(ctx, str2);
return ret;
} | O0 | c | exported_names_cmp:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rax
movl (%rax), %esi
callq 0x29000
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rdi
movq 0x48(%rsp), %rax
movl (%rax), %esi
callq 0x29000
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
jne 0x73975
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x7397f
movl $0x0, 0x24(%rsp)
jmp 0x73992
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x71b00
movl %eax, 0x24(%rsp)
movq 0x58(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x23c90
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x23c90
movl 0x24(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
| exported_names_cmp:
sub rsp, 78h
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_10], rsi
mov [rsp+78h+var_18], rdx
mov rax, [rsp+78h+var_18]
mov [rsp+78h+var_20], rax
mov rax, [rsp+78h+var_8]
mov [rsp+78h+var_28], rax
mov rax, [rsp+78h+var_10]
mov [rsp+78h+var_30], rax
mov rdi, [rsp+78h+var_20]
mov rax, [rsp+78h+var_28]
mov esi, [rax]
call JS_AtomToString
mov [rsp+78h+var_68], rax
mov [rsp+78h+var_60], rdx
mov rax, [rsp+78h+var_68]
mov [rsp+78h+var_40], rax
mov rax, [rsp+78h+var_60]
mov [rsp+78h+var_38], rax
mov rdi, [rsp+78h+var_20]
mov rax, [rsp+78h+var_30]
mov esi, [rax]
call JS_AtomToString
mov [rsp+78h+var_78], rax
mov [rsp+78h+var_70], rdx
mov rax, [rsp+78h+var_78]
mov [rsp+78h+var_50], rax
mov rax, [rsp+78h+var_70]
mov [rsp+78h+var_48], rax
mov rdi, [rsp+78h+var_40]
mov rsi, [rsp+78h+var_38]
call JS_IsException_1
cmp eax, 0
jnz short loc_73975
mov rdi, [rsp+78h+var_50]
mov rsi, [rsp+78h+var_48]
call JS_IsException_1
cmp eax, 0
jz short loc_7397F
loc_73975:
mov [rsp+78h+var_54], 0
jmp short loc_73992
loc_7397F:
mov rdi, [rsp+78h+var_40]
mov rsi, [rsp+78h+var_50]
call js_string_compare
mov [rsp+78h+var_54], eax
loc_73992:
mov rdi, [rsp+78h+var_20]
mov rsi, [rsp+78h+var_40]
mov rdx, [rsp+78h+var_38]
call JS_FreeValue
mov rdi, [rsp+78h+var_20]
mov rsi, [rsp+78h+var_50]
mov rdx, [rsp+78h+var_48]
call JS_FreeValue
mov eax, [rsp+78h+var_54]
add rsp, 78h
retn
| long long exported_names_cmp(unsigned int *a1, unsigned int *a2, long long a3)
{
long long v3; // rdx
long long v4; // rdx
long long v6; // [rsp+0h] [rbp-78h]
long long v7; // [rsp+10h] [rbp-68h]
unsigned int v8; // [rsp+24h] [rbp-54h]
long long v9; // [rsp+30h] [rbp-48h]
long long v10; // [rsp+40h] [rbp-38h]
v7 = JS_AtomToString(a3, *a1);
v10 = v3;
v6 = JS_AtomToString(a3, *a2);
v9 = v4;
if ( JS_IsException_1(v7, v10) || JS_IsException_1(v6, v9) )
v8 = 0;
else
v8 = js_string_compare(v7, v6);
JS_FreeValue(a3, v7, v10);
JS_FreeValue(a3, v6, v9);
return v8;
}
| exported_names_cmp:
SUB RSP,0x78
MOV qword ptr [RSP + 0x70],RDI
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x50]
MOV ESI,dword ptr [RAX]
CALL 0x00129000
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x48]
MOV ESI,dword ptr [RAX]
CALL 0x00129000
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00123cc0
CMP EAX,0x0
JNZ 0x00173975
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0017397f
LAB_00173975:
MOV dword ptr [RSP + 0x24],0x0
JMP 0x00173992
LAB_0017397f:
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x00171b00
MOV dword ptr [RSP + 0x24],EAX
LAB_00173992:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x00123c90
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x78
RET
|
int4 exported_names_cmp(int4 *param_1,int4 *param_2,int8 param_3)
{
int iVar1;
int8 uVar2;
int8 uVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int4 local_54;
auVar4 = JS_AtomToString(param_3,*param_1);
uVar2 = auVar4._0_8_;
auVar5 = JS_AtomToString(param_3,*param_2);
uVar3 = auVar5._0_8_;
iVar1 = JS_IsException(uVar2,auVar4._8_8_);
if (iVar1 == 0) {
iVar1 = JS_IsException(uVar3,auVar5._8_8_);
if (iVar1 == 0) {
local_54 = js_string_compare(uVar2,uVar3);
goto LAB_00173992;
}
}
local_54 = 0;
LAB_00173992:
JS_FreeValue(param_3,uVar2,auVar4._8_8_);
JS_FreeValue(param_3,uVar3,auVar5._8_8_);
return local_54;
}
| |
50,092 | bf_get_uint64 | bluesky950520[P]quickjs/libbf.c | int bf_get_uint64(uint64_t *pres, const bf_t *a)
{
uint64_t v;
int ret;
if (a->expn == BF_EXP_NAN) {
goto overflow;
} else if (a->expn <= 0) {
v = 0;
ret = 0;
} else if (a->sign) {
v = 0;
ret = BF_ST_INVALID_OP;
} else if (a->expn <= 64) {
#if LIMB_BITS == 32
if (a->expn <= 32)
v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn);
else
v = (((uint64_t)a->tab[a->len - 1] << 32) |
get_limbz(a, a->len - 2)) >> (64 - a->expn);
#else
v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn);
#endif
ret = 0;
} else {
overflow:
v = UINT64_MAX;
ret = BF_ST_INVALID_OP;
}
*pres = v;
return ret;
} | O2 | c | bf_get_uint64:
movq 0x10(%rsi), %rcx
pushq $0x1
popq %rax
pushq $-0x1
popq %rdx
movabsq $0x7fffffffffffffff, %r8 # imm = 0x7FFFFFFFFFFFFFFF
cmpq %r8, %rcx
je 0x76366
testq %rcx, %rcx
jle 0x76348
cmpl $0x0, 0x8(%rsi)
je 0x7634c
xorl %edx, %edx
jmp 0x76366
xorl %edx, %edx
jmp 0x76364
cmpq $0x40, %rcx
ja 0x76366
movq 0x18(%rsi), %rax
movq 0x20(%rsi), %rdx
movq -0x8(%rdx,%rax,8), %rdx
negb %cl
shrq %cl, %rdx
xorl %eax, %eax
movq %rdx, (%rdi)
retq
| bf_get_uint64:
mov rcx, [rsi+10h]
push 1
pop rax
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov r8, 7FFFFFFFFFFFFFFFh
cmp rcx, r8
jz short loc_76366
test rcx, rcx
jle short loc_76348
cmp dword ptr [rsi+8], 0
jz short loc_7634C
xor edx, edx
jmp short loc_76366
loc_76348:
xor edx, edx
jmp short loc_76364
loc_7634C:
cmp rcx, 40h ; '@'
ja short loc_76366
mov rax, [rsi+18h]
mov rdx, [rsi+20h]
mov rdx, [rdx+rax*8-8]
neg cl
shr rdx, cl
loc_76364:
xor eax, eax
loc_76366:
mov [rdi], rdx
retn
| long long bf_get_uint64(long long *a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // rdx
v2 = *(_QWORD *)(a2 + 16);
result = 1LL;
v4 = -1LL;
if ( v2 != 0x7FFFFFFFFFFFFFFFLL )
{
if ( v2 <= 0 )
{
v4 = 0LL;
}
else
{
if ( *(_DWORD *)(a2 + 8) )
{
v4 = 0LL;
goto LABEL_9;
}
if ( (unsigned long long)v2 > 0x40 )
goto LABEL_9;
v4 = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8) >> -(char)v2;
}
result = 0LL;
}
LABEL_9:
*a1 = v4;
return result;
}
| bf_get_uint64:
MOV RCX,qword ptr [RSI + 0x10]
PUSH 0x1
POP RAX
PUSH -0x1
POP RDX
MOV R8,0x7fffffffffffffff
CMP RCX,R8
JZ 0x00176366
TEST RCX,RCX
JLE 0x00176348
CMP dword ptr [RSI + 0x8],0x0
JZ 0x0017634c
XOR EDX,EDX
JMP 0x00176366
LAB_00176348:
XOR EDX,EDX
JMP 0x00176364
LAB_0017634c:
CMP RCX,0x40
JA 0x00176366
MOV RAX,qword ptr [RSI + 0x18]
MOV RDX,qword ptr [RSI + 0x20]
MOV RDX,qword ptr [RDX + RAX*0x8 + -0x8]
NEG CL
SHR RDX,CL
LAB_00176364:
XOR EAX,EAX
LAB_00176366:
MOV qword ptr [RDI],RDX
RET
|
int8 bf_get_uint64(ulong *param_1,long param_2)
{
ulong uVar1;
int8 uVar2;
ulong uVar3;
uVar1 = *(ulong *)(param_2 + 0x10);
uVar2 = 1;
uVar3 = 0xffffffffffffffff;
if (uVar1 == 0x7fffffffffffffff) goto LAB_00176366;
if ((long)uVar1 < 1) {
uVar3 = 0;
}
else {
if (*(int *)(param_2 + 8) != 0) {
uVar3 = 0;
goto LAB_00176366;
}
if (0x40 < uVar1) goto LAB_00176366;
uVar3 = *(ulong *)(*(long *)(param_2 + 0x20) + -8 + *(long *)(param_2 + 0x18) * 8) >>
(-(char)uVar1 & 0x3fU);
}
uVar2 = 0;
LAB_00176366:
*param_1 = uVar3;
return uVar2;
}
| |
50,093 | ftxui::(anonymous namespace)::Focus::Render(ftxui::Screen&) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/frame.cpp | void Render(Screen& screen) override {
Select::Render(screen);
// Setting the cursor to the right position allow folks using CJK (China,
// Japanese, Korean, ...) characters to see their [input method editor]
// displayed at the right location. See [issue].
//
// [input method editor]:
// https://en.wikipedia.org/wiki/Input_method
//
// [issue]:
// https://github.com/ArthurSonzogni/FTXUI/issues/2#issuecomment-505282355
//
// Unfortunately, Microsoft terminal do not handle properly hidding the
// cursor. Instead the character under the cursor is hidden, which is a big
// problem. As a result, we can't enable setting cursor to the right
// location. It will be displayed at the bottom right corner.
// See:
// https://github.com/microsoft/terminal/issues/1203
// https://github.com/microsoft/terminal/issues/3093
#if !defined(FTXUI_MICROSOFT_TERMINAL_FALLBACK)
screen.SetCursor(Screen::Cursor{
box_.x_min,
box_.y_min,
Screen::Cursor::Shape::Hidden,
});
#endif
} | O3 | cpp | ftxui::(anonymous namespace)::Focus::Render(ftxui::Screen&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x23eae
movl 0x4c(%r14), %eax
movl 0x54(%r14), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x30(%rbx)
movl $0x0, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5ftxui12_GLOBAL__N_15Focus6RenderERNS_6ScreenE:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
call _ZN5ftxui4Node6RenderERNS_6ScreenE; ftxui::Node::Render(ftxui::Screen &)
mov eax, [r14+4Ch]
mov ecx, [r14+54h]
shl rcx, 20h
or rcx, rax
mov [rbx+30h], rcx
mov dword ptr [rbx+38h], 0
add rsp, 8
pop rbx
pop r14
retn
| long long ftxui::`anonymous namespace'::Focus::Render(
ftxui::_anonymous_namespace_::Focus *this,
ftxui::Screen *a2)
{
long long result; // rax
ftxui::Node::Render(this, a2);
result = *((unsigned int *)this + 19);
*((_QWORD *)a2 + 6) = result | ((unsigned long long)*((unsigned int *)this + 21) << 32);
*((_DWORD *)a2 + 14) = 0;
return result;
}
| Render:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00123eae
MOV EAX,dword ptr [R14 + 0x4c]
MOV ECX,dword ptr [R14 + 0x54]
SHL RCX,0x20
OR RCX,RAX
MOV qword ptr [RBX + 0x30],RCX
MOV dword ptr [RBX + 0x38],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* ftxui::(anonymous namespace)::Focus::Render(ftxui::Screen&) */
void __thiscall ftxui::(anonymous_namespace)::Focus::Render(Focus *this,Screen *param_1)
{
Node::Render((Node *)this,param_1);
*(ulong *)(param_1 + 0x30) = CONCAT44(*(int4 *)(this + 0x54),*(int4 *)(this + 0x4c));
*(int4 *)(param_1 + 0x38) = 0;
return;
}
| |
50,094 | ma_apply_undo_row_insert | eloqsql/storage/maria/ma_blockrec.c | my_bool _ma_apply_undo_row_insert(MARIA_HA *info, LSN undo_lsn,
const uchar *header)
{
pgcache_page_no_t page;
uint rownr;
uchar *buff;
my_bool res;
MARIA_PINNED_PAGE page_link;
MARIA_SHARE *share= info->s;
ha_checksum checksum;
LSN lsn;
DBUG_ENTER("_ma_apply_undo_row_insert");
page= page_korr(header);
header+= PAGE_STORE_SIZE;
rownr= dirpos_korr(header);
header+= DIRPOS_STORE_SIZE;
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr));
buff= pagecache_read(share->pagecache,
&info->dfile, page, 0,
0, share->page_type,
PAGECACHE_LOCK_WRITE,
&page_link.link);
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= buff != 0;
push_dynamic(&info->pinned_pages, (void*) &page_link);
if (!buff)
goto err;
if (read_row_extent_info(info, buff, rownr))
goto err;
_ma_bitmap_flushable(info, 1);
if (delete_head_or_tail(info, page, rownr, 1, 1) ||
delete_tails(info, info->cur_row.tail_positions))
goto err;
if (info->cur_row.extents_count && free_full_pages(info, &info->cur_row))
goto err;
checksum= 0;
if (share->calc_checksum)
checksum= (ha_checksum) 0 - ha_checksum_korr(header);
info->last_auto_increment= ~ (ulonglong) 0;
if (_ma_write_clr(info, undo_lsn, LOGREC_UNDO_ROW_INSERT,
share->calc_checksum != 0, checksum, &lsn, (void*) 0))
goto err;
res= 0;
end:
/* The following is true only if _ma_bitmap_flushable() was called earlier */
if (info->non_flushable_state)
_ma_bitmap_flushable(info, -1);
_ma_unpin_all_pages_and_finalize_row(info, lsn);
DBUG_RETURN(res);
err:
DBUG_ASSERT(!maria_assert_if_crashed_table);
res= 1;
_ma_mark_file_crashed(share);
/*
Don't write a new LSN on the used pages. Not important as the file is
marked as crashed and need to be repaired before it can be used.
*/
lsn= LSN_IMPOSSIBLE;
goto end;
} | O0 | c | ma_apply_undo_row_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
callq 0x56a90
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x58263
movq -0x58(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x8(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x20(%rbp), %rdx
movq -0x58(%rbp), %rax
movl 0x7d4(%rax), %r9d
leaq -0x50(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x987a0
movq %rax, -0x30(%rbp)
movl $0x6, -0x48(%rbp)
cmpq $0x0, -0x30(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x40(%rbp)
movq -0x8(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x50(%rbp), %rsi
callq 0xdea60
cmpq $0x0, -0x30(%rbp)
jne 0x582dd
jmp 0x5841c
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x58440
cmpb $0x0, %al
je 0x582f6
jmp 0x5841c
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x60500
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movl $0x1, %r8d
movl %r8d, %ecx
callq 0x52530
movsbl %al, %eax
cmpl $0x0, %eax
jne 0x58341
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0xa8(%rax), %rsi
callq 0x53530
movsbl %al, %eax
cmpl $0x0, %eax
je 0x58346
jmp 0x5841c
movq -0x8(%rbp), %rax
cmpl $0x0, 0x12c(%rax)
je 0x58374
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x80, %rsi
callq 0x535c0
movsbl %al, %eax
cmpl $0x0, %eax
je 0x58374
jmp 0x5841c
movl $0x0, -0x5c(%rbp)
movq -0x58(%rbp), %rax
cmpq $0x0, 0x6a8(%rax)
je 0x58394
movq -0x18(%rbp), %rcx
xorl %eax, %eax
subl (%rcx), %eax
movl %eax, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movq $-0x1, 0x3e8(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x58(%rbp), %rax
cmpq $0x0, 0x6a8(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl -0x5c(%rbp), %r8d
movl $0x12, %edx
leaq -0x68(%rbp), %r9
xorl %ecx, %ecx
movsbl %al, %ecx
movq $0x0, (%rsp)
callq 0x3f4d0
cmpb $0x0, %al
je 0x583e4
jmp 0x5841c
movb $0x0, -0x31(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x644(%rax)
je 0x58403
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x60500
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x52b40
movb -0x31(%rbp), %al
addq $0x80, %rsp
popq %rbp
retq
jmp 0x5841e
jmp 0x58420
movb $0x1, -0x31(%rbp)
movq -0x58(%rbp), %rdi
callq 0x447c0
movq $0x0, -0x68(%rbp)
jmp 0x583e8
nopw (%rax,%rax)
| _ma_apply_undo_row_insert:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_58], rax
mov rdi, [rbp+var_18]
call uint5korr_0
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
add rax, 5
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short $+2
loc_58263:
mov rax, [rbp+var_58]
mov rdi, [rax+600h]
mov rsi, [rbp+var_8]
add rsi, 470h
mov rdx, [rbp+var_20]
mov rax, [rbp+var_58]
mov r9d, [rax+7D4h]
lea rax, [rbp+var_50]
xor ecx, ecx
xor r8d, r8d
mov dword ptr [rsp+80h+var_80], 4
mov [rsp+80h+var_78], rax
call pagecache_read
mov [rbp+var_30], rax
mov [rbp+var_48], 6
cmp [rbp+var_30], 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_40], al
mov rdi, [rbp+var_8]
add rdi, 2E8h
lea rsi, [rbp+var_50]
call insert_dynamic
cmp [rbp+var_30], 0
jnz short loc_582DD
jmp loc_5841C
loc_582DD:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov edx, [rbp+var_24]
call read_row_extent_info
cmp al, 0
jz short loc_582F6
jmp loc_5841C
loc_582F6:
mov rdi, [rbp+var_8]
mov esi, 1
call _ma_bitmap_flushable
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov r8d, 1
mov ecx, r8d
call delete_head_or_tail
movsx eax, al
cmp eax, 0
jnz short loc_58341
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
mov rsi, [rax+0A8h]
call delete_tails
movsx eax, al
cmp eax, 0
jz short loc_58346
loc_58341:
jmp loc_5841C
loc_58346:
mov rax, [rbp+var_8]
cmp dword ptr [rax+12Ch], 0
jz short loc_58374
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 80h
call free_full_pages
movsx eax, al
cmp eax, 0
jz short loc_58374
jmp loc_5841C
loc_58374:
mov [rbp+var_5C], 0
mov rax, [rbp+var_58]
cmp qword ptr [rax+6A8h], 0
jz short loc_58394
mov rcx, [rbp+var_18]
xor eax, eax
sub eax, [rcx]
mov [rbp+var_5C], eax
loc_58394:
mov rax, [rbp+var_8]
mov qword ptr [rax+3E8h], 0FFFFFFFFFFFFFFFFh
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_58]
cmp qword ptr [rax+6A8h], 0
setnz al
and al, 1
movzx eax, al
mov r8d, [rbp+var_5C]
mov edx, 12h
lea r9, [rbp+var_68]
xor ecx, ecx
movsx ecx, al
mov [rsp+80h+var_80], 0
call _ma_write_clr
cmp al, 0
jz short loc_583E4
jmp short loc_5841C
loc_583E4:
mov [rbp+var_31], 0
loc_583E8:
mov rax, [rbp+var_8]
cmp dword ptr [rax+644h], 0
jz short loc_58403
mov rdi, [rbp+var_8]
mov esi, 0FFFFFFFFh
call _ma_bitmap_flushable
loc_58403:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_68]
call _ma_unpin_all_pages_and_finalize_row_0
mov al, [rbp+var_31]
add rsp, 80h
pop rbp
retn
loc_5841C:
jmp short $+2
loc_5841E:
jmp short $+2
loc_58420:
mov [rbp+var_31], 1
mov rdi, [rbp+var_58]
call _ma_mark_file_crashed
mov [rbp+var_68], 0
jmp short loc_583E8
| char ma_apply_undo_row_insert(_QWORD *a1, long long a2, unsigned int *a3)
{
long long v4; // [rsp+18h] [rbp-68h] BYREF
int v5; // [rsp+24h] [rbp-5Ch]
long long v6; // [rsp+28h] [rbp-58h]
_BYTE v7[8]; // [rsp+30h] [rbp-50h] BYREF
int v8; // [rsp+38h] [rbp-48h]
bool v9; // [rsp+40h] [rbp-40h]
char v10; // [rsp+4Fh] [rbp-31h]
long long v11; // [rsp+50h] [rbp-30h]
unsigned int v12; // [rsp+5Ch] [rbp-24h]
unsigned long long v13; // [rsp+60h] [rbp-20h]
unsigned int *v14; // [rsp+68h] [rbp-18h]
long long v15; // [rsp+70h] [rbp-10h]
_QWORD *v16; // [rsp+78h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v6 = *a1;
v13 = uint5korr_0(a3);
v14 = (unsigned int *)((char *)v14 + 5);
v12 = *(unsigned __int8 *)v14;
v14 = (unsigned int *)((char *)v14 + 1);
v11 = pagecache_read(*(_QWORD *)(v6 + 1536), (int)a1 + 1136, v13, 0, 0, *(_DWORD *)(v6 + 2004), 4, (long long)v7);
v8 = 6;
v9 = v11 != 0;
insert_dynamic(v16 + 93, v7);
if ( !v11 )
goto LABEL_15;
if ( (unsigned __int8)read_row_extent_info(v16, v11, v12) )
goto LABEL_15;
ma_bitmap_flushable(v16, 1LL);
if ( delete_head_or_tail(v16, v13, v12, 1, 1)
|| delete_tails(v16, (unsigned long long *)v16[21])
|| *((_DWORD *)v16 + 75) && free_full_pages((long long)v16, (long long)(v16 + 16)) )
{
goto LABEL_15;
}
v5 = 0;
if ( *(_QWORD *)(v6 + 1704) )
v5 = -*v14;
v16[125] = -1LL;
if ( ma_write_clr(v16, v15, 18, *(_QWORD *)(v6 + 1704) != 0LL, v5, (long long)&v4, 0LL) )
{
LABEL_15:
v10 = 1;
ma_mark_file_crashed(v6);
v4 = 0LL;
}
else
{
v10 = 0;
}
if ( *((_DWORD *)v16 + 401) )
ma_bitmap_flushable(v16, 0xFFFFFFFFLL);
ma_unpin_all_pages_and_finalize_row_0((long long)v16, v4);
return v10;
}
| _ma_apply_undo_row_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00156a90
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x5
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00158263
LAB_00158263:
MOV RAX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x58]
MOV R9D,dword ptr [RAX + 0x7d4]
LEA RAX,[RBP + -0x50]
XOR ECX,ECX
XOR R8D,R8D
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001987a0
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x48],0x6
CMP qword ptr [RBP + -0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x40],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x50]
CALL 0x001dea60
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x001582dd
JMP 0x0015841c
LAB_001582dd:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x00158440
CMP AL,0x0
JZ 0x001582f6
JMP 0x0015841c
LAB_001582f6:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x00160500
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV R8D,0x1
MOV ECX,R8D
CALL 0x00152530
MOVSX EAX,AL
CMP EAX,0x0
JNZ 0x00158341
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0xa8]
CALL 0x00153530
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00158346
LAB_00158341:
JMP 0x0015841c
LAB_00158346:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x12c],0x0
JZ 0x00158374
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x80
CALL 0x001535c0
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00158374
JMP 0x0015841c
LAB_00158374:
MOV dword ptr [RBP + -0x5c],0x0
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX + 0x6a8],0x0
JZ 0x00158394
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
SUB EAX,dword ptr [RCX]
MOV dword ptr [RBP + -0x5c],EAX
LAB_00158394:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x3e8],-0x1
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX + 0x6a8],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV R8D,dword ptr [RBP + -0x5c]
MOV EDX,0x12
LEA R9,[RBP + -0x68]
XOR ECX,ECX
MOVSX ECX,AL
MOV qword ptr [RSP],0x0
CALL 0x0013f4d0
CMP AL,0x0
JZ 0x001583e4
JMP 0x0015841c
LAB_001583e4:
MOV byte ptr [RBP + -0x31],0x0
LAB_001583e8:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x644],0x0
JZ 0x00158403
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0xffffffff
CALL 0x00160500
LAB_00158403:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x68]
CALL 0x00152b40
MOV AL,byte ptr [RBP + -0x31]
ADD RSP,0x80
POP RBP
RET
LAB_0015841c:
JMP 0x0015841e
LAB_0015841e:
JMP 0x00158420
LAB_00158420:
MOV byte ptr [RBP + -0x31],0x1
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x001447c0
MOV qword ptr [RBP + -0x68],0x0
JMP 0x001583e8
|
int1 _ma_apply_undo_row_insert(long *param_1,int8 param_2,long param_3)
{
char cVar1;
int8 in_stack_ffffffffffffff78;
int4 uVar2;
int8 local_70;
int local_64;
long local_60;
int1 local_58 [8];
int4 local_50;
int1 local_48;
int1 local_39;
long local_38;
uint local_2c;
int8 local_28;
int *local_20;
int8 local_18;
long *local_10;
uVar2 = (int4)((ulong)in_stack_ffffffffffffff78 >> 0x20);
local_60 = *param_1;
local_20 = (int *)param_3;
local_18 = param_2;
local_10 = param_1;
local_28 = uint5korr(param_3);
local_2c = (uint)*(byte *)((long)local_20 + 5);
local_20 = (int *)((long)local_20 + 6);
local_38 = pagecache_read(*(int8 *)(local_60 + 0x600),local_10 + 0x8e,local_28,0,0,
*(int4 *)(local_60 + 0x7d4),CONCAT44(uVar2,4),local_58);
local_50 = 6;
local_48 = local_38 != 0;
insert_dynamic(local_10 + 0x5d,local_58);
if ((local_38 != 0) && (cVar1 = read_row_extent_info(local_10,local_38,local_2c), cVar1 == '\0'))
{
_ma_bitmap_flushable(local_10,1);
cVar1 = delete_head_or_tail(local_10,local_28,local_2c,1);
if (((cVar1 == '\0') && (cVar1 = delete_tails(local_10,local_10[0x15]), cVar1 == '\0')) &&
((*(int *)((long)local_10 + 300) == 0 ||
(cVar1 = free_full_pages(local_10,local_10 + 0x10), cVar1 == '\0')))) {
local_64 = 0;
if (*(long *)(local_60 + 0x6a8) != 0) {
local_64 = -*local_20;
}
local_10[0x7d] = -1;
cVar1 = _ma_write_clr(local_10,local_18,0x12,*(long *)(local_60 + 0x6a8) != 0,local_64,
&local_70,0);
if (cVar1 == '\0') {
local_39 = 0;
goto LAB_001583e8;
}
}
}
local_39 = 1;
_ma_mark_file_crashed(local_60);
local_70 = 0;
LAB_001583e8:
if (*(int *)((long)local_10 + 0x644) != 0) {
_ma_bitmap_flushable(local_10,0xffffffff);
}
_ma_unpin_all_pages_and_finalize_row(local_10,local_70);
return local_39;
}
| |
50,095 | ftparser_alloc_param | eloqsql/storage/myisam/ft_parser.c | MYSQL_FTPARSER_PARAM* ftparser_alloc_param(MI_INFO *info)
{
if (!info->ftparser_param)
{
/*
. info->ftparser_param can not be zero after the initialization,
because it always includes built-in fulltext parser. And built-in
parser can be called even if the table has no fulltext indexes and
no varchar/text fields.
ftb_find_relevance... parser (ftb_find_relevance_parse,
ftb_find_relevance_add_word) calls ftb_check_phrase... parser
(ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2.
*/
info->ftparser_param= (MYSQL_FTPARSER_PARAM *)
my_malloc(mi_key_memory_FTPARSER_PARAM,
MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) * info->s->ftkeys,
MYF(MY_WME | MY_ZEROFILL));
init_alloc_root(mi_key_memory_ft_memroot, &info->ft_memroot,
FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0));
}
return info->ftparser_param;
} | O3 | c | ftparser_alloc_param:
movq 0xd0(%rdi), %rax
testq %rax, %rax
je 0x7460c
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xb8afe8(%rip), %rax # 0xbff604
movl (%rax), %edi
movq (%rbx), %rax
movl 0x34c(%rax), %esi
shlq $0x7, %rsi
movl $0x30, %edx
callq 0xa06a1
movq %rax, 0xd0(%rbx)
leaq 0xb8afc5(%rip), %rax # 0xbff608
movl (%rax), %edi
leaq 0x90(%rbx), %rsi
movl $0x10000, %edx # imm = 0x10000
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x9d290
movq 0xd0(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| ftparser_alloc_param:
mov rax, [rdi+0D0h]
test rax, rax
jz short loc_7460C
retn
loc_7460C:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
lea rax, mi_key_memory_FTPARSER_PARAM
mov edi, [rax]
mov rax, [rbx]
mov esi, [rax+34Ch]
shl rsi, 7
mov edx, 30h ; '0'
call my_malloc
mov [rbx+0D0h], rax
lea rax, mi_key_memory_ft_memroot
mov edi, [rax]
lea rsi, [rbx+90h]
mov edx, offset stru_10000
xor ecx, ecx
xor r8d, r8d
call init_alloc_root
mov rax, [rbx+0D0h]
add rsp, 8
pop rbx
pop rbp
retn
| long long ftparser_alloc_param(_QWORD *a1)
{
long long result; // rax
result = a1[26];
if ( !result )
{
a1[26] = my_malloc(mi_key_memory_FTPARSER_PARAM, (unsigned long long)*(unsigned int *)(*a1 + 844LL) << 7, 48LL);
init_alloc_root(mi_key_memory_ft_memroot, a1 + 18, &stru_10000, 0LL, 0LL);
return a1[26];
}
return result;
}
| ftparser_alloc_param:
MOV RAX,qword ptr [RDI + 0xd0]
TEST RAX,RAX
JZ 0x0017460c
RET
LAB_0017460c:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0xcff604]
MOV EDI,dword ptr [RAX]
MOV RAX,qword ptr [RBX]
MOV ESI,dword ptr [RAX + 0x34c]
SHL RSI,0x7
MOV EDX,0x30
CALL 0x001a06a1
MOV qword ptr [RBX + 0xd0],RAX
LEA RAX,[0xcff608]
MOV EDI,dword ptr [RAX]
LEA RSI,[RBX + 0x90]
MOV EDX,0x10000
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0019d290
MOV RAX,qword ptr [RBX + 0xd0]
ADD RSP,0x8
POP RBX
POP RBP
RET
|
long ftparser_alloc_param(long *param_1)
{
long lVar1;
int8 in_R9;
long lVar2;
lVar2 = param_1[0x1a];
if (lVar2 != 0) {
return lVar2;
}
lVar1 = my_malloc(mi_key_memory_FTPARSER_PARAM,(ulong)*(uint *)(*param_1 + 0x34c) << 7,0x30);
param_1[0x1a] = lVar1;
init_alloc_root(mi_key_memory_ft_memroot,param_1 + 0x12,0x10000,0,0,in_R9,lVar2);
return param_1[0x1a];
}
| |
50,096 | js_same_value_zero | bluesky950520[P]quickjs/quickjs.c | static BOOL js_same_value_zero(JSContext *ctx, JSValue op1, JSValue op2)
{
return js_strict_eq2(ctx, js_dup(op1), js_dup(op2), JS_EQ_SAME_VALUE_ZERO);
} | O1 | c | js_same_value_zero:
movq %rsi, -0x8(%rsp)
cmpl $-0x9, %edx
jb 0x3a352
movq -0x8(%rsp), %rax
incl (%rax)
movq %rcx, -0x8(%rsp)
cmpl $-0x9, %r8d
jb 0x3a364
movq -0x8(%rsp), %rax
incl (%rax)
movl $0x2, %r9d
jmp 0x3a124
| js_same_value_zero:
mov [rsp+var_8], rsi
cmp edx, 0FFFFFFF7h
jb short loc_3A352
mov rax, [rsp+var_8]
inc dword ptr [rax]
loc_3A352:
mov [rsp+var_8], rcx
cmp r8d, 0FFFFFFF7h
jb short loc_3A364
mov rax, [rsp+var_8]
inc dword ptr [rax]
loc_3A364:
mov r9d, 2
jmp js_strict_eq2
| _BOOL8 js_same_value_zero(long long a1, _DWORD *a2, long long a3, _DWORD *a4, long long a5, double a6, __m128d a7)
{
if ( (unsigned int)a3 >= 0xFFFFFFF7 )
++*a2;
if ( (unsigned int)a5 >= 0xFFFFFFF7 )
++*a4;
return js_strict_eq2(a1, a2, a3, a4, a5, 2, a6, a7);
}
| js_same_value_zero:
MOV qword ptr [RSP + -0x8],RSI
CMP EDX,-0x9
JC 0x0013a352
MOV RAX,qword ptr [RSP + -0x8]
INC dword ptr [RAX]
LAB_0013a352:
MOV qword ptr [RSP + -0x8],RCX
CMP R8D,-0x9
JC 0x0013a364
MOV RAX,qword ptr [RSP + -0x8]
INC dword ptr [RAX]
LAB_0013a364:
MOV R9D,0x2
JMP 0x0013a124
|
void js_same_value_zero(int8 param_1,int *param_2,uint param_3,int *param_4,uint param_5)
{
if (0xfffffff6 < param_3) {
*param_2 = *param_2 + 1;
}
if (0xfffffff6 < param_5) {
*param_4 = *param_4 + 1;
}
js_strict_eq2();
return;
}
| |
50,097 | transid_store_packed | eloqsql/storage/maria/ma_key.c | uint transid_store_packed(MARIA_HA *info, uchar *to, ulonglong trid)
{
uchar *start;
uint length;
uchar buff[8];
DBUG_ASSERT(trid < (1LL << (MARIA_MAX_PACK_TRANSID_SIZE*8)));
DBUG_ASSERT(trid >= info->s->state.create_trid);
trid= (trid - info->s->state.create_trid) << 1;
/* Mark that key contains transid */
to[-1]|= 1;
if (trid < MARIA_MIN_TRANSID_PACK_OFFSET)
{
to[0]= (uchar) trid;
return 1;
}
start= to;
/* store things in low-byte-first-order in buff */
to= buff;
do
{
*to++= (uchar) trid;
trid= trid>>8;
} while (trid);
length= (uint) (to - buff);
/* Store length prefix */
start[0]= (uchar) (length + MARIA_TRANSID_PACK_OFFSET);
start++;
/* Copy things in high-byte-first order to output buffer */
do
{
*start++= *--to;
} while (to != buff);
return length+1;
} | O3 | c | transid_store_packed:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq (%rdi), %rax
subq 0xe0(%rax), %rdx
addq %rdx, %rdx
orb $0x1, -0x1(%rsi)
cmpq $0xf3, %rdx
jae 0x41608
movb %dl, (%rsi)
movl $0x1, %eax
jmp 0x4163f
xorl %eax, %eax
movq %rdx, %rcx
movb %dl, -0x10(%rbp,%rax)
shrq $0x8, %rcx
incq %rax
cmpq $0xff, %rdx
movq %rcx, %rdx
ja 0x4160d
leal -0x7(%rax), %ecx
movb %cl, (%rsi)
incq %rsi
movq %rax, %rcx
movb -0x11(%rbp,%rcx), %dl
movb %dl, (%rsi)
incq %rsi
decq %rcx
jne 0x4162f
incl %eax
movq %fs:0x28, %rcx
cmpq -0x8(%rbp), %rcx
jne 0x41654
addq $0x10, %rsp
popq %rbp
retq
callq 0x29250
| transid_store_packed:
push rbp
mov rbp, rsp
sub rsp, 10h
mov rax, fs:28h
mov [rbp+var_8], rax
mov rax, [rdi]
sub rdx, [rax+0E0h]
add rdx, rdx
or byte ptr [rsi-1], 1
cmp rdx, 0F3h
jnb short loc_41608
mov [rsi], dl
mov eax, 1
jmp short loc_4163F
loc_41608:
xor eax, eax
mov rcx, rdx
loc_4160D:
mov [rbp+rax+var_10], dl
shr rcx, 8
inc rax
cmp rdx, 0FFh
mov rdx, rcx
ja short loc_4160D
lea ecx, [rax-7]
mov [rsi], cl
inc rsi
mov rcx, rax
loc_4162F:
mov dl, [rbp+rcx+var_11]
mov [rsi], dl
inc rsi
dec rcx
jnz short loc_4162F
inc eax
loc_4163F:
mov rcx, fs:28h
cmp rcx, [rbp+var_8]
jnz short loc_41654
add rsp, 10h
pop rbp
retn
loc_41654:
call ___stack_chk_fail
| long long transid_store_packed(long long a1, _BYTE *a2, long long a3)
{
unsigned long long v3; // rdx
long long v5; // rax
unsigned long long v6; // rcx
bool v7; // cc
_BYTE *v8; // rsi
long long v9; // rcx
_BYTE v10[9]; // [rsp+1h] [rbp-11h]
unsigned long long v11; // [rsp+Ah] [rbp-8h]
v11 = __readfsqword(0x28u);
v3 = 2 * (a3 - *(_QWORD *)(*(_QWORD *)a1 + 224LL));
*(a2 - 1) |= 1u;
if ( v3 >= 0xF3 )
{
v5 = 0LL;
v6 = v3;
do
{
v10[v5 + 1] = v3;
v6 >>= 8;
++v5;
v7 = v3 <= 0xFF;
v3 = v6;
}
while ( !v7 );
*a2 = v5 - 7;
v8 = a2 + 1;
v9 = v5;
do
*v8++ = v10[v9--];
while ( v9 );
return (unsigned int)(v5 + 1);
}
else
{
*a2 = v3;
return 1LL;
}
}
| transid_store_packed:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RDI]
SUB RDX,qword ptr [RAX + 0xe0]
ADD RDX,RDX
OR byte ptr [RSI + -0x1],0x1
CMP RDX,0xf3
JNC 0x00141608
MOV byte ptr [RSI],DL
MOV EAX,0x1
JMP 0x0014163f
LAB_00141608:
XOR EAX,EAX
MOV RCX,RDX
LAB_0014160d:
MOV byte ptr [RBP + RAX*0x1 + -0x10],DL
SHR RCX,0x8
INC RAX
CMP RDX,0xff
MOV RDX,RCX
JA 0x0014160d
LEA ECX,[RAX + -0x7]
MOV byte ptr [RSI],CL
INC RSI
MOV RCX,RAX
LAB_0014162f:
MOV DL,byte ptr [RBP + RCX*0x1 + -0x11]
MOV byte ptr [RSI],DL
INC RSI
DEC RCX
JNZ 0x0014162f
INC EAX
LAB_0014163f:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x8]
JNZ 0x00141654
ADD RSP,0x10
POP RBP
RET
LAB_00141654:
CALL 0x00129250
|
int transid_store_packed(long *param_1,char *param_2,long param_3)
{
bool bVar1;
int iVar2;
long lVar3;
long lVar4;
ulong uVar5;
long in_FS_OFFSET;
int8 uStack_20;
char local_18 [8];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
uVar5 = (param_3 - *(long *)(*param_1 + 0xe0)) * 2;
param_2[-1] = param_2[-1] | 1;
if (uVar5 < 0xf3) {
*param_2 = (char)uVar5;
iVar2 = 1;
}
else {
lVar3 = 0;
do {
lVar4 = lVar3;
local_18[lVar4] = (char)uVar5;
lVar3 = lVar4 + 1;
bVar1 = 0xff < uVar5;
uVar5 = uVar5 >> 8;
} while (bVar1);
*param_2 = (char)lVar4 + -6;
param_2 = param_2 + 1;
lVar4 = lVar3;
do {
*param_2 = local_18[lVar4 + -1];
param_2 = param_2 + 1;
lVar4 = lVar4 + -1;
} while (lVar4 != 0);
iVar2 = (int)lVar3 + 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return iVar2;
}
/* WARNING: Subroutine does not return */
uStack_20 = transid_get_packed;
__stack_chk_fail();
}
| |
50,098 | list_walk | eloqsql/mysys/list.c | int list_walk(LIST *list, list_walk_action action, uchar* argument)
{
int error=0;
while (list)
{
if ((error = (*action)(list->data,argument)))
return error;
list=list_rest(list);
}
return 0;
} | O0 | c | list_walk:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xdf5d2
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
je 0xdf5c4
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xdf5d9
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0xdf59b
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| list_walk:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], 0
loc_DF59B:
cmp [rbp+var_10], 0
jz short loc_DF5D2
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rdi, [rcx+10h]
mov rsi, [rbp+var_20]
call rax
mov [rbp+var_24], eax
cmp eax, 0
jz short loc_DF5C4
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_DF5D9
loc_DF5C4:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_10], rax
jmp short loc_DF59B
loc_DF5D2:
mov [rbp+var_4], 0
loc_DF5D9:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long list_walk(long long a1, long long ( *a2)(_QWORD, long long), long long a3)
{
unsigned int v4; // [rsp+Ch] [rbp-24h]
while ( a1 )
{
v4 = a2(*(_QWORD *)(a1 + 16), a3);
if ( v4 )
return v4;
a1 = *(_QWORD *)(a1 + 8);
}
return 0;
}
| list_walk:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],0x0
LAB_001df59b:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001df5d2
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
MOV dword ptr [RBP + -0x24],EAX
CMP EAX,0x0
JZ 0x001df5c4
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001df5d9
LAB_001df5c4:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001df59b
LAB_001df5d2:
MOV dword ptr [RBP + -0x4],0x0
LAB_001df5d9:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int list_walk(long param_1,code *param_2,int8 param_3)
{
int iVar1;
long local_18;
local_18 = param_1;
while( true ) {
if (local_18 == 0) {
return 0;
}
iVar1 = (*param_2)(*(int8 *)(local_18 + 0x10),param_3);
if (iVar1 != 0) break;
local_18 = *(long *)(local_18 + 8);
}
return iVar1;
}
| |
50,099 | mi_ft_parse | eloqsql/storage/myisam/ft_update.c | uint _mi_ft_parse(TREE *parsed, MI_INFO *info, uint keynr, const uchar *record,
MYSQL_FTPARSER_PARAM *param, MEM_ROOT *mem_root)
{
FT_SEG_ITERATOR ftsi;
struct st_mysql_ftparser *parser;
DBUG_ENTER("_mi_ft_parse");
_mi_ft_segiterator_init(info, keynr, record, &ftsi);
ft_parse_init(parsed, info->s->keyinfo[keynr].seg->charset);
parser= info->s->keyinfo[keynr].parser;
while (_mi_ft_segiterator(&ftsi))
{
if (ftsi.pos)
if (ft_parse(parsed, (uchar *)ftsi.pos, ftsi.len, parser, param, mem_root))
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O3 | c | mi_ft_parse:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq (%rsi), %rax
movq 0x218(%rax), %rax
movl %edx, %edx
imulq $0x70, %rdx, %r13
movzwl 0x8(%rax,%r13), %edx
leaq -0x50(%rbp), %r12
movl %edx, (%r12)
movq 0x28(%rax,%r13), %rax
movq %rax, 0x8(%r12)
movq %rcx, 0x10(%r12)
movq $0x0, 0x18(%r12)
movl $0x0, 0x4(%r12)
movq (%rax), %rsi
callq 0x73afa
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movq 0x38(%rax,%r13), %r13
movq %r12, %rdi
callq 0x73ece
xorl %ecx, %ecx
testl %eax, %eax
je 0x74042
movq -0x38(%rbp), %rsi
testq %rsi, %rsi
je 0x7402d
movl -0x4c(%rbp), %edx
movq %r15, %rdi
movq %r13, %rcx
movq %r14, %r8
movq %rbx, %r9
callq 0x73b4a
testl %eax, %eax
jne 0x7403d
movq %r12, %rdi
callq 0x73ece
testl %eax, %eax
jne 0x7400c
xorl %ecx, %ecx
jmp 0x74042
movl $0x1, %ecx
movl %ecx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mi_ft_parse:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, r9
mov r14, r8
mov [rbp+var_30], rsi
mov r15, rdi
mov rax, [rsi]
mov rax, [rax+218h]
mov edx, edx
imul r13, rdx, 70h ; 'p'
movzx edx, word ptr [rax+r13+8]
lea r12, [rbp+var_50]
mov [r12], edx
mov rax, [rax+r13+28h]
mov [r12+8], rax
mov [r12+10h], rcx
mov qword ptr [r12+18h], 0
mov dword ptr [r12+4], 0
mov rsi, [rax]
call ft_parse_init
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+218h]
mov r13, [rax+r13+38h]
mov rdi, r12
call _mi_ft_segiterator
xor ecx, ecx
test eax, eax
jz short loc_74042
loc_7400C:
mov rsi, [rbp+var_38]
test rsi, rsi
jz short loc_7402D
mov edx, [rbp+var_4C]
mov rdi, r15
mov rcx, r13
mov r8, r14
mov r9, rbx
call ft_parse
test eax, eax
jnz short loc_7403D
loc_7402D:
mov rdi, r12
call _mi_ft_segiterator
test eax, eax
jnz short loc_7400C
xor ecx, ecx
jmp short loc_74042
loc_7403D:
mov ecx, 1
loc_74042:
mov eax, ecx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mi_ft_parse(_QWORD *a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6)
{
long long v8; // rax
long long v9; // r13
long long v10; // r13
int v11; // eax
unsigned int v12; // ecx
int v14; // [rsp+0h] [rbp-50h] BYREF
int v15; // [rsp+4h] [rbp-4Ch]
long long *v16; // [rsp+8h] [rbp-48h]
long long v17; // [rsp+10h] [rbp-40h]
long long v18; // [rsp+18h] [rbp-38h]
long long v19; // [rsp+20h] [rbp-30h]
v19 = a2;
v8 = *(_QWORD *)(*(_QWORD *)a2 + 536LL);
v9 = 112LL * a3;
v14 = *(unsigned __int16 *)(v8 + v9 + 8);
v16 = *(long long **)(v8 + v9 + 40);
v17 = a4;
v18 = 0LL;
v15 = 0;
ft_parse_init(a1, *v16);
v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a2 + 536LL) + v9 + 56);
v11 = mi_ft_segiterator((long long)&v14);
v12 = 0;
if ( v11 )
{
while ( !v18 || !(unsigned int)ft_parse((long long)a1, v18, v15, v10, a5, a6) )
{
if ( !(unsigned int)mi_ft_segiterator((long long)&v14) )
return 0;
}
return 1;
}
return v12;
}
| _mi_ft_parse:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,R9
MOV R14,R8
MOV qword ptr [RBP + -0x30],RSI
MOV R15,RDI
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX + 0x218]
MOV EDX,EDX
IMUL R13,RDX,0x70
MOVZX EDX,word ptr [RAX + R13*0x1 + 0x8]
LEA R12,[RBP + -0x50]
MOV dword ptr [R12],EDX
MOV RAX,qword ptr [RAX + R13*0x1 + 0x28]
MOV qword ptr [R12 + 0x8],RAX
MOV qword ptr [R12 + 0x10],RCX
MOV qword ptr [R12 + 0x18],0x0
MOV dword ptr [R12 + 0x4],0x0
MOV RSI,qword ptr [RAX]
CALL 0x00173afa
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV R13,qword ptr [RAX + R13*0x1 + 0x38]
MOV RDI,R12
CALL 0x00173ece
XOR ECX,ECX
TEST EAX,EAX
JZ 0x00174042
LAB_0017400c:
MOV RSI,qword ptr [RBP + -0x38]
TEST RSI,RSI
JZ 0x0017402d
MOV EDX,dword ptr [RBP + -0x4c]
MOV RDI,R15
MOV RCX,R13
MOV R8,R14
MOV R9,RBX
CALL 0x00173b4a
TEST EAX,EAX
JNZ 0x0017403d
LAB_0017402d:
MOV RDI,R12
CALL 0x00173ece
TEST EAX,EAX
JNZ 0x0017400c
XOR ECX,ECX
JMP 0x00174042
LAB_0017403d:
MOV ECX,0x1
LAB_00174042:
MOV EAX,ECX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_mi_ft_parse(int8 param_1,long *param_2,uint param_3,int8 param_4,int8 param_5,
int8 param_6)
{
int8 uVar1;
int iVar2;
long lVar3;
uint local_58;
int4 local_54;
int8 *local_50;
int8 local_48;
long local_40;
long *local_38;
lVar3 = (ulong)param_3 * 0x70;
local_58 = (uint)*(ushort *)(*(long *)(*param_2 + 0x218) + 8 + lVar3);
local_50 = *(int8 **)(*(long *)(*param_2 + 0x218) + 0x28 + lVar3);
local_40 = 0;
local_54 = 0;
local_48 = param_4;
local_38 = param_2;
ft_parse_init(param_1,*local_50);
uVar1 = *(int8 *)(*(long *)(*local_38 + 0x218) + 0x38 + lVar3);
iVar2 = _mi_ft_segiterator(&local_58);
while( true ) {
if (iVar2 == 0) {
return 0;
}
if ((local_40 != 0) &&
(iVar2 = ft_parse(param_1,local_40,local_54,uVar1,param_5,param_6), iVar2 != 0)) break;
iVar2 = _mi_ft_segiterator(&local_58);
}
return 1;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
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++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
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.