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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
32,700 | ModelLoader::load_tensors(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, ggml_backend*, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<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>>>>) | 7CodeWizard[P]stablediffusion/model.cpp | bool ModelLoader::load_tensors(std::map<std::string, struct ggml_tensor*>& tensors,
ggml_backend_t backend,
std::set<std::string> ignore_tensors) {
std::set<std::string> tensor_names_in_file;
auto on_new_tensor_cb = [&](const TensorStorage& tensor_storage, ggml_tensor** dst_tensor) -> bool {
const std::string& name = tensor_storage.name;
tensor_names_in_file.insert(name);
struct ggml_tensor* real;
if (tensors.find(name) != tensors.end()) {
real = tensors[name];
} else {
if (ignore_tensors.find(name) == ignore_tensors.end()) {
LOG_WARN("unknown tensor '%s' in model file", name.c_str());
}
return true;
}
if (
real->ne[0] != tensor_storage.ne[0] ||
real->ne[1] != tensor_storage.ne[1] ||
real->ne[2] != tensor_storage.ne[2] ||
real->ne[3] != tensor_storage.ne[3]) {
LOG_ERROR(
"tensor '%s' has wrong shape in model file: "
"got [%d, %d, %d, %d], expected [%d, %d, %d, %d]",
name.c_str(),
(int)tensor_storage.ne[0], (int)tensor_storage.ne[1], (int)tensor_storage.ne[2], (int)tensor_storage.ne[3],
(int)real->ne[0], (int)real->ne[1], (int)real->ne[2], (int)real->ne[3]);
return false;
}
*dst_tensor = real;
return true;
};
bool success = load_tensors(on_new_tensor_cb, backend);
if (!success) {
LOG_ERROR("load tensors from file failed");
return false;
}
bool some_tensor_not_init = false;
for (auto pair : tensors) {
if (pair.first.find("cond_stage_model.transformer.text_model.encoder.layers.23") != std::string::npos) {
continue;
}
if (pair.first.find("alphas_cumprod") != std::string::npos) {
continue;
}
if (pair.first.find("alphas_cumprod") != std::string::npos) {
continue;
}
if (tensor_names_in_file.find(pair.first) == tensor_names_in_file.end()) {
LOG_ERROR("tensor '%s' not in model file", pair.first.c_str());
some_tensor_not_init = true;
}
}
if (some_tensor_not_init) {
return false;
}
return true;
} | O3 | cpp | ModelLoader::load_tensors(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, ggml_backend*, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<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>>>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x60(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movl $0x18, %edi
callq 0xa5c0
leaq 0x58(%rsp), %rcx
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
movq %r12, 0x10(%rax)
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x858(%rip), %rax # 0x6b10c
movq %rax, 0x18(%rsi)
leaq 0x973(%rip), %rax # 0x6b232
movq %rax, 0x10(%rsi)
movq %r15, %rdi
movq %r14, %rdx
callq 0x69f40
movl %eax, %ebp
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x6a8e9
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
testb %bpl, %bpl
je 0x6aa01
movq 0x18(%rbx), %r15
addq $0x8, %rbx
cmpq %rbx, %r15
je 0x6aa24
leaq 0x18(%rsp), %rbp
movq $0x0, (%rsp)
leaq 0x8(%rsp), %r12
leaq 0x569bf(%rip), %r13 # 0xc12db
movq %rbp, 0x8(%rsp)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2ebc4
movq 0x40(%r15), %rax
movq %rax, 0x28(%rsp)
movl $0x39, %ecx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xaaa0
cmpq $-0x1, %rax
jne 0x6a9cd
movl $0xe, %ecx
movq %r12, %rdi
leaq 0x555fc(%rip), %r14 # 0xbff60
movq %r14, %rsi
xorl %edx, %edx
callq 0xaaa0
cmpq $-0x1, %rax
jne 0x6a9cd
movl $0xe, %ecx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xaaa0
cmpq $-0x1, %rax
jne 0x6a9cd
leaq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x4c548
leaq 0x60(%rsp), %rcx
cmpq %rcx, %rax
jne 0x6a9cd
movb $0x1, %al
movq %rax, (%rsp)
movq 0x8(%rsp), %r8
movl $0x3, %edi
leaq 0x56429(%rip), %rsi # 0xc0de3
movl $0x5aa, %edx # imm = 0x5AA
leaq 0x5694f(%rip), %rcx # 0xc1315
xorl %eax, %eax
callq 0x7947e
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6a9e4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq %r15, %rdi
callq 0xa3d0
movq %rax, %r15
cmpq %rbx, %rax
jne 0x6a91c
movq (%rsp), %rbx
xorb $0x1, %bl
jmp 0x6aa26
xorl %ebx, %ebx
leaq 0x563d9(%rip), %rsi # 0xc0de3
leaq 0x568ac(%rip), %rcx # 0xc12bd
movl $0x3, %edi
movl $0x597, %edx # imm = 0x597
xorl %eax, %eax
callq 0x7947e
jmp 0x6aa26
movb $0x1, %bl
leaq 0x58(%rsp), %rdi
callq 0x46d4e
andb $0x1, %bl
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6aa49
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6aa92
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x6aa92
jmp 0x6aa85
movq %rax, %rbx
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x6aa92
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x6aa92
movq %rax, %rdi
callq 0x36331
jmp 0x6aa8f
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x46d4e
movq %rbx, %rdi
callq 0xaad0
| _ZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEEP12ggml_backendSt3setIS6_SA_SaIS6_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r12, rcx
mov r14, rdx
mov rbx, rsi
mov r15, rdi
lea rcx, [rsp+0B8h+var_58]
mov dword ptr [rcx], 0
xor eax, eax
mov [rcx+8], rax
mov [rcx+10h], rcx
mov [rcx+18h], rcx
mov [rcx+20h], rax
xorps xmm0, xmm0
movaps [rsp+0B8h+var_88], xmm0
movaps [rsp+0B8h+var_78], xmm0
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
lea rcx, [rsp+0B8h+var_60]
mov [rax], rcx
mov [rax+8], rbx
mov [rax+10h], r12
lea rsi, [rsp+0B8h+var_88]
mov [rsi], rax
lea rax, _ZNSt17_Function_handlerIFbRK13TensorStoragePP11ggml_tensorEZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_St4lessISE_ESaISt4pairIKSE_S4_EEEP12ggml_backendSt3setISE_SG_SaISE_EEE3$_0E9_M_invokeERKSt9_Any_dataS2_OS5_; std::_Function_handler<bool ()(TensorStorage const&,ggml_tensor **),ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)::$_0>::_M_invoke(std::_Any_data const&,TensorStorage const&,ggml_tensor **&&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFbRK13TensorStoragePP11ggml_tensorEZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_St4lessISE_ESaISt4pairIKSE_S4_EEEP12ggml_backendSt3setISE_SG_SaISE_EEE3$_0E10_M_managerERSt9_Any_dataRKSU_St18_Manager_operation; std::_Function_handler<bool ()(TensorStorage const&,ggml_tensor **),ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
mov rdi, r15; __int64
mov rdx, r14
call _ZN11ModelLoader12load_tensorsESt8functionIFbRK13TensorStoragePP11ggml_tensorEEP12ggml_backend; ModelLoader::load_tensors(std::function<bool ()(TensorStorage const&,ggml_tensor **)>,ggml_backend *)
mov ebp, eax
mov rax, qword ptr [rsp+0B8h+var_78]
test rax, rax
jz short loc_6A8E9
lea rdi, [rsp+0B8h+var_88]
mov rsi, rdi
mov edx, 3
call rax
loc_6A8E9:
test bpl, bpl
jz loc_6AA01
mov r15, [rbx+18h]
add rbx, 8
cmp r15, rbx
jz loc_6AA24
lea rbp, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_B8], 0
lea r12, [rsp+0B8h+var_B0]
lea r13, aCondStageModel_6; "cond_stage_model.transformer.text_model"...
loc_6A91C:
mov [rsp+0B8h+var_B0], rbp
mov rsi, [r15+20h]
mov rdx, [r15+28h]
add rdx, rsi
mov rdi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, [r15+40h]
mov [rsp+0B8h+var_90], rax
mov ecx, 39h ; '9'
mov rdi, r12
mov rsi, r13
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_6A9CD
mov ecx, 0Eh
mov rdi, r12
lea r14, aSqrtRecipm1Alp+0Dh; "alphas_cumprod"
mov rsi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_6A9CD
mov ecx, 0Eh
mov rdi, r12
mov rsi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_6A9CD
lea rdi, [rsp+0B8h+var_60]
mov rsi, r12
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE4findERKS5_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(std::string const&)
lea rcx, [rsp+0B8h+var_58]
cmp rax, rcx
jnz short loc_6A9CD
mov al, 1
mov [rsp+0B8h+var_B8], rax
mov r8, [rsp+0B8h+var_B0]
mov edi, 3
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
mov edx, 5AAh
lea rcx, aTensorSNotInMo; "tensor '%s' not in model file"
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
loc_6A9CD:
mov rdi, [rsp+0B8h+var_B0]; void *
cmp rdi, rbp
jz short loc_6A9E4
mov rsi, [rsp+0B8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6A9E4:
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 loc_6A91C
mov rbx, [rsp+0B8h+var_B8]
xor bl, 1
jmp short loc_6AA26
loc_6AA01:
xor ebx, ebx
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aLoadTensorsFro_0; "load tensors from file failed"
mov edi, 3
mov edx, 597h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short loc_6AA26
loc_6AA24:
mov bl, 1
loc_6AA26:
lea rdi, [rsp+0B8h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
and bl, 1
mov eax, ebx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_6AA49:
mov rbx, rax
mov rdi, [rsp+0B8h+var_B0]; void *
cmp rdi, rbp
jz short loc_6AA92
mov rsi, [rsp+0B8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6AA92
jmp short loc_6AA85
mov rbx, rax
mov rax, qword ptr [rsp+0B8h+var_78]
test rax, rax
jz short loc_6AA92
lea rdi, [rsp+0B8h+var_88]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_6AA92
loc_6AA85:
mov rdi, rax
call __clang_call_terminate
jmp short $+2
loc_6AA8F:
mov rbx, rax
loc_6AA92:
lea rdi, [rsp+0B8h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long ModelLoader::load_tensors(long long a1, long long a2, long long a3, long long a4)
{
_QWORD *v6; // rax
char tensors; // bp
int v8; // r8d
int v9; // r9d
long long v10; // r15
long long v11; // rbx
int *v12; // rax
int v13; // r9d
int v15; // [rsp+0h] [rbp-B8h]
void *v16[2]; // [rsp+8h] [rbp-B0h] BYREF
_QWORD v17[3]; // [rsp+18h] [rbp-A0h] BYREF
__int128 v18; // [rsp+30h] [rbp-88h] BYREF
long long ( *v19)(); // [rsp+40h] [rbp-78h]
long long ( *v20)(); // [rsp+48h] [rbp-70h]
_BYTE v21[8]; // [rsp+58h] [rbp-60h] BYREF
int v22; // [rsp+60h] [rbp-58h] BYREF
long long v23; // [rsp+68h] [rbp-50h]
int *v24; // [rsp+70h] [rbp-48h]
int *v25; // [rsp+78h] [rbp-40h]
long long v26; // [rsp+80h] [rbp-38h]
v22 = 0;
v23 = 0LL;
v24 = &v22;
v25 = &v22;
v26 = 0LL;
v18 = 0LL;
v6 = (_QWORD *)operator new(0x18uLL);
*v6 = v21;
v6[1] = a2;
v6[2] = a4;
*(_QWORD *)&v18 = v6;
v20 = std::_Function_handler<bool ()(TensorStorage const&,ggml_tensor **),ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)::$_0>::_M_invoke;
v19 = std::_Function_handler<bool ()(TensorStorage const&,ggml_tensor **),ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)::$_0>::_M_manager;
tensors = ModelLoader::load_tensors(a1, (long long)&v18, a3);
if ( v19 )
((void ( *)(__int128 *, __int128 *, long long))v19)(&v18, &v18, 3LL);
if ( tensors )
{
v10 = *(_QWORD *)(a2 + 24);
v11 = a2 + 8;
if ( v10 == a2 + 8 )
{
LOBYTE(v11) = 1;
}
else
{
v15 = 0;
do
{
v16[0] = v17;
std::string::_M_construct<char *>(
(long long)v16,
*(_BYTE **)(v10 + 32),
*(_QWORD *)(v10 + 32) + *(_QWORD *)(v10 + 40));
v17[2] = *(_QWORD *)(v10 + 64);
if ( std::string::find(v16, "cond_stage_model.transformer.text_model.encoder.layers.23", 0LL, 57LL) == -1
&& std::string::find(v16, "alphas_cumprod", 0LL, 14LL) == -1
&& std::string::find(v16, "alphas_cumprod", 0LL, 14LL) == -1 )
{
v12 = (int *)std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(
(long long)v21,
(long long)v16);
if ( v12 == &v22 )
{
LOBYTE(v12) = 1;
v15 = (int)v12;
log_printf(
3,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
1450,
(unsigned int)"tensor '%s' not in model file",
v16[0],
v13);
}
}
if ( v16[0] != v17 )
operator delete(v16[0], v17[0] + 1LL);
v10 = std::_Rb_tree_increment(v10);
}
while ( v10 != v11 );
LODWORD(v11) = v15;
LOBYTE(v11) = v15 ^ 1;
}
}
else
{
LODWORD(v11) = 0;
log_printf(
3,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
1431,
(unsigned int)"load tensors from file failed",
v8,
v9);
}
std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree((long long)v21);
LOBYTE(v11) = v11 & 1;
return (unsigned int)v11;
}
| |||
32,701 | POINTonE2_affine_on_curve | corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/e2.c | static bool_t POINTonE2_affine_on_curve(const POINTonE2_affine *p)
{
vec384x XXX, YY;
sqr_fp2(XXX, p->X);
mul_fp2(XXX, XXX, p->X); /* X^3 */
add_fp2(XXX, XXX, B_E2); /* X^3 + B */
sqr_fp2(YY, p->Y); /* Y^2 */
return vec_is_equal(XXX, YY, sizeof(XXX));
} | O2 | c | POINTonE2_affine_on_curve:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5ad98
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5ad73
leaq 0x2d5af(%rip), %rdx # 0x80bd0
movq %r14, %rdi
movq %r14, %rsi
callq 0x5acb9
addq $0x60, %rbx
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ad98
pushq $0x60
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x52f34
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| POINTonE2_affine_on_curve:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
mov rbx, rdi
lea r14, [rbp+var_E0]
mov rdi, r14
mov rsi, rbx
call sqr_fp2
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp2
lea rdx, B_E2
mov rdi, r14
mov rsi, r14
call add_fp2
add rbx, 60h ; '`'
lea r15, [rbp+var_80]
mov rdi, r15
mov rsi, rbx
call sqr_fp2
push 60h ; '`'
pop rdx
mov rdi, r14
mov rsi, r15
call vec_is_equal
add rsp, 0C8h
pop rbx
pop r14
pop r15
pop rbp
retn
| unsigned long long POINTonE2_affine_on_curve(long long a1)
{
_BYTE v2[96]; // [rsp+0h] [rbp-E0h] BYREF
_BYTE v3[128]; // [rsp+60h] [rbp-80h] BYREF
sqr_fp2(v2, a1);
mul_fp2(v2, v2, a1);
add_fp2(v2, v2, &B_E2);
sqr_fp2(v3, a1 + 96);
return vec_is_equal((long long)v2, (long long)v3, 0x60uLL);
}
| POINTonE2_affine_on_curve:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDI
LEA R14,[RBP + -0xe0]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015ad98
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
CALL 0x0015ad73
LEA RDX,[0x180bd0]
MOV RDI,R14
MOV RSI,R14
CALL 0x0015acb9
ADD RBX,0x60
LEA R15,[RBP + -0x80]
MOV RDI,R15
MOV RSI,RBX
CALL 0x0015ad98
PUSH 0x60
POP RDX
MOV RDI,R14
MOV RSI,R15
CALL 0x00152f34
ADD RSP,0xc8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void POINTonE2_affine_on_curve(long param_1)
{
int1 local_e8 [96];
int1 local_88 [104];
sqr_fp2(local_e8,param_1);
mul_fp2(local_e8,local_e8,param_1);
add_fp2(local_e8,local_e8,B_E2);
sqr_fp2(local_88,param_1 + 0x60);
vec_is_equal(local_e8,local_88,0x60);
return;
}
| |
32,702 | tinyxml2::XMLDocument::SetError(tinyxml2::XMLError, int, char const*, ...) | aimrt_mujoco_sim/_deps/tinyxml2-src/tinyxml2.cpp | void XMLDocument::SetError( XMLError error, int lineNum, const char* format, ... )
{
TIXMLASSERT( error >= 0 && error < XML_ERROR_COUNT );
_errorID = error;
_errorLineNum = lineNum;
_errorStr.Reset();
const size_t BUFFER_SIZE = 1000;
char* buffer = new char[BUFFER_SIZE];
TIXMLASSERT(sizeof(error) <= sizeof(int));
TIXML_SNPRINTF(buffer, BUFFER_SIZE, "Error=%s ErrorID=%d (0x%x) Line number=%d", ErrorIDToName(error), int(error), int(error), lineNum);
if (format) {
size_t len = strlen(buffer);
TIXML_SNPRINTF(buffer + len, BUFFER_SIZE - len, ": ");
len = strlen(buffer);
va_list va;
va_start(va, format);
TIXML_VSNPRINTF(buffer + len, BUFFER_SIZE - len, format, va);
va_end(va);
}
_errorStr.SetStr(buffer);
delete[] buffer;
} | O0 | cpp | tinyxml2::XMLDocument::SetError(tinyxml2::XMLError, int, char const*, ...):
subq $0x118, %rsp # imm = 0x118
testb %al, %al
je 0x510db2
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 %r9, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %rdi, 0x110(%rsp)
movl %esi, 0x10c(%rsp)
movl %edx, 0x108(%rsp)
movq %rcx, 0x100(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x510de9
movq 0x18(%rsp), %rdi
movl 0x10c(%rsp), %eax
movl %eax, 0x6c(%rdi)
movl 0x108(%rsp), %eax
movl %eax, 0x90(%rdi)
addq $0x78, %rdi
callq 0x4f850
movq $0x3e8, 0xf8(%rsp) # imm = 0x3E8
movl $0x3e8, %edi # imm = 0x3E8
callq 0x4b270
movq %rax, 0xf0(%rsp)
jmp 0x510e2e
movq 0xf0(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x10c(%rsp), %edi
callq 0x4f9d0
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl 0x10c(%rsp), %r8d
movl 0x10c(%rsp), %r9d
movl 0x108(%rsp), %eax
movl $0x3e8, %esi # imm = 0x3E8
leaq 0x3b666(%rip), %rdx # 0x54c4d8
movl %eax, (%rsp)
movb $0x0, %al
callq 0x49410
cmpq $0x0, 0x100(%rsp)
je 0x510f44
movq 0xf0(%rsp), %rdi
callq 0x4a0e0
movq %rax, 0xe8(%rsp)
movq 0xf0(%rsp), %rdi
addq 0xe8(%rsp), %rdi
movl $0x3e8, %esi # imm = 0x3E8
subq 0xe8(%rsp), %rsi
leaq 0x1b3c9(%rip), %rdx # 0x52c28d
movb $0x0, %al
callq 0x49410
movq 0xf0(%rsp), %rdi
callq 0x4a0e0
movq %rax, 0xe8(%rsp)
leaq 0xd0(%rsp), %rax
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x120(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x20, (%rax)
movq 0xf0(%rsp), %rdi
addq 0xe8(%rsp), %rdi
movl $0x3e8, %esi # imm = 0x3E8
subq 0xe8(%rsp), %rsi
movq 0x100(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
callq 0x4a930
leaq 0xd0(%rsp), %rax
movq 0x18(%rsp), %rdi
addq $0x78, %rdi
movq 0xf0(%rsp), %rsi
xorl %edx, %edx
callq 0x4f930
movq 0xf0(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x510f79
movq 0x8(%rsp), %rdi
callq 0x4a360
addq $0x118, %rsp # imm = 0x118
retq
nopw %cs:(%rax,%rax)
| _ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz:
sub rsp, 118h
test al, al
jz short loc_510DB2
movaps [rsp+118h+var_C8], xmm0
movaps [rsp+118h+var_B8], xmm1
movaps [rsp+118h+var_A8], xmm2
movaps [rsp+118h+var_98], xmm3
movaps [rsp+118h+var_88], xmm4
movaps [rsp+118h+var_78], xmm5
movaps [rsp+118h+var_68], xmm6
movaps [rsp+118h+var_58], xmm7
loc_510DB2:
mov [rsp+118h+var_D0], r9
mov [rsp+118h+var_D8], r8
mov [rsp+118h+var_8], rdi
mov [rsp+118h+var_C], esi
mov [rsp+118h+var_10], edx
mov [rsp+118h+var_18], rcx
mov rax, [rsp+118h+var_8]
mov [rsp+118h+var_100], rax
jmp short $+2
loc_510DE9:
mov rdi, [rsp+118h+var_100]
mov eax, [rsp+118h+var_C]
mov [rdi+6Ch], eax
mov eax, [rsp+118h+var_10]
mov [rdi+90h], eax
add rdi, 78h ; 'x'; this
call __ZN8tinyxml27StrPair5ResetEv; tinyxml2::StrPair::Reset(void)
mov [rsp+118h+var_20], 3E8h
mov edi, 3E8h; unsigned __int64
call __Znam; operator new[](ulong)
mov [rsp+118h+var_28], rax
jmp short $+2
loc_510E2E:
mov rax, [rsp+118h+var_28]
mov [rsp+118h+var_108], rax
mov edi, [rsp+118h+var_C]
call __ZN8tinyxml211XMLDocument13ErrorIDToNameENS_8XMLErrorE; tinyxml2::XMLDocument::ErrorIDToName(tinyxml2::XMLError)
mov rdi, [rsp+118h+var_108]
mov rcx, rax
mov r8d, [rsp+118h+var_C]
mov r9d, [rsp+118h+var_C]
mov eax, [rsp+118h+var_10]
mov esi, 3E8h
lea rdx, aErrorSErroridD; "Error=%s ErrorID=%d (0x%x) Line number="...
mov [rsp+118h+var_118], eax
mov al, 0
call _snprintf
cmp [rsp+118h+var_18], 0
jz loc_510F44
mov rdi, [rsp+118h+var_28]
call _strlen
mov [rsp+118h+var_30], rax
mov rdi, [rsp+118h+var_28]
add rdi, [rsp+118h+var_30]
mov esi, 3E8h
sub rsi, [rsp+118h+var_30]
lea rdx, asc_52C28D; ": "
mov al, 0
call _snprintf
mov rdi, [rsp+118h+var_28]
call _strlen
mov [rsp+118h+var_30], rax
lea rax, [rsp+118h+var_48]
lea rcx, [rsp+118h+var_F8]
mov [rax+10h], rcx
lea rcx, [rsp+118h+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 20h ; ' '
mov rdi, [rsp+118h+var_28]
add rdi, [rsp+118h+var_30]
mov esi, 3E8h
sub rsi, [rsp+118h+var_30]
mov rdx, [rsp+118h+var_18]
lea rcx, [rsp+118h+var_48]
call _vsnprintf
lea rax, [rsp+118h+var_48]
loc_510F44:
mov rdi, [rsp+118h+var_100]
add rdi, 78h ; 'x'; this
mov rsi, [rsp+118h+var_28]; char *
xor edx, edx; int
call __ZN8tinyxml27StrPair6SetStrEPKci; tinyxml2::StrPair::SetStr(char const*,int)
mov rax, [rsp+118h+var_28]
mov [rsp+118h+var_110], rax
cmp rax, 0
jz short loc_510F79
mov rdi, [rsp+118h+var_110]; void *
call __ZdaPv; operator delete[](void *)
loc_510F79:
add rsp, 118h
retn
| void tinyxml2::XMLDocument::SetError(_DWORD *a1, unsigned int a2, int a3, long long a4, ...)
{
const char *v4; // rax
double v5; // xmm0_8
long long v6; // rax
const char *v7; // rsi
double v8; // xmm0_8
va_list va; // [rsp+D0h] [rbp-48h] BYREF
long long v10; // [rsp+E8h] [rbp-30h]
char *v11; // [rsp+F0h] [rbp-28h]
long long v12; // [rsp+F8h] [rbp-20h]
long long v13; // [rsp+100h] [rbp-18h]
int v14; // [rsp+108h] [rbp-10h]
unsigned int v15; // [rsp+10Ch] [rbp-Ch]
_DWORD *v16; // [rsp+110h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
a1[27] = a2;
a1[36] = v14;
tinyxml2::StrPair::Reset((tinyxml2::StrPair *)(a1 + 30));
v12 = 1000LL;
v11 = (char *)operator new[](0x3E8uLL);
v4 = (const char *)tinyxml2::XMLDocument::ErrorIDToName(v15);
v5 = snprintf(v11, 1000LL, "Error=%s ErrorID=%d (0x%x) Line number=%d", v4, v15, v15, v14);
if ( v13 )
{
v6 = strlen(v11, (const char *)&stru_3E0.st_value, v5);
v7 = (const char *)(1000 - v6);
v8 = snprintf(&v11[v6], 1000 - v6, ": ");
v10 = strlen(v11, v7, v8);
va_start(va, a4);
vsnprintf(&v11[v10], 1000 - v10, v13, va);
}
tinyxml2::StrPair::SetStr((tinyxml2::StrPair *)(a1 + 30), v11, 0);
if ( v11 )
operator delete[](v11);
}
| _M_check_len:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00510d20
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x28],RAX
CALL 0x00498980
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x28]
SUB RAX,RCX
CMP RAX,qword ptr [RSP + 0x48]
JNC 0x00510dbd
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x0014ad90
LAB_00510dbd:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00498980
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00498980
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x48]
CALL 0x0014ada0
MOV RDI,qword ptr [RSP + 0x20]
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x00498980
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,RCX
JC 0x00510e3c
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00510d20
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
JBE 0x00510e4c
LAB_00510e3c:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00510d20
MOV qword ptr [RSP],RAX
JMP 0x00510e55
LAB_00510e4c:
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP],RAX
LAB_00510e55:
MOV RAX,qword ptr [RSP]
ADD RSP,0x58
RET
|
/* std::vector<mjCBase*, std::allocator<mjCBase*> >::_M_check_len(unsigned long, char const*) const
*/
ulong __thiscall
std::vector<mjCBase*,std::allocator<mjCBase*>>::_M_check_len
(vector<mjCBase*,std::allocator<mjCBase*>> *this,ulong param_1,char *param_2)
{
ulong uVar1;
long lVar2;
long lVar3;
ulong *puVar4;
ulong uVar5;
ulong uVar6;
ulong local_28;
ulong local_20;
char *local_18;
ulong local_10;
vector<mjCBase*,std::allocator<mjCBase*>> *local_8;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
lVar2 = max_size(this);
lVar3 = size(this);
if ((ulong)(lVar2 - lVar3) < local_10) {
std::__throw_length_error(local_18);
}
lVar2 = size(this);
local_28 = size(this);
puVar4 = max<unsigned_long>(&local_28,&local_10);
uVar6 = *puVar4;
local_20 = lVar2 + uVar6;
uVar5 = size(this);
uVar1 = local_20;
if ((uVar5 <= lVar2 + uVar6) && (uVar6 = max_size(this), uVar1 <= uVar6)) {
return local_20;
}
uVar6 = max_size(this);
return uVar6;
}
| |
32,703 | OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex, 4u, false>::SetSize(unsigned int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/../bfr/../bfr/../vtr/stackBuffer.h | inline void
StackBuffer<TYPE,SIZE,POD_TYPE>::SetSize(size_type size)
{
if (!POD_TYPE) {
destruct();
}
if (size == 0) {
deallocate();
} else if (size > _capacity) {
deallocate();
allocate(size);
}
_size = size;
if (!POD_TYPE) {
construct();
}
} | O2 | c | OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex, 4u, false>::SetSize(unsigned int):
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x52f20
testl %ebp, %ebp
je 0x9643a
cmpl %ebp, 0xc(%rbx)
jae 0x96442
movq %rbx, %rdi
callq 0x54b40
movq %rbx, %rdi
movl %ebp, %esi
callq 0x52600
jmp 0x96442
movq %rbx, %rdi
callq 0x54b40
movl %ebp, 0x8(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x55470
nop
| _ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE7SetSizeEj:
push rbp
push rbx
push rax
mov ebp, esi
mov rbx, rdi
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE8destructEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::destruct(void)
test ebp, ebp
jz short loc_9643A
cmp [rbx+0Ch], ebp
jnb short loc_96442
mov rdi, rbx
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE10deallocateEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::deallocate(void)
mov rdi, rbx
mov esi, ebp
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE8allocateEj; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::allocate(uint)
jmp short loc_96442
loc_9643A:
mov rdi, rbx
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE10deallocateEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::deallocate(void)
loc_96442:
mov [rbx+8], ebp
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertexELj4ELb0EE9constructEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::construct(void)
| long long OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::SetSize(
long long a1,
unsigned int a2)
{
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::destruct(a1);
if ( a2 )
{
if ( *(_DWORD *)(a1 + 12) < a2 )
{
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::deallocate(a1);
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::allocate(a1, a2);
}
}
else
{
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::deallocate(a1);
}
*(_DWORD *)(a1 + 8) = a2;
return OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::construct(a1);
}
| SetSize:
PUSH RBP
PUSH RBX
PUSH RAX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x00152f20
TEST EBP,EBP
JZ 0x0019643a
CMP dword ptr [RBX + 0xc],EBP
JNC 0x00196442
MOV RDI,RBX
CALL 0x00154b40
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00152600
JMP 0x00196442
LAB_0019643a:
MOV RDI,RBX
CALL 0x00154b40
LAB_00196442:
MOV dword ptr [RBX + 0x8],EBP
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00155470
|
/* OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex, 4u,
false>::SetSize(unsigned int) */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false>::
SetSize(StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex,4u,false> *this,uint param_1)
{
destruct(this);
if (param_1 == 0) {
deallocate(this);
}
else if (*(uint *)(this + 0xc) < param_1) {
deallocate(this);
allocate(this,param_1);
}
*(uint *)(this + 8) = param_1;
construct(this);
return;
}
| |
32,704 | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) {
return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent);
} | O2 | cpp | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x633f6
movl %eax, %ebp
testb %al, %al
je 0x74003
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x6765c
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x6998c
jmp 0x74010
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x62ab8
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x742bb
leaq 0x18(%rsp), %rdi
callq 0x62c1e
testb %bpl, %bpl
je 0x74039
leaq 0x10(%rsp), %rdi
callq 0x4f578
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x62c1e
testb %bpl, %bpl
je 0x74063
leaq 0x10(%rsp), %rdi
callq 0x4f578
movq %rbx, %rdi
callq 0x23f80
nop
| _ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push rbx
sub rsp, 68h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
mov ebp, eax
test al, al
jz short loc_74003
lea r15, [rsp+88h+var_80]
mov rdi, r15
call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>()
lea rdi, [rsp+88h+var_70]
mov rsi, r15
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
jmp short loc_74010
loc_74003:
lea rdi, [rsp+88h+var_70]
mov rsi, r15
call _ZN5minja5ValueC2EOS0_; minja::Value::Value(minja::Value&&)
loc_74010:
lea rsi, [rsp+88h+var_70]
mov rdi, rbx
mov rdx, r14
call _ZSt11make_sharedIN5minja7ContextEJNS0_5ValueERKSt10shared_ptrIS1_EEES3_IT_EDpOT0_; std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(minja::Value,std::shared_ptr<minja::Context> const&)
lea rdi, [rsp+88h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_74039
lea rdi, [rsp+88h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_74039:
mov rax, rbx
add rsp, 68h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_10]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_74063
lea rdi, [rsp+arg_8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_74063:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Context::make(long long a1, minja::Value *a2, long long a3)
{
bool is_null; // bp
long long v6; // [rsp+8h] [rbp-80h] BYREF
long long v7; // [rsp+10h] [rbp-78h] BYREF
_BYTE v8[112]; // [rsp+18h] [rbp-70h] BYREF
is_null = minja::Value::is_null(a2);
if ( is_null )
{
std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>((long long)&v6);
minja::Value::Value((long long)v8, &v6);
}
else
{
minja::Value::Value((long long)v8, (long long)a2);
}
std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(a1, v8, a3);
minja::Value::~Value((minja::Value *)v8);
if ( is_null )
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7);
return a1;
}
| make:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x001633f6
MOV EBP,EAX
TEST AL,AL
JZ 0x00174003
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x0016765c
LEA RDI,[RSP + 0x18]
MOV RSI,R15
CALL 0x0016998c
JMP 0x00174010
LAB_00174003:
LEA RDI,[RSP + 0x18]
MOV RSI,R15
CALL 0x00162ab8
LAB_00174010:
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
MOV RDX,R14
CALL 0x001742bb
LAB_00174020:
LEA RDI,[RSP + 0x18]
CALL 0x00162c1e
TEST BPL,BPL
JZ 0x00174039
LEA RDI,[RSP + 0x10]
CALL 0x0014f578
LAB_00174039:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */
Value * minja::Context::make(Value *param_1,shared_ptr *param_2)
{
char cVar1;
shared_ptr local_80 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8];
Value local_70 [80];
cVar1 = Value::is_null((Value *)param_2);
if (cVar1 == '\0') {
Value::Value(local_70,(Value *)param_2);
}
else {
std::
make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>
();
Value::Value(local_70,local_80);
}
/* try { // try from 00174010 to 0017401f has its CatchHandler @ 00174047 */
std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context>const&>
(param_1,local_70);
Value::~Value(local_70);
if (cVar1 != '\0') {
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78);
}
return param_1;
}
| |
32,705 | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) {
return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent);
} | O3 | cpp | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq 0x10(%rsi), %rdx
movq 0x20(%rsi), %rax
movq %rax, %rcx
orq %rdx, %rcx
sete %cl
cmpb $0x0, 0x40(%rsi)
movq %rdi, %rbx
sete %sil
andb %cl, %sil
movq 0x30(%r15), %rcx
testq %rcx, %rcx
sete %bpl
andb %sil, %bpl
cmpb $0x1, %bpl
jne 0x9bf50
movl $0x30, %edi
callq 0x1a8a0
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x8d52a(%rip), %rcx # 0x129448
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
leaq 0x10(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %rcx, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0x8e918
jmp 0x9bfcc
leaq 0x40(%r15), %rdi
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %r12
movaps %xmm0, -0x40(%r12)
movq %rdx, -0x30(%r12)
movq 0x18(%r15), %rdx
xorl %r13d, %r13d
movq %r13, 0x18(%r15)
movq %rdx, -0x28(%r12)
movq %r13, 0x10(%r15)
movq %rax, -0x20(%r12)
movq 0x28(%r15), %rax
movq %r13, 0x28(%r15)
movq %rax, -0x18(%r12)
movq %r13, 0x20(%r15)
movq %rcx, -0x10(%r12)
movq 0x38(%r15), %rax
movq %r13, 0x38(%r15)
movq %rax, -0x8(%r12)
movq %r13, 0x30(%r15)
movups (%rdi), %xmm0
movaps %xmm0, (%r12)
xorl %esi, %esi
callq 0x5834c
movb $0x0, 0x40(%r15)
movq %r13, 0x48(%r15)
movq %r12, %rdi
movl $0x1, %esi
callq 0x5834c
leaq 0xf(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x9c316
leaq 0x60(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5834c
movq %r14, %rdi
callq 0x5d83a
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x9c006
callq 0x6d25e
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x9c015
callq 0x6d25e
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x9c024
callq 0x6d25e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x9c05a
movq 0x8ef53(%rip), %rax # 0x12af88
cmpb $0x0, (%rax)
je 0x9c045
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9c04f
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9c05a
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0x9c06e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9c06e
callq 0x6d25e
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x85de8
testb %bpl, %bpl
je 0x9c0a1
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9c0a1
callq 0x6d25e
movq %rbx, %rdi
callq 0x1af80
nop
| _ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rdx, [rsi+10h]
mov rax, [rsi+20h]
mov rcx, rax
or rcx, rdx
setz cl
cmp byte ptr [rsi+40h], 0
mov rbx, rdi
setz sil
and sil, cl
mov rcx, [r15+30h]
test rcx, rcx
setz bpl
and bpl, sil
cmp bpl, 1
jnz short loc_9BF50
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov qword ptr [rax+20h], 0
lea rsi, [rsp+0A8h+var_98]
mov [rsi+8], rax
mov [rsi], rcx
lea rdi, [rsp+0A8h+var_88]
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
jmp short loc_9BFCC
loc_9BF50:
lea rdi, [r15+40h]
xorps xmm0, xmm0
lea r12, [rsp+0A8h+var_48]
movaps xmmword ptr [r12-40h], xmm0
mov [r12-30h], rdx
mov rdx, [r15+18h]
xor r13d, r13d
mov [r15+18h], r13
mov [r12-28h], rdx
mov [r15+10h], r13
mov [r12-20h], rax
mov rax, [r15+28h]
mov [r15+28h], r13
mov [r12-18h], rax
mov [r15+20h], r13
mov [r12-10h], rcx
mov rax, [r15+38h]
mov [r15+38h], r13
mov [r12-8], rax
mov [r15+30h], r13
movups xmm0, xmmword ptr [rdi]
movaps xmmword ptr [r12], xmm0
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r15+40h], 0
mov [r15+48h], r13
mov rdi, r12
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)
loc_9BFCC:
lea rsi, [rsp+0A8h+var_99]
lea rdx, [rsp+0A8h+var_88]
mov rdi, rbx
mov rcx, r14
call _ZNSt12__shared_ptrIN5minja7ContextELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS1_EJNS0_5ValueERKSt10shared_ptrIS1_EEEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(std::_Sp_alloc_shared_tag<std::allocator<minja::Context>>,minja::Value,std::shared_ptr<minja::Context> const&)
lea r14, [rsp+0A8h+var_48]
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_9C006
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9C006:
mov rdi, [rsp+0A8h+var_60]
test rdi, rdi
jz short loc_9C015
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9C015:
mov rdi, [rsp+0A8h+var_70]
test rdi, rdi
jz short loc_9C024
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9C024:
mov rdi, [rsp+0A8h+var_80]
test rdi, rdi
jz short loc_9C05A
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9C045
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9C04F
loc_9C045:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9C04F:
cmp eax, 1
jnz short loc_9C05A
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9C05A:
test bpl, bpl
jz short loc_9C06E
mov rdi, [rsp+0A8h+var_90]
test rdi, rdi
jz short loc_9C06E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9C06E:
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_9C0A1
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_9C0A1
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9C0A1:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Context::make(long long a1, long long a2, long long a3)
{
__int128 v4; // rax
long long v6; // rcx
bool v7; // bp
long long v8; // rax
volatile signed __int32 *v9; // rax
volatile signed __int32 *v10; // rax
long long v11; // rdi
signed __int32 v12; // eax
char v14; // [rsp+Fh] [rbp-99h] BYREF
long long v15; // [rsp+10h] [rbp-98h] BYREF
volatile signed __int32 *v16; // [rsp+18h] [rbp-90h]
__int128 v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+30h] [rbp-78h]
volatile signed __int32 *v19; // [rsp+38h] [rbp-70h]
long long v20; // [rsp+40h] [rbp-68h]
volatile signed __int32 *v21; // [rsp+48h] [rbp-60h]
long long v22; // [rsp+50h] [rbp-58h]
volatile signed __int32 *v23; // [rsp+58h] [rbp-50h]
_OWORD v24[4]; // [rsp+60h] [rbp-48h] BYREF
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 16);
*(_QWORD *)&v4 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
v7 = v4 == 0 && *(_BYTE *)(a2 + 64) == 0 && v6 == 0;
if ( v7 )
{
v8 = operator new(0x30uLL);
*(_QWORD *)(v8 + 8) = 0x100000001LL;
*(_QWORD *)v8 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v8 + 16) = 0LL;
*(_QWORD *)(v8 + 32) = 0LL;
v16 = (volatile signed __int32 *)v8;
v15 = v8 + 16;
minja::Value::Value((long long)&v17, &v15);
}
else
{
v17 = 0LL;
v18 = *((_QWORD *)&v4 + 1);
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 24);
*(_QWORD *)(a2 + 24) = 0LL;
v19 = (volatile signed __int32 *)*((_QWORD *)&v4 + 1);
*(_QWORD *)(a2 + 16) = 0LL;
v20 = v4;
v9 = *(volatile signed __int32 **)(a2 + 40);
*(_QWORD *)(a2 + 40) = 0LL;
v21 = v9;
*(_QWORD *)(a2 + 32) = 0LL;
v22 = v6;
v10 = *(volatile signed __int32 **)(a2 + 56);
*(_QWORD *)(a2 + 56) = 0LL;
v23 = v10;
*(_QWORD *)(a2 + 48) = 0LL;
v24[0] = *(_OWORD *)(a2 + 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 *)(a2 + 64));
*(_BYTE *)(a2 + 64) = 0;
*(_QWORD *)(a2 + 72) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
}
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(
a1,
&v14,
&v17,
a3);
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 *)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v24);
if ( v23 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23);
if ( v21 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21);
if ( v19 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19);
v11 = *((_QWORD *)&v17 + 1);
if ( *((_QWORD *)&v17 + 1) )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v17 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
if ( v7 && v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
return a1;
}
| make:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RDX,qword ptr [RSI + 0x10]
MOV RAX,qword ptr [RSI + 0x20]
MOV RCX,RAX
OR RCX,RDX
SETZ CL
CMP byte ptr [RSI + 0x40],0x0
MOV RBX,RDI
SETZ SIL
AND SIL,CL
MOV RCX,qword ptr [R15 + 0x30]
TEST RCX,RCX
SETZ BPL
AND BPL,SIL
CMP BPL,0x1
JNZ 0x0019bf50
MOV EDI,0x30
CALL 0x0011a8a0
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x229448]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],0x0
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],RCX
LEA RDI,[RSP + 0x20]
CALL 0x0018e918
JMP 0x0019bfcc
LAB_0019bf50:
LEA RDI,[R15 + 0x40]
XORPS XMM0,XMM0
LEA R12,[RSP + 0x60]
MOVAPS xmmword ptr [R12 + -0x40],XMM0
MOV qword ptr [R12 + -0x30],RDX
MOV RDX,qword ptr [R15 + 0x18]
XOR R13D,R13D
MOV qword ptr [R15 + 0x18],R13
MOV qword ptr [R12 + -0x28],RDX
MOV qword ptr [R15 + 0x10],R13
MOV qword ptr [R12 + -0x20],RAX
MOV RAX,qword ptr [R15 + 0x28]
MOV qword ptr [R15 + 0x28],R13
MOV qword ptr [R12 + -0x18],RAX
MOV qword ptr [R15 + 0x20],R13
MOV qword ptr [R12 + -0x10],RCX
MOV RAX,qword ptr [R15 + 0x38]
MOV qword ptr [R15 + 0x38],R13
MOV qword ptr [R12 + -0x8],RAX
MOV qword ptr [R15 + 0x30],R13
MOVUPS XMM0,xmmword ptr [RDI]
MOVAPS xmmword ptr [R12],XMM0
XOR ESI,ESI
CALL 0x0015834c
MOV byte ptr [R15 + 0x40],0x0
MOV qword ptr [R15 + 0x48],R13
MOV RDI,R12
MOV ESI,0x1
CALL 0x0015834c
LAB_0019bfcc:
LEA RSI,[RSP + 0xf]
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV RCX,R14
CALL 0x0019c316
LAB_0019bfe1:
LEA R14,[RSP + 0x60]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015834c
MOV RDI,R14
CALL 0x0015d83a
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x0019c006
CALL 0x0016d25e
LAB_0019c006:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0019c015
CALL 0x0016d25e
LAB_0019c015:
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0019c024
CALL 0x0016d25e
LAB_0019c024:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0019c05a
MOV RAX,qword ptr [0x0022af88]
CMP byte ptr [RAX],0x0
JZ 0x0019c045
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019c04f
LAB_0019c045:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019c04f:
CMP EAX,0x1
JNZ 0x0019c05a
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019c05a:
TEST BPL,BPL
JZ 0x0019c06e
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0019c06e
CALL 0x0016d25e
LAB_0019c06e:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */
Context * __thiscall minja::Context::make(Context *this,Value *param_1,shared_ptr *param_2)
{
int *piVar1;
Value VVar2;
long lVar3;
long lVar4;
long lVar5;
int iVar6;
int1 local_99;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_90;
int8 local_88;
long *plStack_80;
long local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
long local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
int8 local_48;
int8 uStack_40;
lVar3 = *(long *)(param_1 + 0x10);
lVar4 = *(long *)(param_1 + 0x20);
VVar2 = param_1[0x40];
lVar5 = *(long *)(param_1 + 0x30);
if (lVar5 != 0 || (VVar2 != (Value)0x0 || (lVar4 != 0 || lVar3 != 0))) {
local_88 = 0;
plStack_80 = (long *)0x0;
local_70 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x18);
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x10) = 0;
local_60 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x28);
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x20) = 0;
local_50 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = 0;
*(int8 *)(param_1 + 0x30) = 0;
local_48 = *(int8 *)(param_1 + 0x40);
uStack_40 = *(int8 *)(param_1 + 0x48);
local_78 = lVar3;
local_68 = lVar4;
local_58 = lVar5;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_1 + 0x40,0));
param_1[0x40] = (Value)0x0;
*(int8 *)(param_1 + 0x48) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_48,0));
}
else {
local_90 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_90 + 8) = 0x100000001;
*(int ***)local_90 = &PTR___Sp_counted_ptr_inplace_00229458;
local_98 = local_90 + 0x10;
*(int8 *)(local_90 + 0x10) = 0;
*(int8 *)(local_90 + 0x18) = 0;
*(int8 *)(local_90 + 0x20) = 0;
Value::Value((Value *)&local_88,(shared_ptr *)&local_98);
}
/* try { // try from 0019bfcc to 0019bfe0 has its CatchHandler @ 0019c080 */
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::
__shared_ptr<std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context>const&>
((__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2> *)this,&local_99,&local_88,
param_2);
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_48,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_48);
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
if (plStack_80 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022af88 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_80 + 0xc);
iVar6 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar6 = *(int *)((long)plStack_80 + 0xc);
*(int *)((long)plStack_80 + 0xc) = iVar6 + -1;
}
if (iVar6 == 1) {
(**(code **)(*plStack_80 + 0x18))();
}
}
if ((lVar5 == 0 && (VVar2 == (Value)0x0 && (lVar4 == 0 && lVar3 == 0))) &&
(local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0)) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_90);
}
return this;
}
| |
32,706 | JS_ToInt32Clamp | bluesky950520[P]quickjs/quickjs.c | int JS_ToInt32Clamp(JSContext *ctx, int *pres, JSValue val,
int min, int max, int min_offset)
{
int res = JS_ToInt32SatFree(ctx, pres, js_dup(val));
if (res == 0) {
if (*pres < min) {
*pres += min_offset;
if (*pres < min)
*pres = min;
} else {
if (*pres > max)
*pres = max;
}
}
return res;
} | O0 | c | JS_ToInt32Clamp:
subq $0x58, %rsp
movl 0x60(%rsp), %eax
movq %rdx, 0x48(%rsp)
movq %rcx, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %r8d, 0x34(%rsp)
movl %r9d, 0x30(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x20410
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x37430
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x37657
movq 0x38(%rsp), %rax
movl (%rax), %eax
cmpl 0x34(%rsp), %eax
jge 0x3763b
movl 0x60(%rsp), %ecx
movq 0x38(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq 0x38(%rsp), %rax
movl (%rax), %eax
cmpl 0x34(%rsp), %eax
jge 0x37639
movl 0x34(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, (%rax)
jmp 0x37655
movq 0x38(%rsp), %rax
movl (%rax), %eax
cmpl 0x30(%rsp), %eax
jle 0x37653
movl 0x30(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, (%rax)
jmp 0x37655
jmp 0x37657
movl 0x2c(%rsp), %eax
addq $0x58, %rsp
retq
| JS_ToInt32Clamp:
sub rsp, 58h
mov eax, [rsp+58h+arg_0]
mov [rsp+58h+var_10], rdx
mov [rsp+58h+var_8], rcx
mov [rsp+58h+var_18], rdi
mov [rsp+58h+var_20], rsi
mov [rsp+58h+var_24], r8d
mov [rsp+58h+var_28], r9d
mov rax, [rsp+58h+var_18]
mov [rsp+58h+var_50], rax
mov rax, [rsp+58h+var_20]
mov [rsp+58h+var_48], rax
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_8]
call js_dup
mov rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_48]
mov [rsp+58h+var_40], rax
mov [rsp+58h+var_38], rdx
mov rdx, [rsp+58h+var_40]
mov rcx, [rsp+58h+var_38]
call JS_ToInt32SatFree
mov [rsp+58h+var_2C], eax
cmp [rsp+58h+var_2C], 0
jnz short loc_37657
mov rax, [rsp+58h+var_20]
mov eax, [rax]
cmp eax, [rsp+58h+var_24]
jge short loc_3763B
mov ecx, [rsp+58h+arg_0]
mov rax, [rsp+58h+var_20]
add ecx, [rax]
mov [rax], ecx
mov rax, [rsp+58h+var_20]
mov eax, [rax]
cmp eax, [rsp+58h+var_24]
jge short loc_37639
mov ecx, [rsp+58h+var_24]
mov rax, [rsp+58h+var_20]
mov [rax], ecx
loc_37639:
jmp short loc_37655
loc_3763B:
mov rax, [rsp+58h+var_20]
mov eax, [rax]
cmp eax, [rsp+58h+var_28]
jle short loc_37653
mov ecx, [rsp+58h+var_28]
mov rax, [rsp+58h+var_20]
mov [rax], ecx
loc_37653:
jmp short $+2
loc_37655:
jmp short $+2
loc_37657:
mov eax, [rsp+58h+var_2C]
add rsp, 58h
retn
| long long JS_ToInt32Clamp(long long a1, int *a2, _DWORD *a3, unsigned int a4, int a5, int a6, int a7)
{
long long v7; // rdx
_DWORD *v9; // [rsp+18h] [rbp-40h]
unsigned int v10; // [rsp+2Ch] [rbp-2Ch]
v9 = js_dup(a3, a4);
v10 = JS_ToInt32SatFree(a1, a2, (long long)v9, v7);
if ( !v10 )
{
if ( *a2 >= a5 )
{
if ( *a2 > a6 )
*a2 = a6;
}
else
{
*a2 += a7;
if ( *a2 < a5 )
*a2 = a5;
}
}
return v10;
}
| JS_ToInt32Clamp:
SUB RSP,0x58
MOV EAX,dword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV dword ptr [RSP + 0x34],R8D
MOV dword ptr [RSP + 0x30],R9D
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00120410
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
CALL 0x00137430
MOV dword ptr [RSP + 0x2c],EAX
CMP dword ptr [RSP + 0x2c],0x0
JNZ 0x00137657
MOV RAX,qword ptr [RSP + 0x38]
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x0013763b
MOV ECX,dword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x38]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x38]
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x00137639
MOV ECX,dword ptr [RSP + 0x34]
MOV RAX,qword ptr [RSP + 0x38]
MOV dword ptr [RAX],ECX
LAB_00137639:
JMP 0x00137655
LAB_0013763b:
MOV RAX,qword ptr [RSP + 0x38]
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RSP + 0x30]
JLE 0x00137653
MOV ECX,dword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x38]
MOV dword ptr [RAX],ECX
LAB_00137653:
JMP 0x00137655
LAB_00137655:
JMP 0x00137657
LAB_00137657:
MOV EAX,dword ptr [RSP + 0x2c]
ADD RSP,0x58
RET
|
int JS_ToInt32Clamp(int8 param_1,int *param_2,int8 param_3,int8 param_4,
int param_5,int param_6,int param_7)
{
int iVar1;
int1 auVar2 [16];
auVar2 = js_dup(param_3,param_4);
iVar1 = JS_ToInt32SatFree(param_1,param_2,auVar2._0_8_,auVar2._8_8_);
if (iVar1 == 0) {
if (*param_2 < param_5) {
*param_2 = param_7 + *param_2;
if (*param_2 < param_5) {
*param_2 = param_5;
}
}
else if (param_6 < *param_2) {
*param_2 = param_6;
}
}
return iVar1;
}
| |
32,707 | JS_ToInt32Clamp | bluesky950520[P]quickjs/quickjs.c | int JS_ToInt32Clamp(JSContext *ctx, int *pres, JSValue val,
int min, int max, int min_offset)
{
int res = JS_ToInt32SatFree(ctx, pres, js_dup(val));
if (res == 0) {
if (*pres < min) {
*pres += min_offset;
if (*pres < min)
*pres = min;
} else {
if (*pres > max)
*pres = max;
}
}
return res;
} | O1 | c | JS_ToInt32Clamp:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %r9d, %ebp
movl %r8d, %r14d
movq %rsi, %rbx
movq %rdx, 0x8(%rsp)
cmpl $-0x9, %ecx
jb 0x26b64
movq 0x8(%rsp), %rax
incl (%rax)
movq %rbx, %rsi
callq 0x26aaf
testl %eax, %eax
jne 0x26b8c
movl (%rbx), %ecx
cmpl %r14d, %ecx
jge 0x26b86
addl 0x30(%rsp), %ecx
cmpl %r14d, %ecx
cmovlel %r14d, %ecx
movl %ecx, %ebp
jmp 0x26b8a
cmpl %ebp, %ecx
jle 0x26b8c
movl %ebp, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
| JS_ToInt32Clamp:
push rbp
push r14
push rbx
sub rsp, 10h
mov ebp, r9d
mov r14d, r8d
mov rbx, rsi
mov [rsp+28h+var_20], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_26B64
mov rax, [rsp+28h+var_20]
inc dword ptr [rax]
loc_26B64:
mov rsi, rbx
call JS_ToInt32SatFree
test eax, eax
jnz short loc_26B8C
mov ecx, [rbx]
cmp ecx, r14d
jge short loc_26B86
add ecx, [rsp+28h+arg_0]
cmp ecx, r14d
cmovle ecx, r14d
mov ebp, ecx
jmp short loc_26B8A
loc_26B86:
cmp ecx, ebp
jle short loc_26B8C
loc_26B8A:
mov [rbx], ebp
loc_26B8C:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
| long long JS_ToInt32Clamp(long long a1, int *a2, _DWORD *a3, long long a4, int a5, int a6, int a7)
{
long long result; // rax
int v10; // ecx
int v11; // ecx
if ( (unsigned int)a4 >= 0xFFFFFFF7 )
++*a3;
result = JS_ToInt32SatFree(a1, a2, (long long)a3, a4);
if ( !(_DWORD)result )
{
v10 = *a2;
if ( *a2 >= a5 )
{
if ( v10 <= a6 )
return result;
}
else
{
v11 = a7 + v10;
if ( v11 <= a5 )
v11 = a5;
a6 = v11;
}
*a2 = a6;
}
return result;
}
| JS_ToInt32Clamp:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV EBP,R9D
MOV R14D,R8D
MOV RBX,RSI
MOV qword ptr [RSP + 0x8],RDX
CMP ECX,-0x9
JC 0x00126b64
MOV RAX,qword ptr [RSP + 0x8]
INC dword ptr [RAX]
LAB_00126b64:
MOV RSI,RBX
CALL 0x00126aaf
TEST EAX,EAX
JNZ 0x00126b8c
MOV ECX,dword ptr [RBX]
CMP ECX,R14D
JGE 0x00126b86
ADD ECX,dword ptr [RSP + 0x30]
CMP ECX,R14D
CMOVLE ECX,R14D
MOV EBP,ECX
JMP 0x00126b8a
LAB_00126b86:
CMP ECX,EBP
JLE 0x00126b8c
LAB_00126b8a:
MOV dword ptr [RBX],EBP
LAB_00126b8c:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
void JS_ToInt32Clamp(int8 param_1,int *param_2,int *param_3,uint param_4,int param_5,
int param_6,int param_7)
{
int iVar1;
if (0xfffffff6 < param_4) {
*param_3 = *param_3 + 1;
}
iVar1 = JS_ToInt32SatFree(param_1,param_2);
if (iVar1 == 0) {
iVar1 = *param_2;
if (iVar1 < param_5) {
param_6 = iVar1 + param_7;
if (iVar1 + param_7 <= param_5) {
param_6 = param_5;
}
}
else if (iVar1 <= param_6) {
return;
}
*param_2 = param_6;
}
return;
}
| |
32,708 | bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const | monkey531[P]llama/common/json.hpp | bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x8f5af
testq %rax, %rax
je 0x8f60d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x8f58f
cmpl $0x1, %eax
jne 0x8f599
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x8f5a1
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x8f5a1
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5fe1b(%rip), %rsi # 0xef3e7
leaq 0x5fe44(%rip), %rdx # 0xef417
leaq 0x8(%rsp), %rdi
callq 0x24458
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x8f662
xorl %ebp, %ebp
leaq 0x9c90a(%rip), %rsi # 0x12bf08
leaq -0x31bb3(%rip), %rdx # 0x5da52
movq %rbx, %rdi
callq 0x1bfb0
leaq 0x5edc5(%rip), %rdi # 0xee3d9
leaq 0x58d43(%rip), %rdx # 0xe835e
leaq 0x64057(%rip), %rcx # 0xf3679
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x1bf40
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8f648
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testb %bpl, %bpl
jne 0x8f652
jmp 0x8f65a
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b670
movq %r14, %rdi
callq 0x1c030
| _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_:
push rbp; char
push r15; int
push r14; __int64
push rbx; int
sub rsp, 28h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_8F5AF
test rax, rax
jz loc_8F60D
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_8F58F
cmp eax, 1
jnz short loc_8F599
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_8F5A1
loc_8F58F:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_8F5A1
loc_8F599:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_8F5A1:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_8F5AF:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+48h+var_30]
mov [r15-10h], r15
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdx, aCannotCompareI+30h; ""
lea rdi, [rsp+48h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0D4h; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_8F60D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_8F648
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8F648:
test bpl, bpl
jnz short loc_8F652
jmp short loc_8F65A
mov r14, rax
loc_8F652:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_8F65A:
mov rdi, r14
call __Unwind_Resume
| _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x0018f5af
TEST RAX,RAX
JZ 0x0018f60d
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0018f58f
CMP EAX,0x1
JNZ 0x0018f599
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x0018f5a1
LAB_0018f58f:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x0018f5a1
LAB_0018f599:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_0018f5a1:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0018f5af:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0018f5c5:
LEA RSI,[0x1ef3e7]
LEA RDX,[0x1ef417]
LEA RDI,[RSP + 0x8]
CALL 0x00124458
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0018f5e3:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x0018f662
XOR EBP,EBP
LEA RSI,[0x22bf08]
LEA RDX,[0x15da52]
MOV RDI,RBX
CALL 0x0011bfb0
LAB_0018f60d:
LEA RDI,[0x1ee3d9]
LEA RDX,[0x1e835e]
LEA RCX,[0x1f3679]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x0011bf40
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
int1 *local_40 [2];
int1 local_30 [16];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_40[0] = local_30;
/* try { // try from 0018f5c5 to 0018f5dc has its CatchHandler @ 0018f64f */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 0018f5e3 to 0018f60c has its CatchHandler @ 0018f62e */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar3,0xd4,local_40,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
| ||
32,709 | js_array_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_array_constructor(JSContext *ctx, JSValue new_target,
int argc, JSValue *argv)
{
JSValue obj;
int i;
obj = js_create_from_ctor(ctx, new_target, JS_CLASS_ARRAY);
if (JS_IsException(obj))
return obj;
if (argc == 1 && JS_IsNumber(argv[0])) {
uint32_t len;
if (JS_ToArrayLengthFree(ctx, &len, js_dup(argv[0]), TRUE))
goto fail;
if (JS_SetProperty(ctx, obj, JS_ATOM_length, js_uint32(len)) < 0)
goto fail;
} else {
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0)
goto fail;
}
}
return obj;
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O0 | c | js_array_constructor:
subq $0xb8, %rsp
movq %rsi, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rdi, 0x90(%rsp)
movl %ecx, 0x8c(%rsp)
movq %r8, 0x80(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movl $0x2, %ecx
callq 0x5b0f0
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x5d151
movq 0x70(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0xb0(%rsp)
jmp 0x5d2fb
cmpl $0x1, 0x8c(%rsp)
jne 0x5d222
movq 0x80(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x569c0
cmpl $0x0, %eax
je 0x5d222
movq 0x90(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq 0x18(%rsp), %rdi
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rdx
movq 0x48(%rsp), %rcx
leaq 0x54(%rsp), %rsi
movl $0x1, %r8d
callq 0x3b500
cmpl $0x0, %eax
je 0x5d1d0
jmp 0x5d2cd
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x54(%rsp), %edi
callq 0x39e50
movq 0x10(%rsp), %rdi
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r9
movl $0x32, %ecx
callq 0x381f0
cmpl $0x0, %eax
jge 0x5d21d
jmp 0x5d2cd
jmp 0x5d2b1
movl $0x0, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
cmpl 0x8c(%rsp), %eax
jge 0x5d2af
movq 0x90(%rsp), %rax
movq %rax, (%rsp)
movl 0x6c(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x80(%rsp), %rax
movslq 0x6c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq (%rsp), %rdi
movl 0xc(%rsp), %ecx
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x20(%rsp), %r8
movq 0x28(%rsp), %r9
callq 0x39640
cmpl $0x0, %eax
jge 0x5d29d
jmp 0x5d2cd
jmp 0x5d29f
movl 0x6c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x6c(%rsp)
jmp 0x5d22a
jmp 0x5d2b1
movq 0x70(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0xb0(%rsp)
jmp 0x5d2fb
movq 0x90(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x29f80
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rdx
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
| js_array_constructor:
sub rsp, 0B8h
mov [rsp+0B8h+var_20], rsi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_28], rdi
mov [rsp+0B8h+var_2C], ecx
mov [rsp+0B8h+var_38], r8
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_20]
mov rdx, [rsp+0B8h+var_18]
mov ecx, 2
call js_create_from_ctor
mov [rsp+0B8h+var_60], rax
mov [rsp+0B8h+var_58], rdx
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_48], rax
mov rax, [rsp+0B8h+var_58]
mov [rsp+0B8h+var_40], rax
mov rdi, [rsp+0B8h+var_48]
mov rsi, [rsp+0B8h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_5D151
mov rax, [rsp+0B8h+var_48]
mov [rsp+0B8h+var_10], rax
mov rax, [rsp+0B8h+var_40]
mov [rsp+0B8h+var_8], rax
jmp loc_5D2FB
loc_5D151:
cmp [rsp+0B8h+var_2C], 1
jnz loc_5D222
mov rax, [rsp+0B8h+var_38]
mov rdi, [rax]
mov rsi, [rax+8]
call JS_IsNumber
cmp eax, 0
jz loc_5D222
mov rax, [rsp+0B8h+var_28]
mov [rsp+0B8h+var_A0], rax
mov rax, [rsp+0B8h+var_38]
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_78], rax
mov [rsp+0B8h+var_70], rdx
mov rdx, [rsp+0B8h+var_78]
mov rcx, [rsp+0B8h+var_70]
lea rsi, [rsp+0B8h+var_64]
mov r8d, 1
call JS_ToArrayLengthFree
cmp eax, 0
jz short loc_5D1D0
jmp loc_5D2CD
loc_5D1D0:
mov rax, [rsp+0B8h+var_28]
mov [rsp+0B8h+var_A8], rax
mov edi, [rsp+0B8h+var_64]
call js_uint32
mov rdi, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_88], rax
mov [rsp+0B8h+var_80], rdx
mov rsi, [rsp+0B8h+var_48]
mov rdx, [rsp+0B8h+var_40]
mov r8, [rsp+0B8h+var_88]
mov r9, [rsp+0B8h+var_80]
mov ecx, 32h ; '2'
call JS_SetProperty
cmp eax, 0
jge short loc_5D21D
jmp loc_5D2CD
loc_5D21D:
jmp loc_5D2B1
loc_5D222:
mov [rsp+0B8h+var_4C], 0
loc_5D22A:
mov eax, [rsp+0B8h+var_4C]
cmp eax, [rsp+0B8h+var_2C]
jge short loc_5D2AF
mov rax, [rsp+0B8h+var_28]
mov [rsp+0B8h+var_B8], rax
mov eax, [rsp+0B8h+var_4C]
mov [rsp+0B8h+var_AC], eax
mov rax, [rsp+0B8h+var_38]
movsxd rcx, [rsp+0B8h+var_4C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0B8h+var_B8]
mov ecx, [rsp+0B8h+var_AC]
mov [rsp+0B8h+var_98], rax
mov [rsp+0B8h+var_90], rdx
mov rsi, [rsp+0B8h+var_48]
mov rdx, [rsp+0B8h+var_40]
mov r8, [rsp+0B8h+var_98]
mov r9, [rsp+0B8h+var_90]
call JS_SetPropertyUint32
cmp eax, 0
jge short loc_5D29D
jmp short loc_5D2CD
loc_5D29D:
jmp short $+2
loc_5D29F:
mov eax, [rsp+0B8h+var_4C]
add eax, 1
mov [rsp+0B8h+var_4C], eax
jmp loc_5D22A
loc_5D2AF:
jmp short $+2
loc_5D2B1:
mov rax, [rsp+0B8h+var_48]
mov [rsp+0B8h+var_10], rax
mov rax, [rsp+0B8h+var_40]
mov [rsp+0B8h+var_8], rax
jmp short loc_5D2FB
loc_5D2CD:
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_48]
mov rdx, [rsp+0B8h+var_40]
call JS_FreeValue
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
loc_5D2FB:
mov rax, [rsp+0B8h+var_10]
mov rdx, [rsp+0B8h+var_8]
add rsp, 0B8h
retn
| long long js_array_constructor(
long long a1,
long long a2,
long long a3,
signed int a4,
long long *a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rdx
long long v14; // rdx
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
int v18; // edx
long long v19; // rdx
int v21; // [rsp+10h] [rbp-A8h]
_DWORD *v22; // [rsp+20h] [rbp-98h]
int v23; // [rsp+30h] [rbp-88h]
_DWORD *v24; // [rsp+40h] [rbp-78h]
unsigned int v25; // [rsp+54h] [rbp-64h] BYREF
long long v26; // [rsp+58h] [rbp-60h]
long long v27; // [rsp+60h] [rbp-58h]
signed int i; // [rsp+6Ch] [rbp-4Ch]
long long v29; // [rsp+70h] [rbp-48h]
long long v30; // [rsp+78h] [rbp-40h]
long long *v31; // [rsp+80h] [rbp-38h]
signed int v32; // [rsp+8Ch] [rbp-2Ch]
long long v33; // [rsp+90h] [rbp-28h]
long long v34; // [rsp+98h] [rbp-20h]
long long v35; // [rsp+A0h] [rbp-18h]
long long v36; // [rsp+A8h] [rbp-10h]
long long v37; // [rsp+B0h] [rbp-8h]
v34 = a2;
v35 = a3;
v33 = a1;
v32 = a4;
v31 = a5;
v26 = js_create_from_ctor(a1, a2, a3, 2);
v27 = v13;
v29 = v26;
v30 = v13;
if ( JS_IsException_1(v26, v13) )
{
v36 = v29;
v37 = v30;
}
else
{
if ( v32 == 1 && JS_IsNumber(*v31, v31[1]) )
{
v24 = js_dup((_DWORD *)*v31, v31[1]);
if ( (unsigned int)JS_ToArrayLengthFree(
v33,
&v25,
(long long)v24,
v14,
1LL,
v15,
a6,
a7,
a8,
a9,
v16,
v17,
a12,
a13)
|| (v21 = v33, v23 = js_uint32(v25), (int)JS_SetProperty(v21, v29, v30, 50, v23, v18) < 0) )
{
LABEL_13:
JS_FreeValue(v33, v29, v30);
LODWORD(v36) = 0;
v37 = 6LL;
return v36;
}
}
else
{
for ( i = 0; i < v32; ++i )
{
v22 = js_dup((_DWORD *)v31[2 * i], v31[2 * i + 1]);
if ( (int)JS_SetPropertyUint32(v33, v29, v30, i, (long long)v22, v19) < 0 )
goto LABEL_13;
}
}
v36 = v29;
v37 = v30;
}
return v36;
}
| js_array_constructor:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x90],RDI
MOV dword ptr [RSP + 0x8c],ECX
MOV qword ptr [RSP + 0x80],R8
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
MOV ECX,0x2
CALL 0x0015b0f0
MOV qword ptr [RSP + 0x58],RAX
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x78]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0015d151
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xb0],RAX
JMP 0x0015d2fb
LAB_0015d151:
CMP dword ptr [RSP + 0x8c],0x1
JNZ 0x0015d222
MOV RAX,qword ptr [RSP + 0x80]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001569c0
CMP EAX,0x0
JZ 0x0015d222
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x54]
MOV R8D,0x1
CALL 0x0013b500
CMP EAX,0x0
JZ 0x0015d1d0
JMP 0x0015d2cd
LAB_0015d1d0:
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x10],RAX
MOV EDI,dword ptr [RSP + 0x54]
CALL 0x00139e50
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RSI,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x78]
MOV R8,qword ptr [RSP + 0x30]
MOV R9,qword ptr [RSP + 0x38]
MOV ECX,0x32
CALL 0x001381f0
CMP EAX,0x0
JGE 0x0015d21d
JMP 0x0015d2cd
LAB_0015d21d:
JMP 0x0015d2b1
LAB_0015d222:
MOV dword ptr [RSP + 0x6c],0x0
LAB_0015d22a:
MOV EAX,dword ptr [RSP + 0x6c]
CMP EAX,dword ptr [RSP + 0x8c]
JGE 0x0015d2af
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RSP + 0x6c]
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x80]
MOVSXD RCX,dword ptr [RSP + 0x6c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP]
MOV ECX,dword ptr [RSP + 0xc]
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RSI,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x78]
MOV R8,qword ptr [RSP + 0x20]
MOV R9,qword ptr [RSP + 0x28]
CALL 0x00139640
CMP EAX,0x0
JGE 0x0015d29d
JMP 0x0015d2cd
LAB_0015d29d:
JMP 0x0015d29f
LAB_0015d29f:
MOV EAX,dword ptr [RSP + 0x6c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x6c],EAX
JMP 0x0015d22a
LAB_0015d2af:
JMP 0x0015d2b1
LAB_0015d2b1:
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xb0],RAX
JMP 0x0015d2fb
LAB_0015d2cd:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x00129f80
MOV dword ptr [RSP + 0xa8],0x0
MOV qword ptr [RSP + 0xb0],0x6
LAB_0015d2fb:
MOV RAX,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0xb0]
ADD RSP,0xb8
RET
|
int1 [16]
js_array_constructor
(int8 param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5)
{
int8 uVar1;
int iVar2;
int1 auVar3 [16];
int4 local_64;
int1 local_60 [16];
int local_4c;
int1 local_48 [16];
int8 *local_38;
int local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_60 = js_create_from_ctor(param_1,param_2,param_3,2);
local_48 = local_60;
iVar2 = JS_IsException(local_60._0_8_,local_60._8_8_);
if (iVar2 != 0) {
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
goto LAB_0015d2fb;
}
if (local_2c == 1) {
iVar2 = JS_IsNumber(*local_38,local_38[1]);
uVar1 = local_28;
if (iVar2 == 0) goto LAB_0015d222;
auVar3 = js_dup(*local_38,local_38[1]);
iVar2 = JS_ToArrayLengthFree(uVar1,&local_64,auVar3._0_8_,auVar3._8_8_,1);
uVar1 = local_28;
if (iVar2 != 0) {
LAB_0015d2cd:
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_10 = 0;
local_8 = 6;
goto LAB_0015d2fb;
}
auVar3 = js_uint32(local_64);
iVar2 = JS_SetProperty(uVar1,local_48._0_8_,local_48._8_8_,0x32,auVar3._0_8_,auVar3._8_8_);
if (iVar2 < 0) goto LAB_0015d2cd;
}
else {
LAB_0015d222:
for (local_4c = 0; uVar1 = local_28, iVar2 = local_4c, local_4c < local_2c;
local_4c = local_4c + 1) {
auVar3 = js_dup(local_38[(long)local_4c * 2],(local_38 + (long)local_4c * 2)[1]);
iVar2 = JS_SetPropertyUint32
(uVar1,local_48._0_8_,local_48._8_8_,iVar2,auVar3._0_8_,auVar3._8_8_);
if (iVar2 < 0) goto LAB_0015d2cd;
}
}
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
LAB_0015d2fb:
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
| |
32,710 | js_array_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_array_constructor(JSContext *ctx, JSValue new_target,
int argc, JSValue *argv)
{
JSValue obj;
int i;
obj = js_create_from_ctor(ctx, new_target, JS_CLASS_ARRAY);
if (JS_IsException(obj))
return obj;
if (argc == 1 && JS_IsNumber(argv[0])) {
uint32_t len;
if (JS_ToArrayLengthFree(ctx, &len, js_dup(argv[0]), TRUE))
goto fail;
if (JS_SetProperty(ctx, obj, JS_ATOM_length, js_uint32(len)) < 0)
goto fail;
} else {
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0)
goto fail;
}
}
return obj;
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O2 | c | js_array_constructor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movl %ecx, %r13d
movq %rdi, %r15
pushq $0x2
popq %rcx
callq 0x3400a
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x3554f
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rcx
andq %rax, %rcx
jmp 0x3560e
cmpl $0x1, %r13d
jne 0x355b5
movq 0x8(%r12), %rcx
cmpl $0x7, %ecx
je 0x35563
testl %ecx, %ecx
jne 0x355b5
movq (%r12), %rdx
leaq 0x4(%rsp), %rsi
pushq $0x1
popq %r8
movq %r15, %rdi
callq 0x23689
testl %eax, %eax
jne 0x355f8
movslq 0x4(%rsp), %rax
xorl %ecx, %ecx
movl %eax, %edx
cvtsi2sd %rdx, %xmm0
testq %rax, %rax
movq %xmm0, %r8
cmovnsq %rax, %r8
pushq $0x7
popq %r9
cmovnsq %rcx, %r9
pushq $0x32
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x21ff6
testl %eax, %eax
jns 0x3553a
jmp 0x355f8
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
addq $0x8, %r12
cmpq %rbp, %r13
je 0x3553a
movq -0x8(%r12), %r8
movq (%r12), %r9
cmpl $-0x9, %r9d
jb 0x355dd
incl (%r8)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x22893
incq %rbp
addq $0x10, %r12
testl %eax, %eax
jns 0x355c2
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1bbce
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_array_constructor:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r8
mov r13d, ecx
mov r15, rdi
push 2
pop rcx
call js_create_from_ctor
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_3554F
loc_3553A:
mov rax, 0FFFFFFFF00000000h
mov rcx, r14
and rcx, rax
jmp loc_3560E
loc_3554F:
cmp r13d, 1
jnz short loc_355B5
mov rcx, [r12+8]
cmp ecx, 7
jz short loc_35563
test ecx, ecx
jnz short loc_355B5
loc_35563:
mov rdx, [r12]
lea rsi, [rsp+38h+var_34]
push 1
pop r8
mov rdi, r15
call JS_ToArrayLengthFree
test eax, eax
jnz short loc_355F8
movsxd rax, [rsp+38h+var_34]
xor ecx, ecx
mov edx, eax
cvtsi2sd xmm0, rdx
test rax, rax
movq r8, xmm0
cmovns r8, rax
push 7
pop r9
cmovns r9, rcx
push 32h ; '2'
pop rcx
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_SetProperty
test eax, eax
jns short loc_3553A
jmp short loc_355F8
loc_355B5:
xor ebp, ebp
test r13d, r13d
cmovle r13d, ebp
add r12, 8
loc_355C2:
cmp r13, rbp
jz loc_3553A
mov r8, [r12-8]
mov r9, [r12]
cmp r9d, 0FFFFFFF7h
jb short loc_355DD
inc dword ptr [r8]
loc_355DD:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
mov ecx, ebp
call JS_SetPropertyUint32
inc rbp
add r12, 10h
test eax, eax
jns short loc_355C2
loc_355F8:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
loc_3560E:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_array_constructor(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long *a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rax
long long v15; // r13
long long v16; // r9
unsigned long long v17; // r14
__m128 v18; // xmm4
__m128 v19; // xmm5
long long v20; // rdx
long long v21; // rbx
unsigned long long v22; // rcx
long long v23; // rcx
double v24; // r8
int v25; // r9d
long long v26; // rbp
long long *v27; // r12
_DWORD *v28; // r8
long long v29; // r9
int v30; // eax
unsigned int v32[13]; // [rsp+0h] [rbp-34h] BYREF
v32[0] = HIDWORD(v13);
v15 = a4;
v17 = js_create_from_ctor(a1, a2, a3, 2);
v21 = v20;
if ( (_DWORD)v20 != 6 )
{
if ( (_DWORD)v15 == 1 && ((v23 = a5[1], (_DWORD)v23 == 7) || !(_DWORD)v23) )
{
if ( (unsigned int)JS_ToArrayLengthFree(a1, v32, *a5, v23, 1LL, v16, a6, a7, a8, a9, v18, v19, a12, a13) )
goto LABEL_20;
v24 = (double)(int)v32[0];
if ( (v32[0] & 0x80000000) == 0 )
LODWORD(v24) = v32[0];
v25 = 7;
if ( (v32[0] & 0x80000000) == 0 )
v25 = 0;
if ( (int)JS_SetProperty(a1, v17, v21, 50, SLODWORD(v24), v25) < 0 )
{
LABEL_20:
JS_FreeValue(a1, v17, v21);
LODWORD(v17) = 0;
v22 = 0LL;
return v22 | (unsigned int)v17;
}
}
else
{
v26 = 0LL;
if ( (int)v15 <= 0 )
v15 = 0LL;
v27 = a5 + 1;
while ( v15 != v26 )
{
v28 = (_DWORD *)*(v27 - 1);
v29 = *v27;
if ( (unsigned int)*v27 >= 0xFFFFFFF7 )
++*v28;
v30 = JS_SetPropertyUint32(a1, v17, v21, v26++, (long long)v28, v29);
v27 += 2;
if ( v30 < 0 )
goto LABEL_20;
}
}
}
v22 = v17 & 0xFFFFFFFF00000000LL;
return v22 | (unsigned int)v17;
}
| js_array_constructor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,R8
MOV R13D,ECX
MOV R15,RDI
PUSH 0x2
POP RCX
CALL 0x0013400a
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x0013554f
LAB_0013553a:
MOV RAX,-0x100000000
MOV RCX,R14
AND RCX,RAX
JMP 0x0013560e
LAB_0013554f:
CMP R13D,0x1
JNZ 0x001355b5
MOV RCX,qword ptr [R12 + 0x8]
CMP ECX,0x7
JZ 0x00135563
TEST ECX,ECX
JNZ 0x001355b5
LAB_00135563:
MOV RDX,qword ptr [R12]
LEA RSI,[RSP + 0x4]
PUSH 0x1
POP R8
MOV RDI,R15
CALL 0x00123689
TEST EAX,EAX
JNZ 0x001355f8
MOVSXD RAX,dword ptr [RSP + 0x4]
XOR ECX,ECX
MOV EDX,EAX
CVTSI2SD XMM0,RDX
TEST RAX,RAX
MOVQ R8,XMM0
CMOVNS R8,RAX
PUSH 0x7
POP R9
CMOVNS R9,RCX
PUSH 0x32
POP RCX
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00121ff6
TEST EAX,EAX
JNS 0x0013553a
JMP 0x001355f8
LAB_001355b5:
XOR EBP,EBP
TEST R13D,R13D
CMOVLE R13D,EBP
ADD R12,0x8
LAB_001355c2:
CMP R13,RBP
JZ 0x0013553a
MOV R8,qword ptr [R12 + -0x8]
MOV R9,qword ptr [R12]
CMP R9D,-0x9
JC 0x001355dd
INC dword ptr [R8]
LAB_001355dd:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV ECX,EBP
CALL 0x00122893
INC RBP
ADD R12,0x10
TEST EAX,EAX
JNS 0x001355c2
LAB_001355f8:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011bbce
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
LAB_0013560e:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_array_constructor
(int8 param_1,int8 param_2,int8 param_3,uint param_4,int8 *param_5
)
{
int iVar1;
int8 in_RAX;
double dVar2;
ulong uVar3;
int8 uVar4;
ulong uVar5;
double dVar6;
int8 uVar7;
ulong uVar8;
int1 auVar9 [16];
int1 auVar10 [16];
uint local_34;
local_34 = (uint)((ulong)in_RAX >> 0x20);
auVar9 = js_create_from_ctor();
uVar4 = auVar9._8_8_;
uVar3 = auVar9._0_8_;
if (auVar9._8_4_ == 6) {
LAB_0013553a:
uVar3 = uVar3 & 0xffffffff00000000;
goto LAB_0013560e;
}
if (param_4 == 1) {
iVar1 = (int)param_5[1];
if ((iVar1 != 7) && (iVar1 != 0)) goto LAB_001355b5;
iVar1 = JS_ToArrayLengthFree(param_1,&local_34,*param_5,param_5[1],1);
if (iVar1 == 0) {
dVar2 = (double)(long)(int)local_34;
dVar6 = (double)local_34;
if (-1 < (long)dVar2) {
dVar6 = dVar2;
}
uVar7 = 7;
if (-1 < (long)dVar2) {
uVar7 = 0;
}
iVar1 = JS_SetProperty(param_1,uVar3,uVar4,0x32,dVar6,uVar7);
if (-1 < iVar1) goto LAB_0013553a;
}
}
else {
LAB_001355b5:
uVar5 = 0;
uVar8 = (ulong)param_4;
if ((int)param_4 < 1) {
uVar8 = uVar5;
}
param_5 = param_5 + 1;
do {
if (uVar8 == uVar5) goto LAB_0013553a;
if (0xfffffff6 < (uint)*param_5) {
*(int *)param_5[-1] = *(int *)param_5[-1] + 1;
}
iVar1 = JS_SetPropertyUint32(param_1,uVar3,uVar4,uVar5 & 0xffffffff);
uVar5 = uVar5 + 1;
param_5 = param_5 + 2;
} while (-1 < iVar1);
}
JS_FreeValue(param_1,uVar3,uVar4);
auVar9 = ZEXT816(6) << 0x40;
uVar3 = 0;
LAB_0013560e:
auVar10._0_8_ = auVar9._0_8_ & 0xffffffff | uVar3;
auVar10._8_8_ = auVar9._8_8_;
return auVar10;
}
| |
32,711 | tailoring_append | eloqsql/strings/ctype.c | static int
tailoring_append(MY_XML_PARSER *st,
const char *fmt, size_t len, const char *attr)
{
struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data;
size_t newlen= i->tailoring_length + len + 64; /* 64 for format */
if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen))
{
char *dst= i->tailoring + i->tailoring_length;
sprintf(dst, fmt, (int) len, attr);
i->tailoring_length+= strlen(dst);
return MY_XML_OK;
}
return MY_XML_ERROR;
} | O0 | c | tailoring_append:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x140(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0x690(%rax), %rax
addq -0x20(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x73bf0
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x73bdd
movq -0x30(%rbp), %rax
movq 0x688(%rax), %rax
movq -0x30(%rbp), %rcx
addq 0x690(%rcx), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movl %eax, %edx
movq -0x28(%rbp), %rcx
movb $0x0, %al
callq 0x240a0
movq -0x40(%rbp), %rdi
callq 0x24120
movq %rax, %rcx
movq -0x30(%rbp), %rax
addq 0x690(%rax), %rcx
movq %rcx, 0x690(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x73be4
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| tailoring_append:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax+140h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax+690h]
add rax, [rbp+var_20]
add rax, 40h ; '@'
mov [rbp+var_38], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_38]
call my_charset_file_tailoring_realloc
mov ecx, eax
xor eax, eax
cmp eax, ecx
jnz short loc_73BDD
mov rax, [rbp+var_30]
mov rax, [rax+688h]
mov rcx, [rbp+var_30]
add rax, [rcx+690h]
mov [rbp+var_40], rax
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_20]
mov edx, eax
mov rcx, [rbp+var_28]
mov al, 0
call _sprintf
mov rdi, [rbp+var_40]
call _strlen
mov rcx, rax
mov rax, [rbp+var_30]
add rcx, [rax+690h]
mov [rax+690h], rcx
mov [rbp+var_4], 0
jmp short loc_73BE4
loc_73BDD:
mov [rbp+var_4], 1
loc_73BE4:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long tailoring_append(long long a1, const char *a2, long long a3, long long a4)
{
long long v5; // [rsp+0h] [rbp-40h]
long long v6; // [rsp+10h] [rbp-30h]
unsigned int v8; // [rsp+20h] [rbp-20h]
v8 = a3;
v6 = *(_QWORD *)(a1 + 320);
if ( (unsigned int)my_charset_file_tailoring_realloc(v6, a3 + *(_QWORD *)(v6 + 1680) + 64) )
{
return 1;
}
else
{
v5 = *(_QWORD *)(v6 + 1680) + *(_QWORD *)(v6 + 1672);
sprintf(v5, a2, v8, a4);
*(_QWORD *)(v6 + 1680) += strlen(v5);
return 0;
}
}
| tailoring_append:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x140]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x690]
ADD RAX,qword ptr [RBP + -0x20]
ADD RAX,0x40
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00173bf0
MOV ECX,EAX
XOR EAX,EAX
CMP EAX,ECX
JNZ 0x00173bdd
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x688]
MOV RCX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RCX + 0x690]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,EAX
MOV RCX,qword ptr [RBP + -0x28]
MOV AL,0x0
CALL 0x001240a0
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00124120
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RCX,qword ptr [RAX + 0x690]
MOV qword ptr [RAX + 0x690],RCX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00173be4
LAB_00173bdd:
MOV dword ptr [RBP + -0x4],0x1
LAB_00173be4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
bool tailoring_append(long param_1,char *param_2,ulong param_3,int8 param_4)
{
long lVar1;
int iVar2;
char *__s;
size_t sVar3;
lVar1 = *(long *)(param_1 + 0x140);
iVar2 = my_charset_file_tailoring_realloc(lVar1,*(long *)(lVar1 + 0x690) + param_3 + 0x40);
if (iVar2 == 0) {
__s = (char *)(*(long *)(lVar1 + 0x688) + *(long *)(lVar1 + 0x690));
sprintf(__s,param_2,param_3 & 0xffffffff,param_4);
sVar3 = strlen(__s);
*(size_t *)(lVar1 + 0x690) = sVar3 + *(long *)(lVar1 + 0x690);
}
return iVar2 != 0;
}
| |
32,712 | dns_validate_response | xtate/src/probe-modules/dns-probe.c | static bool dns_validate_response(ProbeTarget *target, const unsigned char *px,
unsigned sizeof_px) {
if (sizeof_px < 2) {
return false;
}
/*maybe we can do more validation to ensure this is a valid dns packet*/
if (U16_EQUAL_TO_BE(px, target->cookie & 0xFFFF)) {
return true;
}
return false;
} | O3 | c | dns_validate_response:
cmpl $0x2, %edx
jb 0x268e1
movl 0x40(%rdi), %ecx
movzbl (%rsi), %eax
movzbl %ch, %edx
cmpw %ax, %dx
jne 0x268e1
movb $0x1, %al
cmpb %cl, 0x1(%rsi)
je 0x268e3
xorl %eax, %eax
retq
| dns_validate_response:
cmp edx, 2
jb short loc_268E1
mov ecx, [rdi+40h]
movzx eax, byte ptr [rsi]
movzx edx, ch
cmp dx, ax
jnz short loc_268E1
mov al, 1
cmp [rsi+1], cl
jz short locret_268E3
loc_268E1:
xor eax, eax
locret_268E3:
retn
| char dns_validate_response(long long a1, unsigned __int8 *a2, unsigned int a3)
{
int v3; // ecx
char result; // al
if ( a3 < 2 )
return 0;
v3 = *(_DWORD *)(a1 + 64);
if ( BYTE1(v3) != (unsigned __int16)*a2 )
return 0;
result = 1;
if ( a2[1] != (_BYTE)v3 )
return 0;
return result;
}
| dns_validate_response:
CMP EDX,0x2
JC 0x001268e1
MOV ECX,dword ptr [RDI + 0x40]
MOVZX EAX,byte ptr [RSI]
MOVZX EDX,CH
CMP DX,AX
JNZ 0x001268e1
MOV AL,0x1
CMP byte ptr [RSI + 0x1],CL
JZ 0x001268e3
LAB_001268e1:
XOR EAX,EAX
LAB_001268e3:
RET
|
int8 dns_validate_response(long param_1,byte *param_2,uint param_3)
{
int8 uVar1;
if (((param_3 < 2) ||
(((ushort)((uint)*(int4 *)(param_1 + 0x40) >> 8) & 0xff) != (ushort)*param_2)) ||
(uVar1 = 1, param_2[1] != (byte)*(int4 *)(param_1 + 0x40))) {
uVar1 = 0;
}
return uVar1;
}
| |
32,713 | Generator::gen_if_pred(NodeIfPred const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | BhuvanGudi[P]LexiParse/src/generation.hpp | void gen_if_pred(const NodeIfPred* pred, const std::string& end_label)
{
struct PredVisitor {
Generator& gen;
const std::string& end_label;
void operator()(const NodeIfPredElif* elif) const
{
gen.m_output << " ;; elif\n";
gen.gen_expr(elif->expr);
gen.pop("rax");
const std::string label = gen.create_label();
gen.m_output << " test rax, rax\n";
gen.m_output << " jz " << label << "\n";
gen.gen_scope(elif->scope);
gen.m_output << " jmp " << end_label << "\n";
if (elif->pred.has_value()) {
gen.m_output << label << ":\n";
gen.gen_if_pred(elif->pred.value(), end_label);
}
}
void operator()(const NodeIfPredElse* else_) const
{
gen.m_output << " ;; else\n";
gen.gen_scope(else_->scope);
}
};
PredVisitor visitor { .gen = *this, .end_label = end_label };
std::visit(visitor, pred->var);
} | O0 | cpp | Generator::gen_if_pred(NodeIfPred const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x155e0
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZN9Generator11gen_if_predEPK10NodeIfPredRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rsi, [rbp+var_10]
lea rdi, [rbp+var_28]
call _ZSt5visitIRZN9Generator11gen_if_predEPK10NodeIfPredRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11PredVisitorJRKSt7variantIJP14NodeIfPredElifP14NodeIfPredElseEEEENSt13invoke_resultIT_JDpNSt11conditionalIX21is_lvalue_reference_vIT0_EERNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISP_EEEEE4typeEE4typeEOSW_E4typeEEE4typeEOSN_DpOSP_
add rsp, 30h
pop rbp
retn
| long long Generator::gen_if_pred(long long a1, long long a2, long long a3)
{
_QWORD v4[5]; // [rsp+8h] [rbp-28h] BYREF
v4[4] = a1;
v4[3] = a2;
v4[2] = a3;
v4[0] = a1;
v4[1] = a3;
return std::visit<Generator::gen_if_pred(NodeIfPred const*,std::string const&)::PredVisitor &,std::variant<NodeIfPredElif *,NodeIfPredElse *> const&>(
v4,
a2);
}
| gen_if_pred:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x28]
CALL 0x001155e0
ADD RSP,0x30
POP RBP
RET
|
/* Generator::gen_if_pred(NodeIfPred const*, std::__cxx11::string const&) */
void __thiscall Generator::gen_if_pred(Generator *this,NodeIfPred *param_1,string *param_2)
{
Generator *local_30;
string *local_28;
string *local_20;
NodeIfPred *local_18;
Generator *local_10;
local_30 = this;
local_28 = param_2;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
std::
visit<Generator::gen_if_pred(NodeIfPred_const*,std::__cxx11::string_const&)::PredVisitor&,std::variant<NodeIfPredElif*,NodeIfPredElse*>const&>
((PredVisitor *)&local_30,(variant *)param_1);
return;
}
| |
32,714 | nglog::LogMessage::SendToLog() | ng-log[P]ng-log/src/logging.cc | EXCLUSIVE_LOCKS_REQUIRED(log_mutex) {
static bool already_warned_before_init = false;
RAW_DCHECK(data_->num_chars_to_log_ > 0 &&
data_->message_text_[data_->num_chars_to_log_ - 1] == '\n',
"");
// Messages of a given severity get logged to lower severity logs, too
if (!already_warned_before_init && !IsLoggingInitialized()) {
const char w[] =
"WARNING: Logging before InitializeLogging() is "
"written to STDERR\n";
WriteToStderr(w, strlen(w));
already_warned_before_init = true;
}
// global flag: never log to file if set. Also -- don't log to a
// file if we haven't parsed the command line flags to get the
// program name.
if (FLAGS_logtostderr || FLAGS_logtostdout || !IsLoggingInitialized()) {
if (FLAGS_logtostdout) {
ColoredWriteToStdout(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
} else {
ColoredWriteToStderr(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
}
// this could be protected by a flag if necessary.
LogDestination::LogToSinks(
data_->severity_, data_->fullname_, data_->basename_, data_->line_,
time_, data_->message_text_ + data_->num_prefix_chars_,
(data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1));
} else {
// log this message to all log files of severity <= severity_
LogDestination::LogToAllLogfiles(data_->severity_, time_.when(),
data_->message_text_,
data_->num_chars_to_log_);
LogDestination::MaybeLogToStderr(data_->severity_, data_->message_text_,
data_->num_chars_to_log_,
data_->num_prefix_chars_);
LogDestination::MaybeLogToEmail(data_->severity_, data_->message_text_,
data_->num_chars_to_log_);
LogDestination::LogToSinks(
data_->severity_, data_->fullname_, data_->basename_, data_->line_,
time_, data_->message_text_ + data_->num_prefix_chars_,
(data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1));
// NOTE: -1 removes trailing \n
}
// If we log a FATAL message, flush all the log destinations, then toss
// a signal for others to catch. We leave the logs in a state that
// someone else can use them (as long as they flush afterwards)
if (data_->severity_ == NGLOG_FATAL && exit_on_dfatal) {
if (data_->first_fatal_) {
// Store crash information so that it is accessible from within signal
// handlers that may be invoked later.
RecordCrashReason(&crash_reason);
SetCrashReason(&crash_reason);
// Store shortened fatal message for other logs and GWQ status
const size_t copy =
min(data_->num_chars_to_log_, sizeof(fatal_message) - 1);
memcpy(fatal_message, data_->message_text_, copy);
fatal_message[copy] = '\0';
fatal_time = time_.when();
}
if (!FLAGS_logtostderr && !FLAGS_logtostdout) {
for (auto& log_destination : LogDestination::log_destinations_) {
if (log_destination) {
log_destination->logger_->Write(
true, std::chrono::system_clock::time_point{}, "", 0);
}
}
}
LogDestination::WaitForSinks(data_);
}
} | O3 | cpp | nglog::LogMessage::SendToLog():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq 0x8(%rdi), %rax
movq 0x76c0(%rax), %rcx
testq %rcx, %rcx
je 0x199ca
cmpb $0xa, 0x3(%rcx,%rax)
je 0x199f7
leaq 0x1a079(%rip), %rsi # 0x33a4a
leaq 0x17876(%rip), %rcx # 0x3124e
leaq 0x1a0b2(%rip), %r8 # 0x33a91
leaq 0x1a5b3(%rip), %r9 # 0x33f99
movl $0x3, %edi
movl $0x6f6, %edx # imm = 0x6F6
xorl %eax, %eax
callq 0x2e4fc
cmpb $0x0, 0x3b85a(%rip) # 0x55258
jne 0x19a0d
callq 0x302e4
testb %al, %al
je 0x19e42
leaq 0x2c5d6(%rip), %rcx # 0x45fea
leaq 0x2c5d7(%rip), %rbx # 0x45ff2
movb (%rbx), %al
cmpb $0x0, (%rcx)
movq %r15, 0x8(%rsp)
jne 0x19b8c
testb $0x1, %al
jne 0x19b8c
callq 0x302e4
testb %al, %al
je 0x19b8a
movq 0x8(%r15), %rdx
movl 0x7698(%rdx), %edi
leaq 0x48(%r15), %rsi
movq 0x76c0(%rdx), %rcx
addq $0x4, %rdx
callq 0x1ff0c
movq 0x8(%r15), %r14
movl 0x7698(%r14), %ebp
movq 0x76c0(%r14), %rcx
movq 0x76b8(%r14), %rbx
leaq 0x2c57a(%rip), %rax # 0x45ff8
cmpl %ebp, (%rax)
jle 0x19a8e
leaq 0x2c563(%rip), %rax # 0x45fec
cmpb $0x1, (%rax)
jne 0x19acd
addq $0x4, %r14
movq 0x2b4ef(%rip), %rax # 0x44f88
movq (%rax), %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x1fc40
callq 0x3030f
addq %rbx, %r14
movl %ebp, %edi
movq %rax, %rsi
movq %r14, %rdx
callq 0x302f0
movq 0x8(%r15), %r14
movl 0x7698(%r14), %ebp
movq 0x76c0(%r14), %rcx
addq $0x4, %r14
movl %ebp, %edi
movq %r14, %rsi
movq %rcx, %rdx
callq 0x2004a
movq 0x8(%r15), %r14
movl 0x7698(%r14), %eax
movl %eax, 0x4(%rsp)
movl 0x769c(%r14), %eax
movl %eax, (%rsp)
movq 0x76d8(%r14), %r15
movq 0x76d0(%r14), %r12
movq 0x76b8(%r14), %rbp
movq %rbp, %rbx
notq %rbx
addq 0x76c0(%r14), %rbx
leaq 0x2c698(%rip), %rdi # 0x461b8
callq 0x210ec
movq 0x2c684(%rip), %rax # 0x461b0
testq %rax, %rax
je 0x19c6c
movq 0x8(%rsp), %rcx
leaq 0x10(%rcx), %r13
addq %r14, %rbp
addq $0x4, %rbp
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0x19c6c
movq 0x2c64f(%rip), %rax # 0x461b0
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movl 0x4(%rsp), %esi
movq %r15, %rdx
movq %r12, %rcx
movl (%rsp), %r8d
movq %r13, %r9
pushq %rbx
pushq %rbp
callq *%rax
addq $0x10, %rsp
jmp 0x19b50
movb (%rbx), %al
movq 0x8(%r15), %rdx
movl 0x7698(%rdx), %esi
movq 0x76c0(%rdx), %rcx
addq $0x4, %rdx
testb $0x1, %al
je 0x19bb9
leaq 0x2c44c(%rip), %rax # 0x45ff8
cmpl %esi, (%rax)
jle 0x19bb9
movq 0x2b329(%rip), %rax # 0x44ee0
jmp 0x19bc0
movq 0x2b3c8(%rip), %rax # 0x44f88
movq (%rax), %rdi
callq 0x1fc40
movq 0x8(%r15), %r14
movl 0x7698(%r14), %eax
movl %eax, 0x4(%rsp)
movl 0x769c(%r14), %eax
movl %eax, (%rsp)
movq 0x76d8(%r14), %r15
movq 0x76d0(%r14), %r12
movq 0x76b8(%r14), %rbp
movq %rbp, %rbx
notq %rbx
addq 0x76c0(%r14), %rbx
leaq 0x2c5ae(%rip), %rdi # 0x461b8
callq 0x210ec
movq 0x2c59a(%rip), %rax # 0x461b0
testq %rax, %rax
je 0x19c6c
movq 0x8(%rsp), %rcx
leaq 0x10(%rcx), %r13
addq %r14, %rbp
addq $0x4, %rbp
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0x19c6c
movq 0x2c56d(%rip), %rax # 0x461b0
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movl 0x4(%rsp), %esi
movq %r15, %rdx
movq %r12, %rcx
movl (%rsp), %r8d
movq %r13, %r9
pushq %rbx
pushq %rbp
callq *%rax
addq $0x10, %rsp
jmp 0x19c36
leaq 0x2c545(%rip), %rdi # 0x461b8
callq 0x8860
movq 0x8(%rsp), %r13
movq 0x8(%r13), %rax
cmpl $0x3, 0x7698(%rax)
jne 0x19e33
cmpb $0x1, 0x2b9f7(%rip) # 0x4568c
jne 0x19e33
cmpb $0x1, 0x76e1(%rax)
jne 0x19d45
leaq 0x2c6b1(%rip), %rax # 0x46360
movq 0x33d82(%rip), %rcx # 0x4da38
movq %rcx, 0x2c583(%rip) # 0x46240
leaq 0x2c57c(%rip), %r14 # 0x46240
movl 0x33d32(%rip), %ecx # 0x4d9fc
movl %ecx, 0x2c578(%rip) # 0x46248
movq 0x33d41(%rip), %rcx # 0x4da18
leaq 0x4(%rcx,%rax), %rax
movq %rax, 0x2c56d(%rip) # 0x46250
leaq 0x2c56e(%rip), %rdi # 0x46258
movl $0x20, %esi
movl $0x4, %edx
callq 0x2f4a4
movl %eax, 0x2c659(%rip) # 0x46358
movq %r14, %rdi
callq 0x30352
movq 0x8(%r13), %rsi
movq 0x76c0(%rsi), %rax
movl $0xff, %r14d
cmpq %r14, %rax
cmovbq %rax, %r14
addq $0x4, %rsi
leaq 0x3b426(%rip), %r15 # 0x55150
movq %r15, %rdi
movq %r14, %rdx
callq 0x84c0
movb $0x0, (%r14,%r15)
movq 0x48(%r13), %rax
movq %rax, 0x3b50b(%rip) # 0x55250
leaq 0x2c29e(%rip), %rax # 0x45fea
cmpb $0x0, (%rax)
jne 0x19da9
leaq 0x2c29a(%rip), %rax # 0x45ff2
cmpb $0x0, (%rax)
jne 0x19da9
xorl %ebx, %ebx
leaq 0x2c49a(%rip), %r12 # 0x46200
leaq 0x1a22c(%rip), %r14 # 0x33f99
leaq 0x10(%rsp), %r15
movq (%rbx,%r12), %rax
testq %rax, %rax
je 0x19d9f
movq 0xc8(%rax), %rdi
movq $0x0, 0x10(%rsp)
movq (%rdi), %rax
movl $0x1, %esi
movq %r15, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq *0x10(%rax)
addq $0x8, %rbx
cmpq $0x20, %rbx
jne 0x19d72
movq 0x8(%r13), %rbx
leaq 0x2c404(%rip), %rdi # 0x461b8
callq 0x210ec
movq 0x2c3f0(%rip), %rax # 0x461b0
testq %rax, %rax
je 0x19dec
movq 0x8(%rax), %r14
subq (%rax), %r14
sarq $0x3, %r14
subq $0x1, %r14
jb 0x19dec
movq 0x2c3d3(%rip), %rax # 0x461b0
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x19dd0
movq 0x76a0(%rbx), %rax
cmpq 0x2b1f6(%rip), %rax # 0x44ff0
setne %cl
cmpq 0x2b19c(%rip), %rax # 0x44fa0
setne %al
testb %al, %cl
jne 0x19e27
cmpq $0x0, 0x76a8(%rbx)
jne 0x19e27
movq 0x76b0(%rbx), %rdi
testq %rdi, %rdi
je 0x19e27
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x2c38a(%rip), %rdi # 0x461b8
callq 0x8860
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x92b8
jmp 0x19a0d
jmp 0x19e52
jmp 0x19e52
jmp 0x19e52
movq %rax, %rbx
leaq 0x2c35c(%rip), %rdi # 0x461b8
callq 0x8860
movq %rbx, %rdi
callq 0x8bb0
nop
| _ZN5nglog10LogMessage9SendToLogEv:
push rbp; void *
push r15; int
push r14; __int64
push r13; int
push r12; void *
push rbx; int
sub rsp, 18h
mov r15, rdi
mov rax, [rdi+8]
mov rcx, [rax+76C0h]
test rcx, rcx
jz short loc_199CA
cmp byte ptr [rcx+rax+3], 0Ah
jz short loc_199F7
loc_199CA:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aCheckSFailedS; "Check %s failed: %s"
lea r8, aDataNumCharsTo; "data_->num_chars_to_log_ > 0 && data_->"...
lea r9, asc_33F97+2; ""
mov edi, (offset dword_0+3); this
mov edx, 6F6h
xor eax, eax
call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)
loc_199F7:
cmp cs:_ZZN5nglog10LogMessage9SendToLogEvE26already_warned_before_init, 0; nglog::LogMessage::SendToLog(void)::already_warned_before_init
jnz short loc_19A0D
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jz loc_19E42
loc_19A0D:
lea rcx, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr
lea rbx, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
mov al, [rbx]
cmp byte ptr [rcx], 0
mov qword ptr [rsp+48h+var_40], r15; int
jnz loc_19B8C
test al, 1
jnz loc_19B8C
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jz loc_19B8A
mov rdx, [r15+8]
mov edi, [rdx+7698h]
lea rsi, [r15+48h]
mov rcx, [rdx+76C0h]
add rdx, 4
call _ZN5nglog14LogDestination16LogToAllLogfilesENS_11LogSeverityERKNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEEPKcm; nglog::LogDestination::LogToAllLogfiles(nglog::LogSeverity,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,char const*,ulong)
mov r14, [r15+8]
mov ebp, [r14+7698h]
mov rcx, [r14+76C0h]
mov rbx, [r14+76B8h]
lea rax, _ZN3fLI21FLAGS_stderrthresholdE; fLI::FLAGS_stderrthreshold
cmp [rax], ebp
jle short loc_19A8E
lea rax, _ZN3fLB21FLAGS_alsologtostderrE; fLB::FLAGS_alsologtostderr
cmp byte ptr [rax], 1
jnz short loc_19ACD
loc_19A8E:
add r14, 4
mov rax, cs:stderr_ptr
mov rdi, [rax]; this
mov esi, ebp
mov rdx, r14
call _ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm; nglog::ColoredWriteToStderrOrStdout(_IO_FILE *,nglog::LogSeverity,char const*,ulong)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
add r14, rbx
mov edi, ebp
mov rsi, rax
mov rdx, r14
call _ZN5nglog5tools14AlsoErrorWriteENS_11LogSeverityEPKcS3_; nglog::tools::AlsoErrorWrite(nglog::LogSeverity,char const*,char const*)
mov r14, [r15+8]
mov ebp, [r14+7698h]
mov rcx, [r14+76C0h]; int
loc_19ACD:
add r14, 4
mov edi, ebp; int
mov rsi, r14; int
mov rdx, rcx; int
call _ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm; nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity,char const*,ulong)
mov r14, [r15+8]
mov eax, [r14+7698h]
mov [rsp+48h+var_44], eax
mov eax, [r14+769Ch]
mov [rsp+48h+var_48], eax
mov r15, [r14+76D8h]
mov r12, [r14+76D0h]
mov rbp, [r14+76B8h]
mov rbx, rbp
not rbx
add rbx, [r14+76C0h]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz loc_19C6C
mov rcx, qword ptr [rsp+48h+var_40]
lea r13, [rcx+10h]
add rbp, r14
add rbp, 4
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_19B50:
sub r14, 1
jb loc_19C6C
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
mov rax, [rax+10h]
mov esi, [rsp+48h+var_44]
mov rdx, r15
mov rcx, r12
mov r8d, [rsp+48h+var_48]
mov r9, r13
push rbx
push rbp
call rax
add rsp, 10h
jmp short loc_19B50
loc_19B8A:
mov al, [rbx]
loc_19B8C:
mov rdx, [r15+8]
mov esi, [rdx+7698h]
mov rcx, [rdx+76C0h]
add rdx, 4
test al, 1
jz short loc_19BB9
lea rax, _ZN3fLI21FLAGS_stderrthresholdE; fLI::FLAGS_stderrthreshold
cmp [rax], esi
jle short loc_19BB9
mov rax, cs:stdout_ptr
jmp short loc_19BC0
loc_19BB9:
mov rax, cs:stderr_ptr
loc_19BC0:
mov rdi, [rax]
call _ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm; nglog::ColoredWriteToStderrOrStdout(_IO_FILE *,nglog::LogSeverity,char const*,ulong)
mov r14, [r15+8]
mov eax, [r14+7698h]
mov [rsp+48h+var_44], eax
mov eax, [r14+769Ch]
mov [rsp+48h+var_48], eax
mov r15, [r14+76D8h]
mov r12, [r14+76D0h]
mov rbp, [r14+76B8h]
mov rbx, rbp
not rbx
add rbx, [r14+76C0h]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz short loc_19C6C
mov rcx, qword ptr [rsp+48h+var_40]
lea r13, [rcx+10h]
add rbp, r14
add rbp, 4
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_19C36:
sub r14, 1
jb short loc_19C6C
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
mov rax, [rax+10h]
mov esi, [rsp+48h+var_44]
mov rdx, r15
mov rcx, r12
mov r8d, [rsp+48h+var_48]
mov r9, r13
push rbx
push rbp
call rax
add rsp, 10h
jmp short loc_19C36
loc_19C6C:
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
mov r13, qword ptr [rsp+48h+var_40]
mov rax, [r13+8]
cmp dword ptr [rax+7698h], 3
jnz loc_19E33
cmp cs:_ZN5nglogL14exit_on_dfatalE, 1; nglog::exit_on_dfatal
jnz loc_19E33
cmp byte ptr [rax+76E1h], 1
jnz loc_19D45
lea rax, _ZN5nglogL24fatal_msg_data_exclusiveE; nglog::fatal_msg_data_exclusive
mov rcx, cs:qword_4DA38
mov cs:_ZN5nglogL12crash_reasonE, rcx; nglog::crash_reason
lea r14, _ZN5nglogL12crash_reasonE; nglog::crash_reason
mov ecx, cs:dword_4D9FC
mov cs:dword_46248, ecx
mov rcx, cs:qword_4DA18; int
lea rax, [rcx+rax+4]
mov cs:qword_46250, rax
lea rdi, unk_46258; this
mov esi, offset qword_20; void **
mov edx, 4; int
call _ZN5nglog5tools13GetStackTraceEPPvii; nglog::tools::GetStackTrace(void **,int,int)
mov cs:dword_46358, eax
mov rdi, r14
call _ZN5nglog5tools14SetCrashReasonEPKNS_8internal11CrashReasonE; nglog::tools::SetCrashReason(nglog::internal::CrashReason const*)
mov rsi, [r13+8]
mov rax, [rsi+76C0h]
mov r14d, 0FFh
cmp rax, r14
cmovb r14, rax
add rsi, 4
lea r15, _ZN5nglogL13fatal_messageE; nglog::fatal_message
mov rdi, r15
mov rdx, r14
call _memcpy
mov byte ptr [r14+r15], 0
mov rax, [r13+48h]
mov cs:_ZN5nglogL10fatal_timeE, rax; nglog::fatal_time
loc_19D45:
lea rax, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr
cmp byte ptr [rax], 0
jnz short loc_19DA9
lea rax, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
cmp byte ptr [rax], 0
jnz short loc_19DA9
xor ebx, ebx
lea r12, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_
lea r14, asc_33F97+2; ""
lea r15, [rsp+48h+var_38]
loc_19D72:
mov rax, [rbx+r12]
test rax, rax
jz short loc_19D9F
mov rdi, [rax+0C8h]
mov [rsp+48h+var_38], 0
mov rax, [rdi]
mov esi, 1
mov rdx, r15
mov rcx, r14
xor r8d, r8d
call qword ptr [rax+10h]
loc_19D9F:
add rbx, 8
cmp rbx, 20h ; ' '
jnz short loc_19D72
loc_19DA9:
mov rbx, [r13+8]
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void)
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rax, rax
jz short loc_19DEC
mov r14, [rax+8]
sub r14, [rax]
sar r14, 3
loc_19DD0:
sub r14, 1
jb short loc_19DEC
mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
mov rax, [rax]
mov rdi, [rax+r14*8]
mov rax, [rdi]
call qword ptr [rax+18h]
jmp short loc_19DD0
loc_19DEC:
mov rax, [rbx+76A0h]
cmp rax, cs:_ZN5nglog10LogMessage10SendToSinkEv_ptr
setnz cl
cmp rax, cs:_ZN5nglog10LogMessage16SendToSinkAndLogEv_ptr
setnz al
test cl, al
jnz short loc_19E27
cmp qword ptr [rbx+76A8h], 0
jnz short loc_19E27
mov rdi, [rbx+76B0h]
test rdi, rdi
jz short loc_19E27
mov rax, [rdi]
call qword ptr [rax+18h]
loc_19E27:
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
loc_19E33:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_19E42:
call _ZN5nglog10LogMessage9SendToLogEv_cold_1; nglog::LogMessage::SendToLog(void) [clone]
jmp loc_19A0D
jmp short loc_19E52
jmp short loc_19E52
jmp short $+2
loc_19E52:
mov rbx, rax
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
mov rdi, rbx
call __Unwind_Resume
| SendToLog:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x76c0]
TEST RCX,RCX
JZ 0x001199ca
CMP byte ptr [RCX + RAX*0x1 + 0x3],0xa
JZ 0x001199f7
LAB_001199ca:
LEA RSI,[0x133a4a]
LEA RCX,[0x13124e]
LEA R8,[0x133a91]
LEA R9,[0x133f99]
MOV EDI,0x3
MOV EDX,0x6f6
XOR EAX,EAX
CALL 0x0012e4fc
LAB_001199f7:
CMP byte ptr [0x00155258],0x0
JNZ 0x00119a0d
CALL 0x001302e4
TEST AL,AL
JZ 0x00119e42
LAB_00119a0d:
LEA RCX,[0x145fea]
LEA RBX,[0x145ff2]
MOV AL,byte ptr [RBX]
CMP byte ptr [RCX],0x0
MOV qword ptr [RSP + 0x8],R15
JNZ 0x00119b8c
TEST AL,0x1
JNZ 0x00119b8c
CALL 0x001302e4
TEST AL,AL
JZ 0x00119b8a
MOV RDX,qword ptr [R15 + 0x8]
MOV EDI,dword ptr [RDX + 0x7698]
LEA RSI,[R15 + 0x48]
MOV RCX,qword ptr [RDX + 0x76c0]
ADD RDX,0x4
CALL 0x0011ff0c
MOV R14,qword ptr [R15 + 0x8]
MOV EBP,dword ptr [R14 + 0x7698]
MOV RCX,qword ptr [R14 + 0x76c0]
MOV RBX,qword ptr [R14 + 0x76b8]
LEA RAX,[0x145ff8]
CMP dword ptr [RAX],EBP
JLE 0x00119a8e
LEA RAX,[0x145fec]
CMP byte ptr [RAX],0x1
JNZ 0x00119acd
LAB_00119a8e:
ADD R14,0x4
MOV RAX,qword ptr [0x00144f88]
MOV RDI,qword ptr [RAX]
MOV ESI,EBP
MOV RDX,R14
CALL 0x0011fc40
CALL 0x0013030f
ADD R14,RBX
MOV EDI,EBP
MOV RSI,RAX
MOV RDX,R14
CALL 0x001302f0
MOV R14,qword ptr [R15 + 0x8]
MOV EBP,dword ptr [R14 + 0x7698]
MOV RCX,qword ptr [R14 + 0x76c0]
LAB_00119acd:
ADD R14,0x4
MOV EDI,EBP
MOV RSI,R14
MOV RDX,RCX
CALL 0x0012004a
MOV R14,qword ptr [R15 + 0x8]
MOV EAX,dword ptr [R14 + 0x7698]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [R14 + 0x769c]
MOV dword ptr [RSP],EAX
MOV R15,qword ptr [R14 + 0x76d8]
MOV R12,qword ptr [R14 + 0x76d0]
MOV RBP,qword ptr [R14 + 0x76b8]
MOV RBX,RBP
NOT RBX
ADD RBX,qword ptr [R14 + 0x76c0]
LEA RDI,[0x1461b8]
CALL 0x001210ec
MOV RAX,qword ptr [0x001461b0]
TEST RAX,RAX
JZ 0x00119c6c
MOV RCX,qword ptr [RSP + 0x8]
LEA R13,[RCX + 0x10]
ADD RBP,R14
ADD RBP,0x4
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_00119b50:
SUB R14,0x1
JC 0x00119c6c
MOV RAX,qword ptr [0x001461b0]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_00119b6f:
MOV ESI,dword ptr [RSP + 0x4]
MOV RDX,R15
MOV RCX,R12
MOV R8D,dword ptr [RSP]
MOV R9,R13
PUSH RBX
PUSH RBP
CALL RAX
ADD RSP,0x10
LAB_00119b88:
JMP 0x00119b50
LAB_00119b8a:
MOV AL,byte ptr [RBX]
LAB_00119b8c:
MOV RDX,qword ptr [R15 + 0x8]
MOV ESI,dword ptr [RDX + 0x7698]
MOV RCX,qword ptr [RDX + 0x76c0]
ADD RDX,0x4
TEST AL,0x1
JZ 0x00119bb9
LEA RAX,[0x145ff8]
CMP dword ptr [RAX],ESI
JLE 0x00119bb9
MOV RAX,qword ptr [0x00144ee0]
JMP 0x00119bc0
LAB_00119bb9:
MOV RAX,qword ptr [0x00144f88]
LAB_00119bc0:
MOV RDI,qword ptr [RAX]
CALL 0x0011fc40
MOV R14,qword ptr [R15 + 0x8]
MOV EAX,dword ptr [R14 + 0x7698]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [R14 + 0x769c]
MOV dword ptr [RSP],EAX
MOV R15,qword ptr [R14 + 0x76d8]
MOV R12,qword ptr [R14 + 0x76d0]
MOV RBP,qword ptr [R14 + 0x76b8]
MOV RBX,RBP
NOT RBX
ADD RBX,qword ptr [R14 + 0x76c0]
LEA RDI,[0x1461b8]
CALL 0x001210ec
MOV RAX,qword ptr [0x001461b0]
TEST RAX,RAX
JZ 0x00119c6c
MOV RCX,qword ptr [RSP + 0x8]
LEA R13,[RCX + 0x10]
ADD RBP,R14
ADD RBP,0x4
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_00119c36:
SUB R14,0x1
JC 0x00119c6c
MOV RAX,qword ptr [0x001461b0]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_00119c51:
MOV ESI,dword ptr [RSP + 0x4]
MOV RDX,R15
MOV RCX,R12
MOV R8D,dword ptr [RSP]
MOV R9,R13
PUSH RBX
PUSH RBP
CALL RAX
ADD RSP,0x10
LAB_00119c6a:
JMP 0x00119c36
LAB_00119c6c:
LEA RDI,[0x1461b8]
CALL 0x00108860
MOV R13,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [R13 + 0x8]
CMP dword ptr [RAX + 0x7698],0x3
JNZ 0x00119e33
CMP byte ptr [0x0014568c],0x1
JNZ 0x00119e33
CMP byte ptr [RAX + 0x76e1],0x1
JNZ 0x00119d45
LEA RAX,[0x146360]
MOV RCX,qword ptr [0x0014da38]
MOV qword ptr [0x00146240],RCX
LEA R14,[0x146240]
MOV ECX,dword ptr [0x0014d9fc]
MOV dword ptr [0x00146248],ECX
MOV RCX,qword ptr [0x0014da18]
LEA RAX,[RCX + RAX*0x1 + 0x4]
MOV qword ptr [0x00146250],RAX
LEA RDI,[0x146258]
MOV ESI,0x20
MOV EDX,0x4
CALL 0x0012f4a4
MOV dword ptr [0x00146358],EAX
MOV RDI,R14
CALL 0x00130352
MOV RSI,qword ptr [R13 + 0x8]
MOV RAX,qword ptr [RSI + 0x76c0]
MOV R14D,0xff
CMP RAX,R14
CMOVC R14,RAX
ADD RSI,0x4
LEA R15,[0x155150]
MOV RDI,R15
MOV RDX,R14
CALL 0x001084c0
MOV byte ptr [R14 + R15*0x1],0x0
MOV RAX,qword ptr [R13 + 0x48]
MOV qword ptr [0x00155250],RAX
LAB_00119d45:
LEA RAX,[0x145fea]
CMP byte ptr [RAX],0x0
JNZ 0x00119da9
LEA RAX,[0x145ff2]
CMP byte ptr [RAX],0x0
JNZ 0x00119da9
XOR EBX,EBX
LEA R12,[0x146200]
LEA R14,[0x133f99]
LEA R15,[RSP + 0x10]
LAB_00119d72:
MOV RAX,qword ptr [RBX + R12*0x1]
TEST RAX,RAX
JZ 0x00119d9f
MOV RDI,qword ptr [RAX + 0xc8]
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RDI]
MOV ESI,0x1
MOV RDX,R15
MOV RCX,R14
XOR R8D,R8D
CALL qword ptr [RAX + 0x10]
LAB_00119d9f:
ADD RBX,0x8
CMP RBX,0x20
JNZ 0x00119d72
LAB_00119da9:
MOV RBX,qword ptr [R13 + 0x8]
LEA RDI,[0x1461b8]
CALL 0x001210ec
MOV RAX,qword ptr [0x001461b0]
TEST RAX,RAX
JZ 0x00119dec
MOV R14,qword ptr [RAX + 0x8]
SUB R14,qword ptr [RAX]
SAR R14,0x3
LAB_00119dd0:
SUB R14,0x1
JC 0x00119dec
MOV RAX,qword ptr [0x001461b0]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV RAX,qword ptr [RDI]
LAB_00119de7:
CALL qword ptr [RAX + 0x18]
JMP 0x00119dd0
LAB_00119dec:
MOV RAX,qword ptr [RBX + 0x76a0]
CMP RAX,qword ptr [0x00144ff0]
SETNZ CL
CMP RAX,qword ptr [0x00144fa0]
SETNZ AL
TEST CL,AL
JNZ 0x00119e27
CMP qword ptr [RBX + 0x76a8],0x0
JNZ 0x00119e27
MOV RDI,qword ptr [RBX + 0x76b0]
TEST RDI,RDI
JZ 0x00119e27
MOV RAX,qword ptr [RDI]
LAB_00119e24:
CALL qword ptr [RAX + 0x18]
LAB_00119e27:
LEA RDI,[0x1461b8]
CALL 0x00108860
LAB_00119e33:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00119e42:
CALL 0x001092b8
JMP 0x00119a0d
|
/* nglog::LogMessage::SendToLog() */
void __thiscall nglog::LogMessage::SendToLog(LogMessage *this)
{
int4 uVar1;
int8 uVar2;
ulong uVar3;
long *plVar4;
char cVar5;
int8 uVar6;
int8 *puVar7;
long lVar8;
int iVar9;
long lVar10;
size_t __n;
long lVar11;
bool bVar12;
int4 uVar13;
int8 local_38;
lVar8 = *(long *)(*(long *)(this + 8) + 0x76c0);
if ((lVar8 == 0) || (*(char *)(lVar8 + 3 + *(long *)(this + 8)) != '\n')) {
RawLog(3,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x6f6,
"Check %s failed: %s",
"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == \'\\n\'"
,&DAT_00133f99);
}
if ((SendToLog()::already_warned_before_init == '\0') &&
(cVar5 = IsLoggingInitialized(), cVar5 == '\0')) {
SendToLog();
}
if (((fLB::FLAGS_logtostderr == '\0') && ((fLB::FLAGS_logtostdout & 1) == 0)) &&
(cVar5 = IsLoggingInitialized(), cVar5 != '\0')) {
lVar8 = *(long *)(this + 8);
LogDestination::LogToAllLogfiles
(*(int4 *)(lVar8 + 0x7698),this + 0x48,lVar8 + 4,*(int8 *)(lVar8 + 0x76c0)
);
lVar8 = *(long *)(this + 8);
iVar9 = *(int *)(lVar8 + 0x7698);
uVar6 = *(int8 *)(lVar8 + 0x76c0);
lVar11 = *(long *)(lVar8 + 0x76b8);
if ((fLI::FLAGS_stderrthreshold <= iVar9) || (fLB::FLAGS_alsologtostderr == '\x01')) {
ColoredWriteToStderrOrStdout(*(int8 *)PTR_stderr_00144f88,iVar9,lVar8 + 4);
uVar6 = tools::ProgramInvocationShortName();
tools::AlsoErrorWrite(iVar9,uVar6,lVar8 + 4 + lVar11);
lVar8 = *(long *)(this + 8);
iVar9 = *(int *)(lVar8 + 0x7698);
uVar6 = *(int8 *)(lVar8 + 0x76c0);
}
LogDestination::MaybeLogToEmail(iVar9,lVar8 + 4,uVar6);
lVar8 = *(long *)(this + 8);
uVar1 = *(int4 *)(lVar8 + 0x7698);
uVar13 = *(int4 *)(lVar8 + 0x769c);
uVar6 = *(int8 *)(lVar8 + 0x76d8);
uVar2 = *(int8 *)(lVar8 + 0x76d0);
uVar3 = *(ulong *)(lVar8 + 0x76b8);
lVar11 = *(long *)(lVar8 + 0x76c0);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar10 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar10 != 0, lVar10 = lVar10 + -1, bVar12) {
plVar4 = *(long **)(*LogDestination::sinks_ + lVar10 * 8);
/* try { // try from 00119b6f to 00119b87 has its CatchHandler @ 00119e4e */
(**(code **)(*plVar4 + 0x10))
(plVar4,uVar1,uVar6,uVar2,uVar13,this + 0x10,uVar3 + lVar8 + 4,~uVar3 + lVar11,
uVar13);
}
}
}
else {
lVar8 = *(long *)(this + 8);
puVar7 = (int8 *)PTR_stderr_00144f88;
if (((fLB::FLAGS_logtostdout & 1) != 0) &&
(*(int *)(lVar8 + 0x7698) < fLI::FLAGS_stderrthreshold)) {
puVar7 = (int8 *)PTR_stdout_00144ee0;
}
ColoredWriteToStderrOrStdout
(*puVar7,*(int *)(lVar8 + 0x7698),lVar8 + 4,*(int8 *)(lVar8 + 0x76c0));
lVar8 = *(long *)(this + 8);
uVar1 = *(int4 *)(lVar8 + 0x7698);
uVar13 = *(int4 *)(lVar8 + 0x769c);
uVar6 = *(int8 *)(lVar8 + 0x76d8);
uVar2 = *(int8 *)(lVar8 + 0x76d0);
uVar3 = *(ulong *)(lVar8 + 0x76b8);
lVar11 = *(long *)(lVar8 + 0x76c0);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar10 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar10 != 0, lVar10 = lVar10 + -1, bVar12) {
plVar4 = *(long **)(*LogDestination::sinks_ + lVar10 * 8);
/* try { // try from 00119c51 to 00119c69 has its CatchHandler @ 00119e52 */
(**(code **)(*plVar4 + 0x10))
(plVar4,uVar1,uVar6,uVar2,uVar13,this + 0x10,uVar3 + lVar8 + 4,~uVar3 + lVar11);
}
}
}
pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_);
if ((*(int *)(*(long *)(this + 8) + 0x7698) == 3) && (exit_on_dfatal == '\x01')) {
if (*(char *)(*(long *)(this + 8) + 0x76e1) == '\x01') {
crash_reason._0_8_ = fatal_msg_data_exclusive._30424_8_;
crash_reason._8_4_ = fatal_msg_data_exclusive._30364_4_;
crash_reason._16_8_ = fatal_msg_data_exclusive._30392_8_ + 0x146364;
crash_reason._280_4_ = tools::GetStackTrace((void **)(crash_reason + 0x18),0x20,4);
tools::SetCrashReason((CrashReason *)crash_reason);
uVar3 = *(ulong *)(*(long *)(this + 8) + 0x76c0);
__n = 0xff;
if (uVar3 < 0xff) {
__n = uVar3;
}
memcpy(&fatal_message,(void *)(*(long *)(this + 8) + 4),__n);
(&fatal_message)[__n] = 0;
fatal_time = *(int8 *)(this + 0x48);
}
if ((fLB::FLAGS_logtostderr == '\0') && (fLB::FLAGS_logtostdout == 0)) {
lVar8 = 0;
do {
if (*(long *)((long)&LogDestination::log_destinations_ + lVar8) != 0) {
plVar4 = *(long **)(*(long *)((long)&LogDestination::log_destinations_ + lVar8) + 200);
local_38 = 0;
(**(code **)(*plVar4 + 0x10))(plVar4,1,&local_38,&DAT_00133f99,0);
}
lVar8 = lVar8 + 8;
} while (lVar8 != 0x20);
}
lVar8 = *(long *)(this + 8);
std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_);
if (LogDestination::sinks_ != (long *)0x0) {
lVar11 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3;
while (bVar12 = lVar11 != 0, lVar11 = lVar11 + -1, bVar12) {
/* try { // try from 00119de7 to 00119de9 has its CatchHandler @ 00119e50 */
(**(code **)(**(long **)(*LogDestination::sinks_ + lVar11 * 8) + 0x18))();
}
}
if (((*(int **)(lVar8 + 0x76a0) == PTR_SendToSink_00144ff0 ||
*(int **)(lVar8 + 0x76a0) == PTR_SendToSinkAndLog_00144fa0) &&
(*(long *)(lVar8 + 0x76a8) == 0)) && (*(long **)(lVar8 + 0x76b0) != (long *)0x0)) {
/* try { // try from 00119e24 to 00119e26 has its CatchHandler @ 00119e4c */
(**(code **)(**(long **)(lVar8 + 0x76b0) + 0x18))();
}
pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_);
}
return;
}
| ||
32,715 | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | token_type scan()
{
// initially, skip the BOM
if (position.chars_read_total == 0 && !skip_bom())
{
error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return token_type::parse_error;
}
// read next character and ignore whitespace
skip_whitespace();
// ignore comments
while (ignore_comments && current == '/')
{
if (!scan_comment())
{
return token_type::parse_error;
}
// skip following whitespace
skip_whitespace();
}
switch (current)
{
// structural characters
case '[':
return token_type::begin_array;
case ']':
return token_type::end_array;
case '{':
return token_type::begin_object;
case '}':
return token_type::end_object;
case ':':
return token_type::name_separator;
case ',':
return token_type::value_separator;
// literals
case 't':
{
std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
}
case 'f':
{
std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
}
case 'n':
{
std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
}
// string
case '\"':
return scan_string();
// number
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return scan_number();
// end of input (the null byte is needed when parsing from
// string literals)
case '\0':
case std::char_traits<char_type>::eof():
return token_type::end_of_input;
// error
default:
error_message = "invalid literal";
return token_type::parse_error;
}
} | O0 | cpp | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan():
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x20(%rax)
jne 0xd33e5
movq 0x30(%rsp), %rdi
callq 0xd35e0
testb $0x1, %al
jne 0xd33e5
movq 0x30(%rsp), %rax
leaq 0xb1124(%rip), %rcx # 0x1844f8
movq %rcx, 0x70(%rax)
movl $0xe, 0x54(%rsp)
jmp 0xd35d0
movq 0x30(%rsp), %rdi
callq 0xd3660
movq 0x30(%rsp), %rcx
xorl %eax, %eax
testb $0x1, 0x10(%rcx)
movb %al, 0x2f(%rsp)
je 0xd3410
movq 0x30(%rsp), %rax
cmpl $0x2f, 0x14(%rax)
sete %al
movb %al, 0x2f(%rsp)
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0xd341a
jmp 0xd3441
movq 0x30(%rsp), %rdi
callq 0xd36d0
testb $0x1, %al
jne 0xd3435
movl $0xe, 0x54(%rsp)
jmp 0xd35d0
movq 0x30(%rsp), %rdi
callq 0xd3660
jmp 0xd33ef
movq 0x30(%rsp), %rax
movl 0x14(%rax), %eax
incl %eax
movl %eax, %ecx
movq %rcx, 0x20(%rsp)
subl $0x7e, %eax
ja 0xd35b8
movq 0x20(%rsp), %rax
leaq 0xaf0b1(%rip), %rcx # 0x182518
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, 0x54(%rsp)
jmp 0xd35d0
movl $0xa, 0x54(%rsp)
jmp 0xd35d0
movl $0x9, 0x54(%rsp)
jmp 0xd35d0
movl $0xb, 0x54(%rsp)
jmp 0xd35d0
movl $0xc, 0x54(%rsp)
jmp 0xd35d0
movl $0xd, 0x54(%rsp)
jmp 0xd35d0
movl 0xaef84(%rip), %eax # 0x182448
movl %eax, 0x44(%rsp)
leaq 0x44(%rsp), %rdi
callq 0xd3880
movq %rax, 0x18(%rsp)
leaq 0x44(%rsp), %rdi
callq 0xd3890
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0xd37d0
movl %eax, 0x54(%rsp)
jmp 0xd35d0
movl 0xaedd1(%rip), %eax # 0x1822d8
movl %eax, 0x3f(%rsp)
movb 0xaedcb(%rip), %al # 0x1822dc
movb %al, 0x43(%rsp)
leaq 0x3f(%rsp), %rdi
callq 0xd38a0
movq %rax, 0x10(%rsp)
leaq 0x3f(%rsp), %rdi
callq 0xd38b0
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
movl $0x2, %ecx
callq 0xd37d0
movl %eax, 0x54(%rsp)
jmp 0xd35d0
movl 0xaeef8(%rip), %eax # 0x18244c
movl %eax, 0x3b(%rsp)
leaq 0x3b(%rsp), %rdi
callq 0xd3880
movq %rax, 0x8(%rsp)
leaq 0x3b(%rsp), %rdi
callq 0xd3890
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movl $0x3, %ecx
callq 0xd37d0
movl %eax, 0x54(%rsp)
jmp 0xd35d0
movq 0x30(%rsp), %rdi
callq 0xd38c0
movl %eax, 0x54(%rsp)
jmp 0xd35d0
movq 0x30(%rsp), %rdi
callq 0xd44f0
movl %eax, 0x54(%rsp)
jmp 0xd35d0
movl $0xf, 0x54(%rsp)
jmp 0xd35d0
movq 0x30(%rsp), %rax
leaq 0xb0f61(%rip), %rcx # 0x184525
movq %rcx, 0x70(%rax)
movl $0xe, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE4scanEv:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov rax, [rsp+58h+var_10]
mov [rsp+58h+var_28], rax
cmp qword ptr [rax+20h], 0
jnz short loc_D33E5
mov rdi, [rsp+58h+var_28]
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE8skip_bomEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_bom(void)
test al, 1
jnz short loc_D33E5
mov rax, [rsp+58h+var_28]
lea rcx, aInvalidBomMust; "invalid BOM; must be 0xEF 0xBB 0xBF if "...
mov [rax+70h], rcx
mov [rsp+58h+var_4], 0Eh
jmp loc_D35D0
loc_D33E5:
mov rdi, [rsp+58h+var_28]
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE15skip_whitespaceEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_whitespace(void)
loc_D33EF:
mov rcx, [rsp+58h+var_28]
xor eax, eax
test byte ptr [rcx+10h], 1
mov [rsp+58h+var_29], al
jz short loc_D3410
mov rax, [rsp+58h+var_28]
cmp dword ptr [rax+14h], 2Fh ; '/'
setz al
mov [rsp+58h+var_29], al
loc_D3410:
mov al, [rsp+58h+var_29]
test al, 1
jnz short loc_D341A
jmp short loc_D3441
loc_D341A:
mov rdi, [rsp+58h+var_28]
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_commentEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_comment(void)
test al, 1
jnz short loc_D3435
mov [rsp+58h+var_4], 0Eh
jmp loc_D35D0
loc_D3435:
mov rdi, [rsp+58h+var_28]
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE15skip_whitespaceEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_whitespace(void)
jmp short loc_D33EF
loc_D3441:
mov rax, [rsp+58h+var_28]
mov eax, [rax+14h]
inc eax; switch 127 cases
mov ecx, eax
mov [rsp+58h+var_38], rcx
sub eax, 7Eh
ja def_D346E; jumptable 00000000000D346E default case, cases 1-33,35-43,46,47,59-90,92,94-101,103-109,111-115,117-122,124
mov rax, [rsp+58h+var_38]
lea rcx, jpt_D346E
movsxd rax, ds:(jpt_D346E - 182518h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_D3470:
mov [rsp+58h+var_4], 8; jumptable 00000000000D346E case 91
jmp loc_D35D0
loc_D347D:
mov [rsp+58h+var_4], 0Ah; jumptable 00000000000D346E case 93
jmp loc_D35D0
loc_D348A:
mov [rsp+58h+var_4], 9; jumptable 00000000000D346E case 123
jmp loc_D35D0
loc_D3497:
mov [rsp+58h+var_4], 0Bh; jumptable 00000000000D346E case 125
jmp loc_D35D0
loc_D34A4:
mov [rsp+58h+var_4], 0Ch; jumptable 00000000000D346E case 58
jmp loc_D35D0
loc_D34B1:
mov [rsp+58h+var_4], 0Dh; jumptable 00000000000D346E case 44
jmp loc_D35D0
loc_D34BE:
mov eax, cs:dword_182448; jumptable 00000000000D346E case 116
mov [rsp+58h+var_14], eax
lea rdi, [rsp+58h+var_14]
call _ZNSt5arrayIcLm4EE4dataEv; std::array<char,4ul>::data(void)
mov [rsp+58h+var_40], rax
lea rdi, [rsp+58h+var_14]
call _ZNKSt5arrayIcLm4EE4sizeEv; std::array<char,4ul>::size(void)
mov rdi, [rsp+58h+var_28]
mov rsi, [rsp+58h+var_40]
mov rdx, rax
mov ecx, 1
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_literalESI_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_2::detail::lexer_base<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>>>::token_type)
mov [rsp+58h+var_4], eax
jmp loc_D35D0
loc_D3501:
mov eax, cs:dword_1822D8; jumptable 00000000000D346E case 102
mov [rsp+58h+var_19], eax
mov al, cs:byte_1822DC
mov [rsp+58h+var_15], al
lea rdi, [rsp+58h+var_19]
call _ZNSt5arrayIcLm5EE4dataEv; std::array<char,5ul>::data(void)
mov [rsp+58h+var_48], rax
lea rdi, [rsp+58h+var_19]
call _ZNKSt5arrayIcLm5EE4sizeEv; std::array<char,5ul>::size(void)
mov rdi, [rsp+58h+var_28]
mov rsi, [rsp+58h+var_48]
mov rdx, rax
mov ecx, 2
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_literalESI_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_2::detail::lexer_base<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>>>::token_type)
mov [rsp+58h+var_4], eax
jmp loc_D35D0
loc_D354E:
mov eax, cs:dword_18244C; jumptable 00000000000D346E case 110
mov [rsp+58h+var_1D], eax
lea rdi, [rsp+58h+var_1D]
call _ZNSt5arrayIcLm4EE4dataEv; std::array<char,4ul>::data(void)
mov [rsp+58h+var_50], rax
lea rdi, [rsp+58h+var_1D]
call _ZNKSt5arrayIcLm4EE4sizeEv; std::array<char,4ul>::size(void)
mov rdi, [rsp+58h+var_28]
mov rsi, [rsp+58h+var_50]
mov rdx, rax
mov ecx, 3
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_literalESI_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_2::detail::lexer_base<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>>>::token_type)
mov [rsp+58h+var_4], eax
jmp short loc_D35D0
loc_D358E:
mov rdi, [rsp+58h+var_28]; jumptable 00000000000D346E case 34
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_stringEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_string(void)
mov [rsp+58h+var_4], eax
jmp short loc_D35D0
loc_D359E:
mov rdi, [rsp+58h+var_28]; jumptable 00000000000D346E cases 45,48-57
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_numberEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_number(void)
mov [rsp+58h+var_4], eax
jmp short loc_D35D0
loc_D35AE:
mov [rsp+58h+var_4], 0Fh; jumptable 00000000000D346E cases -1,0
jmp short loc_D35D0
def_D346E:
mov rax, [rsp+58h+var_28]; jumptable 00000000000D346E default case, cases 1-33,35-43,46,47,59-90,92,94-101,103-109,111-115,117-122,124
lea rcx, aInvalidLiteral; "invalid literal"
mov [rax+70h], rcx
mov [rsp+58h+var_4], 0Eh
loc_D35D0:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
| long long nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan(
long long a1)
{
long long v1; // rax
long long v2; // rax
long long v3; // rax
long long v5; // [rsp+8h] [rbp-50h]
long long v6; // [rsp+10h] [rbp-48h]
long long v7; // [rsp+18h] [rbp-40h]
bool v8; // [rsp+2Fh] [rbp-29h]
int v9; // [rsp+3Bh] [rbp-1Dh] BYREF
_BYTE v10[5]; // [rsp+3Fh] [rbp-19h] BYREF
int v11; // [rsp+44h] [rbp-14h] BYREF
long long v12; // [rsp+48h] [rbp-10h]
unsigned int v13; // [rsp+54h] [rbp-4h]
v12 = a1;
if ( *(_QWORD *)(a1 + 32)
|| (nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_bom(a1) & 1) != 0 )
{
while ( 1 )
{
nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_whitespace(a1);
v8 = 0;
if ( (*(_BYTE *)(a1 + 16) & 1) != 0 )
v8 = *(_DWORD *)(a1 + 20) == 47;
if ( !v8 )
break;
if ( (nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_comment(a1) & 1) == 0 )
return 14;
}
switch ( *(_DWORD *)(a1 + 20) )
{
case 0xFFFFFFFF:
case 0:
v13 = 15;
break;
case 0x22:
v13 = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_string(a1);
break;
case 0x2C:
v13 = 13;
break;
case 0x2D:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
v13 = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_number(a1);
break;
case 0x3A:
v13 = 12;
break;
case 0x5B:
v13 = 8;
break;
case 0x5D:
v13 = 10;
break;
case 0x66:
qmemcpy(v10, "false", sizeof(v10));
v6 = std::array<char,5ul>::data(v10);
v2 = std::array<char,5ul>::size(v10);
v13 = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
v6,
v2,
2LL);
break;
case 0x6E:
v9 = 1819047278;
v5 = std::array<char,4ul>::data(&v9);
v3 = std::array<char,4ul>::size(&v9);
v13 = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
v5,
v3,
3LL);
break;
case 0x74:
v11 = 1702195828;
v7 = std::array<char,4ul>::data(&v11);
v1 = std::array<char,4ul>::size(&v11);
v13 = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
v7,
v1,
1LL);
break;
case 0x7B:
v13 = 9;
break;
case 0x7D:
v13 = 11;
break;
default:
*(_QWORD *)(a1 + 112) = "invalid literal";
v13 = 14;
break;
}
}
else
{
*(_QWORD *)(a1 + 112) = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return 14;
}
return v13;
}
| scan:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x001d33e5
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d35e0
TEST AL,0x1
JNZ 0x001d33e5
MOV RAX,qword ptr [RSP + 0x30]
LEA RCX,[0x2844f8]
MOV qword ptr [RAX + 0x70],RCX
MOV dword ptr [RSP + 0x54],0xe
JMP 0x001d35d0
LAB_001d33e5:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d3660
LAB_001d33ef:
MOV RCX,qword ptr [RSP + 0x30]
XOR EAX,EAX
TEST byte ptr [RCX + 0x10],0x1
MOV byte ptr [RSP + 0x2f],AL
JZ 0x001d3410
MOV RAX,qword ptr [RSP + 0x30]
CMP dword ptr [RAX + 0x14],0x2f
SETZ AL
MOV byte ptr [RSP + 0x2f],AL
LAB_001d3410:
MOV AL,byte ptr [RSP + 0x2f]
TEST AL,0x1
JNZ 0x001d341a
JMP 0x001d3441
LAB_001d341a:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d36d0
TEST AL,0x1
JNZ 0x001d3435
MOV dword ptr [RSP + 0x54],0xe
JMP 0x001d35d0
LAB_001d3435:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d3660
JMP 0x001d33ef
LAB_001d3441:
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX + 0x14]
INC EAX
MOV ECX,EAX
MOV qword ptr [RSP + 0x20],RCX
SUB EAX,0x7e
JA 0x001d35b8
MOV RAX,qword ptr [RSP + 0x20]
LEA RCX,[0x282518]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5b:
MOV dword ptr [RSP + 0x54],0x8
JMP 0x001d35d0
caseD_5d:
MOV dword ptr [RSP + 0x54],0xa
JMP 0x001d35d0
caseD_7b:
MOV dword ptr [RSP + 0x54],0x9
JMP 0x001d35d0
caseD_7d:
MOV dword ptr [RSP + 0x54],0xb
JMP 0x001d35d0
caseD_3a:
MOV dword ptr [RSP + 0x54],0xc
JMP 0x001d35d0
caseD_2c:
MOV dword ptr [RSP + 0x54],0xd
JMP 0x001d35d0
caseD_74:
MOV EAX,dword ptr [0x00282448]
MOV dword ptr [RSP + 0x44],EAX
LEA RDI,[RSP + 0x44]
CALL 0x001d3880
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0x44]
CALL 0x001d3890
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,RAX
MOV ECX,0x1
CALL 0x001d37d0
MOV dword ptr [RSP + 0x54],EAX
JMP 0x001d35d0
caseD_66:
MOV EAX,dword ptr [0x002822d8]
MOV dword ptr [RSP + 0x3f],EAX
MOV AL,byte ptr [0x002822dc]
MOV byte ptr [RSP + 0x43],AL
LEA RDI,[RSP + 0x3f]
CALL 0x001d38a0
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x3f]
CALL 0x001d38b0
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,RAX
MOV ECX,0x2
CALL 0x001d37d0
MOV dword ptr [RSP + 0x54],EAX
JMP 0x001d35d0
caseD_6e:
MOV EAX,dword ptr [0x0028244c]
MOV dword ptr [RSP + 0x3b],EAX
LEA RDI,[RSP + 0x3b]
CALL 0x001d3880
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x3b]
CALL 0x001d3890
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,RAX
MOV ECX,0x3
CALL 0x001d37d0
MOV dword ptr [RSP + 0x54],EAX
JMP 0x001d35d0
caseD_22:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d38c0
MOV dword ptr [RSP + 0x54],EAX
JMP 0x001d35d0
caseD_2d:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001d44f0
MOV dword ptr [RSP + 0x54],EAX
JMP 0x001d35d0
caseD_ffffffff:
MOV dword ptr [RSP + 0x54],0xf
JMP 0x001d35d0
caseD_1:
MOV RAX,qword ptr [RSP + 0x30]
LEA RCX,[0x284525]
MOV qword ptr [RAX + 0x70],RCX
MOV dword ptr [RSP + 0x54],0xe
LAB_001d35d0:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
/* nlohmann::json_abi_v3_11_2::detail::lexer<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> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*> >::scan() */
int4 __thiscall
nlohmann::json_abi_v3_11_2::detail::
lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
::scan(lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
*this)
{
int4 uVar1;
ulong uVar2;
int8 uVar3;
int8 uVar4;
bool bVar5;
int4 local_1d;
array<char,5ul> local_19 [4];
char local_15;
int4 local_14;
lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
*local_10;
local_10 = this;
if ((*(long *)(this + 0x20) == 0) && (uVar2 = skip_bom(this), (uVar2 & 1) == 0)) {
*(char **)(this + 0x70) = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
}
else {
skip_whitespace(this);
while( true ) {
bVar5 = false;
if (((byte)this[0x10] & 1) != 0) {
bVar5 = *(int *)(this + 0x14) == 0x2f;
}
if (!bVar5) {
switch(*(int4 *)(this + 0x14)) {
default:
*(char **)(this + 0x70) = "invalid literal";
return 0xe;
case 0x22:
uVar1 = scan_string(this);
return uVar1;
case 0x2c:
return 0xd;
case 0x2d:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
uVar1 = scan_number(this);
return uVar1;
case 0x3a:
return 0xc;
case 0x5b:
return 8;
case 0x5d:
return 10;
case 0x66:
local_19[0] = (array<char,5ul>)s_false_002822d8[0];
local_19[1] = (array<char,5ul>)s_false_002822d8[1];
local_19[2] = (array<char,5ul>)s_false_002822d8[2];
local_19[3] = (array<char,5ul>)s_false_002822d8[3];
local_15 = s_false_002822d8[4];
uVar3 = std::array<char,5ul>::data(local_19);
uVar4 = std::array<char,5ul>::size();
uVar1 = scan_literal(this,uVar3,uVar4,2);
return uVar1;
case 0x6e:
local_1d = DAT_0028244c;
uVar3 = std::array<char,4ul>::data((array<char,4ul> *)&local_1d);
uVar4 = std::array<char,4ul>::size();
uVar1 = scan_literal(this,uVar3,uVar4,3);
return uVar1;
case 0x74:
local_14 = DAT_00282448;
uVar3 = std::array<char,4ul>::data((array<char,4ul> *)&local_14);
uVar4 = std::array<char,4ul>::size();
uVar1 = scan_literal(this,uVar3,uVar4,1);
return uVar1;
case 0x7b:
return 9;
case 0x7d:
return 0xb;
case 0xffffffff:
case 0:
return 0xf;
}
}
uVar2 = scan_comment(this);
if ((uVar2 & 1) == 0) break;
skip_whitespace(this);
}
}
return 0xe;
}
| |
32,716 | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | token_type scan()
{
// initially, skip the BOM
if (position.chars_read_total == 0 && !skip_bom())
{
error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return token_type::parse_error;
}
// read next character and ignore whitespace
skip_whitespace();
// ignore comments
while (ignore_comments && current == '/')
{
if (!scan_comment())
{
return token_type::parse_error;
}
// skip following whitespace
skip_whitespace();
}
switch (current)
{
// structural characters
case '[':
return token_type::begin_array;
case ']':
return token_type::end_array;
case '{':
return token_type::begin_object;
case '}':
return token_type::end_object;
case ':':
return token_type::name_separator;
case ',':
return token_type::value_separator;
// literals
case 't':
{
std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
}
case 'f':
{
std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
}
case 'n':
{
std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
}
// string
case '\"':
return scan_string();
// number
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return scan_number();
// end of input (the null byte is needed when parsing from
// string literals)
case '\0':
case std::char_traits<char_type>::eof():
return token_type::end_of_input;
// error
default:
error_message = "invalid literal";
return token_type::parse_error;
}
} | O1 | cpp | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan():
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x71703
movq %rbx, %rdi
callq 0x718e4
testb %al, %al
je 0x717ed
movabsq $0x100002600, %r14 # imm = 0x100002600
movq %rbx, %rdi
callq 0xbab2
movl 0x14(%rbx), %eax
cmpq $0x20, %rax
ja 0x71724
btq %rax, %r14
jb 0x7170d
movl 0x14(%rbx), %eax
cmpl $0x2f, %eax
sete %cl
andb 0x10(%rbx), %cl
cmpb $0x1, %cl
jne 0x7176a
movq %rbx, %rdi
callq 0x71926
testb %al, %al
je 0x717f8
movq %rbx, %rdi
callq 0xbab2
movl 0x14(%rbx), %eax
cmpq $0x20, %rax
ja 0x7175c
btq %rax, %r14
jb 0x71745
movl 0x14(%rbx), %eax
cmpb $0x1, 0x10(%rbx)
jne 0x7176a
cmpl $0x2f, %eax
je 0x71735
cmpl $0x5a, %eax
jg 0x7179c
leal -0x22(%rax), %ecx
cmpl $0x18, %ecx
ja 0x7184b
leaq 0x4f272(%rip), %rax # 0xc09f4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x719a2
cmpl $0x6d, %eax
jle 0x71807
cmpl $0x7a, %eax
jg 0x71859
cmpl $0x6e, %eax
je 0x71878
cmpl $0x74, %eax
jne 0x718a8
movl $0x65757274, 0xc(%rsp) # imm = 0x65757274
movl $0x1, %r14d
movq %rbx, %rdi
callq 0xbab2
cmpb %al, 0xc(%rsp,%r14)
jne 0x718a8
incq %r14
cmpq $0x4, %r14
jne 0x717ca
movl $0x1, %eax
jmp 0x717fd
leaq 0x50c34(%rip), %rax # 0xc2428
movq %rax, 0x70(%rbx)
movl $0xe, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x5b, %eax
je 0x718c8
cmpl $0x5d, %eax
je 0x718be
cmpl $0x66, %eax
jne 0x718a8
xorl %r14d, %r14d
leaq 0x4ef4c(%rip), %r15 # 0xc0778
movq %rbx, %rdi
callq 0xbab2
cmpb %al, 0x1(%r14,%r15)
jne 0x718a8
incq %r14
movl $0x2, %eax
cmpq $0x4, %r14
jne 0x7182c
jmp 0x717fd
incl %eax
cmpl $0x2, %eax
jae 0x718a8
movl $0xf, %eax
jmp 0x717fd
cmpl $0x7b, %eax
je 0x718b4
cmpl $0x7d, %eax
jne 0x718a8
movl $0xb, %eax
jmp 0x717fd
movl $0xc, %eax
jmp 0x717fd
movl $0xd, %eax
jmp 0x717fd
movl $0x6c6c756e, 0x8(%rsp) # imm = 0x6C6C756E
movl $0x1, %r14d
movq %rbx, %rdi
callq 0xbab2
cmpb %al, 0x8(%rsp,%r14)
jne 0x718a8
incq %r14
cmpq $0x4, %r14
jne 0x71886
movl $0x3, %eax
jmp 0x717fd
leaq 0x50ba6(%rip), %rax # 0xc2455
jmp 0x717f4
movl $0x9, %eax
jmp 0x717fd
movl $0xa, %eax
jmp 0x717fd
movl $0x8, %eax
jmp 0x717fd
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xb66a
nop
| _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE4scanEv:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
cmp qword ptr [rdi+20h], 0
jnz short loc_71703
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE8skip_bomEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_bom(void)
test al, al
jz loc_717ED
loc_71703:
mov r14, 100002600h
loc_7170D:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::get(void)
mov eax, [rbx+14h]
cmp rax, 20h ; ' '
ja short loc_71724
bt r14, rax
jb short loc_7170D
loc_71724:
mov eax, [rbx+14h]
cmp eax, 2Fh ; '/'
setz cl
and cl, [rbx+10h]
cmp cl, 1
jnz short loc_7176A
loc_71735:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_commentEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_comment(void)
test al, al
jz loc_717F8
loc_71745:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::get(void)
mov eax, [rbx+14h]
cmp rax, 20h ; ' '
ja short loc_7175C
bt r14, rax
jb short loc_71745
loc_7175C:
mov eax, [rbx+14h]
cmp byte ptr [rbx+10h], 1
jnz short loc_7176A
cmp eax, 2Fh ; '/'
jz short loc_71735
loc_7176A:
cmp eax, 5Ah ; 'Z'
jg short loc_7179C
lea ecx, [rax-22h]; switch 25 cases
cmp ecx, 18h
ja def_71789; jumptable 0000000000071789 default case
lea rax, jpt_71789
movsxd rcx, ds:(jpt_71789 - 0C09F4h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_7178B:
mov rdi, rbx; jumptable 0000000000071789 cases 45,48-57
add rsp, 10h
pop rbx
pop r14
pop r15
jmp _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_numberEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_number(void)
loc_7179C:
cmp eax, 6Dh ; 'm'
jle short loc_71807
cmp eax, 7Ah ; 'z'
jg loc_71859
cmp eax, 6Eh ; 'n'
jz loc_71878
cmp eax, 74h ; 't'
jnz loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
mov [rsp+28h+var_1C], 65757274h
mov r14d, 1
loc_717CA:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::get(void)
cmp byte ptr [rsp+r14+28h+var_1C], al
jnz loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
inc r14
cmp r14, 4
jnz short loc_717CA
mov eax, 1
jmp short loc_717FD
loc_717ED:
lea rax, aInvalidBomMust; "invalid BOM; must be 0xEF 0xBB 0xBF if "...
loc_717F4:
mov [rbx+70h], rax
loc_717F8:
mov eax, 0Eh
loc_717FD:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
loc_71807:
cmp eax, 5Bh ; '['
jz loc_718C8
cmp eax, 5Dh ; ']'
jz loc_718BE
cmp eax, 66h ; 'f'
jnz loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
xor r14d, r14d
lea r15, aFalse_0; "false"
loc_7182C:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::get(void)
cmp [r14+r15+1], al
jnz short loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
inc r14
mov eax, 2
cmp r14, 4
jnz short loc_7182C
jmp short loc_717FD
def_71789:
inc eax; jumptable 0000000000071789 default case
cmp eax, 2
jnb short loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
mov eax, 0Fh
jmp short loc_717FD
loc_71859:
cmp eax, 7Bh ; '{'
jz short loc_718B4
cmp eax, 7Dh ; '}'
jnz short loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
mov eax, 0Bh
jmp short loc_717FD
loc_7186A:
mov eax, 0Ch; jumptable 0000000000071789 case 58
jmp short loc_717FD
loc_71871:
mov eax, 0Dh; jumptable 0000000000071789 case 44
jmp short loc_717FD
loc_71878:
mov [rsp+28h+var_20], 6C6C756Eh
mov r14d, 1
loc_71886:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE3getEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::get(void)
cmp byte ptr [rsp+r14+28h+var_20], al
jnz short loc_718A8; jumptable 0000000000071789 cases 35-43,46,47
inc r14
cmp r14, 4
jnz short loc_71886
mov eax, 3
jmp loc_717FD
loc_718A8:
lea rax, aInvalidLiteral; jumptable 0000000000071789 cases 35-43,46,47
jmp loc_717F4
loc_718B4:
mov eax, 9
jmp loc_717FD
loc_718BE:
mov eax, 0Ah
jmp loc_717FD
loc_718C8:
mov eax, 8
jmp loc_717FD
loc_718D2:
mov rdi, rbx; jumptable 0000000000071789 case 34
add rsp, 10h
pop rbx
pop r14
pop r15
jmp _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_stringEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_string(void)
| long long nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan(
__m128i *a1)
{
long long v1; // r14
unsigned long long v2; // rax
int v3; // eax
unsigned long long v4; // rax
long long result; // rax
long long v6; // r14
const char *v7; // rax
long long v8; // r14
long long v9; // r14
int v10; // [rsp+8h] [rbp-20h]
_DWORD v11[7]; // [rsp+Ch] [rbp-1Ch]
if ( !a1[2].m128i_i64[0]
&& !(unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_bom(a1) )
{
v7 = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
LABEL_24:
a1[7].m128i_i64[0] = (long long)v7;
return 14LL;
}
v1 = 0x100002600LL;
do
{
nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1);
v2 = a1[1].m128i_u32[1];
}
while ( v2 <= 0x20 && _bittest64(&v1, v2) );
v3 = a1[1].m128i_i32[1];
if ( (a1[1].m128i_i8[0] & (v3 == 47)) == 1 )
{
while ( (unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_comment(a1) )
{
do
{
nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1);
v4 = a1[1].m128i_u32[1];
}
while ( v4 <= 0x20 && _bittest64(&v1, v4) );
v3 = a1[1].m128i_i32[1];
if ( a1[1].m128i_i8[0] != 1 || v3 != 47 )
goto LABEL_12;
}
return 14LL;
}
LABEL_12:
if ( v3 > 90 )
{
if ( v3 <= 109 )
{
switch ( v3 )
{
case '[':
return 8LL;
case ']':
return 10LL;
case 'f':
v8 = 0LL;
while ( aFalse_0[v8 + 1] == (unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1) )
{
++v8;
result = 2LL;
if ( v8 == 4 )
return result;
}
break;
}
}
else if ( v3 > 122 )
{
if ( v3 == 123 )
return 9LL;
if ( v3 == 125 )
return 11LL;
}
else if ( v3 == 110 )
{
v10 = 1819047278;
v9 = 1LL;
while ( *((_BYTE *)&v11[-1] + v9) == (unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1) )
{
if ( ++v9 == 4 )
return 3LL;
}
}
else if ( v3 == 116 )
{
v11[0] = 1702195828;
v6 = 1LL;
while ( *((_BYTE *)v11 + v6) == (unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get(a1) )
{
if ( ++v6 == 4 )
return 1LL;
}
}
LABEL_45:
v7 = "invalid literal";
goto LABEL_24;
}
switch ( v3 )
{
case '"':
result = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_string((long long)a1);
break;
case '#':
case '$':
case '%':
case '&':
case '\'':
case '(':
case ')':
case '*':
case '+':
case '.':
case '/':
goto LABEL_45;
case ',':
result = 13LL;
break;
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
result = nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_number(a1);
break;
case ':':
result = 12LL;
break;
default:
if ( (unsigned int)(v3 + 1) >= 2 )
goto LABEL_45;
result = 15LL;
break;
}
return result;
}
| |||
32,717 | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan() | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | token_type scan()
{
// initially, skip the BOM
if (position.chars_read_total == 0 && !skip_bom())
{
error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return token_type::parse_error;
}
// read next character and ignore whitespace
skip_whitespace();
// ignore comments
while (ignore_comments && current == '/')
{
if (!scan_comment())
{
return token_type::parse_error;
}
// skip following whitespace
skip_whitespace();
}
switch (current)
{
// structural characters
case '[':
return token_type::begin_array;
case ']':
return token_type::end_array;
case '{':
return token_type::begin_object;
case '}':
return token_type::end_object;
case ':':
return token_type::name_separator;
case ',':
return token_type::value_separator;
// literals
case 't':
{
std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
}
case 'f':
{
std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
}
case 'n':
{
std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
}
// string
case '\"':
return scan_string();
// number
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return scan_number();
// end of input (the null byte is needed when parsing from
// string literals)
case '\0':
case std::char_traits<char_type>::eof():
return token_type::end_of_input;
// error
default:
error_message = "invalid literal";
return token_type::parse_error;
}
} | O2 | cpp | nlohmann::json_abi_v3_11_2::detail::lexer<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>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan():
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x4e376
movq %rbx, %rdi
callq 0x4e496
testb %al, %al
je 0x4e3cb
movq %rbx, %rdi
callq 0x4e4d8
pushq $0xe
popq %rbp
movl 0x14(%rbx), %eax
cmpb $0x1, 0x10(%rbx)
jne 0x4e3a5
cmpl $0x2f, %eax
jne 0x4e3a5
movq %rbx, %rdi
callq 0x4e508
testb %al, %al
je 0x4e3d9
movq %rbx, %rdi
callq 0x4e4d8
jmp 0x4e381
leal -0x22(%rax), %ecx
cmpl $0x18, %ecx
ja 0x4e3e2
leaq 0x4e550(%rip), %rax # 0x9c904
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %rbp
jmp 0x4e9dc
leaq 0x4ff66(%rip), %rax # 0x9e338
movq %rax, 0x70(%rbx)
pushq $0xe
popq %rbp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x4e415
cmpl $0x5b, %eax
je 0x4e464
cmpl $0x7d, %eax
je 0x4e48f
cmpl $0x66, %eax
je 0x4e46b
cmpl $0x6e, %eax
je 0x4e43c
cmpl $0x74, %eax
je 0x4e452
cmpl $0x7b, %eax
je 0x4e44e
cmpl $0x5d, %eax
jne 0x4e419
pushq $0xa
jmp 0x4e3d8
pushq $0xf
jmp 0x4e3d8
leaq 0x4ff45(%rip), %rax # 0x9e365
movq %rax, 0x70(%rbx)
jmp 0x4e3d9
pushq $0xc
jmp 0x4e3d8
pushq $0xd
jmp 0x4e3d8
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %rbp
jmp 0x4e5d0
leaq 0x8(%rsp), %rsi
movl $0x6c6c756e, (%rsi) # imm = 0x6C6C756E
pushq $0x4
popq %rdx
pushq $0x3
jmp 0x4e47f
pushq $0x9
jmp 0x4e3d8
leaq 0xc(%rsp), %rsi
movl $0x65757274, (%rsi) # imm = 0x65757274
pushq $0x4
popq %rdx
pushq $0x1
jmp 0x4e47f
pushq $0x8
jmp 0x4e3d8
leaq 0x10(%rsp), %rsi
movb $0x65, 0x4(%rsi)
movl $0x736c6166, (%rsi) # imm = 0x736C6166
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x4e584
movl %eax, %ebp
jmp 0x4e3d9
pushq $0xb
jmp 0x4e3d8
| _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE4scanEv:
push rbp
push rbx
sub rsp, 18h
mov rbx, rdi
cmp qword ptr [rdi+20h], 0
jnz short loc_4E376
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE8skip_bomEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_bom(void)
test al, al
jz short loc_4E3CB
loc_4E376:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE15skip_whitespaceEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_whitespace(void)
push 0Eh
pop rbp
loc_4E381:
mov eax, [rbx+14h]
cmp byte ptr [rbx+10h], 1
jnz short loc_4E3A5
cmp eax, 2Fh ; '/'
jnz short loc_4E3A5
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_commentEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_comment(void)
test al, al
jz short loc_4E3D9
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE15skip_whitespaceEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::skip_whitespace(void)
jmp short loc_4E381
loc_4E3A5:
lea ecx, [rax-22h]; switch 25 cases
cmp ecx, 18h
ja short def_4E3BB; jumptable 000000000004E3BB default case
lea rax, jpt_4E3BB
movsxd rcx, ds:(jpt_4E3BB - 9C904h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_4E3BD:
mov rdi, rbx; jumptable 000000000004E3BB cases 45,48-57
add rsp, 18h
pop rbx
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_numberEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_number(void)
loc_4E3CB:
lea rax, aInvalidBomMust; "invalid BOM; must be 0xEF 0xBB 0xBF if "...
mov [rbx+70h], rax
push 0Eh
loc_4E3D8:
pop rbp
loc_4E3D9:
mov eax, ebp
add rsp, 18h
pop rbx
pop rbp
retn
def_4E3BB:
lea ecx, [rax+1]; jumptable 000000000004E3BB default case
cmp ecx, 2
jb short loc_4E415
cmp eax, 5Bh ; '['
jz short loc_4E464
cmp eax, 7Dh ; '}'
jz loc_4E48F
cmp eax, 66h ; 'f'
jz short loc_4E46B
cmp eax, 6Eh ; 'n'
jz short loc_4E43C
cmp eax, 74h ; 't'
jz short loc_4E452
cmp eax, 7Bh ; '{'
jz short loc_4E44E
cmp eax, 5Dh ; ']'
jnz short loc_4E419; jumptable 000000000004E3BB cases 35-43,46,47
push 0Ah
jmp short loc_4E3D8
loc_4E415:
push 0Fh
jmp short loc_4E3D8
loc_4E419:
lea rax, aInvalidLiteral; jumptable 000000000004E3BB cases 35-43,46,47
mov [rbx+70h], rax
jmp short loc_4E3D9
loc_4E426:
push 0Ch; jumptable 000000000004E3BB case 58
jmp short loc_4E3D8
loc_4E42A:
push 0Dh; jumptable 000000000004E3BB case 44
jmp short loc_4E3D8
loc_4E42E:
mov rdi, rbx; jumptable 000000000004E3BB case 34
add rsp, 18h
pop rbx
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE11scan_stringEv; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_string(void)
loc_4E43C:
lea rsi, [rsp+28h+var_20]
mov dword ptr [rsi], 6C6C756Eh
push 4
pop rdx
push 3
jmp short loc_4E47F
loc_4E44E:
push 9
jmp short loc_4E3D8
loc_4E452:
lea rsi, [rsp+28h+var_1C]
mov dword ptr [rsi], 65757274h
push 4
pop rdx
push 1
jmp short loc_4E47F
loc_4E464:
push 8
jmp loc_4E3D8
loc_4E46B:
lea rsi, [rsp+28h+var_18]
mov byte ptr [rsi+4], 65h ; 'e'
mov dword ptr [rsi], 736C6166h
push 5
pop rdx
push 2
loc_4E47F:
pop rcx
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE12scan_literalESI_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_2::detail::lexer<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::detail::iterator_input_adapter<char const*>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_2::detail::lexer_base<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>>>::token_type)
mov ebp, eax
jmp loc_4E3D9
loc_4E48F:
push 0Bh
jmp loc_4E3D8
| long long nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan(
long long a1)
{
unsigned int v1; // ebp
int v2; // eax
int v6; // [rsp+8h] [rbp-20h] BYREF
int v7; // [rsp+Ch] [rbp-1Ch] BYREF
_BYTE v8[24]; // [rsp+10h] [rbp-18h] BYREF
if ( !*(_QWORD *)(a1 + 32)
&& !(unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_bom(a1) )
{
*(_QWORD *)(a1 + 112) = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return 14;
}
nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_whitespace(a1);
v1 = 14;
while ( 1 )
{
v2 = *(_DWORD *)(a1 + 20);
if ( *(_BYTE *)(a1 + 16) != 1 || v2 != 47 )
break;
if ( !(unsigned __int8)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_comment(a1) )
return v1;
nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::skip_whitespace(a1);
}
switch ( v2 )
{
case '"':
return nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_string(a1);
case '#':
case '$':
case '%':
case '&':
case '\'':
case '(':
case ')':
case '*':
case '+':
case '.':
case '/':
goto LABEL_23;
case ',':
return 13;
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_number(a1);
case ':':
return 12;
default:
if ( (unsigned int)(v2 + 1) < 2 )
return 15;
switch ( v2 )
{
case '[':
return 8;
case '}':
return 11;
case 'f':
qmemcpy(v8, "false", 5);
return (unsigned int)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
v8,
5LL,
2LL);
case 'n':
v6 = 1819047278;
return (unsigned int)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
&v6,
4LL,
3LL);
case 't':
v7 = 1702195828;
return (unsigned int)nlohmann::json_abi_v3_11_2::detail::lexer<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>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan_literal(
a1,
&v7,
4LL,
1LL);
case '{':
return 9;
case ']':
return 10;
}
LABEL_23:
*(_QWORD *)(a1 + 112) = "invalid literal";
return v1;
}
}
| scan:
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CMP qword ptr [RDI + 0x20],0x0
JNZ 0x0014e376
MOV RDI,RBX
CALL 0x0014e496
TEST AL,AL
JZ 0x0014e3cb
LAB_0014e376:
MOV RDI,RBX
CALL 0x0014e4d8
PUSH 0xe
POP RBP
LAB_0014e381:
MOV EAX,dword ptr [RBX + 0x14]
CMP byte ptr [RBX + 0x10],0x1
JNZ 0x0014e3a5
CMP EAX,0x2f
JNZ 0x0014e3a5
MOV RDI,RBX
CALL 0x0014e508
TEST AL,AL
JZ 0x0014e3d9
MOV RDI,RBX
CALL 0x0014e4d8
JMP 0x0014e381
LAB_0014e3a5:
LEA ECX,[RAX + -0x22]
CMP ECX,0x18
JA 0x0014e3e2
LEA RAX,[0x19c904]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_2d:
MOV RDI,RBX
ADD RSP,0x18
POP RBX
POP RBP
JMP 0x0014e9dc
LAB_0014e3cb:
LEA RAX,[0x19e338]
MOV qword ptr [RBX + 0x70],RAX
PUSH 0xe
LAB_0014e3d8:
POP RBP
LAB_0014e3d9:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP RBP
RET
default:
LEA ECX,[RAX + 0x1]
CMP ECX,0x2
JC 0x0014e415
CMP EAX,0x5b
JZ 0x0014e464
CMP EAX,0x7d
JZ 0x0014e48f
CMP EAX,0x66
JZ 0x0014e46b
CMP EAX,0x6e
JZ 0x0014e43c
CMP EAX,0x74
JZ 0x0014e452
CMP EAX,0x7b
JZ 0x0014e44e
CMP EAX,0x5d
JNZ 0x0014e419
PUSH 0xa
JMP 0x0014e3d8
LAB_0014e415:
PUSH 0xf
JMP 0x0014e3d8
caseD_23:
LEA RAX,[0x19e365]
MOV qword ptr [RBX + 0x70],RAX
JMP 0x0014e3d9
caseD_3a:
PUSH 0xc
JMP 0x0014e3d8
caseD_2c:
PUSH 0xd
JMP 0x0014e3d8
caseD_22:
MOV RDI,RBX
ADD RSP,0x18
POP RBX
POP RBP
JMP 0x0014e5d0
LAB_0014e43c:
LEA RSI,[RSP + 0x8]
MOV dword ptr [RSI],0x6c6c756e
PUSH 0x4
POP RDX
PUSH 0x3
JMP 0x0014e47f
LAB_0014e44e:
PUSH 0x9
JMP 0x0014e3d8
LAB_0014e452:
LEA RSI,[RSP + 0xc]
MOV dword ptr [RSI],0x65757274
PUSH 0x4
POP RDX
PUSH 0x1
JMP 0x0014e47f
LAB_0014e464:
PUSH 0x8
JMP 0x0014e3d8
LAB_0014e46b:
LEA RSI,[RSP + 0x10]
MOV byte ptr [RSI + 0x4],0x65
MOV dword ptr [RSI],0x736c6166
PUSH 0x5
POP RDX
PUSH 0x2
LAB_0014e47f:
POP RCX
MOV RDI,RBX
CALL 0x0014e584
MOV EBP,EAX
JMP 0x0014e3d9
LAB_0014e48f:
PUSH 0xb
JMP 0x0014e3d8
|
/* nlohmann::json_abi_v3_11_2::detail::lexer<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> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*> >::scan() */
ulong __thiscall
nlohmann::json_abi_v3_11_2::detail::
lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
::scan(lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
*this)
{
int iVar1;
char cVar2;
uint uVar3;
ulong uVar4;
int8 uVar5;
int4 *puVar6;
ulong uStack_30;
int4 local_20;
int4 local_1c;
int4 local_18;
int1 local_14;
if ((*(long *)(this + 0x20) == 0) && (cVar2 = skip_bom(this), cVar2 == '\0')) {
*(char **)(this + 0x70) = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return 0xe;
}
skip_whitespace(this);
uStack_30 = 0xe;
while ((iVar1 = *(int *)(this + 0x14),
this[0x10] ==
(lexer<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>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>>
)0x1 && (iVar1 == 0x2f))) {
cVar2 = scan_comment(this);
if (cVar2 == '\0') {
return 0xe;
}
skip_whitespace(this);
}
switch(iVar1) {
case 0x22:
uVar4 = scan_string(this);
return uVar4;
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2e:
case 0x2f:
switchD_0014e3bb_caseD_23:
*(char **)(this + 0x70) = "invalid literal";
break;
case 0x2c:
uStack_30 = 0xd;
break;
case 0x2d:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
uVar4 = scan_number(this);
return uVar4;
case 0x3a:
uStack_30 = 0xc;
break;
default:
if (iVar1 + 1U < 2) {
return 0xf;
}
if (iVar1 == 0x5b) {
return 8;
}
if (iVar1 == 0x7d) {
return 0xb;
}
if (iVar1 == 0x66) {
puVar6 = &local_18;
local_14 = 0x65;
local_18 = 0x736c6166;
uVar5 = 5;
uStack_30 = 2;
}
else if (iVar1 == 0x6e) {
puVar6 = &local_20;
local_20 = 0x6c6c756e;
uVar5 = 4;
uStack_30 = 3;
}
else {
if (iVar1 != 0x74) {
if (iVar1 == 0x7b) {
return 9;
}
if (iVar1 == 0x5d) {
return 10;
}
goto switchD_0014e3bb_caseD_23;
}
puVar6 = &local_1c;
local_1c = 0x65757274;
uVar5 = 4;
uStack_30 = 1;
}
uVar3 = scan_literal(this,puVar6,uVar5,uStack_30);
uStack_30 = (ulong)uVar3;
}
return uStack_30;
}
| |
32,718 | break_str_into_lines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long) | monkey531[P]llama/common/arg.cpp | static std::vector<std::string> break_str_into_lines(std::string input, size_t max_char_per_line) {
std::vector<std::string> result;
std::istringstream iss(input);
std::string line;
auto add_line = [&](const std::string& l) {
if (l.length() <= max_char_per_line) {
result.push_back(l);
} else {
std::istringstream line_stream(l);
std::string word, current_line;
while (line_stream >> word) {
if (current_line.length() + !current_line.empty() + word.length() > max_char_per_line) {
if (!current_line.empty()) result.push_back(current_line);
current_line = word;
} else {
current_line += (!current_line.empty() ? " " : "") + word;
}
}
if (!current_line.empty()) result.push_back(current_line);
}
};
while (std::getline(iss, line)) {
add_line(line);
}
return result;
} | O0 | cpp | break_str_into_lines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long):
subq $0x208, %rsp # imm = 0x208
movq %rsi, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x200(%rsp)
movq %rsi, 0x1f8(%rsp)
movq %rdx, 0x1f0(%rsp)
movb $0x0, 0x1ef(%rsp)
callq 0x64160
movq 0x20(%rsp), %rsi
leaq 0x68(%rsp), %rdi
movl $0x8, %edx
callq 0x5a820
jmp 0x69cc4
leaq 0x38(%rsp), %rdi
callq 0x5a5f0
movq 0x10(%rsp), %rax
leaq 0x1f0(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5a8f0
movq %rax, 0x8(%rsp)
jmp 0x69cfb
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5a630
movb %al, 0x7(%rsp)
jmp 0x69d15
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x69d1f
jmp 0x69d66
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x834b0
jmp 0x69d30
jmp 0x69ce5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x69da3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x5b588
leaq 0x68(%rsp), %rdi
callq 0x5a9d0
jmp 0x69da3
movb $0x1, 0x1ef(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x5b588
leaq 0x68(%rsp), %rdi
callq 0x5a9d0
testb $0x1, 0x1ef(%rsp)
jne 0x69d96
movq 0x10(%rsp), %rdi
callq 0x61840
movq 0x18(%rsp), %rax
addq $0x208, %rsp # imm = 0x208
retq
movq 0x10(%rsp), %rdi
callq 0x61840
movq 0x60(%rsp), %rdi
callq 0x5abc0
nopw (%rax,%rax)
| _ZL20break_str_into_linesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm:
sub rsp, 208h
mov [rsp+208h+var_1E8], rsi
mov [rsp+208h+var_1F8], rdi
mov rax, rdi
mov [rsp+208h+var_1F0], rax
mov [rsp+208h+var_8], rdi
mov [rsp+208h+var_10], rsi
mov [rsp+208h+var_18], rdx
mov [rsp+208h+var_19], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov rsi, [rsp+208h+var_1E8]
lea rdi, [rsp+208h+var_1A0]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
jmp short $+2
loc_69CC4:
lea rdi, [rsp+208h+var_1D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rax, [rsp+208h+var_1F8]
lea rcx, [rsp+208h+var_18]
mov [rsp+208h+var_1E0], rcx
mov [rsp+208h+var_1D8], rax
loc_69CE5:
lea rdi, [rsp+208h+var_1A0]
lea rsi, [rsp+208h+var_1D0]
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &)
mov [rsp+208h+var_200], rax
jmp short $+2
loc_69CFB:
mov rdi, [rsp+208h+var_200]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax
call __ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv; std::ios::operator bool(void)
mov [rsp+208h+var_201], al
jmp short $+2
loc_69D15:
mov al, [rsp+208h+var_201]
test al, 1
jnz short loc_69D1F
jmp short loc_69D66
loc_69D1F:
lea rdi, [rsp+208h+var_1E0]
lea rsi, [rsp+208h+var_1D0]
call _ZZL20break_str_into_linesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clERKS4_; break_str_into_lines(std::string,ulong)::$_0::operator()(std::string const&)
jmp short $+2
loc_69D30:
jmp short loc_69CE5
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_69DA3
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+arg_60]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
jmp short loc_69DA3
loc_69D66:
mov [rsp+208h+var_19], 1
lea rdi, [rsp+208h+var_1D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+208h+var_1A0]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
test [rsp+208h+var_19], 1
jnz short loc_69D96
mov rdi, [rsp+208h+var_1F8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_69D96:
mov rax, [rsp+208h+var_1F0]
add rsp, 208h
retn
loc_69DA3:
mov rdi, [rsp+arg_8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| long long break_str_into_lines(long long a1, long long a2, long long a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-208h]
_QWORD *v9; // [rsp+8h] [rbp-200h]
long long *v10; // [rsp+10h] [rbp-1F8h]
long long v11; // [rsp+18h] [rbp-1F0h]
char v12; // [rsp+20h] [rbp-1E8h]
_QWORD *v13; // [rsp+28h] [rbp-1E0h] BYREF
long long i; // [rsp+30h] [rbp-1D8h]
_DWORD v15[4]; // [rsp+38h] [rbp-1D0h] BYREF
long long v16; // [rsp+48h] [rbp-1C0h]
char v17; // [rsp+50h] [rbp-1B8h]
int v18; // [rsp+58h] [rbp-1B0h]
int v19; // [rsp+60h] [rbp-1A8h]
int v20; // [rsp+68h] [rbp-1A0h] BYREF
char v21; // [rsp+70h] [rbp-198h]
int v22; // [rsp+78h] [rbp-190h]
int v23; // [rsp+80h] [rbp-188h]
int v24; // [rsp+88h] [rbp-180h]
char v25; // [rsp+90h] [rbp-178h]
char v26; // [rsp+1EFh] [rbp-19h]
_QWORD v27[3]; // [rsp+1F0h] [rbp-18h] BYREF
v12 = a2;
v10 = (long long *)a1;
v11 = a1;
v27[2] = a1;
v27[1] = a2;
v27[0] = a3;
v26 = 0;
std::vector<std::string>::vector(a1);
std::istringstream::basic_istringstream(&v20, a2, 8LL);
std::string::basic_string(v15);
v13 = v27;
for ( i = a1;
;
break_str_into_lines(std::string,unsigned long)::$_0::operator()(
(unsigned int)&v13,
(unsigned int)v15,
v3,
v4,
v5,
v6,
v8,
(_DWORD)v9,
(_DWORD)v10,
v11,
v12,
(_DWORD)v13,
i,
v15[0],
v15[2],
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25) )
{
v9 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(&v20, v15);
if ( (std::ios::operator bool((char *)v9 + *(_QWORD *)(*v9 - 24LL)) & 1) == 0 )
break;
}
v26 = 1;
std::string::~string(v15);
std::istringstream::~istringstream(&v20);
if ( (v26 & 1) == 0 )
std::vector<std::string>::~vector(v10);
return v11;
}
| break_str_into_lines:
SUB RSP,0x208
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x200],RDI
MOV qword ptr [RSP + 0x1f8],RSI
MOV qword ptr [RSP + 0x1f0],RDX
MOV byte ptr [RSP + 0x1ef],0x0
CALL 0x00164160
MOV RSI,qword ptr [RSP + 0x20]
LAB_00169cb3:
LEA RDI,[RSP + 0x68]
MOV EDX,0x8
CALL 0x0015a820
JMP 0x00169cc4
LAB_00169cc4:
LEA RDI,[RSP + 0x38]
CALL 0x0015a5f0
MOV RAX,qword ptr [RSP + 0x10]
LEA RCX,[RSP + 0x1f0]
MOV qword ptr [RSP + 0x28],RCX
MOV qword ptr [RSP + 0x30],RAX
LAB_00169ce5:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x38]
CALL 0x0015a8f0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00169cfb
LAB_00169cfb:
MOV RDI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
CALL 0x0015a630
MOV byte ptr [RSP + 0x7],AL
JMP 0x00169d15
LAB_00169d15:
MOV AL,byte ptr [RSP + 0x7]
TEST AL,0x1
JNZ 0x00169d1f
JMP 0x00169d66
LAB_00169d1f:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x38]
CALL 0x001834b0
LAB_00169d2e:
JMP 0x00169d30
LAB_00169d30:
JMP 0x00169ce5
LAB_00169d66:
MOV byte ptr [RSP + 0x1ef],0x1
LEA RDI,[RSP + 0x38]
CALL 0x0015b588
LEA RDI,[RSP + 0x68]
CALL 0x0015a9d0
TEST byte ptr [RSP + 0x1ef],0x1
JNZ 0x00169d96
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00161840
LAB_00169d96:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x208
RET
|
/* break_str_into_lines(std::__cxx11::string, unsigned long) */
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *
break_str_into_lines
(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *param_1,
int8 param_2,int8 param_3)
{
bool bVar1;
istream *piVar2;
int8 *local_1e0;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_1d8;
string local_1d0 [48];
istringstream local_1a0 [391];
byte local_19;
int8 local_18;
int8 local_10;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_8;
local_19 = 0;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(param_1);
/* try { // try from 00169cb3 to 00169cc1 has its CatchHandler @ 00169d32 */
std::__cxx11::istringstream::istringstream(local_1a0,param_2,8);
std::__cxx11::string::string(local_1d0);
local_1e0 = &local_18;
local_1d8 = param_1;
while( true ) {
/* try { // try from 00169ce5 to 00169d2d has its CatchHandler @ 00169d42 */
piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)local_1a0,local_1d0);
bVar1 = std::ios::operator_cast_to_bool((ios *)(piVar2 + *(long *)(*(long *)piVar2 + -0x18)));
if (!bVar1) break;
break_str_into_lines(std::__cxx11::string,unsigned_long)::$_0::operator()
((__0 *)&local_1e0,local_1d0);
}
local_19 = 1;
std::__cxx11::string::~string(local_1d0);
std::__cxx11::istringstream::~istringstream(local_1a0);
if ((local_19 & 1) == 0) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(param_1);
}
return param_1;
}
| |
32,719 | mysql_mbcharlen_gb18030 | eloqsql/libmariadb/libmariadb/ma_charset.c | static unsigned int mysql_mbcharlen_gb18030(unsigned int c)
{
if (c <= 0xFF) {
return !is_gb18030_odd(c);
}
if (c > 0xFFFF || !is_gb18030_odd((c >> 8) & 0xFF)) {
return 0;
}
if (is_gb18030_even_2((c & 0xFF))) {
return 2;
}
if (is_gb18030_even_4((c & 0xFF))) {
return 4;
}
return 0;
} | O3 | c | mysql_mbcharlen_gb18030:
pushq %rbp
movq %rsp, %rbp
cmpl $0xff, %edi
ja 0x2fe93
cmpl $0x81, %edi
setb %al
cmpl $0xff, %edi
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x2fed7
leal -0x8100(%rdi), %ecx
xorl %eax, %eax
cmpl $0x7dff, %ecx # imm = 0x7DFF
ja 0x2fed7
movzbl %dil, %ecx
leal -0x40(%rcx), %edx
movl $0x2, %eax
cmpl $0x3f, %edx
jb 0x2fed7
cmpl $0x7f, %ecx
seta %dl
cmpl $0xff, %ecx
setne %sil
testb %sil, %dl
jne 0x2fed7
addl $-0x30, %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
setb %al
shll $0x2, %eax
popq %rbp
retq
| mysql_mbcharlen_gb18030:
push rbp
mov rbp, rsp
cmp edi, 0FFh
ja short loc_2FE93
cmp edi, 81h
setb al
cmp edi, 0FFh
setz cl
or cl, al
movzx eax, cl
jmp short loc_2FED7
loc_2FE93:
lea ecx, [rdi-8100h]
xor eax, eax
cmp ecx, 7DFFh
ja short loc_2FED7
movzx ecx, dil
lea edx, [rcx-40h]
mov eax, 2
cmp edx, 3Fh ; '?'
jb short loc_2FED7
cmp ecx, 7Fh
setnbe dl
cmp ecx, 0FFh
setnz sil
test dl, sil
jnz short loc_2FED7
add ecx, 0FFFFFFD0h
xor eax, eax
cmp ecx, 0Ah
setb al
shl eax, 2
loc_2FED7:
pop rbp
retn
| long long mysql_mbcharlen_gb18030(unsigned int a1)
{
long long result; // rax
if ( a1 <= 0xFF )
return (a1 < 0x81) | (unsigned __int8)(a1 == 255);
result = 0LL;
if ( a1 - 33024 <= 0x7DFF )
{
result = 2LL;
if ( (unsigned int)(unsigned __int8)a1 - 64 >= 0x3F && ((unsigned __int8)a1 == 255 || (unsigned __int8)a1 <= 0x7Fu) )
return 4 * (unsigned int)((unsigned int)(unsigned __int8)a1 - 48 < 0xA);
}
return result;
}
| mysql_mbcharlen_gb18030:
PUSH RBP
MOV RBP,RSP
CMP EDI,0xff
JA 0x0012fe93
CMP EDI,0x81
SETC AL
CMP EDI,0xff
SETZ CL
OR CL,AL
MOVZX EAX,CL
JMP 0x0012fed7
LAB_0012fe93:
LEA ECX,[RDI + -0x8100]
XOR EAX,EAX
CMP ECX,0x7dff
JA 0x0012fed7
MOVZX ECX,DIL
LEA EDX,[RCX + -0x40]
MOV EAX,0x2
CMP EDX,0x3f
JC 0x0012fed7
CMP ECX,0x7f
SETA DL
CMP ECX,0xff
SETNZ SIL
TEST DL,SIL
JNZ 0x0012fed7
ADD ECX,-0x30
XOR EAX,EAX
CMP ECX,0xa
SETC AL
SHL EAX,0x2
LAB_0012fed7:
POP RBP
RET
|
ulong mysql_mbcharlen_gb18030(uint param_1)
{
ulong uVar1;
if (param_1 < 0x100) {
uVar1 = (ulong)(param_1 == 0xff || param_1 < 0x81);
}
else {
uVar1 = 0;
if (param_1 - 0x8100 < 0x7e00) {
param_1 = param_1 & 0xff;
uVar1 = 2;
if ((0x3e < param_1 - 0x40) && (param_1 < 0x80 || param_1 == 0xff)) {
uVar1 = (ulong)(param_1 - 0x30 < 10) << 2;
}
}
}
return uVar1;
}
| |
32,720 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O1 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0x6d36f
cmpl $0x7, %eax
je 0x6d367
cmpl $0x6, %eax
jne 0x6d382
movsd 0x8(%r14), %xmm1
unpcklps 0x4c7ff(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4c807(%rip), %xmm1 # 0xb9b60
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
jmp 0x6d375
movsd 0x8(%r14), %xmm0
jmp 0x6d375
cvtsi2sdq 0x8(%r14), %xmm0
movsd %xmm0, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x19370
movq %rax, %rbx
movq %r14, %rdi
callq 0x2f7ce
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4dc0a(%rip), %rsi # 0xbafb0
leaq 0x10(%rsp), %rdi
callq 0x4c7ed
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x4c488
xorl %ebp, %ebp
leaq 0x7fb4f(%rip), %rsi # 0xecf20
leaq -0x41a8a(%rip), %rdx # 0x2b94e
movq %rbx, %rdi
callq 0x19b70
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d406
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x196b0
jmp 0x6d406
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6d413
movq %rbx, %rdi
callq 0x19510
movq %r14, %rdi
callq 0x19be0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
cmp eax, 5
jz short loc_6D36F
cmp eax, 7
jz short loc_6D367
cmp eax, 6
jnz short loc_6D382
movsd xmm1, qword ptr [r14+8]
unpcklps xmm1, cs:xmmword_B9B50
subpd xmm1, cs:xmmword_B9B60
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jmp short loc_6D375
loc_6D367:
movsd xmm0, qword ptr [r14+8]
jmp short loc_6D375
loc_6D36F:
cvtsi2sd xmm0, qword ptr [r14+8]
loc_6D375:
movsd qword ptr [rsi], xmm0
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_6D382:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6D406
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6D406
mov r14, rax
mov bpl, 1
loc_6D406:
test bpl, bpl
jz short loc_6D413
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6D413:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
unsigned __int8 *a1,
double *a2)
{
long long result; // rax
__m128d v3; // xmm1
double v4; // xmm0_8
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v6; // [rsp+8h] [rbp-40h] BYREF
_QWORD v7[2]; // [rsp+10h] [rbp-38h] BYREF
result = *a1;
switch ( (_DWORD)result )
{
case 5:
v4 = (double)(int)*((_QWORD *)a1 + 1);
break;
case 7:
v4 = *((double *)a1 + 1);
break;
case 6:
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_B9B50),
(__m128d)xmmword_B9B60);
v4 = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0];
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v7,
(long long)"type must be number, but is ",
&v6);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*a2 = v4;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
CMP EAX,0x5
JZ 0x0016d36f
CMP EAX,0x7
JZ 0x0016d367
CMP EAX,0x6
JNZ 0x0016d382
MOVSD XMM1,qword ptr [R14 + 0x8]
UNPCKLPS XMM1,xmmword ptr [0x001b9b50]
SUBPD XMM1,xmmword ptr [0x001b9b60]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
JMP 0x0016d375
LAB_0016d367:
MOVSD XMM0,qword ptr [R14 + 0x8]
JMP 0x0016d375
LAB_0016d36f:
CVTSI2SD XMM0,qword ptr [R14 + 0x8]
LAB_0016d375:
MOVSD qword ptr [RSI],XMM0
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_0016d382:
MOV EDI,0x20
CALL 0x00119370
MOV RBX,RAX
MOV RDI,R14
CALL 0x0012f7ce
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0016d39f:
LEA RSI,[0x1bafb0]
LEA RDI,[RSP + 0x10]
CALL 0x0014c7ed
MOV BPL,0x1
LAB_0016d3b3:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0014c488
XOR EBP,EBP
LEA RSI,[0x1ecf20]
LEA RDX,[0x12b94e]
MOV RDI,RBX
CALL 0x00119b70
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,double *param_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>
bVar1;
int8 uVar2;
double dVar3;
char *local_40;
detail local_38 [32];
bVar1 = *param_1;
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5) {
dVar3 = (double)*(long *)(param_1 + 8);
}
else if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7) {
dVar3 = *(double *)(param_1 + 8);
}
else {
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)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>
::type_name(param_1);
/* try { // try from 0016d39f to 0016d3af has its CatchHandler @ 0016d400 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 0016d3b3 to 0016d3df has its CatchHandler @ 0016d3e0 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
dVar3 = ((double)CONCAT44(_UNK_001b9b54,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) -
_UNK_001b9b68) +
((double)CONCAT44(_DAT_001b9b50,(int)*(int8 *)(param_1 + 8)) - _DAT_001b9b60);
}
*param_2 = dVar3;
return;
}
| |
32,721 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O2 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0x7dbe2
cmpl $0x7, %eax
je 0x7dbe8
cmpl $0x6, %eax
jne 0x7dc19
movq 0x8(%r14), %rax
jmp 0x7dc0d
movsd 0x8(%r14), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x1e00e(%rip), %xmm0 # 0x9bc10
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x213a0
movq %rax, %rbx
movq %r14, %rdi
callq 0x30c70
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1c3b3(%rip), %rsi # 0x99fee
leaq 0x10(%rsp), %rdi
callq 0x4772a
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x4749e
xorl %ebp, %ebp
leaq 0x5c2ea(%rip), %rsi # 0xd9f50
leaq -0x50461(%rip), %rdx # 0x2d80c
movq %rbx, %rdi
callq 0x21b70
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x21dc8
testb %bpl, %bpl
jne 0x7dc8c
jmp 0x7dc94
movq %rax, %r14
movq %rbx, %rdi
callq 0x21530
movq %r14, %rdi
callq 0x21be0
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
cmp eax, 5
jz short loc_7DBE2
cmp eax, 7
jz short loc_7DBE8
cmp eax, 6
jnz short loc_7DC19
loc_7DBE2:
mov rax, [r14+8]
jmp short loc_7DC0D
loc_7DBE8:
movsd xmm0, qword ptr [r14+8]
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
subsd xmm0, cs:qword_9BC10
cvttsd2si rax, xmm0
and rax, rdx
or rax, rcx
loc_7DC0D:
mov [rsi], rax
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_7DC19:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_7DC8C
jmp short loc_7DC94
mov r14, rax
loc_7DC8C:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_7DC94:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
double *a1,
_QWORD *a2)
{
int v2; // eax
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
const char *v5; // [rsp+8h] [rbp-40h] BYREF
_BYTE v6[56]; // [rsp+10h] [rbp-38h] BYREF
v2 = *(unsigned __int8 *)a1;
if ( v2 != 5 )
{
if ( v2 == 7 )
{
result = (unsigned int)(int)a1[1];
goto LABEL_6;
}
if ( v2 != 6 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v6,
(long long)"type must be number, but is ",
&v5);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
(long long)v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
result = *((_QWORD *)a1 + 1);
LABEL_6:
*a2 = result;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
CMP EAX,0x5
JZ 0x0017dbe2
CMP EAX,0x7
JZ 0x0017dbe8
CMP EAX,0x6
JNZ 0x0017dc19
LAB_0017dbe2:
MOV RAX,qword ptr [R14 + 0x8]
JMP 0x0017dc0d
LAB_0017dbe8:
MOVSD XMM0,qword ptr [R14 + 0x8]
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM0,qword ptr [0x0019bc10]
CVTTSD2SI RAX,XMM0
AND RAX,RDX
OR RAX,RCX
LAB_0017dc0d:
MOV qword ptr [RSI],RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_0017dc19:
PUSH 0x20
POP RDI
CALL 0x001213a0
MOV RBX,RAX
MOV RDI,R14
CALL 0x00130c70
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0017dc34:
LEA RSI,[0x199fee]
LEA RDI,[RSP + 0x10]
CALL 0x0014772a
MOV BPL,0x1
LAB_0017dc48:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0014749e
XOR EBP,EBP
LEA RSI,[0x1d9f50]
LEA RDX,[0x12d80c]
MOV RDI,RBX
CALL 0x00121b70
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,ulong *param_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>
bVar1;
int8 uVar2;
ulong uVar3;
char *local_40;
detail local_38 [32];
bVar1 = *param_1;
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7) {
uVar3 = (ulong)*(double *)(param_1 + 8);
uVar3 = (long)(*(double *)(param_1 + 8) - _DAT_0019bc10) & (long)uVar3 >> 0x3f | uVar3;
goto LAB_0017dc0d;
}
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)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>
::type_name(param_1);
/* try { // try from 0017dc34 to 0017dc44 has its CatchHandler @ 0017dc89 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 0017dc48 to 0017dc74 has its CatchHandler @ 0017dc75 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
uVar3 = *(ulong *)(param_1 + 8);
LAB_0017dc0d:
*param_2 = uVar3;
return;
}
| |
32,722 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0x6acbe
cmpl $0x7, %eax
je 0x6acc4
cmpl $0x6, %eax
jne 0x6acd6
movq 0x8(%r14), %rax
jmp 0x6acca
cvttsd2si 0x8(%r14), %rax
movq %rax, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x19370
movq %rax, %rbx
movq %r14, %rdi
callq 0x2e9dc
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4d2b6(%rip), %rsi # 0xb7fb0
leaq 0x10(%rsp), %rdi
callq 0x4b972
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x4b610
xorl %ebp, %ebp
leaq 0x7f22b(%rip), %rsi # 0xe9f50
leaq -0x400dc(%rip), %rdx # 0x2ac50
movq %rbx, %rdi
callq 0x19b70
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ad52
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x196b0
testb %bpl, %bpl
jne 0x6ad5c
jmp 0x6ad64
movq %rax, %r14
movq %rbx, %rdi
callq 0x19510
movq %r14, %rdi
callq 0x19be0
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
cmp eax, 5
jz short loc_6ACBE
cmp eax, 7
jz short loc_6ACC4
cmp eax, 6
jnz short loc_6ACD6
loc_6ACBE:
mov rax, [r14+8]
jmp short loc_6ACCA
loc_6ACC4:
cvttsd2si rax, qword ptr [r14+8]
loc_6ACCA:
mov [rsi], rax
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_6ACD6:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6AD52
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6AD52:
test bpl, bpl
jnz short loc_6AD5C
jmp short loc_6AD64
mov r14, rax
loc_6AD5C:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6AD64:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
double *a1,
_QWORD *a2)
{
int v2; // eax
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v5; // [rsp+8h] [rbp-40h] BYREF
_QWORD v6[2]; // [rsp+10h] [rbp-38h] BYREF
v2 = *(unsigned __int8 *)a1;
if ( v2 != 5 )
{
if ( v2 == 7 )
{
result = (unsigned int)(int)a1[1];
goto LABEL_6;
}
if ( v2 != 6 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v6,
(long long)"type must be number, but is ",
&v5);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
result = *((_QWORD *)a1 + 1);
LABEL_6:
*a2 = result;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
CMP EAX,0x5
JZ 0x0016acbe
CMP EAX,0x7
JZ 0x0016acc4
CMP EAX,0x6
JNZ 0x0016acd6
LAB_0016acbe:
MOV RAX,qword ptr [R14 + 0x8]
JMP 0x0016acca
LAB_0016acc4:
CVTTSD2SI RAX,qword ptr [R14 + 0x8]
LAB_0016acca:
MOV qword ptr [RSI],RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_0016acd6:
MOV EDI,0x20
CALL 0x00119370
MOV RBX,RAX
MOV RDI,R14
CALL 0x0012e9dc
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0016acf3:
LEA RSI,[0x1b7fb0]
LEA RDI,[RSP + 0x10]
CALL 0x0014b972
MOV BPL,0x1
LAB_0016ad07:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0014b610
XOR EBP,EBP
LEA RSI,[0x1e9f50]
LEA RDX,[0x12ac50]
MOV RDI,RBX
CALL 0x00119b70
|
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *param_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>
bVar1;
long lVar2;
int8 uVar3;
char *local_40;
detail local_38 [32];
bVar1 = *param_1;
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7) {
lVar2 = (long)*(double *)(param_1 + 8);
goto LAB_0016acca;
}
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6) {
uVar3 = __cxa_allocate_exception(0x20);
local_40 = (char *)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>
::type_name(param_1);
/* try { // try from 0016acf3 to 0016ad03 has its CatchHandler @ 0016ad59 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 0016ad07 to 0016ad33 has its CatchHandler @ 0016ad34 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar3,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
lVar2 = *(long *)(param_1 + 8);
LAB_0016acca:
*param_2 = lVar2;
return;
}
| |
32,723 | js_regexp_string_iterator_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_regexp_string_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data;
if (it) {
JS_FreeValueRT(rt, it->iterating_regexp);
JS_FreeValueRT(rt, it->iterated_string);
js_free_rt(rt, it);
}
} | O0 | c | js_regexp_string_iterator_finalizer:
subq $0x28, %rsp
movq %rsi, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x5bf2a
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x23d10
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x23d10
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x21960
addq $0x28, %rsp
retq
nop
| js_regexp_string_iterator_finalizer:
sub rsp, 28h
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_8], rdx
mov [rsp+28h+var_18], rdi
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_20], rax
mov rax, [rsp+28h+var_20]
mov rax, [rax+30h]
mov [rsp+28h+var_28], rax
cmp [rsp+28h+var_28], 0
jz short loc_5BF2A
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_FreeValueRT
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov rsi, [rax+10h]
mov rdx, [rax+18h]
call JS_FreeValueRT
mov rdi, [rsp+28h+var_18]
mov rsi, [rsp+28h+var_28]
call js_free_rt
loc_5BF2A:
add rsp, 28h
retn
| void js_regexp_string_iterator_finalizer(long long a1, long long a2)
{
long long v2; // [rsp+0h] [rbp-28h]
v2 = *(_QWORD *)(a2 + 48);
if ( v2 )
{
JS_FreeValueRT(a1, *(_DWORD **)v2, *(_QWORD *)(v2 + 8));
JS_FreeValueRT(a1, *(_DWORD **)(v2 + 16), *(_QWORD *)(v2 + 24));
js_free_rt(a1, v2);
}
}
| js_regexp_string_iterator_finalizer:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP],0x0
JZ 0x0015bf2a
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00123d10
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x00123d10
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP]
CALL 0x00121960
LAB_0015bf2a:
ADD RSP,0x28
RET
|
void js_regexp_string_iterator_finalizer(int8 param_1,long param_2)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
JS_FreeValueRT(param_1,*puVar1,puVar1[1]);
JS_FreeValueRT(param_1,puVar1[2],puVar1[3]);
js_free_rt(param_1,puVar1);
}
return;
}
| |
32,724 | js_regexp_string_iterator_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_regexp_string_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data;
if (it) {
JS_FreeValueRT(rt, it->iterating_regexp);
JS_FreeValueRT(rt, it->iterated_string);
js_free_rt(rt, it);
}
} | O1 | c | js_regexp_string_iterator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x3b2f4
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x1d8c6
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
callq 0x1d8c6
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_regexp_string_iterator_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_3B2F4
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
call JS_FreeValueRT
mov rsi, [rbx+10h]
mov rdx, [rbx+18h]
mov rdi, r14
call JS_FreeValueRT
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3B2F4:
add rsp, 8
pop rbx
pop r14
retn
| long long js_regexp_string_iterator_finalizer(long long a1, long long a2)
{
long long v2; // rbx
long long v3; // rax
long long ( *v4)(_QWORD, long long); // rcx
long long result; // rax
v2 = *(_QWORD *)(a2 + 48);
if ( v2 )
{
JS_FreeValueRT(a1, *(_DWORD **)v2, *(_QWORD *)(v2 + 8));
JS_FreeValueRT(a1, *(_DWORD **)(v2 + 16), *(_QWORD *)(v2 + 24));
--*(_QWORD *)(a1 + 40);
v3 = (*(long long ( **)(long long))(a1 + 32))(v2);
v4 = *(long long ( **)(_QWORD, long long))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v3 - 8;
return v4(*(_QWORD *)(a1 + 64), v2);
}
return result;
}
| |||
32,725 | js_regexp_string_iterator_finalizer | bluesky950520[P]quickjs/quickjs.c | static void js_regexp_string_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSRegExpStringIteratorData *it = p->u.regexp_string_iterator_data;
if (it) {
JS_FreeValueRT(rt, it->iterating_regexp);
JS_FreeValueRT(rt, it->iterated_string);
js_free_rt(rt, it);
}
} | O2 | c | js_regexp_string_iterator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x34114
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x18031
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
callq 0x18031
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x170cb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_regexp_string_iterator_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_34114
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
call JS_FreeValueRT
mov rsi, [rbx+10h]
mov rdx, [rbx+18h]
mov rdi, r14
call JS_FreeValueRT
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp js_free_rt
loc_34114:
add rsp, 8
pop rbx
pop r14
retn
| long long js_regexp_string_iterator_finalizer(long long a1, long long a2)
{
long long v2; // rbx
long long result; // rax
v2 = *(_QWORD *)(a2 + 48);
if ( v2 )
{
JS_FreeValueRT(a1, *(unsigned int **)v2, *(_QWORD *)(v2 + 8));
JS_FreeValueRT(a1, *(unsigned int **)(v2 + 16), *(_QWORD *)(v2 + 24));
return js_free_rt(a1, v2);
}
return result;
}
| js_regexp_string_iterator_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x00134114
MOV R14,RDI
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
CALL 0x00118031
MOV RSI,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RBX + 0x18]
MOV RDI,R14
CALL 0x00118031
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001170cb
LAB_00134114:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_regexp_string_iterator_finalizer(int8 param_1,long param_2)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
JS_FreeValueRT(param_1,*puVar1,puVar1[1]);
JS_FreeValueRT(param_1,puVar1[2],puVar1[3]);
js_free_rt(param_1,puVar1);
return;
}
return;
}
| |
32,726 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O1 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1b3f0
movq %rax, %r12
movq (%r14), %rdi
callq 0x1b3f0
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1bdb0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c120
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1c120
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xac927
movq (%r13), %rsi
incq %rsi
callq 0x1b900
movq %r14, %rdi
callq 0x1bfd0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_AC927
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AC927:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[22],char_const*>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R13,[RDI + 0x10]
MOV qword ptr [RDI],R13
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011b3f0
MOV R12,RAX
MOV RDI,qword ptr [R14]
CALL 0x0011b3f0
ADD R12,RAX
LAB_001ac8e2:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0011bdb0
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011c120
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x0011c120
LAB_001ac903:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [22], char const*>(char const (&) [22], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(*param_2);
/* try { // try from 001ac8e2 to 001ac902 has its CatchHandler @ 001ac910 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this);
return this;
}
| |
32,727 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O2 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x4378d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x23dc0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x7de14
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x24218
movq %r14, %rdi
callq 0x23fd0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA22_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3);
std::string::reserve(a1, v4);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA22_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_(
a1,
a2,
a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[22],char_const*>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
MOV RSI,RDX
CALL 0x0014378d
LAB_0017dd3e:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00123dc0
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0017de14
LAB_0017dd57:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [22], char const*>(char const (&) [22], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
concat_length<char_const*>(param_1,param_2);
/* try { // try from 0017dd3e to 0017dd56 has its CatchHandler @ 0017dd60 */
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA22_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
(this,param_1,param_2);
return this;
}
| |
32,728 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&) | monkey531[P]llama/common/json.hpp | inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const*&&, char const (&) [15], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1a3f0
movq %rax, %r12
movq (%r14), %rdi
callq 0x1a3f0
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1adb0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b120
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1b120
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xab8bf
movq (%r13), %rsi
incq %rsi
callq 0x1a900
movq %r14, %rdi
callq 0x1afd0
| _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_AB8BF
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AB8BF:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
| concat<std::__cxx11::string,char_const(&)[51],char_const*>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R13,[RDI + 0x10]
MOV qword ptr [RDI],R13
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
CALL 0x0011a3f0
MOV R12,RAX
MOV RDI,qword ptr [R14]
CALL 0x0011a3f0
ADD R12,RAX
LAB_001ab87a:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0011adb0
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011b120
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x0011b120
LAB_001ab89b:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [51], char const*>(char const (&) [51], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[51],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(*param_2);
/* try { // try from 001ab87a to 001ab89a has its CatchHandler @ 001ab8a8 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this);
return this;
}
| |
32,729 | mi_rec_check | eloqsql/storage/myisam/mi_dynrec.c | my_bool _mi_rec_check(MI_INFO *info,const uchar *record, uchar *rec_buff,
ulong packed_length, my_bool with_checksum)
{
uint length,new_length,flag,bit,i;
uchar *pos,*end,*packpos,*to;
enum en_fieldtype type;
reg3 MI_COLUMNDEF *rec;
DBUG_ENTER("_mi_rec_check");
packpos=rec_buff; to= rec_buff+info->s->base.pack_bits;
rec=info->s->rec;
flag= *packpos; bit=1;
for (i=info->s->base.fields ; i-- > 0; record+= length, rec++)
{
length=(uint) rec->length;
if ((type = (enum en_fieldtype) rec->type) != FIELD_NORMAL)
{
if (type == FIELD_BLOB)
{
uint blob_length=
_mi_calc_blob_length(length-portable_sizeof_char_ptr,record);
if (!blob_length && !(flag & bit))
goto err;
if (blob_length)
to+=length - portable_sizeof_char_ptr+ blob_length;
}
else if (type == FIELD_SKIP_ZERO)
{
if (memcmp((uchar*) record,zero_string,length) == 0)
{
if (!(flag & bit))
goto err;
}
else
to+=length;
}
else if (type == FIELD_SKIP_ENDSPACE ||
type == FIELD_SKIP_PRESPACE)
{
pos= (uchar*) record; end= (uchar*) record + length;
if (type == FIELD_SKIP_ENDSPACE)
{ /* Pack trailing spaces */
while (end > record && *(end-1) == ' ')
end--;
}
else
{ /* Pack pre-spaces */
while (pos < end && *pos == ' ')
pos++;
}
new_length=(uint) (end-pos);
if (new_length + 1 + MY_TEST(rec->length > 255 && new_length > 127)
< length)
{
if (!(flag & bit))
goto err;
if (rec->length > 255 && new_length > 127)
{
/* purecov: begin inspected */
if (to[0] != (uchar) ((new_length & 127) + 128) ||
to[1] != (uchar) (new_length >> 7))
goto err;
to+=2;
/* purecov: end */
}
else if (*to++ != (uchar) new_length)
goto err;
to+=new_length;
}
else
to+=length;
}
else if (type == FIELD_VARCHAR)
{
uint pack_length= HA_VARCHAR_PACKLENGTH(rec->length -1);
uint tmp_length;
if (pack_length == 1)
{
tmp_length= (uint) *(uchar*) record;
to+= 1+ tmp_length;
continue;
}
else
{
tmp_length= uint2korr(record);
to+= get_pack_length(tmp_length)+tmp_length;
}
continue;
}
else
{
to+=length;
continue; /* Normal field */
}
if ((bit= bit << 1) >= 256)
{
flag= *++packpos;
bit=1;
}
}
else
to+= length;
}
if (packed_length != (uint) (to - rec_buff) + MY_TEST(info->s->calc_checksum) ||
(bit != 1 && (flag & ~(bit - 1))))
goto err;
if (with_checksum && ((uchar) info->checksum != (uchar) *to))
{
DBUG_PRINT("error",("wrong checksum for row"));
goto err;
}
DBUG_RETURN(0);
err:
DBUG_RETURN(1);
} | O3 | c | mi_rec_check:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, -0x34(%rbp)
movq %rcx, -0x60(%rbp)
movq %rdi, -0x50(%rbp)
movq (%rdi), %rax
movl 0x168(%rax), %r14d
movl 0x18c(%rax), %r12d
addq %rdx, %r12
movzbl (%rdx), %edi
testl %r14d, %r14d
movq %rax, -0x58(%rbp)
je 0x78c04
movq %rsi, %r13
movq 0x230(%rax), %rbx
movl $0x1, %r9d
movq %rdx, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movzwl 0x4(%rbx), %r15d
movl (%rbx), %ecx
testl %ecx, %ecx
je 0x78aa9
cmpl $0x3, %ecx
je 0x78a2e
cmpl $0x4, %ecx
jne 0x78a5e
leal -0x9(%r15), %eax
cmpl $0x3, %eax
ja 0x78b00
leaq 0x68c55(%rip), %rcx # 0xe1670
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%r13), %eax
jmp 0x78b02
movl %r9d, -0x30(%rbp)
movl %edi, -0x2c(%rbp)
movq %r13, %rdi
leaq 0xb86f41(%rip), %rsi # 0xbff980
movq %r15, %rdx
callq 0x29570
testl %eax, %eax
je 0x78ab1
addq %r15, %r12
movl -0x2c(%rbp), %edi
movq -0x40(%rbp), %rdx
movl -0x30(%rbp), %r9d
jmp 0x78bce
cmpl $0x2, %ecx
ja 0x78a8a
leaq (%r15,%r13), %rax
cmpl $0x1, %ecx
jne 0x78aca
movq %rax, %r8
cmpq %r13, %rax
jbe 0x78a7f
leaq -0x1(%r8), %rax
cmpb $0x20, -0x1(%r8)
je 0x78a6c
movq %r13, %rcx
movq %r8, %rax
jmp 0x78b4f
cmpl $0x8, %ecx
jne 0x78aa9
cmpl $0x100, %r15d # imm = 0x100
ja 0x78b2d
movzbl (%r13), %eax
incq %rax
jmp 0x78b44
addq %r15, %r12
jmp 0x78bef
movl -0x2c(%rbp), %edi
movl -0x30(%rbp), %r9d
testl %r9d, %edi
movq -0x40(%rbp), %rdx
jne 0x78bce
jmp 0x78c4c
movq %r13, %rcx
testl %r15d, %r15d
je 0x78b4c
cmpb $0x20, (%rcx)
jne 0x78b4f
incq %rcx
cmpq %rax, %rcx
jb 0x78ad2
jmp 0x78b4f
movzwl (%r13), %ecx
movzbl 0x2(%r13), %eax
shll $0x10, %eax
orq %rcx, %rax
jmp 0x78b02
movl (%r13), %eax
jmp 0x78b02
movzwl (%r13), %eax
jmp 0x78b02
xorl %eax, %eax
movl %r15d, %ecx
addl $-0x8, %ecx
addl %eax, %ecx
testq %rax, %rax
cmoveq %rax, %rcx
addq %rcx, %r12
testq %rax, %rax
jne 0x78bce
movl %edi, %eax
andl %r9d, %eax
jne 0x78bce
jmp 0x78c4c
movzwl (%r13), %eax
xorl %ecx, %ecx
cmpq $0xff, %rax
setae %cl
leaq (%rax,%rcx,2), %rax
incq %rax
addq %rax, %r12
jmp 0x78bef
movq %r13, %rcx
subq %rcx, %rax
cmpl $0x100, %r15d # imm = 0x100
setae %r8b
cmpl $0x7f, %eax
seta %cl
andb %r8b, %cl
movzbl %cl, %r8d
addl %eax, %r8d
incl %r8d
cmpl %r15d, %r8d
jae 0x78bb3
testl %r9d, %edi
je 0x78c4c
movzbl (%r12), %r8d
testb %cl, %cl
je 0x78bb8
movl %eax, %ecx
orl $0x80, %ecx
movzbl %cl, %ecx
cmpl %r8d, %ecx
jne 0x78c4c
movl %eax, %r8d
shrl $0x7, %r8d
movl $0x2, %ecx
cmpb %r8b, 0x1(%r12)
je 0x78bc6
jmp 0x78c4c
addq %r15, %r12
jmp 0x78bce
movl $0x1, %ecx
cmpb %al, %r8b
jne 0x78c4c
addq %rcx, %r12
movl %eax, %eax
addq %rax, %r12
addl %r9d, %r9d
cmpl $0x100, %r9d # imm = 0x100
jb 0x78bef
movq -0x48(%rbp), %rax
movzbl 0x1(%rax), %edi
incq %rax
movq %rax, -0x48(%rbp)
movl $0x1, %r9d
decl %r14d
addq %r15, %r13
addq $0x30, %rbx
testl %r14d, %r14d
jne 0x789ee
jmp 0x78c0a
movl $0x1, %r9d
movl %r12d, %eax
subl %edx, %eax
movq -0x58(%rbp), %rcx
cmpq $0x1, 0x2c8(%rcx)
sbbl $-0x1, %eax
cmpq -0x60(%rbp), %rax
jne 0x78c4c
cmpl $0x1, %r9d
je 0x78c32
negl %r9d
testl %r9d, %edi
jne 0x78c4c
cmpb $0x0, -0x34(%rbp)
je 0x78c48
movb (%r12), %al
movq -0x50(%rbp), %rcx
cmpb 0x1a8(%rcx), %al
jne 0x78c4c
xorl %eax, %eax
jmp 0x78c4e
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mi_rec_check:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_34], r8d
mov [rbp+var_60], rcx
mov [rbp+var_50], rdi
mov rax, [rdi]
mov r14d, [rax+168h]
mov r12d, [rax+18Ch]
add r12, rdx
movzx edi, byte ptr [rdx]
test r14d, r14d
mov [rbp+var_58], rax
jz loc_78C04
mov r13, rsi
mov rbx, [rax+230h]
mov r9d, 1
mov [rbp+var_48], rdx
mov [rbp+var_40], rdx
loc_789EE:
movzx r15d, word ptr [rbx+4]
mov ecx, [rbx]
test ecx, ecx
jz loc_78AA9
cmp ecx, 3
jz short loc_78A2E
cmp ecx, 4
jnz short loc_78A5E
lea eax, [r15-9]; switch 4 cases
cmp eax, 3
ja def_78A22; jumptable 0000000000078A22 default case
lea rcx, jpt_78A22
movsxd rax, ds:(jpt_78A22 - 0E1670h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_78A24:
movzx eax, byte ptr [r13+0]; jumptable 0000000000078A22 case 9
jmp loc_78B02
loc_78A2E:
mov [rbp+var_30], r9d
mov [rbp+var_2C], edi
mov rdi, r13
lea rsi, zero_string
mov rdx, r15
call _bcmp
test eax, eax
jz short loc_78AB1
add r12, r15
mov edi, [rbp+var_2C]
mov rdx, [rbp+var_40]
mov r9d, [rbp+var_30]
jmp loc_78BCE
loc_78A5E:
cmp ecx, 2
ja short loc_78A8A
lea rax, [r15+r13]
cmp ecx, 1
jnz short loc_78ACA
loc_78A6C:
mov r8, rax
cmp rax, r13
jbe short loc_78A7F
lea rax, [r8-1]
cmp byte ptr [r8-1], 20h ; ' '
jz short loc_78A6C
loc_78A7F:
mov rcx, r13
mov rax, r8
jmp loc_78B4F
loc_78A8A:
cmp ecx, 8
jnz short loc_78AA9
cmp r15d, 100h
ja loc_78B2D
movzx eax, byte ptr [r13+0]
inc rax
jmp loc_78B44
loc_78AA9:
add r12, r15
jmp loc_78BEF
loc_78AB1:
mov edi, [rbp+var_2C]
mov r9d, [rbp+var_30]
test edi, r9d
mov rdx, [rbp+var_40]
jnz loc_78BCE
jmp loc_78C4C
loc_78ACA:
mov rcx, r13
test r15d, r15d
jz short loc_78B4C
loc_78AD2:
cmp byte ptr [rcx], 20h ; ' '
jnz short loc_78B4F
inc rcx
cmp rcx, rax
jb short loc_78AD2
jmp short loc_78B4F
loc_78AE1:
movzx ecx, word ptr [r13+0]; jumptable 0000000000078A22 case 11
movzx eax, byte ptr [r13+2]
shl eax, 10h
or rax, rcx
jmp short loc_78B02
loc_78AF3:
mov eax, [r13+0]; jumptable 0000000000078A22 case 12
jmp short loc_78B02
loc_78AF9:
movzx eax, word ptr [r13+0]; jumptable 0000000000078A22 case 10
jmp short loc_78B02
def_78A22:
xor eax, eax; jumptable 0000000000078A22 default case
loc_78B02:
mov ecx, r15d
add ecx, 0FFFFFFF8h
add ecx, eax
test rax, rax
cmovz rcx, rax
add r12, rcx
test rax, rax
jnz loc_78BCE
mov eax, edi
and eax, r9d
jnz loc_78BCE
jmp loc_78C4C
loc_78B2D:
movzx eax, word ptr [r13+0]
xor ecx, ecx
cmp rax, 0FFh
setnb cl
lea rax, [rax+rcx*2]
inc rax
loc_78B44:
add r12, rax
jmp loc_78BEF
loc_78B4C:
mov rcx, r13
loc_78B4F:
sub rax, rcx
cmp r15d, 100h
setnb r8b
cmp eax, 7Fh
setnbe cl
and cl, r8b
movzx r8d, cl
add r8d, eax
inc r8d
cmp r8d, r15d
jnb short loc_78BB3
test edi, r9d
jz loc_78C4C
movzx r8d, byte ptr [r12]
test cl, cl
jz short loc_78BB8
mov ecx, eax
or ecx, 80h
movzx ecx, cl
cmp ecx, r8d
jnz loc_78C4C
mov r8d, eax
shr r8d, 7
mov ecx, 2
cmp [r12+1], r8b
jz short loc_78BC6
jmp loc_78C4C
loc_78BB3:
add r12, r15
jmp short loc_78BCE
loc_78BB8:
mov ecx, 1
cmp r8b, al
jnz loc_78C4C
loc_78BC6:
add r12, rcx
mov eax, eax
add r12, rax
loc_78BCE:
add r9d, r9d
cmp r9d, 100h
jb short loc_78BEF
mov rax, [rbp+var_48]
movzx edi, byte ptr [rax+1]
inc rax
mov [rbp+var_48], rax
mov r9d, 1
loc_78BEF:
dec r14d
add r13, r15
add rbx, 30h ; '0'
test r14d, r14d
jnz loc_789EE
jmp short loc_78C0A
loc_78C04:
mov r9d, 1
loc_78C0A:
mov eax, r12d
sub eax, edx
mov rcx, [rbp+var_58]
cmp qword ptr [rcx+2C8h], 1
sbb eax, 0FFFFFFFFh
cmp rax, [rbp+var_60]
jnz short loc_78C4C
cmp r9d, 1
jz short loc_78C32
neg r9d
test edi, r9d
jnz short loc_78C4C
loc_78C32:
cmp byte ptr [rbp+var_34], 0
jz short loc_78C48
mov al, [r12]
mov rcx, [rbp+var_50]
cmp al, [rcx+1A8h]
jnz short loc_78C4C
loc_78C48:
xor eax, eax
jmp short loc_78C4E
loc_78C4C:
mov al, 1
loc_78C4E:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool mi_rec_check(_BYTE *a1, unsigned __int8 *a2, unsigned __int8 *a3, long long a4, char a5)
{
long long v5; // rax
int v6; // r14d
unsigned __int8 *v7; // r12
int v8; // edi
long long v10; // rbx
unsigned int v11; // r9d
long long v12; // r15
unsigned int v13; // ecx
unsigned long long v14; // rax
unsigned __int8 *v15; // rax
unsigned __int8 *v16; // r8
unsigned __int8 *v17; // rcx
long long v18; // rax
long long v19; // rcx
unsigned int v20; // eax
bool v21; // cl
int v22; // r8d
long long v23; // rcx
long long v26; // [rsp+8h] [rbp-58h]
unsigned __int8 *v28; // [rsp+18h] [rbp-48h]
int v29; // [rsp+20h] [rbp-40h]
unsigned int v31; // [rsp+30h] [rbp-30h]
v5 = *(_QWORD *)a1;
v6 = *(_DWORD *)(*(_QWORD *)a1 + 360LL);
v7 = &a3[*(unsigned int *)(*(_QWORD *)a1 + 396LL)];
v8 = *a3;
v26 = v5;
if ( v6 )
{
v10 = *(_QWORD *)(v5 + 560);
v11 = 1;
v28 = a3;
v29 = (int)a3;
while ( 1 )
{
v12 = *(unsigned __int16 *)(v10 + 4);
v13 = *(_DWORD *)v10;
if ( !*(_DWORD *)v10 )
goto LABEL_18;
if ( v13 == 3 )
{
v31 = v11;
if ( (unsigned int)bcmp(a2, &zero_string, v12) )
{
v7 += v12;
LODWORD(a3) = v29;
v11 = v31;
}
else
{
v11 = v31;
LODWORD(a3) = v29;
if ( (v31 & v8) == 0 )
return 1;
}
LABEL_46:
v11 *= 2;
if ( v11 >= 0x100 )
{
v8 = *++v28;
v11 = 1;
}
goto LABEL_48;
}
if ( v13 == 4 )
{
switch ( *(_WORD *)(v10 + 4) )
{
case 9:
v14 = *a2;
break;
case 0xA:
v14 = *(unsigned __int16 *)a2;
break;
case 0xB:
v14 = *(unsigned __int16 *)a2 | (unsigned long long)(a2[2] << 16);
break;
case 0xC:
v14 = *(unsigned int *)a2;
break;
default:
v14 = 0LL;
break;
}
v19 = (unsigned int)(v14 + v12 - 8);
if ( !v14 )
v19 = 0LL;
v7 += v19;
if ( !v14 && (v11 & v8) == 0 )
return 1;
goto LABEL_46;
}
if ( v13 <= 2 )
{
v15 = &a2[v12];
if ( v13 == 1 )
{
do
{
v16 = v15;
if ( v15 <= a2 )
break;
--v15;
}
while ( *(v16 - 1) == 32 );
LODWORD(v17) = (_DWORD)a2;
LODWORD(v15) = (_DWORD)v16;
}
else
{
v17 = a2;
if ( *(_WORD *)(v10 + 4) )
{
do
{
if ( *v17 != 32 )
break;
++v17;
}
while ( v17 < v15 );
}
else
{
LODWORD(v17) = (_DWORD)a2;
}
}
v20 = (_DWORD)v15 - (_DWORD)v17;
v21 = (unsigned int)v12 >= 0x100 && v20 > 0x7F;
if ( v20 + v21 + 1 >= (unsigned int)v12 )
{
v7 += v12;
}
else
{
if ( (v11 & v8) == 0 )
return 1;
v22 = *v7;
if ( v21 )
{
if ( ((unsigned __int8)v20 | 0x80) != v22 )
return 1;
v23 = 2LL;
if ( v7[1] != (unsigned __int8)(v20 >> 7) )
return 1;
}
else
{
v23 = 1LL;
if ( (_BYTE)v22 != (_BYTE)v20 )
return 1;
}
v7 += v20 + v23;
}
goto LABEL_46;
}
if ( v13 == 8 )
{
if ( (unsigned int)v12 > 0x100 )
v18 = *(unsigned __int16 *)a2 + 2LL * (*(unsigned __int16 *)a2 >= 0xFFuLL);
else
v18 = *a2;
v7 += v18 + 1;
}
else
{
LABEL_18:
v7 += v12;
}
LABEL_48:
--v6;
a2 += v12;
v10 += 48LL;
if ( !v6 )
return (_DWORD)v7 - (_DWORD)a3 - ((*(_QWORD *)(v26 + 712) == 0LL) - 1) != a4
|| v11 != 1 && (-v11 & v8) != 0
|| a5 && *v7 != a1[424];
}
}
v11 = 1;
return (_DWORD)v7 - (_DWORD)a3 - ((*(_QWORD *)(v26 + 712) == 0LL) - 1) != a4
|| v11 != 1 && (-v11 & v8) != 0
|| a5 && *v7 != a1[424];
}
| _mi_rec_check:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV dword ptr [RBP + -0x34],R8D
MOV qword ptr [RBP + -0x60],RCX
MOV qword ptr [RBP + -0x50],RDI
MOV RAX,qword ptr [RDI]
MOV R14D,dword ptr [RAX + 0x168]
MOV R12D,dword ptr [RAX + 0x18c]
ADD R12,RDX
MOVZX EDI,byte ptr [RDX]
TEST R14D,R14D
MOV qword ptr [RBP + -0x58],RAX
JZ 0x00178c04
MOV R13,RSI
MOV RBX,qword ptr [RAX + 0x230]
MOV R9D,0x1
MOV qword ptr [RBP + -0x48],RDX
MOV qword ptr [RBP + -0x40],RDX
LAB_001789ee:
MOVZX R15D,word ptr [RBX + 0x4]
MOV ECX,dword ptr [RBX]
TEST ECX,ECX
JZ 0x00178aa9
CMP ECX,0x3
JZ 0x00178a2e
CMP ECX,0x4
JNZ 0x00178a5e
LEA EAX,[R15 + -0x9]
CMP EAX,0x3
JA 0x00178b00
LEA RCX,[0x1e1670]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_9:
MOVZX EAX,byte ptr [R13]
JMP 0x00178b02
LAB_00178a2e:
MOV dword ptr [RBP + -0x30],R9D
MOV dword ptr [RBP + -0x2c],EDI
MOV RDI,R13
LEA RSI,[0xcff980]
MOV RDX,R15
CALL 0x00129570
TEST EAX,EAX
JZ 0x00178ab1
ADD R12,R15
MOV EDI,dword ptr [RBP + -0x2c]
MOV RDX,qword ptr [RBP + -0x40]
MOV R9D,dword ptr [RBP + -0x30]
JMP 0x00178bce
LAB_00178a5e:
CMP ECX,0x2
JA 0x00178a8a
LEA RAX,[R15 + R13*0x1]
CMP ECX,0x1
JNZ 0x00178aca
LAB_00178a6c:
MOV R8,RAX
CMP RAX,R13
JBE 0x00178a7f
LEA RAX,[R8 + -0x1]
CMP byte ptr [R8 + -0x1],0x20
JZ 0x00178a6c
LAB_00178a7f:
MOV RCX,R13
MOV RAX,R8
JMP 0x00178b4f
LAB_00178a8a:
CMP ECX,0x8
JNZ 0x00178aa9
CMP R15D,0x100
JA 0x00178b2d
MOVZX EAX,byte ptr [R13]
INC RAX
JMP 0x00178b44
LAB_00178aa9:
ADD R12,R15
JMP 0x00178bef
LAB_00178ab1:
MOV EDI,dword ptr [RBP + -0x2c]
MOV R9D,dword ptr [RBP + -0x30]
TEST EDI,R9D
MOV RDX,qword ptr [RBP + -0x40]
JNZ 0x00178bce
JMP 0x00178c4c
LAB_00178aca:
MOV RCX,R13
TEST R15D,R15D
JZ 0x00178b4c
LAB_00178ad2:
CMP byte ptr [RCX],0x20
JNZ 0x00178b4f
INC RCX
CMP RCX,RAX
JC 0x00178ad2
JMP 0x00178b4f
caseD_b:
MOVZX ECX,word ptr [R13]
MOVZX EAX,byte ptr [R13 + 0x2]
SHL EAX,0x10
OR RAX,RCX
JMP 0x00178b02
caseD_c:
MOV EAX,dword ptr [R13]
JMP 0x00178b02
caseD_a:
MOVZX EAX,word ptr [R13]
JMP 0x00178b02
default:
XOR EAX,EAX
LAB_00178b02:
MOV ECX,R15D
ADD ECX,-0x8
ADD ECX,EAX
TEST RAX,RAX
CMOVZ RCX,RAX
ADD R12,RCX
TEST RAX,RAX
JNZ 0x00178bce
MOV EAX,EDI
AND EAX,R9D
JNZ 0x00178bce
JMP 0x00178c4c
LAB_00178b2d:
MOVZX EAX,word ptr [R13]
XOR ECX,ECX
CMP RAX,0xff
SETNC CL
LEA RAX,[RAX + RCX*0x2]
INC RAX
LAB_00178b44:
ADD R12,RAX
JMP 0x00178bef
LAB_00178b4c:
MOV RCX,R13
LAB_00178b4f:
SUB RAX,RCX
CMP R15D,0x100
SETNC R8B
CMP EAX,0x7f
SETA CL
AND CL,R8B
MOVZX R8D,CL
ADD R8D,EAX
INC R8D
CMP R8D,R15D
JNC 0x00178bb3
TEST EDI,R9D
JZ 0x00178c4c
MOVZX R8D,byte ptr [R12]
TEST CL,CL
JZ 0x00178bb8
MOV ECX,EAX
OR ECX,0x80
MOVZX ECX,CL
CMP ECX,R8D
JNZ 0x00178c4c
MOV R8D,EAX
SHR R8D,0x7
MOV ECX,0x2
CMP byte ptr [R12 + 0x1],R8B
JZ 0x00178bc6
JMP 0x00178c4c
LAB_00178bb3:
ADD R12,R15
JMP 0x00178bce
LAB_00178bb8:
MOV ECX,0x1
CMP R8B,AL
JNZ 0x00178c4c
LAB_00178bc6:
ADD R12,RCX
MOV EAX,EAX
ADD R12,RAX
LAB_00178bce:
ADD R9D,R9D
CMP R9D,0x100
JC 0x00178bef
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EDI,byte ptr [RAX + 0x1]
INC RAX
MOV qword ptr [RBP + -0x48],RAX
MOV R9D,0x1
LAB_00178bef:
DEC R14D
ADD R13,R15
ADD RBX,0x30
TEST R14D,R14D
JNZ 0x001789ee
JMP 0x00178c0a
LAB_00178c04:
MOV R9D,0x1
LAB_00178c0a:
MOV EAX,R12D
SUB EAX,EDX
MOV RCX,qword ptr [RBP + -0x58]
CMP qword ptr [RCX + 0x2c8],0x1
SBB EAX,-0x1
CMP RAX,qword ptr [RBP + -0x60]
JNZ 0x00178c4c
CMP R9D,0x1
JZ 0x00178c32
NEG R9D
TEST EDI,R9D
JNZ 0x00178c4c
LAB_00178c32:
CMP byte ptr [RBP + -0x34],0x0
JZ 0x00178c48
MOV AL,byte ptr [R12]
MOV RCX,qword ptr [RBP + -0x50]
CMP AL,byte ptr [RCX + 0x1a8]
JNZ 0x00178c4c
LAB_00178c48:
XOR EAX,EAX
JMP 0x00178c4e
LAB_00178c4c:
MOV AL,0x1
LAB_00178c4e:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 _mi_rec_check(long *param_1,uint *param_2,byte *param_3,ulong param_4,char param_5)
{
ushort uVar1;
long lVar2;
uint *puVar3;
int iVar4;
uint uVar5;
int4 extraout_var;
ulong uVar6;
int8 uVar8;
uint *puVar9;
long lVar10;
uint *puVar11;
uint uVar12;
uint uVar13;
byte *pbVar14;
int iVar15;
ulong __n;
byte *local_50;
uint *puVar7;
lVar2 = *param_1;
iVar15 = *(int *)(lVar2 + 0x168);
pbVar14 = param_3 + *(uint *)(lVar2 + 0x18c);
uVar12 = (uint)*param_3;
if (iVar15 == 0) {
uVar13 = 1;
}
else {
puVar11 = *(uint **)(lVar2 + 0x230);
uVar13 = 1;
local_50 = param_3;
do {
uVar1 = (ushort)puVar11[1];
__n = (ulong)uVar1;
uVar5 = *puVar11;
if (uVar5 == 0) {
LAB_00178aa9:
pbVar14 = pbVar14 + __n;
}
else {
if (uVar5 == 3) {
iVar4 = bcmp(param_2,zero_string,__n);
uVar6 = CONCAT44(extraout_var,iVar4);
if (iVar4 == 0) {
joined_r0x00178abf:
if ((uVar12 & uVar13) == 0) goto LAB_00178c4c;
}
else {
pbVar14 = pbVar14 + __n;
}
}
else if (uVar5 == 4) {
switch(uVar1) {
case 9:
uVar5 = (uint)(byte)*param_2;
break;
case 10:
uVar5 = (uint)(ushort)*param_2;
break;
case 0xb:
uVar5 = (uint)(uint3)*param_2;
break;
case 0xc:
uVar5 = *param_2;
break;
default:
uVar5 = 0;
}
uVar6 = (ulong)((uVar1 - 8) + uVar5);
if (uVar5 == 0) {
uVar6 = 0;
}
pbVar14 = pbVar14 + uVar6;
if (uVar5 == 0) {
uVar6 = 0;
goto joined_r0x00178abf;
}
}
else {
if (2 < uVar5) {
if (uVar5 != 8) goto LAB_00178aa9;
if (uVar1 < 0x101) {
uVar6 = (ulong)(byte)*param_2;
}
else {
uVar6 = (ulong)(ushort)*param_2 + (ulong)(0xfe < (ulong)(ushort)*param_2) * 2;
}
pbVar14 = pbVar14 + uVar6 + 1;
goto LAB_00178bef;
}
puVar7 = (uint *)(__n + (long)param_2);
puVar3 = puVar7;
puVar9 = param_2;
if (uVar5 == 1) {
do {
puVar7 = puVar3;
if (puVar7 <= param_2) break;
puVar3 = (uint *)((long)puVar7 + -1);
} while (*(byte *)((long)puVar7 + -1) == 0x20);
}
else if (uVar1 != 0) {
do {
if ((byte)*puVar9 != 0x20) break;
puVar9 = (uint *)((long)puVar9 + 1);
} while (puVar9 < puVar7);
}
uVar6 = (long)puVar7 - (long)puVar9;
uVar5 = (uint)uVar6;
if ((0x7f < uVar5 && 0xff < uVar1) + uVar5 + 1 < (uint)uVar1) {
if ((uVar12 & uVar13) == 0) goto LAB_00178c4c;
if (0x7f < uVar5 && 0xff < uVar1) {
if (((uVar5 & 0xff | 0x80) != (uint)*pbVar14) ||
(lVar10 = 2, pbVar14[1] != (byte)(uVar6 >> 7))) goto LAB_00178c4c;
}
else {
lVar10 = 1;
if (*pbVar14 != (byte)uVar6) goto LAB_00178c4c;
}
pbVar14 = pbVar14 + (uVar6 & 0xffffffff) + lVar10;
}
else {
pbVar14 = pbVar14 + __n;
}
}
uVar13 = uVar13 * 2;
if (0xff < uVar13) {
uVar12 = (uint)local_50[1];
local_50 = local_50 + 1;
uVar13 = 1;
}
}
LAB_00178bef:
iVar15 = iVar15 + -1;
param_2 = (uint *)((long)param_2 + __n);
puVar11 = puVar11 + 0xc;
} while (iVar15 != 0);
}
uVar5 = (((int)pbVar14 - (int)param_3) + 1) - (uint)(*(long *)(lVar2 + 0x2c8) == 0);
uVar6 = (ulong)uVar5;
if (((uVar6 == param_4) && ((uVar13 == 1 || ((uVar12 & -uVar13) == 0)))) &&
((param_5 == '\0' ||
(uVar6 = (ulong)CONCAT31((int3)(uVar5 >> 8),*pbVar14), *pbVar14 == *(byte *)(param_1 + 0x35)))
)) {
uVar8 = 0;
}
else {
LAB_00178c4c:
uVar8 = CONCAT71((int7)(uVar6 >> 8),1);
}
return uVar8;
}
| |
32,730 | plan | eloqsql/unittest/mytap/tap.c | void
plan(int count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
start_time= start_timer();
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
{
fprintf(tapout, "1..%d\n", count);
fflush(tapout);
}
break;
}
} | O0 | c | plan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq 0x845d8(%rip), %rdi # 0xb099a
callq 0x26410
movq %rax, -0x10(%rbp)
callq 0x2c4b0
movq %rax, 0x3a1ef1(%rip) # 0x3ce2c8
cmpq $0x0, -0x10(%rbp)
je 0x2c3f4
movq -0x10(%rbp), %rdi
leaq 0x89d01(%rip), %rsi # 0xb60ea
callq 0x26470
movl %eax, 0x1e9c1c(%rip) # 0x216010
movq 0x1e9bc5(%rip), %rax # 0x215fc0
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x26040
movq $0x0, -0x18(%rbp)
cmpq $0xb, -0x18(%rbp)
jae 0x2c45b
movq -0x18(%rbp), %rcx
leaq 0x1e9bf7(%rip), %rax # 0x216020
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edi
movq -0x18(%rbp), %rcx
leaq 0x1e9be3(%rip), %rax # 0x216020
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x263d0
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x2c417
movl -0x4(%rbp), %eax
movl %eax, 0x3a1dd4(%rip) # 0x3ce238
movl -0x4(%rbp), %eax
testl %eax, %eax
jne 0x2c46f
jmp 0x2c46d
jmp 0x2c4a1
cmpl $0x0, -0x4(%rbp)
jle 0x2c49f
movq 0x1e9b44(%rip), %rax # 0x215fc0
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x8451e(%rip), %rsi # 0xb09a7
movb $0x0, %al
callq 0x26490
movq 0x1e9b29(%rip), %rax # 0x215fc0
movq (%rax), %rdi
callq 0x263b0
jmp 0x2c4a1
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| plan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov [rbp+var_10], rax
call start_timer
mov cs:start_time, rax
cmp [rbp+var_10], 0
jz short loc_2C3F4
mov rdi, [rbp+var_10]
lea rsi, aUndoRecordTooB+10h; "big"
call _strcmp
mov cs:skip_big_tests, eax
loc_2C3F4:
mov rax, cs:stdout_ptr
mov rdi, [rax]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call _setvbuf
mov [rbp+var_18], 0
loc_2C417:
cmp [rbp+var_18], 0Bh
jnb short loc_2C45B
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov edi, [rax]
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov rsi, [rax+8]
call _signal
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_2C417
loc_2C45B:
mov eax, [rbp+var_4]
mov cs:g_test, eax
mov eax, [rbp+var_4]
test eax, eax
jnz short loc_2C46F
jmp short $+2
loc_2C46D:
jmp short loc_2C4A1
loc_2C46F:
cmp [rbp+var_4], 0
jle short loc_2C49F
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, [rbp+var_4]
lea rsi, a1D; "1..%d\n"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_2C49F:
jmp short $+2
loc_2C4A1:
add rsp, 20h
pop rbp
retn
| long long plan(int a1)
{
long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if ( v3 )
skip_big_tests = strcmp(v3, "big");
setvbuf(stdout, 0LL, 2LL);
for ( i = 0LL; i < 0xB; ++i )
signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1));
g_test = a1;
result = (unsigned int)a1;
if ( a1 > 0 )
{
fprintf(stdout, "1..%d\n", a1);
return fflush(stdout);
}
return result;
}
| plan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[0x1b099a]
CALL 0x00126410
MOV qword ptr [RBP + -0x10],RAX
CALL 0x0012c4b0
MOV qword ptr [0x004ce2c8],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0012c3f4
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1b60ea]
CALL 0x00126470
MOV dword ptr [0x00316010],EAX
LAB_0012c3f4:
MOV RAX,qword ptr [0x00315fc0]
MOV RDI,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x00126040
MOV qword ptr [RBP + -0x18],0x0
LAB_0012c417:
CMP qword ptr [RBP + -0x18],0xb
JNC 0x0012c45b
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x316020]
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x316020]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001263d0
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0012c417
LAB_0012c45b:
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [0x004ce238],EAX
MOV EAX,dword ptr [RBP + -0x4]
TEST EAX,EAX
JNZ 0x0012c46f
JMP 0x0012c46d
LAB_0012c46d:
JMP 0x0012c4a1
LAB_0012c46f:
CMP dword ptr [RBP + -0x4],0x0
JLE 0x0012c49f
MOV RAX,qword ptr [0x00315fc0]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x4]
LEA RSI,[0x1b09a7]
MOV AL,0x0
CALL 0x00126490
MOV RAX,qword ptr [0x00315fc0]
MOV RDI,qword ptr [RAX]
CALL 0x001263b0
LAB_0012c49f:
JMP 0x0012c4a1
LAB_0012c4a1:
ADD RSP,0x20
POP RBP
RET
|
void plan(uint param_1)
{
char *__s1;
ulong local_20;
__s1 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
setvbuf(*(FILE **)PTR_stdout_00315fc0,(char *)0x0,2,0);
for (local_20 = 0; local_20 < 0xb; local_20 = local_20 + 1) {
signal(*(int *)(install_signal + local_20 * 0x10),
*(__sighandler_t *)(install_signal + local_20 * 0x10 + 8));
}
g_test = param_1;
if ((param_1 != 0) && (0 < (int)param_1)) {
fprintf(*(FILE **)PTR_stdout_00315fc0,"1..%d\n",(ulong)param_1);
fflush(*(FILE **)PTR_stdout_00315fc0);
}
return;
}
| |
32,731 | js_parse_expr2 | bluesky950520[P]quickjs/quickjs.c | static __exception int js_parse_expr2(JSParseState *s, int parse_flags)
{
BOOL comma = FALSE;
for(;;) {
if (js_parse_assign_expr2(s, parse_flags))
return -1;
if (comma) {
/* prevent get_lvalue from using the last expression
as an lvalue. This also prevents the conversion of
of get_var to get_ref for method lookup in function
call inside `with` statement.
*/
s->cur_func->last_opcode_pos = -1;
}
if (s->token.val != ',')
break;
comma = TRUE;
if (next_token(s))
return -1;
emit_op(s, OP_drop);
}
return 0;
} | O2 | c | js_parse_expr2:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
movb $0x1, %r12b
pushq $-0x1
popq %rbx
pushq $0xe
popq %r15
movq %r14, %rdi
movl %ebp, %esi
callq 0x5a457
testl %eax, %eax
jne 0x5a44c
testb $0x1, %r12b
jne 0x5a427
movq 0x90(%r14), %rax
orl $-0x1, 0x168(%rax)
cmpl $0x2c, 0x20(%r14)
jne 0x5a44a
movq %r14, %rdi
callq 0x4fa4e
testl %eax, %eax
jne 0x5a44c
movq %r14, %rdi
movl %r15d, %esi
callq 0x4fa1b
xorl %r12d, %r12d
jmp 0x5a405
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| js_parse_expr2:
push rbp
push r15
push r14
push r12
push rbx
mov ebp, esi
mov r14, rdi
mov r12b, 1
push 0FFFFFFFFFFFFFFFFh
pop rbx
push 0Eh
pop r15
loc_5A405:
mov rdi, r14
mov esi, ebp
call js_parse_assign_expr2
test eax, eax
jnz short loc_5A44C
test r12b, 1
jnz short loc_5A427
mov rax, [r14+90h]
or dword ptr [rax+168h], 0FFFFFFFFh
loc_5A427:
cmp dword ptr [r14+20h], 2Ch ; ','
jnz short loc_5A44A
mov rdi, r14
call next_token
test eax, eax
jnz short loc_5A44C
mov rdi, r14
mov esi, r15d
call emit_op
xor r12d, r12d
jmp short loc_5A405
loc_5A44A:
xor ebx, ebx
loc_5A44C:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long js_parse_expr2(
long long a1,
unsigned int a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
char v10; // r12
unsigned int v11; // ebx
long long v12; // rdx
long long v13; // rcx
long long v14; // r8
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
v10 = 1;
v11 = -1;
while ( !(unsigned int)js_parse_assign_expr2(a1, a2) )
{
if ( (v10 & 1) == 0 )
*(_DWORD *)(*(_QWORD *)(a1 + 144) + 360LL) = -1;
if ( *(_DWORD *)(a1 + 32) != 44 )
return 0;
if ( (unsigned int)next_token(a1, a2, v12, a3, a4, a5, a6, v16, v17, a9, a10, v13, v14, v15) )
return v11;
emit_op(a1, 14);
v10 = 0;
}
return v11;
}
| js_parse_expr2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBP,ESI
MOV R14,RDI
MOV R12B,0x1
PUSH -0x1
POP RBX
PUSH 0xe
POP R15
LAB_0015a405:
MOV RDI,R14
MOV ESI,EBP
CALL 0x0015a457
TEST EAX,EAX
JNZ 0x0015a44c
TEST R12B,0x1
JNZ 0x0015a427
MOV RAX,qword ptr [R14 + 0x90]
OR dword ptr [RAX + 0x168],0xffffffff
LAB_0015a427:
CMP dword ptr [R14 + 0x20],0x2c
JNZ 0x0015a44a
MOV RDI,R14
CALL 0x0014fa4e
TEST EAX,EAX
JNZ 0x0015a44c
MOV RDI,R14
MOV ESI,R15D
CALL 0x0014fa1b
XOR R12D,R12D
JMP 0x0015a405
LAB_0015a44a:
XOR EBX,EBX
LAB_0015a44c:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 js_parse_expr2(long param_1,int4 param_2)
{
int iVar1;
bool bVar2;
bVar2 = true;
while( true ) {
iVar1 = js_parse_assign_expr2(param_1,param_2);
if (iVar1 != 0) {
return 0xffffffff;
}
if (!bVar2) {
*(int4 *)(*(long *)(param_1 + 0x90) + 0x168) = 0xffffffff;
}
if (*(int *)(param_1 + 0x20) != 0x2c) break;
iVar1 = next_token(param_1);
if (iVar1 != 0) {
return 0xffffffff;
}
emit_op(param_1,0xe);
bVar2 = false;
}
return 0;
}
| |
32,732 | ggml_graph_get_tensor | llama.cpp/ggml/src/ggml.c | struct ggml_tensor * ggml_graph_get_tensor(const struct ggml_cgraph * cgraph, const char * name) {
for (int i = 0; i < cgraph->n_leafs; i++) {
struct ggml_tensor * leaf = cgraph->leafs[i];
if (strcmp(leaf->name, name) == 0) {
return leaf;
}
}
for (int i = 0; i < cgraph->n_nodes; i++) {
struct ggml_tensor * node = cgraph->nodes[i];
if (strcmp(node->name, name) == 0) {
return node;
}
}
return NULL;
} | O3 | c | ggml_graph_get_tensor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x8(%rdi), %r12
testq %r12, %r12
jle 0x22513
movq 0x28(%r14), %r13
xorl %ebp, %ebp
movq (%r13,%rbp,8), %r15
leaq 0x100(%r15), %rdi
movq %rbx, %rsi
callq 0x177b0
testl %eax, %eax
je 0x22545
incq %rbp
cmpq %rbp, %r12
jne 0x224f3
movslq 0x4(%r14), %r12
testq %r12, %r12
jle 0x22542
movq 0x10(%r14), %r14
xorl %r13d, %r13d
movq (%r14,%r13,8), %r15
leaq 0x100(%r15), %rdi
movq %rbx, %rsi
callq 0x177b0
testl %eax, %eax
je 0x22545
incq %r13
cmpq %r13, %r12
jne 0x22523
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ggml_graph_get_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
movsxd r12, dword ptr [rdi+8]
test r12, r12
jle short loc_22513
mov r13, [r14+28h]
xor ebp, ebp
loc_224F3:
mov r15, [r13+rbp*8+0]
lea rdi, [r15+100h]
mov rsi, rbx
call _strcmp
test eax, eax
jz short loc_22545
inc rbp
cmp r12, rbp
jnz short loc_224F3
loc_22513:
movsxd r12, dword ptr [r14+4]
test r12, r12
jle short loc_22542
mov r14, [r14+10h]
xor r13d, r13d
loc_22523:
mov r15, [r14+r13*8]
lea rdi, [r15+100h]
mov rsi, rbx
call _strcmp
test eax, eax
jz short loc_22545
inc r13
cmp r12, r13
jnz short loc_22523
loc_22542:
xor r15d, r15d
loc_22545:
mov rax, r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ggml_graph_get_tensor(long long a1, long long a2)
{
long long v2; // r12
long long v3; // r13
long long v4; // rbp
long long v5; // r15
long long v6; // r12
long long v7; // r14
long long v8; // r13
v2 = *(int *)(a1 + 8);
if ( v2 <= 0 )
{
LABEL_5:
v6 = *(int *)(a1 + 4);
if ( v6 <= 0 )
{
return 0LL;
}
else
{
v7 = *(_QWORD *)(a1 + 16);
v8 = 0LL;
while ( 1 )
{
v5 = *(_QWORD *)(v7 + 8 * v8);
if ( !(unsigned int)strcmp(v5 + 256, a2) )
break;
if ( v6 == ++v8 )
return 0LL;
}
}
}
else
{
v3 = *(_QWORD *)(a1 + 40);
v4 = 0LL;
while ( 1 )
{
v5 = *(_QWORD *)(v3 + 8 * v4);
if ( !(unsigned int)strcmp(v5 + 256, a2) )
break;
if ( v2 == ++v4 )
goto LABEL_5;
}
}
return v5;
}
| ggml_graph_get_tensor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOVSXD R12,dword ptr [RDI + 0x8]
TEST R12,R12
JLE 0x00122513
MOV R13,qword ptr [R14 + 0x28]
XOR EBP,EBP
LAB_001224f3:
MOV R15,qword ptr [R13 + RBP*0x8]
LEA RDI,[R15 + 0x100]
MOV RSI,RBX
CALL 0x001177b0
TEST EAX,EAX
JZ 0x00122545
INC RBP
CMP R12,RBP
JNZ 0x001224f3
LAB_00122513:
MOVSXD R12,dword ptr [R14 + 0x4]
TEST R12,R12
JLE 0x00122542
MOV R14,qword ptr [R14 + 0x10]
XOR R13D,R13D
LAB_00122523:
MOV R15,qword ptr [R14 + R13*0x8]
LEA RDI,[R15 + 0x100]
MOV RSI,RBX
CALL 0x001177b0
TEST EAX,EAX
JZ 0x00122545
INC R13
CMP R12,R13
JNZ 0x00122523
LAB_00122542:
XOR R15D,R15D
LAB_00122545:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long ggml_graph_get_tensor(long param_1,char *param_2)
{
int iVar1;
long lVar2;
long lVar3;
int iVar4;
long lVar5;
iVar1 = *(int *)(param_1 + 8);
if (0 < (long)iVar1) {
lVar2 = *(long *)(param_1 + 0x28);
lVar5 = 0;
do {
lVar3 = *(long *)(lVar2 + lVar5 * 8);
iVar4 = strcmp((char *)(lVar3 + 0x100),param_2);
if (iVar4 == 0) {
return lVar3;
}
lVar5 = lVar5 + 1;
} while (iVar1 != lVar5);
}
iVar1 = *(int *)(param_1 + 4);
if (0 < (long)iVar1) {
lVar2 = *(long *)(param_1 + 0x10);
lVar5 = 0;
do {
lVar3 = *(long *)(lVar2 + lVar5 * 8);
iVar4 = strcmp((char *)(lVar3 + 0x100),param_2);
if (iVar4 == 0) {
return lVar3;
}
lVar5 = lVar5 + 1;
} while (iVar1 != lVar5);
}
return 0;
}
| |
32,733 | my_hash_insert | eloqsql/mysys/hash.c | my_bool my_hash_insert(HASH *info, const uchar *record)
{
int flag;
size_t idx, halfbuff, first_index;
size_t length;
my_hash_value_type current_hash_nr, UNINIT_VAR(rec_hash_nr),
UNINIT_VAR(rec2_hash_nr);
uchar *UNINIT_VAR(rec_data),*UNINIT_VAR(rec2_data), *key;
HASH_LINK *data,*empty,*UNINIT_VAR(gpos),*UNINIT_VAR(gpos2),*pos;
key= (uchar*) my_hash_key(info, record, &length, 1);
current_hash_nr= info->hash_function(info->charset, key, length);
if (info->flags & HASH_UNIQUE)
{
if (my_hash_search_using_hash_value(info, current_hash_nr, key, length))
return(TRUE); /* Duplicate entry */
}
flag=0;
if (!(empty=(HASH_LINK*) alloc_dynamic(&info->array)))
return(TRUE); /* No more memory */
data=dynamic_element(&info->array,0,HASH_LINK*);
halfbuff= info->blength >> 1;
idx=first_index=info->records-halfbuff;
if (idx != info->records) /* If some records */
{
do
{
my_hash_value_type hash_nr;
pos=data+idx;
hash_nr= pos->hash_nr;
if (flag == 0) /* First loop; Check if ok */
if (my_hash_mask(hash_nr, info->blength, info->records) != first_index)
break;
if (!(hash_nr & halfbuff))
{ /* Key will not move */
if (!(flag & LOWFIND))
{
if (flag & HIGHFIND)
{
flag= LOWFIND | HIGHFIND;
/* key shall be moved to the current empty position */
gpos= empty;
rec_data= pos->data;
rec_hash_nr= pos->hash_nr;
empty=pos; /* This place is now free */
}
else
{
flag= LOWFIND | LOWUSED; /* key isn't changed */
gpos= pos;
rec_data= pos->data;
rec_hash_nr= pos->hash_nr;
}
}
else
{
if (!(flag & LOWUSED))
{
/* Change link of previous LOW-key */
gpos->data= rec_data;
gpos->hash_nr= rec_hash_nr;
gpos->next= (uint) (pos-data);
flag= (flag & HIGHFIND) | (LOWFIND | LOWUSED);
}
gpos= pos;
rec_data= pos->data;
rec_hash_nr= pos->hash_nr;
}
}
else
{ /* key will be moved */
if (!(flag & HIGHFIND))
{
flag= (flag & LOWFIND) | HIGHFIND;
/* key shall be moved to the last (empty) position */
gpos2= empty;
empty= pos;
rec2_data= pos->data;
rec2_hash_nr= pos->hash_nr;
}
else
{
if (!(flag & HIGHUSED))
{
/* Change link of previous hash-key and save */
gpos2->data= rec2_data;
gpos2->hash_nr= rec2_hash_nr;
gpos2->next= (uint) (pos-data);
flag= (flag & LOWFIND) | (HIGHFIND | HIGHUSED);
}
gpos2= pos;
rec2_data= pos->data;
rec2_hash_nr= pos->hash_nr;
}
}
}
while ((idx=pos->next) != NO_RECORD);
if ((flag & (LOWFIND | LOWUSED)) == LOWFIND)
{
gpos->data= rec_data;
gpos->hash_nr= rec_hash_nr;
gpos->next= NO_RECORD;
}
if ((flag & (HIGHFIND | HIGHUSED)) == HIGHFIND)
{
gpos2->data= rec2_data;
gpos2->hash_nr= rec2_hash_nr;
gpos2->next= NO_RECORD;
}
}
idx= my_hash_mask(current_hash_nr, info->blength, info->records + 1);
pos= data+idx;
/* Check if we are at the empty position */
if (pos == empty)
{
pos->next=NO_RECORD;
}
else
{
/* Move conflicting record to empty position (last) */
empty[0]= pos[0];
/* Check if the moved record was in same hash-nr family */
gpos= data + my_hash_rec_mask(pos, info->blength, info->records + 1);
if (pos == gpos)
{
/* Point to moved record */
pos->next= (uint32) (empty - data);
}
else
{
pos->next= NO_RECORD;
movelink(data,(uint) (pos-data),(uint) (gpos-data),(uint) (empty-data));
}
}
pos->data= (uchar*) record;
pos->hash_nr= current_hash_nr;
if (++info->records == info->blength)
info->blength+= info->blength;
return(0);
} | O3 | c | my_hash_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x29583
leaq -0x50(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq *%rax
movq %rax, %r12
movq (%r15), %rdx
jmp 0x29591
movq 0x8(%rbx), %rdx
movq %rdx, -0x50(%rbp)
movq (%rbx), %r12
addq %r14, %r12
movq 0x68(%rbx), %rdi
movq %r12, %rsi
callq *0x58(%rbx)
movl %eax, %r15d
testb $0x1, 0x20(%rbx)
je 0x295c8
movq -0x50(%rbp), %rcx
leaq -0x5c(%rbp), %r8
movq %rbx, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x29363
movq %rax, %rcx
movb $0x1, %al
testq %rcx, %rcx
jne 0x2983f
leaq 0x28(%rbx), %rdi
callq 0x2bf50
testq %rax, %rax
je 0x29776
movq %rax, %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movq 0x28(%rbx), %rcx
movq 0x10(%rbx), %rsi
cmpq $0x2, %rsi
jb 0x29788
movl %r15d, -0x2c(%rbp)
movq %r14, -0x48(%rbp)
movq 0x18(%rbx), %r12
shrq %rsi
subq %rsi, %r12
xorl %r8d, %r8d
movq %r12, -0x58(%rbp)
movq %rdi, %r14
movq %r12, %rax
shlq $0x4, %rax
movl 0x4(%rcx,%rax), %r10d
testl %r8d, %r8d
jne 0x29660
movq 0x10(%rbx), %rdi
leal (%rdi,%rdx), %r9d
movq %rsi, %rdx
movq %r15, %rsi
movl %r11d, %r15d
movl %r10d, %r11d
andl %r9d, %r11d
shrq %rdi
decl %edi
andl %r10d, %edi
cmpq 0x18(%rbx), %r11
cmovbl %r11d, %edi
movl %r15d, %r11d
movq %rsi, %r15
movq %rdx, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
cmpq %rdi, -0x58(%rbp)
jne 0x2977d
addq %rcx, %rax
testl %r10d, %esi
je 0x29688
testb $0x4, %r8b
jne 0x296bf
andl $0x1, %r8d
orl $0x4, %r8d
movq 0x8(%rax), %r15
movl %r10d, %r11d
movq %rax, %rdi
movq %r14, %r13
jmp 0x29727
testb $0x1, %r8b
jne 0x296ec
andl $0x4, %r8d
movl %r8d, %r9d
shrl %r9d
addl $0x3, %r9d
testl %r8d, %r8d
movq %rax, %rdi
cmoveq %r14, %rdi
cmoveq %rax, %r14
movq 0x8(%rax), %r8
movq %r8, -0x40(%rbp)
movl %r10d, -0x30(%rbp)
movl %r9d, %r8d
movq %r14, -0x38(%rbp)
jmp 0x29727
testb $0x8, %r8b
jne 0x296dd
movq %r15, 0x8(%r13)
movl %r11d, 0x4(%r13)
movl %r12d, (%r13)
andl $0x1, %r8d
orl $0xc, %r8d
movl 0x4(%rax), %r10d
movq 0x8(%rax), %r15
movl %r10d, %r11d
movq %r14, %rdi
movq %rax, %r13
jmp 0x29727
testb $0x2, %r8b
jne 0x29714
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %r9
movq %rdi, 0x8(%r9)
movl -0x30(%rbp), %edi
movl %edi, 0x4(%r9)
movl %r12d, (%r9)
andl $0x4, %r8d
orl $0x3, %r8d
movl 0x4(%rax), %r10d
movq 0x8(%rax), %rdi
movq %rdi, -0x40(%rbp)
movl %r10d, -0x30(%rbp)
movq %r14, %rdi
movq %rax, -0x38(%rbp)
movl (%rax), %r12d
cmpq %rdx, %r12
jne 0x2960d
movl %r8d, %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x29756
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rsi
movq %rax, 0x8(%rsi)
movl -0x30(%rbp), %eax
movl %eax, 0x4(%rsi)
movl $0xffffffff, (%rsi) # imm = 0xFFFFFFFF
andl $0xc, %r8d
cmpl $0x4, %r8d
movq -0x48(%rbp), %r14
jne 0x29784
movq %r15, 0x8(%r13)
movl %r11d, 0x4(%r13)
movl $0xffffffff, (%r13) # imm = 0xFFFFFFFF
jmp 0x29784
movb $0x1, %al
jmp 0x2983f
movq %r14, %rdi
movq -0x48(%rbp), %r14
movl -0x2c(%rbp), %r15d
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rsi
incq %rsi
leal (%rax,%rdx), %r8d
andl %r15d, %r8d
shrq %rax
decl %eax
andl %r15d, %eax
cmpq %rsi, %r8
cmovbl %r8d, %eax
movq %rax, %rsi
shlq $0x4, %rsi
addq %rcx, %rsi
cmpq %rdi, %rsi
je 0x297f3
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
movq 0x10(%rbx), %r8
movq 0x18(%rbx), %r9
incq %r9
movl 0x4(%rsi), %r10d
addl %r8d, %edx
andl %r10d, %edx
shrq %r8
decl %r8d
andl %r10d, %r8d
cmpq %r9, %rdx
cmovbl %edx, %r8d
cmpl %r8d, %eax
jne 0x297fb
subq %rcx, %rdi
shrq $0x4, %rdi
movl %edi, (%rsi)
jmp 0x2981d
movl $0xffffffff, (%rsi) # imm = 0xFFFFFFFF
jmp 0x2981d
movl $0xffffffff, (%rsi) # imm = 0xFFFFFFFF
subq %rcx, %rdi
shrq $0x4, %rdi
movl %r8d, %edx
shlq $0x4, %rdx
movl (%rcx,%rdx), %r8d
cmpl %eax, %r8d
jne 0x29808
addq %rdx, %rcx
movl %edi, (%rcx)
movq %r14, 0x8(%rsi)
movl %r15d, 0x4(%rsi)
movq 0x18(%rbx), %rax
incq %rax
movq %rax, 0x18(%rbx)
cmpq 0x10(%rbx), %rax
jne 0x2983d
addq %rax, %rax
movq %rax, 0x10(%rbx)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_hash_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rsi
mov rbx, rdi
mov rax, [rdi+50h]
test rax, rax
jz short loc_29583
lea r15, [rbp+var_50]
mov rdi, r14
mov rsi, r15
mov edx, 1
call rax
mov r12, rax
mov rdx, [r15]
jmp short loc_29591
loc_29583:
mov rdx, [rbx+8]
mov [rbp+var_50], rdx
mov r12, [rbx]
add r12, r14
loc_29591:
mov rdi, [rbx+68h]
mov rsi, r12
call qword ptr [rbx+58h]
mov r15d, eax
test byte ptr [rbx+20h], 1
jz short loc_295C8
mov rcx, [rbp+var_50]
lea r8, [rbp+var_5C]
mov rdi, rbx
mov esi, r15d
mov rdx, r12
call my_hash_first_from_hash_value
mov rcx, rax
mov al, 1
test rcx, rcx
jnz loc_2983F
loc_295C8:
lea rdi, [rbx+28h]
call alloc_dynamic
test rax, rax
jz loc_29776
mov rdi, rax
mov edx, 0FFFFFFFFh
mov rcx, [rbx+28h]
mov rsi, [rbx+10h]
cmp rsi, 2
jb loc_29788
mov [rbp+var_2C], r15d
mov [rbp+var_48], r14
mov r12, [rbx+18h]
shr rsi, 1
sub r12, rsi
xor r8d, r8d
mov [rbp+var_58], r12
loc_2960D:
mov r14, rdi
mov rax, r12
shl rax, 4
mov r10d, [rcx+rax+4]
test r8d, r8d
jnz short loc_29660
mov rdi, [rbx+10h]
lea r9d, [rdi+rdx]
mov rdx, rsi
mov rsi, r15
mov r15d, r11d
mov r11d, r10d
and r11d, r9d
shr rdi, 1
dec edi
and edi, r10d
cmp r11, [rbx+18h]
cmovb edi, r11d
mov r11d, r15d
mov r15, rsi
mov rsi, rdx
mov edx, 0FFFFFFFFh
cmp [rbp+var_58], rdi
jnz loc_2977D
loc_29660:
add rax, rcx
test esi, r10d
jz short loc_29688
test r8b, 4
jnz short loc_296BF
and r8d, 1
or r8d, 4
mov r15, [rax+8]
mov r11d, r10d
mov rdi, rax
mov r13, r14
jmp loc_29727
loc_29688:
test r8b, 1
jnz short loc_296EC
and r8d, 4
mov r9d, r8d
shr r9d, 1
add r9d, 3
test r8d, r8d
mov rdi, rax
cmovz rdi, r14
cmovz r14, rax
mov r8, [rax+8]
mov [rbp+var_40], r8
mov [rbp+var_30], r10d
mov r8d, r9d
mov [rbp+var_38], r14
jmp short loc_29727
loc_296BF:
test r8b, 8
jnz short loc_296DD
mov [r13+8], r15
mov [r13+4], r11d
mov [r13+0], r12d
and r8d, 1
or r8d, 0Ch
mov r10d, [rax+4]
loc_296DD:
mov r15, [rax+8]
mov r11d, r10d
mov rdi, r14
mov r13, rax
jmp short loc_29727
loc_296EC:
test r8b, 2
jnz short loc_29714
mov rdi, [rbp+var_40]
mov r9, [rbp+var_38]
mov [r9+8], rdi
mov edi, [rbp+var_30]
mov [r9+4], edi
mov [r9], r12d
and r8d, 4
or r8d, 3
mov r10d, [rax+4]
loc_29714:
mov rdi, [rax+8]
mov [rbp+var_40], rdi
mov [rbp+var_30], r10d
mov rdi, r14
mov [rbp+var_38], rax
loc_29727:
mov r12d, [rax]
cmp r12, rdx
jnz loc_2960D
mov eax, r8d
and eax, 3
cmp eax, 1
jnz short loc_29756
mov rax, [rbp+var_40]
mov rsi, [rbp+var_38]
mov [rsi+8], rax
mov eax, [rbp+var_30]
mov [rsi+4], eax
mov dword ptr [rsi], 0FFFFFFFFh
loc_29756:
and r8d, 0Ch
cmp r8d, 4
mov r14, [rbp+var_48]
jnz short loc_29784
mov [r13+8], r15
mov [r13+4], r11d
mov dword ptr [r13+0], 0FFFFFFFFh
jmp short loc_29784
loc_29776:
mov al, 1
jmp loc_2983F
loc_2977D:
mov rdi, r14
mov r14, [rbp+var_48]
loc_29784:
mov r15d, [rbp+var_2C]
loc_29788:
mov rax, [rbx+10h]
mov rsi, [rbx+18h]
inc rsi
lea r8d, [rax+rdx]
and r8d, r15d
shr rax, 1
dec eax
and eax, r15d
cmp r8, rsi
cmovb eax, r8d
mov rsi, rax
shl rsi, 4
add rsi, rcx
cmp rsi, rdi
jz short loc_297F3
movups xmm0, xmmword ptr [rsi]
movups xmmword ptr [rdi], xmm0
mov r8, [rbx+10h]
mov r9, [rbx+18h]
inc r9
mov r10d, [rsi+4]
add edx, r8d
and edx, r10d
shr r8, 1
dec r8d
and r8d, r10d
cmp rdx, r9
cmovb r8d, edx
cmp eax, r8d
jnz short loc_297FB
sub rdi, rcx
shr rdi, 4
mov [rsi], edi
jmp short loc_2981D
loc_297F3:
mov dword ptr [rsi], 0FFFFFFFFh
jmp short loc_2981D
loc_297FB:
mov dword ptr [rsi], 0FFFFFFFFh
sub rdi, rcx
shr rdi, 4
loc_29808:
mov edx, r8d
shl rdx, 4
mov r8d, [rcx+rdx]
cmp r8d, eax
jnz short loc_29808
add rcx, rdx
mov [rcx], edi
loc_2981D:
mov [rsi+8], r14
mov [rsi+4], r15d
mov rax, [rbx+18h]
inc rax
mov [rbx+18h], rax
cmp rax, [rbx+10h]
jnz short loc_2983D
add rax, rax
mov [rbx+10h], rax
loc_2983D:
xor eax, eax
loc_2983F:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char my_hash_insert(long long a1, long long a2)
{
_OWORD *v2; // r13
long long v3; // r14
long long ( *v5)(long long, long long *, long long); // rax
long long v6; // r12
long long v7; // rdx
unsigned int v8; // eax
long long v9; // r15
long long v10; // rcx
char result; // al
long long v12; // rax
unsigned int v13; // r11d
_OWORD *v14; // rdi
long long v15; // rcx
unsigned long long v16; // rsi
unsigned long long v17; // rsi
unsigned long long v18; // r12
int v19; // r8d
_OWORD *v20; // r14
unsigned int v21; // r10d
unsigned long long v22; // rdi
unsigned long long v23; // rdx
long long v24; // rsi
unsigned int v25; // r15d
unsigned long long v26; // r11
long long v27; // rdi
unsigned int *v28; // rax
unsigned int v29; // r8d
_DWORD *v30; // r9
_DWORD *v31; // rsi
unsigned long long v32; // rax
unsigned long long v33; // r8
long long v34; // rax
long long v35; // rsi
unsigned long long v36; // r8
int v37; // r10d
unsigned long long v38; // rdx
unsigned int v39; // r8d
unsigned long long v40; // rdi
long long v41; // rdx
long long v42; // rax
unsigned int v43; // [rsp+4h] [rbp-5Ch] BYREF
unsigned long long v44; // [rsp+8h] [rbp-58h]
long long v45; // [rsp+10h] [rbp-50h] BYREF
long long v46; // [rsp+18h] [rbp-48h]
long long v47; // [rsp+20h] [rbp-40h]
_OWORD *v48; // [rsp+28h] [rbp-38h]
unsigned int v49; // [rsp+30h] [rbp-30h]
int v50; // [rsp+34h] [rbp-2Ch]
v3 = a2;
v5 = *(long long ( **)(long long, long long *, long long))(a1 + 80);
if ( v5 )
{
v6 = v5(a2, &v45, 1LL);
v7 = v45;
}
else
{
v7 = *(_QWORD *)(a1 + 8);
v45 = v7;
v6 = a2 + *(_QWORD *)a1;
}
v8 = (*(long long ( **)(_QWORD, long long, long long))(a1 + 88))(*(_QWORD *)(a1 + 104), v6, v7);
v9 = v8;
if ( (*(_BYTE *)(a1 + 32) & 1) == 0
|| (v10 = my_hash_first_from_hash_value((_QWORD *)a1, v8, v6, v45, &v43), result = 1, !v10) )
{
v12 = alloc_dynamic(a1 + 40);
if ( v12 )
{
v14 = (_OWORD *)v12;
v15 = *(_QWORD *)(a1 + 40);
v16 = *(_QWORD *)(a1 + 16);
if ( v16 >= 2 )
{
v50 = v9;
v46 = v3;
v17 = v16 >> 1;
v18 = *(_QWORD *)(a1 + 24) - v17;
v19 = 0;
v44 = v18;
do
{
v20 = v14;
v21 = *(_DWORD *)(v15 + 16 * v18 + 4);
if ( !v19 )
{
v22 = *(_QWORD *)(a1 + 16);
v23 = v17;
v24 = v9;
v25 = v13;
v26 = ((_DWORD)v22 - 1) & v21;
v27 = v21 & ((unsigned int)(v22 >> 1) - 1);
if ( v26 < *(_QWORD *)(a1 + 24) )
v27 = (unsigned int)v26;
v13 = v25;
v9 = v24;
v17 = v23;
if ( v44 != v27 )
{
v14 = v20;
v3 = v46;
goto LABEL_33;
}
}
v28 = (unsigned int *)(v15 + 16 * v18);
if ( (v21 & (unsigned int)v17) != 0 )
{
if ( (v19 & 4) != 0 )
{
if ( (v19 & 8) == 0 )
{
*((_QWORD *)v2 + 1) = v9;
*((_DWORD *)v2 + 1) = v13;
*(_DWORD *)v2 = v18;
v19 = v19 & 1 | 0xC;
v21 = v28[1];
}
v9 = *((_QWORD *)v28 + 1);
v13 = v21;
v14 = v20;
v2 = (_OWORD *)(v15 + 16 * v18);
}
else
{
v19 = v19 & 1 | 4;
v9 = *((_QWORD *)v28 + 1);
v13 = *(_DWORD *)(v15 + 16 * v18 + 4);
v14 = (_OWORD *)(v15 + 16 * v18);
v2 = v20;
}
}
else if ( (v19 & 1) != 0 )
{
if ( (v19 & 2) == 0 )
{
v30 = v48;
*((_QWORD *)v48 + 1) = v47;
v30[1] = v49;
*v30 = v18;
v19 = v19 & 4 | 3;
v21 = v28[1];
}
v47 = *((_QWORD *)v28 + 1);
v49 = v21;
v14 = v20;
v48 = (_OWORD *)(v15 + 16 * v18);
}
else
{
v29 = v19 & 4;
v14 = (_OWORD *)(v15 + 16 * v18);
if ( !v29 )
{
v14 = v20;
v20 = (_OWORD *)(v15 + 16 * v18);
}
v47 = *((_QWORD *)v28 + 1);
v49 = v21;
v19 = (v29 >> 1) + 3;
v48 = v20;
}
v18 = *v28;
}
while ( v18 != 0xFFFFFFFF );
if ( (v19 & 3) == 1 )
{
v31 = v48;
*((_QWORD *)v48 + 1) = v47;
v31[1] = v49;
*v31 = -1;
}
v3 = v46;
if ( (v19 & 0xC) == 4 )
{
*((_QWORD *)v2 + 1) = v9;
*((_DWORD *)v2 + 1) = v13;
*(_DWORD *)v2 = -1;
}
LABEL_33:
LODWORD(v9) = v50;
}
v32 = *(_QWORD *)(a1 + 16);
v33 = (unsigned int)v9 & ((_DWORD)v32 - 1);
v34 = (unsigned int)v9 & ((unsigned int)(v32 >> 1) - 1);
if ( v33 < *(_QWORD *)(a1 + 24) + 1LL )
v34 = (unsigned int)v33;
v35 = v15 + 16 * v34;
if ( (_OWORD *)v35 == v14 )
{
*(_DWORD *)v35 = -1;
}
else
{
*v14 = *(_OWORD *)v35;
v36 = *(_QWORD *)(a1 + 16);
v37 = *(_DWORD *)(v35 + 4);
v38 = v37 & (unsigned int)(v36 - 1);
v39 = v37 & ((v36 >> 1) - 1);
if ( v38 < *(_QWORD *)(a1 + 24) + 1LL )
v39 = v38;
if ( (_DWORD)v34 == v39 )
{
*(_DWORD *)v35 = ((unsigned long long)v14 - v15) >> 4;
}
else
{
*(_DWORD *)v35 = -1;
v40 = ((unsigned long long)v14 - v15) >> 4;
do
{
v41 = 16LL * v39;
v39 = *(_DWORD *)(v15 + v41);
}
while ( v39 != (_DWORD)v34 );
*(_DWORD *)(v41 + v15) = v40;
}
}
*(_QWORD *)(v35 + 8) = v3;
*(_DWORD *)(v35 + 4) = v9;
v42 = *(_QWORD *)(a1 + 24) + 1LL;
*(_QWORD *)(a1 + 24) = v42;
if ( v42 == *(_QWORD *)(a1 + 16) )
*(_QWORD *)(a1 + 16) = 2 * v42;
return 0;
}
else
{
return 1;
}
}
return result;
}
| my_hash_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x50]
TEST RAX,RAX
JZ 0x00129583
LEA R15,[RBP + -0x50]
MOV RDI,R14
MOV RSI,R15
MOV EDX,0x1
CALL RAX
MOV R12,RAX
MOV RDX,qword ptr [R15]
JMP 0x00129591
LAB_00129583:
MOV RDX,qword ptr [RBX + 0x8]
MOV qword ptr [RBP + -0x50],RDX
MOV R12,qword ptr [RBX]
ADD R12,R14
LAB_00129591:
MOV RDI,qword ptr [RBX + 0x68]
MOV RSI,R12
CALL qword ptr [RBX + 0x58]
MOV R15D,EAX
TEST byte ptr [RBX + 0x20],0x1
JZ 0x001295c8
MOV RCX,qword ptr [RBP + -0x50]
LEA R8,[RBP + -0x5c]
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R12
CALL 0x00129363
MOV RCX,RAX
MOV AL,0x1
TEST RCX,RCX
JNZ 0x0012983f
LAB_001295c8:
LEA RDI,[RBX + 0x28]
CALL 0x0012bf50
TEST RAX,RAX
JZ 0x00129776
MOV RDI,RAX
MOV EDX,0xffffffff
MOV RCX,qword ptr [RBX + 0x28]
MOV RSI,qword ptr [RBX + 0x10]
CMP RSI,0x2
JC 0x00129788
MOV dword ptr [RBP + -0x2c],R15D
MOV qword ptr [RBP + -0x48],R14
MOV R12,qword ptr [RBX + 0x18]
SHR RSI,0x1
SUB R12,RSI
XOR R8D,R8D
MOV qword ptr [RBP + -0x58],R12
LAB_0012960d:
MOV R14,RDI
MOV RAX,R12
SHL RAX,0x4
MOV R10D,dword ptr [RCX + RAX*0x1 + 0x4]
TEST R8D,R8D
JNZ 0x00129660
MOV RDI,qword ptr [RBX + 0x10]
LEA R9D,[RDI + RDX*0x1]
MOV RDX,RSI
MOV RSI,R15
MOV R15D,R11D
MOV R11D,R10D
AND R11D,R9D
SHR RDI,0x1
DEC EDI
AND EDI,R10D
CMP R11,qword ptr [RBX + 0x18]
CMOVC EDI,R11D
MOV R11D,R15D
MOV R15,RSI
MOV RSI,RDX
MOV EDX,0xffffffff
CMP qword ptr [RBP + -0x58],RDI
JNZ 0x0012977d
LAB_00129660:
ADD RAX,RCX
TEST ESI,R10D
JZ 0x00129688
TEST R8B,0x4
JNZ 0x001296bf
AND R8D,0x1
OR R8D,0x4
MOV R15,qword ptr [RAX + 0x8]
MOV R11D,R10D
MOV RDI,RAX
MOV R13,R14
JMP 0x00129727
LAB_00129688:
TEST R8B,0x1
JNZ 0x001296ec
AND R8D,0x4
MOV R9D,R8D
SHR R9D,0x1
ADD R9D,0x3
TEST R8D,R8D
MOV RDI,RAX
CMOVZ RDI,R14
CMOVZ R14,RAX
MOV R8,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x40],R8
MOV dword ptr [RBP + -0x30],R10D
MOV R8D,R9D
MOV qword ptr [RBP + -0x38],R14
JMP 0x00129727
LAB_001296bf:
TEST R8B,0x8
JNZ 0x001296dd
MOV qword ptr [R13 + 0x8],R15
MOV dword ptr [R13 + 0x4],R11D
MOV dword ptr [R13],R12D
AND R8D,0x1
OR R8D,0xc
MOV R10D,dword ptr [RAX + 0x4]
LAB_001296dd:
MOV R15,qword ptr [RAX + 0x8]
MOV R11D,R10D
MOV RDI,R14
MOV R13,RAX
JMP 0x00129727
LAB_001296ec:
TEST R8B,0x2
JNZ 0x00129714
MOV RDI,qword ptr [RBP + -0x40]
MOV R9,qword ptr [RBP + -0x38]
MOV qword ptr [R9 + 0x8],RDI
MOV EDI,dword ptr [RBP + -0x30]
MOV dword ptr [R9 + 0x4],EDI
MOV dword ptr [R9],R12D
AND R8D,0x4
OR R8D,0x3
MOV R10D,dword ptr [RAX + 0x4]
LAB_00129714:
MOV RDI,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x40],RDI
MOV dword ptr [RBP + -0x30],R10D
MOV RDI,R14
MOV qword ptr [RBP + -0x38],RAX
LAB_00129727:
MOV R12D,dword ptr [RAX]
CMP R12,RDX
JNZ 0x0012960d
MOV EAX,R8D
AND EAX,0x3
CMP EAX,0x1
JNZ 0x00129756
MOV RAX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
MOV qword ptr [RSI + 0x8],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RSI + 0x4],EAX
MOV dword ptr [RSI],0xffffffff
LAB_00129756:
AND R8D,0xc
CMP R8D,0x4
MOV R14,qword ptr [RBP + -0x48]
JNZ 0x00129784
MOV qword ptr [R13 + 0x8],R15
MOV dword ptr [R13 + 0x4],R11D
MOV dword ptr [R13],0xffffffff
JMP 0x00129784
LAB_00129776:
MOV AL,0x1
JMP 0x0012983f
LAB_0012977d:
MOV RDI,R14
MOV R14,qword ptr [RBP + -0x48]
LAB_00129784:
MOV R15D,dword ptr [RBP + -0x2c]
LAB_00129788:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX + 0x18]
INC RSI
LEA R8D,[RAX + RDX*0x1]
AND R8D,R15D
SHR RAX,0x1
DEC EAX
AND EAX,R15D
CMP R8,RSI
CMOVC EAX,R8D
MOV RSI,RAX
SHL RSI,0x4
ADD RSI,RCX
CMP RSI,RDI
JZ 0x001297f3
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS xmmword ptr [RDI],XMM0
MOV R8,qword ptr [RBX + 0x10]
MOV R9,qword ptr [RBX + 0x18]
INC R9
MOV R10D,dword ptr [RSI + 0x4]
ADD EDX,R8D
AND EDX,R10D
SHR R8,0x1
DEC R8D
AND R8D,R10D
CMP RDX,R9
CMOVC R8D,EDX
CMP EAX,R8D
JNZ 0x001297fb
SUB RDI,RCX
SHR RDI,0x4
MOV dword ptr [RSI],EDI
JMP 0x0012981d
LAB_001297f3:
MOV dword ptr [RSI],0xffffffff
JMP 0x0012981d
LAB_001297fb:
MOV dword ptr [RSI],0xffffffff
SUB RDI,RCX
SHR RDI,0x4
LAB_00129808:
MOV EDX,R8D
SHL RDX,0x4
MOV R8D,dword ptr [RCX + RDX*0x1]
CMP R8D,EAX
JNZ 0x00129808
ADD RCX,RDX
MOV dword ptr [RCX],EDI
LAB_0012981d:
MOV qword ptr [RSI + 0x8],R14
MOV dword ptr [RSI + 0x4],R15D
MOV RAX,qword ptr [RBX + 0x18]
INC RAX
MOV qword ptr [RBX + 0x18],RAX
CMP RAX,qword ptr [RBX + 0x10]
JNZ 0x0012983d
ADD RAX,RAX
MOV qword ptr [RBX + 0x10],RAX
LAB_0012983d:
XOR EAX,EAX
LAB_0012983f:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 my_hash_insert(long *param_1,long param_2)
{
uint uVar1;
long lVar2;
uint *puVar3;
uint *puVar4;
int8 uVar5;
ulong uVar6;
uint uVar7;
ulong uVar8;
uint *puVar9;
ulong uVar10;
uint uVar11;
uint uVar12;
ulong uVar13;
ulong in_R11;
ulong uVar14;
ulong uVar15;
uint *unaff_R13;
long local_58 [2];
int8 local_48;
uint *local_40;
uint local_38;
if ((code *)param_1[10] == (code *)0x0) {
local_58[0] = param_1[1];
lVar2 = *param_1 + param_2;
}
else {
lVar2 = (*(code *)param_1[10])(param_2,local_58,1);
}
uVar1 = (*(code *)param_1[0xb])(param_1[0xd],lVar2,local_58[0]);
uVar6 = (ulong)uVar1;
if (((*(byte *)(param_1 + 4) & 1) != 0) &&
(lVar2 = my_hash_first_from_hash_value(param_1,uVar6,lVar2,local_58[0]), lVar2 != 0)) {
return 1;
}
puVar3 = (uint *)alloc_dynamic(param_1 + 5);
if (puVar3 == (uint *)0x0) {
uVar5 = 1;
}
else {
lVar2 = param_1[5];
if (1 < (ulong)param_1[2]) {
uVar8 = (ulong)param_1[2] >> 1;
uVar15 = param_1[3] - uVar8;
uVar11 = 0;
uVar13 = uVar15;
do {
uVar7 = *(uint *)(lVar2 + 4 + uVar13 * 0x10);
if (uVar11 == 0) {
in_R11 = in_R11 & 0xffffffff;
uVar14 = (ulong)(uVar7 & (int)param_1[2] - 1U);
uVar10 = (ulong)((int)((ulong)param_1[2] >> 1) - 1U & uVar7);
if (uVar14 < (ulong)param_1[3]) {
uVar10 = uVar14;
}
if (uVar15 != uVar10) goto LAB_00129788;
}
puVar4 = (uint *)(uVar13 * 0x10 + lVar2);
puVar9 = puVar4;
if (((uint)uVar8 & uVar7) == 0) {
if ((uVar11 & 1) == 0) {
uVar12 = uVar11 & 4;
uVar11 = (uVar12 >> 1) + 3;
local_40 = puVar3;
if (uVar12 == 0) {
local_40 = puVar4;
puVar9 = puVar3;
}
local_48 = *(int8 *)(puVar4 + 2);
local_38 = uVar7;
}
else {
if ((uVar11 & 2) == 0) {
*(int8 *)(local_40 + 2) = local_48;
local_40[1] = local_38;
*local_40 = (uint)uVar13;
uVar11 = uVar11 & 4 | 3;
uVar7 = puVar4[1];
}
local_48 = *(int8 *)(puVar4 + 2);
puVar9 = puVar3;
local_40 = puVar4;
local_38 = uVar7;
}
}
else if ((uVar11 & 4) == 0) {
uVar11 = uVar11 & 1 | 4;
uVar6 = *(ulong *)(puVar4 + 2);
in_R11 = (ulong)uVar7;
unaff_R13 = puVar3;
}
else {
if ((uVar11 & 8) == 0) {
*(ulong *)(unaff_R13 + 2) = uVar6;
unaff_R13[1] = (uint)in_R11;
*unaff_R13 = (uint)uVar13;
uVar11 = uVar11 & 1 | 0xc;
uVar7 = puVar4[1];
}
uVar6 = *(ulong *)(puVar4 + 2);
in_R11 = (ulong)uVar7;
puVar9 = puVar3;
unaff_R13 = puVar4;
}
uVar13 = (ulong)*puVar4;
puVar3 = puVar9;
} while (uVar13 != 0xffffffff);
if ((uVar11 & 3) == 1) {
*(int8 *)(local_40 + 2) = local_48;
local_40[1] = local_38;
*local_40 = 0xffffffff;
}
if ((uVar11 & 0xc) == 4) {
*(ulong *)(unaff_R13 + 2) = uVar6;
unaff_R13[1] = (uint)in_R11;
*unaff_R13 = 0xffffffff;
}
}
LAB_00129788:
uVar13 = (ulong)((int)param_1[2] - 1U & uVar1);
uVar6 = (ulong)((int)((ulong)param_1[2] >> 1) - 1U & uVar1);
if (uVar13 < param_1[3] + 1U) {
uVar6 = uVar13;
}
puVar9 = (uint *)(uVar6 * 0x10 + lVar2);
if (puVar9 == puVar3) {
*puVar9 = 0xffffffff;
}
else {
uVar5 = *(int8 *)(puVar9 + 2);
*(int8 *)puVar3 = *(int8 *)puVar9;
*(int8 *)(puVar3 + 2) = uVar5;
uVar7 = (int)param_1[2] - 1U & puVar9[1];
uVar11 = (int)((ulong)param_1[2] >> 1) - 1U & puVar9[1];
if ((ulong)uVar7 < param_1[3] + 1U) {
uVar11 = uVar7;
}
if ((uint)uVar6 == uVar11) {
*puVar9 = (uint)((ulong)((long)puVar3 - lVar2) >> 4);
}
else {
*puVar9 = 0xffffffff;
do {
uVar13 = (ulong)uVar11;
uVar11 = *(uint *)(lVar2 + uVar13 * 0x10);
} while (uVar11 != (uint)uVar6);
*(int *)(lVar2 + uVar13 * 0x10) = (int)((ulong)((long)puVar3 - lVar2) >> 4);
}
}
*(long *)(puVar9 + 2) = param_2;
puVar9[1] = uVar1;
lVar2 = param_1[3] + 1;
param_1[3] = lVar2;
if (lVar2 == param_1[2]) {
param_1[2] = lVar2 * 2;
}
uVar5 = 0;
}
return uVar5;
}
| |
32,734 | minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value evaluate(const std::shared_ptr<Context> & context) const {
try {
return do_evaluate(context);
} catch (const std::exception & e) {
std::ostringstream out;
out << e.what();
if (location.source) out << error_location_suffix(*location.source, location.pos);
throw std::runtime_error(out.str());
}
} | O1 | cpp | minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
callq *(%rax)
movq %rbx, %rax
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x94295
movq %rbx, %rdi
callq 0x1b390
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1bbd0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x1b8b0
movq 0x8(%r14), %rsi
testq %rsi, %rsi
jne 0x941d1
movl $0x10, %edi
callq 0x1b450
movq %rax, %r14
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1be10
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1be80
xorl %ebp, %ebp
movq 0xa8e26(%rip), %rsi # 0x13cfe8
movq 0xa8d8f(%rip), %rdx # 0x13cf58
movq %r14, %rdi
callq 0x1bf90
movq 0x18(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x853e4
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x1ba10
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9418d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8f0
jmp 0x9418d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9426d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8f0
jmp 0x9426d
jmp 0x9426a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9425b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8f0
jmp 0x9425b
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x9426d
movq %r14, %rdi
callq 0x1b680
jmp 0x9426d
movq %rax, %rbx
movq 0xa8cfc(%rip), %rsi # 0x13cf70
leaq 0x28(%rsp), %rdi
callq 0x1b4b0
leaq 0x98(%rsp), %rdi
callq 0x1b2c0
jmp 0x94290
movq %rax, %rbx
callq 0x1beb0
movq %rbx, %rdi
callq 0x1c020
movq %rax, %rdi
callq 0x2d543
nop
| _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r14
push rbx
sub rsp, 1A0h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi]
call qword ptr [rax]
mov rax, rbx
add rsp, 1A0h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
cmp edx, 1
jnz loc_94295
mov rdi, rbx; void *
call ___cxa_begin_catch
mov rbx, rax
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+10h]
lea rdi, [rsp+arg_20]
mov rsi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rsi, [r14+8]; int
test rsi, rsi
jnz short loc_941D1
loc_9418D:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, [rsp+arg_28]
lea rdi, [rsp+arg_0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov bpl, 1
lea rsi, [rsp+arg_0]
mov rdi, r14
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, r14; void *
call ___cxa_throw
loc_941D1:
mov rdx, [r14+18h]; int
lea rdi, [rsp+arg_0]; int
call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; minja::error_location_suffix(std::string const&,ulong)
mov rsi, qword ptr [rsp+arg_0]
mov rdx, [rsp+arg_8]
lea rdi, [rsp+arg_20]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9418D
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_9418D
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9426D
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9426D
jmp short loc_9426A
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9425B
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9425B
mov rbx, rax
mov bpl, 1
loc_9425B:
test bpl, bpl
jz short loc_9426D
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_9426D
loc_9426A:
mov rbx, rax
loc_9426D:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_90]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
jmp short loc_94290
mov rbx, rax
loc_94290:
call ___cxa_end_catch
loc_94295:
mov rdi, rbx
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long minja::Expression::evaluate(long long a1, void (***a2)(void))
{
(**a2)();
return a1;
}
| evaluate:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x1a0
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
LAB_0019413c:
CALL qword ptr [RAX]
LAB_0019413e:
MOV RAX,RBX
ADD RSP,0x1a0
POP RBX
POP R14
POP RBP
RET
|
/* minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const */
Expression * __thiscall minja::Expression::evaluate(Expression *this,shared_ptr *param_1)
{
/* try { // try from 0019413c to 0019413d has its CatchHandler @ 0019414d */
(*(code *)**(int8 **)param_1)();
return this;
}
| |
32,735 | bool nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<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>> const&) const | llama.cpp/common/json.hpp | bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<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>> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x795fd
testq %rax, %rax
je 0x7965b
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x795dd
cmpl $0x1, %eax
jne 0x795e7
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x795ef
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x795ef
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x21630
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa2ef7(%rip), %rsi # 0x11c511
leaq 0xa2f20(%rip), %rdx # 0x11c541
leaq 0x8(%rsp), %rdi
callq 0x28112
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x796b0
xorl %ebp, %ebp
leaq 0xe99a4(%rip), %rsi # 0x162ff0
leaq -0x395b(%rip), %rdx # 0x75cf8
movq %rbx, %rdi
callq 0x21a50
leaq 0xa1eb0(%rip), %rdi # 0x11b512
leaq 0x9aac8(%rip), %rdx # 0x114131
leaq 0xa81f7(%rip), %rcx # 0x121867
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x21e60
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x79696
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21170
testb %bpl, %bpl
jne 0x796a0
jmp 0x796a8
movq %rax, %r14
movq %rbx, %rdi
callq 0x21ef0
movq %r14, %rdi
callq 0x21af0
| _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
push rbp; void *
push r15; int
push r14; __int64
push rbx; int
sub rsp, 28h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_795FD
test rax, rax
jz loc_7965B
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_795DD
cmp eax, 1
jnz short loc_795E7
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_795EF
loc_795DD:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_795EF
loc_795E7:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_795EF:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_795FD:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+48h+var_30]
mov [r15-10h], r15
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdx, aCannotCompareI+30h; ""
lea rdi, [rsp+48h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0D4h; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_7965B:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_79696
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79696:
test bpl, bpl
jnz short loc_796A0
jmp short loc_796A8
mov r14, rax
loc_796A0:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_796A8:
mov rdi, r14
call __Unwind_Resume
| _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x001795fd
TEST RAX,RAX
JZ 0x0017965b
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x001795dd
CMP EAX,0x1
JNZ 0x001795e7
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x001795ef
LAB_001795dd:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x001795ef
LAB_001795e7:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_001795ef:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001795fd:
MOV EDI,0x20
CALL 0x00121630
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_00179613:
LEA RSI,[0x21c511]
LEA RDX,[0x21c541]
LEA RDI,[RSP + 0x8]
CALL 0x00128112
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_00179631:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x001796b0
XOR EBP,EBP
LEA RSI,[0x262ff0]
LEA RDX,[0x175cf8]
MOV RDI,RBX
CALL 0x00121a50
LAB_0017965b:
LEA RDI,[0x21b512]
LEA RDX,[0x214131]
LEA RCX,[0x221867]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x00121e60
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
int1 *local_40 [2];
int1 local_30 [16];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_40[0] = local_30;
/* try { // try from 00179613 to 0017962a has its CatchHandler @ 0017969d */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 00179631 to 0017965a has its CatchHandler @ 0017967c */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xd4,local_40,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
| ||
32,736 | JS_NewBigInt | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_NewBigInt(JSContext *ctx)
{
JSBigInt *p;
p = js_malloc(ctx, sizeof(*p));
if (!p)
return JS_EXCEPTION;
p->header.ref_count = 1;
bf_init(ctx->bf_ctx, &p->num);
return JS_MKPTR(JS_TAG_BIG_INT, p);
} | O1 | c | JS_NewBigInt:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x30
popq %rsi
callq 0xed5d
testq %rax, %rax
je 0xfe7c
movq %rax, %rbx
movl $0x1, (%rax)
movq 0x1d0(%r14), %rdi
movq %rax, %rsi
addq $0x8, %rsi
callq 0x83e3c
movq %rbx, (%rsp)
pushq $-0x9
jmp 0xfe82
andl $0x0, (%rsp)
pushq $0x6
popq %rdx
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| JS_NewBigInt:
push r14
push rbx
push rax
mov r14, rdi
push 30h ; '0'
pop rsi
call js_malloc
test rax, rax
jz short loc_FE7C
mov rbx, rax
mov dword ptr [rax], 1
mov rdi, [r14+1D0h]
mov rsi, rax
add rsi, 8
call bf_init
mov [rsp+18h+var_18], rbx
push 0FFFFFFFFFFFFFFF7h
jmp short loc_FE82
loc_FE7C:
and dword ptr [rsp+18h+var_18], 0
push 6
loc_FE82:
pop rdx
mov rax, [rsp+18h+var_18]
add rsp, 8
pop rbx
pop r14
retn
| _DWORD * JS_NewBigInt(long long a1)
{
long long v1; // rax
_DWORD *v2; // rax
_DWORD *v3; // rbx
long long v5; // [rsp+0h] [rbp-18h]
HIDWORD(v5) = HIDWORD(v1);
v2 = (_DWORD *)js_malloc(a1, 48LL);
if ( v2 )
{
v3 = v2;
*v2 = 1;
bf_init(*(_QWORD *)(a1 + 464), v2 + 2);
return v3;
}
else
{
LODWORD(v5) = 0;
}
return (_DWORD *)v5;
}
| JS_NewBigInt:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
PUSH 0x30
POP RSI
CALL 0x0010ed5d
TEST RAX,RAX
JZ 0x0010fe7c
MOV RBX,RAX
MOV dword ptr [RAX],0x1
MOV RDI,qword ptr [R14 + 0x1d0]
MOV RSI,RAX
ADD RSI,0x8
CALL 0x00183e3c
MOV qword ptr [RSP],RBX
PUSH -0x9
JMP 0x0010fe82
LAB_0010fe7c:
AND dword ptr [RSP],0x0
PUSH 0x6
LAB_0010fe82:
POP RDX
MOV RAX,qword ptr [RSP]
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] JS_NewBigInt(long param_1)
{
ulong in_RAX;
int1 auVar1 [16];
int8 uStack_20;
int4 *local_18;
local_18 = (int4 *)js_malloc(param_1,0x30);
if (local_18 == (int4 *)0x0) {
local_18 = (int4 *)(in_RAX & 0xffffffff00000000);
uStack_20 = 6;
}
else {
*local_18 = 1;
bf_init(*(int8 *)(param_1 + 0x1d0),local_18 + 2);
uStack_20 = 0xfffffffffffffff7;
}
auVar1._8_8_ = uStack_20;
auVar1._0_8_ = local_18;
return auVar1;
}
| |
32,737 | glfwPlatformSetWindowFloating | untodesu[P]riteg/build_O2/_deps/glfw-src/src/x11_window.c | void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)
{
if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_ABOVE)
return;
if (_glfwPlatformWindowVisible(window))
{
const Atom action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE;
sendEventToWM(window,
_glfw.x11.NET_WM_STATE,
action,
_glfw.x11.NET_WM_STATE_ABOVE,
0, 1, 0);
}
else
{
Atom* states;
unsigned long i, count;
count = _glfwGetWindowPropertyX11(window->x11.handle,
_glfw.x11.NET_WM_STATE,
XA_ATOM,
(unsigned char**) &states);
if (!states)
return;
if (enabled)
{
for (i = 0; i < count; i++)
{
if (states[i] == _glfw.x11.NET_WM_STATE_ABOVE)
break;
}
if (i == count)
{
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_STATE, XA_ATOM, 32,
PropModeAppend,
(unsigned char*) &_glfw.x11.NET_WM_STATE_ABOVE,
1);
}
}
else
{
for (i = 0; i < count; i++)
{
if (states[i] == _glfw.x11.NET_WM_STATE_ABOVE)
{
states[i] = states[count - 1];
count--;
}
}
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_STATE, XA_ATOM, 32,
PropModeReplace, (unsigned char*) &states, count);
}
XFree(states);
}
XFlush(_glfw.x11.display);
} | O2 | c | glfwPlatformSetWindowFloating:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x7c2ad(%rip), %r15 # 0x9b648
cmpq $0x0, 0x20440(%r15)
je 0x1f4c7
cmpq $0x0, 0x20448(%r15)
je 0x1f4c7
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1e886
testl %eax, %eax
je 0x1f3ee
xorl %edx, %edx
testl %ebp, %ebp
setne %dl
movq 0x20440(%r15), %rsi
movq 0x20448(%r15), %rcx
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x1ec6c
jmp 0x1f4bb
movq 0x348(%rbx), %rdi
movq 0x20440(%r15), %rsi
pushq $0x4
popq %rdx
movq %rsp, %r14
movq %r14, %rcx
callq 0x1d574
movq (%r14), %rcx
testq %rcx, %rcx
je 0x1f4c7
testl %ebp, %ebp
je 0x1f433
movq 0x20448(%r15), %rsi
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1f481
cmpq %rsi, (%rcx,%rdx,8)
je 0x1f47c
incq %rdx
jmp 0x1f423
xorl %edx, %edx
cmpq %rax, %rdx
jae 0x1f458
movq (%rcx,%rdx,8), %rsi
cmpq 0x20448(%r15), %rsi
jne 0x1f453
movq -0x8(%rcx,%rax,8), %rsi
movq %rsi, (%rcx,%rdx,8)
decq %rax
incq %rdx
jmp 0x1f435
movq 0x1fec0(%r15), %rdi
movq 0x348(%rbx), %rsi
movq 0x20440(%r15), %rdx
pushq $0x4
popq %rcx
pushq $0x20
popq %r8
xorl %r9d, %r9d
pushq %rax
pushq %r14
jmp 0x1f4ab
cmpq %rdx, %rax
jne 0x1f4b2
movq 0x1fec0(%r15), %rdi
movq 0x348(%rbx), %rsi
movq 0x20440(%r15), %rdx
leaq 0x20448(%r15), %rax
pushq $0x4
popq %rcx
pushq $0x20
popq %r8
pushq $0x2
popq %r9
pushq $0x1
pushq %rax
callq 0xb6e0
popq %rcx
popq %rdx
movq (%rsp), %rdi
callq 0xba70
movq 0x1fec0(%r15), %rdi
callq 0xbcc0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _glfwPlatformSetWindowFloating:
push rbp
push r15
push r14
push rbx
push rax
lea r15, _glfw
cmp qword ptr [r15+20440h], 0
jz loc_1F4C7
cmp qword ptr [r15+20448h], 0
jz loc_1F4C7
mov ebp, esi
mov rbx, rdi
call _glfwPlatformWindowVisible
test eax, eax
jz short loc_1F3EE
xor edx, edx
test ebp, ebp
setnz dl
mov rsi, [r15+20440h]
mov rcx, [r15+20448h]
push 1
pop r9
mov rdi, rbx
xor r8d, r8d
call sendEventToWM
jmp loc_1F4BB
loc_1F3EE:
mov rdi, [rbx+348h]
mov rsi, [r15+20440h]
push 4
pop rdx
mov r14, rsp
mov rcx, r14
call _glfwGetWindowPropertyX11
mov rcx, [r14]
test rcx, rcx
jz loc_1F4C7
test ebp, ebp
jz short loc_1F433
mov rsi, [r15+20448h]
xor edx, edx
loc_1F423:
cmp rax, rdx
jz short loc_1F481
cmp [rcx+rdx*8], rsi
jz short loc_1F47C
inc rdx
jmp short loc_1F423
loc_1F433:
xor edx, edx
loc_1F435:
cmp rdx, rax
jnb short loc_1F458
mov rsi, [rcx+rdx*8]
cmp rsi, [r15+20448h]
jnz short loc_1F453
mov rsi, [rcx+rax*8-8]
mov [rcx+rdx*8], rsi
dec rax
loc_1F453:
inc rdx
jmp short loc_1F435
loc_1F458:
mov rdi, [r15+1FEC0h]
mov rsi, [rbx+348h]
mov rdx, [r15+20440h]
push 4
pop rcx
push 20h ; ' '
pop r8
xor r9d, r9d
push rax
push r14
jmp short loc_1F4AB
loc_1F47C:
cmp rax, rdx
jnz short loc_1F4B2
loc_1F481:
mov rdi, [r15+1FEC0h]
mov rsi, [rbx+348h]
mov rdx, [r15+20440h]
lea rax, [r15+20448h]
push 4
pop rcx
push 20h ; ' '
pop r8
push 2
pop r9
push 1
push rax
loc_1F4AB:
call _XChangeProperty
pop rcx
pop rdx
loc_1F4B2:
mov rdi, [rsp+28h+var_28]
call _XFree
loc_1F4BB:
mov rdi, [r15+1FEC0h]
call _XFlush
loc_1F4C7:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| unsigned long long glfwPlatformSetWindowFloating(long long a1, int a2, double a3)
{
unsigned long long result; // rax
long long v4; // rcx
long long i; // rdx
unsigned long long j; // rdx
_QWORD v7[5]; // [rsp+0h] [rbp-28h] BYREF
v7[0] = result;
if ( *(_QWORD *)&glfw[33040] && *(_QWORD *)&glfw[33042] )
{
if ( glfwPlatformWindowVisible(a1) )
{
sendEventToWM(a1, *(_QWORD *)&glfw[33040], a2 != 0, *(_QWORD *)&glfw[33042], 0LL, 1LL);
}
else
{
result = glfwGetWindowPropertyX11(*(_QWORD *)(a1 + 840), *(_QWORD *)&glfw[33040], 4LL, (long long)v7);
v4 = v7[0];
if ( !v7[0] )
return result;
if ( a2 )
{
for ( i = 0LL; result != i; ++i )
{
if ( *(_QWORD *)(v7[0] + 8 * i) == *(_QWORD *)&glfw[33042] )
{
if ( result != i )
goto LABEL_19;
break;
}
}
XChangeProperty(
*(_QWORD *)&glfw[32688],
*(_QWORD *)(a1 + 840),
*(_QWORD *)&glfw[33040],
4LL,
32LL,
2LL,
&glfw[33042]);
}
else
{
for ( j = 0LL; j < result; ++j )
{
if ( *(_QWORD *)(v4 + 8 * j) == *(_QWORD *)&glfw[33042] )
*(_QWORD *)(v4 + 8 * j) = *(_QWORD *)(v4 + 8 * result-- - 8);
}
XChangeProperty(*(_QWORD *)&glfw[32688], *(_QWORD *)(a1 + 840), *(_QWORD *)&glfw[33040], 4LL, 32LL, 0LL, v7);
}
LABEL_19:
XFree(v7[0]);
}
return XFlush(*(_QWORD *)&glfw[32688], a3);
}
return result;
}
| _glfwPlatformSetWindowFloating:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
LEA R15,[0x19b648]
CMP qword ptr [R15 + 0x20440],0x0
JZ 0x0011f4c7
CMP qword ptr [R15 + 0x20448],0x0
JZ 0x0011f4c7
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0011e886
TEST EAX,EAX
JZ 0x0011f3ee
XOR EDX,EDX
TEST EBP,EBP
SETNZ DL
MOV RSI,qword ptr [R15 + 0x20440]
MOV RCX,qword ptr [R15 + 0x20448]
PUSH 0x1
POP R9
MOV RDI,RBX
XOR R8D,R8D
CALL 0x0011ec6c
JMP 0x0011f4bb
LAB_0011f3ee:
MOV RDI,qword ptr [RBX + 0x348]
MOV RSI,qword ptr [R15 + 0x20440]
PUSH 0x4
POP RDX
MOV R14,RSP
MOV RCX,R14
CALL 0x0011d574
MOV RCX,qword ptr [R14]
TEST RCX,RCX
JZ 0x0011f4c7
TEST EBP,EBP
JZ 0x0011f433
MOV RSI,qword ptr [R15 + 0x20448]
XOR EDX,EDX
LAB_0011f423:
CMP RAX,RDX
JZ 0x0011f481
CMP qword ptr [RCX + RDX*0x8],RSI
JZ 0x0011f47c
INC RDX
JMP 0x0011f423
LAB_0011f433:
XOR EDX,EDX
LAB_0011f435:
CMP RDX,RAX
JNC 0x0011f458
MOV RSI,qword ptr [RCX + RDX*0x8]
CMP RSI,qword ptr [R15 + 0x20448]
JNZ 0x0011f453
MOV RSI,qword ptr [RCX + RAX*0x8 + -0x8]
MOV qword ptr [RCX + RDX*0x8],RSI
DEC RAX
LAB_0011f453:
INC RDX
JMP 0x0011f435
LAB_0011f458:
MOV RDI,qword ptr [R15 + 0x1fec0]
MOV RSI,qword ptr [RBX + 0x348]
MOV RDX,qword ptr [R15 + 0x20440]
PUSH 0x4
POP RCX
PUSH 0x20
POP R8
XOR R9D,R9D
PUSH RAX
PUSH R14
JMP 0x0011f4ab
LAB_0011f47c:
CMP RAX,RDX
JNZ 0x0011f4b2
LAB_0011f481:
MOV RDI,qword ptr [R15 + 0x1fec0]
MOV RSI,qword ptr [RBX + 0x348]
MOV RDX,qword ptr [R15 + 0x20440]
LEA RAX,[R15 + 0x20448]
PUSH 0x4
POP RCX
PUSH 0x20
POP R8
PUSH 0x2
POP R9
PUSH 0x1
PUSH RAX
LAB_0011f4ab:
CALL 0x0010b6e0
POP RCX
POP RDX
LAB_0011f4b2:
MOV RDI,qword ptr [RSP]
CALL 0x0010ba70
LAB_0011f4bb:
MOV RDI,qword ptr [R15 + 0x1fec0]
CALL 0x0010bcc0
LAB_0011f4c7:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void _glfwPlatformSetWindowFloating(long param_1,int param_2)
{
int iVar1;
long in_RAX;
ulong uVar2;
ulong uVar3;
int8 uVar4;
int8 uVar5;
long local_28;
if ((DAT_001bba88 != 0) && (DAT_001bba90 != 0)) {
local_28 = in_RAX;
iVar1 = _glfwPlatformWindowVisible();
if (iVar1 == 0) {
uVar2 = _glfwGetWindowPropertyX11(*(int8 *)(param_1 + 0x348),DAT_001bba88,4,&local_28);
if (local_28 == 0) {
return;
}
if (param_2 == 0) {
for (uVar3 = 0; uVar3 < uVar2; uVar3 = uVar3 + 1) {
if (*(long *)(local_28 + uVar3 * 8) == DAT_001bba90) {
*(int8 *)(local_28 + uVar3 * 8) = *(int8 *)(local_28 + -8 + uVar2 * 8);
uVar2 = uVar2 - 1;
}
}
uVar4 = *(int8 *)(param_1 + 0x348);
uVar5 = 0;
}
else {
for (uVar3 = 0; uVar2 != uVar3; uVar3 = uVar3 + 1) {
if (*(long *)(local_28 + uVar3 * 8) == DAT_001bba90) {
if (uVar2 != uVar3) goto LAB_0011f4b2;
break;
}
}
uVar4 = *(int8 *)(param_1 + 0x348);
uVar5 = 2;
}
XChangeProperty(DAT_001bb508,uVar4,DAT_001bba88,4,0x20,uVar5);
LAB_0011f4b2:
XFree(local_28);
}
else {
sendEventToWM(param_1,DAT_001bba88,param_2 != 0,DAT_001bba90,0,1);
}
XFlush(DAT_001bb508);
}
return;
}
| |
32,738 | testing::internal::String::CaseInsensitiveWideCStringEquals(wchar_t const*, wchar_t const*) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs,
const wchar_t* rhs) {
if (lhs == nullptr) return rhs == nullptr;
if (rhs == nullptr) return false;
#ifdef GTEST_OS_WINDOWS
return _wcsicmp(lhs, rhs) == 0;
#elif defined(GTEST_OS_LINUX) && !defined(GTEST_OS_LINUX_ANDROID)
return wcscasecmp(lhs, rhs) == 0;
#else
// Android, Mac OS X and Cygwin don't define wcscasecmp.
// Other unknown OSes may not define it either.
wint_t left, right;
do {
left = towlower(static_cast<wint_t>(*lhs++));
right = towlower(static_cast<wint_t>(*rhs++));
} while (left && left == right);
return left == right;
#endif // OS selector
} | O0 | cpp | testing::internal::String::CaseInsensitiveWideCStringEquals(wchar_t const*, wchar_t const*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0xcd2a5
cmpq $0x0, (%rsp)
sete %al
andb $0x1, %al
movb %al, 0x17(%rsp)
jmp 0xcd2cd
cmpq $0x0, (%rsp)
jne 0xcd2b3
movb $0x0, 0x17(%rsp)
jmp 0xcd2cd
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x16de0
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| _ZN7testing8internal6String32CaseInsensitiveWideCStringEqualsEPKwS3_:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov [rsp+18h+var_18], rsi
cmp [rsp+18h+var_10], 0
jnz short loc_CD2A5
cmp [rsp+18h+var_18], 0
setz al
and al, 1
mov [rsp+18h+var_1], al
jmp short loc_CD2CD
loc_CD2A5:
cmp [rsp+18h+var_18], 0
jnz short loc_CD2B3
mov [rsp+18h+var_1], 0
jmp short loc_CD2CD
loc_CD2B3:
mov rdi, [rsp+18h+var_10]
mov rsi, [rsp+18h+var_18]
call _wcscasecmp
cmp eax, 0
setz al
and al, 1
mov [rsp+18h+var_1], al
loc_CD2CD:
mov al, [rsp+18h+var_1]
and al, 1
add rsp, 18h
retn
| bool testing::internal::String::CaseInsensitiveWideCStringEquals(long long a1, long long a2)
{
if ( a1 )
return a2 && (unsigned int)wcscasecmp(a1, a2) == 0;
else
return a2 == 0;
}
| CaseInsensitiveWideCStringEquals:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV qword ptr [RSP],RSI
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x001cd2a5
CMP qword ptr [RSP],0x0
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x17],AL
JMP 0x001cd2cd
LAB_001cd2a5:
CMP qword ptr [RSP],0x0
JNZ 0x001cd2b3
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001cd2cd
LAB_001cd2b3:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP]
CALL 0x00116de0
CMP EAX,0x0
SETZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x17],AL
LAB_001cd2cd:
MOV AL,byte ptr [RSP + 0x17]
AND AL,0x1
ADD RSP,0x18
RET
|
/* testing::internal::String::CaseInsensitiveWideCStringEquals(wchar_t const*, wchar_t const*) */
bool testing::internal::String::CaseInsensitiveWideCStringEquals(wchar_t *param_1,wchar_t *param_2)
{
int iVar1;
int1 local_1;
if (param_1 == (wchar_t *)0x0) {
local_1 = param_2 == (wchar_t *)0x0;
}
else if (param_2 == (wchar_t *)0x0) {
local_1 = false;
}
else {
iVar1 = wcscasecmp(param_1,param_2);
local_1 = iVar1 == 0;
}
return local_1;
}
| |
32,739 | my_strxfrm_desc_and_reverse | eloqsql/strings/ctype-simple.c | void
my_strxfrm_desc_and_reverse(uchar *str, uchar *strend,
uint flags, uint level)
{
if (flags & (MY_STRXFRM_DESC_LEVEL1 << level))
{
if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str <= strend;)
{
uchar tmp= *str;
*str++= ~*strend;
*strend--= ~tmp;
}
}
else
{
for (; str < strend; str++)
*str= ~*str;
}
}
else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str < strend;)
{
uchar tmp= *str;
*str++= *strend;
*strend--= tmp;
}
}
} | O0 | c | my_strxfrm_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x100, %edx # imm = 0x100
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x4a3ac
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x10000, %edx # imm = 0x10000
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x4a37c
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x4a37a
movq -0x8(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movzbl -0x19(%rbp), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x4a32e
jmp 0x4a3aa
jmp 0x4a37e
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x4a3a8
movq -0x8(%rbp), %rax
movzbl (%rax), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, (%rax)
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x4a37e
jmp 0x4a3aa
jmp 0x4a412
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x10000, %edx # imm = 0x10000
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x4a410
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x4a40e
movq -0x8(%rbp), %rax
movb (%rax), %al
movb %al, -0x1a(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movb -0x1a(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x4a3ce
jmp 0x4a410
jmp 0x4a412
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strxfrm_desc_and_reverse:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 100h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz loc_4A3AC
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 10000h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz short loc_4A37C
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
loc_4A32E:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
ja short loc_4A37A
mov rax, [rbp+var_8]
mov al, [rax]
mov [rbp+var_19], al
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
movzx eax, [rbp+var_19]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_4A32E
loc_4A37A:
jmp short loc_4A3AA
loc_4A37C:
jmp short $+2
loc_4A37E:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_4A3A8
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax], cl
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_4A37E
loc_4A3A8:
jmp short $+2
loc_4A3AA:
jmp short loc_4A412
loc_4A3AC:
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 10000h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz short loc_4A410
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
loc_4A3CE:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_4A40E
mov rax, [rbp+var_8]
mov al, [rax]
mov [rbp+var_1A], al
mov rax, [rbp+var_10]
mov cl, [rax]
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov cl, [rbp+var_1A]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_4A3CE
loc_4A40E:
jmp short $+2
loc_4A410:
jmp short $+2
loc_4A412:
pop rbp
retn
| _BYTE * my_strxfrm_desc_and_reverse(_BYTE *a1, unsigned long long a2, unsigned int a3, char a4)
{
_BYTE *result; // rax
_BYTE *v5; // rax
_BYTE *v6; // rax
_BYTE *v7; // rax
_BYTE *v8; // rax
char v9; // [rsp+0h] [rbp-1Ah]
char v10; // [rsp+1h] [rbp-19h]
_BYTE *i; // [rsp+Ah] [rbp-10h]
_BYTE *j; // [rsp+Ah] [rbp-10h]
if ( ((256 << a4) & a3) != 0 )
{
if ( ((0x10000 << a4) & a3) != 0 )
{
for ( i = (_BYTE *)(a2 - 1); ; --i )
{
result = a1;
if ( a1 > i )
break;
v10 = *a1;
v5 = a1++;
*v5 = ~*i;
v6 = i;
*v6 = ~v10;
}
}
else
{
while ( 1 )
{
result = a1;
if ( (unsigned long long)a1 >= a2 )
break;
*a1 = ~*a1;
++a1;
}
}
}
else
{
result = (_BYTE *)((0x10000 << a4) & a3);
if ( (_DWORD)result )
{
for ( j = (_BYTE *)(a2 - 1); ; --j )
{
result = a1;
if ( a1 >= j )
break;
v9 = *a1;
v7 = a1++;
*v7 = *j;
v8 = j;
*v8 = v9;
}
}
}
return result;
}
| my_strxfrm_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x100
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x0014a3ac
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x10000
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x0014a37c
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_0014a32e:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x0014a37a
MOV RAX,qword ptr [RBP + -0x8]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOVZX EAX,byte ptr [RBP + -0x19]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x0014a32e
LAB_0014a37a:
JMP 0x0014a3aa
LAB_0014a37c:
JMP 0x0014a37e
LAB_0014a37e:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x0014a3a8
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014a37e
LAB_0014a3a8:
JMP 0x0014a3aa
LAB_0014a3aa:
JMP 0x0014a412
LAB_0014a3ac:
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x10000
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x0014a410
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_0014a3ce:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x0014a40e
MOV RAX,qword ptr [RBP + -0x8]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x1a],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV CL,byte ptr [RBP + -0x1a]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x0014a3ce
LAB_0014a40e:
JMP 0x0014a410
LAB_0014a410:
JMP 0x0014a412
LAB_0014a412:
POP RBP
RET
|
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4)
{
byte bVar1;
byte *local_18;
byte *local_10;
if ((param_3 & 0x100 << (param_4 & 0x1f)) == 0) {
if ((param_3 & 0x10000 << (param_4 & 0x1f)) != 0) {
local_18 = param_2 + -1;
local_10 = param_1;
while (local_10 < local_18) {
bVar1 = *local_10;
*local_10 = *local_18;
*local_18 = bVar1;
local_18 = local_18 + -1;
local_10 = local_10 + 1;
}
}
}
else {
local_10 = param_1;
if ((param_3 & 0x10000 << (param_4 & 0x1f)) == 0) {
for (; local_10 < param_2; local_10 = local_10 + 1) {
*local_10 = *local_10 ^ 0xff;
}
}
else {
local_18 = param_2 + -1;
local_10 = param_1;
while (local_10 <= local_18) {
bVar1 = *local_10;
*local_10 = *local_18 ^ 0xff;
*local_18 = bVar1 ^ 0xff;
local_18 = local_18 + -1;
local_10 = local_10 + 1;
}
}
}
return;
}
| |
32,740 | my_wc_mb_filename | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
static const char hex[]= "0123456789abcdef";
if (s >= e)
return MY_CS_TOOSMALL;
if (wc < 128 && filename_safe_char[wc])
{
*s= (uchar) wc;
return 1;
}
if (s + 3 > e)
return MY_CS_TOOSMALL3;
*s++= MY_FILENAME_ESCAPE;
if ((wc >= 0x00C0 && wc <= 0x05FF && (code= uni_0C00_05FF[wc - 0x00C0])) ||
(wc >= 0x1E00 && wc <= 0x1FFF && (code= uni_1E00_1FFF[wc - 0x1E00])) ||
(wc >= 0x2160 && wc <= 0x217F && (code= uni_2160_217F[wc - 0x2160])) ||
(wc >= 0x24B0 && wc <= 0x24EF && (code= uni_24B0_24EF[wc - 0x24B0])) ||
(wc >= 0xFF20 && wc <= 0xFF5F && (code= uni_FF20_FF5F[wc - 0xFF20])))
{
*s++= (code / 80) + 0x30;
*s++= (code % 80) + 0x30;
return 3;
}
/* Non letter */
if (s + 4 > e)
return MY_CS_TOOSMALL5;
*s++= hex[(wc >> 12) & 15];
*s++= hex[(wc >> 8) & 15];
*s++= hex[(wc >> 4) & 15];
*s++= hex[(wc) & 15];
return 5;
} | O3 | c | my_wc_mb_filename:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x8a19a
cmpq $0x7f, %rsi
ja 0x8a0fa
leaq 0x2865e9(%rip), %rax # 0x3106d0
cmpb $0x0, (%rsi,%rax)
je 0x8a0fa
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x8a19a
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x8a19a
movb $0x40, (%rdx)
leaq -0xc0(%rsi), %rax
cmpq $0x53f, %rax # imm = 0x53F
ja 0x8a132
leaq 0x289b4b(%rip), %rax # 0x313c70
movzwl -0x180(%rax,%rsi,2), %eax
testw %ax, %ax
jne 0x8a175
movq %rsi, %rax
andq $-0x200, %rax # imm = 0xFE00
cmpq $0x1e00, %rax # imm = 0x1E00
jne 0x8a157
leaq 0x2895e6(%rip), %rax # 0x313730
movzwl -0x3c00(%rax,%rsi,2), %eax
testw %ax, %ax
jne 0x8a175
movq %rsi, %rax
andq $-0x20, %rax
cmpq $0x2160, %rax # imm = 0x2160
jne 0x8a19c
leaq 0x2899c3(%rip), %rax # 0x313b30
movzwl -0x42c0(%rax,%rsi,2), %eax
movzwl %ax, %ecx
imull $0xcccd, %ecx, %ecx # imm = 0xCCCD
shrl $0x16, %ecx
leal 0x30(%rcx), %esi
movb %sil, 0x1(%rdx)
shll $0x4, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
addb $0x30, %al
movb %al, 0x2(%rdx)
movl $0x3, %eax
popq %rbp
retq
leaq -0x24b0(%rsi), %rax
cmpq $0x3f, %rax
ja 0x8a1c7
leaq -0x24ea(%rsi), %rax
cmpq $-0x34, %rax
jb 0x8a1f5
leaq 0x2899b3(%rip), %rax # 0x313b70
movzwl -0x4960(%rax,%rsi,2), %eax
jmp 0x8a175
leaq -0xff20(%rsi), %rax
cmpq $0x3f, %rax
ja 0x8a1f5
movabsq $-0x7fffffe07ffffff, %rdi # imm = 0xF8000001F8000001
btq %rax, %rdi
jb 0x8a1f5
leaq 0x289a05(%rip), %rax # 0x313bf0
movzwl -0x1fe40(%rax,%rsi,2), %eax
jmp 0x8a175
leaq 0x5(%rdx), %rdi
movl $0xffffff97, %eax # imm = 0xFFFFFF97
cmpq %rcx, %rdi
ja 0x8a19a
movl %esi, %eax
shrl $0xc, %eax
andl $0xf, %eax
leaq 0x28a4de(%rip), %rcx # 0x3146f0
movb (%rax,%rcx), %al
movb %al, 0x1(%rdx)
movl %esi, %eax
shrl $0x8, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x2(%rdx)
movl %esi, %eax
shrl $0x4, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x3(%rdx)
andl $0xf, %esi
movb (%rsi,%rcx), %al
movb %al, 0x4(%rdx)
movl $0x5, %eax
jmp 0x8a19a
| my_wc_mb_filename:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_8A19A
cmp rsi, 7Fh
ja short loc_8A0FA
lea rax, filename_safe_char
cmp byte ptr [rsi+rax], 0
jz short loc_8A0FA
mov [rdx], sil
mov eax, 1
jmp loc_8A19A
loc_8A0FA:
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja loc_8A19A
mov byte ptr [rdx], 40h ; '@'
lea rax, [rsi-0C0h]
cmp rax, 53Fh
ja short loc_8A132
lea rax, uni_0C00_05FF
movzx eax, word ptr [rax+rsi*2-180h]
test ax, ax
jnz short loc_8A175
loc_8A132:
mov rax, rsi
and rax, 0FFFFFFFFFFFFFE00h
cmp rax, 1E00h
jnz short loc_8A157
lea rax, uni_1E00_1FFF
movzx eax, word ptr [rax+rsi*2-3C00h]
test ax, ax
jnz short loc_8A175
loc_8A157:
mov rax, rsi
and rax, 0FFFFFFFFFFFFFFE0h
cmp rax, 2160h
jnz short loc_8A19C
lea rax, uni_2160_217F
movzx eax, word ptr [rax+rsi*2-42C0h]
loc_8A175:
movzx ecx, ax
imul ecx, 0CCCDh
shr ecx, 16h
lea esi, [rcx+30h]
mov [rdx+1], sil
shl ecx, 4
lea ecx, [rcx+rcx*4]
sub eax, ecx
add al, 30h ; '0'
mov [rdx+2], al
mov eax, 3
loc_8A19A:
pop rbp
retn
loc_8A19C:
lea rax, [rsi-24B0h]
cmp rax, 3Fh ; '?'
ja short loc_8A1C7
lea rax, [rsi-24EAh]
cmp rax, 0FFFFFFFFFFFFFFCCh
jb short loc_8A1F5
lea rax, uni_24B0_24EF
movzx eax, word ptr [rax+rsi*2-4960h]
jmp short loc_8A175
loc_8A1C7:
lea rax, [rsi-0FF20h]
cmp rax, 3Fh ; '?'
ja short loc_8A1F5
mov rdi, 0F8000001F8000001h
bt rdi, rax
jb short loc_8A1F5
lea rax, uni_FF20_FF5F
movzx eax, word ptr [rax+rsi*2-1FE40h]
jmp short loc_8A175
loc_8A1F5:
lea rdi, [rdx+5]
mov eax, 0FFFFFF97h
cmp rdi, rcx
ja short loc_8A19A
mov eax, esi
shr eax, 0Ch
and eax, 0Fh
lea rcx, my_wc_mb_filename_hex; "0123456789abcdef"
mov al, [rax+rcx]
mov [rdx+1], al
mov eax, esi
shr eax, 8
and eax, 0Fh
mov al, [rax+rcx]
mov [rdx+2], al
mov eax, esi
shr eax, 4
and eax, 0Fh
mov al, [rax+rcx]
mov [rdx+3], al
and esi, 0Fh
mov al, [rsi+rcx]
mov [rdx+4], al
mov eax, 5
jmp loc_8A19A
| long long my_wc_mb_filename(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
unsigned __int16 v5; // ax
unsigned long long v6; // rdi
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 0x7F && filename_safe_char[a2] )
{
*a3 = a2;
return 1LL;
}
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = 64;
if ( a2 - 192 <= 0x53F )
{
v5 = uni_0C00_05FF[a2 - 192];
if ( v5 )
goto LABEL_12;
}
if ( (a2 & 0xFFFFFFFFFFFFFE00LL) == 0x1E00 )
{
v5 = uni_1E00_1FFF[a2 - 7680];
if ( v5 )
goto LABEL_12;
}
if ( (a2 & 0xFFFFFFFFFFFFFFE0LL) == 0x2160 )
{
v5 = uni_2160_217F[a2 - 8544];
LABEL_12:
a3[1] = v5 / 0x50u + 48;
a3[2] = v5 % 0x50u + 48;
return 3LL;
}
if ( a2 - 9392 > 0x3F )
{
if ( a2 - 65312 <= 0x3F )
{
v6 = 0xF8000001F8000001LL;
if ( !_bittest64((const long long *)&v6, a2 - 65312) )
{
v5 = uni_FF20_FF5F[a2 - 65312];
goto LABEL_12;
}
}
}
else if ( a2 - 9450 >= 0xFFFFFFFFFFFFFFCCLL )
{
v5 = uni_24B0_24EF[a2 - 9392];
goto LABEL_12;
}
result = 4294967191LL;
if ( (unsigned long long)(a3 + 5) <= a4 )
{
a3[1] = my_wc_mb_filename_hex[(unsigned __int16)a2 >> 12];
a3[2] = my_wc_mb_filename_hex[((unsigned int)a2 >> 8) & 0xF];
a3[3] = my_wc_mb_filename_hex[(unsigned __int8)a2 >> 4];
a3[4] = my_wc_mb_filename_hex[a2 & 0xF];
return 5LL;
}
}
}
return result;
}
| my_wc_mb_filename:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0018a19a
CMP RSI,0x7f
JA 0x0018a0fa
LEA RAX,[0x4106d0]
CMP byte ptr [RSI + RAX*0x1],0x0
JZ 0x0018a0fa
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x0018a19a
LAB_0018a0fa:
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x0018a19a
MOV byte ptr [RDX],0x40
LEA RAX,[RSI + -0xc0]
CMP RAX,0x53f
JA 0x0018a132
LEA RAX,[0x413c70]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x180]
TEST AX,AX
JNZ 0x0018a175
LAB_0018a132:
MOV RAX,RSI
AND RAX,-0x200
CMP RAX,0x1e00
JNZ 0x0018a157
LEA RAX,[0x413730]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x3c00]
TEST AX,AX
JNZ 0x0018a175
LAB_0018a157:
MOV RAX,RSI
AND RAX,-0x20
CMP RAX,0x2160
JNZ 0x0018a19c
LEA RAX,[0x413b30]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x42c0]
LAB_0018a175:
MOVZX ECX,AX
IMUL ECX,ECX,0xcccd
SHR ECX,0x16
LEA ESI,[RCX + 0x30]
MOV byte ptr [RDX + 0x1],SIL
SHL ECX,0x4
LEA ECX,[RCX + RCX*0x4]
SUB EAX,ECX
ADD AL,0x30
MOV byte ptr [RDX + 0x2],AL
MOV EAX,0x3
LAB_0018a19a:
POP RBP
RET
LAB_0018a19c:
LEA RAX,[RSI + -0x24b0]
CMP RAX,0x3f
JA 0x0018a1c7
LEA RAX,[RSI + -0x24ea]
CMP RAX,-0x34
JC 0x0018a1f5
LEA RAX,[0x413b70]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x4960]
JMP 0x0018a175
LAB_0018a1c7:
LEA RAX,[RSI + -0xff20]
CMP RAX,0x3f
JA 0x0018a1f5
MOV RDI,-0x7fffffe07ffffff
BT RDI,RAX
JC 0x0018a1f5
LEA RAX,[0x413bf0]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x1fe40]
JMP 0x0018a175
LAB_0018a1f5:
LEA RDI,[RDX + 0x5]
MOV EAX,0xffffff97
CMP RDI,RCX
JA 0x0018a19a
MOV EAX,ESI
SHR EAX,0xc
AND EAX,0xf
LEA RCX,[0x4146f0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x1],AL
MOV EAX,ESI
SHR EAX,0x8
AND EAX,0xf
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x2],AL
MOV EAX,ESI
SHR EAX,0x4
AND EAX,0xf
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x3],AL
AND ESI,0xf
MOV AL,byte ptr [RSI + RCX*0x1]
MOV byte ptr [RDX + 0x4],AL
MOV EAX,0x5
JMP 0x0018a19a
|
int8
my_wc_mb_filename(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
ushort uVar1;
if (param_4 <= param_3) {
return 0xffffff9b;
}
if ((param_2 < 0x80) && (filename_safe_char[param_2] != '\0')) {
*param_3 = (char)param_2;
return 1;
}
if (param_4 < param_3 + 3) {
return 0xffffff99;
}
*param_3 = 0x40;
if (((0x53f < param_2 - 0xc0) ||
(uVar1 = *(ushort *)(uni_1E00_1FFF + param_2 * 2 + 0x3c0), uVar1 == 0)) &&
(((param_2 & 0xfffffffffffffe00) != 0x1e00 ||
(uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1f780), uVar1 == 0)))) {
if ((param_2 & 0xffffffffffffffe0) == 0x2160) {
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1f4c0);
}
else if (param_2 - 0x24b0 < 0x40) {
if (param_2 - 0x24ea < 0xffffffffffffffcc) {
LAB_0018a1f5:
if (param_4 < param_3 + 5) {
return 0xffffff97;
}
param_3[1] = "0123456789abcdef"[(uint)(param_2 >> 0xc) & 0xf];
param_3[2] = "0123456789abcdef"[(uint)(param_2 >> 8) & 0xf];
param_3[3] = "0123456789abcdef"[(uint)(param_2 >> 4) & 0xf];
param_3[4] = "0123456789abcdef"[(uint)param_2 & 0xf];
return 5;
}
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1ee60);
}
else {
if ((0x3f < param_2 - 0xff20) || ((0xf8000001f8000001U >> (param_2 - 0xff20 & 0x3f) & 1) != 0)
) goto LAB_0018a1f5;
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x3a00);
}
}
param_3[1] = (char)(uVar1 / 0x50) + '0';
param_3[2] = (char)uVar1 + (char)(uVar1 / 0x50 << 4) * -5 + '0';
return 3;
}
| |
32,741 | release_whole_queue | eloqsql/mysys/mf_keycache.c | static void release_whole_queue(KEYCACHE_WQUEUE *wqueue)
{
struct st_my_thread_var *last;
struct st_my_thread_var *next;
struct st_my_thread_var *thread;
/* Queue may be empty. */
if (!(last= wqueue->last_thread))
return;
next= last->next; /* First (oldest) element */
do
{
thread=next;
DBUG_ASSERT(thread && thread->init == 1);
KEYCACHE_DBUG_PRINT("release_whole_queue: signal",
("thread %ld", (ulong) thread->id));
/* Take thread from queue. */
next= thread->next;
thread->next= NULL;
/* Signal the thread. */
keycache_pthread_cond_signal(&thread->suspend);
}
while (thread != last);
/* Now queue is definitely empty. */
wqueue->last_thread= NULL;
} | O3 | c | release_whole_queue:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r14
testq %r14, %r14
je 0x99950
movq %rdi, %rbx
movq 0x88(%r14), %r12
leaq 0x2ee7b4(%rip), %r15 # 0x3880c0
movq 0x38(%r12), %rdi
movq 0x88(%r12), %r13
movq $0x0, 0x88(%r12)
testq %rdi, %rdi
jne 0x9993e
leaq 0x8(%r12), %rdi
callq 0x295c0
cmpq %r14, %r12
movq %r13, %r12
jne 0x9990c
jmp 0x99949
movq (%r15), %rax
callq *0x170(%rax)
jmp 0x9992a
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| release_whole_queue:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, [rdi]
test r14, r14
jz short loc_99950
mov rbx, rdi
mov r12, [r14+88h]
lea r15, PSI_server
loc_9990C:
mov rdi, [r12+38h]
mov r13, [r12+88h]
mov qword ptr [r12+88h], 0
test rdi, rdi
jnz short loc_9993E
loc_9992A:
lea rdi, [r12+8]
call _pthread_cond_signal
cmp r12, r14
mov r12, r13
jnz short loc_9990C
jmp short loc_99949
loc_9993E:
mov rax, [r15]
call qword ptr [rax+170h]
jmp short loc_9992A
loc_99949:
mov qword ptr [rbx], 0
loc_99950:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long release_whole_queue(long long *a1)
{
long long v1; // r14
long long v3; // r12
long long v4; // rdi
long long v5; // r13
long long result; // rax
bool v7; // zf
v1 = *a1;
if ( *a1 )
{
v3 = *(_QWORD *)(v1 + 136);
do
{
v4 = *(_QWORD *)(v3 + 56);
v5 = *(_QWORD *)(v3 + 136);
*(_QWORD *)(v3 + 136) = 0LL;
if ( v4 )
((void ( *)(long long))PSI_server[46])(v4);
result = pthread_cond_signal(v3 + 8);
v7 = v3 == v1;
v3 = v5;
}
while ( !v7 );
*a1 = 0LL;
}
return result;
}
| release_whole_queue:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,qword ptr [RDI]
TEST R14,R14
JZ 0x00199950
MOV RBX,RDI
MOV R12,qword ptr [R14 + 0x88]
LEA R15,[0x4880c0]
LAB_0019990c:
MOV RDI,qword ptr [R12 + 0x38]
MOV R13,qword ptr [R12 + 0x88]
MOV qword ptr [R12 + 0x88],0x0
TEST RDI,RDI
JNZ 0x0019993e
LAB_0019992a:
LEA RDI,[R12 + 0x8]
CALL 0x001295c0
CMP R12,R14
MOV R12,R13
JNZ 0x0019990c
JMP 0x00199949
LAB_0019993e:
MOV RAX,qword ptr [R15]
CALL qword ptr [RAX + 0x170]
JMP 0x0019992a
LAB_00199949:
MOV qword ptr [RBX],0x0
LAB_00199950:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void release_whole_queue(long *param_1)
{
long lVar1;
long lVar2;
long lVar3;
bool bVar4;
lVar1 = *param_1;
if (lVar1 != 0) {
lVar3 = *(long *)(lVar1 + 0x88);
do {
lVar2 = *(long *)(lVar3 + 0x88);
*(int8 *)(lVar3 + 0x88) = 0;
if (*(long *)(lVar3 + 0x38) != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal((pthread_cond_t *)(lVar3 + 8));
bVar4 = lVar3 != lVar1;
lVar3 = lVar2;
} while (bVar4);
*param_1 = 0;
}
return;
}
| |
32,742 | maria_ft_add_word | eloqsql/storage/maria/ma_ft_parser.c | static int maria_ft_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int word_len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info
__attribute__((unused)))
{
TREE *wtree;
FT_WORD w;
MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam;
DBUG_ENTER("maria_ft_add_word");
wtree= ft_param->wtree;
if (param->flags & MYSQL_FTFLAGS_NEED_COPY)
{
uchar *ptr;
DBUG_ASSERT(wtree->with_delete == 0);
ptr= (uchar *)alloc_root(ft_param->mem_root, word_len);
memcpy(ptr, word, word_len);
w.pos= ptr;
}
else
w.pos= (uchar*) word;
w.len= word_len;
if (!tree_insert(wtree, &w, 0, wtree->custom_arg))
{
delete_tree(wtree, 0);
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O0 | c | maria_ft_add_word:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x78e11
jmp 0x78ddf
jmp 0x78de1
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rsi
callq 0xeeb90
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
callq 0x2a090
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x78e19
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x230(%rax), %rcx
leaq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0xfc140
cmpq $0x0, %rax
jne 0x78e53
movq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0xfbf70
movl $0x1, -0x4(%rbp)
jmp 0x78e5c
jmp 0x78e55
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| maria_ft_add_word:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov eax, [rax+34h]
and eax, 1
cmp eax, 0
jz short loc_78E11
jmp short $+2
loc_78DDF:
jmp short $+2
loc_78DE1:
mov rax, [rbp+var_50]
mov rdi, [rax+8]
movsxd rsi, [rbp+var_1C]
call alloc_root
mov [rbp+var_58], rax
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
call _memcpy
mov rax, [rbp+var_58]
mov [rbp+var_48], rax
jmp short loc_78E19
loc_78E11:
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
loc_78E19:
mov eax, [rbp+var_1C]
mov [rbp+var_40], eax
mov rdi, [rbp+var_30]
mov rax, [rbp+var_30]
mov rcx, [rax+230h]
lea rsi, [rbp+var_48]
xor edx, edx
call tree_insert
cmp rax, 0
jnz short loc_78E53
mov rdi, [rbp+var_30]
xor esi, esi
call delete_tree
mov [rbp+var_4], 1
jmp short loc_78E5C
loc_78E53:
jmp short $+2
loc_78E55:
mov [rbp+var_4], 0
loc_78E5C:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long maria_ft_add_word(long long a1, long long a2, int a3, long long a4)
{
long long v5; // [rsp+8h] [rbp-58h]
long long *v6; // [rsp+10h] [rbp-50h]
long long v7; // [rsp+18h] [rbp-48h] BYREF
int v8; // [rsp+20h] [rbp-40h]
long long v9; // [rsp+30h] [rbp-30h]
long long v10; // [rsp+38h] [rbp-28h]
int v11; // [rsp+44h] [rbp-1Ch]
long long v12; // [rsp+48h] [rbp-18h]
long long v13; // [rsp+50h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v6 = *(long long **)(a1 + 24);
v9 = *v6;
if ( (*(_DWORD *)(a1 + 52) & 1) != 0 )
{
v5 = alloc_root(v6[1], v11);
memcpy(v5, v12, v11);
v7 = v5;
}
else
{
v7 = v12;
}
v8 = v11;
if ( tree_insert(v9, &v7, 0LL, *(_QWORD *)(v9 + 560)) )
{
return 0;
}
else
{
delete_tree(v9, 0LL);
return 1;
}
}
| maria_ft_add_word:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x34]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00178e11
JMP 0x00178ddf
LAB_00178ddf:
JMP 0x00178de1
LAB_00178de1:
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX + 0x8]
MOVSXD RSI,dword ptr [RBP + -0x1c]
CALL 0x001eeb90
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00178e19
LAB_00178e11:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
LAB_00178e19:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x40],EAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX + 0x230]
LEA RSI,[RBP + -0x48]
XOR EDX,EDX
CALL 0x001fc140
CMP RAX,0x0
JNZ 0x00178e53
MOV RDI,qword ptr [RBP + -0x30]
XOR ESI,ESI
CALL 0x001fbf70
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00178e5c
LAB_00178e53:
JMP 0x00178e55
LAB_00178e55:
MOV dword ptr [RBP + -0x4],0x0
LAB_00178e5c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
bool maria_ft_add_word(long param_1,void *param_2,int param_3,int8 param_4)
{
void *__dest;
long lVar1;
void *local_50;
int local_48;
long local_38;
int8 local_30;
int local_24;
void *local_20;
long local_18;
local_38 = **(long **)(param_1 + 0x18);
local_50 = param_2;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
if ((*(uint *)(param_1 + 0x34) & 1) != 0) {
__dest = (void *)alloc_root((*(long **)(param_1 + 0x18))[1],(long)param_3);
memcpy(__dest,local_20,(long)local_24);
local_50 = __dest;
}
local_48 = local_24;
lVar1 = tree_insert(local_38,&local_50,0,*(int8 *)(local_38 + 0x230));
if (lVar1 == 0) {
delete_tree(local_38,0);
}
return lVar1 == 0;
}
| |
32,743 | ratio | eloqsql/strings/dtoa.c | static double ratio(Bigint *a, Bigint *b)
{
U da, db;
int k, ka, kb;
dval(&da)= b2d(a, &ka);
dval(&db)= b2d(b, &kb);
k= ka - kb + 32*(a->wds - b->wds);
if (k > 0)
word0(&da)+= (ULong)(k*Exp_msk1 * 1.0);
else
{
k= -k;
word0(&db)+= k*Exp_msk1;
}
return dval(&da) / dval(&db);
} | O0 | c | ratio:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x79180
movsd %xmm0, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x79180
movsd %xmm0, -0x20(%rbp)
movl -0x28(%rbp), %eax
subl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
movl 0x14(%rcx), %ecx
movq -0x10(%rbp), %rdx
subl 0x14(%rdx), %ecx
shll $0x5, %ecx
addl %ecx, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x78e24
movl -0x24(%rbp), %eax
shll $0x14, %eax
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x78e38
xorl %eax, %eax
subl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
shll $0x14, %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movsd -0x18(%rbp), %xmm0
divsd -0x20(%rbp), %xmm0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ratio:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_28]
call b2d
movsd [rbp+var_18], xmm0
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_2C]
call b2d
movsd [rbp+var_20], xmm0
mov eax, [rbp+var_28]
sub eax, [rbp+var_2C]
mov rcx, [rbp+var_8]
mov ecx, [rcx+14h]
mov rdx, [rbp+var_10]
sub ecx, [rdx+14h]
shl ecx, 5
add eax, ecx
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jle short loc_78E24
mov eax, [rbp+var_24]
shl eax, 14h
add eax, dword ptr [rbp+var_18+4]
mov dword ptr [rbp+var_18+4], eax
jmp short loc_78E38
loc_78E24:
xor eax, eax
sub eax, [rbp+var_24]
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
shl eax, 14h
add eax, dword ptr [rbp+var_20+4]
mov dword ptr [rbp+var_20+4], eax
loc_78E38:
movsd xmm0, [rbp+var_18]
divsd xmm0, [rbp+var_20]
add rsp, 30h
pop rbp
retn
| double ratio(long long a1, long long a2)
{
int v3; // [rsp+4h] [rbp-2Ch] BYREF
int v4; // [rsp+8h] [rbp-28h] BYREF
int v5; // [rsp+Ch] [rbp-24h]
double v6; // [rsp+10h] [rbp-20h]
double v7; // [rsp+18h] [rbp-18h]
long long v8; // [rsp+20h] [rbp-10h]
long long v9; // [rsp+28h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = b2d(a1, &v4);
v6 = b2d(v8, &v3);
v5 = 32 * (*(_DWORD *)(v9 + 20) - *(_DWORD *)(v8 + 20)) + v4 - v3;
if ( v5 <= 0 )
{
v5 = -v5;
HIDWORD(v6) += v5 << 20;
}
else
{
HIDWORD(v7) += v5 << 20;
}
return v7 / v6;
}
| ratio:
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]
LEA RSI,[RBP + -0x28]
CALL 0x00179180
MOVSD qword ptr [RBP + -0x18],XMM0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x2c]
CALL 0x00179180
MOVSD qword ptr [RBP + -0x20],XMM0
MOV EAX,dword ptr [RBP + -0x28]
SUB EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x14]
MOV RDX,qword ptr [RBP + -0x10]
SUB ECX,dword ptr [RDX + 0x14]
SHL ECX,0x5
ADD EAX,ECX
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JLE 0x00178e24
MOV EAX,dword ptr [RBP + -0x24]
SHL EAX,0x14
ADD EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00178e38
LAB_00178e24:
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
SHL EAX,0x14
ADD EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x1c],EAX
LAB_00178e38:
MOVSD XMM0,qword ptr [RBP + -0x18]
DIVSD XMM0,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
double ratio(long param_1,long param_2)
{
int iVar1;
double dVar2;
int local_34;
int local_30 [2];
int8 local_28;
int8 local_20;
long local_18;
long local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = (double)b2d(param_1,local_30);
dVar2 = (double)b2d(local_18,&local_34);
iVar1 = (local_30[0] - local_34) + (*(int *)(local_10 + 0x14) - *(int *)(local_18 + 0x14)) * 0x20;
if (iVar1 < 1) {
local_28._4_4_ = (int)((ulong)dVar2 >> 0x20);
local_28 = (double)CONCAT44(iVar1 * -0x100000 + local_28._4_4_,SUB84(dVar2,0));
}
else {
local_20 = (double)CONCAT44(iVar1 * 0x100000 + local_20._4_4_,(int4)local_20);
local_28 = dVar2;
}
return local_20 / local_28;
}
| |
32,744 | safe_hash_set | eloqsql/mysys/my_safehash.c | my_bool safe_hash_set(SAFE_HASH *hash, const uchar *key, uint length,
uchar *data)
{
SAFE_HASH_ENTRY *entry;
my_bool error= 0;
DBUG_ENTER("safe_hash_set");
DBUG_PRINT("enter",("key: %.*s data: %p", length, key, data));
mysql_rwlock_wrlock(&hash->mutex);
entry= (SAFE_HASH_ENTRY*) my_hash_search(&hash->hash, key, length);
if (data == hash->default_value)
{
/*
The key is to be associated with the default entry. In this case
we can just delete the entry (if it existed) from the hash as a
search will return the default entry
*/
if (!entry) /* nothing to do */
goto end;
/* unlink entry from list */
if ((*entry->prev= entry->next))
entry->next->prev= entry->prev;
my_hash_delete(&hash->hash, (uchar*) entry);
goto end;
}
if (entry)
{
/* Entry existed; Just change the pointer to point at the new data */
entry->data= data;
}
else
{
if (!(entry= (SAFE_HASH_ENTRY *) my_malloc(key_memory_SAFE_HASH_ENTRY,
sizeof(*entry) + length,
MYF(MY_WME))))
{
error= 1;
goto end;
}
entry->key= (uchar*) (entry +1);
memcpy((char*) entry->key, (char*) key, length);
entry->length= length;
entry->data= data;
/* Link entry to list */
if ((entry->next= hash->root))
entry->next->prev= &entry->next;
entry->prev= &hash->root;
hash->root= entry;
if (my_hash_insert(&hash->hash, (uchar*) entry))
{
/* This can only happen if hash got out of memory */
my_free(entry);
error= 1;
goto end;
}
}
end:
mysql_rwlock_unlock(&hash->mutex);
DBUG_RETURN(error);
} | O3 | c | safe_hash_set:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x90(%rdi)
jne 0xa700c
movq %rbx, %rdi
callq 0xa5321
leaq 0x98(%rbx), %r13
movl %r15d, -0x2c(%rbp)
movl %r15d, %r15d
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x94b86
cmpq %r12, 0x108(%rbx)
je 0xa6f2a
testq %rax, %rax
je 0xa6f7f
movq %r12, 0x10(%rax)
jmp 0xa6f52
testq %rax, %rax
je 0xa6f52
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
movq %rcx, (%rdx)
testq %rcx, %rcx
je 0xa6f47
movq 0x20(%rax), %rdx
movq %rdx, 0x20(%rcx)
movq %r13, %rdi
movq %rax, %rsi
callq 0x950ea
xorl %r14d, %r14d
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
jne 0xa7025
movq %rbx, %rdi
callq 0xa53c2
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, -0x38(%rbp)
leaq 0xb639fa(%rip), %rax # 0xc0a984
movl (%rax), %edi
leaq 0x28(%r15), %rsi
movl $0x10, %edx
callq 0xa0c8d
testq %rax, %rax
je 0xa7004
movq %rax, %r13
leaq 0x28(%rax), %rdi
movq %rdi, (%rax)
movq %r14, %rsi
movq %r15, %rdx
callq 0x29080
movl -0x2c(%rbp), %eax
movl %eax, 0x8(%r13)
movq %r12, 0x10(%r13)
leaq 0x110(%rbx), %rax
movq 0x110(%rbx), %rcx
movq %rcx, 0x18(%r13)
testq %rcx, %rcx
je 0xa6fe1
movq %r13, %rdx
addq $0x18, %rdx
movq %rdx, 0x20(%rcx)
movq %rax, 0x20(%r13)
movq %r13, (%rax)
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq 0x94de6
testb %al, %al
je 0xa6f52
movq %r13, %rdi
callq 0xa0eba
movb $0x1, %r14b
jmp 0xa6f55
leaq 0x36bcf(%rip), %rsi # 0xddbe2
movq %rbx, %rdi
movl $0xcf, %edx
callq 0x2ed7b
jmp 0xa6efa
leaq 0x2e1094(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x168(%rax)
jmp 0xa6f65
| safe_hash_set:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, rcx
mov r15d, edx
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rdi+90h], 0
jnz loc_A700C
mov rdi, rbx
call my_rw_wrlock
loc_A6EFA:
lea r13, [rbx+98h]
mov [rbp+var_2C], r15d
mov r15d, r15d
mov rdi, r13
mov rsi, r14
mov rdx, r15
call my_hash_search
cmp [rbx+108h], r12
jz short loc_A6F2A
test rax, rax
jz short loc_A6F7F
mov [rax+10h], r12
jmp short loc_A6F52
loc_A6F2A:
test rax, rax
jz short loc_A6F52
mov rcx, [rax+18h]
mov rdx, [rax+20h]
mov [rdx], rcx
test rcx, rcx
jz short loc_A6F47
mov rdx, [rax+20h]
mov [rcx+20h], rdx
loc_A6F47:
mov rdi, r13
mov rsi, rax
call my_hash_delete
loc_A6F52:
xor r14d, r14d
loc_A6F55:
mov rdi, [rbx+90h]
test rdi, rdi
jnz loc_A7025
loc_A6F65:
mov rdi, rbx
call my_rw_unlock
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A6F7F:
mov [rbp+var_38], r13
lea rax, key_memory_SAFE_HASH_ENTRY
mov edi, [rax]
lea rsi, [r15+28h]
mov edx, 10h
call my_malloc
test rax, rax
jz short loc_A7004
mov r13, rax
lea rdi, [rax+28h]
mov [rax], rdi
mov rsi, r14
mov rdx, r15
call _memcpy
mov eax, [rbp+var_2C]
mov [r13+8], eax
mov [r13+10h], r12
lea rax, [rbx+110h]
mov rcx, [rbx+110h]
mov [r13+18h], rcx
test rcx, rcx
jz short loc_A6FE1
mov rdx, r13
add rdx, 18h
mov [rcx+20h], rdx
loc_A6FE1:
mov [r13+20h], rax
mov [rax], r13
mov rdi, [rbp+var_38]
mov rsi, r13
call my_hash_insert
test al, al
jz loc_A6F52
mov rdi, r13
call my_free
loc_A7004:
mov r14b, 1
jmp loc_A6F55
loc_A700C:
lea rsi, aWorkspaceLlm4b_41; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 0CFh
call psi_rwlock_wrlock
jmp loc_A6EFA
loc_A7025:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+168h]
jmp loc_A6F65
| long long safe_hash_set(_QWORD *a1, long long a2, unsigned int a3, long long a4)
{
unsigned int v6; // r14d
long long v7; // rax
long long v8; // rcx
_QWORD *v10; // rax
long long v11; // r13
long long *v12; // rax
long long v13; // rcx
v6 = a2;
if ( a1[18] )
psi_rwlock_wrlock((long long)a1, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/my_safehash.c", 0xCFu);
else
my_rw_wrlock((long long)a1);
v7 = my_hash_search((long long)(a1 + 19), a2, a3);
if ( a1[33] == a4 )
{
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 24);
**(_QWORD **)(v7 + 32) = v8;
if ( v8 )
*(_QWORD *)(v8 + 32) = *(_QWORD *)(v7 + 32);
my_hash_delete((long long)(a1 + 19), v7);
}
goto LABEL_10;
}
if ( v7 )
{
*(_QWORD *)(v7 + 16) = a4;
LABEL_10:
v6 = 0;
goto LABEL_11;
}
v10 = (_QWORD *)my_malloc(key_memory_SAFE_HASH_ENTRY, (const char *)(a3 + 40LL), 16);
if ( v10 )
{
v11 = (long long)v10;
*v10 = v10 + 5;
memcpy(v10 + 5, a2, a3);
*(_DWORD *)(v11 + 8) = a3;
*(_QWORD *)(v11 + 16) = a4;
v12 = a1 + 34;
v13 = a1[34];
*(_QWORD *)(v11 + 24) = v13;
if ( v13 )
*(_QWORD *)(v13 + 32) = v11 + 24;
*(_QWORD *)(v11 + 32) = v12;
*v12 = v11;
if ( !my_hash_insert((long long)(a1 + 19), v11) )
goto LABEL_10;
my_free(v11);
}
LOBYTE(v6) = 1;
LABEL_11:
if ( a1[18] )
PSI_server[45]();
my_rw_unlock((long long)a1);
return v6;
}
| safe_hash_set:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RCX
MOV R15D,EDX
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RDI + 0x90],0x0
JNZ 0x001a700c
MOV RDI,RBX
CALL 0x001a5321
LAB_001a6efa:
LEA R13,[RBX + 0x98]
MOV dword ptr [RBP + -0x2c],R15D
MOV R15D,R15D
MOV RDI,R13
MOV RSI,R14
MOV RDX,R15
CALL 0x00194b86
CMP qword ptr [RBX + 0x108],R12
JZ 0x001a6f2a
TEST RAX,RAX
JZ 0x001a6f7f
MOV qword ptr [RAX + 0x10],R12
JMP 0x001a6f52
LAB_001a6f2a:
TEST RAX,RAX
JZ 0x001a6f52
MOV RCX,qword ptr [RAX + 0x18]
MOV RDX,qword ptr [RAX + 0x20]
MOV qword ptr [RDX],RCX
TEST RCX,RCX
JZ 0x001a6f47
MOV RDX,qword ptr [RAX + 0x20]
MOV qword ptr [RCX + 0x20],RDX
LAB_001a6f47:
MOV RDI,R13
MOV RSI,RAX
CALL 0x001950ea
LAB_001a6f52:
XOR R14D,R14D
LAB_001a6f55:
MOV RDI,qword ptr [RBX + 0x90]
TEST RDI,RDI
JNZ 0x001a7025
LAB_001a6f65:
MOV RDI,RBX
CALL 0x001a53c2
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a6f7f:
MOV qword ptr [RBP + -0x38],R13
LEA RAX,[0xd0a984]
MOV EDI,dword ptr [RAX]
LEA RSI,[R15 + 0x28]
MOV EDX,0x10
CALL 0x001a0c8d
TEST RAX,RAX
JZ 0x001a7004
MOV R13,RAX
LEA RDI,[RAX + 0x28]
MOV qword ptr [RAX],RDI
MOV RSI,R14
MOV RDX,R15
CALL 0x00129080
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [R13 + 0x8],EAX
MOV qword ptr [R13 + 0x10],R12
LEA RAX,[RBX + 0x110]
MOV RCX,qword ptr [RBX + 0x110]
MOV qword ptr [R13 + 0x18],RCX
TEST RCX,RCX
JZ 0x001a6fe1
MOV RDX,R13
ADD RDX,0x18
MOV qword ptr [RCX + 0x20],RDX
LAB_001a6fe1:
MOV qword ptr [R13 + 0x20],RAX
MOV qword ptr [RAX],R13
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,R13
CALL 0x00194de6
TEST AL,AL
JZ 0x001a6f52
MOV RDI,R13
CALL 0x001a0eba
LAB_001a7004:
MOV R14B,0x1
JMP 0x001a6f55
LAB_001a700c:
LEA RSI,[0x1ddbe2]
MOV RDI,RBX
MOV EDX,0xcf
CALL 0x0012ed7b
JMP 0x001a6efa
LAB_001a7025:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x168]
JMP 0x001a6f65
|
ulong safe_hash_set(long param_1,void *param_2,uint param_3,long param_4)
{
long lVar1;
long lVar2;
char cVar3;
long lVar4;
int8 *puVar5;
ulong uVar6;
if (*(long *)(param_1 + 0x90) == 0) {
my_rw_wrlock(param_1);
}
else {
psi_rwlock_wrlock(param_1,"/workspace/llm4binary/github2025/eloqsql/mysys/my_safehash.c",0xcf);
}
lVar1 = param_1 + 0x98;
uVar6 = (ulong)param_3;
lVar4 = my_hash_search(lVar1,param_2,uVar6);
if (*(long *)(param_1 + 0x108) == param_4) {
if (lVar4 != 0) {
lVar2 = *(long *)(lVar4 + 0x18);
**(long **)(lVar4 + 0x20) = lVar2;
if (lVar2 != 0) {
*(int8 *)(lVar2 + 0x20) = *(int8 *)(lVar4 + 0x20);
}
my_hash_delete(lVar1,lVar4);
}
}
else {
if (lVar4 == 0) {
puVar5 = (int8 *)my_malloc(key_memory_SAFE_HASH_ENTRY,uVar6 + 0x28,0x10);
if (puVar5 != (int8 *)0x0) {
*puVar5 = puVar5 + 5;
memcpy(puVar5 + 5,param_2,uVar6);
*(uint *)(puVar5 + 1) = param_3;
puVar5[2] = param_4;
lVar4 = *(long *)(param_1 + 0x110);
puVar5[3] = lVar4;
if (lVar4 != 0) {
*(int8 **)(lVar4 + 0x20) = puVar5 + 3;
}
puVar5[4] = (int8 *)(param_1 + 0x110);
*(int8 *)(param_1 + 0x110) = puVar5;
cVar3 = my_hash_insert(lVar1,puVar5);
if (cVar3 == '\0') goto LAB_001a6f52;
my_free(puVar5);
}
uVar6 = CONCAT71((int7)((ulong)param_2 >> 8),1);
goto LAB_001a6f55;
}
*(long *)(lVar4 + 0x10) = param_4;
}
LAB_001a6f52:
uVar6 = 0;
LAB_001a6f55:
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))();
}
my_rw_unlock(param_1);
return uVar6 & 0xffffffff;
}
| |
32,745 | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/arg.cpp | static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
} | O2 | cpp | common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
je 0x5d7fc
movq %rcx, %r14
movq %rdx, %r15
cmpq $0x0, 0x8(%rcx)
jne 0x5d923
cmpq $0x0, 0x8(%rbx)
je 0x5d8d4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x26670
jmp 0x5d923
cmpq $0x0, 0x8(%rsi)
movq 0x8(%rbx), %rax
je 0x5d8b2
testq %rax, %rax
jne 0x5d9e4
leaq 0x8(%rsp), %r14
pushq $0x23
popq %rdx
movq %r14, %rdi
callq 0x5da75
movq (%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x27120
leaq 0x8(%rsp), %rdi
callq 0x2b7c8
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x3f
popq %rdx
callq 0x5da75
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x26670
leaq 0x8(%rsp), %rdi
callq 0x2b7c8
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x2f
popq %rdx
callq 0x5da75
movq 0x70(%rsp), %rsi
addq $-0x20, %rsi
leaq 0x8(%rsp), %rdi
callq 0x71797
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26f10
movq %r14, %rdi
callq 0x27998
leaq 0x68(%rsp), %rdi
callq 0x2b7c8
jmp 0x5d9da
testq %rax, %rax
jne 0x5d9e4
movq %rbx, %rdi
movq %r9, %rsi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x26670
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r8, %rdx
callq 0x72a7a
cmpq $0x0, 0x8(%r12)
je 0x5d9f3
cmpq $0x0, 0x50(%rsp)
je 0x5d9f3
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x26670
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x26670
leaq 0x28(%rsp), %rdi
callq 0x4a004
cmpq $0x0, 0x8(%rbx)
jne 0x5d9e4
leaq 0x743a4(%rip), %rdx # 0xd1cd9
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2c1fa
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2c1db
leaq 0x8(%rsp), %rdi
callq 0x27998
leaq 0x79726(%rip), %rsi # 0xd708c
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2b18e
leaq 0x7435d(%rip), %rsi # 0xd1cd9
leaq 0x68(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x2b18e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x7045b
leaq 0x68(%rsp), %rdi
callq 0x27998
leaq 0x8(%rsp), %rdi
callq 0x27998
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x71797
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26f10
movq %r14, %rdi
callq 0x27998
leaq 0x28(%rsp), %rdi
callq 0x27998
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x1
popq %rdi
callq 0x26ee0
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x5da0f
jmp 0x5da56
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2b7c8
jmp 0x5da59
jmp 0x5da56
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2b7c8
jmp 0x5da63
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4a004
jmp 0x5da63
jmp 0x5da56
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x27998
jmp 0x5da4a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x27998
jmp 0x5da59
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x27998
movq %rbx, %rdi
callq 0x27660
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x5da5e
| _ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov rbx, rdi
cmp qword ptr [rdx+8], 0
jz short loc_5D7FC
mov r14, rcx
mov r15, rdx
cmp qword ptr [rcx+8], 0
jnz loc_5D923
cmp qword ptr [rbx+8], 0
jz loc_5D8D4
mov rdi, r14
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
jmp loc_5D923
loc_5D7FC:
cmp qword ptr [rsi+8], 0
mov rax, [rbx+8]
jz loc_5D8B2
test rax, rax
jnz loc_5D9E4
lea r14, [rsp+0A8h+var_A0]
push 23h ; '#'
pop rdx
mov rdi, r14
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [r14]
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_80]
push 3Fh ; '?'
pop rdx
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_A0]
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_80]
push 2Fh ; '/'
pop rdx
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_38]
add rsi, 0FFFFFFFFFFFFFFE0h
lea rdi, [rsp+0A8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_40]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_5D9DA
loc_5D8B2:
test rax, rax
jnz loc_5D9E4
mov rdi, rbx
mov rsi, r9
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_5D8D4:
lea r12, [rsp+0A8h+var_80]
mov rdi, r12
mov rsi, r15
mov rdx, r8
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
cmp qword ptr [r12+8], 0
jz loc_5D9F3
cmp [rsp+0A8h+var_58], 0
jz loc_5D9F3
lea rsi, [rsp+0A8h+var_80]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rsi, [rsp+0A8h+var_60]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
loc_5D923:
cmp qword ptr [rbx+8], 0
jnz loc_5D9E4
lea rdx, aCall911+8; "_"
lea r12, [rsp+0A8h+var_A0]
mov rdi, r12
mov rsi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
lea rdi, [rsp+0A8h+var_80]
mov rsi, r12
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rsi, asc_D708B+1; "/"
lea rdi, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aCall911+8; "_"
lea rdi, [rsp+0A8h+var_40]
lea rdx, [rsp+0A8h+var_A2]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_80]
lea rsi, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_40]
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_80]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5D9DA:
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5D9E4:
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
loc_5D9F3:
push 1
pop rdi
call _exit
mov rbx, rax
lea rdi, [rsp+0A8h+var_40]
jmp short loc_5DA0F
jmp short loc_5DA56
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
loc_5DA0F:
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_5DA59
jmp short loc_5DA56
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_5DA63
mov rbx, rax
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_5DA63
jmp short loc_5DA56
mov rbx, rax
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_5DA4A
mov rbx, rax
loc_5DA4A:
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_5DA59
loc_5DA56:
mov rbx, rax
loc_5DA59:
lea rdi, [rsp+0A8h+var_80]; void *
loc_5DA5E:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_5DA63:
mov rdi, rbx
call __Unwind_Resume
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
jmp short loc_5DA5E
| void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
long long v8; // rax
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // ecx
int v13; // r8d
int v14; // r9d
int v15; // ecx
int v16; // r8d
int v17; // r9d
_QWORD v18[4]; // [rsp+8h] [rbp-A0h] BYREF
char v19[8]; // [rsp+28h] [rbp-80h] BYREF
long long v20; // [rsp+30h] [rbp-78h]
_BYTE v21[8]; // [rsp+48h] [rbp-60h] BYREF
long long v22; // [rsp+50h] [rbp-58h]
_QWORD v23[8]; // [rsp+68h] [rbp-40h] BYREF
if ( *(_QWORD *)(a3 + 8) )
{
if ( !*(_QWORD *)(a4 + 8) )
{
if ( *(_QWORD *)(a1 + 8) )
{
std::string::_M_assign(a4, a1);
}
else
{
common_get_hf_file(v19, a3, a5);
if ( !v20 || !v22 )
exit(1LL);
std::string::_M_assign(a3, v19);
std::string::_M_assign(a4, v21);
std::pair<std::string,std::string>::~pair(v19);
}
}
if ( !*(_QWORD *)(a1 + 8) )
{
std::operator+<char>((long long)v18, a3, (long long)"_");
std::operator+<char>((long long)v19, (long long)v18, a4);
std::string::~string(v18);
std::string::basic_string<std::allocator<char>>(v18, (long long)"/");
std::string::basic_string<std::allocator<char>>(v23, (long long)"_");
string_replace_all((unsigned int)v19, (unsigned int)v18, (unsigned int)v23, v15, v16, v17);
std::string::~string(v23);
std::string::~string(v18);
fs_get_cache_file(v18, v19);
std::string::operator=(a1, v18);
std::string::~string(v18);
LABEL_15:
std::string::~string(v19);
}
}
else
{
v8 = *(_QWORD *)(a1 + 8);
if ( *(_QWORD *)(a2 + 8) )
{
if ( v8 )
return;
string_split<std::string>((unsigned int)v18, a2, 35, a4, a5, a6);
std::string::basic_string(v19, v18[0]);
std::vector<std::string>::~vector((long long)v18);
string_split<std::string>((unsigned int)v18, (unsigned int)v19, 63, v9, v10, v11);
std::string::_M_assign(v19, v18[0]);
std::vector<std::string>::~vector((long long)v18);
string_split<std::string>((unsigned int)v23, (unsigned int)v19, 47, v12, v13, v14);
fs_get_cache_file(v18, v23[1] - 32LL);
std::string::operator=(a1, v18);
std::string::~string(v18);
std::vector<std::string>::~vector((long long)v23);
goto LABEL_15;
}
if ( !v8 )
std::string::_M_assign(a1, a6);
}
}
| common_params_handle_model_default:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RDI
CMP qword ptr [RDX + 0x8],0x0
JZ 0x0015d7fc
MOV R14,RCX
MOV R15,RDX
CMP qword ptr [RCX + 0x8],0x0
JNZ 0x0015d923
CMP qword ptr [RBX + 0x8],0x0
JZ 0x0015d8d4
MOV RDI,R14
MOV RSI,RBX
CALL 0x00126670
JMP 0x0015d923
LAB_0015d7fc:
CMP qword ptr [RSI + 0x8],0x0
MOV RAX,qword ptr [RBX + 0x8]
JZ 0x0015d8b2
TEST RAX,RAX
JNZ 0x0015d9e4
LEA R14,[RSP + 0x8]
PUSH 0x23
POP RDX
MOV RDI,R14
CALL 0x0015da75
MOV RSI,qword ptr [R14]
LAB_0015d827:
LEA RDI,[RSP + 0x28]
CALL 0x00127120
LEA RDI,[RSP + 0x8]
CALL 0x0012b7c8
LAB_0015d83b:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
PUSH 0x3f
POP RDX
CALL 0x0015da75
MOV RSI,qword ptr [RSP + 0x8]
LAB_0015d852:
LEA RDI,[RSP + 0x28]
CALL 0x00126670
LEA RDI,[RSP + 0x8]
CALL 0x0012b7c8
LAB_0015d866:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x28]
PUSH 0x2f
POP RDX
CALL 0x0015da75
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,-0x20
LAB_0015d881:
LEA RDI,[RSP + 0x8]
CALL 0x00171797
LAB_0015d88b:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00126f10
MOV RDI,R14
CALL 0x00127998
LEA RDI,[RSP + 0x68]
CALL 0x0012b7c8
JMP 0x0015d9da
LAB_0015d8b2:
TEST RAX,RAX
JNZ 0x0015d9e4
MOV RDI,RBX
MOV RSI,R9
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
JMP 0x00126670
LAB_0015d8d4:
LEA R12,[RSP + 0x28]
MOV RDI,R12
MOV RSI,R15
MOV RDX,R8
CALL 0x00172a7a
CMP qword ptr [R12 + 0x8],0x0
JZ 0x0015d9f3
CMP qword ptr [RSP + 0x50],0x0
JZ 0x0015d9f3
LAB_0015d8ff:
LEA RSI,[RSP + 0x28]
MOV RDI,R15
CALL 0x00126670
LEA RSI,[RSP + 0x48]
MOV RDI,R14
CALL 0x00126670
LAB_0015d919:
LEA RDI,[RSP + 0x28]
CALL 0x0014a004
LAB_0015d923:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x0015d9e4
LEA RDX,[0x1d1cd9]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R15
CALL 0x0012c1fa
LAB_0015d945:
LEA RDI,[RSP + 0x28]
MOV RSI,R12
MOV RDX,R14
CALL 0x0012c1db
LEA RDI,[RSP + 0x8]
CALL 0x00127998
LAB_0015d95f:
LEA RSI,[0x1d708c]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
CALL 0x0012b18e
LAB_0015d975:
LEA RSI,[0x1d1cd9]
LEA RDI,[RSP + 0x68]
LEA RDX,[RSP + 0x6]
CALL 0x0012b18e
LAB_0015d98b:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x68]
CALL 0x0017045b
LEA RDI,[RSP + 0x68]
CALL 0x00127998
LEA RDI,[RSP + 0x8]
CALL 0x00127998
LAB_0015d9b3:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x00171797
LAB_0015d9c2:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00126f10
MOV RDI,R14
CALL 0x00127998
LAB_0015d9da:
LEA RDI,[RSP + 0x28]
CALL 0x00127998
LAB_0015d9e4:
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0015d9f3:
PUSH 0x1
POP RDI
CALL 0x00126ee0
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
allocator local_a2;
allocator local_a1;
string *local_a0 [4];
string local_80 [8];
long local_78;
long local_58;
string local_40 [32];
if (*(long *)(param_3 + 8) == 0) {
if (*(long *)(param_2 + 8) == 0) {
if (*(long *)(param_1 + 8) != 0) {
return;
}
std::__cxx11::string::_M_assign(param_1);
return;
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
string_split<std::__cxx11::string>((string *)local_a0,(char)param_2);
/* try { // try from 0015d827 to 0015d830 has its CatchHandler @ 0015da18 */
std::__cxx11::string::string(local_80,local_a0[0]);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 0015d83b to 0015d84c has its CatchHandler @ 0015da16 */
string_split<std::__cxx11::string>((string *)local_a0,(char)local_80);
/* try { // try from 0015d852 to 0015d85b has its CatchHandler @ 0015da07 */
std::__cxx11::string::_M_assign(local_80);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 0015d866 to 0015d877 has its CatchHandler @ 0015da05 */
string_split<std::__cxx11::string>(local_40,(char)local_80);
/* try { // try from 0015d881 to 0015d88a has its CatchHandler @ 0015d9fb */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40);
}
else {
if (*(long *)(param_4 + 8) == 0) {
if (*(long *)(param_1 + 8) == 0) {
common_get_hf_file(local_80,param_3);
if ((local_78 == 0) || (local_58 == 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 0015d8ff to 0015d918 has its CatchHandler @ 0015da27 */
std::__cxx11::string::_M_assign(param_3);
std::__cxx11::string::_M_assign(param_4);
std::pair<std::__cxx11::string,std::__cxx11::string>::~pair
((pair<std::__cxx11::string,std::__cxx11::string> *)local_80);
}
else {
std::__cxx11::string::_M_assign(param_4);
}
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
std::operator+((string *)local_a0,(char *)param_3);
/* try { // try from 0015d945 to 0015d954 has its CatchHandler @ 0015da6b */
std::operator+(local_80,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
/* try { // try from 0015d95f to 0015d974 has its CatchHandler @ 0015da56 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_a0,"/",&local_a1);
/* try { // try from 0015d975 to 0015d98a has its CatchHandler @ 0015da47 */
std::__cxx11::string::string<std::allocator<char>>(local_40,"_",&local_a2);
/* try { // try from 0015d98b to 0015d99e has its CatchHandler @ 0015da38 */
string_replace_all(local_80,(string *)local_a0,local_40);
std::__cxx11::string::~string(local_40);
std::__cxx11::string::~string((string *)local_a0);
/* try { // try from 0015d9b3 to 0015d9c1 has its CatchHandler @ 0015da36 */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
}
std::__cxx11::string::~string(local_80);
return;
}
| |
32,746 | lf_hash_search_using_hash_value | eloqsql/mysys/lf_hash.cc | void *lf_hash_search_using_hash_value(LF_HASH *hash, LF_PINS *pins,
my_hash_value_type hashnr,
const void *key, uint keylen)
{
LF_SLIST **el, *found;
uint bucket;
/* hide OOM errors - if we cannot initialize a bucket, try the previous one */
for (bucket= hashnr % hash->size; ;bucket= my_clear_highest_bit(bucket))
{
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (el && (*el || initialize_bucket(hash, el, bucket, pins) == 0))
break;
if (unlikely(bucket == 0))
return 0; /* if there's no bucket==0, the hash is empty */
}
found= l_search(el, hash->charset, my_reverse_bits(hashnr) | 1,
(uchar *)key, keylen, pins);
return found ? found+1 : 0;
} | O0 | cpp | lf_hash_search_using_hash_value:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0xc0(%rcx), %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -0x44(%rbp)
movq -0x10(%rbp), %rdi
movl -0x44(%rbp), %esi
callq 0x5d260
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x5e3db
movq -0x38(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x5e3d9
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl -0x44(%rbp), %edx
movq -0x18(%rbp), %rcx
callq 0x5dca0
cmpl $0x0, %eax
jne 0x5e3db
jmp 0x5e405
cmpl $0x0, -0x44(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x5e3f6
movq $0x0, -0x8(%rbp)
jmp 0x5e46b
jmp 0x5e3f8
movl -0x44(%rbp), %edi
callq 0x5e130
movl %eax, -0x44(%rbp)
jmp 0x5e39f
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rax, -0x50(%rbp)
movl -0x1c(%rbp), %edi
callq 0x5de20
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl %eax, %edx
orl $0x1, %edx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
movq -0x18(%rbp), %r9
callq 0x5e480
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x5e45b
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x60(%rbp)
jmp 0x5e463
xorl %eax, %eax
movq %rax, -0x60(%rbp)
jmp 0x5e463
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| lf_hash_search_using_hash_value:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
mov ecx, [rcx+0C0h]
xor edx, edx
div ecx
mov [rbp+var_44], edx
loc_5E39F:
mov rdi, [rbp+var_10]
mov esi, [rbp+var_44]
call lf_dynarray_lvalue
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jz short loc_5E3DB
mov rax, [rbp+var_38]
cmp qword ptr [rax], 0
jnz short loc_5E3D9
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov edx, [rbp+var_44]
mov rcx, [rbp+var_18]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
cmp eax, 0
jnz short loc_5E3DB
loc_5E3D9:
jmp short loc_5E405
loc_5E3DB:
cmp [rbp+var_44], 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_5E3F6
mov [rbp+var_8], 0
jmp short loc_5E46B
loc_5E3F6:
jmp short $+2
loc_5E3F8:
mov edi, [rbp+var_44]; unsigned int
call _ZL20my_clear_highest_bitj; my_clear_highest_bit(uint)
mov [rbp+var_44], eax
jmp short loc_5E39F
loc_5E405:
mov rax, [rbp+var_38]
mov [rbp+var_58], rax
mov rax, [rbp+var_10]
mov rax, [rax+0A8h]
mov [rbp+var_50], rax
mov edi, [rbp+var_1C]; unsigned int
call _ZL15my_reverse_bitsj; my_reverse_bits(uint)
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_50]
mov edx, eax
or edx, 1
mov rcx, [rbp+var_28]
mov r8d, [rbp+var_2C]
mov r9, [rbp+var_18]
call _ZL8l_searchPP8LF_SLISTPK15charset_info_stjPKhjP7LF_PINS; l_search(LF_SLIST **,charset_info_st const*,uint,uchar const*,uint,LF_PINS *)
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
jz short loc_5E45B
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_60], rax
jmp short loc_5E463
loc_5E45B:
xor eax, eax
mov [rbp+var_60], rax
jmp short $+2
loc_5E463:
mov rax, [rbp+var_60]
mov [rbp+var_8], rax
loc_5E46B:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
| long long lf_hash_search_using_hash_value(
long long a1,
long long a2,
unsigned int a3,
long long a4,
unsigned int a5)
{
volatile signed long long *i; // rax
int v6; // eax
long long v7; // rax
long long v10; // [rsp+10h] [rbp-50h]
int v11; // [rsp+1Ch] [rbp-44h]
volatile signed long long *v12; // [rsp+28h] [rbp-38h]
v11 = a3 % *(_DWORD *)(a1 + 192);
for ( i = (volatile signed long long *)lf_dynarray_lvalue(a1, v11);
;
i = (volatile signed long long *)lf_dynarray_lvalue(a1, v11) )
{
v12 = i;
if ( i )
{
if ( *i || !(unsigned int)initialize_bucket(a1, i, v11, a2) )
break;
}
if ( !v11 )
return 0LL;
v11 = my_clear_highest_bit(v11);
}
v10 = *(_QWORD *)(a1 + 168);
v6 = my_reverse_bits(a3);
v7 = l_search(v12, v10, v6 | 1u, a4, a5, a2);
if ( v7 )
return v7 + 32;
else
return 0LL;
}
| lf_hash_search_using_hash_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0xc0]
XOR EDX,EDX
DIV ECX
MOV dword ptr [RBP + -0x44],EDX
LAB_0015e39f:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x44]
CALL 0x0015d260
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JZ 0x0015e3db
MOV RAX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX],0x0
JNZ 0x0015e3d9
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x44]
MOV RCX,qword ptr [RBP + -0x18]
CALL 0x0015dca0
CMP EAX,0x0
JNZ 0x0015e3db
LAB_0015e3d9:
JMP 0x0015e405
LAB_0015e3db:
CMP dword ptr [RBP + -0x44],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0015e3f6
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0015e46b
LAB_0015e3f6:
JMP 0x0015e3f8
LAB_0015e3f8:
MOV EDI,dword ptr [RBP + -0x44]
CALL 0x0015e130
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0015e39f
LAB_0015e405:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa8]
MOV qword ptr [RBP + -0x50],RAX
MOV EDI,dword ptr [RBP + -0x1c]
CALL 0x0015de20
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,EAX
OR EDX,0x1
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,dword ptr [RBP + -0x2c]
MOV R9,qword ptr [RBP + -0x18]
CALL 0x0015e480
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
JZ 0x0015e45b
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0015e463
LAB_0015e45b:
XOR EAX,EAX
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0015e463
LAB_0015e463:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x8],RAX
LAB_0015e46b:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
long lf_hash_search_using_hash_value
(st_lf_hash *param_1,LF_PINS *param_2,uint param_3,uchar *param_4,uint param_5)
{
charset_info_st *pcVar1;
int iVar2;
uint uVar3;
LF_SLIST **ppLVar4;
long local_68;
uint local_4c;
local_4c = param_3 % *(uint *)(param_1 + 0xc0);
while ((ppLVar4 = (LF_SLIST **)lf_dynarray_lvalue(param_1,local_4c), ppLVar4 == (LF_SLIST **)0x0
|| ((*ppLVar4 == (LF_SLIST *)0x0 &&
(iVar2 = initialize_bucket(param_1,ppLVar4,local_4c,param_2), iVar2 != 0))))) {
if (local_4c == 0) {
return 0;
}
local_4c = my_clear_highest_bit(local_4c);
}
pcVar1 = *(charset_info_st **)(param_1 + 0xa8);
uVar3 = my_reverse_bits(param_3);
local_68 = l_search(ppLVar4,pcVar1,uVar3 | 1,param_4,param_5,param_2);
if (local_68 == 0) {
local_68 = 0;
}
else {
local_68 = local_68 + 0x20;
}
return local_68;
}
| |
32,747 | get_collation_number | eloqsql/mysys/charset.c | uint get_collation_number(const char *name, myf flags)
{
uint id;
char alias[64];
my_pthread_once(&charsets_initialized, init_available_charsets);
if ((id= get_collation_number_internal(name)))
return id;
if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags)))
return get_collation_number_internal(name);
return 0;
} | O3 | c | get_collation_number:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0x346980(%rip), %rdi # 0x36ea20
leaq 0x80(%rip), %rsi # 0x28127
callq 0x24370
movq %rbx, %rdi
callq 0x282a7
testl %eax, %eax
jne 0x2810a
leaq 0x34706(%rip), %rsi # 0x5c7c5
movl $0x5, %edx
movq %rbx, %rdi
callq 0x24500
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x2810a
btl $0xa, %r14d
movl $0x33, %ecx
sbbl $-0x1, %ecx
addq $0x5, %rbx
leaq 0x346df(%rip), %rdx # 0x5c7cb
leaq -0x60(%rbp), %r14
movl $0x40, %esi
movq %r14, %rdi
movq %rbx, %r8
xorl %eax, %eax
callq 0x5ab0e
movq %r14, %rdi
callq 0x282a7
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x28122
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x24420
| get_collation_number:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, rbx
call get_collation_number_internal
test eax, eax
jnz short loc_2810A
lea rsi, aUtf8_0; "utf8_"
mov edx, 5
mov rdi, rbx
call _strncasecmp
mov ecx, eax
xor eax, eax
test ecx, ecx
jnz short loc_2810A
bt r14d, 0Ah
mov ecx, 33h ; '3'
sbb ecx, 0FFFFFFFFh
add rbx, 5
lea rdx, aUtf8mbCS; "utf8mb%c_%s"
lea r14, [rbp+var_60]
mov esi, 40h ; '@'
mov rdi, r14
mov r8, rbx
xor eax, eax
call my_snprintf
mov rdi, r14
call get_collation_number_internal
loc_2810A:
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_28122
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_28122:
call ___stack_chk_fail
| long long get_collation_number(long long a1, __int16 a2)
{
long long result; // rax
int v3; // ecx
int v4; // r9d
_BYTE v5[72]; // [rsp+0h] [rbp-60h] BYREF
unsigned long long v6; // [rsp+48h] [rbp-18h]
v6 = __readfsqword(0x28u);
pthread_once(&charsets_initialized, init_available_charsets);
result = get_collation_number_internal(a1);
if ( !(_DWORD)result )
{
v3 = strncasecmp(a1, "utf8_", 5LL);
result = 0LL;
if ( !v3 )
{
my_snprintf((unsigned int)v5, 64, (unsigned int)"utf8mb%c_%s", 51 - (((a2 & 0x400) != 0) - 1), a1 + 5, v4);
return get_collation_number_internal(v5);
}
}
return result;
}
| get_collation_number:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[0x46ea20]
LEA RSI,[0x128127]
CALL 0x00124370
MOV RDI,RBX
CALL 0x001282a7
TEST EAX,EAX
JNZ 0x0012810a
LEA RSI,[0x15c7c5]
MOV EDX,0x5
MOV RDI,RBX
CALL 0x00124500
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
JNZ 0x0012810a
BT R14D,0xa
MOV ECX,0x33
SBB ECX,-0x1
ADD RBX,0x5
LEA RDX,[0x15c7cb]
LEA R14,[RBP + -0x60]
MOV ESI,0x40
MOV RDI,R14
MOV R8,RBX
XOR EAX,EAX
CALL 0x0015ab0e
MOV RDI,R14
CALL 0x001282a7
LAB_0012810a:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x00128122
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_00128122:
CALL 0x00124420
|
int8 get_collation_number(char *param_1,uint param_2)
{
int iVar1;
int8 uVar2;
long in_FS_OFFSET;
int1 local_68 [72];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
pthread_once(&charsets_initialized,init_available_charsets);
uVar2 = get_collation_number_internal(param_1);
if ((int)uVar2 == 0) {
iVar1 = strncasecmp(param_1,"utf8_",5);
uVar2 = 0;
if (iVar1 == 0) {
my_snprintf(local_68,0x40,"utf8mb%c_%s",0x34 - (uint)((param_2 >> 10 & 1) != 0),param_1 + 5);
uVar2 = get_collation_number_internal(local_68);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return uVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
32,748 | is_backtrace_needed | bluesky950520[P]quickjs/quickjs.c | static BOOL is_backtrace_needed(JSContext *ctx, JSValue obj)
{
JSObject *p;
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return FALSE;
p = JS_VALUE_GET_OBJ(obj);
if (p->class_id != JS_CLASS_ERROR)
return FALSE;
if (find_own_property1(p, JS_ATOM_stack))
return FALSE;
return TRUE;
} | O0 | c | is_backtrace_needed:
subq $0x68, %rsp
movq %rsi, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x20(%rsp), %rax
cmpl $-0x1, %eax
je 0x6d55a
movl $0x0, 0x2c(%rsp)
jmp 0x6d65a
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x3, %eax
je 0x6d57f
movl $0x0, 0x2c(%rsp)
jmp 0x6d65a
movq 0x8(%rsp), %rax
movq %rax, 0x58(%rsp)
movl $0x36, 0x54(%rsp)
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x48(%rsp)
movl 0x54(%rsp), %eax
movq 0x48(%rsp), %rcx
movl 0x20(%rcx), %ecx
andq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rdi
callq 0x5d8b0
xorl %ecx, %ecx
subq 0x30(%rsp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rdi
callq 0x2c280
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x6d637
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movl 0x4(%rax), %eax
cmpl 0x54(%rsp), %eax
sete %al
testb $0x1, %al
jne 0x6d616
jmp 0x6d622
movq 0x40(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x6d640
movq 0x40(%rsp), %rax
movl (%rax), %eax
andl $0x3ffffff, %eax # imm = 0x3FFFFFF
movl %eax, %eax
movq %rax, 0x30(%rsp)
jmp 0x6d5df
movq $0x0, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x6d652
movl $0x0, 0x2c(%rsp)
jmp 0x6d65a
movl $0x1, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| is_backtrace_needed:
sub rsp, 68h
mov [rsp+68h+var_50], rsi
mov [rsp+68h+var_48], rdx
mov [rsp+68h+var_58], rdi
mov rax, [rsp+68h+var_48]
cmp eax, 0FFFFFFFFh
jz short loc_6D55A
mov [rsp+68h+var_3C], 0
jmp loc_6D65A
loc_6D55A:
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_60], rax
mov rax, [rsp+68h+var_60]
movzx eax, word ptr [rax+6]
cmp eax, 3
jz short loc_6D57F
mov [rsp+68h+var_3C], 0
jmp loc_6D65A
loc_6D57F:
mov rax, [rsp+68h+var_60]
mov [rsp+68h+var_10], rax
mov [rsp+68h+var_14], 36h ; '6'
mov rax, [rsp+68h+var_10]
mov rax, [rax+18h]
mov [rsp+68h+var_20], rax
mov eax, [rsp+68h+var_14]
mov rcx, [rsp+68h+var_20]
mov ecx, [rcx+20h]
and rax, rcx
mov [rsp+68h+var_38], rax
mov rdi, [rsp+68h+var_20]
call prop_hash_end
xor ecx, ecx
sub rcx, [rsp+68h+var_38]
sub rcx, 1
mov eax, [rax+rcx*4]
mov [rsp+68h+var_38], rax
mov rdi, [rsp+68h+var_20]
call get_shape_prop
mov [rsp+68h+var_30], rax
loc_6D5DF:
cmp [rsp+68h+var_38], 0
jz short loc_6D637
mov rax, [rsp+68h+var_30]
mov rcx, [rsp+68h+var_38]
sub rcx, 1
shl rcx, 3
add rax, rcx
mov [rsp+68h+var_28], rax
mov rax, [rsp+68h+var_28]
mov eax, [rax+4]
cmp eax, [rsp+68h+var_14]
setz al
test al, 1
jnz short loc_6D616
jmp short loc_6D622
loc_6D616:
mov rax, [rsp+68h+var_28]
mov [rsp+68h+var_8], rax
jmp short loc_6D640
loc_6D622:
mov rax, [rsp+68h+var_28]
mov eax, [rax]
and eax, 3FFFFFFh
mov eax, eax
mov [rsp+68h+var_38], rax
jmp short loc_6D5DF
loc_6D637:
mov [rsp+68h+var_8], 0
loc_6D640:
cmp [rsp+68h+var_8], 0
jz short loc_6D652
mov [rsp+68h+var_3C], 0
jmp short loc_6D65A
loc_6D652:
mov [rsp+68h+var_3C], 1
loc_6D65A:
mov eax, [rsp+68h+var_3C]
add rsp, 68h
retn
| _BOOL8 is_backtrace_needed(long long a1, long long a2, int a3)
{
long long v5; // [rsp+30h] [rbp-38h]
long long v6; // [rsp+30h] [rbp-38h]
long long shape_prop; // [rsp+38h] [rbp-30h]
_DWORD *v8; // [rsp+40h] [rbp-28h]
long long v9; // [rsp+48h] [rbp-20h]
long long v10; // [rsp+60h] [rbp-8h]
if ( a3 == -1 )
{
if ( *(_WORD *)(a2 + 6) == 3 )
{
v9 = *(_QWORD *)(a2 + 24);
v5 = *(_DWORD *)(v9 + 32) & 0x36LL;
v6 = *(unsigned int *)(prop_hash_end(v9) + 4 * (-v5 - 1));
shape_prop = get_shape_prop(v9);
while ( v6 )
{
v8 = (_DWORD *)(8 * (v6 - 1) + shape_prop);
if ( v8[1] == 54 )
{
v10 = 8 * (v6 - 1) + shape_prop;
return v10 == 0;
}
v6 = *v8 & 0x3FFFFFF;
}
v10 = 0LL;
return v10 == 0;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
| is_backtrace_needed:
SUB RSP,0x68
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x20]
CMP EAX,-0x1
JZ 0x0016d55a
MOV dword ptr [RSP + 0x2c],0x0
JMP 0x0016d65a
LAB_0016d55a:
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x3
JZ 0x0016d57f
MOV dword ptr [RSP + 0x2c],0x0
JMP 0x0016d65a
LAB_0016d57f:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x58],RAX
MOV dword ptr [RSP + 0x54],0x36
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x48],RAX
MOV EAX,dword ptr [RSP + 0x54]
MOV RCX,qword ptr [RSP + 0x48]
MOV ECX,dword ptr [RCX + 0x20]
AND RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0015d8b0
XOR ECX,ECX
SUB RCX,qword ptr [RSP + 0x30]
SUB RCX,0x1
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0012c280
MOV qword ptr [RSP + 0x38],RAX
LAB_0016d5df:
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0016d637
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x30]
SUB RCX,0x1
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RSP + 0x54]
SETZ AL
TEST AL,0x1
JNZ 0x0016d616
JMP 0x0016d622
LAB_0016d616:
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0016d640
LAB_0016d622:
MOV RAX,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RAX]
AND EAX,0x3ffffff
MOV EAX,EAX
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0016d5df
LAB_0016d637:
MOV qword ptr [RSP + 0x60],0x0
LAB_0016d640:
CMP qword ptr [RSP + 0x60],0x0
JZ 0x0016d652
MOV dword ptr [RSP + 0x2c],0x0
JMP 0x0016d65a
LAB_0016d652:
MOV dword ptr [RSP + 0x2c],0x1
LAB_0016d65a:
MOV EAX,dword ptr [RSP + 0x2c]
ADD RSP,0x68
RET
|
int4 is_backtrace_needed(int8 param_1,long param_2,int param_3)
{
uint uVar1;
long lVar2;
long lVar3;
int4 local_3c;
ulong local_38;
uint *local_8;
if (param_3 == -1) {
if (*(short *)(param_2 + 6) == 3) {
lVar3 = *(long *)(param_2 + 0x18);
uVar1 = *(uint *)(lVar3 + 0x20);
lVar2 = prop_hash_end(lVar3);
uVar1 = *(uint *)(lVar2 + (-1 - (ulong)(uVar1 & 0x36)) * 4);
lVar3 = get_shape_prop(lVar3);
while (local_38 = (ulong)uVar1, local_38 != 0) {
local_8 = (uint *)(lVar3 + (local_38 - 1) * 8);
if (local_8[1] == 0x36) goto LAB_0016d640;
uVar1 = *local_8 & 0x3ffffff;
}
local_8 = (uint *)0x0;
LAB_0016d640:
if (local_8 == (uint *)0x0) {
local_3c = 1;
}
else {
local_3c = 0;
}
}
else {
local_3c = 0;
}
}
else {
local_3c = 0;
}
return local_3c;
}
| |
32,749 | minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&) | monkey531[P]llama/common/minja.hpp | CallExpr(const Location & location, std::shared_ptr<Expression> && obj, ArgumentsExpression && a)
: Expression(location), object(std::move(obj)), args(std::move(a)) {} | O2 | cpp | minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x65d58
leaq 0x8eb3c(%rip), %rax # 0x1008c0
addq $0x10, %rax
movq %rax, (%r15)
andq $0x0, 0x28(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x20(%r15)
andq $0x0, (%r14)
addq $0x30, %r15
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x6ec2e
| _ZN5minja8CallExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEONS_19ArgumentsExpressionE:
push r15
push r14
push rbx
mov rbx, rcx
mov r14, rdx
mov r15, rdi
call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&)
lea rax, _ZTVN5minja8CallExprE; `vtable for'minja::CallExpr
add rax, 10h
mov [r15], rax
and qword ptr [r15+28h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+20h], xmm0
and qword ptr [r14], 0
add r15, 30h ; '0'
mov rdi, r15
mov rsi, rbx
pop rbx
pop r14
pop r15
jmp _ZN5minja19ArgumentsExpressionC2EOS0_; minja::ArgumentsExpression::ArgumentsExpression(minja::ArgumentsExpression&&)
| long long minja::CallExpr::CallExpr(long long a1, _QWORD *a2, __int128 *a3, long long a4)
{
__int128 v6; // xmm0
minja::Expression::Expression((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::CallExpr + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
return minja::ArgumentsExpression::ArgumentsExpression(a1 + 48, a4);
}
| CallExpr:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
CALL 0x00165d58
LEA RAX,[0x2008c0]
ADD RAX,0x10
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x20],XMM0
AND qword ptr [R14],0x0
ADD R15,0x30
MOV RDI,R15
MOV RSI,RBX
POP RBX
POP R14
POP R15
JMP 0x0016ec2e
|
/* minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
minja::ArgumentsExpression&&) */
void __thiscall
minja::CallExpr::CallExpr
(CallExpr *this,Location *param_1,shared_ptr *param_2,ArgumentsExpression *param_3)
{
int8 uVar1;
Expression::Expression((Expression *)this,param_1);
*(int ***)this = &PTR_do_evaluate_002008d0;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
ArgumentsExpression::ArgumentsExpression((ArgumentsExpression *)(this + 0x30),param_3);
return;
}
| |
32,750 | nglog::RawLog(nglog::LogSeverity, char const*, int, char const*, ...) | ng-log[P]ng-log/src/raw_logging.cc | void RawLog(LogSeverity severity, const char* file, int line,
const char* format, ...) {
if (!(FLAGS_logtostdout || FLAGS_logtostderr ||
severity >= FLAGS_stderrthreshold || FLAGS_alsologtostderr ||
!IsLoggingInitialized())) {
return; // this stderr log message is suppressed
}
// We do not have any any option other that string streams to obtain the
// thread identifier as the corresponding value is not convertible to an
// integer. Use a statically allocated buffer to avoid dynamic memory
// allocations.
StaticStringBuf<kLogBufSize> sbuf;
std::ostream oss(&sbuf);
oss << std::setw(5) << std::this_thread::get_id();
// can't call localtime_r here: it can allocate
char buffer[kLogBufSize];
char* buf = buffer;
size_t size = sizeof(buffer);
// NOTE: this format should match the specification in base/logging.h
DoRawLog(&buf, &size, "%c00000000 00:00:00.000000 %s %s:%d] RAW: ",
GetLogSeverityName(severity)[0], sbuf.data(),
const_basename(const_cast<char*>(file)), line);
// Record the position and size of the buffer after the prefix
const char* msg_start = buf;
const size_t msg_size = size;
va_list ap;
va_start(ap, format);
bool no_chop = VADoRawLog(&buf, &size, format, ap);
va_end(ap);
if (no_chop) {
DoRawLog(&buf, &size, "\n");
} else {
DoRawLog(&buf, &size, "RAW_LOG ERROR: The Message was too long!\n");
}
// We make a raw syscall to write directly to the stderr file descriptor,
// avoiding FILE buffering (to avoid invoking malloc()), and bypassing
// libc (to side-step any libc interception).
// We write just once to avoid races with other invocations of RawLog.
safe_write(fileno(stderr), buffer, strlen(buffer));
if (severity == NGLOG_FATAL) {
std::call_once(crashed, [file, line, msg_start, msg_size] {
crash_reason.filename = file;
crash_reason.line_number = line;
memcpy(crash_buf, msg_start, msg_size); // Don't include prefix
crash_reason.message = crash_buf;
#ifdef HAVE_STACKTRACE
crash_reason.depth =
GetStackTrace(crash_reason.stack, ARRAYSIZE(crash_reason.stack), 1);
#else
crash_reason.depth = 0;
#endif
SetCrashReason(&crash_reason);
});
LogMessage::Fail(); // abort()
}
} | O0 | cpp | nglog::RawLog(nglog::LogSeverity, char const*, int, char const*, ...):
pushq %rbp
movq %rsp, %rbp
subq $0x1a70, %rsp # imm = 0x1A70
testb %al, %al
je 0x47347
movaps %xmm0, -0x19f0(%rbp)
movaps %xmm1, -0x19e0(%rbp)
movaps %xmm2, -0x19d0(%rbp)
movaps %xmm3, -0x19c0(%rbp)
movaps %xmm4, -0x19b0(%rbp)
movaps %xmm5, -0x19a0(%rbp)
movaps %xmm6, -0x1990(%rbp)
movaps %xmm7, -0x1980(%rbp)
movq %r9, -0x19f8(%rbp)
movq %r8, -0x1a00(%rbp)
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
leaq 0x29838(%rip), %rax # 0x70ba2
testb $0x1, (%rax)
jne 0x473a5
leaq 0x29824(%rip), %rax # 0x70b9a
testb $0x1, (%rax)
jne 0x473a5
movl -0x4(%rbp), %eax
leaq 0x29823(%rip), %rcx # 0x70ba8
cmpl (%rcx), %eax
jge 0x473a5
leaq 0x2980c(%rip), %rax # 0x70b9c
testb $0x1, (%rax)
jne 0x473a5
callq 0x4aaa0
testb $0x1, %al
jne 0x473a0
jmp 0x473a5
jmp 0x4767c
leaq -0xc18(%rbp), %rdi
movq %rdi, -0x1a28(%rbp)
callq 0x476a0
movq -0x1a28(%rbp), %rsi
leaq -0xd28(%rbp), %rdi
callq 0x9290
jmp 0x473cd
movl $0x5, %edi
callq 0x172d0
movl %eax, -0x1a2c(%rbp)
jmp 0x473df
movl -0x1a2c(%rbp), %eax
movl %eax, -0xd38(%rbp)
movl -0xd38(%rbp), %esi
leaq -0xd28(%rbp), %rdi
callq 0x9880
movq %rax, -0x1a38(%rbp)
jmp 0x47406
callq 0x172a0
movq -0x1a38(%rbp), %rdi
movq %rax, -0xd40(%rbp)
movq -0xd40(%rbp), %rsi
callq 0x17310
jmp 0x47427
leaq -0x1900(%rbp), %rax
movq %rax, -0x1908(%rbp)
movq $0xbb8, -0x1910(%rbp) # imm = 0xBB8
movl -0x4(%rbp), %edi
callq 0xcca0
movq %rax, -0x1a40(%rbp)
jmp 0x47451
movq -0x1a40(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x1a54(%rbp)
leaq -0xc18(%rbp), %rdi
callq 0x47860
movq %rax, -0x1a50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4aae0
movq %rax, -0x1a48(%rbp)
jmp 0x47486
movq -0x1a48(%rbp), %r9
movq -0x1a50(%rbp), %r8
movl -0x1a54(%rbp), %ecx
movl -0x14(%rbp), %edx
movq %rsp, %rax
movl %edx, (%rax)
leaq 0x780c(%rip), %rdx # 0x4ecb5
xorl %eax, %eax
leaq -0x1908(%rbp), %rdi
leaq -0x1910(%rbp), %rsi
callq 0x47760
jmp 0x474c0
movq -0x1908(%rbp), %rax
movq %rax, -0x1918(%rbp)
movq -0x1910(%rbp), %rax
movq %rax, -0x1920(%rbp)
leaq -0x1a20(%rbp), %rax
movq %rax, -0x1930(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x1938(%rbp)
movl $0x30, -0x193c(%rbp)
movl $0x20, -0x1940(%rbp)
movq -0x20(%rbp), %rdx
leaq -0x1908(%rbp), %rdi
leaq -0x1910(%rbp), %rsi
leaq -0x1940(%rbp), %rcx
callq 0x47910
movb %al, -0x1a55(%rbp)
jmp 0x4752f
movb -0x1a55(%rbp), %al
andb $0x1, %al
movb %al, -0x1941(%rbp)
leaq -0x1940(%rbp), %rax
testb $0x1, -0x1941(%rbp)
je 0x475a7
leaq 0x66f3(%rip), %rdx # 0x4dc47
xorl %eax, %eax
leaq -0x1908(%rbp), %rdi
leaq -0x1910(%rbp), %rsi
callq 0x47760
jmp 0x4756b
jmp 0x475c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd30(%rbp)
movl %eax, -0xd34(%rbp)
jmp 0x47685
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd30(%rbp)
movl %eax, -0xd34(%rbp)
leaq -0xd28(%rbp), %rdi
callq 0x9be0
jmp 0x47685
leaq 0x7732(%rip), %rdx # 0x4ece0
xorl %eax, %eax
leaq -0x1908(%rbp), %rdi
leaq -0x1910(%rbp), %rsi
callq 0x47760
jmp 0x475c5
jmp 0x475c7
movq 0x289e2(%rip), %rax # 0x6ffb0
movq (%rax), %rdi
callq 0x9790
movl %eax, -0x1a64(%rbp)
leaq -0x1900(%rbp), %rax
movq %rax, -0x1a60(%rbp)
leaq -0x1900(%rbp), %rdi
callq 0x92f0
movl -0x1a64(%rbp), %esi
movq -0x1a60(%rbp), %rdx
movq %rax, %rcx
movl $0x1, %edi
movb $0x0, %al
callq 0x90c0
cmpl $0x3, -0x4(%rbp)
jne 0x47664
movq -0x10(%rbp), %rax
movq %rax, -0x1968(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x1960(%rbp)
movq -0x1918(%rbp), %rax
movq %rax, -0x1958(%rbp)
movq -0x1920(%rbp), %rax
movq %rax, -0x1950(%rbp)
leaq 0x389f1(%rip), %rdi # 0x80040
leaq -0x1968(%rbp), %rsi
callq 0x479a0
jmp 0x4765d
callq 0xef60
jmp 0x47664
leaq -0xd28(%rbp), %rdi
callq 0x9be0
leaq -0xc18(%rbp), %rdi
callq 0x47a20
addq $0x1a70, %rsp # imm = 0x1A70
popq %rbp
retq
leaq -0xc18(%rbp), %rdi
callq 0x47a20
movq -0xd30(%rbp), %rdi
callq 0x9d00
nopl (%rax)
| _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z:
push rbp
mov rbp, rsp
sub rsp, 1A70h
test al, al
jz short loc_47347
movaps [rbp+var_19F0], xmm0
movaps [rbp+var_19E0], xmm1
movaps [rbp+var_19D0], xmm2
movaps [rbp+var_19C0], xmm3
movaps [rbp+var_19B0], xmm4
movaps [rbp+var_19A0], xmm5
movaps [rbp+var_1990], xmm6
movaps [rbp+var_1980], xmm7
loc_47347:
mov [rbp+var_19F8], r9
mov [rbp+var_1A00], r8
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
lea rax, _ZN3fLB17FLAGS_logtostdoutE; fLB::FLAGS_logtostdout
test byte ptr [rax], 1
jnz short loc_473A5
lea rax, _ZN3fLB17FLAGS_logtostderrE; fLB::FLAGS_logtostderr
test byte ptr [rax], 1
jnz short loc_473A5
mov eax, [rbp+var_4]
lea rcx, _ZN3fLI21FLAGS_stderrthresholdE; fLI::FLAGS_stderrthreshold
cmp eax, [rcx]
jge short loc_473A5
lea rax, _ZN3fLB21FLAGS_alsologtostderrE; fLB::FLAGS_alsologtostderr
test byte ptr [rax], 1
jnz short loc_473A5
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, 1
jnz short loc_473A0
jmp short loc_473A5
loc_473A0:
jmp loc_4767C
loc_473A5:
lea rdi, [rbp+var_C18]
mov [rbp+var_1A28], rdi
call _ZN5nglog12_GLOBAL__N_115StaticStringBufILm3000EEC2Ev; nglog::`anonymous namespace'::StaticStringBuf<3000ul>::StaticStringBuf(void)
mov rsi, [rbp+var_1A28]
lea rdi, [rbp+var_D28]
call __ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE; std::ostream::ostream(std::streambuf *)
jmp short $+2
loc_473CD:
mov edi, 5; int
call _ZSt4setwi; std::setw(int)
mov [rbp+var_1A2C], eax
jmp short $+2
loc_473DF:
mov eax, [rbp+var_1A2C]
mov [rbp+var_D38], eax
mov esi, [rbp+var_D38]
lea rdi, [rbp+var_D28]; this
call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw)
mov [rbp+var_1A38], rax
jmp short $+2
loc_47406:
call _ZNSt11this_thread6get_idEv; std::this_thread::get_id(void)
mov rdi, [rbp+var_1A38]
mov [rbp+var_D40], rax
mov rsi, [rbp+var_D40]; char *
call _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_NSt6thread2idE; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::thread::id)
jmp short $+2
loc_47427:
lea rax, [rbp+var_1900]
mov [rbp+var_1908], rax
mov [rbp+var_1910], 0BB8h
mov edi, [rbp+var_4]
call _ZN5nglog18GetLogSeverityNameENS_11LogSeverityE; nglog::GetLogSeverityName(nglog::LogSeverity)
mov [rbp+var_1A40], rax
jmp short $+2
loc_47451:
mov rax, [rbp+var_1A40]
movsx eax, byte ptr [rax]
mov dword ptr [rbp+var_1A54], eax
lea rdi, [rbp+var_C18]
call _ZN5nglog12_GLOBAL__N_115StaticStringBufILm3000EE4dataEv; nglog::`anonymous namespace'::StaticStringBuf<3000ul>::data(void)
mov [rbp+var_1A54+4], rax
mov rdi, [rbp+var_10]; this
call _ZN5nglog5tools14const_basenameEPKc; nglog::tools::const_basename(char const*)
mov [rbp+var_1A48], rax
jmp short $+2
loc_47486:
mov r9, [rbp+var_1A48]
mov r8, [rbp+var_1A54+4]
mov ecx, dword ptr [rbp+var_1A54]; char *
mov edx, [rbp+var_14]
mov rax, rsp
mov [rax], edx
lea rdx, aC0000000000000; "%c00000000 00:00:00.000000 %s %s:%d] RA"...
xor eax, eax
lea rdi, [rbp+var_1908]; this
lea rsi, [rbp+var_1910]; char **
call _ZN5nglogL8DoRawLogEPPcPmPKcz; nglog::DoRawLog(char **,ulong *,char const*,...)
jmp short $+2
loc_474C0:
mov rax, [rbp+var_1908]
mov [rbp+var_1918], rax
mov rax, [rbp+var_1910]
mov [rbp+var_1920], rax
lea rax, [rbp+var_1A20]
mov [rbp+var_1930], rax
lea rax, [rbp+arg_0]
mov [rbp+var_1938], rax
mov [rbp+var_193C], 30h ; '0'
mov dword ptr [rbp+var_1940], 20h ; ' '
mov rdx, [rbp+var_20]; unsigned __int64 *
lea rdi, [rbp+var_1908]; this
lea rsi, [rbp+var_1910]; char **
lea rcx, [rbp+var_1940]; char *
call _ZN5nglogL10VADoRawLogEPPcPmPKcP13__va_list_tag; nglog::VADoRawLog(char **,ulong *,char const*,__va_list_tag *)
mov [rbp+var_1A55], al
jmp short $+2
loc_4752F:
mov al, [rbp+var_1A55]
and al, 1
mov [rbp+var_1941], al
lea rax, [rbp+var_1940]
test [rbp+var_1941], 1
jz short loc_475A7
lea rdx, asc_4DC46+1; unsigned __int64 *
xor eax, eax
lea rdi, [rbp+var_1908]; this
lea rsi, [rbp+var_1910]; char **
call _ZN5nglogL8DoRawLogEPPcPmPKcz; nglog::DoRawLog(char **,ulong *,char const*,...)
jmp short $+2
loc_4756B:
jmp short loc_475C7
mov rcx, rax
mov eax, edx
mov [rbp+var_D30], rcx
mov [rbp+var_D34], eax
jmp loc_47685
mov rcx, rax
mov eax, edx
mov [rbp+var_D30], rcx
mov [rbp+var_D34], eax
lea rdi, [rbp+var_D28]; this
call __ZNSoD1Ev; std::ostream::~ostream()
jmp loc_47685
loc_475A7:
lea rdx, aRawLogErrorThe; "RAW_LOG ERROR: The Message was too long"...
xor eax, eax
lea rdi, [rbp+var_1908]; this
lea rsi, [rbp+var_1910]; char **
call _ZN5nglogL8DoRawLogEPPcPmPKcz; nglog::DoRawLog(char **,ulong *,char const*,...)
jmp short $+2
loc_475C5:
jmp short $+2
loc_475C7:
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fileno
mov [rbp+var_1A64], eax
lea rax, [rbp+var_1900]
mov [rbp+var_1A60], rax
lea rdi, [rbp+var_1900]
call _strlen
mov esi, [rbp+var_1A64]
mov rdx, [rbp+var_1A60]
mov rcx, rax
mov edi, 1
mov al, 0
call _syscall
cmp [rbp+var_4], 3
jnz short loc_47664
mov rax, [rbp+var_10]
mov [rbp+var_1968], rax
mov eax, [rbp+var_14]
mov [rbp+var_1960], eax
mov rax, [rbp+var_1918]
mov [rbp+var_1958], rax
mov rax, [rbp+var_1920]
mov [rbp+var_1950], rax
lea rdi, _ZN5nglogL7crashedE; this
lea rsi, [rbp+var_1968]
call _ZSt9call_onceIZN5nglog6RawLogENS0_11LogSeverityEPKciS3_zE3$_0JEEvRSt9once_flagOT_DpOT0_; std::call_once<nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)::$_0>(std::once_flag &,nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)::$_0 &&)
jmp short $+2
loc_4765D:
call _ZN5nglog10LogMessage4FailEv; nglog::LogMessage::Fail(void)
jmp short $+2
loc_47664:
lea rdi, [rbp+var_D28]; this
call __ZNSoD1Ev; std::ostream::~ostream()
lea rdi, [rbp+var_C18]
call _ZN5nglog12_GLOBAL__N_115StaticStringBufILm3000EED2Ev; nglog::`anonymous namespace'::StaticStringBuf<3000ul>::~StaticStringBuf()
loc_4767C:
add rsp, 1A70h
pop rbp
retn
loc_47685:
lea rdi, [rbp+var_C18]
call _ZN5nglog12_GLOBAL__N_115StaticStringBufILm3000EED2Ev; nglog::`anonymous namespace'::StaticStringBuf<3000ul>::~StaticStringBuf()
mov rdi, [rbp+var_D30]
call __Unwind_Resume
| long long nglog::RawLog(nglog *a1, nglog::tools *a2, int a3, unsigned long long *a4, ...)
{
long long result; // rax
char *v5; // rsi
__va_list_tag *v6; // r8
const char *v7; // rcx
long long v8; // rax
unsigned int v9; // [rsp+Ch] [rbp-1A64h]
unsigned int v10; // [rsp+1Ch] [rbp-1A54h]
char *v11; // [rsp+20h] [rbp-1A50h]
long long v12; // [rsp+28h] [rbp-1A48h]
long long v13; // [rsp+38h] [rbp-1A38h]
nglog::tools *v14; // [rsp+108h] [rbp-1968h] BYREF
int v15; // [rsp+110h] [rbp-1960h]
_BYTE *v16; // [rsp+118h] [rbp-1958h]
char *v17; // [rsp+120h] [rbp-1950h]
va_list va; // [rsp+130h] [rbp-1940h] BYREF
char *v20; // [rsp+150h] [rbp-1920h]
_BYTE *v21; // [rsp+158h] [rbp-1918h]
char *v22; // [rsp+160h] [rbp-1910h] BYREF
_BYTE *v23; // [rsp+168h] [rbp-1908h] BYREF
_BYTE v24[3008]; // [rsp+170h] [rbp-1900h] BYREF
char *id; // [rsp+D30h] [rbp-D40h]
unsigned int v26; // [rsp+D38h] [rbp-D38h]
_BYTE v27[272]; // [rsp+D48h] [rbp-D28h] BYREF
_BYTE v28[3064]; // [rsp+E58h] [rbp-C18h] BYREF
unsigned long long *v29; // [rsp+1A50h] [rbp-20h]
int v30; // [rsp+1A5Ch] [rbp-14h]
nglog::tools *v31; // [rsp+1A60h] [rbp-10h]
signed int v32; // [rsp+1A6Ch] [rbp-4h]
v32 = (int)a1;
v31 = a2;
v30 = a3;
v29 = a4;
if ( (fLB::FLAGS_logtostdout & 1) != 0
|| (fLB::FLAGS_logtostderr & 1) != 0
|| v32 >= fLI::FLAGS_stderrthreshold
|| (fLB::FLAGS_alsologtostderr & 1) != 0
|| (result = nglog::IsLoggingInitialized(a1), (result & 1) == 0) )
{
nglog::`anonymous namespace'::StaticStringBuf<3000ul>::StaticStringBuf();
std::ostream::ostream(v27, v28);
v26 = std::setw(5u);
v13 = std::operator<<<char,std::char_traits<char>>(v27, v26);
id = (char *)std::this_thread::get_id((std::this_thread *)v27);
v5 = id;
std::operator<<<char,std::char_traits<char>>(v13, (long long)id);
v23 = v24;
v22 = (_BYTE *)(&stru_BB0 + 8);
v10 = *(char *)nglog::GetLogSeverityName(v32);
v11 = (char *)nglog::`anonymous namespace'::StaticStringBuf<3000ul>::data(v28);
v12 = nglog::tools::const_basename(v31, v5);
nglog::DoRawLog(
(nglog *)&v23,
&v22,
(unsigned long long *)"%c00000000 00:00:00.000000 %s %s:%d] RAW: ",
(const char *)v10,
v11,
v12,
v30);
v21 = v23;
v20 = v22;
va_start(va, a4);
if ( nglog::VADoRawLog((nglog *)&v23, &v22, v29, (const char *)va, v6) & 1 )
nglog::DoRawLog((nglog *)&v23, &v22, (unsigned long long *)"\n", v7);
else
nglog::DoRawLog((nglog *)&v23, &v22, (unsigned long long *)"RAW_LOG ERROR: The Message was too long!\n", v7);
v9 = fileno(stderr);
v8 = strlen(v24);
syscall(1LL, v9, v24, v8);
if ( v32 == 3 )
{
v14 = v31;
v15 = v30;
v16 = v21;
v17 = v20;
std::call_once<nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)::$_0>(&nglog::crashed, &v14);
nglog::LogMessage::Fail((nglog::LogMessage *)&nglog::crashed);
}
std::ostream::~ostream((std::ostream *)v27);
return nglog::`anonymous namespace'::StaticStringBuf<3000ul>::~StaticStringBuf(v28);
}
return result;
}
| RawLog:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1a70
TEST AL,AL
JZ 0x00147347
MOVAPS xmmword ptr [RBP + -0x19f0],XMM0
MOVAPS xmmword ptr [RBP + -0x19e0],XMM1
MOVAPS xmmword ptr [RBP + -0x19d0],XMM2
MOVAPS xmmword ptr [RBP + -0x19c0],XMM3
MOVAPS xmmword ptr [RBP + -0x19b0],XMM4
MOVAPS xmmword ptr [RBP + -0x19a0],XMM5
MOVAPS xmmword ptr [RBP + -0x1990],XMM6
MOVAPS xmmword ptr [RBP + -0x1980],XMM7
LAB_00147347:
MOV qword ptr [RBP + -0x19f8],R9
MOV qword ptr [RBP + -0x1a00],R8
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[0x170ba2]
TEST byte ptr [RAX],0x1
JNZ 0x001473a5
LEA RAX,[0x170b9a]
TEST byte ptr [RAX],0x1
JNZ 0x001473a5
MOV EAX,dword ptr [RBP + -0x4]
LEA RCX,[0x170ba8]
CMP EAX,dword ptr [RCX]
JGE 0x001473a5
LEA RAX,[0x170b9c]
TEST byte ptr [RAX],0x1
JNZ 0x001473a5
CALL 0x0014aaa0
TEST AL,0x1
JNZ 0x001473a0
JMP 0x001473a5
LAB_001473a0:
JMP 0x0014767c
LAB_001473a5:
LEA RDI,[RBP + -0xc18]
MOV qword ptr [RBP + -0x1a28],RDI
CALL 0x001476a0
MOV RSI,qword ptr [RBP + -0x1a28]
LAB_001473bf:
LEA RDI,[RBP + -0xd28]
CALL 0x00109290
JMP 0x001473cd
LAB_001473cd:
MOV EDI,0x5
CALL 0x001172d0
MOV dword ptr [RBP + -0x1a2c],EAX
JMP 0x001473df
LAB_001473df:
MOV EAX,dword ptr [RBP + -0x1a2c]
MOV dword ptr [RBP + -0xd38],EAX
MOV ESI,dword ptr [RBP + -0xd38]
LEA RDI,[RBP + -0xd28]
CALL 0x00109880
MOV qword ptr [RBP + -0x1a38],RAX
JMP 0x00147406
LAB_00147406:
CALL 0x001172a0
MOV RDI,qword ptr [RBP + -0x1a38]
MOV qword ptr [RBP + -0xd40],RAX
MOV RSI,qword ptr [RBP + -0xd40]
CALL 0x00117310
JMP 0x00147427
LAB_00147427:
LEA RAX,[RBP + -0x1900]
MOV qword ptr [RBP + -0x1908],RAX
MOV qword ptr [RBP + -0x1910],0xbb8
MOV EDI,dword ptr [RBP + -0x4]
CALL 0x0010cca0
MOV qword ptr [RBP + -0x1a40],RAX
JMP 0x00147451
LAB_00147451:
MOV RAX,qword ptr [RBP + -0x1a40]
MOVSX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x1a54],EAX
LEA RDI,[RBP + -0xc18]
CALL 0x00147860
MOV qword ptr [RBP + -0x1a50],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014aae0
MOV qword ptr [RBP + -0x1a48],RAX
JMP 0x00147486
LAB_00147486:
MOV R9,qword ptr [RBP + -0x1a48]
MOV R8,qword ptr [RBP + -0x1a50]
MOV ECX,dword ptr [RBP + -0x1a54]
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,RSP
MOV dword ptr [RAX],EDX
LEA RDX,[0x14ecb5]
XOR EAX,EAX
LEA RDI,[RBP + -0x1908]
LEA RSI,[RBP + -0x1910]
CALL 0x00147760
JMP 0x001474c0
LAB_001474c0:
MOV RAX,qword ptr [RBP + -0x1908]
MOV qword ptr [RBP + -0x1918],RAX
MOV RAX,qword ptr [RBP + -0x1910]
MOV qword ptr [RBP + -0x1920],RAX
LEA RAX,[RBP + -0x1a20]
MOV qword ptr [RBP + -0x1930],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x1938],RAX
MOV dword ptr [RBP + -0x193c],0x30
MOV dword ptr [RBP + -0x1940],0x20
MOV RDX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x1908]
LEA RSI,[RBP + -0x1910]
LEA RCX,[RBP + -0x1940]
CALL 0x00147910
MOV byte ptr [RBP + -0x1a55],AL
JMP 0x0014752f
LAB_0014752f:
MOV AL,byte ptr [RBP + -0x1a55]
AND AL,0x1
MOV byte ptr [RBP + -0x1941],AL
LEA RAX,[RBP + -0x1940]
TEST byte ptr [RBP + -0x1941],0x1
JZ 0x001475a7
LEA RDX,[0x14dc47]
XOR EAX,EAX
LEA RDI,[RBP + -0x1908]
LEA RSI,[RBP + -0x1910]
CALL 0x00147760
JMP 0x0014756b
LAB_0014756b:
JMP 0x001475c7
LAB_001475a7:
LEA RDX,[0x14ece0]
XOR EAX,EAX
LEA RDI,[RBP + -0x1908]
LEA RSI,[RBP + -0x1910]
CALL 0x00147760
JMP 0x001475c5
LAB_001475c5:
JMP 0x001475c7
LAB_001475c7:
MOV RAX,qword ptr [0x0016ffb0]
MOV RDI,qword ptr [RAX]
CALL 0x00109790
MOV dword ptr [RBP + -0x1a64],EAX
LEA RAX,[RBP + -0x1900]
MOV qword ptr [RBP + -0x1a60],RAX
LEA RDI,[RBP + -0x1900]
CALL 0x001092f0
MOV ESI,dword ptr [RBP + -0x1a64]
MOV RDX,qword ptr [RBP + -0x1a60]
MOV RCX,RAX
MOV EDI,0x1
MOV AL,0x0
CALL 0x001090c0
CMP dword ptr [RBP + -0x4],0x3
JNZ 0x00147664
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x1968],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x1960],EAX
MOV RAX,qword ptr [RBP + -0x1918]
MOV qword ptr [RBP + -0x1958],RAX
MOV RAX,qword ptr [RBP + -0x1920]
MOV qword ptr [RBP + -0x1950],RAX
LEA RDI,[0x180040]
LEA RSI,[RBP + -0x1968]
CALL 0x001479a0
JMP 0x0014765d
LAB_0014765d:
CALL 0x0010ef60
LAB_00147662:
JMP 0x00147664
LAB_00147664:
LEA RDI,[RBP + -0xd28]
CALL 0x00109be0
LEA RDI,[RBP + -0xc18]
CALL 0x00147a20
LAB_0014767c:
ADD RSP,0x1a70
POP RBP
RET
|
/* nglog::RawLog(nglog::LogSeverity, char const*, int, char const*, ...) */
void nglog::RawLog(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int param_9,char *param_10,int4 param_11,char *param_12,int8 param_13,
int8 param_14,...)
{
char cVar1;
char in_AL;
uint uVar2;
ulong uVar3;
ostream *poVar4;
char *pcVar5;
int8 uVar6;
int8 uVar7;
size_t sVar8;
int1 local_1a28 [32];
int8 local_1a08;
int8 local_1a00;
int8 local_19f8;
int8 local_19e8;
int8 local_19d8;
int8 local_19c8;
int8 local_19b8;
int8 local_19a8;
int8 local_1998;
int8 local_1988;
char *local_1970;
int4 local_1968;
char *local_1960;
ulong local_1958;
byte local_1949;
int4 local_1948;
int4 local_1944;
int1 *local_1940;
int1 *local_1938;
ulong local_1928;
char *local_1920;
ulong local_1918;
char *local_1910;
char local_1908 [3008];
int8 local_d48;
int4 local_d40;
ostream local_d30 [272];
StaticStringBuf<3000ul> local_c20 [3064];
char *local_28;
int4 local_1c;
char *local_18;
int local_c;
if (in_AL != '\0') {
local_19f8 = param_1;
local_19e8 = param_2;
local_19d8 = param_3;
local_19c8 = param_4;
local_19b8 = param_5;
local_19a8 = param_6;
local_1998 = param_7;
local_1988 = param_8;
}
local_1a08 = param_13;
local_1a00 = param_14;
local_28 = param_12;
local_1c = param_11;
local_18 = param_10;
local_c = param_9;
if (((((fLB::FLAGS_logtostdout & 1) != 0) || ((fLB::FLAGS_logtostderr & 1) != 0)) ||
(fLI::FLAGS_stderrthreshold <= param_9)) ||
(((fLB::FLAGS_alsologtostderr & 1) != 0 || (uVar3 = IsLoggingInitialized(), (uVar3 & 1) == 0)))
) {
(anonymous_namespace)::StaticStringBuf<3000ul>::StaticStringBuf(local_c20);
/* try { // try from 001473bf to 001473ca has its CatchHandler @ 0014756d */
std::ostream::ostream(local_d30,(streambuf *)local_c20);
/* try { // try from 001473cd to 00147661 has its CatchHandler @ 00147584 */
local_d40 = std::setw(5);
poVar4 = std::operator<<(local_d30,local_d40);
local_d48 = std::this_thread::get_id();
std::operator<<(poVar4,local_d48);
local_1910 = local_1908;
local_1918 = 3000;
pcVar5 = (char *)GetLogSeverityName(local_c);
cVar1 = *pcVar5;
uVar6 = (anonymous_namespace)::StaticStringBuf<3000ul>::data(local_c20);
uVar7 = tools::const_basename(local_18);
DoRawLog(&local_1910,&local_1918,"%c00000000 00:00:00.000000 %s %s:%d] RAW: ",
(ulong)(uint)(int)cVar1,uVar6,uVar7,local_1c);
local_1920 = local_1910;
local_1928 = local_1918;
local_1938 = local_1a28;
local_1940 = &stack0x00000008;
local_1944 = 0x30;
local_1948 = 0x20;
local_1949 = VADoRawLog(&local_1910,&local_1918,local_28,(__va_list_tag *)&local_1948);
local_1949 = local_1949 & 1;
if (local_1949 == 0) {
DoRawLog(&local_1910,&local_1918,"RAW_LOG ERROR: The Message was too long!\n");
}
else {
DoRawLog(&local_1910,&local_1918,"\n");
}
uVar2 = fileno(*(FILE **)PTR_stderr_0016ffb0);
sVar8 = strlen(local_1908);
syscall(1,(ulong)uVar2,local_1908,sVar8);
if (local_c == 3) {
local_1970 = local_18;
local_1968 = local_1c;
local_1960 = local_1920;
local_1958 = local_1928;
std::call_once<nglog::RawLog(nglog::LogSeverity,char_const*,int,char_const*,___)::__0>
((once_flag *)&crashed,(__0 *)&local_1970);
LogMessage::Fail();
}
std::ostream::~ostream(local_d30);
(anonymous_namespace)::StaticStringBuf<3000ul>::~StaticStringBuf(local_c20);
}
return;
}
| |
32,751 | find_global_var | bluesky950520[P]quickjs/quickjs.c | static JSGlobalVar *find_global_var(JSFunctionDef *fd, JSAtom name)
{
int i;
for(i = 0; i < fd->global_var_count; i++) {
JSGlobalVar *hf = &fd->global_vars[i];
if (hf->var_name == name)
return hf;
}
return NULL;
} | O0 | c | find_global_var:
movq %rdi, -0x10(%rsp)
movl %esi, -0x14(%rsp)
movl $0x0, -0x18(%rsp)
movl -0x18(%rsp), %eax
movq -0x10(%rsp), %rcx
cmpl 0x124(%rcx), %eax
jge 0xa3488
movq -0x10(%rsp), %rax
movq 0x130(%rax), %rax
movslq -0x18(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rsp)
movq -0x20(%rsp), %rax
movl 0xc(%rax), %eax
cmpl -0x14(%rsp), %eax
jne 0xa3479
movq -0x20(%rsp), %rax
movq %rax, -0x8(%rsp)
jmp 0xa3491
jmp 0xa347b
movl -0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rsp)
jmp 0xa3431
movq $0x0, -0x8(%rsp)
movq -0x8(%rsp), %rax
retq
nopw (%rax,%rax)
| find_global_var:
mov [rsp+var_10], rdi
mov [rsp+var_14], esi
mov [rsp+var_18], 0
loc_A3431:
mov eax, [rsp+var_18]
mov rcx, [rsp+var_10]
cmp eax, [rcx+124h]
jge short loc_A3488
mov rax, [rsp+var_10]
mov rax, [rax+130h]
movsxd rcx, [rsp+var_18]
shl rcx, 4
add rax, rcx
mov [rsp+var_20], rax
mov rax, [rsp+var_20]
mov eax, [rax+0Ch]
cmp eax, [rsp+var_14]
jnz short loc_A3479
mov rax, [rsp+var_20]
mov [rsp+var_8], rax
jmp short loc_A3491
loc_A3479:
jmp short $+2
loc_A347B:
mov eax, [rsp+var_18]
add eax, 1
mov [rsp+var_18], eax
jmp short loc_A3431
loc_A3488:
mov [rsp+var_8], 0
loc_A3491:
mov rax, [rsp+var_8]
retn
| long long find_global_var(long long a1, int a2)
{
int i; // [rsp+8h] [rbp-18h]
for ( i = 0; i < *(_DWORD *)(a1 + 292); ++i )
{
if ( *(_DWORD *)(16LL * i + *(_QWORD *)(a1 + 304) + 12) == a2 )
return 16LL * i + *(_QWORD *)(a1 + 304);
}
return 0LL;
}
| find_global_var:
MOV qword ptr [RSP + -0x10],RDI
MOV dword ptr [RSP + -0x14],ESI
MOV dword ptr [RSP + -0x18],0x0
LAB_001a3431:
MOV EAX,dword ptr [RSP + -0x18]
MOV RCX,qword ptr [RSP + -0x10]
CMP EAX,dword ptr [RCX + 0x124]
JGE 0x001a3488
MOV RAX,qword ptr [RSP + -0x10]
MOV RAX,qword ptr [RAX + 0x130]
MOVSXD RCX,dword ptr [RSP + -0x18]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + -0x20]
MOV EAX,dword ptr [RAX + 0xc]
CMP EAX,dword ptr [RSP + -0x14]
JNZ 0x001a3479
MOV RAX,qword ptr [RSP + -0x20]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a3491
LAB_001a3479:
JMP 0x001a347b
LAB_001a347b:
MOV EAX,dword ptr [RSP + -0x18]
ADD EAX,0x1
MOV dword ptr [RSP + -0x18],EAX
JMP 0x001a3431
LAB_001a3488:
MOV qword ptr [RSP + -0x8],0x0
LAB_001a3491:
MOV RAX,qword ptr [RSP + -0x8]
RET
|
long find_global_var(long param_1,int param_2)
{
long lVar1;
int local_18;
local_18 = 0;
while( true ) {
if (*(int *)(param_1 + 0x124) <= local_18) {
return 0;
}
lVar1 = *(long *)(param_1 + 0x130) + (long)local_18 * 0x10;
if (*(int *)(lVar1 + 0xc) == param_2) break;
local_18 = local_18 + 1;
}
return lVar1;
}
| |
32,752 | reset_key_cache_counters | eloqsql/mysys/mf_keycache.c | int reset_key_cache_counters(const char *name __attribute__((unused)),
KEY_CACHE *keycache,
void *unused __attribute__((unused)))
{
int rc= 0;
if (keycache->key_cache_inited)
{
pthread_mutex_lock(&keycache->op_lock);
rc= keycache->interface_funcs->reset_counters(name,
keycache->keycache_cb);
pthread_mutex_unlock(&keycache->op_lock);
}
return rc;
} | O0 | c | reset_key_cache_counters:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x48(%rax)
je 0xea5fc
movq -0x10(%rbp), %rdi
addq $0x58, %rdi
callq 0x2a200
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rsi
callq *%rax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x58, %rdi
callq 0x2a1e0
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| reset_key_cache_counters:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], 0
mov rax, [rbp+var_10]
cmp byte ptr [rax+48h], 0
jz short loc_EA5FC
mov rdi, [rbp+var_10]
add rdi, 58h ; 'X'
call _pthread_mutex_lock
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rax, [rax+38h]
mov rdi, [rbp+var_8]
mov rcx, [rbp+var_10]
mov rsi, [rcx+8]
call rax
mov [rbp+var_1C], eax
mov rdi, [rbp+var_10]
add rdi, 58h ; 'X'
call _pthread_mutex_unlock
loc_EA5FC:
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
| long long reset_key_cache_counters(long long a1, long long a2)
{
unsigned int v3; // [rsp+4h] [rbp-1Ch]
v3 = 0;
if ( *(_BYTE *)(a2 + 72) )
{
pthread_mutex_lock(a2 + 88);
v3 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)(a2 + 16) + 56LL))(a1, *(_QWORD *)(a2 + 8));
pthread_mutex_unlock(a2 + 88);
}
return v3;
}
| reset_key_cache_counters:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x48],0x0
JZ 0x001ea5fc
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x58
CALL 0x0012a200
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RDI,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x8]
CALL RAX
MOV dword ptr [RBP + -0x1c],EAX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x58
CALL 0x0012a1e0
LAB_001ea5fc:
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int4 reset_key_cache_counters(int8 param_1,long param_2)
{
int4 local_24;
local_24 = 0;
if (*(char *)(param_2 + 0x48) != '\0') {
pthread_mutex_lock((pthread_mutex_t *)(param_2 + 0x58));
local_24 = (**(code **)(*(long *)(param_2 + 0x10) + 0x38))(param_1,*(int8 *)(param_2 + 8))
;
pthread_mutex_unlock((pthread_mutex_t *)(param_2 + 0x58));
}
return local_24;
}
| |
32,753 | js_promise_race | bluesky950520[P]quickjs/quickjs.c | static JSValue js_promise_race(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue result_promise, resolving_funcs[2], item, next_promise, ret;
JSValue next_method = JS_UNDEFINED, iter = JS_UNDEFINED;
JSValue promise_resolve = JS_UNDEFINED;
BOOL done;
if (!JS_IsObject(this_val))
return JS_ThrowTypeErrorNotAnObject(ctx);
result_promise = js_new_promise_capability(ctx, resolving_funcs, this_val);
if (JS_IsException(result_promise))
return result_promise;
promise_resolve = JS_GetProperty(ctx, this_val, JS_ATOM_resolve);
if (JS_IsException(promise_resolve) ||
check_function(ctx, promise_resolve))
goto fail_reject;
iter = JS_GetIterator(ctx, argv[0], FALSE);
if (JS_IsException(iter)) {
JSValue error;
fail_reject:
error = JS_GetException(ctx);
ret = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED, 1,
&error);
JS_FreeValue(ctx, error);
if (JS_IsException(ret))
goto fail;
JS_FreeValue(ctx, ret);
} else {
next_method = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next_method))
goto fail_reject;
for(;;) {
/* XXX: conformance: should close the iterator if error on 'done'
access, but not on 'value' access */
item = JS_IteratorNext(ctx, iter, next_method, 0, NULL, &done);
if (JS_IsException(item))
goto fail_reject;
if (done)
break;
next_promise = JS_Call(ctx, promise_resolve,
this_val, 1, &item);
JS_FreeValue(ctx, item);
if (JS_IsException(next_promise)) {
fail_reject1:
JS_IteratorClose(ctx, iter, TRUE);
goto fail_reject;
}
ret = JS_InvokeFree(ctx, next_promise, JS_ATOM_then, 2,
resolving_funcs);
if (check_exception_free(ctx, ret))
goto fail_reject1;
}
}
done:
JS_FreeValue(ctx, promise_resolve);
JS_FreeValue(ctx, next_method);
JS_FreeValue(ctx, iter);
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
return result_promise;
fail:
//JS_FreeValue(ctx, next_method); // why not???
JS_FreeValue(ctx, result_promise);
result_promise = JS_EXCEPTION;
goto done;
} | O0 | c | js_promise_race:
subq $0x1a8, %rsp # imm = 0x1A8
movq %rsi, 0x188(%rsp)
movq %rdx, 0x190(%rsp)
movq %rdi, 0x180(%rsp)
movl %ecx, 0x17c(%rsp)
movq %r8, 0x170(%rsp)
movq 0x78f4b(%rip), %rax # 0x10d980
movq %rax, 0x100(%rsp)
movq 0x78f44(%rip), %rax # 0x10d988
movq %rax, 0x108(%rsp)
movq 0x78f2d(%rip), %rax # 0x10d980
movq %rax, 0xf0(%rsp)
movq 0x78f26(%rip), %rax # 0x10d988
movq %rax, 0xf8(%rsp)
movq 0x78f0f(%rip), %rax # 0x10d980
movq %rax, 0xe0(%rsp)
movq 0x78f08(%rip), %rax # 0x10d988
movq %rax, 0xe8(%rsp)
movq 0x188(%rsp), %rdi
movq 0x190(%rsp), %rsi
callq 0x2af70
cmpl $0x0, %eax
jne 0x94ac4
movq 0x180(%rsp), %rdi
callq 0x2f5a0
movq %rax, 0x198(%rsp)
movq %rdx, 0x1a0(%rsp)
jmp 0x950ac
movq 0x180(%rsp), %rdi
leaq 0x140(%rsp), %rsi
movq 0x188(%rsp), %rdx
movq 0x190(%rsp), %rcx
callq 0x537c0
movq %rax, 0xc8(%rsp)
movq %rdx, 0xd0(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x160(%rsp), %rdi
movq 0x168(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94b58
movq 0x160(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x1a0(%rsp)
jmp 0x950ac
movq 0x180(%rsp), %rdi
movq 0x188(%rsp), %rsi
movq 0x190(%rsp), %rdx
movl $0x81, %ecx
callq 0x29d80
movq %rax, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
jne 0x94be6
movq 0x180(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x6da80
cmpl $0x0, %eax
je 0x94be8
jmp 0x94c56
movq 0x180(%rsp), %rdi
movq 0x170(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
xorl %ecx, %ecx
callq 0x6e7b0
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0xf0(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94d65
jmp 0x94c56
movq 0x180(%rsp), %rdi
callq 0x2cf70
movq %rax, 0x88(%rsp)
movq %rdx, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x180(%rsp), %rdi
movl $0x0, 0x68(%rsp)
movq $0x3, 0x70(%rsp)
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movl $0x1, %r9d
leaq 0x98(%rsp), %rax
movq %rax, (%rsp)
callq 0x3a050
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x180(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x23c90
movq 0x110(%rsp), %rdi
movq 0x118(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94d43
jmp 0x9505f
movq 0x180(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
callq 0x23c90
jmp 0x94faa
movq 0x180(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movl $0x6b, %ecx
callq 0x29d80
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x100(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94dca
jmp 0x94c56
jmp 0x94dcc
movq 0x180(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq 0x100(%rsp), %rcx
movq 0x108(%rsp), %r8
xorl %r9d, %r9d
xorl %eax, %eax
leaq 0xdc(%rsp), %rax
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x6eeb0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x130(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94e56
jmp 0x94c56
cmpl $0x0, 0xdc(%rsp)
je 0x94e65
jmp 0x94fa8
movq 0x180(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x188(%rsp), %rcx
movq 0x190(%rsp), %r8
movl $0x1, %r9d
leaq 0x130(%rsp), %rax
movq %rax, (%rsp)
callq 0x3a050
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x180(%rsp), %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
callq 0x23c90
movq 0x120(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x94f28
jmp 0x94f01
movq 0x180(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movl $0x1, %ecx
callq 0x67fc0
jmp 0x94c56
movq 0x180(%rsp), %rdi
leaq 0x140(%rsp), %r9
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rdx
movl $0x80, %ecx
movl $0x2, %r8d
callq 0x937d0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x180(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
callq 0x871e0
cmpl $0x0, %eax
je 0x94fa3
jmp 0x94f01
jmp 0x94dcc
jmp 0x94faa
jmp 0x94fac
movq 0x180(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x23c90
movq 0x180(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rdx
callq 0x23c90
movq 0x180(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
callq 0x23c90
movq 0x180(%rsp), %rdi
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
callq 0x23c90
movq 0x180(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
callq 0x23c90
movq 0x160(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x1a0(%rsp)
jmp 0x950ac
movq 0x180(%rsp), %rdi
movq 0x160(%rsp), %rsi
movq 0x168(%rsp), %rdx
callq 0x23c90
movl $0x0, 0x18(%rsp)
movq $0x6, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x168(%rsp)
jmp 0x94fac
movq 0x198(%rsp), %rax
movq 0x1a0(%rsp), %rdx
addq $0x1a8, %rsp # imm = 0x1A8
retq
nopw %cs:(%rax,%rax)
| js_promise_race:
sub rsp, 1A8h
mov [rsp+1A8h+var_20], rsi
mov [rsp+1A8h+var_18], rdx
mov [rsp+1A8h+var_28], rdi
mov [rsp+1A8h+var_2C], ecx
mov [rsp+1A8h+var_38], r8
mov rax, cs:qword_10D980
mov [rsp+1A8h+var_A8], rax
mov rax, cs:qword_10D988
mov [rsp+1A8h+var_A0], rax
mov rax, cs:qword_10D980
mov [rsp+1A8h+var_B8], rax
mov rax, cs:qword_10D988
mov [rsp+1A8h+var_B0], rax
mov rax, cs:qword_10D980
mov [rsp+1A8h+var_C8], rax
mov rax, cs:qword_10D988
mov [rsp+1A8h+var_C0], rax
mov rdi, [rsp+1A8h+var_20]
mov rsi, [rsp+1A8h+var_18]
call JS_IsObject
cmp eax, 0
jnz short loc_94AC4
mov rdi, [rsp+1A8h+var_28]
call JS_ThrowTypeErrorNotAnObject
mov [rsp+1A8h+var_10], rax
mov [rsp+1A8h+var_8], rdx
jmp loc_950AC
loc_94AC4:
mov rdi, [rsp+1A8h+var_28]
lea rsi, [rsp+1A8h+var_68]
mov rdx, [rsp+1A8h+var_20]
mov rcx, [rsp+1A8h+var_18]
call js_new_promise_capability
mov [rsp+1A8h+var_E0], rax
mov [rsp+1A8h+var_D8], rdx
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_48], rax
mov rax, [rsp+1A8h+var_D8]
mov [rsp+1A8h+var_40], rax
mov rdi, [rsp+1A8h+var_48]
mov rsi, [rsp+1A8h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_94B58
mov rax, [rsp+1A8h+var_48]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_40]
mov [rsp+1A8h+var_8], rax
jmp loc_950AC
loc_94B58:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_20]
mov rdx, [rsp+1A8h+var_18]
mov ecx, 81h
call JS_GetProperty
mov [rsp+1A8h+var_F0], rax
mov [rsp+1A8h+var_E8], rdx
mov rax, [rsp+1A8h+var_F0]
mov [rsp+1A8h+var_C8], rax
mov rax, [rsp+1A8h+var_E8]
mov [rsp+1A8h+var_C0], rax
mov rdi, [rsp+1A8h+var_C8]
mov rsi, [rsp+1A8h+var_C0]
call JS_IsException_1
cmp eax, 0
jnz short loc_94BE6
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_C8]
mov rdx, [rsp+1A8h+var_C0]
call check_function
cmp eax, 0
jz short loc_94BE8
loc_94BE6:
jmp short loc_94C56
loc_94BE8:
mov rdi, [rsp+1A8h+var_28]
mov rax, [rsp+1A8h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
xor ecx, ecx
call JS_GetIterator
mov [rsp+1A8h+var_100], rax
mov [rsp+1A8h+var_F8], rdx
mov rax, [rsp+1A8h+var_100]
mov [rsp+1A8h+var_B8], rax
mov rax, [rsp+1A8h+var_F8]
mov [rsp+1A8h+var_B0], rax
mov rdi, [rsp+1A8h+var_B8]
mov rsi, [rsp+1A8h+var_B0]
call JS_IsException_1
cmp eax, 0
jz loc_94D65
jmp short $+2
loc_94C56:
mov rdi, [rsp+1A8h+var_28]
call JS_GetException
mov [rsp+1A8h+var_120], rax
mov [rsp+1A8h+var_118], rdx
mov rax, [rsp+1A8h+var_120]
mov [rsp+1A8h+var_110], rax
mov rax, [rsp+1A8h+var_118]
mov [rsp+1A8h+var_108], rax
mov rdi, [rsp+1A8h+var_28]
mov dword ptr [rsp+1A8h+var_140], 0
mov [rsp+1A8h+var_138], 3
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
mov rcx, [rsp+1A8h+var_140]
mov r8, [rsp+1A8h+var_138]
mov r9d, 1
lea rax, [rsp+1A8h+var_110]
mov [rsp+1A8h+var_1A8], rax
call JS_Call
mov [rsp+1A8h+var_130], rax
mov [rsp+1A8h+var_128], rdx
mov rax, [rsp+1A8h+var_130]
mov [rsp+1A8h+var_98], rax
mov rax, [rsp+1A8h+var_128]
mov [rsp+1A8h+var_90], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_110]
mov rdx, [rsp+1A8h+var_108]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_98]
mov rsi, [rsp+1A8h+var_90]
call JS_IsException_1
cmp eax, 0
jz short loc_94D43
jmp loc_9505F
loc_94D43:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_98]
mov rdx, [rsp+1A8h+var_90]
call JS_FreeValue
jmp loc_94FAA
loc_94D65:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_B8]
mov rdx, [rsp+1A8h+var_B0]
mov ecx, 6Bh ; 'k'
call JS_GetProperty
mov [rsp+1A8h+var_150], rax
mov [rsp+1A8h+var_148], rdx
mov rax, [rsp+1A8h+var_150]
mov [rsp+1A8h+var_A8], rax
mov rax, [rsp+1A8h+var_148]
mov [rsp+1A8h+var_A0], rax
mov rdi, [rsp+1A8h+var_A8]
mov rsi, [rsp+1A8h+var_A0]
call JS_IsException_1
cmp eax, 0
jz short loc_94DCA
jmp loc_94C56
loc_94DCA:
jmp short $+2
loc_94DCC:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_B8]
mov rdx, [rsp+1A8h+var_B0]
mov rcx, [rsp+1A8h+var_A8]
mov r8, [rsp+1A8h+var_A0]
xor r9d, r9d
xor eax, eax
lea rax, [rsp+1A8h+var_CC]
mov [rsp+1A8h+var_1A8], 0
mov [rsp+1A8h+var_1A0], rax
call JS_IteratorNext
mov [rsp+1A8h+var_160], rax
mov [rsp+1A8h+var_158], rdx
mov rax, [rsp+1A8h+var_160]
mov [rsp+1A8h+var_78], rax
mov rax, [rsp+1A8h+var_158]
mov [rsp+1A8h+var_70], rax
mov rdi, [rsp+1A8h+var_78]
mov rsi, [rsp+1A8h+var_70]
call JS_IsException_1
cmp eax, 0
jz short loc_94E56
jmp loc_94C56
loc_94E56:
cmp [rsp+1A8h+var_CC], 0
jz short loc_94E65
jmp loc_94FA8
loc_94E65:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_C8]
mov rdx, [rsp+1A8h+var_C0]
mov rcx, [rsp+1A8h+var_20]
mov r8, [rsp+1A8h+var_18]
mov r9d, 1
lea rax, [rsp+1A8h+var_78]
mov [rsp+1A8h+var_1A8], rax
call JS_Call
mov [rsp+1A8h+var_170], rax
mov [rsp+1A8h+var_168], rdx
mov rax, [rsp+1A8h+var_170]
mov [rsp+1A8h+var_88], rax
mov rax, [rsp+1A8h+var_168]
mov [rsp+1A8h+var_80], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_78]
mov rdx, [rsp+1A8h+var_70]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_88]
mov rsi, [rsp+1A8h+var_80]
call JS_IsException_1
cmp eax, 0
jz short loc_94F28
jmp short $+2
loc_94F01:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_B8]
mov rdx, [rsp+1A8h+var_B0]
mov ecx, 1
call JS_IteratorClose
jmp loc_94C56
loc_94F28:
mov rdi, [rsp+1A8h+var_28]
lea r9, [rsp+1A8h+var_68]
mov rsi, [rsp+1A8h+var_88]
mov rdx, [rsp+1A8h+var_80]
mov ecx, 80h
mov r8d, 2
call JS_InvokeFree
mov [rsp+1A8h+var_180], rax
mov [rsp+1A8h+var_178], rdx
mov rax, [rsp+1A8h+var_180]
mov [rsp+1A8h+var_98], rax
mov rax, [rsp+1A8h+var_178]
mov [rsp+1A8h+var_90], rax
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_98]
mov rdx, [rsp+1A8h+var_90]
call check_exception_free
cmp eax, 0
jz short loc_94FA3
jmp loc_94F01
loc_94FA3:
jmp loc_94DCC
loc_94FA8:
jmp short $+2
loc_94FAA:
jmp short $+2
loc_94FAC:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_C8]
mov rdx, [rsp+1A8h+var_C0]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_A8]
mov rdx, [rsp+1A8h+var_A0]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_B8]
mov rdx, [rsp+1A8h+var_B0]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_68]
mov rdx, [rsp+1A8h+var_60]
call JS_FreeValue
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_58]
mov rdx, [rsp+1A8h+var_50]
call JS_FreeValue
mov rax, [rsp+1A8h+var_48]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_40]
mov [rsp+1A8h+var_8], rax
jmp short loc_950AC
loc_9505F:
mov rdi, [rsp+1A8h+var_28]
mov rsi, [rsp+1A8h+var_48]
mov rdx, [rsp+1A8h+var_40]
call JS_FreeValue
mov dword ptr [rsp+1A8h+var_190], 0
mov [rsp+1A8h+var_188], 6
mov rax, [rsp+1A8h+var_190]
mov [rsp+1A8h+var_48], rax
mov rax, [rsp+1A8h+var_188]
mov [rsp+1A8h+var_40], rax
jmp loc_94FAC
loc_950AC:
mov rax, [rsp+1A8h+var_10]
mov rdx, [rsp+1A8h+var_8]
add rsp, 1A8h
retn
| long long js_promise_race(
long long a1,
long long a2,
unsigned long long a3,
int a4,
long long *a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v21; // rdx
long long v22; // rdx
long long v23; // rdx
double v24; // xmm4_8
double v25; // xmm5_8
double v26; // xmm4_8
double v27; // xmm5_8
long long v28; // rdx
long long v29; // rdx
long long v30; // rdx
long long v31; // rdx
long long v32; // rdx
long long v33; // rdx
double v34; // xmm4_8
double v35; // xmm5_8
long long v36; // rdx
long long v38; // [rsp+18h] [rbp-190h]
long long Exception; // [rsp+98h] [rbp-110h] BYREF
long long v40; // [rsp+A0h] [rbp-108h]
long long Iterator; // [rsp+A8h] [rbp-100h]
long long v42; // [rsp+B0h] [rbp-F8h]
long long Property; // [rsp+B8h] [rbp-F0h]
long long v44; // [rsp+C0h] [rbp-E8h]
long long v45; // [rsp+C8h] [rbp-E0h]
long long v46; // [rsp+D0h] [rbp-D8h]
int v47; // [rsp+DCh] [rbp-CCh] BYREF
long long v48; // [rsp+E0h] [rbp-C8h]
long long v49; // [rsp+E8h] [rbp-C0h]
long long v50; // [rsp+F0h] [rbp-B8h]
long long v51; // [rsp+F8h] [rbp-B0h]
long long v52; // [rsp+100h] [rbp-A8h]
long long v53; // [rsp+108h] [rbp-A0h]
long long v54; // [rsp+110h] [rbp-98h]
long long v55; // [rsp+118h] [rbp-90h]
long long v56; // [rsp+120h] [rbp-88h]
long long v57; // [rsp+128h] [rbp-80h]
long long v58; // [rsp+130h] [rbp-78h] BYREF
long long v59; // [rsp+138h] [rbp-70h]
long long v60[2]; // [rsp+140h] [rbp-68h] BYREF
long long v61; // [rsp+150h] [rbp-58h]
long long v62; // [rsp+158h] [rbp-50h]
long long v63; // [rsp+160h] [rbp-48h]
long long v64; // [rsp+168h] [rbp-40h]
long long *v65; // [rsp+170h] [rbp-38h]
int v66; // [rsp+17Ch] [rbp-2Ch]
long long v67; // [rsp+180h] [rbp-28h]
long long v68; // [rsp+188h] [rbp-20h]
unsigned long long v69; // [rsp+190h] [rbp-18h]
long long v70; // [rsp+198h] [rbp-10h]
long long v71; // [rsp+1A0h] [rbp-8h]
v68 = a2;
v69 = a3;
v67 = a1;
v66 = a4;
v65 = a5;
v52 = 0LL;
v53 = 3LL;
v50 = 0LL;
v51 = 3LL;
v48 = 0LL;
v49 = 3LL;
if ( JS_IsObject(a2, a3) )
{
v45 = js_new_promise_capability(
v67,
(long long)v60,
v68,
v69,
a6,
a7,
a8,
a9,
*(double *)v19.m128_u64,
*(double *)v20.m128_u64,
a12,
a13);
v46 = v22;
v63 = v45;
v64 = v22;
if ( JS_IsException_1(v45, v22) )
{
v70 = v63;
v71 = v64;
}
else
{
Property = JS_GetProperty(v67, v68, v69, 129);
v44 = v23;
v48 = Property;
v49 = v23;
if ( !JS_IsException_1(Property, v23)
&& !(unsigned int)check_function(v67, v48, v49, a6, a7, a8, a9, v24, v25, a12, a13) )
{
Iterator = JS_GetIterator(v67, *v65, v65[1], 0, a6, a7, a8, a9, v26, v27, a12, a13);
v42 = v28;
v50 = Iterator;
v51 = v28;
if ( !JS_IsException_1(Iterator, v28) )
{
v52 = JS_GetProperty(v67, v50, v51, 107);
v53 = v31;
if ( !JS_IsException_1(v52, v31) )
{
while ( 1 )
{
v58 = JS_IteratorNext(v67, v50, v51, v52, v53, 0, 0LL, &v47);
v59 = v32;
if ( JS_IsException_1(v58, v32) )
break;
if ( v47 )
goto LABEL_18;
v56 = JS_Call(v67, v48, v49, v68, v69, 1, (long long)&v58);
v57 = v33;
JS_FreeValue(v67, v58, v59);
if ( !JS_IsException_1(v56, v57) )
{
v54 = JS_InvokeFree(v67, v56, v57, 128, 2, (long long)v60);
v55 = v36;
if ( !check_exception_free(v67, v54, v36) )
continue;
}
JS_IteratorClose(v67, v50, v51, 1, a6, a7, a8, a9, v34, v35, a12, a13);
break;
}
}
}
}
Exception = JS_GetException(v67);
v40 = v29;
v54 = JS_Call(v67, v61, v62, 0, 3, 1, (long long)&Exception);
v55 = v30;
JS_FreeValue(v67, Exception, v40);
if ( JS_IsException_1(v54, v55) )
{
JS_FreeValue(v67, v63, v64);
LODWORD(v38) = 0;
v63 = v38;
v64 = 6LL;
}
else
{
JS_FreeValue(v67, v54, v55);
}
LABEL_18:
JS_FreeValue(v67, v48, v49);
JS_FreeValue(v67, v52, v53);
JS_FreeValue(v67, v50, v51);
JS_FreeValue(v67, v60[0], v60[1]);
JS_FreeValue(v67, v61, v62);
v70 = v63;
v71 = v64;
}
}
else
{
v70 = JS_ThrowTypeErrorNotAnObject(v67, a6, a7, a8, a9, v19, v20, a12, a13, a3, v15, v16, v17, v18);
v71 = v21;
}
return v70;
}
| js_promise_race:
SUB RSP,0x1a8
MOV qword ptr [RSP + 0x188],RSI
MOV qword ptr [RSP + 0x190],RDX
MOV qword ptr [RSP + 0x180],RDI
MOV dword ptr [RSP + 0x17c],ECX
MOV qword ptr [RSP + 0x170],R8
MOV RAX,qword ptr [0x0020d980]
MOV qword ptr [RSP + 0x100],RAX
MOV RAX,qword ptr [0x0020d988]
MOV qword ptr [RSP + 0x108],RAX
MOV RAX,qword ptr [0x0020d980]
MOV qword ptr [RSP + 0xf0],RAX
MOV RAX,qword ptr [0x0020d988]
MOV qword ptr [RSP + 0xf8],RAX
MOV RAX,qword ptr [0x0020d980]
MOV qword ptr [RSP + 0xe0],RAX
MOV RAX,qword ptr [0x0020d988]
MOV qword ptr [RSP + 0xe8],RAX
MOV RDI,qword ptr [RSP + 0x188]
MOV RSI,qword ptr [RSP + 0x190]
CALL 0x0012af70
CMP EAX,0x0
JNZ 0x00194ac4
MOV RDI,qword ptr [RSP + 0x180]
CALL 0x0012f5a0
MOV qword ptr [RSP + 0x198],RAX
MOV qword ptr [RSP + 0x1a0],RDX
JMP 0x001950ac
LAB_00194ac4:
MOV RDI,qword ptr [RSP + 0x180]
LEA RSI,[RSP + 0x140]
MOV RDX,qword ptr [RSP + 0x188]
MOV RCX,qword ptr [RSP + 0x190]
CALL 0x001537c0
MOV qword ptr [RSP + 0xc8],RAX
MOV qword ptr [RSP + 0xd0],RDX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x160],RAX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x168],RAX
MOV RDI,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RSP + 0x168]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194b58
MOV RAX,qword ptr [RSP + 0x160]
MOV qword ptr [RSP + 0x198],RAX
MOV RAX,qword ptr [RSP + 0x168]
MOV qword ptr [RSP + 0x1a0],RAX
JMP 0x001950ac
LAB_00194b58:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x188]
MOV RDX,qword ptr [RSP + 0x190]
MOV ECX,0x81
CALL 0x00129d80
MOV qword ptr [RSP + 0xb8],RAX
MOV qword ptr [RSP + 0xc0],RDX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0xe0],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xe8],RAX
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xe8]
CALL 0x00123cc0
CMP EAX,0x0
JNZ 0x00194be6
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xe0]
MOV RDX,qword ptr [RSP + 0xe8]
CALL 0x0016da80
CMP EAX,0x0
JZ 0x00194be8
LAB_00194be6:
JMP 0x00194c56
LAB_00194be8:
MOV RDI,qword ptr [RSP + 0x180]
MOV RAX,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
XOR ECX,ECX
CALL 0x0016e7b0
MOV qword ptr [RSP + 0xa8],RAX
MOV qword ptr [RSP + 0xb0],RDX
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0xf0],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0xf8],RAX
MOV RDI,qword ptr [RSP + 0xf0]
MOV RSI,qword ptr [RSP + 0xf8]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194d65
JMP 0x00194c56
LAB_00194c56:
MOV RDI,qword ptr [RSP + 0x180]
CALL 0x0012cf70
MOV qword ptr [RSP + 0x88],RAX
MOV qword ptr [RSP + 0x90],RDX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0xa0],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV dword ptr [RSP + 0x68],0x0
MOV qword ptr [RSP + 0x70],0x3
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
MOV RCX,qword ptr [RSP + 0x68]
MOV R8,qword ptr [RSP + 0x70]
MOV R9D,0x1
LEA RAX,[RSP + 0x98]
MOV qword ptr [RSP],RAX
CALL 0x0013a050
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x110],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x118],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x118]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194d43
JMP 0x0019505f
LAB_00194d43:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x118]
CALL 0x00123c90
JMP 0x00194faa
LAB_00194d65:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xf0]
MOV RDX,qword ptr [RSP + 0xf8]
MOV ECX,0x6b
CALL 0x00129d80
MOV qword ptr [RSP + 0x58],RAX
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x100],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x108],RAX
MOV RDI,qword ptr [RSP + 0x100]
MOV RSI,qword ptr [RSP + 0x108]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194dca
JMP 0x00194c56
LAB_00194dca:
JMP 0x00194dcc
LAB_00194dcc:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xf0]
MOV RDX,qword ptr [RSP + 0xf8]
MOV RCX,qword ptr [RSP + 0x100]
MOV R8,qword ptr [RSP + 0x108]
XOR R9D,R9D
XOR EAX,EAX
LEA RAX,[RSP + 0xdc]
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0016eeb0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x138],RAX
MOV RDI,qword ptr [RSP + 0x130]
MOV RSI,qword ptr [RSP + 0x138]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194e56
JMP 0x00194c56
LAB_00194e56:
CMP dword ptr [RSP + 0xdc],0x0
JZ 0x00194e65
JMP 0x00194fa8
LAB_00194e65:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xe0]
MOV RDX,qword ptr [RSP + 0xe8]
MOV RCX,qword ptr [RSP + 0x188]
MOV R8,qword ptr [RSP + 0x190]
MOV R9D,0x1
LEA RAX,[RSP + 0x130]
MOV qword ptr [RSP],RAX
CALL 0x0013a050
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x120],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x128],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x120]
MOV RSI,qword ptr [RSP + 0x128]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00194f28
JMP 0x00194f01
LAB_00194f01:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xf0]
MOV RDX,qword ptr [RSP + 0xf8]
MOV ECX,0x1
CALL 0x00167fc0
JMP 0x00194c56
LAB_00194f28:
MOV RDI,qword ptr [RSP + 0x180]
LEA R9,[RSP + 0x140]
MOV RSI,qword ptr [RSP + 0x120]
MOV RDX,qword ptr [RSP + 0x128]
MOV ECX,0x80
MOV R8D,0x2
CALL 0x001937d0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x110],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x118],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x118]
CALL 0x001871e0
CMP EAX,0x0
JZ 0x00194fa3
JMP 0x00194f01
LAB_00194fa3:
JMP 0x00194dcc
LAB_00194fa8:
JMP 0x00194faa
LAB_00194faa:
JMP 0x00194fac
LAB_00194fac:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xe0]
MOV RDX,qword ptr [RSP + 0xe8]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x100]
MOV RDX,qword ptr [RSP + 0x108]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0xf0]
MOV RDX,qword ptr [RSP + 0xf8]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x140]
MOV RDX,qword ptr [RSP + 0x148]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0x160]
MOV qword ptr [RSP + 0x198],RAX
MOV RAX,qword ptr [RSP + 0x168]
MOV qword ptr [RSP + 0x1a0],RAX
JMP 0x001950ac
LAB_0019505f:
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x160]
MOV RDX,qword ptr [RSP + 0x168]
CALL 0x00123c90
MOV dword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x6
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x160],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x168],RAX
JMP 0x00194fac
LAB_001950ac:
MOV RAX,qword ptr [RSP + 0x198]
MOV RDX,qword ptr [RSP + 0x1a0]
ADD RSP,0x1a8
RET
|
int1 [16]
js_promise_race(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int iVar1;
int1 auVar2 [16];
uint uStack_18c;
uint uStack_13c;
int1 local_110 [16];
int1 local_100 [16];
int1 local_f0 [16];
int1 local_e0 [16];
int local_cc;
int1 local_c8 [16];
int1 local_b8 [16];
int1 local_a8 [16];
int1 local_98 [16];
int1 local_88 [16];
int1 local_78 [16];
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int1 local_48 [16];
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
local_a8._0_8_ = DAT_0020d980;
local_a8._8_8_ = DAT_0020d988;
local_b8._0_8_ = DAT_0020d980;
local_b8._8_8_ = DAT_0020d988;
local_c8._0_8_ = DAT_0020d980;
local_c8._8_8_ = DAT_0020d988;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = JS_IsObject(param_2,param_3);
if (iVar1 == 0) {
local_48 = JS_ThrowTypeErrorNotAnObject(local_28);
}
else {
local_e0 = js_new_promise_capability(local_28,&local_68,local_20,local_18);
local_48 = local_e0;
iVar1 = JS_IsException(local_e0._0_8_,local_e0._8_8_);
if (iVar1 == 0) {
local_f0 = JS_GetProperty(local_28,local_20,local_18,0x81);
local_c8 = local_f0;
iVar1 = JS_IsException(local_f0._0_8_,local_f0._8_8_);
if (iVar1 == 0) {
iVar1 = check_function(local_28,local_c8._0_8_,local_c8._8_8_);
if (iVar1 == 0) {
local_100 = JS_GetIterator(local_28,*local_38,local_38[1],0);
local_b8 = local_100;
iVar1 = JS_IsException(local_100._0_8_,local_100._8_8_);
if (iVar1 == 0) {
local_a8 = JS_GetProperty(local_28,local_b8._0_8_,local_b8._8_8_,0x6b);
iVar1 = JS_IsException(local_a8._0_8_,local_a8._8_8_);
if (iVar1 == 0) {
do {
auVar2 = JS_IteratorNext(local_28,local_b8._0_8_,local_b8._8_8_,local_a8._0_8_,
local_a8._8_8_,0,0,&local_cc);
local_78 = auVar2;
iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_);
if (iVar1 != 0) goto LAB_00194c56;
if (local_cc != 0) goto LAB_00194fac;
auVar2 = JS_Call(local_28,local_c8._0_8_,local_c8._8_8_,local_20,local_18,1,local_78
);
local_88 = auVar2;
JS_FreeValue(local_28,local_78._0_8_,local_78._8_8_);
iVar1 = JS_IsException(local_88._0_8_,local_88._8_8_);
if (iVar1 != 0) break;
auVar2 = JS_InvokeFree(local_28,local_88._0_8_,local_88._8_8_,0x80,2);
local_98 = auVar2;
iVar1 = check_exception_free(local_28,auVar2._0_8_,auVar2._8_8_);
} while (iVar1 == 0);
JS_IteratorClose(local_28,local_b8._0_8_,local_b8._8_8_,1);
}
}
}
}
LAB_00194c56:
local_110 = JS_GetException(local_28);
auVar2 = JS_Call(local_28,local_58,local_50,(ulong)uStack_13c << 0x20,3,1,local_110);
local_98 = auVar2;
JS_FreeValue(local_28,local_110._0_8_,local_110._8_8_);
iVar1 = JS_IsException(local_98._0_8_,local_98._8_8_);
if (iVar1 == 0) {
JS_FreeValue(local_28,local_98._0_8_,local_98._8_8_);
}
else {
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_48._8_8_ = 6;
local_48._0_8_ = (ulong)uStack_18c << 0x20;
}
LAB_00194fac:
JS_FreeValue(local_28,local_c8._0_8_,local_c8._8_8_);
JS_FreeValue(local_28,local_a8._0_8_,local_a8._8_8_);
JS_FreeValue(local_28,local_b8._0_8_,local_b8._8_8_);
JS_FreeValue(local_28,local_68,local_60);
JS_FreeValue(local_28,local_58,local_50);
}
}
return local_48;
}
| |
32,754 | js_promise_race | bluesky950520[P]quickjs/quickjs.c | static JSValue js_promise_race(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue result_promise, resolving_funcs[2], item, next_promise, ret;
JSValue next_method = JS_UNDEFINED, iter = JS_UNDEFINED;
JSValue promise_resolve = JS_UNDEFINED;
BOOL done;
if (!JS_IsObject(this_val))
return JS_ThrowTypeErrorNotAnObject(ctx);
result_promise = js_new_promise_capability(ctx, resolving_funcs, this_val);
if (JS_IsException(result_promise))
return result_promise;
promise_resolve = JS_GetProperty(ctx, this_val, JS_ATOM_resolve);
if (JS_IsException(promise_resolve) ||
check_function(ctx, promise_resolve))
goto fail_reject;
iter = JS_GetIterator(ctx, argv[0], FALSE);
if (JS_IsException(iter)) {
JSValue error;
fail_reject:
error = JS_GetException(ctx);
ret = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED, 1,
&error);
JS_FreeValue(ctx, error);
if (JS_IsException(ret))
goto fail;
JS_FreeValue(ctx, ret);
} else {
next_method = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next_method))
goto fail_reject;
for(;;) {
/* XXX: conformance: should close the iterator if error on 'done'
access, but not on 'value' access */
item = JS_IteratorNext(ctx, iter, next_method, 0, NULL, &done);
if (JS_IsException(item))
goto fail_reject;
if (done)
break;
next_promise = JS_Call(ctx, promise_resolve,
this_val, 1, &item);
JS_FreeValue(ctx, item);
if (JS_IsException(next_promise)) {
fail_reject1:
JS_IteratorClose(ctx, iter, TRUE);
goto fail_reject;
}
ret = JS_InvokeFree(ctx, next_promise, JS_ATOM_then, 2,
resolving_funcs);
if (check_exception_free(ctx, ret))
goto fail_reject1;
}
}
done:
JS_FreeValue(ctx, promise_resolve);
JS_FreeValue(ctx, next_method);
JS_FreeValue(ctx, iter);
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
return result_promise;
fail:
//JS_FreeValue(ctx, next_method); // why not???
JS_FreeValue(ctx, result_promise);
result_promise = JS_EXCEPTION;
goto done;
} | O1 | c | js_promise_race:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r12
movq %rdi, %r15
cmpl $-0x1, %r12d
jne 0x5453b
movq %r8, %r13
movq %rsi, %rbp
leaq 0x80(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x362b6
movq %rax, %rbx
movq %rdx, %r14
cmpl $0x6, %r14d
je 0x54860
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %rbx, %rcx
andq %rax, %rcx
movq %rcx, 0xb8(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movl $0x81, %ecx
movq %rbp, %r8
movq %r12, %r9
callq 0x22fa3
movl $0x3, %ecx
movq %rcx, 0x50(%rsp)
xorl %ecx, %ecx
cmpl $0x6, %edx
movq %r14, 0x48(%rsp)
movq %rax, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
jne 0x54559
xorl %ebp, %ebp
movl $0x3, %eax
movq %rax, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
jmp 0x5472c
leaq 0x4aae3(%rip), %rsi # 0x9f025
xorl %ebx, %ebx
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movl $0x6, %r14d
jmp 0x54860
movq %r15, %rdi
movq %rax, %rsi
callq 0x415b1
testl %eax, %eax
je 0x54582
xorl %ebp, %ebp
movl $0x3, %eax
movq %rax, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
jmp 0x5472a
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq $0x0, 0x30(%rsp)
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4180b
cmpl $0x6, %edx
movq %rdx, 0x20(%rsp)
jne 0x545af
movq %rax, %rbp
jmp 0x5472a
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r15, %rdi
movq %rax, %rsi
movl $0x6b, %ecx
movq %rax, 0x28(%rsp)
movq %rax, %r8
movq %rdx, %r9
callq 0x22fa3
movq %rax, 0x30(%rsp)
movq %rdx, 0x50(%rsp)
cmpl $0x6, %edx
jne 0x545f3
movq 0x28(%rsp), %rbp
jmp 0x5472a
leaq 0x5c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r15, %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %r13
movq %r13, %rdx
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %r8
xorl %r9d, %r9d
callq 0x41afc
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
cmpl $0x6, %edx
je 0x545e9
cmpl $0x0, 0x5c(%rsp)
jne 0x54878
movl $0x0, 0x60(%rsp)
movq $0x3, 0x68(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movq %r15, %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rbp, %rcx
movq %r12, %r8
movl $0x1, %r9d
callq 0x284ca
movq %rax, %r13
movq %rdx, %r14
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
cmpl $0x6, %r14d
je 0x54710
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl $0x80, %ecx
movl $0x2, %r8d
leaq 0x80(%rsp), %r9
callq 0x2fc94
movq %rax, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq 0x18(%r15), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq 0xb0(%rsp), %rsi
movq 0xa8(%rsp), %r14
movq %r14, %rdx
callq 0x1d8c6
cmpl $0x6, %r14d
jne 0x545f3
movq %r15, %rdi
movq 0x28(%rsp), %rbp
movq %rbp, %rsi
movq 0x20(%rsp), %rdx
movl $0x1, %ecx
callq 0x3faa9
xorl %ecx, %ecx
movq 0x18(%r15), %rax
movups 0xf0(%rax), %xmm0
movl %ecx, 0xf0(%rax)
movq $0x4, 0xf8(%rax)
leaq 0xc0(%rsp), %r13
movaps %xmm0, (%r13)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movl %ecx, 0x60(%rsp)
movq $0x3, 0x68(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movl $0x3, %r8d
movq %r15, %rdi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x284ca
movq %rax, %r14
movq %rdx, %r12
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
cmpl $0x6, %r12d
jne 0x547d6
movq 0x18(%r15), %rdi
movq %rbx, %rsi
movq 0x48(%rsp), %rdx
callq 0x1d8c6
movl $0x6, %r14d
xorl %ebx, %ebx
jmp 0x547ea
movq 0x18(%r15), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1d8c6
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x20(%rsp), %r13
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq 0x30(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x1d8c6
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
movl %ebx, %ebx
orq 0xb8(%rsp), %rbx
movq %rbx, %rax
movq %r14, %rdx
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x28(%rsp), %rbp
jmp 0x547f9
| js_promise_race:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov r12, rdx
mov r15, rdi
cmp r12d, 0FFFFFFFFh
jnz loc_5453B
mov r13, r8
mov rbp, rsi
lea rsi, [rsp+108h+var_88]
mov rdi, r15
mov rdx, rbp
mov rcx, r12
call js_new_promise_capability
mov rbx, rax
mov r14, rdx
cmp r14d, 6
jz loc_54860
mov rax, 0FFFFFFFF00000000h
mov rcx, rbx
and rcx, rax
mov [rsp+108h+var_50], rcx
mov dword ptr [rsp+108h+var_108+8], 0
mov qword ptr [rsp+108h+var_108], 0
mov rdi, r15
mov rsi, rbp
mov rdx, r12
mov ecx, 81h
mov r8, rbp
mov r9, r12
call JS_GetPropertyInternal2
mov ecx, 3
mov [rsp+108h+var_B8], rcx
xor ecx, ecx
cmp edx, 6
mov [rsp+108h+var_C0], r14
mov [rsp+108h+var_C8], rax
mov [rsp+108h+var_D0], rdx
jnz short loc_54559
xor ebp, ebp
mov eax, 3
mov [rsp+108h+var_E8], rax
mov [rsp+108h+var_D8], 0
jmp loc_5472C
loc_5453B:
lea rsi, aOperandPrototy+20h; "not an object"
xor ebx, ebx
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov r14d, 6
jmp loc_54860
loc_54559:
mov rdi, r15
mov rsi, rax
call check_function
test eax, eax
jz short loc_54582
xor ebp, ebp
mov eax, 3
mov [rsp+108h+var_E8], rax
mov [rsp+108h+var_D8], 0
jmp loc_5472A
loc_54582:
mov rsi, [r13+0]
mov rdx, [r13+8]
mov [rsp+108h+var_D8], 0
mov rdi, r15
xor ecx, ecx
call JS_GetIterator
cmp edx, 6
mov [rsp+108h+var_E8], rdx
jnz short loc_545AF
mov rbp, rax
jmp loc_5472A
loc_545AF:
mov dword ptr [rsp+108h+var_108+8], 0
mov qword ptr [rsp+108h+var_108], 0
mov rdi, r15
mov rsi, rax
mov ecx, 6Bh ; 'k'
mov [rsp+108h+var_E0], rax
mov r8, rax
mov r9, rdx
call JS_GetPropertyInternal2
mov [rsp+108h+var_D8], rax
mov [rsp+108h+var_B8], rdx
cmp edx, 6
jnz short loc_545F3
loc_545E9:
mov rbp, [rsp+108h+var_E0]
jmp loc_5472A
loc_545F3:
lea rax, [rsp+108h+var_AC]
mov qword ptr [rsp+108h+var_108+8], rax
mov qword ptr [rsp+108h+var_108], 0
mov rdi, r15
mov rsi, [rsp+108h+var_E0]
mov r13, [rsp+108h+var_E8]
mov rdx, r13
mov rcx, [rsp+108h+var_D8]
mov r8, [rsp+108h+var_B8]
xor r9d, r9d
call JS_IteratorNext
mov [rsp+108h+var_98], rax
mov [rsp+108h+var_90], rdx
cmp edx, 6
jz short loc_545E9
cmp [rsp+108h+var_AC], 0
jnz loc_54878
mov dword ptr [rsp+108h+var_A8], 0
mov qword ptr [rsp+108h+var_A8+8], 3
movups xmm0, [rsp+108h+var_A8]
movups [rsp+108h+var_108], xmm0
lea rax, [rsp+108h+var_98]
mov [rsp+108h+var_F8], rax
mov [rsp+108h+var_F0], 2
mov rdi, r15
mov rsi, [rsp+108h+var_C8]
mov rdx, [rsp+108h+var_D0]
mov rcx, rbp
mov r8, r12
mov r9d, 1
call JS_CallInternal
mov r13, rax
mov r14, rdx
mov rsi, [rsp+108h+var_98]
mov rdx, [rsp+108h+var_90]
mov rdi, [r15+18h]
call JS_FreeValueRT
cmp r14d, 6
jz short loc_54710
mov rdi, r15
mov rsi, r13
mov rdx, r14
mov ecx, 80h
mov r8d, 2
lea r9, [rsp+108h+var_88]
call JS_Invoke
mov [rsp+108h+var_58], rax
mov [rsp+108h+var_60], rdx
mov rdi, [r15+18h]
mov rsi, r13
mov rdx, r14
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, [rsp+108h+var_58]
mov r14, [rsp+108h+var_60]
mov rdx, r14
call JS_FreeValueRT
cmp r14d, 6
jnz loc_545F3
loc_54710:
mov rdi, r15
mov rbp, [rsp+108h+var_E0]
mov rsi, rbp
mov rdx, [rsp+108h+var_E8]
mov ecx, 1
call JS_IteratorClose
loc_5472A:
xor ecx, ecx
loc_5472C:
mov rax, [r15+18h]
movups xmm0, xmmword ptr [rax+0F0h]
mov [rax+0F0h], ecx
mov qword ptr [rax+0F8h], 4
lea r13, [rsp+108h+var_48]
movaps xmmword ptr [r13+0], xmm0
mov rsi, [rsp+108h+var_78]
mov rdx, [rsp+108h+var_70]
mov dword ptr [rsp+108h+var_A8], ecx
mov qword ptr [rsp+108h+var_A8+8], 3
movups xmm0, [rsp+108h+var_A8]
movups [rsp+108h+var_108], xmm0
mov [rsp+108h+var_F8], r13
mov [rsp+108h+var_F0], 2
mov r8d, 3
mov rdi, r15
xor ecx, ecx
mov r9d, 1
call JS_CallInternal
mov r14, rax
mov r12, rdx
mov rsi, [r13+0]
mov rdx, [r13+8]
mov rdi, [r15+18h]
call JS_FreeValueRT
cmp r12d, 6
jnz short loc_547D6
mov rdi, [r15+18h]
mov rsi, rbx
mov rdx, [rsp+108h+var_C0]
call JS_FreeValueRT
mov r14d, 6
xor ebx, ebx
jmp short loc_547EA
loc_547D6:
mov rdi, [r15+18h]
mov rsi, r14
mov rdx, r12
call JS_FreeValueRT
mov r14, [rsp+108h+var_C0]
loc_547EA:
mov rsi, [rsp+108h+var_C8]
mov rdx, [rsp+108h+var_D0]
mov r13, [rsp+108h+var_E8]
loc_547F9:
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, [rsp+108h+var_D8]
mov rdx, [rsp+108h+var_B8]
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, rbp
mov rdx, r13
call JS_FreeValueRT
mov rsi, [rsp+108h+var_88]
mov rdx, [rsp+108h+var_80]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rsi, [rsp+108h+var_78]
mov rdx, [rsp+108h+var_70]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov ebx, ebx
or rbx, [rsp+108h+var_50]
loc_54860:
mov rax, rbx
mov rdx, r14
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_54878:
mov r14, [rsp+108h+var_C0]
mov rsi, [rsp+108h+var_C8]
mov rdx, [rsp+108h+var_D0]
mov rbp, [rsp+108h+var_E0]
jmp loc_547F9
| unsigned long long js_promise_race(
long long *a1,
unsigned 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)
{
unsigned long long v16; // rbx
long long v17; // rdx
long long v18; // r14
unsigned long long PropertyInternal2; // rax
long long v20; // rdx
__m128 v21; // xmm4
__m128 v22; // xmm5
_DWORD *v23; // rbp
_DWORD *Iterator; // rax
long long v25; // rdx
long long v26; // rdx
long long v27; // r13
long long v28; // rdx
__m128 v29; // xmm0
_DWORD *v30; // r13
long long v31; // rdx
long long v32; // r14
double v33; // xmm4_8
double v34; // xmm5_8
long long v35; // rdx
int v36; // r14d
long long v37; // rax
__int128 v38; // xmm0
_DWORD *v39; // r14
long long v40; // rdx
long long v41; // r12
_DWORD *v42; // rsi
long long v43; // rdx
char v45; // [rsp+0h] [rbp-108h]
long long v46; // [rsp+20h] [rbp-E8h]
long long v47; // [rsp+28h] [rbp-E0h]
_DWORD *v48; // [rsp+30h] [rbp-D8h]
long long v49; // [rsp+38h] [rbp-D0h]
long long v50; // [rsp+40h] [rbp-C8h]
long long v51; // [rsp+48h] [rbp-C0h]
long long v52; // [rsp+50h] [rbp-B8h]
int v53; // [rsp+5Ch] [rbp-ACh] BYREF
__m128 v54; // [rsp+60h] [rbp-A8h]
_DWORD *v55; // [rsp+70h] [rbp-98h] BYREF
long long v56; // [rsp+78h] [rbp-90h]
_DWORD *v57[2]; // [rsp+80h] [rbp-88h] BYREF
_DWORD *v58; // [rsp+90h] [rbp-78h]
long long v59; // [rsp+98h] [rbp-70h]
long long v60; // [rsp+A8h] [rbp-60h]
_DWORD *v61; // [rsp+B0h] [rbp-58h]
unsigned long long v62; // [rsp+B8h] [rbp-50h]
__int128 v63; // [rsp+C0h] [rbp-48h] BYREF
if ( (_DWORD)a3 == -1 )
{
v16 = js_new_promise_capability(
a1,
(long long)v57,
a2,
a3,
a7,
a8,
a9,
a10,
*(double *)a11.m128_u64,
*(double *)a12.m128_u64,
a13,
a14);
v18 = v17;
if ( (_DWORD)v17 != 6 )
{
v62 = v16 & 0xFFFFFFFF00000000LL;
PropertyInternal2 = JS_GetPropertyInternal2((long long)a1, a2, a3, 0x81u, a2, a3, 0LL, 0);
v52 = 3LL;
v51 = v18;
v50 = PropertyInternal2;
v49 = v20;
if ( (_DWORD)v20 == 6 )
{
v23 = 0LL;
v46 = 3LL;
v48 = 0LL;
}
else if ( (unsigned int)check_function(
(long long)a1,
PropertyInternal2,
v20,
a7,
a8,
a9,
a10,
*(double *)v21.m128_u64,
*(double *)v22.m128_u64,
a13,
a14) )
{
v23 = 0LL;
v46 = 3LL;
v48 = 0LL;
}
else
{
v48 = 0LL;
Iterator = JS_GetIterator(
(long long)a1,
*a5,
a5[1],
0,
a7,
a8,
a9,
a10,
*(double *)v21.m128_u64,
*(double *)v22.m128_u64,
a13,
a14);
v46 = v25;
if ( (_DWORD)v25 == 6 )
{
v23 = Iterator;
}
else
{
v47 = (long long)Iterator;
v48 = (_DWORD *)JS_GetPropertyInternal2(
(long long)a1,
(long long)Iterator,
v25,
0x6Bu,
(long long)Iterator,
v25,
0LL,
0);
v52 = v26;
if ( (_DWORD)v26 != 6 )
{
while ( 1 )
{
v27 = v46;
v55 = (_DWORD *)JS_IteratorNext((long long)a1, v47, v46, (int)v48, v52, 0, 0LL, &v53);
v56 = v28;
if ( (_DWORD)v28 == 6 )
break;
if ( v53 )
{
v42 = (_DWORD *)v50;
v43 = v49;
v23 = (_DWORD *)v47;
goto LABEL_21;
}
v54.m128_i32[0] = 0;
v54.m128_u64[1] = 3LL;
v29 = v54;
v30 = (_DWORD *)JS_CallInternal(
(long long)a1,
v50,
v49,
a2,
a3,
1LL,
v54,
a8,
a9,
a10,
v21,
v22,
a13,
a14,
0,
3,
(long long)&v55,
2u);
v32 = v31;
JS_FreeValueRT(a1[3], v55, v56);
if ( (_DWORD)v32 != 6 )
{
v61 = JS_Invoke((long long)a1, (long long)v30, v32, 0x80u, 2, (long long)v57);
v60 = v35;
JS_FreeValueRT(a1[3], v30, v32);
v36 = v60;
JS_FreeValueRT(a1[3], v61, v60);
if ( v36 != 6 )
continue;
}
v23 = (_DWORD *)v47;
JS_IteratorClose((long long)a1, v47, v46, 1, v29, a8, a9, a10, v33, v34, a13, a14);
goto LABEL_17;
}
}
v23 = (_DWORD *)v47;
}
}
LABEL_17:
v37 = a1[3];
v38 = *(_OWORD *)(v37 + 240);
*(_DWORD *)(v37 + 240) = 0;
*(_QWORD *)(v37 + 248) = 4LL;
v63 = v38;
v54.m128_i32[0] = 0;
v54.m128_u64[1] = 3LL;
v39 = (_DWORD *)JS_CallInternal(
(long long)a1,
(long long)v58,
v59,
0LL,
3LL,
1LL,
v54,
a8,
a9,
a10,
v21,
v22,
a13,
a14,
0,
3,
(long long)&v63,
2u);
v41 = v40;
JS_FreeValueRT(a1[3], (_DWORD *)v63, *((long long *)&v63 + 1));
if ( (_DWORD)v41 == 6 )
{
JS_FreeValueRT(a1[3], (_DWORD *)v16, v51);
LODWORD(v16) = 0;
}
else
{
JS_FreeValueRT(a1[3], v39, v41);
}
v42 = (_DWORD *)v50;
v43 = v49;
v27 = v46;
LABEL_21:
JS_FreeValueRT(a1[3], v42, v43);
JS_FreeValueRT(a1[3], v48, v52);
JS_FreeValueRT(a1[3], v23, v27);
JS_FreeValueRT(a1[3], v57[0], (long long)v57[1]);
JS_FreeValueRT(a1[3], v58, v59);
return v62 | (unsigned int)v16;
}
}
else
{
v16 = 0LL;
JS_ThrowTypeError(
(long long)a1,
(long long)"not an object",
a3,
a4,
(long long)a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v45);
}
return v16;
}
| |||
32,755 | 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;
}
}
} | O0 | 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):
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 $0x1, 0x11f(%rsp)
jne 0xed2cb
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0xed30a
cmpb $0x2, 0x11f(%rsp)
jne 0xed2e0
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0xed30a
cmpb $0x3, 0x11f(%rsp)
jne 0xed2f5
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0xed30a
cmpb $0x8, 0x11f(%rsp)
jne 0xed30f
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xed30f
jmp 0xed867
cmpb $0x2, 0x11f(%rsp)
je 0xed327
cmpb $0x1, 0x11f(%rsp)
jne 0xed690
leaq 0x100(%rsp), %rdi
callq 0xdba00
cmpb $0x2, 0x11f(%rsp)
jne 0xed3fe
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xe8910
movq %rax, %rsi
leaq 0x100(%rsp), %rdi
callq 0xed880
jmp 0xed361
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xe87d0
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0xe8(%rsp)
movq (%rax), %rdi
callq 0xe8640
movq %rax, 0xe0(%rsp)
leaq 0x100(%rsp), %rdi
callq 0xeda00
movq %rax, 0x48(%rsp)
jmp 0xed3a2
movq 0x48(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xe8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
callq 0xed990
movq %rax, 0x40(%rsp)
jmp 0xed3d3
movq 0x40(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0xed4b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0xed67e
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xe9510
movq %rax, %rsi
leaq 0x100(%rsp), %rdi
callq 0xed880
jmp 0xed41d
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rdi
callq 0xeda30
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rdi
callq 0xeda60
movq %rax, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xeda90
testb $0x1, %al
jne 0xed472
jmp 0xed4b3
leaq 0xc0(%rsp), %rdi
callq 0xedad0
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rsi
addq $0x20, %rsi
leaq 0x100(%rsp), %rdi
callq 0xedae0
jmp 0xed4a2
jmp 0xed4a4
leaq 0xc0(%rsp), %rdi
callq 0xedb10
jmp 0xed457
jmp 0xed4b5
jmp 0xed4b7
leaq 0x100(%rsp), %rdi
callq 0xedb30
xorb $-0x1, %al
testb $0x1, %al
jne 0xed4cf
jmp 0xed66f
leaq 0x100(%rsp), %rdi
callq 0xe8300
movq %rax, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xe8190
leaq 0x100(%rsp), %rdi
callq 0xedb80
leaq 0xa0(%rsp), %rdi
callq 0xe8240
testb $0x1, %al
jne 0xed50f
jmp 0xed5c3
movq 0xa8(%rsp), %rdi
callq 0xe87d0
movq %rax, 0x98(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xe8640
movq %rax, 0x90(%rsp)
leaq 0x100(%rsp), %rdi
callq 0xeda00
movq %rax, 0x38(%rsp)
jmp 0xed54d
movq 0x38(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0xed990
movq %rax, 0x30(%rsp)
jmp 0xed57e
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xedba0
jmp 0xed65d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0xd9d90
jmp 0xed67e
leaq 0xa0(%rsp), %rdi
callq 0xe8260
testb $0x1, %al
jne 0xed5d9
jmp 0xed65b
movq 0xa8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0xeda30
movq %rax, 0x70(%rsp)
movq 0x78(%rsp), %rdi
callq 0xeda60
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xeda90
testb $0x1, %al
jne 0xed619
jmp 0xed64e
leaq 0x70(%rsp), %rdi
callq 0xedad0
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rsi
addq $0x20, %rsi
leaq 0x100(%rsp), %rdi
callq 0xedae0
jmp 0xed640
jmp 0xed642
leaq 0x70(%rsp), %rdi
callq 0xedb10
jmp 0xed604
movq 0xa8(%rsp), %rdi
callq 0xedbc0
jmp 0xed65d
leaq 0xa0(%rsp), %rdi
callq 0xd9d90
jmp 0xed4b7
leaq 0x100(%rsp), %rdi
callq 0xedbe0
jmp 0xed690
leaq 0x100(%rsp), %rdi
callq 0xedbe0
jmp 0xed86f
movzbl 0x11f(%rsp), %eax
movq %rax, 0x28(%rsp)
subq $0x9, %rax
ja 0xed865
movq 0x28(%rsp), %rax
leaq 0x1297a1(%rip), %rcx # 0x216e54
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xdafb0
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rdi
movq (%rax), %rsi
callq 0xedc40
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xdb600
jmp 0xed6f6
leaq 0x5f(%rsp), %rdi
callq 0xdb120
jmp 0xed867
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5f(%rsp), %rdi
callq 0xdb120
jmp 0xed86f
leaq 0x5e(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xdb670
movq 0x50(%rsp), %rax
movq 0x18(%rsp), %rdi
movq (%rax), %rsi
callq 0xedc70
movq 0x50(%rsp), %rax
movq 0x18(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xdbca0
jmp 0xed762
leaq 0x5e(%rsp), %rdi
callq 0xdb7e0
jmp 0xed867
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5e(%rsp), %rdi
callq 0xdb7e0
jmp 0xed86f
leaq 0x5d(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x69920
movq 0x50(%rsp), %rax
movq 0x10(%rsp), %rdi
movq (%rax), %rsi
callq 0x92210
movq 0x50(%rsp), %rax
movq 0x10(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0x8b760
jmp 0xed7ce
leaq 0x5d(%rsp), %rdi
callq 0x699c0
jmp 0xed867
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5d(%rsp), %rdi
callq 0x699c0
jmp 0xed86f
leaq 0x5c(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xdc210
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rdi
movq (%rax), %rsi
callq 0xedca0
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rdi
movq (%rax), %rsi
movl $0x1, %edx
callq 0xdc860
jmp 0xed837
leaq 0x5c(%rsp), %rdi
callq 0xdc380
jmp 0xed867
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x5c(%rsp), %rdi
callq 0xdc380
jmp 0xed86f
jmp 0xed865
jmp 0xed867
addq $0x128, %rsp # imm = 0x128
retq
movq 0xf8(%rsp), %rdi
callq 0x5ebf0
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_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], 1
jnz short loc_ED2CB
mov rax, [rsp+128h+var_D8]
cmp qword ptr [rax], 0
jz short loc_ED30A
loc_ED2CB:
cmp [rsp+128h+var_9], 2
jnz short loc_ED2E0
mov rax, [rsp+128h+var_D8]
cmp qword ptr [rax], 0
jz short loc_ED30A
loc_ED2E0:
cmp [rsp+128h+var_9], 3
jnz short loc_ED2F5
mov rax, [rsp+128h+var_D8]
cmp qword ptr [rax], 0
jz short loc_ED30A
loc_ED2F5:
cmp [rsp+128h+var_9], 8
jnz short loc_ED30F
mov rax, [rsp+128h+var_D8]
cmp qword ptr [rax], 0
jnz short loc_ED30F
loc_ED30A:
jmp loc_ED867
loc_ED30F:
cmp [rsp+128h+var_9], 2
jz short loc_ED327
cmp [rsp+128h+var_9], 1
jnz loc_ED690
loc_ED327:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEC2Ev; 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(void)
cmp [rsp+128h+var_9], 2
jnz loc_ED3FE
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; 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>>::size(void)
mov rsi, rax
lea rdi, [rsp+128h+var_28]
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)
jmp short $+2
loc_ED361:
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::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_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void)
mov [rsp+128h+var_48], rax
lea rdi, [rsp+128h+var_28]
call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<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>>>(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 [rsp+128h+var_E0], rax
jmp short $+2
loc_ED3A2:
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_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<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 [rsp+128h+var_E8], rax
jmp short $+2
loc_ED3D3:
mov rax, [rsp+128h+var_E8]
mov [rsp+128h+var_58], rax
jmp loc_ED4B5
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
jmp loc_ED67E
loc_ED3FE:
mov rax, [rsp+128h+var_D8]
mov rdi, [rax]
call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; 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>>>::size(void)
mov rsi, rax
lea rdi, [rsp+128h+var_28]
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)
jmp short $+2
loc_ED41D:
mov rax, [rsp+128h+var_D8]
mov rax, [rax]
mov [rsp+128h+var_60], rax
mov rdi, [rsp+128h+var_60]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov [rsp+128h+var_68], rax
mov rdi, [rsp+128h+var_60]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+128h+var_70], rax
loc_ED457:
lea rdi, [rsp+128h+var_68]
lea rsi, [rsp+128h+var_70]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
test al, 1
jnz short loc_ED472
jmp short loc_ED4B3
loc_ED472:
lea rdi, [rsp+128h+var_68]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void)
mov [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_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_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>&&)
jmp short $+2
loc_ED4A2:
jmp short $+2
loc_ED4A4:
lea rdi, [rsp+128h+var_68]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void)
jmp short loc_ED457
loc_ED4B3:
jmp short $+2
loc_ED4B5:
jmp short $+2
loc_ED4B7:
lea rdi, [rsp+128h+var_28]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5emptyEv; 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>>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_ED4CF
jmp loc_ED66F
loc_ED4CF:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; 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>>::back(void)
mov rsi, rax
lea rdi, [rsp+128h+var_88]
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>&&)
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; 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>>::pop_back(void)
lea rdi, [rsp+128h+var_88]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; 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>::is_array(void)
test al, 1
jnz short loc_ED50F
jmp loc_ED5C3
loc_ED50F:
mov rdi, [rsp+128h+var_80]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void)
mov [rsp+128h+var_90], rax
mov rdi, [rsp+128h+var_80]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void)
mov [rsp+128h+var_98], rax
lea rdi, [rsp+128h+var_28]
call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<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>>>(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 [rsp+128h+var_F0], rax
jmp short $+2
loc_ED54D:
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_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<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 [rsp+128h+var_F8], rax
jmp short $+2
loc_ED57E:
mov rax, [rsp+128h+var_F8]
mov [rsp+128h+var_A8], rax
mov rdi, [rsp+128h+var_80]
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 loc_ED65D
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_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_ED67E
loc_ED5C3:
lea rdi, [rsp+128h+var_88]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; 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>::is_object(void)
test al, 1
jnz short loc_ED5D9
jmp loc_ED65B
loc_ED5D9:
mov rax, [rsp+128h+var_80]
mov [rsp+128h+var_B0], rax
mov rdi, [rsp+128h+var_B0]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov [rsp+128h+var_B8], rax
mov rdi, [rsp+128h+var_B0]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+128h+var_C0], rax
loc_ED604:
lea rdi, [rsp+128h+var_B8]
lea rsi, [rsp+128h+var_C0]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
test al, 1
jnz short loc_ED619
jmp short loc_ED64E
loc_ED619:
lea rdi, [rsp+128h+var_B8]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void)
mov [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_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_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>&&)
jmp short $+2
loc_ED640:
jmp short $+2
loc_ED642:
lea rdi, [rsp+128h+var_B8]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void)
jmp short loc_ED604
loc_ED64E:
mov rdi, [rsp+128h+var_80]
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_ED65B:
jmp short $+2
loc_ED65D:
lea rdi, [rsp+128h+var_88]
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_ED4B7
loc_ED66F:
lea rdi, [rsp+128h+var_28]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp short loc_ED690
loc_ED67E:
lea rdi, [rsp+arg_F8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_ED86F
loc_ED690:
movzx eax, [rsp+128h+var_9]
mov [rsp+128h+var_100], rax
sub rax, 9; switch 10 cases
ja def_ED6BA; jumptable 00000000000ED6BA default case
mov rax, [rsp+128h+var_100]
lea rcx, jpt_ED6BA
movsxd rax, ds:(jpt_ED6BA - 216E54h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_ED6BC:
lea rdi, [rsp+128h+var_C9]; jumptable 00000000000ED6BA case 1
mov [rsp+128h+var_108], rdi
call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_108]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE7destroyISL_EEvRSM_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_108]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE10deallocateERSM_PSL_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>*,ulong)
jmp short $+2
loc_ED6F6:
lea rdi, [rsp+128h+var_C9]
call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator()
jmp loc_ED867
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_57]
call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator()
jmp loc_ED86F
loc_ED728:
lea rdi, [rsp+128h+var_CA]; jumptable 00000000000ED6BA case 2
mov [rsp+128h+var_110], rdi
call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEEC2Ev; std::allocator<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>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_110]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE7destroyISG_EEvRSH_PT_; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<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>>>>::destroy<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>>>(std::allocator<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>>>&,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 rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_110]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE10deallocateERSH_PSG_m; std::allocator_traits<std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<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>>>>::deallocate(std::allocator<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>>>&,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>>*,ulong)
jmp short $+2
loc_ED762:
lea rdi, [rsp+128h+var_CA]
call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator()
jmp loc_ED867
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_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator()
jmp loc_ED86F
loc_ED794:
lea rdi, [rsp+128h+var_CB]; jumptable 00000000000ED6BA 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_ED7CE:
lea rdi, [rsp+128h+var_CB]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_ED867
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_ED86F
loc_ED7FD:
lea rdi, [rsp+128h+var_CC]; jumptable 00000000000ED6BA case 8
mov [rsp+128h+var_120], rdi
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_120]
mov rsi, [rax]
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *)
mov rax, [rsp+128h+var_D8]
mov rdi, [rsp+128h+var_120]
mov rsi, [rax]
mov edx, 1
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong)
jmp short $+2
loc_ED837:
lea rdi, [rsp+128h+var_CC]
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_ED867
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_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_ED86F
loc_ED863:
jmp short $+2; jumptable 00000000000ED6BA cases 0,4-7,9
def_ED6BA:
jmp short $+2; jumptable 00000000000ED6BA default case
loc_ED867:
add rsp, 128h
retn
loc_ED86F:
mov rdi, [rsp+arg_F0]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
long long *a1,
unsigned __int8 a2)
{
long long result; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rsi
long long v6; // rcx
long long v7; // r8
long long v8; // r9
long long v9; // rcx
long long v10; // r8
long long v11; // r9
long long v12; // rcx
long long v13; // r8
long long v14; // r9
long long v15; // rcx
long long v16; // r8
long long v17; // r9
char v18; // [rsp+5Ch] [rbp-CCh] BYREF
char v19; // [rsp+5Dh] [rbp-CBh] BYREF
char v20; // [rsp+5Eh] [rbp-CAh] BYREF
char v21; // [rsp+5Fh] [rbp-C9h] BYREF
long long v22; // [rsp+60h] [rbp-C8h]
long long v23; // [rsp+68h] [rbp-C0h] BYREF
long long v24; // [rsp+70h] [rbp-B8h] BYREF
long long v25; // [rsp+78h] [rbp-B0h]
long long v26; // [rsp+80h] [rbp-A8h]
long long v27; // [rsp+88h] [rbp-A0h]
long long v28; // [rsp+90h] [rbp-98h]
long long v29; // [rsp+98h] [rbp-90h]
__int128 v30; // [rsp+A0h] [rbp-88h] BYREF
long long v31; // [rsp+B0h] [rbp-78h]
long long v32; // [rsp+B8h] [rbp-70h] BYREF
long long v33; // [rsp+C0h] [rbp-68h] BYREF
long long v34; // [rsp+C8h] [rbp-60h]
long long v35; // [rsp+D0h] [rbp-58h]
long long v36; // [rsp+D8h] [rbp-50h]
long long v37; // [rsp+E0h] [rbp-48h]
long long v38; // [rsp+E8h] [rbp-40h]
_BYTE v39[31]; // [rsp+100h] [rbp-28h] BYREF
unsigned __int8 v40; // [rsp+11Fh] [rbp-9h]
long long *v41; // [rsp+120h] [rbp-8h]
v41 = a1;
v40 = a2;
if ( a2 != 1 || (result = (long long)a1, *a1) )
{
if ( v40 != 2 || (result = (long long)a1, *a1) )
{
if ( v40 != 3 || (result = (long long)a1, *a1) )
{
if ( v40 != 8 || (result = (long long)a1, *a1) )
{
if ( v40 == 2 || v40 == 1 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::vector((long long)v39);
if ( v40 == 2 )
{
v3 = 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>>::size((_QWORD *)*a1);
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(
v39,
v3);
v38 = 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>>::begin(*a1);
v37 = 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>>::end(*a1);
v36 = std::back_inserter<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>>>(v39);
v35 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<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>>>>(
v38,
v37,
v36);
}
else
{
v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size((_QWORD *)*a1);
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(
v39,
v4);
v34 = *a1;
v33 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v34);
v32 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v34);
while ( (__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
&v33,
&v32) & 1) != 0 )
{
v31 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*(&v33);
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>>::push_back(
v39,
v31 + 32);
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&v33);
}
}
while ( (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>>::empty(v39) & 1) == 0 )
{
v5 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back((long long)v39);
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(
&v30,
v5);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pop_back(v39);
if ( 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>::is_array(&v30) )
{
v29 = 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>>::begin(*((long long *)&v30 + 1));
v28 = 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>>::end(*((long long *)&v30 + 1));
v27 = std::back_inserter<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>>>(v39);
v26 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<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>>>>(
v29,
v28,
v27);
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(*((_QWORD *)&v30 + 1));
}
else if ( 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>::is_object(&v30) )
{
v25 = *((_QWORD *)&v30 + 1);
v24 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(*((_QWORD *)&v30 + 1));
v23 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v25);
while ( (__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
&v24,
&v23) & 1) != 0 )
{
v22 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*(&v24);
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>>::push_back(
v39,
v22 + 32);
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&v24);
}
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(*((_QWORD *)&v30 + 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((long long)&v30);
}
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(v39);
}
result = v40;
switch ( v40 )
{
case 1u:
std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::allocator((long long)&v21);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>(
&v21,
*a1);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::deallocate(
(long long)&v21,
*a1,
1LL,
v6,
v7,
v8);
result = std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::~allocator((long long)&v21);
break;
case 2u:
std::allocator<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>>>::allocator((long long)&v20);
std::allocator_traits<std::allocator<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>>>>::destroy<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>>>(
&v20,
*a1);
std::allocator_traits<std::allocator<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>>>>::deallocate(
(long long)&v20,
*a1,
1LL,
v9,
v10,
v11);
result = std::allocator<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>>>::~allocator((long long)&v20);
break;
case 3u:
std::allocator<std::string>::allocator((long long)&v19);
std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)&v19, *a1);
std::allocator_traits<std::allocator<std::string>>::deallocate((long long)&v19, *a1, 1LL, v12, v13, v14);
result = std::allocator<std::string>::~allocator((long long)&v19);
break;
case 8u:
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator((long long)&v18);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>(
&v18,
*a1);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate(
(long long)&v18,
*a1,
1LL,
v15,
v16,
v17);
result = std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator((long long)&v18);
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],0x1
JNZ 0x001ed2cb
MOV RAX,qword ptr [RSP + 0x50]
CMP qword ptr [RAX],0x0
JZ 0x001ed30a
LAB_001ed2cb:
CMP byte ptr [RSP + 0x11f],0x2
JNZ 0x001ed2e0
MOV RAX,qword ptr [RSP + 0x50]
CMP qword ptr [RAX],0x0
JZ 0x001ed30a
LAB_001ed2e0:
CMP byte ptr [RSP + 0x11f],0x3
JNZ 0x001ed2f5
MOV RAX,qword ptr [RSP + 0x50]
CMP qword ptr [RAX],0x0
JZ 0x001ed30a
LAB_001ed2f5:
CMP byte ptr [RSP + 0x11f],0x8
JNZ 0x001ed30f
MOV RAX,qword ptr [RSP + 0x50]
CMP qword ptr [RAX],0x0
JNZ 0x001ed30f
LAB_001ed30a:
JMP 0x001ed867
LAB_001ed30f:
CMP byte ptr [RSP + 0x11f],0x2
JZ 0x001ed327
CMP byte ptr [RSP + 0x11f],0x1
JNZ 0x001ed690
LAB_001ed327:
LEA RDI,[RSP + 0x100]
CALL 0x001dba00
CMP byte ptr [RSP + 0x11f],0x2
JNZ 0x001ed3fe
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001e8910
MOV RSI,RAX
LAB_001ed352:
LEA RDI,[RSP + 0x100]
CALL 0x001ed880
JMP 0x001ed361
LAB_001ed361:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001e87d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0xe8],RCX
MOV RDI,qword ptr [RAX]
CALL 0x001e8640
MOV qword ptr [RSP + 0xe0],RAX
LEA RDI,[RSP + 0x100]
CALL 0x001eda00
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001ed3a2
LAB_001ed3a2:
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 0x001ed990
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001ed3d3
LAB_001ed3d3:
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0xd0],RAX
JMP 0x001ed4b5
LAB_001ed3fe:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX]
CALL 0x001e9510
MOV RSI,RAX
LEA RDI,[RSP + 0x100]
CALL 0x001ed880
JMP 0x001ed41d
LAB_001ed41d:
MOV RAX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xc8],RAX
MOV RDI,qword ptr [RSP + 0xc8]
CALL 0x001eda30
MOV qword ptr [RSP + 0xc0],RAX
MOV RDI,qword ptr [RSP + 0xc8]
CALL 0x001eda60
MOV qword ptr [RSP + 0xb8],RAX
LAB_001ed457:
LEA RDI,[RSP + 0xc0]
LEA RSI,[RSP + 0xb8]
CALL 0x001eda90
TEST AL,0x1
JNZ 0x001ed472
JMP 0x001ed4b3
LAB_001ed472:
LEA RDI,[RSP + 0xc0]
CALL 0x001edad0
MOV qword ptr [RSP + 0xb0],RAX
MOV RSI,qword ptr [RSP + 0xb0]
ADD RSI,0x20
LEA RDI,[RSP + 0x100]
CALL 0x001edae0
JMP 0x001ed4a2
LAB_001ed4a2:
JMP 0x001ed4a4
LAB_001ed4a4:
LEA RDI,[RSP + 0xc0]
CALL 0x001edb10
JMP 0x001ed457
LAB_001ed4b3:
JMP 0x001ed4b5
LAB_001ed4b5:
JMP 0x001ed4b7
LAB_001ed4b7:
LEA RDI,[RSP + 0x100]
CALL 0x001edb30
XOR AL,0xff
TEST AL,0x1
JNZ 0x001ed4cf
JMP 0x001ed66f
LAB_001ed4cf:
LEA RDI,[RSP + 0x100]
CALL 0x001e8300
MOV RSI,RAX
LEA RDI,[RSP + 0xa0]
CALL 0x001e8190
LEA RDI,[RSP + 0x100]
CALL 0x001edb80
LEA RDI,[RSP + 0xa0]
CALL 0x001e8240
TEST AL,0x1
JNZ 0x001ed50f
JMP 0x001ed5c3
LAB_001ed50f:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001e87d0
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001e8640
MOV qword ptr [RSP + 0x90],RAX
LAB_001ed539:
LEA RDI,[RSP + 0x100]
CALL 0x001eda00
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001ed54d
LAB_001ed54d:
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 0x001ed990
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001ed57e
LAB_001ed57e:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x80],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001edba0
JMP 0x001ed65d
LAB_001ed5c3:
LEA RDI,[RSP + 0xa0]
CALL 0x001e8260
TEST AL,0x1
JNZ 0x001ed5d9
JMP 0x001ed65b
LAB_001ed5d9:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001eda30
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001eda60
MOV qword ptr [RSP + 0x68],RAX
LAB_001ed604:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x68]
CALL 0x001eda90
TEST AL,0x1
JNZ 0x001ed619
JMP 0x001ed64e
LAB_001ed619:
LEA RDI,[RSP + 0x70]
CALL 0x001edad0
MOV qword ptr [RSP + 0x60],RAX
MOV RSI,qword ptr [RSP + 0x60]
ADD RSI,0x20
LEA RDI,[RSP + 0x100]
CALL 0x001edae0
JMP 0x001ed640
LAB_001ed640:
JMP 0x001ed642
LAB_001ed642:
LEA RDI,[RSP + 0x70]
CALL 0x001edb10
JMP 0x001ed604
LAB_001ed64e:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001edbc0
LAB_001ed65b:
JMP 0x001ed65d
LAB_001ed65d:
LEA RDI,[RSP + 0xa0]
CALL 0x001d9d90
JMP 0x001ed4b7
LAB_001ed66f:
LEA RDI,[RSP + 0x100]
CALL 0x001edbe0
JMP 0x001ed690
LAB_001ed690:
MOVZX EAX,byte ptr [RSP + 0x11f]
MOV qword ptr [RSP + 0x28],RAX
SUB RAX,0x9
JA 0x001ed865
MOV RAX,qword ptr [RSP + 0x28]
LEA RCX,[0x316e54]
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 0x001dafb0
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX]
CALL 0x001edc40
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX]
LAB_001ed6ea:
MOV EDX,0x1
CALL 0x001db600
JMP 0x001ed6f6
LAB_001ed6f6:
LEA RDI,[RSP + 0x5f]
CALL 0x001db120
JMP 0x001ed867
caseD_2:
LEA RDI,[RSP + 0x5e]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001db670
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX]
CALL 0x001edc70
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX]
LAB_001ed756:
MOV EDX,0x1
CALL 0x001dbca0
JMP 0x001ed762
LAB_001ed762:
LEA RDI,[RSP + 0x5e]
CALL 0x001db7e0
JMP 0x001ed867
caseD_3:
LEA RDI,[RSP + 0x5d]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00169920
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
CALL 0x00192210
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
LAB_001ed7c2:
MOV EDX,0x1
CALL 0x0018b760
JMP 0x001ed7ce
LAB_001ed7ce:
LEA RDI,[RSP + 0x5d]
CALL 0x001699c0
JMP 0x001ed867
caseD_8:
LEA RDI,[RSP + 0x5c]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001dc210
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX]
CALL 0x001edca0
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX]
LAB_001ed82b:
MOV EDX,0x1
CALL 0x001dc860
LAB_001ed835:
JMP 0x001ed837
LAB_001ed837:
LEA RDI,[RSP + 0x5c]
CALL 0x001dc380
JMP 0x001ed867
caseD_0:
JMP 0x001ed865
LAB_001ed865:
JMP 0x001ed867
default:
ADD RSP,0x128
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,char param_2)
{
byte bVar1;
bool bVar2;
ulong uVar3;
basic_json *pbVar4;
allocator<nlohmann::json_abi_v3_11_3::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_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_ca;
allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
local_c9;
long local_c8;
int8 local_c0;
int8 local_b8;
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_b0;
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_88 [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_80;
long local_78;
int8 local_70;
int8 local_68;
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_60;
int8 local_58;
int8 local_50;
int8 local_48;
int8 local_40;
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_28 [31];
char local_9;
json_value *local_8;
if (((((param_2 != '\x01') || (*(long *)this != 0)) &&
((param_2 != '\x02' || (*(long *)this != 0)))) &&
((param_2 != '\x03' || (*(long *)this != 0)))) && ((param_2 != '\b' || (*(long *)this != 0))))
{
local_9 = param_2;
local_8 = this;
if ((param_2 == '\x02') || (param_2 == '\x01')) {
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(local_28);
if (local_9 == '\x02') {
uVar3 = 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>>>
::size(*(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);
/* try { // try from 001ed352 to 001ed49f has its CatchHandler @ 001ed3e5 */
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(local_28,uVar3);
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>>>
::begin(*(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);
local_48 = 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>>>
::end(*(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);
local_50 = std::
back_inserter<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 *)local_28);
local_58 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<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>>>>,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>>>>>
(local_40,local_48,local_50);
}
else {
uVar3 = 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>>>>
::size(*(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);
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(local_28,uVar3);
local_60 = *(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;
local_68 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::begin(local_60);
local_70 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(local_60);
while (bVar2 = __gnu_cxx::operator!=
((__normal_iterator *)&local_68,(__normal_iterator *)&local_70),
bVar2) {
local_78 = __gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_68);
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>>>
::push_back(local_28,(basic_json *)(local_78 + 0x20));
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_68);
}
}
while (bVar1 = 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>>>
::empty(local_28), ((bVar1 ^ 0xff) & 1) != 0) {
pbVar4 = (basic_json *)
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>>>
::back(local_28);
basic_json(local_88,pbVar4);
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>>>
::pop_back(local_28);
uVar3 = is_array(local_88);
if ((uVar3 & 1) == 0) {
uVar3 = is_object(local_88);
if ((uVar3 & 1) != 0) {
local_b0 = (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_80;
local_b8 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::begin((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_80);
local_c0 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::end(local_b0);
while (bVar2 = __gnu_cxx::operator!=
((__normal_iterator *)&local_b8,(__normal_iterator *)&local_c0)
, bVar2) {
local_c8 = __gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_b8);
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>>>
::push_back(local_28,(basic_json *)(local_c8 + 0x20));
__gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_b8);
}
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_80);
}
}
else {
local_90 = 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>>>
::begin(local_80);
local_98 = 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>>>
::end(local_80);
/* try { // try from 001ed539 to 001ed63d has its CatchHandler @ 001ed59d */
local_a0 = std::
back_inserter<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 *)local_28);
local_a8 = std::
move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<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>>>>,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>>>>>
(local_90,local_98,local_a0);
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_80);
}
~basic_json(local_88);
}
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(local_28);
}
switch(local_9) {
case '\0':
case '\x04':
case '\x05':
case '\x06':
case '\a':
case '\t':
break;
case '\x01':
std::
allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::allocator(&local_c9);
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>>
::
destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
((allocator *)&local_c9,*(ordered_map **)this);
/* try { // try from 001ed6ea to 001ed6f3 has its CatchHandler @ 001ed705 */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>>
::deallocate((allocator *)&local_c9,*(ordered_map **)this,1);
std::
allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::~allocator(&local_c9);
break;
case '\x02':
std::
allocator<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>>>>
::allocator(&local_ca);
std::
allocator_traits<std::allocator<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>>>>>
::
destroy<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>>>>
((allocator *)&local_ca,*(vector **)this);
/* try { // try from 001ed756 to 001ed75f has its CatchHandler @ 001ed771 */
std::
allocator_traits<std::allocator<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>>>>>
::deallocate((allocator *)&local_ca,*(vector **)this,1);
std::
allocator<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>>>>
::~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 001ed7c2 to 001ed7cb has its CatchHandler @ 001ed7dd */
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_3::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_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::
destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
((allocator *)&local_cc,*(byte_container_with_subtype **)this);
/* try { // try from 001ed82b to 001ed834 has its CatchHandler @ 001ed843 */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::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_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::~allocator(&local_cc);
}
}
return;
}
| |
32,756 | ma_cmp_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_cmp_static_record(register MARIA_HA *info,
register const uchar *old)
{
DBUG_ENTER("_ma_cmp_static_record");
if (info->opt_flag & WRITE_CACHE_USED)
{
if (flush_io_cache(&info->rec_cache))
{
DBUG_RETURN(1);
}
info->rec_cache.seek_not_done=1; /* We have done a seek */
}
if ((info->opt_flag & READ_CHECK_USED))
{ /* If check isn't disabled */
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, info->rec_buff, info->s->base.reclength,
info->cur_row.lastpos, MYF(MY_NABP)))
DBUG_RETURN(1);
if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength))
{
DBUG_DUMP("read",old,info->s->base.reclength);
DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength);
my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */
DBUG_RETURN(1);
}
}
DBUG_RETURN(0);
} | O0 | c | ma_cmp_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x74af5
movq -0x10(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
movl $0x1, %esi
callq 0xe1f60
cmpl $0x0, %eax
je 0x74ae7
jmp 0x74ade
movb $0x1, -0x1(%rbp)
jmp 0x74bb1
movq -0x10(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x10(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x74bab
movq -0x10(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x6e0(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x3a0(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x10(%rbp), %rcx
movq 0x98(%rcx), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x74b65
jmp 0x74b5f
movb $0x1, -0x1(%rbp)
jmp 0x74bb1
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x398(%rax), %rax
movl %eax, %eax
movl %eax, %edx
callq 0x2a830
cmpl $0x0, %eax
je 0x74ba9
jmp 0x74b92
jmp 0x74b94
jmp 0x74b96
jmp 0x74b98
callq 0xf7440
movl $0x7b, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0x74bb1
jmp 0x74bab
jmp 0x74bad
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_cmp_static_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+61Ch]
and eax, 10h
cmp eax, 0
jz short loc_74AF5
mov rdi, [rbp+var_10]
add rdi, 4B8h
mov esi, 1
call my_b_flush_io_cache
cmp eax, 0
jz short loc_74AE7
jmp short $+2
loc_74ADE:
mov [rbp+var_1], 1
jmp loc_74BB1
loc_74AE7:
mov rax, [rbp+var_10]
mov dword ptr [rax+598h], 1
loc_74AF5:
mov rax, [rbp+var_10]
mov eax, [rax+61Ch]
and eax, 4
cmp eax, 0
jz loc_74BAB
mov rax, [rbp+var_10]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+6E0h]
mov rdi, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rsi, [rcx+3A0h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+98h]
mov r8d, 4
call rax
cmp rax, 0
jz short loc_74B65
jmp short $+2
loc_74B5F:
mov [rbp+var_1], 1
jmp short loc_74BB1
loc_74B65:
mov rax, [rbp+var_10]
mov rdi, [rax+3A0h]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+398h]
mov eax, eax
mov edx, eax
call _memcmp
cmp eax, 0
jz short loc_74BA9
jmp short $+2
loc_74B92:
jmp short $+2
loc_74B94:
jmp short $+2
loc_74B96:
jmp short $+2
loc_74B98:
call _my_thread_var
mov dword ptr [rax], 7Bh ; '{'
mov [rbp+var_1], 1
jmp short loc_74BB1
loc_74BA9:
jmp short $+2
loc_74BAB:
jmp short $+2
loc_74BAD:
mov [rbp+var_1], 0
loc_74BB1:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_cmp_static_record(long long a1, const char *a2)
{
long long v2; // rdi
if ( (*(_DWORD *)(a1 + 1564) & 0x10) == 0 )
{
LABEL_5:
if ( (*(_DWORD *)(a1 + 1564) & 4) != 0 )
{
*(_DWORD *)(a1 + 1432) = 1;
if ( (*(long long ( **)(long long, _QWORD, _QWORD, _QWORD, long long))(*(_QWORD *)a1 + 1760LL))(
a1,
*(_QWORD *)(a1 + 928),
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
*(_QWORD *)(a1 + 152),
4LL) )
{
return 1;
}
v2 = *(_QWORD *)(a1 + 928);
if ( (unsigned int)memcmp(v2, a2, (unsigned int)*(_QWORD *)(*(_QWORD *)a1 + 920LL)) )
{
*(_DWORD *)my_thread_var(v2, a2) = 123;
return 1;
}
}
return 0;
}
if ( !(unsigned int)my_b_flush_io_cache(a1 + 1208, 1LL) )
{
*(_DWORD *)(a1 + 1432) = 1;
goto LABEL_5;
}
return 1;
}
| _ma_cmp_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x00174af5
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x4b8
MOV ESI,0x1
CALL 0x001e1f60
CMP EAX,0x0
JZ 0x00174ae7
JMP 0x00174ade
LAB_00174ade:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00174bb1
LAB_00174ae7:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x598],0x1
LAB_00174af5:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x00174bab
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e0]
MOV RDI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x98]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x00174b65
JMP 0x00174b5f
LAB_00174b5f:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00174bb1
LAB_00174b65:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x3a0]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x398]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a830
CMP EAX,0x0
JZ 0x00174ba9
JMP 0x00174b92
LAB_00174b92:
JMP 0x00174b94
LAB_00174b94:
JMP 0x00174b96
LAB_00174b96:
JMP 0x00174b98
LAB_00174b98:
CALL 0x001f7440
MOV dword ptr [RAX],0x7b
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00174bb1
LAB_00174ba9:
JMP 0x00174bab
LAB_00174bab:
JMP 0x00174bad
LAB_00174bad:
MOV byte ptr [RBP + -0x1],0x0
LAB_00174bb1:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_cmp_static_record(long *param_1,void *param_2)
{
int iVar1;
long lVar2;
int4 *puVar3;
if ((*(uint *)((long)param_1 + 0x61c) & 0x10) != 0) {
iVar1 = my_b_flush_io_cache(param_1 + 0x97,1);
if (iVar1 != 0) {
return 1;
}
*(int4 *)(param_1 + 0xb3) = 1;
}
if ((*(uint *)((long)param_1 + 0x61c) & 4) != 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar2 = (**(code **)(*param_1 + 0x6e0))
(param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4);
if (lVar2 != 0) {
return 1;
}
iVar1 = memcmp((void *)param_1[0x74],param_2,*(ulong *)(*param_1 + 0x398) & 0xffffffff);
if (iVar1 != 0) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7b;
return 1;
}
}
return 0;
}
| |
32,757 | ma_cmp_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_cmp_static_record(register MARIA_HA *info,
register const uchar *old)
{
DBUG_ENTER("_ma_cmp_static_record");
if (info->opt_flag & WRITE_CACHE_USED)
{
if (flush_io_cache(&info->rec_cache))
{
DBUG_RETURN(1);
}
info->rec_cache.seek_not_done=1; /* We have done a seek */
}
if ((info->opt_flag & READ_CHECK_USED))
{ /* If check isn't disabled */
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, info->rec_buff, info->s->base.reclength,
info->cur_row.lastpos, MYF(MY_NABP)))
DBUG_RETURN(1);
if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength))
{
DBUG_DUMP("read",old,info->s->base.reclength);
DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength);
my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */
DBUG_RETURN(1);
}
}
DBUG_RETURN(0);
} | O3 | c | ma_cmp_static_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x61c(%rdi), %eax
testb $0x10, %al
je 0x5c661
leaq 0x4b8(%r14), %rdi
movl $0x1, %esi
callq 0x9648d
movb $0x1, %r15b
testl %eax, %eax
jne 0x5c6cb
movl $0x1, 0x598(%r14)
movl 0x61c(%r14), %eax
testb $0x4, %al
jne 0x5c66a
xorl %r15d, %r15d
jmp 0x5c6cb
movl $0x1, 0x598(%r14)
movq 0x3a0(%r14), %rsi
movq (%r14), %rax
movq 0x98(%r14), %rcx
movq 0x398(%rax), %rdx
movl $0x4, %r8d
movq %r14, %rdi
callq *0x6e0(%rax)
movb $0x1, %r15b
testq %rax, %rax
jne 0x5c6cb
movq 0x3a0(%r14), %rdi
movq (%r14), %rax
movl 0x398(%rax), %edx
movq %rbx, %rsi
callq 0x29560
testl %eax, %eax
je 0x5c665
callq 0xa2a4e
movl $0x7b, (%rax)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ma_cmp_static_record:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov eax, [rdi+61Ch]
test al, 10h
jz short loc_5C661
lea rdi, [r14+4B8h]
mov esi, 1
call my_b_flush_io_cache
mov r15b, 1
test eax, eax
jnz short loc_5C6CB
mov dword ptr [r14+598h], 1
mov eax, [r14+61Ch]
loc_5C661:
test al, 4
jnz short loc_5C66A
loc_5C665:
xor r15d, r15d
jmp short loc_5C6CB
loc_5C66A:
mov dword ptr [r14+598h], 1
mov rsi, [r14+3A0h]
mov rax, [r14]
mov rcx, [r14+98h]
mov rdx, [rax+398h]
mov r8d, 4
mov rdi, r14
call qword ptr [rax+6E0h]
mov r15b, 1
test rax, rax
jnz short loc_5C6CB
mov rdi, [r14+3A0h]
mov rax, [r14]
mov edx, [rax+398h]
mov rsi, rbx
call _bcmp
test eax, eax
jz short loc_5C665
call _my_thread_var
mov dword ptr [rax], 7Bh ; '{'
loc_5C6CB:
mov eax, r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ma_cmp_static_record(_QWORD *a1, const char *a2)
{
unsigned int v2; // r15d
int v4; // eax
long long v5; // rdi
v4 = *((_DWORD *)a1 + 391);
if ( (v4 & 0x10) != 0 )
{
LOBYTE(v2) = 1;
if ( (unsigned int)my_b_flush_io_cache(a1 + 151, 1LL) )
return v2;
*((_DWORD *)a1 + 358) = 1;
v4 = *((_DWORD *)a1 + 391);
}
if ( (v4 & 4) != 0 )
{
*((_DWORD *)a1 + 358) = 1;
LOBYTE(v2) = 1;
if ( (*(long long ( **)(_QWORD *, _QWORD, _QWORD, _QWORD, long long))(*a1 + 1760LL))(
a1,
a1[116],
*(_QWORD *)(*a1 + 920LL),
a1[19],
4LL) )
{
return v2;
}
v5 = a1[116];
if ( (unsigned int)bcmp(v5, a2, *(unsigned int *)(*a1 + 920LL)) )
{
*(_DWORD *)my_thread_var(v5, a2) = 123;
return v2;
}
}
return 0;
}
| _ma_cmp_static_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x61c]
TEST AL,0x10
JZ 0x0015c661
LEA RDI,[R14 + 0x4b8]
MOV ESI,0x1
CALL 0x0019648d
MOV R15B,0x1
TEST EAX,EAX
JNZ 0x0015c6cb
MOV dword ptr [R14 + 0x598],0x1
MOV EAX,dword ptr [R14 + 0x61c]
LAB_0015c661:
TEST AL,0x4
JNZ 0x0015c66a
LAB_0015c665:
XOR R15D,R15D
JMP 0x0015c6cb
LAB_0015c66a:
MOV dword ptr [R14 + 0x598],0x1
MOV RSI,qword ptr [R14 + 0x3a0]
MOV RAX,qword ptr [R14]
MOV RCX,qword ptr [R14 + 0x98]
MOV RDX,qword ptr [RAX + 0x398]
MOV R8D,0x4
MOV RDI,R14
CALL qword ptr [RAX + 0x6e0]
MOV R15B,0x1
TEST RAX,RAX
JNZ 0x0015c6cb
MOV RDI,qword ptr [R14 + 0x3a0]
MOV RAX,qword ptr [R14]
MOV EDX,dword ptr [RAX + 0x398]
MOV RSI,RBX
CALL 0x00129560
TEST EAX,EAX
JZ 0x0015c665
CALL 0x001a2a4e
MOV dword ptr [RAX],0x7b
LAB_0015c6cb:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
ulong _ma_cmp_static_record(long *param_1,void *param_2)
{
int iVar1;
uint uVar2;
long lVar3;
int4 *puVar4;
ulong unaff_R15;
uVar2 = *(uint *)((long)param_1 + 0x61c);
if ((uVar2 & 0x10) != 0) {
iVar1 = my_b_flush_io_cache(param_1 + 0x97,1);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (iVar1 != 0) goto LAB_0015c6cb;
*(int4 *)(param_1 + 0xb3) = 1;
uVar2 = *(uint *)((long)param_1 + 0x61c);
}
if ((uVar2 & 4) != 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar3 = (**(code **)(*param_1 + 0x6e0))
(param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (lVar3 != 0) goto LAB_0015c6cb;
iVar1 = bcmp((void *)param_1[0x74],param_2,(ulong)*(uint *)(*param_1 + 0x398));
if (iVar1 != 0) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x7b;
goto LAB_0015c6cb;
}
}
unaff_R15 = 0;
LAB_0015c6cb:
return unaff_R15 & 0xffffffff;
}
| |
32,758 | ma_hex2int | eloqsql/libmariadb/libmariadb/ma_tls.c | static signed char ma_hex2int(char c)
{
if (c >= '0' && c <= '9')
return c - '0';
if (c >= 'A' && c <= 'F')
return 10 + c - 'A';
if (c >= 'a' && c <= 'f')
return 10 + c - 'a';
return -1;
} | O0 | c | ma_hex2int:
pushq %rbp
movq %rsp, %rbp
movb %dil, %al
movb %al, -0x2(%rbp)
movsbl -0x2(%rbp), %eax
cmpl $0x30, %eax
jl 0x28f08
movsbl -0x2(%rbp), %eax
cmpl $0x39, %eax
jg 0x28f08
movsbl -0x2(%rbp), %eax
subl $0x30, %eax
movb %al, -0x1(%rbp)
jmp 0x28f4e
movsbl -0x2(%rbp), %eax
cmpl $0x41, %eax
jl 0x28f29
movsbl -0x2(%rbp), %eax
cmpl $0x46, %eax
jg 0x28f29
movsbl -0x2(%rbp), %eax
addl $0xa, %eax
subl $0x41, %eax
movb %al, -0x1(%rbp)
jmp 0x28f4e
movsbl -0x2(%rbp), %eax
cmpl $0x61, %eax
jl 0x28f4a
movsbl -0x2(%rbp), %eax
cmpl $0x66, %eax
jg 0x28f4a
movsbl -0x2(%rbp), %eax
addl $0xa, %eax
subl $0x61, %eax
movb %al, -0x1(%rbp)
jmp 0x28f4e
movb $-0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| ma_hex2int:
push rbp
mov rbp, rsp
mov al, dil
mov [rbp+var_2], al
movsx eax, [rbp+var_2]
cmp eax, 30h ; '0'
jl short loc_28F08
movsx eax, [rbp+var_2]
cmp eax, 39h ; '9'
jg short loc_28F08
movsx eax, [rbp+var_2]
sub eax, 30h ; '0'
mov [rbp+var_1], al
jmp short loc_28F4E
loc_28F08:
movsx eax, [rbp+var_2]
cmp eax, 41h ; 'A'
jl short loc_28F29
movsx eax, [rbp+var_2]
cmp eax, 46h ; 'F'
jg short loc_28F29
movsx eax, [rbp+var_2]
add eax, 0Ah
sub eax, 41h ; 'A'
mov [rbp+var_1], al
jmp short loc_28F4E
loc_28F29:
movsx eax, [rbp+var_2]
cmp eax, 61h ; 'a'
jl short loc_28F4A
movsx eax, [rbp+var_2]
cmp eax, 66h ; 'f'
jg short loc_28F4A
movsx eax, [rbp+var_2]
add eax, 0Ah
sub eax, 61h ; 'a'
mov [rbp+var_1], al
jmp short loc_28F4E
loc_28F4A:
mov [rbp+var_1], 0FFh
loc_28F4E:
mov al, [rbp+var_1]
pop rbp
retn
| char ma_hex2int(char a1)
{
if ( a1 >= 48 && a1 <= 57 )
return a1 - 48;
if ( a1 >= 65 && a1 <= 70 )
return a1 - 55;
if ( a1 < 97 || a1 > 102 )
return -1;
return a1 - 87;
}
| ma_hex2int:
PUSH RBP
MOV RBP,RSP
MOV AL,DIL
MOV byte ptr [RBP + -0x2],AL
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x30
JL 0x00128f08
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x39
JG 0x00128f08
MOVSX EAX,byte ptr [RBP + -0x2]
SUB EAX,0x30
MOV byte ptr [RBP + -0x1],AL
JMP 0x00128f4e
LAB_00128f08:
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x41
JL 0x00128f29
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x46
JG 0x00128f29
MOVSX EAX,byte ptr [RBP + -0x2]
ADD EAX,0xa
SUB EAX,0x41
MOV byte ptr [RBP + -0x1],AL
JMP 0x00128f4e
LAB_00128f29:
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x61
JL 0x00128f4a
MOVSX EAX,byte ptr [RBP + -0x2]
CMP EAX,0x66
JG 0x00128f4a
MOVSX EAX,byte ptr [RBP + -0x2]
ADD EAX,0xa
SUB EAX,0x61
MOV byte ptr [RBP + -0x1],AL
JMP 0x00128f4e
LAB_00128f4a:
MOV byte ptr [RBP + -0x1],0xff
LAB_00128f4e:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int8 ma_hex2int(char param_1)
{
ulong uVar1;
int1 local_9;
if ((param_1 < '0') || ('9' < param_1)) {
if ((param_1 < 'A') || ('F' < param_1)) {
if ((param_1 < 'a') || ('f' < param_1)) {
uVar1 = (ulong)(uint)(int)param_1;
local_9 = 0xff;
}
else {
uVar1 = (ulong)((int)param_1 - 0x57U);
local_9 = (int1)((int)param_1 - 0x57U);
}
}
else {
uVar1 = (ulong)((int)param_1 - 0x37U);
local_9 = (int1)((int)param_1 - 0x37U);
}
}
else {
uVar1 = (ulong)((int)param_1 - 0x30U);
local_9 = (int1)((int)param_1 - 0x30U);
}
return CONCAT71((int7)(uVar1 >> 8),local_9);
}
| |
32,759 | pagecache_delete_pages | eloqsql/storage/maria/ma_pagecache.c | my_bool pagecache_delete_pages(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno,
uint page_count,
enum pagecache_page_lock lock,
my_bool flush)
{
pgcache_page_no_t page_end;
DBUG_ENTER("pagecache_delete_pages");
DBUG_ASSERT(page_count > 0);
page_end= pageno + page_count;
do
{
if (pagecache_delete(pagecache, file, pageno,
lock, flush))
DBUG_RETURN(1);
} while (++pageno != page_end);
DBUG_RETURN(0);
} | O0 | c | pagecache_delete_pages:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movb %al, -0x29(%rbp)
jmp 0x2efe3
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x28(%rbp), %ecx
movsbl -0x29(%rbp), %r8d
callq 0x2ecd0
cmpb $0x0, %al
je 0x2f016
jmp 0x2f010
movb $0x1, -0x1(%rbp)
jmp 0x2f030
jmp 0x2f018
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
cmpq -0x38(%rbp), %rax
jne 0x2eff1
jmp 0x2f02c
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| pagecache_delete_pages:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, r9b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], r8d
mov [rbp+var_29], al
jmp short $+2
loc_2EFE3:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_24]
add rax, rcx
mov [rbp+var_38], rax
loc_2EFF1:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_28]
movsx r8d, [rbp+var_29]
call pagecache_delete
cmp al, 0
jz short loc_2F016
jmp short $+2
loc_2F010:
mov [rbp+var_1], 1
jmp short loc_2F030
loc_2F016:
jmp short $+2
loc_2F018:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
cmp rax, [rbp+var_38]
jnz short loc_2EFF1
jmp short $+2
loc_2F02C:
mov [rbp+var_1], 0
loc_2F030:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| char pagecache_delete_pages(_QWORD *a1, long long a2, long long a3, unsigned int a4, unsigned int a5, bool a6)
{
long long v7; // [rsp+8h] [rbp-38h]
long long v10; // [rsp+20h] [rbp-20h]
v10 = a3;
v7 = a4 + a3;
do
{
if ( pagecache_delete(a1, a2, v10, a5, a6) )
return 1;
++v10;
}
while ( v10 != v7 );
return 0;
}
| pagecache_delete_pages:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,R9B
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV byte ptr [RBP + -0x29],AL
JMP 0x0012efe3
LAB_0012efe3:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_0012eff1:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x28]
MOVSX R8D,byte ptr [RBP + -0x29]
CALL 0x0012ecd0
CMP AL,0x0
JZ 0x0012f016
JMP 0x0012f010
LAB_0012f010:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0012f030
LAB_0012f016:
JMP 0x0012f018
LAB_0012f018:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,qword ptr [RBP + -0x38]
JNZ 0x0012eff1
JMP 0x0012f02c
LAB_0012f02c:
MOV byte ptr [RBP + -0x1],0x0
LAB_0012f030:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1
pagecache_delete_pages
(int8 param_1,int8 param_2,long param_3,uint param_4,int4 param_5,
char param_6)
{
char cVar1;
long local_28;
local_28 = param_3;
do {
cVar1 = pagecache_delete(param_1,param_2,local_28,param_5,(int)param_6);
if (cVar1 != '\0') {
return 1;
}
local_28 = local_28 + 1;
} while (local_28 != param_3 + (ulong)param_4);
return 0;
}
| |
32,760 | testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
const char* rhs_expression, const wchar_t* lhs,
const wchar_t* rhs) {
if (String::WideCStringEquals(lhs, rhs)) {
return AssertionSuccess();
}
return EqFailure(lhs_expression, rhs_expression, PrintToString(lhs),
PrintToString(rhs), false);
} | O1 | cpp | testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rcx, 0x8(%rsp)
movq %r8, (%rsp)
testq %r8, %r8
sete %al
testq %rcx, %rcx
je 0x23594
testq %r8, %r8
je 0x235a5
movq %rcx, %rdi
movq %r8, %rsi
callq 0x96d0
testl %eax, %eax
sete %al
testb %al, %al
je 0x235a5
movb $0x1, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x23612
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x36d34
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x36d34
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %r9d, %r9d
callq 0x21c84
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x235f7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23612
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23642
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x23642
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2365d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rdi
callq 0x99a0
| _ZN7testing8internal14CmpHelperSTREQEPKcS2_PKwS4_:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov [rsp+68h+var_60], rcx
mov [rsp+68h+var_68], r8
test r8, r8
setz al
test rcx, rcx
jz short loc_23594
test r8, r8
jz short loc_235A5
mov rdi, rcx
mov rsi, r8
call _wcscmp
test eax, eax
setz al
loc_23594:
test al, al
jz short loc_235A5
mov byte ptr [rbx], 1
mov qword ptr [rbx+8], 0
jmp short loc_23612
loc_235A5:
lea rdi, [rsp+68h+var_38]
lea rsi, [rsp+68h+var_60]
call _ZN7testing13PrintToStringIPKwEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<wchar_t const*>(wchar_t const* const&)
lea rdi, [rsp+68h+var_58]
mov rsi, rsp
call _ZN7testing13PrintToStringIPKwEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<wchar_t const*>(wchar_t const* const&)
lea rcx, [rsp+68h+var_38]
lea r8, [rsp+68h+var_58]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
xor r9d, r9d
call _ZN7testing8internal9EqFailureEPKcS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_b; testing::internal::EqFailure(char const*,char const*,std::string const&,std::string const&,bool)
lea rax, [rsp+68h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_235F7
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_235F7:
lea rax, [rsp+68h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_23612
mov rsi, [rsp+68h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23612:
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_23642
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_23642
mov rbx, rax
loc_23642:
lea rax, [rsp+arg_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2365D
mov rsi, [rsp+arg_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2365D:
mov rdi, rbx
call __Unwind_Resume
| CmpHelperSTREQ:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP],R8
TEST R8,R8
SETZ AL
TEST RCX,RCX
JZ 0x00123594
TEST R8,R8
JZ 0x001235a5
MOV RDI,RCX
MOV RSI,R8
CALL 0x001096d0
TEST EAX,EAX
SETZ AL
LAB_00123594:
TEST AL,AL
JZ 0x001235a5
MOV byte ptr [RBX],0x1
MOV qword ptr [RBX + 0x8],0x0
JMP 0x00123612
LAB_001235a5:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x8]
CALL 0x00136d34
LAB_001235b4:
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x00136d34
LAB_001235c1:
LEA RCX,[RSP + 0x30]
LEA R8,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
XOR R9D,R9D
CALL 0x00121c84
LAB_001235dc:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001235f7
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001094c0
LAB_001235f7:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00123612
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001094c0
LAB_00123612:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*) */
internal * __thiscall
testing::internal::CmpHelperSTREQ
(internal *this,char *param_1,char *param_2,wchar_t *param_3,wchar_t *param_4)
{
int iVar1;
bool bVar2;
wchar_t *local_68;
wchar_t *local_60;
long *local_58 [2];
long local_48 [2];
long *local_38 [2];
long local_28 [2];
bVar2 = param_4 == (wchar_t *)0x0;
local_68 = param_4;
local_60 = param_3;
if (param_3 != (wchar_t *)0x0) {
if (param_4 == (wchar_t *)0x0) goto LAB_001235a5;
iVar1 = wcscmp(param_3,param_4);
bVar2 = iVar1 == 0;
}
if (bVar2) {
*this = (internal)0x1;
*(int8 *)(this + 8) = 0;
return this;
}
LAB_001235a5:
PrintToString<wchar_t_const*>((testing *)local_38,&local_60);
/* try { // try from 001235b4 to 001235c0 has its CatchHandler @ 0012363f */
PrintToString<wchar_t_const*>((testing *)local_58,&local_68);
/* try { // try from 001235c1 to 001235db has its CatchHandler @ 0012361f */
EqFailure(this,param_1,param_2,(string *)local_38,(string *)local_58,false);
if (local_58[0] != local_48) {
operator_delete(local_58[0],local_48[0] + 1);
}
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return this;
}
| ||
32,761 | wt_thd_release_self | eloqsql/storage/maria/trnman.c | static void wt_thd_release_self(TRN *trn)
{
if (trn->wt)
{
WT_RESOURCE_ID rc;
rc.type= &ma_rc_dup_unique;
rc.value= (intptr)trn;
wt_thd_release(trn->wt, & rc);
trn->wt= 0;
}
} | O0 | c | wt_thd_release_self:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x77d17
leaq 0x25329a(%rip), %rax # 0x2caf88
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x18(%rbp), %rsi
callq 0x1098e0
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| wt_thd_release_self:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+8], 0
jz short loc_77D17
lea rax, ma_rc_dup_unique
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rdi, [rax+8]
lea rsi, [rbp+var_18]
call wt_thd_release
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
loc_77D17:
add rsp, 20h
pop rbp
retn
| long long wt_thd_release_self(long long a1)
{
long long result; // rax
_QWORD v2[2]; // [rsp+8h] [rbp-18h] BYREF
long long v3; // [rsp+18h] [rbp-8h]
v3 = a1;
result = a1;
if ( *(_QWORD *)(a1 + 8) )
{
v2[1] = &ma_rc_dup_unique;
v2[0] = v3;
wt_thd_release(*(_QWORD *)(v3 + 8), v2);
result = v3;
*(_QWORD *)(v3 + 8) = 0LL;
}
return result;
}
| wt_thd_release_self:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x00177d17
LEA RAX,[0x3caf88]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RBP + -0x18]
CALL 0x002098e0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
LAB_00177d17:
ADD RSP,0x20
POP RBP
RET
|
void wt_thd_release_self(long param_1)
{
long local_20;
int1 *local_18;
long local_10;
if (*(long *)(param_1 + 8) != 0) {
local_18 = ma_rc_dup_unique;
local_20 = param_1;
local_10 = param_1;
wt_thd_release(*(int8 *)(param_1 + 8),&local_20);
*(int8 *)(local_10 + 8) = 0;
}
return;
}
| |
32,762 | LefDefParser::lefwLayerDCTableEntries(int, double*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwLayerDCTableEntries(int numEntries,
double *entries)
{
int i;
int j = 0;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERDCCURRENT)
return LEFW_BAD_ORDER;
if (numEntries <= 0)
return LEFW_BAD_DATA; // tableEntries are required
if (lefwWriteEncrypt) {
encPrint(lefwFile, (char*) " TABLEENTRIES\n ");
for (i = 0; i < numEntries; i++) {
if (++j > lefwTableLen) {
encPrint(lefwFile, (char*) "\n ");
j = 1;
}
encPrint(lefwFile, (char*) "%.11g ", *entries++);
}
encPrint(lefwFile, (char*) ";\n");
} else {
fprintf(lefwFile, " TABLEENTRIES\n ");
for (i = 0; i < numEntries; i++) {
if (++j > lefwTableLen) {
fprintf(lefwFile, "\n ");
j = 1;
}
fprintf(lefwFile, "%.11g ", *entries++);
}
fprintf(lefwFile, ";\n");
}
lefwState = lefwOldState; // restore the previous state
lefwLines++;
return LEFW_OK;
} | O3 | cpp | LefDefParser::lefwLayerDCTableEntries(int, double*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x18ada(%rip), %r13 # 0x24e00
movq (%r13), %rcx
testq %rcx, %rcx
je 0xc3db
leaq 0x18d16(%rip), %rdx # 0x25050
movl $0x2, %eax
cmpl $0x1e, (%rdx)
jne 0xc498
movl %edi, %ebp
testl %edi, %edi
jle 0xc3e5
movq %rsi, %rbx
cmpb $0x1, 0x18d90(%rip) # 0x250ec
jne 0xc3ef
leaq 0xe99b(%rip), %rsi # 0x1ad04
movq %rcx, %rdi
xorl %eax, %eax
callq 0x18c35
movl %ebp, %r12d
leaq 0xe7d9(%rip), %r14 # 0x1ab56
xorl %r15d, %r15d
xorl %ebp, %ebp
leaq 0x18d57(%rip), %rax # 0x250e0
cmpl (%rax), %ebp
jge 0xc391
incl %ebp
jmp 0xc3a8
movq (%r13), %rdi
leaq 0xe97a(%rip), %rsi # 0x1ad16
xorl %eax, %eax
callq 0x18c35
movl $0x1, %ebp
movq (%r13), %rdi
movsd (%rbx,%r15,8), %xmm0
movq %r14, %rsi
movb $0x1, %al
callq 0x18c35
incq %r15
cmpl %r15d, %r12d
jne 0xc382
movq (%r13), %rdi
leaq 0xde41(%rip), %rsi # 0x1a210
xorl %eax, %eax
callq 0x18c35
jmp 0xc47b
movl $0x1, %eax
jmp 0xc498
movl $0x3, %eax
jmp 0xc498
leaq 0xe90e(%rip), %rdi # 0x1ad04
movl $0x1b, %esi
movl $0x1, %edx
callq 0x1110
movl %ebp, %ebp
xorl %r12d, %r12d
leaq 0xe745(%rip), %r14 # 0x1ab56
xorl %r15d, %r15d
leaq 0x18cc5(%rip), %rax # 0x250e0
cmpl (%rax), %r15d
jge 0xc425
incl %r15d
jmp 0xc445
movq (%r13), %rcx
movl $0x9, %esi
movl $0x1, %edx
leaq 0xe8dc(%rip), %rdi # 0x1ad16
callq 0x1110
movl $0x1, %r15d
movq (%r13), %rdi
movsd (%rbx,%r12,8), %xmm0
movq %r14, %rsi
movb $0x1, %al
callq 0x10f0
incq %r12
cmpl %r12d, %ebp
jne 0xc414
movq (%r13), %rcx
leaq 0xdda4(%rip), %rdi # 0x1a210
movl $0x2, %esi
movl $0x1, %edx
callq 0x1110
leaq 0x18c5a(%rip), %rax # 0x250dc
movl (%rax), %eax
leaq 0x18bc5(%rip), %rcx # 0x25050
movl %eax, (%rcx)
leaq 0x18bb8(%rip), %rax # 0x2504c
incl (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN12LefDefParser23lefwLayerDCTableEntriesEiPd:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
lea r13, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rcx, [r13+0]
test rcx, rcx
jz loc_C3DB
lea rdx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov eax, 2
cmp dword ptr [rdx], 1Eh
jnz loc_C498
mov ebp, edi
test edi, edi
jle loc_C3E5
mov rbx, rsi
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz loc_C3EF
lea rsi, aTableentries; " TABLEENTRIES\n "
mov rdi, rcx
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
mov r12d, ebp
lea r14, aMinenclosedare+13h; "%.11g "
xor r15d, r15d
xor ebp, ebp
loc_C382:
lea rax, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen
cmp ebp, [rax]
jge short loc_C391
inc ebp
jmp short loc_C3A8
loc_C391:
mov rdi, [r13+0]
lea rsi, aTableentries+12h; "\n "
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
mov ebp, 1
loc_C3A8:
mov rdi, [r13+0]
movsd xmm0, qword ptr [rbx+r15*8]
mov rsi, r14
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
inc r15
cmp r12d, r15d
jnz short loc_C382
mov rdi, [r13+0]
lea rsi, aDividercharS+11h; ";\n"
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp loc_C47B
loc_C3DB:
mov eax, 1
jmp loc_C498
loc_C3E5:
mov eax, 3
jmp loc_C498
loc_C3EF:
lea rdi, aTableentries; " TABLEENTRIES\n "
mov esi, 1Bh
mov edx, 1
call _fwrite
mov ebp, ebp
xor r12d, r12d
lea r14, aMinenclosedare+13h; "%.11g "
xor r15d, r15d
loc_C414:
lea rax, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen
cmp r15d, [rax]
jge short loc_C425
inc r15d
jmp short loc_C445
loc_C425:
mov rcx, [r13+0]
mov esi, 9
mov edx, 1
lea rdi, aTableentries+12h; "\n "
call _fwrite
mov r15d, 1
loc_C445:
mov rdi, [r13+0]
movsd xmm0, qword ptr [rbx+r12*8]
mov rsi, r14
mov al, 1
call _fprintf
inc r12
cmp ebp, r12d
jnz short loc_C414
mov rcx, [r13+0]
lea rdi, aDividercharS+11h; ";\n"
mov esi, 2
mov edx, 1
call _fwrite
loc_C47B:
lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState
mov eax, [rax]
lea rcx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov [rcx], eax
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
loc_C498:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long LefDefParser::lefwLayerDCTableEntries(
LefDefParser *this,
long long a2,
double *a3,
long long a4,
int a5,
int a6)
{
long long result; // rax
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
long long v11; // r15
int v12; // ebp
long long v13; // r12
int v14; // r15d
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
result = 2LL;
if ( LefDefParser::lefwState == 30 )
{
if ( (int)this <= 0 )
{
return 3LL;
}
else
{
if ( LefDefParser::lefwWriteEncrypt == 1 )
{
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" TABLEENTRIES\n ",
(unsigned int)&LefDefParser::lefwState,
LefDefParser::lefwFile,
a5,
a6);
v11 = 0LL;
v12 = 0;
do
{
if ( v12 >= LefDefParser::lefwTableLen )
{
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"\n ", v7, v8, v9, v10);
v12 = 1;
}
else
{
++v12;
}
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g ", v7, v8, v9, v10);
++v11;
}
while ( (_DWORD)this != (_DWORD)v11 );
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v7, v8, v9, v10);
}
else
{
fwrite(" TABLEENTRIES\n ", 27LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
v13 = 0LL;
v14 = 0;
do
{
if ( v14 >= LefDefParser::lefwTableLen )
{
fwrite("\n ", 9LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
v14 = 1;
}
else
{
++v14;
}
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "%.11g ", *(double *)(a2 + 8 * v13++));
}
while ( (_DWORD)this != (_DWORD)v13 );
fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
}
LefDefParser::lefwState = LefDefParser::lefwOldState;
++LefDefParser::lefwLines;
return 0LL;
}
}
return result;
}
| lefwLayerDCTableEntries:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
LEA R13,[0x124e00]
MOV RCX,qword ptr [R13]
TEST RCX,RCX
JZ 0x0010c3db
LEA RDX,[0x125050]
MOV EAX,0x2
CMP dword ptr [RDX],0x1e
JNZ 0x0010c498
MOV EBP,EDI
TEST EDI,EDI
JLE 0x0010c3e5
MOV RBX,RSI
CMP byte ptr [0x001250ec],0x1
JNZ 0x0010c3ef
LEA RSI,[0x11ad04]
MOV RDI,RCX
XOR EAX,EAX
CALL 0x00118c35
MOV R12D,EBP
LEA R14,[0x11ab56]
XOR R15D,R15D
XOR EBP,EBP
LAB_0010c382:
LEA RAX,[0x1250e0]
CMP EBP,dword ptr [RAX]
JGE 0x0010c391
INC EBP
JMP 0x0010c3a8
LAB_0010c391:
MOV RDI,qword ptr [R13]
LEA RSI,[0x11ad16]
XOR EAX,EAX
CALL 0x00118c35
MOV EBP,0x1
LAB_0010c3a8:
MOV RDI,qword ptr [R13]
MOVSD XMM0,qword ptr [RBX + R15*0x8]
MOV RSI,R14
MOV AL,0x1
CALL 0x00118c35
INC R15
CMP R12D,R15D
JNZ 0x0010c382
MOV RDI,qword ptr [R13]
LEA RSI,[0x11a210]
XOR EAX,EAX
CALL 0x00118c35
JMP 0x0010c47b
LAB_0010c3db:
MOV EAX,0x1
JMP 0x0010c498
LAB_0010c3e5:
MOV EAX,0x3
JMP 0x0010c498
LAB_0010c3ef:
LEA RDI,[0x11ad04]
MOV ESI,0x1b
MOV EDX,0x1
CALL 0x00101110
MOV EBP,EBP
XOR R12D,R12D
LEA R14,[0x11ab56]
XOR R15D,R15D
LAB_0010c414:
LEA RAX,[0x1250e0]
CMP R15D,dword ptr [RAX]
JGE 0x0010c425
INC R15D
JMP 0x0010c445
LAB_0010c425:
MOV RCX,qword ptr [R13]
MOV ESI,0x9
MOV EDX,0x1
LEA RDI,[0x11ad16]
CALL 0x00101110
MOV R15D,0x1
LAB_0010c445:
MOV RDI,qword ptr [R13]
MOVSD XMM0,qword ptr [RBX + R12*0x8]
MOV RSI,R14
MOV AL,0x1
CALL 0x001010f0
INC R12
CMP EBP,R12D
JNZ 0x0010c414
MOV RCX,qword ptr [R13]
LEA RDI,[0x11a210]
MOV ESI,0x2
MOV EDX,0x1
CALL 0x00101110
LAB_0010c47b:
LEA RAX,[0x1250dc]
MOV EAX,dword ptr [RAX]
LEA RCX,[0x125050]
MOV dword ptr [RCX],EAX
LEA RAX,[0x12504c]
INC dword ptr [RAX]
XOR EAX,EAX
LAB_0010c498:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::lefwLayerDCTableEntries(int, double*) */
int8 LefDefParser::lefwLayerDCTableEntries(int param_1,double *param_2)
{
int8 uVar1;
int iVar2;
long lVar3;
if (lefwFile == (_IO_FILE *)0x0) {
uVar1 = 1;
}
else {
uVar1 = 2;
if (lefwState == 0x1e) {
if (param_1 < 1) {
uVar1 = 3;
}
else {
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile," TABLEENTRIES\n ");
lVar3 = 0;
iVar2 = 0;
do {
if (iVar2 < lefwTableLen) {
iVar2 = iVar2 + 1;
}
else {
encPrint(lefwFile,"\n ");
iVar2 = 1;
}
encPrint(lefwFile,"%.11g ",param_2[lVar3]);
lVar3 = lVar3 + 1;
} while (param_1 != (int)lVar3);
encPrint(lefwFile,";\n");
}
else {
fwrite(" TABLEENTRIES\n ",0x1b,1,lefwFile);
lVar3 = 0;
iVar2 = 0;
do {
if (iVar2 < lefwTableLen) {
iVar2 = iVar2 + 1;
}
else {
fwrite("\n ",9,1,lefwFile);
iVar2 = 1;
}
fprintf(lefwFile,"%.11g ",param_2[lVar3]);
lVar3 = lVar3 + 1;
} while (param_1 != (int)lVar3);
fwrite(";\n",2,1,lefwFile);
}
lefwState = lefwOldState;
lefwLines = lefwLines + 1;
uVar1 = 0;
}
}
}
return uVar1;
}
| |
32,763 | strlength | eloqsql/mysys/mf_format.c | size_t strlength(const char *str)
{
reg1 const char * pos;
reg2 const char * found;
DBUG_ENTER("strlength");
pos= found= str;
while (*pos)
{
if (*pos != ' ')
{
while (*++pos && *pos != ' ') {};
if (!*pos)
{
found=pos; /* String ends here */
break;
}
}
found=pos;
while (*++pos == ' ') {};
}
DBUG_RETURN((size_t) (found - str));
} | O0 | c | strlength:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x75563
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x7553c
jmp 0x754ef
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x19(%rbp)
je 0x7551c
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x75525
jmp 0x75527
jmp 0x754ef
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x7553a
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x75563
jmp 0x7553c
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movsbl 0x1(%rax), %eax
cmpl $0x20, %eax
jne 0x7555e
jmp 0x75544
jmp 0x754d4
jmp 0x75565
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
| strlength:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov [rbp+var_10], rax
loc_754D4:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz loc_75563
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jz short loc_7553C
jmp short $+2
loc_754EF:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
movsx ecx, byte ptr [rax+1]
xor eax, eax
cmp ecx, 0
mov [rbp+var_19], al
jz short loc_7551C
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
setnz al
mov [rbp+var_19], al
loc_7551C:
mov al, [rbp+var_19]
test al, 1
jnz short loc_75525
jmp short loc_75527
loc_75525:
jmp short loc_754EF
loc_75527:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jnz short loc_7553A
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
jmp short loc_75563
loc_7553A:
jmp short $+2
loc_7553C:
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
loc_75544:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
movsx eax, byte ptr [rax+1]
cmp eax, 20h ; ' '
jnz short loc_7555E
jmp short loc_75544
loc_7555E:
jmp loc_754D4
loc_75563:
jmp short $+2
loc_75565:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_8]
sub rax, rcx
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
pop rbp
retn
| long long strlength(_BYTE *a1)
{
_BYTE *v1; // rax
_BYTE *v2; // rax
bool v4; // [rsp+Fh] [rbp-19h]
_BYTE *v5; // [rsp+10h] [rbp-18h]
_BYTE *v6; // [rsp+18h] [rbp-10h]
v5 = a1;
v6 = a1;
while ( *v6 )
{
if ( *v6 != 32 )
{
do
{
v1 = v6++;
v4 = 0;
if ( v1[1] )
v4 = *v6 != 32;
}
while ( v4 );
if ( !*v6 )
{
v5 = v6;
return v5 - a1;
}
}
v5 = v6;
do
v2 = v6++;
while ( v2[1] == 32 );
}
return v5 - a1;
}
| strlength:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV qword ptr [RBP + -0x10],RAX
LAB_001754d4:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x00175563
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
JZ 0x0017553c
JMP 0x001754ef
LAB_001754ef:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOVSX ECX,byte ptr [RAX + 0x1]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x19],AL
JZ 0x0017551c
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
SETNZ AL
MOV byte ptr [RBP + -0x19],AL
LAB_0017551c:
MOV AL,byte ptr [RBP + -0x19]
TEST AL,0x1
JNZ 0x00175525
JMP 0x00175527
LAB_00175525:
JMP 0x001754ef
LAB_00175527:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JNZ 0x0017553a
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00175563
LAB_0017553a:
JMP 0x0017553c
LAB_0017553c:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
LAB_00175544:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x20
JNZ 0x0017555e
JMP 0x00175544
LAB_0017555e:
JMP 0x001754d4
LAB_00175563:
JMP 0x00175565
LAB_00175565:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
POP RBP
RET
|
long strlength(char *param_1)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
char *local_20;
char *local_18;
local_20 = param_1;
local_18 = param_1;
while (*local_18 != '\0') {
if (*local_18 != ' ') {
do {
local_20 = local_18 + 1;
bVar3 = false;
if (local_18[1] != '\0') {
bVar3 = *local_20 != ' ';
}
local_18 = local_20;
} while (bVar3);
if (*local_20 == '\0') break;
}
local_20 = local_18;
do {
pcVar2 = local_18 + 1;
pcVar1 = local_18 + 1;
local_18 = pcVar2;
} while (*pcVar1 == ' ');
}
return (long)local_20 - (long)param_1;
}
| |
32,764 | stbi_info_from_memory | llama.cpp/examples/llava/../../common/stb_image.h | STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__info_main(&s,x,y,comp);
} | O3 | c | stbi_info_from_memory:
subq $0xe8, %rsp
leaq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
xorl %r9d, %r9d
movl %r9d, 0x30(%rax)
movl %r9d, 0xb8(%rax)
movq %rdi, 0xd0(%rax)
movq %rdi, 0xc0(%rax)
movslq %esi, %rsi
addq %rdi, %rsi
movq %rsi, 0xd8(%rax)
movq %rsi, 0xc8(%rax)
movq %rax, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x22e65
addq $0xe8, %rsp
retq
| stbi_info_from_memory:
sub rsp, 0E8h
lea rax, [rsp+0E8h+var_E0]
mov qword ptr [rax+10h], 0
xor r9d, r9d
mov [rax+30h], r9d
mov [rax+0B8h], r9d
mov [rax+0D0h], rdi
mov [rax+0C0h], rdi
movsxd rsi, esi
add rsi, rdi
mov [rax+0D8h], rsi
mov [rax+0C8h], rsi
mov rdi, rax
mov rsi, rdx
mov rdx, rcx
mov rcx, r8
call _ZL15stbi__info_mainP13stbi__contextPiS1_S1_; stbi__info_main(stbi__context *,int *,int *,int *)
add rsp, 0E8h
retn
| long long stbi_info_from_memory(long long a1, int a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
_BYTE v6[16]; // [rsp+8h] [rbp-E0h] BYREF
long long v7; // [rsp+18h] [rbp-D0h]
int v8; // [rsp+38h] [rbp-B0h]
int v9; // [rsp+C0h] [rbp-28h]
long long v10; // [rsp+C8h] [rbp-20h]
long long v11; // [rsp+D0h] [rbp-18h]
long long v12; // [rsp+D8h] [rbp-10h]
long long v13; // [rsp+E0h] [rbp-8h]
v7 = 0LL;
v8 = 0;
v9 = 0;
v12 = a1;
v10 = a1;
v13 = a1 + a2;
v11 = v13;
return stbi__info_main((long long)v6, a3, a4, a5);
}
| stbi_info_from_memory:
SUB RSP,0xe8
LEA RAX,[RSP + 0x8]
MOV qword ptr [RAX + 0x10],0x0
XOR R9D,R9D
MOV dword ptr [RAX + 0x30],R9D
MOV dword ptr [RAX + 0xb8],R9D
MOV qword ptr [RAX + 0xd0],RDI
MOV qword ptr [RAX + 0xc0],RDI
MOVSXD RSI,ESI
ADD RSI,RDI
MOV qword ptr [RAX + 0xd8],RSI
MOV qword ptr [RAX + 0xc8],RSI
MOV RDI,RAX
MOV RSI,RDX
MOV RDX,RCX
MOV RCX,R8
CALL 0x00122e65
ADD RSP,0xe8
RET
|
void stbi_info_from_memory(long param_1,int param_2,int *param_3,int *param_4,int *param_5)
{
stbi__context local_e0 [16];
int8 local_d0;
int4 local_b0;
int4 local_28;
long local_20;
long local_18;
long local_10;
long local_8;
local_d0 = 0;
local_b0 = 0;
local_28 = 0;
local_18 = param_2 + param_1;
local_20 = param_1;
local_10 = param_1;
local_8 = local_18;
stbi__info_main(local_e0,param_3,param_4,param_5);
return;
}
| |
32,765 | build_repetition(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/json-schema-to-grammar.cpp | static std::string build_repetition(const std::string & item_rule, int min_items, int max_items, const std::string & separator_rule = "") {
auto has_max = max_items != std::numeric_limits<int>::max();
if (min_items == 0 && max_items == 1) {
return item_rule + "?";
}
if (separator_rule.empty()) {
if (min_items == 1 && !has_max) {
return item_rule + "+";
} else if (min_items == 0 && !has_max) {
return item_rule + "*";
} else {
return item_rule + "{" + std::to_string(min_items) + "," + (has_max ? std::to_string(max_items) : "") + "}";
}
}
auto result = item_rule + " " + build_repetition("(" + separator_rule + " " + item_rule + ")", min_items == 0 ? 0 : min_items - 1, has_max ? max_items - 1 : max_items);
if (min_items == 0) {
result = "(" + result + ")?";
}
return result;
} | O2 | cpp | build_repetition(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %eax
xorl $0x1, %eax
orl %edx, %eax
jne 0x81204
leaq 0x1704f(%rip), %rdx # 0x98243
movq %rbx, %rdi
movq %r15, %rsi
callq 0x623ed
jmp 0x814ad
movq %r8, %r12
movl %ecx, %ebp
movl %edx, %r14d
cmpq $0x0, 0x8(%r8)
je 0x81389
leaq 0xdc11(%rip), %rdx # 0x8ee2f
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x623ed
leaq 0x17202(%rip), %rsi # 0x98434
leaq 0x50(%rsp), %rdi
movq %r12, %rdx
callq 0x28de9
leaq 0xdbe9(%rip), %rdx # 0x8ee2f
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x28a6a
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq %r15, %rdx
callq 0x5bdab
leaq 0x16ea2(%rip), %rdx # 0x98113
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x28a6a
leaq 0xc18b(%rip), %rsi # 0x8d418
leaq 0xd0(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2303e
xorl %eax, %eax
cmpl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
setne %al
subl %eax, %ebp
xorl %eax, %eax
movl %r14d, %edx
subl $0x1, %edx
cmovbl %eax, %edx
leaq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0xd0(%rsp), %r8
movl %ebp, %ecx
callq 0x811cf
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x28b59
leaq 0x10(%rsp), %rdi
callq 0x20d88
leaq 0xd0(%rsp), %rdi
callq 0x20d88
leaq 0xb0(%rsp), %rdi
callq 0x20d88
leaq 0x90(%rsp), %rdi
callq 0x20d88
leaq 0x70(%rsp), %rdi
callq 0x20d88
leaq 0x50(%rsp), %rdi
callq 0x20d88
leaq 0x30(%rsp), %rdi
callq 0x20d88
testl %r14d, %r14d
jne 0x814ad
leaq 0x170f0(%rip), %rsi # 0x98434
leaq 0x10(%rsp), %rdi
movq %rbx, %rdx
callq 0x28de9
leaq 0x1707e(%rip), %rdx # 0x983d6
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x28a6a
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20820
movq %r14, %rdi
callq 0x20d88
leaq 0x10(%rsp), %rdi
jmp 0x814a8
movl %ebp, %eax
xorl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movl %r14d, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
je 0x8140c
orl %r14d, %eax
je 0x81418
leaq 0xec0f(%rip), %rdx # 0x8ffb5
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x623ed
leaq 0x70(%rsp), %rdi
movl %r14d, %esi
callq 0x28bc0
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x28b59
leaq 0xc0e1(%rip), %rdx # 0x8d4c5
leaq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x28a6a
cmpl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
je 0x81424
leaq 0x50(%rsp), %rdi
movl %ebp, %esi
callq 0x28bc0
jmp 0x8143d
leaq 0x10acf(%rip), %rdx # 0x91ee2
jmp 0x811f4
leaq 0x15cba(%rip), %rdx # 0x970d9
jmp 0x811f4
leaq 0xbfed(%rip), %rsi # 0x8d418
leaq 0x50(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
callq 0x2303e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x28b59
leaq 0x16a17(%rip), %rdx # 0x97e6f
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x28a6a
leaq 0x30(%rsp), %rdi
callq 0x20d88
leaq 0x50(%rsp), %rdi
callq 0x20d88
cmpl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
leaq 0x10(%rsp), %rdi
callq 0x20d88
leaq 0xb0(%rsp), %rdi
callq 0x20d88
leaq 0x70(%rsp), %rdi
callq 0x20d88
leaq 0x90(%rsp), %rdi
callq 0x20d88
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x814c2
movq %rax, %r14
jmp 0x814e9
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x20d88
jmp 0x814d9
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x20d88
cmpl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
leaq 0x10(%rsp), %rdi
callq 0x20d88
jmp 0x814f8
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x20d88
jmp 0x8150a
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x20d88
leaq 0x90(%rsp), %rdi
jmp 0x8159b
movq %rax, %r14
jmp 0x81514
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x20d88
jmp 0x81535
movq %rax, %r14
movq %rbx, %rdi
jmp 0x8159b
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x20d88
jmp 0x8154c
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
callq 0x20d88
jmp 0x8155e
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x20d88
jmp 0x81570
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x20d88
jmp 0x81582
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x20d88
leaq 0x50(%rsp), %rdi
callq 0x20d88
leaq 0x30(%rsp), %rdi
callq 0x20d88
movq %r14, %rdi
callq 0x20b90
movq %rax, %r14
jmp 0x8158c
movq %rax, %r14
jmp 0x81596
| _ZL16build_repetitionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiS6_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0F0h
mov r15, rsi
mov rbx, rdi
mov eax, ecx
xor eax, 1
or eax, edx
jnz short loc_81204
lea rdx, asc_98240+3; "?"
loc_811F4:
mov rdi, rbx
mov rsi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
jmp loc_814AD
loc_81204:
mov r12, r8
mov ebp, ecx
mov r14d, edx
cmp qword ptr [r8+8], 0
jz loc_81389
lea rdx, aForMessageInMe+144h; " "
lea rdi, [rsp+118h+var_E8]
mov rsi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
lea rsi, asc_9842F+5; "("
lea rdi, [rsp+118h+var_C8]
mov rdx, r12
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
lea rdx, aForMessageInMe+144h; " "
lea rdi, [rsp+118h+var_A8]
lea rsi, [rsp+118h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+118h+var_88]
lea rsi, [rsp+118h+var_A8]
mov rdx, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
lea rdx, a09401910201912+51h; ")"
lea rdi, [rsp+118h+var_68]
lea rsi, [rsp+118h+var_88]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rsi, aUsageSOptions+15h; ""
lea rdi, [rsp+118h+var_48]
lea rdx, [rsp+118h+var_109]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
xor eax, eax
cmp ebp, 7FFFFFFFh
setnz al
sub ebp, eax
xor eax, eax
mov edx, r14d
sub edx, 1
cmovb edx, eax
lea rdi, [rsp+118h+var_108]
lea rsi, [rsp+118h+var_68]
lea r8, [rsp+118h+var_48]
mov ecx, ebp
call _ZL16build_repetitionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiS6_; build_repetition(std::string const&,int,int,std::string const&)
lea rsi, [rsp+118h+var_E8]
lea rdx, [rsp+118h+var_108]
mov rdi, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdi, [rsp+118h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r14d, r14d
jnz loc_814AD
lea rsi, asc_9842F+5; "("
lea rdi, [rsp+118h+var_108]
mov rdx, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
lea rdx, asc_983D5+1; ")?"
lea rdi, [rsp+118h+var_E8]
lea rsi, [rsp+118h+var_108]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea r14, [rsp+118h+var_E8]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_108]
jmp loc_814A8
loc_81389:
mov eax, ebp
xor eax, 7FFFFFFFh
mov ecx, r14d
xor ecx, 1
or ecx, eax
jz short loc_8140C
or eax, r14d
jz short loc_81418
lea rdx, asc_8FFB5; "{"
lea rdi, [rsp+118h+var_88]
mov rsi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
lea rdi, [rsp+118h+var_A8]; this
mov esi, r14d; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
lea rdi, [rsp+118h+var_68]
lea rsi, [rsp+118h+var_88]
lea rdx, [rsp+118h+var_A8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdx, aTheTokenizePro+3Bh; ","
lea rdi, [rsp+118h+var_108]
lea rsi, [rsp+118h+var_68]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
cmp ebp, 7FFFFFFFh
jz short loc_81424
lea rdi, [rsp+118h+var_C8]; this
mov esi, ebp; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short loc_8143D
loc_8140C:
lea rdx, aSRN_0+0Bh; "+"
jmp loc_811F4
loc_81418:
lea rdx, asc_970D8+1; "*"
jmp loc_811F4
loc_81424:
lea rsi, aUsageSOptions+15h; ""
lea rdi, [rsp+118h+var_C8]
lea rdx, [rsp+118h+var_48]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
loc_8143D:
lea rdi, [rsp+118h+var_E8]
lea rsi, [rsp+118h+var_108]
lea rdx, [rsp+118h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdx, aNT020+17h; "}"
lea rsi, [rsp+118h+var_E8]
mov rdi, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+118h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp ebp, 7FFFFFFFh
lea rdi, [rsp+118h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_88]; void *
loc_814A8:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_814AD:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_814C2:
mov r14, rax
jmp short loc_814E9
mov r14, rax
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_814D9
mov r14, rax
loc_814D9:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
cmp ebp, 7FFFFFFFh
loc_814E9:
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_814F8
mov r14, rax
loc_814F8:
lea rdi, [rsp+arg_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_8150A
mov r14, rax
loc_8150A:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_81514:
lea rdi, [rsp+arg_88]
jmp short loc_8159B
mov r14, rax
jmp short loc_81514
mov r14, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_81535
mov r14, rax
loc_81535:
mov rdi, rbx
jmp short loc_8159B
mov r14, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_8154C
mov r14, rax
loc_8154C:
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_8155E
mov r14, rax
loc_8155E:
lea rdi, [rsp+arg_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_81570
mov r14, rax
loc_81570:
lea rdi, [rsp+arg_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_81582
mov r14, rax
loc_81582:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_8158C:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_81596:
lea rdi, [rsp+arg_28]; void *
loc_8159B:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
mov r14, rax
jmp short loc_8158C
mov r14, rax
jmp short loc_81596
| long long build_repetition(long long a1, long long a2, int a3, int a4, long long a5)
{
char *v6; // rdx
int v10; // r9d
int v11; // ebp
int v12; // edx
_QWORD *v13; // rdi
_QWORD v15[4]; // [rsp+10h] [rbp-108h] BYREF
_QWORD v16[4]; // [rsp+30h] [rbp-E8h] BYREF
_QWORD v17[4]; // [rsp+50h] [rbp-C8h] BYREF
_QWORD v18[4]; // [rsp+70h] [rbp-A8h] BYREF
_QWORD v19[4]; // [rsp+90h] [rbp-88h] BYREF
_BYTE v20[32]; // [rsp+B0h] [rbp-68h] BYREF
_QWORD v21[9]; // [rsp+D0h] [rbp-48h] BYREF
if ( !(a3 | a4 ^ 1) )
{
v6 = "?";
LABEL_3:
std::operator+<char>(a1, a2, (long long)v6);
return a1;
}
if ( !*(_QWORD *)(a5 + 8) )
{
if ( !(a4 ^ 0x7FFFFFFF | a3 ^ 1) )
{
v6 = "+";
goto LABEL_3;
}
if ( !(a3 | a4 ^ 0x7FFFFFFF) )
{
v6 = "*";
goto LABEL_3;
}
std::operator+<char>((long long)v19, a2, (long long)"{");
std::to_string((std::__cxx11 *)v18, a3);
std::operator+<char>((long long)v20, v19, v18);
std::operator+<char>((long long)v15, (long long)v20, (long long)",");
if ( a4 == 0x7FFFFFFF )
std::string::basic_string<std::allocator<char>>(v17, (long long)"");
else
std::to_string((std::__cxx11 *)v17, a4);
std::operator+<char>((long long)v16, v15, v17);
std::operator+<char>(a1, (long long)v16, (long long)"}");
std::string::~string(v16);
std::string::~string(v17);
std::string::~string(v15);
std::string::~string(v20);
std::string::~string(v18);
v13 = v19;
LABEL_17:
std::string::~string(v13);
return a1;
}
std::operator+<char>((long long)v16, a2, (long long)" ");
std::operator+<char>((long long)v17, (long long)"(", a5);
std::operator+<char>((long long)v18, (long long)v17, (long long)" ");
std::operator+<char>((long long)v19, (long long)v18, a2);
std::operator+<char>((long long)v20, (long long)v19, (long long)")");
std::string::basic_string<std::allocator<char>>(v21, (long long)"");
v11 = a4 - (a4 != 0x7FFFFFFF);
v12 = a3 - 1;
if ( !a3 )
v12 = 0;
build_repetition((unsigned int)v15, (unsigned int)v20, v12, v11, (unsigned int)v21, v10);
std::operator+<char>(a1, v16, v15);
std::string::~string(v15);
std::string::~string(v21);
std::string::~string(v20);
std::string::~string(v19);
std::string::~string(v18);
std::string::~string(v17);
std::string::~string(v16);
if ( !a3 )
{
std::operator+<char>((long long)v15, (long long)"(", a1);
std::operator+<char>((long long)v16, (long long)v15, (long long)")?");
std::string::operator=(a1, v16);
std::string::~string(v16);
v13 = v15;
goto LABEL_17;
}
return a1;
}
| build_repetition:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV R15,RSI
MOV RBX,RDI
MOV EAX,ECX
XOR EAX,0x1
OR EAX,EDX
JNZ 0x00181204
LEA RDX,[0x198243]
LAB_001811f4:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001623ed
JMP 0x001814ad
LAB_00181204:
MOV R12,R8
MOV EBP,ECX
MOV R14D,EDX
CMP qword ptr [R8 + 0x8],0x0
JZ 0x00181389
LEA RDX,[0x18ee2f]
LEA RDI,[RSP + 0x30]
MOV RSI,R15
CALL 0x001623ed
LAB_0018122b:
LEA RSI,[0x198434]
LEA RDI,[RSP + 0x50]
MOV RDX,R12
CALL 0x00128de9
LAB_0018123f:
LEA RDX,[0x18ee2f]
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
CALL 0x00128a6a
LAB_00181255:
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x70]
MOV RDX,R15
CALL 0x0015bdab
LAB_0018126a:
LEA RDX,[0x198113]
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x90]
CALL 0x00128a6a
LAB_00181286:
LEA RSI,[0x18d418]
LEA RDI,[RSP + 0xd0]
LEA RDX,[RSP + 0xf]
CALL 0x0012303e
XOR EAX,EAX
CMP EBP,0x7fffffff
SETNZ AL
SUB EBP,EAX
XOR EAX,EAX
MOV EDX,R14D
SUB EDX,0x1
CMOVC EDX,EAX
LAB_001812b7:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0xb0]
LEA R8,[RSP + 0xd0]
MOV ECX,EBP
CALL 0x001811cf
LAB_001812d3:
LEA RSI,[RSP + 0x30]
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00128b59
LEA RDI,[RSP + 0x10]
CALL 0x00120d88
LEA RDI,[RSP + 0xd0]
CALL 0x00120d88
LEA RDI,[RSP + 0xb0]
CALL 0x00120d88
LEA RDI,[RSP + 0x90]
CALL 0x00120d88
LEA RDI,[RSP + 0x70]
CALL 0x00120d88
LEA RDI,[RSP + 0x50]
CALL 0x00120d88
LEA RDI,[RSP + 0x30]
CALL 0x00120d88
TEST R14D,R14D
JNZ 0x001814ad
LAB_0018133d:
LEA RSI,[0x198434]
LEA RDI,[RSP + 0x10]
MOV RDX,RBX
CALL 0x00128de9
LAB_00181351:
LEA RDX,[0x1983d6]
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x10]
CALL 0x00128a6a
LAB_00181367:
LEA R14,[RSP + 0x30]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00120820
MOV RDI,R14
CALL 0x00120d88
LEA RDI,[RSP + 0x10]
JMP 0x001814a8
LAB_00181389:
MOV EAX,EBP
XOR EAX,0x7fffffff
MOV ECX,R14D
XOR ECX,0x1
OR ECX,EAX
JZ 0x0018140c
OR EAX,R14D
JZ 0x00181418
LEA RDX,[0x18ffb5]
LEA RDI,[RSP + 0x90]
MOV RSI,R15
CALL 0x001623ed
LAB_001813b6:
LEA RDI,[RSP + 0x70]
MOV ESI,R14D
CALL 0x00128bc0
LAB_001813c3:
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x90]
LEA RDX,[RSP + 0x70]
CALL 0x00128b59
LAB_001813dd:
LEA RDX,[0x18d4c5]
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0xb0]
CALL 0x00128a6a
CMP EBP,0x7fffffff
JZ 0x00181424
LAB_001813fe:
LEA RDI,[RSP + 0x50]
MOV ESI,EBP
CALL 0x00128bc0
JMP 0x0018143d
LAB_0018140c:
LEA RDX,[0x191ee2]
JMP 0x001811f4
LAB_00181418:
LEA RDX,[0x1970d9]
JMP 0x001811f4
LAB_00181424:
LEA RSI,[0x18d418]
LEA RDI,[RSP + 0x50]
LEA RDX,[RSP + 0xd0]
CALL 0x0012303e
LAB_0018143d:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x10]
LEA RDX,[RSP + 0x50]
CALL 0x00128b59
LAB_00181451:
LEA RDX,[0x197e6f]
LEA RSI,[RSP + 0x30]
MOV RDI,RBX
CALL 0x00128a6a
LAB_00181465:
LEA RDI,[RSP + 0x30]
CALL 0x00120d88
LEA RDI,[RSP + 0x50]
CALL 0x00120d88
CMP EBP,0x7fffffff
LEA RDI,[RSP + 0x10]
CALL 0x00120d88
LEA RDI,[RSP + 0xb0]
CALL 0x00120d88
LEA RDI,[RSP + 0x70]
CALL 0x00120d88
LEA RDI,[RSP + 0x90]
LAB_001814a8:
CALL 0x00120d88
LAB_001814ad:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* build_repetition(std::__cxx11::string const&, int, int, std::__cxx11::string const&) */
string * build_repetition(string *param_1,int param_2,int param_3,string *param_4)
{
uint uVar1;
int iVar2;
int4 in_register_00000034;
char *pcVar3;
string *this;
long in_R8;
allocator local_109;
string local_108 [32];
string local_e8 [32];
string local_c8 [32];
string local_a8 [32];
string local_88 [32];
string local_68 [32];
string local_48 [32];
pcVar3 = (char *)CONCAT44(in_register_00000034,param_2);
uVar1 = (uint)param_4;
if (uVar1 == 1 && param_3 == 0) {
LAB_001811f4:
std::operator+(param_1,pcVar3);
}
else {
if (*(long *)(in_R8 + 8) == 0) {
if ((param_3 == 1 && (uVar1 ^ 0x7fffffff) == 0) || ((uVar1 ^ 0x7fffffff) == 0 && param_3 == 0)
) goto LAB_001811f4;
std::operator+(local_88,pcVar3);
/* try { // try from 001813b6 to 001813c2 has its CatchHandler @ 0018151e */
std::__cxx11::to_string((__cxx11 *)local_a8,param_3);
/* try { // try from 001813c3 to 001813dc has its CatchHandler @ 00181507 */
std::operator+(local_68,local_88);
/* try { // try from 001813dd to 001813f5 has its CatchHandler @ 001814f5 */
std::operator+(local_108,(char *)local_68);
if (uVar1 == 0x7fffffff) {
/* try { // try from 00181424 to 0018143c has its CatchHandler @ 001814c0 */
std::__cxx11::string::string<std::allocator<char>>(local_c8,"",(allocator *)local_48);
}
else {
/* try { // try from 001813fe to 00181409 has its CatchHandler @ 001814c2 */
std::__cxx11::to_string((__cxx11 *)local_c8,uVar1);
}
/* try { // try from 0018143d to 00181450 has its CatchHandler @ 001814d6 */
std::operator+(local_e8,local_108);
/* try { // try from 00181451 to 00181464 has its CatchHandler @ 001814c7 */
std::operator+(param_1,(char *)local_e8);
std::__cxx11::string::~string(local_e8);
std::__cxx11::string::~string(local_c8);
std::__cxx11::string::~string(local_108);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::~string(local_a8);
this = local_88;
}
else {
std::operator+(local_e8,pcVar3);
/* try { // try from 0018122b to 0018123e has its CatchHandler @ 001815ad */
std::operator+((char *)local_c8,(string *)&DAT_00198434);
/* try { // try from 0018123f to 00181254 has its CatchHandler @ 001815a8 */
std::operator+(local_a8,(char *)local_c8);
/* try { // try from 00181255 to 00181269 has its CatchHandler @ 0018157f */
std::operator+(local_88,local_a8);
/* try { // try from 0018126a to 00181285 has its CatchHandler @ 0018156d */
std::operator+(local_68,(char *)local_88);
/* try { // try from 00181286 to 0018129e has its CatchHandler @ 0018155b */
std::__cxx11::string::string<std::allocator<char>>(local_48,"",&local_109);
iVar2 = param_3 + -1;
if (param_3 == 0) {
iVar2 = 0;
}
/* try { // try from 001812b7 to 001812d2 has its CatchHandler @ 00181549 */
build_repetition(local_108,(int)local_68,iVar2,
(string *)(ulong)(uVar1 - (uVar1 != 0x7fffffff)));
/* try { // try from 001812d3 to 001812e4 has its CatchHandler @ 0018153a */
std::operator+(param_1,local_e8);
std::__cxx11::string::~string(local_108);
std::__cxx11::string::~string(local_48);
std::__cxx11::string::~string(local_68);
std::__cxx11::string::~string(local_88);
std::__cxx11::string::~string(local_a8);
std::__cxx11::string::~string(local_c8);
std::__cxx11::string::~string(local_e8);
if (param_3 != 0) {
return param_1;
}
/* try { // try from 0018133d to 00181350 has its CatchHandler @ 00181532 */
std::operator+((char *)local_108,(string *)&DAT_00198434);
/* try { // try from 00181351 to 00181366 has its CatchHandler @ 00181523 */
std::operator+(local_e8,(char *)local_108);
std::__cxx11::string::operator=(param_1,local_e8);
std::__cxx11::string::~string(local_e8);
this = local_108;
}
std::__cxx11::string::~string(this);
}
return param_1;
}
| |
32,766 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array() | monkey531[P]llama/common/json.hpp | bool end_array()
{
bool keep = true;
if (ref_stack.back())
{
keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
if (keep)
{
ref_stack.back()->set_parents();
}
else
{
// discard array
*ref_stack.back() = discarded;
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
// remove discarded value
if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->pop_back();
}
return true;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array():
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movb $0x1, 0x2f(%rsp)
addq $0x8, %rdi
callq 0xb7570
cmpq $0x0, (%rax)
je 0xb6832
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, (%rsp)
addq $0x8, %rdi
callq 0xb6f80
movq 0x10(%rsp), %rdi
subl $0x1, %eax
movl %eax, 0xc(%rsp)
addq $0x8, %rdi
callq 0xb7570
movq (%rsp), %rdi
movl 0xc(%rsp), %esi
movq (%rax), %rcx
movl $0x3, %edx
callq 0xb6f20
andb $0x1, %al
movb %al, 0x2f(%rsp)
testb $0x1, 0x2f(%rsp)
je 0xb67f5
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb7570
movq (%rax), %rdi
callq 0xb7cc0
jmp 0xb6830
movq 0x10(%rsp), %rsi
addq $0xa8, %rsi
leaq 0x18(%rsp), %rdi
callq 0xb9120
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb7570
movq (%rax), %rdi
leaq 0x18(%rsp), %rsi
callq 0xb19a0
leaq 0x18(%rsp), %rdi
callq 0xa8760
jmp 0xb6832
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb79c0
testb $0x1, %al
jne 0xb6846
jmp 0xb6867
leaq 0x15d8ff(%rip), %rdi # 0x21414c
movl $0x1bf5, %esi # imm = 0x1BF5
leaq 0x156ce0(%rip), %rdx # 0x20d539
leaq 0x15e8f2(%rip), %rcx # 0x215152
movb $0x0, %al
callq 0x5b030
movq 0x10(%rsp), %rdi
addq $0x20, %rdi
callq 0xb6e00
testb $0x1, %al
jne 0xb687b
jmp 0xb689c
leaq 0x15d8ca(%rip), %rdi # 0x21414c
movl $0x1bf6, %esi # imm = 0x1BF6
leaq 0x156cab(%rip), %rdx # 0x20d539
leaq 0x15e837(%rip), %rcx # 0x2150cc
movb $0x0, %al
callq 0x5b030
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9310
movq 0x10(%rsp), %rdi
addq $0x20, %rdi
callq 0xb6f00
testb $0x1, 0x2f(%rsp)
jne 0xb6907
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb79c0
testb $0x1, %al
jne 0xb6907
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb7570
movq (%rax), %rdi
callq 0xb7ac0
testb $0x1, %al
jne 0xb68ed
jmp 0xb6907
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0xb7570
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xbd400
movb $0x1, %al
andb $0x1, %al
addq $0x38, %rsp
retq
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9end_arrayEv:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov rdi, [rsp+38h+var_8]
mov [rsp+38h+var_28], rdi
mov [rsp+38h+var_9], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jz loc_B6832
mov rdi, [rsp+38h+var_28]
mov rax, rdi
add rax, 80h
mov [rsp+38h+var_38], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+38h+var_28]
sub eax, 1
mov [rsp+38h+var_2C], eax
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rsp+38h+var_38]
mov esi, [rsp+38h+var_2C]
mov rcx, [rax]
mov edx, 3
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; 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> &)>::operator()(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> &)
and al, 1
mov [rsp+38h+var_9], al
test [rsp+38h+var_9], 1
jz short loc_B67F5
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; 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_parents(void)
jmp short loc_B6830
loc_B67F5:
mov rsi, [rsp+38h+var_28]
add rsi, 0A8h
lea rdi, [rsp+38h+var_20]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
lea rsi, [rsp+38h+var_20]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rsp+38h+var_20]
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_B6830:
jmp short $+2
loc_B6832:
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_B6846
jmp short loc_B6867
loc_B6846:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1BF5h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov al, 0
call _ggml_abort
loc_B6867:
mov rdi, [rsp+38h+var_28]
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_B687B
jmp short loc_B689C
loc_B687B:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1BF6h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_B689C:
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::pop_back(void)
mov rdi, [rsp+38h+var_28]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
test [rsp+38h+var_9], 1
jnz short loc_B6907
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_B6907
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; 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>::is_array(void)
test al, 1
jnz short loc_B68ED
jmp short loc_B6907
loc_B68ED:
mov rdi, [rsp+38h+var_28]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; 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>>::pop_back(void)
loc_B6907:
mov al, 1
and al, 1
add rsp, 38h
retn
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_array(
long long a1)
{
_QWORD *v1; // rax
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
_QWORD *v6; // rax
long long *v7; // rax
_QWORD *v8; // rax
long long v9; // rax
int v11; // [rsp+8h] [rbp-30h]
unsigned int v12; // [rsp+Ch] [rbp-2Ch]
long long v13; // [rsp+10h] [rbp-28h]
_DWORD v14[5]; // [rsp+18h] [rbp-20h] BYREF
char v15; // [rsp+2Fh] [rbp-9h]
long long v16; // [rsp+30h] [rbp-8h]
v16 = a1;
v13 = a1;
v15 = 1;
if ( *(_QWORD *)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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size(a1 + 8)
- 1;
v1 = (_QWORD *)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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v15 = 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
v12,
3LL,
*v1) & 1;
if ( v15 )
{
v6 = (_QWORD *)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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
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_parents(*v6);
}
else
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(unsigned int)v14,
a1 + 168,
v2,
v3,
v4,
v5,
a1 + 128,
v11,
a1,
v14[0],
v14[2]);
v7 = (long long *)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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(v13 + 8);
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=(
*v7,
(long long)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>::~basic_json((long long)v14);
}
}
if ( (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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(v13 + 8) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7157LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
if ( (std::vector<bool>::empty(v13 + 32) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7158LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::pop_back(v13 + 8);
std::vector<bool>::pop_back(v13 + 32);
if ( (v15 & 1) == 0
&& (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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(v13 + 8) & 1) == 0 )
{
v8 = (_QWORD *)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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(v13 + 8);
if ( (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>::is_array(*v8) & 1) != 0 )
{
v9 = 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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(v13 + 8);
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>>::pop_back(*(_QWORD *)(*(_QWORD *)v9 + 8LL));
}
}
return 1;
}
| end_array:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
MOV byte ptr [RSP + 0x2f],0x1
ADD RDI,0x8
CALL 0x001b7570
CMP qword ptr [RAX],0x0
JZ 0x001b6832
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,RDI
ADD RAX,0x80
MOV qword ptr [RSP],RAX
ADD RDI,0x8
CALL 0x001b6f80
MOV RDI,qword ptr [RSP + 0x10]
SUB EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
ADD RDI,0x8
CALL 0x001b7570
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RAX]
MOV EDX,0x3
CALL 0x001b6f20
AND AL,0x1
MOV byte ptr [RSP + 0x2f],AL
TEST byte ptr [RSP + 0x2f],0x1
JZ 0x001b67f5
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b7570
MOV RDI,qword ptr [RAX]
CALL 0x001b7cc0
JMP 0x001b6830
LAB_001b67f5:
MOV RSI,qword ptr [RSP + 0x10]
ADD RSI,0xa8
LEA RDI,[RSP + 0x18]
CALL 0x001b9120
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b7570
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0x18]
CALL 0x001b19a0
LEA RDI,[RSP + 0x18]
CALL 0x001a8760
LAB_001b6830:
JMP 0x001b6832
LAB_001b6832:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b79c0
TEST AL,0x1
JNZ 0x001b6846
JMP 0x001b6867
LAB_001b6846:
LEA RDI,[0x31414c]
MOV ESI,0x1bf5
LEA RDX,[0x30d539]
LEA RCX,[0x315152]
MOV AL,0x0
CALL 0x0015b030
LAB_001b6867:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x20
CALL 0x001b6e00
TEST AL,0x1
JNZ 0x001b687b
JMP 0x001b689c
LAB_001b687b:
LEA RDI,[0x31414c]
MOV ESI,0x1bf6
LEA RDX,[0x30d539]
LEA RCX,[0x3150cc]
MOV AL,0x0
CALL 0x0015b030
LAB_001b689c:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b9310
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x20
CALL 0x001b6f00
TEST byte ptr [RSP + 0x2f],0x1
JNZ 0x001b6907
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b79c0
TEST AL,0x1
JNZ 0x001b6907
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b7570
MOV RDI,qword ptr [RAX]
CALL 0x001b7ac0
TEST AL,0x1
JNZ 0x001b68ed
JMP 0x001b6907
LAB_001b68ed:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x001b7570
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001bd400
LAB_001b6907:
MOV AL,0x1
AND AL,0x1
ADD RSP,0x38
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_array() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int iVar1;
long *plVar2;
int8 *puVar3;
ulong uVar4;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_20 [23];
byte local_9;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
local_9 = 1;
local_8 = this;
plVar2 = (long *)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>*>>
::back((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 + 8));
if (*plVar2 != 0) {
iVar1 = 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>*>>
::size((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 + 8));
puVar3 = (int8 *)
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>*>>
::back((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 + 8));
local_9 = 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::__cxx11::string,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()((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::__cxx11::string,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 + 0x80),iVar1 + -1,3,*puVar3);
local_9 = local_9 & 1;
if (local_9 == 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>
::basic_json(local_20,this + 0xa8);
puVar3 = (int8 *)
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>*>>
::back((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 + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3,local_20);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_20);
}
else {
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>*>>
::back((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 + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_parents();
}
}
uVar4 = 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>*>>
::empty((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 + 8));
if ((uVar4 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bf5,
"GGML_ASSERT(%s) failed","!ref_stack.empty()");
}
uVar4 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar4 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bf6,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
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>*>>
::pop_back((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 + 8));
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if (((local_9 & 1) == 0) &&
(uVar4 = 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>*>>
::empty((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 + 8)), (uVar4 & 1) == 0)) {
puVar3 = (int8 *)
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>*>>
::back((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 + 8));
uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar3);
if ((uVar4 & 1) != 0) {
plVar2 = (long *)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>*>>
::back((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 + 8));
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>>>
::pop_back(*(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>>>
**)(*plVar2 + 8));
}
}
return 1;
}
| |
32,767 | JS_NewAtomString | bluesky950520[P]quickjs/quickjs.c | JSValue JS_NewAtomString(JSContext *ctx, const char *str)
{
JSAtom atom = JS_NewAtom(ctx, str);
if (atom == JS_ATOM_NULL)
return JS_EXCEPTION;
JSValue val = JS_AtomToString(ctx, atom);
JS_FreeAtom(ctx, atom);
return val;
} | O2 | c | JS_NewAtomString:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1a471
testl %eax, %eax
je 0x1ada3
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
callq 0x1a990
movq %rax, %r15
movq %rdx, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a995
jmp 0x1adaa
pushq $0x6
popq %r14
xorl %r15d, %r15d
movq %r15, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| JS_NewAtomString:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call JS_NewAtom
test eax, eax
jz short loc_1ADA3
mov ebp, eax
mov rdi, rbx
mov esi, eax
call JS_AtomToString
mov r15, rax
mov r14, rdx
mov rdi, rbx
mov esi, ebp
call JS_FreeAtom
jmp short loc_1ADAA
loc_1ADA3:
push 6
pop r14
xor r15d, r15d
loc_1ADAA:
mov rax, r15
mov rdx, r14
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long JS_NewAtomString(long long a1, unsigned __int8 *a2)
{
int v2; // eax
int v3; // ebp
long long v4; // r15
v2 = JS_NewAtom(a1, a2);
if ( !v2 )
return 0LL;
v3 = v2;
v4 = JS_AtomToString(a1, v2);
JS_FreeAtom(a1, v3);
return v4;
}
| JS_NewAtomString:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x0011a471
TEST EAX,EAX
JZ 0x0011ada3
MOV EBP,EAX
MOV RDI,RBX
MOV ESI,EAX
CALL 0x0011a990
MOV R15,RAX
MOV R14,RDX
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0011a995
JMP 0x0011adaa
LAB_0011ada3:
PUSH 0x6
POP R14
XOR R15D,R15D
LAB_0011adaa:
MOV RAX,R15
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int1 [16] JS_NewAtomString(int8 param_1)
{
int iVar1;
int1 auVar2 [16];
iVar1 = JS_NewAtom();
if (iVar1 == 0) {
auVar2 = ZEXT816(6) << 0x40;
}
else {
auVar2 = JS_AtomToString(param_1,iVar1);
JS_FreeAtom(param_1,iVar1);
}
return auVar2;
}
| |
32,768 | my_caseup_utf8mb3 | eloqsql/strings/ctype-utf8.c | static size_t my_caseup_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->caseup_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar *) src, (uchar*) srcend)) > 0)
{
my_toupper_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
} | O0 | c | my_caseup_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0xc740a
jmp 0xc740c
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x59(%rbp)
jae 0xc743c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0xc70a0
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0xc7445
jmp 0xc7498
movq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xc8210
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0xc70d0
movl %eax, -0x38(%rbp)
cmpl $0x0, %eax
jg 0xc7471
jmp 0xc7498
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0xc740c
movq -0x20(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| my_caseup_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_58], rax
jmp short $+2
loc_C740A:
jmp short $+2
loc_C740C:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_59], al
jnb short loc_C743C
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf8mb3_uni
mov [rbp+var_34], eax
cmp eax, 0
setnle al
mov [rbp+var_59], al
loc_C743C:
mov al, [rbp+var_59]
test al, 1
jnz short loc_C7445
jmp short loc_C7498
loc_C7445:
mov rdi, [rbp+var_58]
lea rsi, [rbp+var_30]
call my_toupper_utf8mb3
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_48]
call my_uni_utf8mb3
mov [rbp+var_38], eax
cmp eax, 0
jg short loc_C7471
jmp short loc_C7498
loc_C7471:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_38]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp loc_C740C
loc_C7498:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_50]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * my_caseup_utf8mb3(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6)
{
bool v7; // [rsp+7h] [rbp-59h]
long long v8; // [rsp+8h] [rbp-58h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
unsigned long long v11; // [rsp+20h] [rbp-40h]
int v12; // [rsp+28h] [rbp-38h]
int v13; // [rsp+2Ch] [rbp-34h]
unsigned long long v14[2]; // [rsp+30h] [rbp-30h] BYREF
_BYTE *v15; // [rsp+40h] [rbp-20h]
long long v16; // [rsp+48h] [rbp-18h]
unsigned long long v17; // [rsp+50h] [rbp-10h]
long long v18; // [rsp+58h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14[1] = a5;
v11 = a3 + a2;
v10 = (unsigned long long)&a4[a5];
v8 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v7 = 0;
if ( v17 < v11 )
{
v13 = my_utf8mb3_uni(v18, (long long)v14, v17, v11, a5, a6);
v7 = v13 > 0;
}
if ( !v7 )
break;
my_toupper_utf8mb3(v8, v14);
v12 = my_uni_utf8mb3(v18, v14[0], v15, v10);
if ( v12 <= 0 )
break;
v17 += v13;
v15 += v12;
}
return (_BYTE *)(v15 - a4);
}
| my_caseup_utf8mb3:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001c740a
LAB_001c740a:
JMP 0x001c740c
LAB_001c740c:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x59],AL
JNC 0x001c743c
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x001c70a0
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x59],AL
LAB_001c743c:
MOV AL,byte ptr [RBP + -0x59]
TEST AL,0x1
JNZ 0x001c7445
JMP 0x001c7498
LAB_001c7445:
MOV RDI,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x30]
CALL 0x001c8210
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x001c70d0
MOV dword ptr [RBP + -0x38],EAX
CMP EAX,0x0
JG 0x001c7471
JMP 0x001c7498
LAB_001c7471:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c740c
LAB_001c7498:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_caseup_utf8mb3(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
int8 uVar1;
bool bVar2;
int iVar3;
int local_3c;
int8 local_38;
long local_30;
long local_28;
long local_20;
ulong local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (local_18 < param_2 + param_3) {
local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3);
bVar2 = 0 < local_3c;
}
if (!bVar2) break;
my_toupper_utf8mb3(uVar1,&local_38);
iVar3 = my_uni_utf8mb3(local_10,local_38,local_28,param_4 + param_5);
if (iVar3 < 1) break;
local_18 = local_18 + (long)local_3c;
local_28 = local_28 + iVar3;
}
return local_28 - param_4;
}
| |
32,769 | bitmap_intersect | eloqsql/mysys/my_bitmap.c | void bitmap_intersect(MY_BITMAP *map, const MY_BITMAP *map2)
{
my_bitmap_map *to= map->bitmap, *from= map2->bitmap, *end;
uint len= no_words_in_map(map), len2 = no_words_in_map(map2);
DBUG_ASSERT(map->bitmap);
DBUG_ASSERT(map2->bitmap);
end= to+MY_MIN(len,len2);
while (to < end)
*to++ &= *from++;
if (len2 <= len)
{
to[-1]&= ~map2->last_word_mask; /* Clear last not relevant bits */
end+= len-len2;
while (to < end)
*to++= 0;
}
} | O3 | c | bitmap_intersect:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq (%rdi), %rax
movl 0x1c(%rdi), %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
movl 0x1c(%rsi), %r9d
addl $0x1f, %r9d
shrl $0x5, %r9d
cmpl %r9d, %ecx
movl %r9d, %r8d
cmovbl %ecx, %r8d
leaq (%rax,%r8,4), %r10
testl %r8d, %r8d
je 0x9d28f
movq (%rsi), %r11
movq %rax, %rdx
movq %rax, %rdi
movl (%r11), %ebx
andl %ebx, (%rdi)
addq $0x4, %r11
addq $0x4, %rdi
addq $0x4, %rdx
cmpq %r10, %rdi
jb 0x9d277
jmp 0x9d295
movq %rax, %rdx
movq %rax, %rdi
subl %r9d, %ecx
jb 0x9d2d4
movl 0x18(%rsi), %esi
notl %esi
andl %esi, -0x4(%rdi)
leaq (%r10,%rcx,4), %rsi
cmpq %rsi, %rdi
jae 0x9d2d4
addq %r8, %rcx
leaq (%rax,%rcx,4), %rax
leaq 0x4(%rdx), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
notq %rdx
addq %rcx, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
popq %rbx
popq %rbp
jmp 0x292c0
popq %rbx
popq %rbp
retq
| bitmap_intersect:
push rbp
mov rbp, rsp
push rbx
mov rax, [rdi]
mov ecx, [rdi+1Ch]
add ecx, 1Fh
shr ecx, 5
mov r9d, [rsi+1Ch]
add r9d, 1Fh
shr r9d, 5
cmp ecx, r9d
mov r8d, r9d
cmovb r8d, ecx
lea r10, [rax+r8*4]
test r8d, r8d
jz short loc_9D28F
mov r11, [rsi]
mov rdx, rax
mov rdi, rax
loc_9D277:
mov ebx, [r11]
and [rdi], ebx
add r11, 4
add rdi, 4
add rdx, 4
cmp rdi, r10
jb short loc_9D277
jmp short loc_9D295
loc_9D28F:
mov rdx, rax
mov rdi, rax
loc_9D295:
sub ecx, r9d
jb short loc_9D2D4
mov esi, [rsi+18h]
not esi
and [rdi-4], esi
lea rsi, [r10+rcx*4]
cmp rdi, rsi
jnb short loc_9D2D4
add rcx, r8
lea rax, [rax+rcx*4]
lea rcx, [rdx+4]
cmp rax, rcx
cmova rcx, rax
not rdx
add rdx, rcx
and rdx, 0FFFFFFFFFFFFFFFCh
add rdx, 4
xor esi, esi
pop rbx
pop rbp
jmp _memset
loc_9D2D4:
pop rbx
pop rbp
retn
| long long bitmap_intersect(long long a1, long long a2)
{
long long result; // rax
unsigned int v3; // ecx
unsigned int v4; // r9d
long long v5; // r8
unsigned long long v6; // r10
_DWORD *v7; // r11
long long v8; // rdx
_DWORD *v9; // rdi
bool v10; // cf
unsigned int v11; // ecx
unsigned long long v12; // rax
unsigned long long v13; // rcx
result = *(_QWORD *)a1;
v3 = (unsigned int)(*(_DWORD *)(a1 + 28) + 31) >> 5;
v4 = (unsigned int)(*(_DWORD *)(a2 + 28) + 31) >> 5;
v5 = v4;
if ( v3 < v4 )
v5 = v3;
v6 = result + 4 * v5;
if ( (_DWORD)v5 )
{
v7 = *(_DWORD **)a2;
v8 = *(_QWORD *)a1;
v9 = *(_DWORD **)a1;
do
{
*v9++ &= *v7++;
v8 += 4LL;
}
while ( (unsigned long long)v9 < v6 );
}
else
{
v8 = *(_QWORD *)a1;
v9 = *(_DWORD **)a1;
}
v10 = v3 < v4;
v11 = v3 - v4;
if ( !v10 )
{
*(v9 - 1) &= ~*(_DWORD *)(a2 + 24);
if ( (unsigned long long)v9 < v6 + 4LL * v11 )
{
v12 = result + 4 * (v5 + v11);
v13 = v8 + 4;
if ( v12 > v8 + 4 )
v13 = v12;
return memset(v9, 0LL, ((v13 + ~v8) & 0xFFFFFFFFFFFFFFFCLL) + 4);
}
}
return result;
}
| bitmap_intersect:
PUSH RBP
MOV RBP,RSP
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV ECX,dword ptr [RDI + 0x1c]
ADD ECX,0x1f
SHR ECX,0x5
MOV R9D,dword ptr [RSI + 0x1c]
ADD R9D,0x1f
SHR R9D,0x5
CMP ECX,R9D
MOV R8D,R9D
CMOVC R8D,ECX
LEA R10,[RAX + R8*0x4]
TEST R8D,R8D
JZ 0x0019d28f
MOV R11,qword ptr [RSI]
MOV RDX,RAX
MOV RDI,RAX
LAB_0019d277:
MOV EBX,dword ptr [R11]
AND dword ptr [RDI],EBX
ADD R11,0x4
ADD RDI,0x4
ADD RDX,0x4
CMP RDI,R10
JC 0x0019d277
JMP 0x0019d295
LAB_0019d28f:
MOV RDX,RAX
MOV RDI,RAX
LAB_0019d295:
SUB ECX,R9D
JC 0x0019d2d4
MOV ESI,dword ptr [RSI + 0x18]
NOT ESI
AND dword ptr [RDI + -0x4],ESI
LEA RSI,[R10 + RCX*0x4]
CMP RDI,RSI
JNC 0x0019d2d4
ADD RCX,R8
LEA RAX,[RAX + RCX*0x4]
LEA RCX,[RDX + 0x4]
CMP RAX,RCX
CMOVA RCX,RAX
NOT RDX
ADD RDX,RCX
AND RDX,-0x4
ADD RDX,0x4
XOR ESI,ESI
POP RBX
POP RBP
JMP 0x001292c0
LAB_0019d2d4:
POP RBX
POP RBP
RET
|
void bitmap_intersect(int8 *param_1,int8 *param_2)
{
uint *puVar1;
uint uVar2;
uint uVar3;
uint *puVar4;
uint *puVar5;
uint *__s;
uint uVar6;
puVar1 = (uint *)*param_1;
uVar3 = *(int *)((long)param_1 + 0x1c) + 0x1fU >> 5;
uVar6 = *(int *)((long)param_2 + 0x1c) + 0x1fU >> 5;
uVar2 = uVar6;
if (uVar3 < uVar6) {
uVar2 = uVar3;
}
puVar5 = puVar1;
__s = puVar1;
if (uVar2 != 0) {
puVar4 = (uint *)*param_2;
do {
*__s = *__s & *puVar4;
puVar4 = puVar4 + 1;
__s = __s + 1;
puVar5 = puVar5 + 1;
} while (__s < puVar1 + uVar2);
}
if ((uVar6 <= uVar3) &&
(__s[-1] = __s[-1] & ~*(uint *)(param_2 + 3), __s < puVar1 + uVar2 + (uVar3 - uVar6))) {
puVar4 = puVar5 + 1;
if (puVar5 + 1 < puVar1 + (ulong)(uVar3 - uVar6) + (ulong)uVar2) {
puVar4 = puVar1 + (ulong)(uVar3 - uVar6) + (ulong)uVar2;
}
memset(__s,0,(~(ulong)puVar5 + (long)puVar4 & 0xfffffffffffffffc) + 4);
return;
}
return;
}
| |
32,770 | Warning_info::remove_marked_sql_conditions() | eloqsql/sql/sql_error.cc | void Warning_info::remove_marked_sql_conditions()
{
List_iterator_fast<Sql_condition> it(m_marked_sql_conditions);
Sql_condition *cond;
while ((cond= it++))
{
m_warn_list.remove(cond);
m_warn_count[cond->get_level()]--;
m_current_statement_warn_count--;
if (cond == m_error_condition)
m_error_condition= NULL;
}
m_marked_sql_conditions.empty();
} | O0 | cpp | Warning_info::remove_marked_sql_conditions():
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x38(%rbp)
addq $0x98, %rsi
leaq -0x28(%rbp), %rdi
callq 0x99a360
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x99a390
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x9992c5
movq -0x38(%rbp), %rdi
addq $0x40, %rdi
movq -0x30(%rbp), %rsi
callq 0x99a3b0
movq -0x30(%rbp), %rdi
callq 0x915830
movq -0x38(%rbp), %rcx
movl %eax, %eax
movl 0x58(%rcx,%rax,4), %edx
addl $-0x1, %edx
movl %edx, 0x58(%rcx,%rax,4)
movl 0x64(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x64(%rcx)
movq -0x30(%rbp), %rax
cmpq 0x78(%rcx), %rax
jne 0x9992c3
movq -0x38(%rbp), %rax
movq $0x0, 0x78(%rax)
jmp 0x999264
movq -0x38(%rbp), %rdi
addq $0x98, %rdi
callq 0x8563e0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZN12Warning_info28remove_marked_sql_conditionsEv:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov rsi, [rbp+var_8]
mov [rbp+var_38], rsi
add rsi, 98h
lea rdi, [rbp+var_28]
call _ZN18List_iterator_fastI13Sql_conditionEC2ER4ListIS0_E; List_iterator_fast<Sql_condition>::List_iterator_fast(List<Sql_condition> &)
loc_999264:
lea rdi, [rbp+var_28]
xor esi, esi
call _ZN18List_iterator_fastI13Sql_conditionEppEi; List_iterator_fast<Sql_condition>::operator++(int)
mov [rbp+var_30], rax
cmp rax, 0
jz short loc_9992C5
mov rdi, [rbp+var_38]
add rdi, 40h ; '@'
mov rsi, [rbp+var_30]
call _ZN8I_P_ListI13Sql_condition16I_P_List_adapterIS0_XadL_ZNS0_10next_in_wiEEEXadL_ZNS0_10prev_in_wiEEEE16I_P_List_counter23I_P_List_fast_push_backIS0_EE6removeEPS0_; I_P_List<Sql_condition,I_P_List_adapter<Sql_condition,&Sql_condition::next_in_wi,&Sql_condition::prev_in_wi>,I_P_List_counter,I_P_List_fast_push_back<Sql_condition>>::remove(Sql_condition*)
mov rdi, [rbp+var_30]; this
call _ZNK21Sql_state_errno_level9get_levelEv; Sql_state_errno_level::get_level(void)
mov rcx, [rbp+var_38]
mov eax, eax
mov edx, [rcx+rax*4+58h]
add edx, 0FFFFFFFFh
mov [rcx+rax*4+58h], edx
mov eax, [rcx+64h]
add eax, 0FFFFFFFFh
mov [rcx+64h], eax
mov rax, [rbp+var_30]
cmp rax, [rcx+78h]
jnz short loc_9992C3
mov rax, [rbp+var_38]
mov qword ptr [rax+78h], 0
loc_9992C3:
jmp short loc_999264
loc_9992C5:
mov rdi, [rbp+var_38]
add rdi, 98h; this
call _ZN9base_list5emptyEv; base_list::empty(void)
add rsp, 40h
pop rbp
retn
| base_list * Warning_info::remove_marked_sql_conditions(Warning_info *this)
{
unsigned int level; // eax
Sql_state_errno_level *v3; // [rsp+10h] [rbp-30h]
_BYTE v4[32]; // [rsp+18h] [rbp-28h] BYREF
Warning_info *v5; // [rsp+38h] [rbp-8h]
v5 = this;
List_iterator_fast<Sql_condition>::List_iterator_fast(v4, (char *)this + 152);
while ( 1 )
{
v3 = (Sql_state_errno_level *)List_iterator_fast<Sql_condition>::operator++(v4, 0LL);
if ( !v3 )
break;
I_P_List<Sql_condition,I_P_List_adapter<Sql_condition,&Sql_condition::next_in_wi,&Sql_condition::prev_in_wi>,I_P_List_counter,I_P_List_fast_push_back<Sql_condition>>::remove(
(char *)this + 64,
v3);
level = Sql_state_errno_level::get_level(v3);
--*((_DWORD *)this + level + 22);
--*((_DWORD *)this + 25);
if ( v3 == *((Sql_state_errno_level **)this + 15) )
*((_QWORD *)this + 15) = 0LL;
}
return base_list::empty((Warning_info *)((char *)this + 152));
}
| show_ssl_get_server_not_before:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x10],0x5
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x009a16b0
TEST AL,0x1
JNZ 0x00999274
JMP 0x009992f8
LAB_00999274:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2c8]
CMP qword ptr [RAX + 0x1e0],0x0
JZ 0x009992f8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2c8]
MOV RAX,qword ptr [RAX + 0x1e0]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00876580
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x008774b0
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,0x800
CALL 0x0099e430
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x009992ea
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0099930e
LAB_009992ea:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x00999307
LAB_009992f8:
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x1e50074]
MOV qword ptr [RAX + 0x8],RCX
LAB_00999307:
MOV dword ptr [RBP + -0x4],0x0
LAB_0099930e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
/* show_ssl_get_server_not_before(THD*, st_mysql_show_var*, char*, enum_var_type) */
int4 show_ssl_get_server_not_before(THD *param_1,long param_2,char *param_3)
{
ulong uVar1;
X509 *pXVar2;
asn1_string_st *paVar3;
int8 uVar4;
*(int4 *)(param_2 + 0x10) = 5;
uVar1 = THD::vio_ok(param_1);
if (((uVar1 & 1) == 0) || (*(long *)(*(long *)(param_1 + 0x2c8) + 0x1e0) == 0)) {
*(int1 **)(param_2 + 8) = &empty_c_string;
}
else {
pXVar2 = SSL_get_certificate(*(SSL **)(*(long *)(param_1 + 0x2c8) + 0x1e0));
paVar3 = (asn1_string_st *)X509_get0_notBefore(pXVar2);
uVar4 = my_asn1_time_to_string(paVar3,param_3,0x800);
*(int8 *)(param_2 + 8) = uVar4;
if (*(long *)(param_2 + 8) == 0) {
return 1;
}
*(char **)(param_2 + 8) = param_3;
}
return 0;
}
| |
32,771 | my_numcells_cp932 | eloqsql/strings/ctype-cp932.c | static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O0 | c | my_numcells_cp932:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x8a955
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa1, %eax
jl 0x8a910
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xdf, %eax
jg 0x8a910
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x8a950
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
jle 0x8a936
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x8a94e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x8a950
jmp 0x8a8d0
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| my_numcells_cp932:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_8A8D0:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_8A955
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0A1h
jl short loc_8A910
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0DFh
jg short loc_8A910
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_8A950
loc_8A910:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
jle short loc_8A936
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_8A94E
loc_8A936:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_8A94E:
jmp short $+2
loc_8A950:
jmp loc_8A8D0
loc_8A955:
mov rax, [rbp+var_20]
pop rbp
retn
| long long my_numcells_cp932(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( *a2 < 0xA1u || *a2 > 0xDFu )
{
if ( *a2 <= 0x7Fu )
{
++v5;
++a2;
}
else
{
v5 += 2LL;
a2 += 2;
}
}
else
{
++v5;
++a2;
}
}
return v5;
}
| my_numcells_cp932:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_0018a8d0:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0018a955
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xa1
JL 0x0018a910
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xdf
JG 0x0018a910
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0018a950
LAB_0018a910:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
JLE 0x0018a936
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0018a94e
LAB_0018a936:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_0018a94e:
JMP 0x0018a950
LAB_0018a950:
JMP 0x0018a8d0
LAB_0018a955:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if ((*local_30 < 0xa1) || (0xdf < *local_30)) {
if (*local_30 < 0x80) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
else {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
}
return local_28;
}
| |
32,772 | ft_init_stopwords | eloqsql/storage/myisam/ft_stopwords.c | int ft_init_stopwords()
{
DBUG_ENTER("ft_init_stopwords");
if (!stopwords3)
{
if (!(stopwords3=(TREE *)my_malloc(mi_key_memory_ft_stopwords,
sizeof(TREE), MYF(0))))
DBUG_RETURN(-1);
init_tree(stopwords3,0,0,sizeof(FT_STOPWORD),(qsort_cmp2)&FT_STOPWORD_cmp,
(ft_stopword_file ? (tree_element_free)&FT_STOPWORD_free : 0),
NULL, MYF(0));
/*
Stopword engine currently does not support tricky
character sets UCS2, UTF16, UTF32.
Use latin1 to compare stopwords in case of these character sets.
It's also fine to use latin1 with the built-in stopwords.
*/
ft_stopword_cs= default_charset_info->mbminlen == 1 ?
default_charset_info : &my_charset_latin1;
}
if (ft_stopword_file)
{
File fd;
size_t len;
uchar *buffer, *start, *end;
FT_WORD w;
int error=-1;
if (!*ft_stopword_file)
DBUG_RETURN(0);
if ((fd=my_open(ft_stopword_file, O_RDONLY, MYF(MY_WME))) == -1)
DBUG_RETURN(-1);
len=(size_t)my_seek(fd, 0L, MY_SEEK_END, MYF(0));
my_seek(fd, 0L, MY_SEEK_SET, MYF(0));
if (!(start= buffer= my_malloc(mi_key_memory_ft_stopwords, len+1,
MYF(MY_WME))))
goto err0;
len=my_read(fd, buffer, len, MYF(MY_WME));
end=start+len;
while (ft_simple_get_word(ft_stopword_cs, &start, end, &w, TRUE))
{
if (ft_add_stopword(my_strndup(mi_key_memory_ft_stopwords,
(char*) w.pos, w.len, MYF(0))))
goto err1;
}
error=0;
err1:
my_free(buffer);
err0:
my_close(fd, MYF(MY_WME));
DBUG_RETURN(error);
}
else
{
/* compatibility mode: to be removed */
char **sws=(char **)ft_precompiled_stopwords;
for (;*sws;sws++)
{
if (ft_add_stopword(*sws))
DBUG_RETURN(-1);
}
ft_stopword_file="(built-in)"; /* for SHOW VARIABLES */
}
DBUG_RETURN(0);
} | O3 | c | ft_init_stopwords:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpq $0x0, 0xb8e053(%rip) # 0xbff480
jne 0x714ac
leaq 0xb8e096(%rip), %rax # 0xbff4cc
movl (%rax), %edi
movl $0x298, %esi # imm = 0x298
xorl %edx, %edx
callq 0x9fdb5
movq %rax, 0xb8e035(%rip) # 0xbff480
testq %rax, %rax
je 0x715de
leaq 0xb8e01d(%rip), %rcx # 0xbff478
movq (%rcx), %rcx
testq %rcx, %rcx
leaq 0x1cb(%rip), %r9 # 0x71633
cmoveq %rcx, %r9
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x191(%rip), %r8 # 0x7160b
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0x10, %ecx
callq 0xa4644
leaq 0x314266(%rip), %rax # 0x3856f8
movq (%rax), %rax
cmpl $0x1, 0x98(%rax)
je 0x714a5
leaq 0x33aa7b(%rip), %rax # 0x3abf20
movq %rax, 0xb8dfdc(%rip) # 0xbff488
leaq 0xb8dfc5(%rip), %rbx # 0xbff478
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x715a7
cmpb $0x0, (%rdi)
je 0x715d9
movl $0x10, %edx
xorl %esi, %esi
callq 0xa03e4
cmpl $-0x1, %eax
je 0x715de
movl %eax, %r12d
movl %eax, %edi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0xa0ba4
movq %rax, %rbx
movl %r12d, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0ba4
leaq 0xb8dfc4(%rip), %r15 # 0xbff4cc
movl (%r15), %edi
leaq 0x1(%rbx), %rsi
movl $0x10, %edx
callq 0x9fdb5
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x715e6
movq %rax, %r14
movl $0x10, %ecx
movl %r12d, -0x2c(%rbp)
movl %r12d, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xa09a4
movq %rax, %r12
movq %r14, -0x38(%rbp)
addq %r14, %r12
leaq -0x40(%rbp), %r13
leaq -0x58(%rbp), %rbx
xorl %r14d, %r14d
movq 0xb8df2c(%rip), %rdi # 0xbff488
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x73a3d
testb %al, %al
je 0x71598
movl (%r15), %edi
movq -0x58(%rbp), %rsi
movq -0x48(%rbp), %rdx
xorl %ecx, %ecx
callq 0xa00cc
movq %rax, %rdi
callq 0x71648
testl %eax, %eax
je 0x71555
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq -0x38(%rbp), %rdi
callq 0x9ffe2
movl -0x2c(%rbp), %r12d
jmp 0x715ec
leaq 0x312c52(%rip), %r14 # 0x384200
movq (%r14), %rdi
testq %rdi, %rdi
je 0x715cf
addq $0x8, %r14
callq 0x71648
testl %eax, %eax
jne 0x715de
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x715ba
leaq 0x69f71(%rip), %rax # 0xdb547
movq %rax, (%rbx)
xorl %r14d, %r14d
jmp 0x715f9
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x715f9
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movl $0x10, %esi
movl %r12d, %edi
callq 0xa0589
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ft_init_stopwords:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
cmp cs:stopwords3, 0
jnz short loc_714AC
lea rax, mi_key_memory_ft_stopwords
mov edi, [rax]
mov esi, 298h
xor edx, edx
call my_malloc
mov cs:stopwords3, rax
test rax, rax
jz loc_715DE
lea rcx, ft_stopword_file
mov rcx, [rcx]
test rcx, rcx
lea r9, FT_STOPWORD_free
cmovz r9, rcx
xorps xmm0, xmm0
movups [rsp+70h+var_70], xmm0
lea r8, FT_STOPWORD_cmp
mov rdi, rax
xor esi, esi
xor edx, edx
mov ecx, 10h
call init_tree
lea rax, default_charset_info
mov rax, [rax]
cmp dword ptr [rax+98h], 1
jz short loc_714A5
lea rax, my_charset_latin1
loc_714A5:
mov cs:ft_stopword_cs, rax
loc_714AC:
lea rbx, ft_stopword_file
mov rdi, [rbx]
test rdi, rdi
jz loc_715A7
cmp byte ptr [rdi], 0
jz loc_715D9
mov edx, 10h
xor esi, esi
call my_open
cmp eax, 0FFFFFFFFh
jz loc_715DE
mov r12d, eax
mov edi, eax
xor esi, esi
mov edx, 2
xor ecx, ecx
call my_seek
mov rbx, rax
mov edi, r12d
xor esi, esi
xor edx, edx
xor ecx, ecx
call my_seek
lea r15, mi_key_memory_ft_stopwords
mov edi, [r15]
lea rsi, [rbx+1]
mov edx, 10h
call my_malloc
mov [rbp+var_40], rax
test rax, rax
jz loc_715E6
mov r14, rax
mov ecx, 10h
mov [rbp+var_2C], r12d
mov edi, r12d
mov rsi, rax
mov rdx, rbx
call my_read
mov r12, rax
mov [rbp+var_38], r14
add r12, r14
lea r13, [rbp+var_40]
lea rbx, [rbp+var_58]
xor r14d, r14d
loc_71555:
mov rdi, cs:ft_stopword_cs
mov rsi, r13
mov rdx, r12
mov rcx, rbx
mov r8d, 1
call ft_simple_get_word
test al, al
jz short loc_71598
mov edi, [r15]
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_48]
xor ecx, ecx
call my_strndup
mov rdi, rax
call ft_add_stopword
test eax, eax
jz short loc_71555
mov r14d, 0FFFFFFFFh
loc_71598:
mov rdi, [rbp+var_38]
call my_free
mov r12d, [rbp+var_2C]
jmp short loc_715EC
loc_715A7:
lea r14, ft_precompiled_stopwords
mov rdi, [r14]
test rdi, rdi
jz short loc_715CF
add r14, 8
loc_715BA:
call ft_add_stopword
test eax, eax
jnz short loc_715DE
mov rdi, [r14]
add r14, 8
test rdi, rdi
jnz short loc_715BA
loc_715CF:
lea rax, aBuiltIn; "(built-in)"
mov [rbx], rax
loc_715D9:
xor r14d, r14d
jmp short loc_715F9
loc_715DE:
mov r14d, 0FFFFFFFFh
jmp short loc_715F9
loc_715E6:
mov r14d, 0FFFFFFFFh
loc_715EC:
mov esi, 10h
mov edi, r12d
call my_close
loc_715F9:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ft_init_stopwords()
{
long long v0; // rax
long long ( *v1)(); // r9
void *v2; // rax
unsigned int v3; // eax
unsigned int v4; // r12d
long long v5; // rbx
long long v6; // rax
long long v7; // r12
unsigned int v8; // r14d
long long v9; // rax
char **v10; // r14
_QWORD v13[3]; // [rsp+18h] [rbp-58h] BYREF
long long v14; // [rsp+30h] [rbp-40h] BYREF
long long v15; // [rsp+38h] [rbp-38h]
unsigned int v16; // [rsp+44h] [rbp-2Ch]
if ( !stopwords3 )
{
v0 = my_malloc(mi_key_memory_ft_stopwords, 664LL, 0LL);
stopwords3 = v0;
if ( !v0 )
return (unsigned int)-1;
v1 = FT_STOPWORD_free;
if ( !ft_stopword_file )
LODWORD(v1) = 0;
init_tree(v0, 0, 0, 16, (unsigned int)FT_STOPWORD_cmp, (_DWORD)v1, 0LL, 0LL);
v2 = default_charset_info;
if ( *((_DWORD *)default_charset_info + 38) != 1 )
v2 = &my_charset_latin1;
ft_stopword_cs = (long long)v2;
}
if ( !ft_stopword_file )
{
if ( ft_precompiled_stopwords )
{
v10 = &ft_precompiled_stopwords + 1;
while ( !(unsigned int)((long long (*)(void))ft_add_stopword)() )
{
if ( !*v10++ )
goto LABEL_21;
}
return (unsigned int)-1;
}
LABEL_21:
ft_stopword_file = "(built-in)";
return 0;
}
if ( !*ft_stopword_file )
return 0;
v3 = my_open(ft_stopword_file, 0LL, 16LL);
if ( v3 == -1 )
return (unsigned int)-1;
v4 = v3;
v5 = my_seek(v3, 0LL, 2LL, 0LL);
my_seek(v4, 0LL, 0LL, 0LL);
v6 = my_malloc(mi_key_memory_ft_stopwords, v5 + 1, 16LL);
v14 = v6;
if ( v6 )
{
v16 = v4;
v15 = v6;
v7 = v6 + my_read(v4, v6, v5, 16LL);
v8 = 0;
while ( (unsigned __int8)ft_simple_get_word(ft_stopword_cs, &v14, v7, v13, 1LL) )
{
v9 = my_strndup(mi_key_memory_ft_stopwords, v13[0], v13[2], 0LL);
if ( (unsigned int)ft_add_stopword(v9) )
{
v8 = -1;
break;
}
}
my_free(v15);
v4 = v16;
}
else
{
v8 = -1;
}
my_close(v4, 16LL);
return v8;
}
| ft_init_stopwords:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
CMP qword ptr [0x00cff480],0x0
JNZ 0x001714ac
LEA RAX,[0xcff4cc]
MOV EDI,dword ptr [RAX]
MOV ESI,0x298
XOR EDX,EDX
CALL 0x0019fdb5
MOV qword ptr [0x00cff480],RAX
TEST RAX,RAX
JZ 0x001715de
LEA RCX,[0xcff478]
MOV RCX,qword ptr [RCX]
TEST RCX,RCX
LEA R9,[0x171633]
CMOVZ R9,RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP],XMM0
LEA R8,[0x17160b]
MOV RDI,RAX
XOR ESI,ESI
XOR EDX,EDX
MOV ECX,0x10
CALL 0x001a4644
LEA RAX,[0x4856f8]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x98],0x1
JZ 0x001714a5
LEA RAX,[0x4abf20]
LAB_001714a5:
MOV qword ptr [0x00cff488],RAX
LAB_001714ac:
LEA RBX,[0xcff478]
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x001715a7
CMP byte ptr [RDI],0x0
JZ 0x001715d9
MOV EDX,0x10
XOR ESI,ESI
CALL 0x001a03e4
CMP EAX,-0x1
JZ 0x001715de
MOV R12D,EAX
MOV EDI,EAX
XOR ESI,ESI
MOV EDX,0x2
XOR ECX,ECX
CALL 0x001a0ba4
MOV RBX,RAX
MOV EDI,R12D
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a0ba4
LEA R15,[0xcff4cc]
MOV EDI,dword ptr [R15]
LEA RSI,[RBX + 0x1]
MOV EDX,0x10
CALL 0x0019fdb5
MOV qword ptr [RBP + -0x40],RAX
TEST RAX,RAX
JZ 0x001715e6
MOV R14,RAX
MOV ECX,0x10
MOV dword ptr [RBP + -0x2c],R12D
MOV EDI,R12D
MOV RSI,RAX
MOV RDX,RBX
CALL 0x001a09a4
MOV R12,RAX
MOV qword ptr [RBP + -0x38],R14
ADD R12,R14
LEA R13,[RBP + -0x40]
LEA RBX,[RBP + -0x58]
XOR R14D,R14D
LAB_00171555:
MOV RDI,qword ptr [0x00cff488]
MOV RSI,R13
MOV RDX,R12
MOV RCX,RBX
MOV R8D,0x1
CALL 0x00173a3d
TEST AL,AL
JZ 0x00171598
MOV EDI,dword ptr [R15]
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x48]
XOR ECX,ECX
CALL 0x001a00cc
MOV RDI,RAX
CALL 0x00171648
TEST EAX,EAX
JZ 0x00171555
MOV R14D,0xffffffff
LAB_00171598:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0019ffe2
MOV R12D,dword ptr [RBP + -0x2c]
JMP 0x001715ec
LAB_001715a7:
LEA R14,[0x484200]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x001715cf
ADD R14,0x8
LAB_001715ba:
CALL 0x00171648
TEST EAX,EAX
JNZ 0x001715de
MOV RDI,qword ptr [R14]
ADD R14,0x8
TEST RDI,RDI
JNZ 0x001715ba
LAB_001715cf:
LEA RAX,[0x1db547]
MOV qword ptr [RBX],RAX
LAB_001715d9:
XOR R14D,R14D
JMP 0x001715f9
LAB_001715de:
MOV R14D,0xffffffff
JMP 0x001715f9
LAB_001715e6:
MOV R14D,0xffffffff
LAB_001715ec:
MOV ESI,0x10
MOV EDI,R12D
CALL 0x001a0589
LAB_001715f9:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ft_init_stopwords(void)
{
int *puVar1;
char cVar2;
int iVar3;
long lVar4;
long lVar5;
int8 uVar6;
code *pcVar7;
int8 uVar8;
int **ppuVar9;
int8 local_60 [2];
int8 local_50;
long local_48;
long local_40;
int local_34;
if (stopwords3 == 0) {
stopwords3 = my_malloc(mi_key_memory_ft_stopwords,0x298,0);
if (stopwords3 != 0) {
pcVar7 = FT_STOPWORD_free;
if (ft_stopword_file == (char *)0x0) {
pcVar7 = (code *)0x0;
}
init_tree(stopwords3,0,0,0x10,FT_STOPWORD_cmp,pcVar7,0,0);
ft_stopword_cs = (int4 *)default_charset_info;
if (*(int *)(default_charset_info + 0x98) != 1) {
ft_stopword_cs = &my_charset_latin1;
}
goto LAB_001714ac;
}
LAB_001715de:
uVar8 = 0xffffffff;
}
else {
LAB_001714ac:
if (ft_stopword_file == (char *)0x0) {
if (ft_precompiled_stopwords != (int *)0x0) {
ppuVar9 = &PTR_s_able_00484208;
do {
iVar3 = ft_add_stopword();
if (iVar3 != 0) goto LAB_001715de;
puVar1 = *ppuVar9;
ppuVar9 = ppuVar9 + 1;
} while (puVar1 != (int *)0x0);
}
ft_stopword_file = "(built-in)";
}
else if (*ft_stopword_file != '\0') {
iVar3 = my_open(ft_stopword_file,0,0x10);
if (iVar3 != -1) {
lVar4 = my_seek(iVar3,0,2,0);
my_seek(iVar3,0,0,0);
lVar5 = my_malloc(mi_key_memory_ft_stopwords,lVar4 + 1,0x10);
local_48 = lVar5;
if (lVar5 == 0) {
uVar8 = 0xffffffff;
}
else {
local_34 = iVar3;
lVar4 = my_read(iVar3,lVar5,lVar4,0x10);
uVar8 = 0;
local_40 = lVar5;
do {
cVar2 = ft_simple_get_word(ft_stopword_cs,&local_48,lVar4 + lVar5,local_60,1);
if (cVar2 == '\0') goto LAB_00171598;
uVar6 = my_strndup(mi_key_memory_ft_stopwords,local_60[0],local_50,0);
iVar3 = ft_add_stopword(uVar6);
} while (iVar3 == 0);
uVar8 = 0xffffffff;
LAB_00171598:
my_free(local_40);
iVar3 = local_34;
}
my_close(iVar3,0x10);
return uVar8;
}
goto LAB_001715de;
}
uVar8 = 0;
}
return uVar8;
}
| |
32,773 | js_std_file_getByte | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_std_file_getByte(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
FILE *f = js_std_file_get(ctx, this_val);
if (!f)
return JS_EXCEPTION;
return JS_NewInt32(ctx, fgetc(f));
} | O0 | c | js_std_file_getByte:
subq $0x68, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movl %ecx, 0x1c(%rsp)
movq %r8, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x13a80
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x13910
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0x13955
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
callq 0xe390
movq (%rsp), %rcx
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| js_std_file_getByte:
sub rsp, 68h
mov [rsp+68h+var_40], rsi
mov [rsp+68h+var_38], rdx
mov [rsp+68h+var_48], rdi
mov [rsp+68h+var_4C], ecx
mov [rsp+68h+var_58], r8
mov rdi, [rsp+68h+var_48]
mov rsi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_38]
call js_std_file_get
mov [rsp+68h+var_60], rax
cmp [rsp+68h+var_60], 0
jnz short loc_13910
mov dword ptr [rsp+68h+var_30], 0
mov [rsp+68h+var_28], 6
jmp short loc_13955
loc_13910:
mov rax, [rsp+68h+var_48]
mov [rsp+68h+var_68], rax
mov rdi, [rsp+68h+var_60]
call _fgetc
mov rcx, [rsp+68h+var_68]
mov [rsp+68h+var_18], rcx
mov [rsp+68h+var_1C], eax
mov eax, [rsp+68h+var_1C]
mov dword ptr [rsp+68h+var_10], eax
mov [rsp+68h+var_8], 0
mov rcx, [rsp+68h+var_10]
mov rax, [rsp+68h+var_8]
mov [rsp+68h+var_30], rcx
mov [rsp+68h+var_28], rax
loc_13955:
mov rax, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
add rsp, 68h
retn
| long long js_std_file_getByte(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+8h] [rbp-60h]
long long v5; // [rsp+38h] [rbp-30h]
long long v6; // [rsp+58h] [rbp-10h]
v4 = js_std_file_get(a1, a2, a3);
if ( v4 )
{
LODWORD(v6) = fgetc(v4);
return v6;
}
else
{
LODWORD(v5) = 0;
}
return v5;
}
| js_std_file_getByte:
SUB RSP,0x68
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ECX
MOV qword ptr [RSP + 0x10],R8
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x00113a80
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x00113910
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x00113955
LAB_00113910:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0010e390
MOV RCX,qword ptr [RSP]
MOV qword ptr [RSP + 0x50],RCX
MOV dword ptr [RSP + 0x4c],EAX
MOV EAX,dword ptr [RSP + 0x4c]
MOV dword ptr [RSP + 0x58],EAX
MOV qword ptr [RSP + 0x60],0x0
MOV RCX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],RAX
LAB_00113955:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
ADD RSP,0x68
RET
|
int1 [16] js_std_file_getByte(int8 param_1,int8 param_2,int8 param_3)
{
int1 auVar1 [16];
FILE *__stream;
int4 local_30;
int4 uStack_2c;
int8 local_28;
int4 uStack_c;
__stream = (FILE *)js_std_file_get(param_1,param_2,param_3);
if (__stream == (FILE *)0x0) {
local_30 = 0;
local_28 = 6;
}
else {
local_30 = fgetc(__stream);
uStack_2c = uStack_c;
local_28 = 0;
}
auVar1._4_4_ = uStack_2c;
auVar1._0_4_ = local_30;
auVar1._8_8_ = local_28;
return auVar1;
}
| |
32,774 | inline_mysql_file_pread | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
} | O0 | c | inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x2101c4(%rip), %rax # 0x2cdee0
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xbde2f
leaq 0x21017a(%rip), %rax # 0x2cdee0
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xfcdf0
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xbddda
cmpq $0x0, -0x38(%rbp)
jne 0xbddbf
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xbddca
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xbddca
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xbde07
cmpq $-0x1, -0x38(%rbp)
je 0xbddee
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xbddf9
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xbddf9
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x2100d2(%rip), %rax # 0x2cdee0
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbde53
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xfcdf0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
| inline_mysql_file_pread_7:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_BDE2F
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_BDDDA
cmp [rbp+var_38], 0
jnz short loc_BDDBF
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_BDDCA
loc_BDDBF:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_BDDCA:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_BDE07
loc_BDDDA:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_BDDEE
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_BDDF9
loc_BDDEE:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_BDDF9:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_BDE07:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_BDE53
loc_BDE2F:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_BDE53:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_pread_7(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pread(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pread(v16, v15, v14, v13, a7);
}
}
| inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3cdee0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001bde2f
LEA RAX,[0x3cdee0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001fcdf0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001bddda
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001bddbf
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001bddca
LAB_001bddbf:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001bddca
LAB_001bddca:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001bde07
LAB_001bddda:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001bddee
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001bddf9
LAB_001bddee:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001bddf9
LAB_001bddf9:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001bde07:
LEA RAX,[0x3cdee0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001bde53
LAB_001bde2f:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001fcdf0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001bde53:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pread
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_pread(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pread(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
32,775 | inline_mysql_file_pread | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
} | O3 | c | inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %r13d
leaq 0x32a223(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq -0x70(%rbp), %rdi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x66cf7
movl $0x2, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa77dc
movq %rax, %r14
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq 0x32a1d7(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq 0x7b480(%rip), %rdx # 0xe218b
movq %r12, %rdi
movq %rbx, %rsi
movl %r13d, %ecx
callq *0x210(%rax)
xorl %r13d, %r13d
movl $0x2, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa77dc
movq %rax, %r14
testq %rax, %rax
cmoveq %rbx, %r13
leaq 0x32a194(%rip), %rax # 0x390ed8
movq (%rax), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x218(%rax)
jmp 0x66ce5
| inline_mysql_file_pread_1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rcx
mov r14, rdx
mov r15d, esi
mov r13d, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_70]
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_66CF7
mov r8d, 2
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
loc_66CE5:
mov rax, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_66CF7:
mov r12, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r12
mov rsi, rbx
mov ecx, r13d
call qword ptr [rax+210h]
xor r13d, r13d
mov r8d, 2
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
test rax, rax
cmovz r13, rbx
lea rax, PSI_server
mov rax, [rax]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+218h]
jmp short loc_66CE5
| long long inline_mysql_file_pread_1(unsigned int a1, long long a2, long long a3, long long a4)
{
long long v6; // rax
long long v7; // r14
long long v9; // r12
long long v10; // r13
_BYTE v11[112]; // [rsp+0h] [rbp-70h] BYREF
v6 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v11, a2, 6LL);
if ( !v6 )
return my_pread((unsigned int)a2, a3, a4, 0LL, 2LL);
v9 = v6;
((void ( *)(long long, long long, const char *, _QWORD))PSI_server[66])(
v6,
a4,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c",
a1);
v10 = 0LL;
v7 = my_pread((unsigned int)a2, a3, a4, 0LL, 2LL);
if ( !v7 )
v10 = a4;
((void ( *)(long long, long long))PSI_server[67])(v9, v10);
return v7;
}
| inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RCX
MOV R14,RDX
MOV R15D,ESI
MOV R13D,EDI
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x70]
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00166cf7
MOV R8D,0x2
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a77dc
MOV R14,RAX
LAB_00166ce5:
MOV RAX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00166cf7:
MOV R12,RAX
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1e218b]
MOV RDI,R12
MOV RSI,RBX
MOV ECX,R13D
CALL qword ptr [RAX + 0x210]
XOR R13D,R13D
MOV R8D,0x2
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a77dc
MOV R14,RAX
TEST RAX,RAX
CMOVZ R13,RBX
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x218]
JMP 0x00166ce5
|
long inline_mysql_file_pread(int4 param_1,ulong param_2,int8 param_3,int8 param_4)
{
long lVar1;
long lVar2;
int8 uVar3;
int1 local_78 [72];
lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_2,6);
if (lVar1 == 0) {
lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,2);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar1,param_4,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c",param_1);
lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,2);
uVar3 = 0;
if (lVar2 == 0) {
uVar3 = param_4;
}
(**(code **)(PSI_server + 0x218))(lVar1,uVar3);
}
return lVar2;
}
| |
32,776 | minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/minja.hpp | CommentTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Comment, location, pre, post), text(t) {} | O3 | cpp | minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xa0109(%rip), %r15 # 0xef1c8
addq $0x10, %r15
movq %r15, (%rdi)
movl $0xc, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x4f0f6
movq 0xa1eb0(%rip), %rdi # 0xf0f98
cmpb $0x0, (%rdi)
je 0x4f0f2
incl 0x8(%rax)
jmp 0x4f0f6
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0xa0075(%rip), %rax # 0xef180
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
callq 0x26a9a
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %r15, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x4f147
callq 0x31b9a
movq %r14, %rdi
callq 0x19dc0
nop
| _ZN5minja20CommentTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
mov rbx, rdi
lea r15, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r15, 10h
mov [rdi], r15
mov dword ptr [rdi+8], 0Ch
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_4F0F6
mov rdi, cs:__libc_single_threaded_ptr
cmp byte ptr [rdi], 0
jz short loc_4F0F2
inc dword ptr [rax+8]
jmp short loc_4F0F6
loc_4F0F2:
lock inc dword ptr [rax+8]
loc_4F0F6:
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja20CommentTemplateTokenE; `vtable for'minja::CommentTemplateToken
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+30h]
lea rax, [rbx+40h]
mov [rbx+30h], rax
mov rsi, [r8]
mov rdx, [r8+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov [rbx], r15
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_4F147
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_4F147:
mov rdi, r14
call __Unwind_Resume
| long long minja::CommentTemplateToken::CommentTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
long long a5)
{
long long v5; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 12;
*(_QWORD *)(a1 + 16) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 24) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::CommentTemplateToken + 2;
*(_QWORD *)(a1 + 48) = a1 + 64;
return std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
}
| CommentTemplateToken:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R15,[0x1ef1c8]
ADD R15,0x10
MOV qword ptr [RDI],R15
MOV dword ptr [RDI + 0x8],0xc
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x0014f0f6
MOV RDI,qword ptr [0x001f0f98]
CMP byte ptr [RDI],0x0
JZ 0x0014f0f2
INC dword ptr [RAX + 0x8]
JMP 0x0014f0f6
LAB_0014f0f2:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0014f0f6:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x1ef180]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x30]
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
ADD RDX,RSI
LAB_0014f128:
CALL 0x00126a9a
LAB_0014f12d:
POP RBX
POP R14
POP R15
RET
|
/* minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::__cxx11::string const&) */
void __thiscall
minja::CommentTemplateToken::CommentTemplateToken
(CommentTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
long *param_5)
{
long lVar1;
*(int ***)this = &PTR__TemplateToken_001ef1d8;
*(int4 *)(this + 8) = 0xc;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001f0f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__CommentTemplateToken_001ef190;
*(CommentTemplateToken **)(this + 0x30) = this + 0x40;
/* try { // try from 0014f128 to 0014f12c has its CatchHandler @ 0014f133 */
std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5);
return;
}
| |
32,777 | rebuild_ic | bluesky950520[P]quickjs/quickjs.c | int rebuild_ic(JSContext *ctx, JSInlineCache *ic)
{
uint32_t i, count;
JSInlineCacheHashSlot *ch;
if (ic->count == 0)
goto end;
count = 0;
ic->cache = js_mallocz(ctx, sizeof(JSInlineCacheRingSlot) * ic->count);
if (unlikely(!ic->cache))
goto fail;
for (i = 0; i < ic->capacity; i++) {
for (ch = ic->hash[i]; ch != NULL; ch = ch->next) {
ch->index = count++;
ic->cache[ch->index].atom = JS_DupAtom(ctx, ch->atom);
ic->cache[ch->index].index = 0;
}
}
end:
return 0;
fail:
return -1;
} | O1 | c | rebuild_ic:
movl (%rsi), %eax
testq %rax, %rax
jne 0x12235
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
imulq $0x38, %rax, %rsi
callq 0xee06
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x122ac
movl 0x4(%r14), %ecx
testq %rcx, %rcx
je 0x122ac
movq 0x10(%r14), %rdx
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
testq %r8, %r8
je 0x122a4
movl %edi, 0x4(%r8)
movslq (%r8), %r9
cmpq $0xe0, %r9
jl 0x1228a
movq 0x18(%rbx), %r10
movq 0x68(%r10), %r10
movq (%r10,%r9,8), %r10
incl (%r10)
movl %edi, %r10d
imulq $0x38, %r10, %r10
movl %r9d, 0x30(%rax,%r10)
movb $0x0, 0x34(%rax,%r10)
movq 0x8(%r8), %r8
incl %edi
jmp 0x12266
incq %rsi
cmpq %rcx, %rsi
jne 0x12262
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| rebuild_ic:
mov eax, [rsi]
test rax, rax
jnz short loc_12235
retn
loc_12235:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
imul rsi, rax, 38h ; '8'
call js_mallocz
mov [r14+18h], rax
test rax, rax
jz short loc_122AC
mov ecx, [r14+4]
test rcx, rcx
jz short loc_122AC
mov rdx, [r14+10h]
xor esi, esi
xor edi, edi
loc_12262:
mov r8, [rdx+rsi*8]
loc_12266:
test r8, r8
jz short loc_122A4
mov [r8+4], edi
movsxd r9, dword ptr [r8]
cmp r9, 0E0h
jl short loc_1228A
mov r10, [rbx+18h]
mov r10, [r10+68h]
mov r10, [r10+r9*8]
inc dword ptr [r10]
loc_1228A:
mov r10d, edi
imul r10, 38h ; '8'
mov [rax+r10+30h], r9d
mov byte ptr [rax+r10+34h], 0
mov r8, [r8+8]
inc edi
jmp short loc_12266
loc_122A4:
inc rsi
cmp rsi, rcx
jnz short loc_12262
loc_122AC:
add rsp, 8
pop rbx
pop r14
retn
| long long rebuild_ic(long long a1, unsigned int *a2)
{
long long result; // rax
long long v4; // rcx
long long v5; // rdx
long long v6; // rsi
unsigned int v7; // edi
int *v8; // r8
long long v9; // r9
_DWORD *v10; // r10
long long v11; // r10
result = *a2;
if ( *a2 )
{
result = js_mallocz(a1, 56 * result);
*((_QWORD *)a2 + 3) = result;
if ( result )
{
v4 = a2[1];
if ( a2[1] )
{
v5 = *((_QWORD *)a2 + 2);
v6 = 0LL;
v7 = 0;
do
{
v8 = *(int **)(v5 + 8 * v6);
while ( v8 )
{
v8[1] = v7;
v9 = *v8;
if ( v9 >= 224 )
{
v10 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8 * v9);
++*v10;
}
v11 = 56LL * v7;
*(_DWORD *)(result + v11 + 48) = v9;
*(_BYTE *)(result + v11 + 52) = 0;
v8 = (int *)*((_QWORD *)v8 + 1);
++v7;
}
++v6;
}
while ( v6 != v4 );
}
}
}
return result;
}
| rebuild_ic:
MOV EAX,dword ptr [RSI]
TEST RAX,RAX
JNZ 0x00112235
RET
LAB_00112235:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
IMUL RSI,RAX,0x38
CALL 0x0010ee06
MOV qword ptr [R14 + 0x18],RAX
TEST RAX,RAX
JZ 0x001122ac
MOV ECX,dword ptr [R14 + 0x4]
TEST RCX,RCX
JZ 0x001122ac
MOV RDX,qword ptr [R14 + 0x10]
XOR ESI,ESI
XOR EDI,EDI
LAB_00112262:
MOV R8,qword ptr [RDX + RSI*0x8]
LAB_00112266:
TEST R8,R8
JZ 0x001122a4
MOV dword ptr [R8 + 0x4],EDI
MOVSXD R9,dword ptr [R8]
CMP R9,0xe0
JL 0x0011228a
MOV R10,qword ptr [RBX + 0x18]
MOV R10,qword ptr [R10 + 0x68]
MOV R10,qword ptr [R10 + R9*0x8]
INC dword ptr [R10]
LAB_0011228a:
MOV R10D,EDI
IMUL R10,R10,0x38
MOV dword ptr [RAX + R10*0x1 + 0x30],R9D
MOV byte ptr [RAX + R10*0x1 + 0x34],0x0
MOV R8,qword ptr [R8 + 0x8]
INC EDI
JMP 0x00112266
LAB_001122a4:
INC RSI
CMP RSI,RCX
JNZ 0x00112262
LAB_001122ac:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void rebuild_ic(long param_1,int *param_2)
{
uint uVar1;
int iVar2;
long lVar3;
int *piVar4;
long lVar5;
ulong uVar6;
uint uVar7;
int *piVar8;
if (*param_2 == 0) {
return;
}
lVar5 = js_mallocz();
*(long *)(param_2 + 6) = lVar5;
if ((lVar5 != 0) && (uVar1 = param_2[1], (ulong)uVar1 != 0)) {
lVar3 = *(long *)(param_2 + 4);
uVar6 = 0;
uVar7 = 0;
do {
for (piVar8 = *(int **)(lVar3 + uVar6 * 8); piVar8 != (int *)0x0;
piVar8 = *(int **)(piVar8 + 2)) {
piVar8[1] = uVar7;
iVar2 = *piVar8;
if (0xdf < (long)iVar2) {
piVar4 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (long)iVar2 * 8);
*piVar4 = *piVar4 + 1;
}
*(int *)(lVar5 + 0x30 + (ulong)uVar7 * 0x38) = iVar2;
*(int1 *)(lVar5 + 0x34 + (ulong)uVar7 * 0x38) = 0;
uVar7 = uVar7 + 1;
}
uVar6 = uVar6 + 1;
} while (uVar6 != uVar1);
}
return;
}
| |
32,778 | find_set_from_flags | eloqsql/mysys/typelib.c | my_ulonglong find_set_from_flags(const TYPELIB *lib, uint default_name,
my_ulonglong cur_set, my_ulonglong default_set,
const char *str, uint length,
char **err_pos, uint *err_len)
{
const char *end= str + length;
my_ulonglong flags_to_set= 0, flags_to_clear= 0, res;
my_bool set_defaults= 0;
*err_pos= 0; /* No error yet */
if (str != end)
{
const char *start= str;
for (;;)
{
const char *pos= start;
uint flag_no, value;
if (!(flag_no= parse_name(lib, &pos, end)))
goto err;
if (flag_no == default_name)
{
/* Using 'default' twice isn't allowed. */
if (set_defaults)
goto err;
set_defaults= TRUE;
}
else
{
my_ulonglong bit= (1ULL << (flag_no - 1));
/* parse the '=on|off|default' */
if ((flags_to_clear | flags_to_set) & bit ||
pos >= end || *pos++ != '=' ||
!(value= parse_name(&on_off_default_typelib, &pos, end)))
goto err;
if (value == 1) /* this is '=off' */
flags_to_clear|= bit;
else if (value == 2) /* this is '=on' */
flags_to_set|= bit;
else /* this is '=default' */
{
if (default_set & bit)
flags_to_set|= bit;
else
flags_to_clear|= bit;
}
}
if (pos >= end)
break;
if (*pos++ != ',')
goto err;
start=pos;
continue;
err:
*err_pos= (char*)start;
*err_len= (uint)(end - start);
break;
}
}
res= set_defaults? default_set : cur_set;
res|= flags_to_set;
res&= ~flags_to_clear;
return res;
} | O3 | c | find_set_from_flags:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x50(%rbp)
movq %rdx, %rax
movl %esi, -0x44(%rbp)
movq 0x10(%rbp), %rcx
movq $0x0, (%rcx)
testl %r9d, %r9d
je 0x327b9
movq %r8, %r14
movq %rdi, %rbx
movq %rax, -0x58(%rbp)
movl %r9d, %r15d
addq %r8, %r15
leaq -0x30(%rbp), %rdi
movq %r8, (%rdi)
movq %rbx, %rsi
movl $0x9, %edx
movq %r15, %rcx
callq 0x32321
testl %eax, %eax
je 0x327c4
movq %rbx, -0x60(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
xorl %r13d, %r13d
movq %r14, %r12
cmpl -0x44(%rbp), %eax
jne 0x32700
movb $0x1, %bl
testb %r13b, %r13b
je 0x3277e
jmp 0x327e0
decb %al
movl $0x1, %ebx
movl %eax, %ecx
shlq %cl, %rbx
movq -0x40(%rbp), %r14
movq %r14, %rcx
orq -0x38(%rbp), %rcx
movzbl %al, %eax
btq %rax, %rcx
jb 0x327d8
movq -0x30(%rbp), %rax
cmpq %r15, %rax
jae 0x327d8
leaq 0x1(%rax), %rcx
movq %rcx, -0x30(%rbp)
cmpb $0x3d, (%rax)
jne 0x327d8
leaq -0x30(%rbp), %rdi
leaq 0x2c7fc3(%rip), %rsi # 0x2fa710
movl $0x9, %edx
movq %r15, %rcx
callq 0x32321
cmpl $0x1, %eax
je 0x32777
cmpl $0x2, %eax
je 0x3276e
testl %eax, %eax
je 0x327d8
testq %rbx, -0x50(%rbp)
je 0x32777
orq %rbx, %r14
movq %r14, -0x40(%rbp)
jmp 0x3277b
orq %rbx, -0x38(%rbp)
movl %r13d, %ebx
movq -0x30(%rbp), %r14
cmpq %r15, %r14
jae 0x327f4
cmpb $0x2c, (%r14)
jne 0x327e0
incq %r14
movq %r14, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
movq -0x60(%rbp), %rsi
movl $0x9, %edx
movq %r15, %rcx
callq 0x32321
movl %ebx, %r13d
movq %r14, %r12
testl %eax, %eax
jne 0x326eb
jmp 0x327e3
movq $-0x1, %rdx
xorl %ecx, %ecx
jmp 0x3280a
xorl %ebx, %ebx
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
jmp 0x327e3
movq %r12, %r14
movl %r13d, %ebx
jmp 0x327e3
movq %r12, %r14
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rcx
movq %r14, (%rcx)
subl %r14d, %r15d
movl %r15d, (%rax)
testb %bl, %bl
movq -0x58(%rbp), %rax
cmovneq -0x50(%rbp), %rax
movq -0x38(%rbp), %rdx
notq %rdx
movq -0x40(%rbp), %rcx
orq %rcx, %rax
andq %rdx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| find_set_from_flags:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_50], rcx
mov rax, rdx
mov [rbp+var_44], esi
mov rcx, [rbp+arg_0]
mov qword ptr [rcx], 0
test r9d, r9d
jz loc_327B9
mov r14, r8
mov rbx, rdi
mov [rbp+var_58], rax
mov r15d, r9d
add r15, r8
lea rdi, [rbp+var_30]
mov [rdi], r8
mov rsi, rbx
mov edx, 9
mov rcx, r15
call find_type_eol
test eax, eax
jz loc_327C4
mov [rbp+var_60], rbx
mov [rbp+var_40], 0
mov [rbp+var_38], 0
xor r13d, r13d
mov r12, r14
loc_326EB:
cmp eax, [rbp+var_44]
jnz short loc_32700
mov bl, 1
test r13b, r13b
jz loc_3277E
jmp loc_327E0
loc_32700:
dec al
mov ebx, 1
mov ecx, eax
shl rbx, cl
mov r14, [rbp+var_40]
mov rcx, r14
or rcx, [rbp+var_38]
movzx eax, al
bt rcx, rax
jb loc_327D8
mov rax, [rbp+var_30]
cmp rax, r15
jnb loc_327D8
lea rcx, [rax+1]
mov [rbp+var_30], rcx
cmp byte ptr [rax], 3Dh ; '='
jnz loc_327D8
lea rdi, [rbp+var_30]
lea rsi, on_off_default_typelib
mov edx, 9
mov rcx, r15
call find_type_eol
cmp eax, 1
jz short loc_32777
cmp eax, 2
jz short loc_3276E
test eax, eax
jz short loc_327D8
test [rbp+var_50], rbx
jz short loc_32777
loc_3276E:
or r14, rbx
mov [rbp+var_40], r14
jmp short loc_3277B
loc_32777:
or [rbp+var_38], rbx
loc_3277B:
mov ebx, r13d
loc_3277E:
mov r14, [rbp+var_30]
cmp r14, r15
jnb short loc_327F4
cmp byte ptr [r14], 2Ch ; ','
jnz short loc_327E0
inc r14
mov [rbp+var_30], r14
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_60]
mov edx, 9
mov rcx, r15
call find_type_eol
mov r13d, ebx
mov r12, r14
test eax, eax
jnz loc_326EB
jmp short loc_327E3
loc_327B9:
mov rdx, 0FFFFFFFFFFFFFFFFh
xor ecx, ecx
jmp short loc_3280A
loc_327C4:
xor ebx, ebx
mov [rbp+var_38], 0
mov [rbp+var_40], 0
jmp short loc_327E3
loc_327D8:
mov r14, r12
mov ebx, r13d
jmp short loc_327E3
loc_327E0:
mov r14, r12
loc_327E3:
mov rax, [rbp+arg_8]
mov rcx, [rbp+arg_0]
mov [rcx], r14
sub r15d, r14d
mov [rax], r15d
loc_327F4:
test bl, bl
mov rax, [rbp+var_58]
cmovnz rax, [rbp+var_50]
mov rdx, [rbp+var_38]
not rdx
mov rcx, [rbp+var_40]
loc_3280A:
or rax, rcx
and rax, rdx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long find_set_from_flags(
long long a1,
int a2,
long long a3,
long long a4,
long long a5,
unsigned int a6,
_QWORD *a7,
_DWORD *a8)
{
long long v8; // rax
long long v9; // r14
int v10; // ebx
unsigned __int8 *v11; // r15
int type_eol; // eax
int v13; // r13d
long long v14; // r12
unsigned __int8 v15; // al
long long v16; // rbx
long long v17; // rcx
_BYTE *v18; // rax
int v19; // eax
long long v20; // rdx
long long v21; // rcx
long long v25; // [rsp+20h] [rbp-40h]
long long v26; // [rsp+28h] [rbp-38h]
_QWORD v27[6]; // [rsp+30h] [rbp-30h] BYREF
v8 = a3;
*a7 = 0LL;
if ( a6 )
{
v9 = a5;
v10 = a1;
v11 = (unsigned __int8 *)(a5 + a6);
v27[0] = a5;
type_eol = find_type_eol(v27, a1, 9, v11);
if ( type_eol )
{
v25 = 0LL;
v26 = 0LL;
v13 = 0;
v14 = v9;
while ( 1 )
{
if ( type_eol == a2 )
{
LOBYTE(v10) = 1;
if ( (_BYTE)v13 )
break;
}
else
{
v15 = type_eol - 1;
v16 = 1LL << v15;
v17 = v26 | v25;
if ( _bittest64(&v17, v15)
|| (v18 = (_BYTE *)v27[0], v27[0] >= (unsigned long long)v11)
|| (++v27[0], *v18 != 61) )
{
LABEL_23:
v9 = v14;
LOBYTE(v10) = v13;
goto LABEL_25;
}
v19 = find_type_eol(v27, (long long)&on_off_default_typelib, 9, v11);
switch ( v19 )
{
case 1:
goto LABEL_15;
case 2:
goto LABEL_14;
case 0:
goto LABEL_23;
}
if ( (v16 & a4) != 0 )
LABEL_14:
v25 |= v16;
else
LABEL_15:
v26 |= v16;
v10 = v13;
}
if ( v27[0] >= (unsigned long long)v11 )
goto LABEL_26;
if ( *(_BYTE *)v27[0] != 44 )
break;
v9 = ++v27[0];
type_eol = find_type_eol(v27, a1, 9, v11);
v13 = v10;
v14 = v9;
if ( !type_eol )
goto LABEL_25;
}
v9 = v14;
}
else
{
LOBYTE(v10) = 0;
v26 = 0LL;
v25 = 0LL;
}
LABEL_25:
*a7 = v9;
*a8 = (_DWORD)v11 - v9;
LABEL_26:
v8 = a3;
if ( (_BYTE)v10 )
v8 = a4;
v20 = ~v26;
v21 = v25;
}
else
{
v20 = -1LL;
v21 = 0LL;
}
return v20 & (v21 | v8);
}
| find_set_from_flags:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RBP + -0x50],RCX
MOV RAX,RDX
MOV dword ptr [RBP + -0x44],ESI
MOV RCX,qword ptr [RBP + 0x10]
MOV qword ptr [RCX],0x0
TEST R9D,R9D
JZ 0x001327b9
MOV R14,R8
MOV RBX,RDI
MOV qword ptr [RBP + -0x58],RAX
MOV R15D,R9D
ADD R15,R8
LEA RDI,[RBP + -0x30]
MOV qword ptr [RDI],R8
MOV RSI,RBX
MOV EDX,0x9
MOV RCX,R15
CALL 0x00132321
TEST EAX,EAX
JZ 0x001327c4
MOV qword ptr [RBP + -0x60],RBX
MOV qword ptr [RBP + -0x40],0x0
MOV qword ptr [RBP + -0x38],0x0
XOR R13D,R13D
MOV R12,R14
LAB_001326eb:
CMP EAX,dword ptr [RBP + -0x44]
JNZ 0x00132700
MOV BL,0x1
TEST R13B,R13B
JZ 0x0013277e
JMP 0x001327e0
LAB_00132700:
DEC AL
MOV EBX,0x1
MOV ECX,EAX
SHL RBX,CL
MOV R14,qword ptr [RBP + -0x40]
MOV RCX,R14
OR RCX,qword ptr [RBP + -0x38]
MOVZX EAX,AL
BT RCX,RAX
JC 0x001327d8
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,R15
JNC 0x001327d8
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBP + -0x30],RCX
CMP byte ptr [RAX],0x3d
JNZ 0x001327d8
LEA RDI,[RBP + -0x30]
LEA RSI,[0x3fa710]
MOV EDX,0x9
MOV RCX,R15
CALL 0x00132321
CMP EAX,0x1
JZ 0x00132777
CMP EAX,0x2
JZ 0x0013276e
TEST EAX,EAX
JZ 0x001327d8
TEST qword ptr [RBP + -0x50],RBX
JZ 0x00132777
LAB_0013276e:
OR R14,RBX
MOV qword ptr [RBP + -0x40],R14
JMP 0x0013277b
LAB_00132777:
OR qword ptr [RBP + -0x38],RBX
LAB_0013277b:
MOV EBX,R13D
LAB_0013277e:
MOV R14,qword ptr [RBP + -0x30]
CMP R14,R15
JNC 0x001327f4
CMP byte ptr [R14],0x2c
JNZ 0x001327e0
INC R14
MOV qword ptr [RBP + -0x30],R14
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x60]
MOV EDX,0x9
MOV RCX,R15
CALL 0x00132321
MOV R13D,EBX
MOV R12,R14
TEST EAX,EAX
JNZ 0x001326eb
JMP 0x001327e3
LAB_001327b9:
MOV RDX,-0x1
XOR ECX,ECX
JMP 0x0013280a
LAB_001327c4:
XOR EBX,EBX
MOV qword ptr [RBP + -0x38],0x0
MOV qword ptr [RBP + -0x40],0x0
JMP 0x001327e3
LAB_001327d8:
MOV R14,R12
MOV EBX,R13D
JMP 0x001327e3
LAB_001327e0:
MOV R14,R12
LAB_001327e3:
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,qword ptr [RBP + 0x10]
MOV qword ptr [RCX],R14
SUB R15D,R14D
MOV dword ptr [RAX],R15D
LAB_001327f4:
TEST BL,BL
MOV RAX,qword ptr [RBP + -0x58]
CMOVNZ RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x38]
NOT RDX
MOV RCX,qword ptr [RBP + -0x40]
LAB_0013280a:
OR RAX,RCX
AND RAX,RDX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong find_set_from_flags(int8 param_1,int param_2,ulong param_3,ulong param_4,char *param_5,
uint param_6,int8 *param_7,int *param_8)
{
bool bVar1;
byte bVar2;
int iVar3;
bool bVar4;
bool bVar5;
ulong uVar6;
char *pcVar7;
ulong local_48;
ulong local_40;
char *local_38;
*param_7 = 0;
if (param_6 == 0) {
local_40 = 0xffffffffffffffff;
local_48 = 0;
}
else {
pcVar7 = param_5 + param_6;
local_38 = param_5;
iVar3 = find_type_eol(&local_38,param_1,9,pcVar7);
if (iVar3 == 0) {
local_40 = 0;
local_48 = 0;
bVar4 = false;
}
else {
local_48 = 0;
local_40 = 0;
bVar5 = false;
do {
if (iVar3 == param_2) {
bVar4 = true;
bVar1 = true;
if (bVar5) break;
}
else {
bVar2 = (char)iVar3 - 1;
uVar6 = 1L << (bVar2 & 0x3f);
bVar4 = bVar5;
if (((((local_48 | local_40) >> ((ulong)bVar2 & 0x3f) & 1) != 0) || (pcVar7 <= local_38))
|| (*local_38 != '=')) break;
local_38 = local_38 + 1;
iVar3 = find_type_eol(&local_38,on_off_default_typelib,9,pcVar7);
bVar1 = bVar5;
if (iVar3 == 1) {
LAB_00132777:
local_40 = local_40 | uVar6;
}
else {
if (iVar3 != 2) {
if (iVar3 == 0) break;
if ((param_4 & uVar6) == 0) goto LAB_00132777;
}
local_48 = local_48 | uVar6;
}
}
bVar5 = bVar1;
if (pcVar7 <= local_38) goto LAB_001327f4;
bVar4 = bVar5;
if (*local_38 != ',') break;
param_5 = local_38 + 1;
local_38 = param_5;
iVar3 = find_type_eol(&local_38,param_1,9,pcVar7);
} while (iVar3 != 0);
}
*param_7 = param_5;
*param_8 = (int)pcVar7 - (int)param_5;
bVar5 = bVar4;
LAB_001327f4:
if (bVar5) {
param_3 = param_4;
}
local_40 = ~local_40;
}
return (param_3 | local_48) & local_40;
}
| |
32,779 | my_strntod_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static double
my_strntod_mb2_or_mb4(CHARSET_INFO *cs,
char *nptr, size_t length,
char **endptr, int *err)
{
char buf[256];
double res;
register char *b= buf;
register const uchar *s= (const uchar*) nptr;
const uchar *end;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int cnv;
*err= 0;
/* Cut too long strings */
if (length >= sizeof(buf))
length= sizeof(buf) - 1;
end= s + length;
while ((cnv= mb_wc(cs, &wc, s, end)) > 0)
{
s+= cnv;
if (wc > (int) (uchar) 'e' || !wc)
break; /* Can't be part of double */
*b++= (char) wc;
}
*endptr= b;
res= my_strtod(buf, endptr, err);
*endptr= nptr + cs->mbminlen * (size_t) (*endptr - buf);
return res;
} | O3 | c | my_strntod_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, -0x150(%rbp)
movq %rsi, %rcx
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rbx
movq %r8, -0x148(%rbp)
movl $0x0, (%r8)
movl $0xff, %r13d
cmpq %r13, %rdx
cmovbq %rdx, %r13
addq %rsi, %r13
leaq -0x140(%rbp), %rsi
movq %rcx, -0x138(%rbp)
movq %rcx, %rdx
movq %r13, %rcx
callq *%rbx
leaq -0x130(%rbp), %r12
testl %eax, %eax
jle 0xc3f6d
movq -0x138(%rbp), %r14
movq -0x140(%rbp), %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x64, %rdx
ja 0xc3f6d
movl %eax, %eax
addq %rax, %r14
movb %cl, (%r12)
incq %r12
movq %r15, %rdi
leaq -0x140(%rbp), %rsi
movq %r14, %rdx
movq %r13, %rcx
callq *%rbx
testl %eax, %eax
jg 0xc3f3a
movq -0x150(%rbp), %rbx
movq %r12, (%rbx)
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq -0x148(%rbp), %rdx
callq 0xd3ae8
movl 0x98(%r15), %eax
movq (%rbx), %rcx
subq %r14, %rcx
imulq %rax, %rcx
movq -0x138(%rbp), %rax
addq %rcx, %rax
movq %rax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xc3fcf
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| my_strntod_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov [rbp+var_150], rcx
mov rcx, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+0B8h]
mov rbx, [rax+28h]
mov [rbp+var_148], r8
mov dword ptr [r8], 0
mov r13d, 0FFh
cmp rdx, r13
cmovb r13, rdx
add r13, rsi
lea rsi, [rbp+var_140]
mov [rbp+var_138], rcx
mov rdx, rcx
mov rcx, r13
call rbx
lea r12, [rbp+var_130]
test eax, eax
jle short loc_C3F6D
mov r14, [rbp+var_138]
loc_C3F3A:
mov rcx, [rbp+var_140]
lea rdx, [rcx-1]
cmp rdx, 64h ; 'd'
ja short loc_C3F6D
mov eax, eax
add r14, rax
mov [r12], cl
inc r12
mov rdi, r15
lea rsi, [rbp+var_140]
mov rdx, r14
mov rcx, r13
call rbx
test eax, eax
jg short loc_C3F3A
loc_C3F6D:
mov rbx, [rbp+var_150]
mov [rbx], r12
lea r14, [rbp+var_130]
mov rdi, r14
mov rsi, rbx
mov rdx, [rbp+var_148]
call my_strtod
mov eax, [r15+98h]
mov rcx, [rbx]
sub rcx, r14
imul rcx, rax
mov rax, [rbp+var_138]
add rax, rcx
mov [rbx], rax
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_C3FCF
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_C3FCF:
call ___stack_chk_fail
| unsigned long long my_strntod_mb2_or_mb4(long long a1, long long a2, unsigned long long a3, _QWORD *a4, _DWORD *a5)
{
long long ( *v5)(long long, long long *, long long, long long); // rbx
long long v6; // r13
long long v7; // r13
int v8; // eax
_BYTE *v9; // r12
long long v10; // r14
long long v14; // [rsp+10h] [rbp-140h] BYREF
long long v15; // [rsp+18h] [rbp-138h]
_BYTE v16[256]; // [rsp+20h] [rbp-130h] BYREF
unsigned long long v17; // [rsp+120h] [rbp-30h]
v17 = __readfsqword(0x28u);
v5 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
*a5 = 0;
v6 = 255LL;
if ( a3 < 0xFF )
v6 = a3;
v7 = a2 + v6;
v15 = a2;
v8 = v5(a1, &v14, a2, v7);
v9 = v16;
if ( v8 > 0 )
{
v10 = v15;
do
{
if ( (unsigned long long)(v14 - 1) > 0x64 )
break;
v10 += (unsigned int)v8;
*v9++ = v14;
v8 = v5(a1, &v14, v10, v7);
}
while ( v8 > 0 );
}
*a4 = v9;
my_strtod(v16, a4, a5);
*a4 = *(unsigned int *)(a1 + 152) * (*a4 - (_QWORD)v16) + v15;
return __readfsqword(0x28u);
}
| my_strntod_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV qword ptr [RBP + -0x150],RCX
MOV RCX,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RBX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x148],R8
MOV dword ptr [R8],0x0
MOV R13D,0xff
CMP RDX,R13
CMOVC R13,RDX
ADD R13,RSI
LEA RSI,[RBP + -0x140]
MOV qword ptr [RBP + -0x138],RCX
MOV RDX,RCX
MOV RCX,R13
CALL RBX
LEA R12,[RBP + -0x130]
TEST EAX,EAX
JLE 0x001c3f6d
MOV R14,qword ptr [RBP + -0x138]
LAB_001c3f3a:
MOV RCX,qword ptr [RBP + -0x140]
LEA RDX,[RCX + -0x1]
CMP RDX,0x64
JA 0x001c3f6d
MOV EAX,EAX
ADD R14,RAX
MOV byte ptr [R12],CL
INC R12
MOV RDI,R15
LEA RSI,[RBP + -0x140]
MOV RDX,R14
MOV RCX,R13
CALL RBX
TEST EAX,EAX
JG 0x001c3f3a
LAB_001c3f6d:
MOV RBX,qword ptr [RBP + -0x150]
MOV qword ptr [RBX],R12
LEA R14,[RBP + -0x130]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x148]
CALL 0x001d3ae8
MOV EAX,dword ptr [R15 + 0x98]
MOV RCX,qword ptr [RBX]
SUB RCX,R14
IMUL RCX,RAX
MOV RAX,qword ptr [RBP + -0x138]
ADD RAX,RCX
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001c3fcf
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001c3fcf:
CALL 0x00129270
|
void my_strntod_mb2_or_mb4
(long param_1,long param_2,ulong param_3,long *param_4,int4 *param_5)
{
code *pcVar1;
uint uVar2;
int1 *puVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
long local_148;
long local_140;
int1 local_138 [256];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
*param_5 = 0;
uVar4 = 0xff;
if (param_3 < 0xff) {
uVar4 = param_3;
}
local_140 = param_2;
uVar2 = (*pcVar1)(param_1,&local_148,param_2,uVar4 + param_2);
puVar3 = local_138;
lVar5 = local_140;
while ((0 < (int)uVar2 && (local_148 - 1U < 0x65))) {
lVar5 = lVar5 + (ulong)uVar2;
*puVar3 = (char)local_148;
puVar3 = puVar3 + 1;
uVar2 = (*pcVar1)(param_1,&local_148,lVar5,uVar4 + param_2);
}
*param_4 = (long)puVar3;
my_strtod(local_138,param_4,param_5);
*param_4 = local_140 + (*param_4 - (long)local_138) * (ulong)*(uint *)(param_1 + 0x98);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
32,780 | my_message_stderr | eloqsql/mysys/my_mess.c | void my_message_stderr(uint error __attribute__((unused)),
const char *str, myf MyFlags)
{
DBUG_ENTER("my_message_stderr");
DBUG_PRINT("enter",("message: %s",str));
(void) fflush(stdout);
if (MyFlags & (ME_NOTE | ME_ERROR_LOG_ONLY))
DBUG_VOID_RETURN;
if (MyFlags & ME_BELL)
(void) fputc('\007', stderr);
if (my_progname)
{
(void)fputs(my_progname,stderr); (void)fputs(": ",stderr);
}
(void)fputs(str,stderr);
(void)fputc('\n',stderr);
(void)fflush(stderr);
DBUG_VOID_RETURN;
} | O3 | c | my_message_stderr:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq 0x2d3850(%rip), %rax # 0x32df88
movq (%rax), %rdi
callq 0x28410
testl $0x480, %r14d # imm = 0x480
je 0x5a74e
popq %rbx
popq %r14
popq %rbp
retq
testb $0x4, %r14b
je 0x5a768
movq 0x2d3865(%rip), %rax # 0x32dfc0
movq (%rax), %rsi
movl $0x7, %edi
callq 0x28490
leaq 0x354311(%rip), %rax # 0x3aea80
movq (%rax), %rdi
testq %rdi, %rdi
je 0x5a77c
callq 0x29e62
movq 0x2d383d(%rip), %r14 # 0x32dfc0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x283e0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x28490
movq (%r14), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x28410
nop
| my_message_stderr:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rdx
mov rbx, rsi
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
test r14d, 480h
jz short loc_5A74E
pop rbx
pop r14
pop rbp
retn
loc_5A74E:
test r14b, 4
jz short loc_5A768
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 7
call _fputc
loc_5A768:
lea rax, my_progname
mov rdi, [rax]
test rdi, rdi
jz short loc_5A77C
call my_message_stderr_cold_1
loc_5A77C:
mov r14, cs:stderr_ptr
mov rsi, [r14]
mov rdi, rbx
call _fputs
mov rsi, [r14]
mov edi, 0Ah
call _fputc
mov rdi, [r14]
pop rbx
pop r14
pop rbp
jmp _fflush
| long long my_message_stderr(long long a1, long long a2, __int16 a3)
{
long long result; // rax
result = fflush(stdout);
if ( (a3 & 0x480) == 0 )
{
if ( (a3 & 4) != 0 )
fputc(7LL, stderr);
if ( my_progname )
my_message_stderr_cold_1((long long)my_progname);
fputs(a2, stderr);
fputc(10LL, stderr);
return fflush(stderr);
}
return result;
}
| my_message_stderr:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RDX
MOV RBX,RSI
MOV RAX,qword ptr [0x0042df88]
MOV RDI,qword ptr [RAX]
CALL 0x00128410
TEST R14D,0x480
JZ 0x0015a74e
POP RBX
POP R14
POP RBP
RET
LAB_0015a74e:
TEST R14B,0x4
JZ 0x0015a768
MOV RAX,qword ptr [0x0042dfc0]
MOV RSI,qword ptr [RAX]
MOV EDI,0x7
CALL 0x00128490
LAB_0015a768:
LEA RAX,[0x4aea80]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x0015a77c
CALL 0x00129e62
LAB_0015a77c:
MOV R14,qword ptr [0x0042dfc0]
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x001283e0
MOV RSI,qword ptr [R14]
MOV EDI,0xa
CALL 0x00128490
MOV RDI,qword ptr [R14]
POP RBX
POP R14
POP RBP
JMP 0x00128410
|
void my_message_stderr(int8 param_1,char *param_2,ulong param_3)
{
int *puVar1;
fflush(*(FILE **)PTR_stdout_0042df88);
if ((param_3 & 0x480) != 0) {
return;
}
if ((param_3 & 4) != 0) {
fputc(7,*(FILE **)PTR_stderr_0042dfc0);
}
if (my_progname != 0) {
my_message_stderr_cold_1();
}
puVar1 = PTR_stderr_0042dfc0;
fputs(param_2,*(FILE **)PTR_stderr_0042dfc0);
fputc(10,*(FILE **)puVar1);
fflush(*(FILE **)puVar1);
return;
}
| |
32,781 | mysql_fetch_row_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_fetch_row_start(MYSQL_ROW *ret, MYSQL_RES *result)
{
MK_ASYNC_START_BODY(
mysql_fetch_row,
result->handle,
{
WIN_SET_NONBLOCKING(result->handle)
parms.result= result;
},
NULL,
r_ptr,
/*
If we already fetched all rows from server (eg. mysql_store_result()),
then result->handle will be NULL and we cannot suspend. But that is fine,
since in this case mysql_fetch_row cannot block anyway. Just return
directly.
*/
if (!result->handle)
{
*ret= mysql_fetch_row(result);
return 0;
})
} | O0 | c | mysql_fetch_row_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x52bca
movq -0x18(%rbp), %rdi
callq 0x3a400
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x52cde
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
leaq 0xf0(%rip), %rsi # 0x52cf0
leaq -0x30(%rbp), %rdx
callq 0x59b10
movl %eax, -0x1c(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x1c(%rbp)
jle 0x52c38
movq -0x28(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x52cde
cmpl $0x0, -0x1c(%rbp)
jge 0x52cc8
jmp 0x52c44
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x2e234(%rip), %rax # 0x80ea0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x97, %rdi
leaq 0x2e212(%rip), %rax # 0x80eb0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x296(%rax)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
jmp 0x52cd7
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_fetch_row_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
cmp qword ptr [rax+78h], 0
jnz short loc_52BCA
mov rdi, [rbp+var_18]
call mysql_fetch_row
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 0
jmp loc_52CDE
loc_52BCA:
mov rax, [rbp+var_18]
mov rax, [rax+78h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_28]
add rdi, 38h ; '8'
lea rsi, mysql_fetch_row_start_internal
lea rdx, [rbp+var_30]
call my_context_spawn
mov [rbp+var_1C], eax
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 0
cmp [rbp+var_1C], 0
jle short loc_52C38
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_52CDE
loc_52C38:
cmp [rbp+var_1C], 0
jge loc_52CC8
jmp short $+2
loc_52C44:
mov rax, [rbp+var_18]
mov rax, [rax+78h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_18]
mov rdi, [rax+78h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+78h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_18]
mov rdi, [rax+78h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+78h]
mov byte ptr [rax+296h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
jmp short loc_52CD7
loc_52CC8:
mov rax, [rbp+var_28]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax], rcx
loc_52CD7:
mov [rbp+var_4], 0
loc_52CDE:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_fetch_row_start(long long *a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-30h] BYREF
unsigned int *v4; // [rsp+8h] [rbp-28h]
int v5; // [rsp+14h] [rbp-1Ch]
long long v6; // [rsp+18h] [rbp-18h]
long long *v7; // [rsp+20h] [rbp-10h]
v7 = a1;
v6 = a2;
if ( *(_QWORD *)(a2 + 120) )
{
v4 = *(unsigned int **)(*(_QWORD *)(*(_QWORD *)(v6 + 120) + 1152LL) + 40LL);
v3 = v6;
*((_BYTE *)v4 + 20) = 1;
v5 = my_context_spawn(v4 + 14, mysql_fetch_row_start_internal, &v3);
*((_BYTE *)v4 + 21) = 0;
*((_BYTE *)v4 + 20) = 0;
if ( v5 <= 0 )
{
if ( v5 >= 0 )
{
*v7 = *((_QWORD *)v4 + 1);
}
else
{
*(_DWORD *)(*(_QWORD *)(v6 + 120) + 144LL) = 2008;
strncpy(*(_QWORD *)(v6 + 120) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(v6 + 120) + 668LL) = 0;
strncpy(*(_QWORD *)(v6 + 120) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(v6 + 120) + 662LL) = 0;
*v7 = 0LL;
}
return 0;
}
else
{
*((_BYTE *)v4 + 21) = 1;
return *v4;
}
}
else
{
*v7 = mysql_fetch_row(v6);
return 0;
}
}
| mysql_fetch_row_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x78],0x0
JNZ 0x00152bca
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013a400
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00152cde
LAB_00152bca:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x78]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x38
LEA RSI,[0x152cf0]
LEA RDX,[RBP + -0x30]
CALL 0x00159b10
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x1c],0x0
JLE 0x00152c38
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00152cde
LAB_00152c38:
CMP dword ptr [RBP + -0x1c],0x0
JGE 0x00152cc8
JMP 0x00152c44
LAB_00152c44:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x78]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x297
LEA RAX,[0x180ea0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x97
LEA RAX,[0x180eb0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x296],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
JMP 0x00152cd7
LAB_00152cc8:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
LAB_00152cd7:
MOV dword ptr [RBP + -0x4],0x0
LAB_00152cde:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_fetch_row_start(int8 *param_1,long param_2)
{
int8 uVar1;
long local_38;
int4 *local_30;
int local_24;
long local_20;
int8 *local_18;
int4 local_c;
local_20 = param_2;
local_18 = param_1;
if (*(long *)(param_2 + 0x78) == 0) {
uVar1 = mysql_fetch_row(param_2);
*local_18 = uVar1;
local_c = 0;
}
else {
local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x78) + 0x480) + 0x28);
*(int1 *)(local_30 + 5) = 1;
local_38 = param_2;
local_24 = my_context_spawn(local_30 + 0xe,mysql_fetch_row_start_internal,&local_38);
*(int1 *)((long)local_30 + 0x15) = 0;
*(int1 *)(local_30 + 5) = 0;
if (local_24 < 1) {
if (local_24 < 0) {
*(int4 *)(*(long *)(local_20 + 0x78) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_20 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_20 + 0x78) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_20 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_00180ef0,
0x1ff);
*(int1 *)(*(long *)(local_20 + 0x78) + 0x296) = 0;
*local_18 = 0;
}
else {
*local_18 = *(int8 *)(local_30 + 2);
}
local_c = 0;
}
else {
*(int1 *)((long)local_30 + 0x15) = 1;
local_c = *local_30;
}
}
return local_c;
}
| |
32,782 | mysql_fetch_row_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_fetch_row_start(MYSQL_ROW *ret, MYSQL_RES *result)
{
MK_ASYNC_START_BODY(
mysql_fetch_row,
result->handle,
{
WIN_SET_NONBLOCKING(result->handle)
parms.result= result;
},
NULL,
r_ptr,
/*
If we already fetched all rows from server (eg. mysql_store_result()),
then result->handle will be NULL and we cannot suspend. But that is fine,
since in this case mysql_fetch_row cannot block anyway. Just return
directly.
*/
if (!result->handle)
{
*ret= mysql_fetch_row(result);
return 0;
})
} | O3 | c | mysql_fetch_row_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x78(%rsi), %rax
testq %rax, %rax
je 0x3a6b2
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0xa1(%rip), %rsi # 0x3a739
callq 0x3ef58
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x3a6bf
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x3a72e
movq %r14, %rdi
callq 0x2ccf4
movq %rax, (%rbx)
jmp 0x3a72c
js 0x3a6c7
movq 0x8(%r15), %r15
jmp 0x3a729
movq 0x78(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x78(%r14), %rdi
leaq 0x2830b(%rip), %rax # 0x629f0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x14230
movq 0x78(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x78(%r14), %rdi
leaq 0x282f0(%rip), %rax # 0x62a00
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14230
movq 0x78(%r14), %rax
movb %r15b, 0x296(%rax)
movq %r15, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mysql_fetch_row_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+78h]
test rax, rax
jz short loc_3A6B2
mov rax, [rax+480h]
mov r15, [rax+28h]
lea rdx, [rbp+var_20]
mov [rdx], r14
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_fetch_row_start_internal
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_3A6BF
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_3A72E
loc_3A6B2:
mov rdi, r14
call mysql_fetch_row
mov [rbx], rax
jmp short loc_3A72C
loc_3A6BF:
js short loc_3A6C7
mov r15, [r15+8]
jmp short loc_3A729
loc_3A6C7:
mov rax, [r14+78h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+78h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+78h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+78h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+78h]
mov [rax+296h], r15b
loc_3A729:
mov [rbx], r15
loc_3A72C:
xor eax, eax
loc_3A72E:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mysql_fetch_row_start(long long *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
unsigned int *v4; // r15
int v5; // eax
long long v7; // r15
long long v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v2;
v3 = *(_QWORD *)(a2 + 120);
if ( v3 )
{
v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL);
v8[0] = a2;
*((_BYTE *)v4 + 20) = 1;
v5 = my_context_spawn(v4 + 14, mysql_fetch_row_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 > 0 )
{
*((_BYTE *)v4 + 21) = 1;
return *v4;
}
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 120) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 120) + 663LL, SQLSTATE_UNKNOWN, 5LL);
v7 = 0LL;
*(_BYTE *)(*(_QWORD *)(a2 + 120) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 120) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 120) + 662LL) = 0;
}
else
{
v7 = *((_QWORD *)v4 + 1);
}
*a1 = v7;
}
else
{
*a1 = mysql_fetch_row(a2);
}
return 0LL;
}
| mysql_fetch_row_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x78]
TEST RAX,RAX
JZ 0x0013a6b2
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX],R14
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x13a739]
CALL 0x0013ef58
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0013a6bf
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0013a72e
LAB_0013a6b2:
MOV RDI,R14
CALL 0x0012ccf4
MOV qword ptr [RBX],RAX
JMP 0x0013a72c
LAB_0013a6bf:
JS 0x0013a6c7
MOV R15,qword ptr [R15 + 0x8]
JMP 0x0013a729
LAB_0013a6c7:
MOV RAX,qword ptr [R14 + 0x78]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x78]
LEA RAX,[0x1629f0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00114230
MOV RAX,qword ptr [R14 + 0x78]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x78]
LEA RAX,[0x162a00]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00114230
MOV RAX,qword ptr [R14 + 0x78]
MOV byte ptr [RAX + 0x296],R15B
LAB_0013a729:
MOV qword ptr [RBX],R15
LAB_0013a72c:
XOR EAX,EAX
LAB_0013a72e:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_fetch_row_start(int8 *param_1,long param_2)
{
int4 *puVar1;
int iVar2;
int8 uVar3;
if (*(long *)(param_2 + 0x78) == 0) {
uVar3 = mysql_fetch_row(param_2);
*param_1 = uVar3;
}
else {
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x78) + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
iVar2 = my_context_spawn(puVar1 + 0xe,mysql_fetch_row_start_internal);
*(int2 *)(puVar1 + 5) = 0;
if (0 < iVar2) {
*(int1 *)((long)puVar1 + 0x15) = 1;
return *puVar1;
}
if (iVar2 < 0) {
*(int4 *)(*(long *)(param_2 + 0x78) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5);
uVar3 = 0;
*(int1 *)(*(long *)(param_2 + 0x78) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_00162a40,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x78) + 0x296) = 0;
}
else {
uVar3 = *(int8 *)(puVar1 + 2);
}
*param_1 = uVar3;
}
return 0;
}
| |
32,783 | ma_scan_end_block_record | eloqsql/storage/maria/ma_blockrec.c | void _ma_scan_end_block_record(MARIA_HA *info)
{
DBUG_ENTER("_ma_scan_end_block_record");
my_free(info->scan.bitmap_buff);
info->scan.bitmap_buff= 0;
if (info->scan_save)
{
my_free(info->scan_save);
info->scan_save= 0;
}
DBUG_VOID_RETURN;
} | O0 | c | ma_scan_end_block_record:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x220(%rax), %rdi
callq 0xc1ae80
movq -0x8(%rbp), %rax
movq $0x0, 0x220(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x280(%rax)
je 0xb52be8
movq -0x8(%rbp), %rax
movq 0x280(%rax), %rdi
callq 0xc1ae80
movq -0x8(%rbp), %rax
movq $0x0, 0x280(%rax)
jmp 0xb52bea
jmp 0xb52bec
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_scan_end_block_record:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rdi, [rax+220h]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+220h], 0
mov rax, [rbp+var_8]
cmp qword ptr [rax+280h], 0
jz short loc_B52BE8
mov rax, [rbp+var_8]
mov rdi, [rax+280h]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+280h], 0
loc_B52BE8:
jmp short $+2
loc_B52BEA:
jmp short $+2
loc_B52BEC:
add rsp, 10h
pop rbp
retn
| long long ma_scan_end_block_record(long long a1)
{
long long result; // rax
my_free(*(_QWORD *)(a1 + 544));
*(_QWORD *)(a1 + 544) = 0LL;
result = a1;
if ( *(_QWORD *)(a1 + 640) )
{
my_free(*(_QWORD *)(a1 + 640));
result = a1;
*(_QWORD *)(a1 + 640) = 0LL;
}
return result;
}
| add_range:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
OR EAX,ECX
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00b52bde
MOV EAX,dword ptr [RBP + -0x24]
AND EAX,0x2
CMP EAX,0x0
JZ 0x00b52bde
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00b52d3f
LAB_00b52bde:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x00b52c5f
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x00b52c5f
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x4],0x0
JZ 0x00b52c2c
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
CMP byte ptr [RAX],0x0
JZ 0x00b52c2c
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x28]
CMP byte ptr [RAX],0x0
JZ 0x00b52c2c
MOV EAX,dword ptr [RBP + -0x24]
OR EAX,0x40
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00b52c5d
LAB_00b52c2c:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RCX + 0x28]
MOV EAX,dword ptr [RAX + 0x90]
MOV EDX,EAX
CALL 0x00534c80
CMP EAX,0x0
JNZ 0x00b52c5b
MOV EAX,dword ptr [RBP + -0x24]
OR EAX,0x20
MOV dword ptr [RBP + -0x24],EAX
LAB_00b52c5b:
JMP 0x00b52c5d
LAB_00b52c5d:
JMP 0x00b52c5f
LAB_00b52c5f:
MOV EDI,0x28
CALL 0x005d3ef0
MOV RCX,RAX
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RBP + -0x31],0x0
XOR EAX,EAX
CMP RCX,0x0
MOV qword ptr [RBP + -0x58],RAX
JZ 0x00b52ce4
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x30],RDI
MOV byte ptr [RBP + -0x31],0x1
MOV RAX,qword ptr [RCX + 0x48]
MOV RSI,qword ptr [RAX + 0x1a0]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX + 0x20]
MOV ECX,dword ptr [RCX + 0x90]
MOV dword ptr [RBP + -0x64],ECX
MOV CL,byte ptr [RAX + 0x3]
MOV R8D,0x2
SHL R8,CL
MOV ECX,dword ptr [RBP + -0x64]
DEC R8
MOV R9,qword ptr [RAX + 0x28]
MOV R10D,dword ptr [RBP + -0x24]
LAB_00b52cc6:
MOV RAX,RSP
MOV dword ptr [RAX + 0x10],R10D
MOV qword ptr [RAX + 0x8],R8
MOV dword ptr [RAX],ECX
CALL 0x00b5d110
LAB_00b52cd8:
JMP 0x00b52cda
LAB_00b52cda:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00b52ce4
LAB_00b52ce4:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x00b52d1d
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00b52d3f
LAB_00b52d1d:
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,0xa8
LEA RSI,[RBP + -0x20]
CALL 0x00cf7b10
CMP AL,0x0
JZ 0x00b52d3b
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00b52d3f
LAB_00b52d3b:
MOV byte ptr [RBP + -0x1],0x0
LAB_00b52d3f:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x80
POP RBP
RET
|
/* QUICK_GROUP_MIN_MAX_SELECT::add_range(SEL_ARG*) */
int1 __thiscall
QUICK_GROUP_MIN_MAX_SELECT::add_range(QUICK_GROUP_MIN_MAX_SELECT *this,SEL_ARG *param_1)
{
byte bVar1;
char cVar2;
int iVar3;
QUICK_RANGE *this_00;
SEL_ARG *__s2;
ulong uVar4;
QUICK_RANGE *local_60;
uint local_2c;
QUICK_RANGE *local_28;
SEL_ARG *local_20;
QUICK_GROUP_MIN_MAX_SELECT *local_18;
int1 local_9;
bVar1 = (byte)*param_1 | (byte)param_1[1];
local_2c = (uint)bVar1;
if (((bVar1 & 1) == 0) || ((bVar1 & 2) == 0)) {
__s2 = param_1;
local_20 = param_1;
local_18 = this;
if ((((byte)*param_1 & 1) == 0) && (((byte)param_1[1] & 2) == 0)) {
if (((param_1[4] == (SEL_ARG)0x0) || (**(char **)(param_1 + 0x20) == '\0')) ||
(**(char **)(param_1 + 0x28) == '\0')) {
__s2 = *(SEL_ARG **)(param_1 + 0x28);
iVar3 = memcmp(*(void **)(param_1 + 0x20),__s2,(ulong)*(uint *)(this + 0x90));
if (iVar3 == 0) {
local_2c = local_2c | 0x20;
}
}
else {
local_2c = local_2c | 0x40;
}
}
this_00 = (QUICK_RANGE *)Sql_alloc::operator_new((Sql_alloc *)0x28,(ulong)__s2);
local_60 = (QUICK_RANGE *)0x0;
if (this_00 != (QUICK_RANGE *)0x0) {
uVar4 = (2L << ((byte)local_20[3] & 0x3f)) - 1;
/* try { // try from 00b52cc6 to 00b52cd7 has its CatchHandler @ 00b52cf9 */
QUICK_RANGE::QUICK_RANGE
(this_00,*(THD **)(*(long *)(this + 0x48) + 0x1a0),*(uchar **)(local_20 + 0x20),
*(uint *)(this + 0x90),uVar4,*(uchar **)(local_20 + 0x28),*(uint *)(this + 0x90),
uVar4,local_2c);
local_60 = this_00;
}
local_28 = local_60;
if (local_60 == (QUICK_RANGE *)0x0) {
local_9 = 1;
}
else {
cVar2 = insert_dynamic(this + 0xa8,&local_28);
if (cVar2 == '\0') {
local_9 = 0;
}
else {
local_9 = 1;
}
}
}
else {
local_9 = 0;
}
return local_9;
}
| |
32,784 | add_var_this | bluesky950520[P]quickjs/quickjs.c | static int add_var_this(JSContext *ctx, JSFunctionDef *fd)
{
int idx;
idx = add_var(ctx, fd, JS_ATOM_this);
if (idx >= 0 && fd->is_derived_class_constructor) {
JSVarDef *vd = &fd->vars[idx];
/* XXX: should have is_this flag or var type */
vd->is_lexical = 1; /* used to trigger 'uninitialized' checks
in a derived class constructor */
}
return idx;
} | O0 | c | add_var_this:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl $0x8, %edx
callq 0x9cf30
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jl 0xb75b6
movq 0x18(%rsp), %rax
cmpl $0x0, 0x78(%rax)
je 0xb75b6
movq 0x18(%rsp), %rax
movq 0x90(%rax), %rax
movslq 0x14(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl 0xc(%rax), %ecx
andl $-0x3, %ecx
orl $0x2, %ecx
movl %ecx, 0xc(%rax)
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
nop
| add_var_this:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
mov edx, 8
call add_var
mov [rsp+28h+var_14], eax
cmp [rsp+28h+var_14], 0
jl short loc_B75B6
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+78h], 0
jz short loc_B75B6
mov rax, [rsp+28h+var_10]
mov rax, [rax+90h]
movsxd rcx, [rsp+28h+var_14]
shl rcx, 4
add rax, rcx
mov [rsp+28h+var_20], rax
mov rax, [rsp+28h+var_20]
mov ecx, [rax+0Ch]
and ecx, 0FFFFFFFDh
or ecx, 2
mov [rax+0Ch], ecx
loc_B75B6:
mov eax, [rsp+28h+var_14]
add rsp, 28h
retn
| long long add_var_this(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
long long v14; // rax
int v16; // [rsp+14h] [rbp-14h]
v16 = add_var(a1, a2, 8u, a12, a13, a14, a3, a4, a5, a6, a7, a8, a9, a10);
if ( v16 >= 0 && *(_DWORD *)(a2 + 120) )
{
v14 = 16LL * v16 + *(_QWORD *)(a2 + 144);
*(_DWORD *)(v14 + 12) = *(_DWORD *)(v14 + 12) & 0xFFFFFFFD | 2;
}
return (unsigned int)v16;
}
| add_var_this:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
MOV EDX,0x8
CALL 0x0019cf30
MOV dword ptr [RSP + 0x14],EAX
CMP dword ptr [RSP + 0x14],0x0
JL 0x001b75b6
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x78],0x0
JZ 0x001b75b6
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x90]
MOVSXD RCX,dword ptr [RSP + 0x14]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RAX + 0xc]
AND ECX,0xfffffffd
OR ECX,0x2
MOV dword ptr [RAX + 0xc],ECX
LAB_001b75b6:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x28
RET
|
int add_var_this(int8 param_1,long param_2)
{
int iVar1;
long lVar2;
iVar1 = add_var(param_1,param_2,8);
if ((-1 < iVar1) && (*(int *)(param_2 + 0x78) != 0)) {
lVar2 = *(long *)(param_2 + 0x90) + (long)iVar1 * 0x10;
*(uint *)(lVar2 + 0xc) = *(uint *)(lVar2 + 0xc) & 0xfffffffd | 2;
}
return iVar1;
}
| |
32,785 | add_var_this | bluesky950520[P]quickjs/quickjs.c | static int add_var_this(JSContext *ctx, JSFunctionDef *fd)
{
int idx;
idx = add_var(ctx, fd, JS_ATOM_this);
if (idx >= 0 && fd->is_derived_class_constructor) {
JSVarDef *vd = &fd->vars[idx];
/* XXX: should have is_this flag or var type */
vd->is_lexical = 1; /* used to trigger 'uninitialized' checks
in a derived class constructor */
}
return idx;
} | O2 | c | add_var_this:
pushq %rbx
movq %rsi, %rbx
pushq $0x8
popq %rdx
callq 0x4fa5f
testl %eax, %eax
js 0x5b546
cmpl $0x0, 0x78(%rbx)
je 0x5b546
movq 0x90(%rbx), %rcx
movl %eax, %edx
shlq $0x4, %rdx
orl $0x2, 0xc(%rcx,%rdx)
popq %rbx
retq
| add_var_this:
push rbx
mov rbx, rsi
push 8
pop rdx
call add_var
test eax, eax
js short loc_5B546
cmp dword ptr [rbx+78h], 0
jz short loc_5B546
mov rcx, [rbx+90h]
mov edx, eax
shl rdx, 4
or dword ptr [rcx+rdx+0Ch], 2
loc_5B546:
pop rbx
retn
| long long add_var_this(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
long long result; // rax
result = add_var(a1, a2, 8, a12, a3, a4, a5, a6, a7, a8, a9, a10, a13, a14);
if ( (int)result >= 0 )
{
if ( *(_DWORD *)(a2 + 120) )
*(_DWORD *)(*(_QWORD *)(a2 + 144) + 16LL * (unsigned int)result + 12) |= 2u;
}
return result;
}
| add_var_this:
PUSH RBX
MOV RBX,RSI
PUSH 0x8
POP RDX
CALL 0x0014fa5f
TEST EAX,EAX
JS 0x0015b546
CMP dword ptr [RBX + 0x78],0x0
JZ 0x0015b546
MOV RCX,qword ptr [RBX + 0x90]
MOV EDX,EAX
SHL RDX,0x4
OR dword ptr [RCX + RDX*0x1 + 0xc],0x2
LAB_0015b546:
POP RBX
RET
|
void add_var_this(int8 param_1,long param_2)
{
uint *puVar1;
uint uVar2;
uVar2 = add_var(param_1,param_2,8);
if ((-1 < (int)uVar2) && (*(int *)(param_2 + 0x78) != 0)) {
puVar1 = (uint *)(*(long *)(param_2 + 0x90) + 0xc + (ulong)uVar2 * 0x10);
*puVar1 = *puVar1 | 2;
}
return;
}
| |
32,786 | list_reverse | eloqsql/mysys/list.c | LIST *list_reverse(LIST *root)
{
LIST *last;
last=root;
while (root)
{
last=root;
root=root->next;
last->next=last->prev;
last->prev=root;
}
return last;
} | O0 | c | list_reverse:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x73627
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x735f0
movq -0x10(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| list_reverse:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
loc_735F0:
cmp [rbp+var_8], 0
jz short loc_73627
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rcx, [rbp+var_8]
mov rax, [rbp+var_10]
mov [rax], rcx
jmp short loc_735F0
loc_73627:
mov rax, [rbp+var_10]
pop rbp
retn
| _QWORD * list_reverse(_QWORD *a1)
{
_QWORD *v2; // [rsp+0h] [rbp-10h]
_QWORD *v3; // [rsp+8h] [rbp-8h]
v3 = a1;
v2 = a1;
while ( v3 )
{
v2 = v3;
v3 = (_QWORD *)v3[1];
v2[1] = *v2;
*v2 = v3;
}
return v2;
}
| list_reverse:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
LAB_001735f0:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00173627
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001735f0
LAB_00173627:
MOV RAX,qword ptr [RBP + -0x10]
POP RBP
RET
|
int8 * list_reverse(int8 *param_1)
{
int8 *puVar1;
int8 *local_18;
int8 *local_10;
local_18 = param_1;
local_10 = param_1;
while (local_10 != (int8 *)0x0) {
local_18 = local_10;
puVar1 = (int8 *)local_10[1];
local_10[1] = *local_10;
*local_10 = puVar1;
local_10 = puVar1;
}
return local_18;
}
| |
32,787 | ha_federated::cmp_ref(unsigned char const*, unsigned char const*) | eloqsql/storage/federated/ha_federated.h | int cmp_ref(const uchar *ref1, const uchar *ref2)
{
#ifdef NOT_YET
DBUG_ASSERT(0);
return 0;
#else
return handler::cmp_ref(ref1,ref2); /* Works if table scan is used */
#endif
} | O3 | c | ha_federated::cmp_ref(unsigned char const*, unsigned char const*):
pushq %rbp
movq %rsp, %rbp
movl 0x1a4(%rdi), %eax
movq %rsi, %rdi
movq %rdx, %rsi
movq %rax, %rdx
popq %rbp
jmp 0x81a0
nop
| _ZN12ha_federated7cmp_refEPKhS1_:
push rbp
mov rbp, rsp
mov eax, [rdi+1A4h]
mov rdi, rsi
mov rsi, rdx
mov rdx, rax
pop rbp
jmp _memcmp
| long long ha_federated::cmp_ref(ha_federated *this, const unsigned __int8 *a2, const unsigned __int8 *a3)
{
return memcmp(a2, a3, *((unsigned int *)this + 105));
}
| cmp_ref:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RDI + 0x1a4]
MOV RDI,RSI
MOV RSI,RDX
MOV RDX,RAX
POP RBP
JMP 0x001081a0
|
/* ha_federated::cmp_ref(unsigned char const*, unsigned char const*) */
void __thiscall ha_federated::cmp_ref(ha_federated *this,uchar *param_1,uchar *param_2)
{
memcmp(param_1,param_2,(ulong)*(uint *)(this + 0x1a4));
return;
}
| |
32,788 | remove_reader | eloqsql/mysys/mf_keycache.c | static void remove_reader(BLOCK_LINK *block)
{
DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE));
DBUG_ASSERT(block->hash_link && block->hash_link->block == block);
DBUG_ASSERT(block->prev_changed && *block->prev_changed == block);
DBUG_ASSERT(!block->next_used);
DBUG_ASSERT(!block->prev_used);
DBUG_ASSERT(block->hash_link->requests);
if (! --block->hash_link->requests && block->condvar)
keycache_pthread_cond_signal(block->condvar);
} | O3 | c | remove_reader:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x20(%rdi), %rax
decl 0x28(%rax)
je 0x9f78e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x68(%rdi), %rbx
testq %rbx, %rbx
je 0x9f787
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
jne 0x9f7ae
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2a5d0
leaq 0x2f42a3(%rip), %rax # 0x393a58
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x9f7a0
| remove_reader:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi+20h]
dec dword ptr [rax+28h]
jz short loc_9F78E
loc_9F787:
add rsp, 8
pop rbx
pop rbp
retn
loc_9F78E:
mov rbx, [rdi+68h]
test rbx, rbx
jz short loc_9F787
mov rdi, [rbx+30h]
test rdi, rdi
jnz short loc_9F7AE
loc_9F7A0:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_cond_signal
loc_9F7AE:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_9F7A0
| long long remove_reader(long long a1)
{
long long result; // rax
long long v3; // rbx
long long v4; // rdi
result = *(_QWORD *)(a1 + 32);
if ( (*(_DWORD *)(result + 40))-- == 1 )
{
v3 = *(_QWORD *)(a1 + 104);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 48);
if ( v4 )
((void ( *)(long long))PSI_server[46])(v4);
return pthread_cond_signal(v3);
}
}
return result;
}
| remove_reader:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI + 0x20]
DEC dword ptr [RAX + 0x28]
JZ 0x0019f78e
LAB_0019f787:
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_0019f78e:
MOV RBX,qword ptr [RDI + 0x68]
TEST RBX,RBX
JZ 0x0019f787
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JNZ 0x0019f7ae
LAB_0019f7a0:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0012a5d0
LAB_0019f7ae:
LEA RAX,[0x493a58]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x0019f7a0
|
void remove_reader(long param_1)
{
int *piVar1;
pthread_cond_t *__cond;
piVar1 = (int *)(*(long *)(param_1 + 0x20) + 0x28);
*piVar1 = *piVar1 + -1;
if ((*piVar1 == 0) &&
(__cond = *(pthread_cond_t **)(param_1 + 0x68), __cond != (pthread_cond_t *)0x0)) {
if (__cond[1].__align != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal(__cond);
return;
}
return;
}
| |
32,789 | print_conn_args | eloqsql/client/mysql_upgrade.c | static void print_conn_args(const char *tool_name)
{
if (opt_verbose < 2)
return;
if (conn_args.str[0])
verbose("Running '%s' with connection arguments: %s", tool_name,
conn_args.str);
else
verbose("Running '%s with default connection arguments", tool_name);
} | O0 | c | print_conn_args:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpl $0x2, 0x3d25e9(%rip) # 0x3fe6cc
jae 0x2c0e7
jmp 0x2c120
movq 0x3d1c9a(%rip), %rax # 0x3fdd88
cmpb $0x0, (%rax)
je 0x2c10e
movq -0x8(%rbp), %rsi
movq 0x3d1c8a(%rip), %rdx # 0x3fdd88
leaq 0xc13ad(%rip), %rdi # 0xed4b2
movb $0x0, %al
callq 0x2b2e0
jmp 0x2c120
movq -0x8(%rbp), %rsi
leaq 0xc13c4(%rip), %rdi # 0xed4dd
movb $0x0, %al
callq 0x2b2e0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| print_conn_args:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
cmp cs:opt_verbose, 2
jnb short loc_2C0E7
jmp short loc_2C120
loc_2C0E7:
mov rax, cs:conn_args
cmp byte ptr [rax], 0
jz short loc_2C10E
mov rsi, [rbp+var_8]
mov rdx, cs:conn_args
lea rdi, aRunningSWithCo; "Running '%s' with connection arguments:"...
mov al, 0
call verbose
jmp short loc_2C120
loc_2C10E:
mov rsi, [rbp+var_8]
lea rdi, aRunningSWithDe; "Running '%s with default connection arg"...
mov al, 0
call verbose
loc_2C120:
add rsp, 10h
pop rbp
retn
| _DWORD * print_conn_args(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
_DWORD *result; // rax
char v15; // [rsp+0h] [rbp-10h]
if ( (unsigned int)opt_verbose >= 2 )
{
if ( *(_BYTE *)conn_args )
return verbose(
(long long)"Running '%s' with connection arguments: %s",
a1,
conn_args,
a12,
a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
v15);
else
return verbose(
(long long)"Running '%s with default connection arguments",
a1,
a11,
a12,
a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
v15);
}
return result;
}
| print_conn_args:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
CMP dword ptr [0x004fe6cc],0x2
JNC 0x0012c0e7
JMP 0x0012c120
LAB_0012c0e7:
MOV RAX,qword ptr [0x004fdd88]
CMP byte ptr [RAX],0x0
JZ 0x0012c10e
MOV RSI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [0x004fdd88]
LEA RDI,[0x1ed4b2]
MOV AL,0x0
CALL 0x0012b2e0
JMP 0x0012c120
LAB_0012c10e:
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1ed4dd]
MOV AL,0x0
CALL 0x0012b2e0
LAB_0012c120:
ADD RSP,0x10
POP RBP
RET
|
void print_conn_args(int8 param_1)
{
if (1 < opt_verbose) {
if (*conn_args == '\0') {
verbose("Running \'%s with default connection arguments",param_1);
}
else {
verbose("Running \'%s\' with connection arguments: %s",param_1,conn_args);
}
}
return;
}
| |
32,790 | ma_columndef_read | eloqsql/storage/maria/ma_open.c | uchar *_ma_columndef_read(uchar *ptr, MARIA_COLUMNDEF *columndef)
{
uint high_offset;
columndef->column_nr= mi_uint2korr(ptr); ptr+= 2;
columndef->offset= mi_uint2korr(ptr); ptr+= 2;
columndef->type= mi_sint2korr(ptr); ptr+= 2;
columndef->length= mi_uint2korr(ptr); ptr+= 2;
columndef->fill_length= mi_uint2korr(ptr); ptr+= 2;
columndef->null_pos= mi_uint2korr(ptr); ptr+= 2;
columndef->empty_pos= mi_uint2korr(ptr); ptr+= 2;
columndef->null_bit= (uint8) *ptr++;
columndef->empty_bit= (uint8) *ptr++;
high_offset= mi_uint2korr(ptr); ptr+= 2;
columndef->offset|= ((ulong) high_offset << 16);
ptr+= 2;
return ptr;
} | O0 | c | ma_columndef_read:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xa(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
cwtl
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movswl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movswl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x8(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x12(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x13(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %edx
shlq $0x10, %rdx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
orq %rdx, %rcx
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_columndef_read:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Ah], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx ecx, ax
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
cwde
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movsx ecx, cx
shl ecx, 8
or eax, ecx
movsx ecx, ax
mov rax, [rbp+var_10]
mov [rax], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+8], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Ch], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Eh], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+10h], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+12h], cl
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+13h], cl
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_14], eax
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov eax, [rbp+var_14]
mov edx, eax
shl rdx, 10h
mov rax, [rbp+var_10]
mov ecx, [rax+4]
or rcx, rdx
mov [rax+4], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
pop rbp
retn
| long long ma_columndef_read(long long a1, long long a2)
{
*(_WORD *)(a2 + 10) = _byteswap_ushort(*(_WORD *)a1);
*(_DWORD *)(a2 + 4) = _byteswap_ushort(*(_WORD *)(a1 + 2));
*(_DWORD *)a2 = (__int16)_byteswap_ushort(*(_WORD *)(a1 + 4));
*(_WORD *)(a2 + 8) = _byteswap_ushort(*(_WORD *)(a1 + 6));
*(_WORD *)(a2 + 12) = _byteswap_ushort(*(_WORD *)(a1 + 8));
*(_WORD *)(a2 + 14) = _byteswap_ushort(*(_WORD *)(a1 + 10));
*(_WORD *)(a2 + 16) = _byteswap_ushort(*(_WORD *)(a1 + 12));
*(_BYTE *)(a2 + 18) = *(_BYTE *)(a1 + 14);
*(_BYTE *)(a2 + 19) = *(_BYTE *)(a1 + 15);
*(_DWORD *)(a2 + 4) |= _byteswap_ushort(*(_WORD *)(a1 + 16)) << 16;
return a1 + 20;
}
| _ma_columndef_read:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xa],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
CWDE
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVSX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVSX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x8],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xc],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xe],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x10],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x12],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x13],CL
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
SHL RDX,0x10
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x4]
OR RCX,RDX
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * _ma_columndef_read(int1 *param_1,int *param_2)
{
*(ushort *)((long)param_2 + 10) = CONCAT11(*param_1,param_1[1]);
param_2[1] = (uint)CONCAT11(param_1[2],param_1[3]);
*param_2 = (int)(short)((ushort)(byte)param_1[5] |
(ushort)((int)(short)(ushort)(byte)param_1[4] << 8));
*(ushort *)(param_2 + 2) = CONCAT11(param_1[6],param_1[7]);
*(ushort *)(param_2 + 3) = CONCAT11(param_1[8],param_1[9]);
*(ushort *)((long)param_2 + 0xe) = CONCAT11(param_1[10],param_1[0xb]);
*(ushort *)(param_2 + 4) = CONCAT11(param_1[0xc],param_1[0xd]);
*(int1 *)((long)param_2 + 0x12) = param_1[0xe];
*(int1 *)((long)param_2 + 0x13) = param_1[0xf];
param_2[1] = param_2[1] | (uint)CONCAT11(param_1[0x10],param_1[0x11]) << 0x10;
return param_1 + 0x14;
}
| |
32,791 | my_tosort_unicode | eloqsql/strings/ctype-utf8.c | static inline void
my_tosort_unicode(MY_UNICASE_INFO *uni_plane, my_wc_t *wc, uint flags)
{
if (*wc <= uni_plane->maxchar)
{
MY_UNICASE_CHARACTER *page;
if ((page= uni_plane->page[*wc >> 8]))
*wc= (flags & MY_CS_LOWER_SORT) ?
page[*wc & 0xFF].tolower :
page[*wc & 0xFF].sort;
}
else
{
*wc= MY_CS_REPLACEMENT_CHARACTER;
}
} | O0 | c | my_tosort_unicode:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x67fad
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x67fab
movl -0x14(%rbp), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
je 0x67f7e
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
andq $0xff, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x67f9d
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
andq $0xff, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x67fb8
movq -0x10(%rbp), %rax
movq $0xfffd, (%rax) # imm = 0xFFFD
popq %rbp
retq
nopw (%rax,%rax)
| my_tosort_unicode:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_8]
cmp rax, [rcx]
ja short loc_67FAD
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
shr rcx, 8
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_67FAB
mov eax, [rbp+var_14]
and eax, 8000h
cmp eax, 0
jz short loc_67F7E
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
and rcx, 0FFh
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+4]
mov [rbp+var_24], eax
jmp short loc_67F9D
loc_67F7E:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
and rcx, 0FFh
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+8]
mov [rbp+var_24], eax
loc_67F9D:
mov eax, [rbp+var_24]
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], rcx
loc_67FAB:
jmp short loc_67FB8
loc_67FAD:
mov rax, [rbp+var_10]
mov qword ptr [rax], 0FFFDh
loc_67FB8:
pop rbp
retn
| _QWORD * my_tosort_unicode(_QWORD *a1, _QWORD *a2, __int16 a3)
{
_QWORD *result; // rax
unsigned int v4; // [rsp+0h] [rbp-24h]
if ( *a2 > *a1 )
{
result = a2;
*a2 = 65533LL;
}
else
{
result = *(_QWORD **)(a1[1] + 8LL * (*a2 >> 8));
if ( result )
{
if ( a3 < 0 )
v4 = *((_DWORD *)result + 3 * (unsigned __int8)*a2 + 1);
else
v4 = *((_DWORD *)result + 3 * (unsigned __int8)*a2 + 2);
result = a2;
*a2 = v4;
}
}
return result;
}
| my_tosort_unicode:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX]
JA 0x00167fad
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x00167fab
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0x8000
CMP EAX,0x0
JZ 0x00167f7e
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
AND RCX,0xff
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00167f9d
LAB_00167f7e:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
AND RCX,0xff
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x24],EAX
LAB_00167f9d:
MOV EAX,dword ptr [RBP + -0x24]
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
LAB_00167fab:
JMP 0x00167fb8
LAB_00167fad:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0xfffd
LAB_00167fb8:
POP RBP
RET
|
void my_tosort_unicode(ulong *param_1,ulong *param_2,uint param_3)
{
long lVar1;
uint local_2c;
if (*param_1 < *param_2) {
*param_2 = 0xfffd;
}
else {
lVar1 = *(long *)(param_1[1] + (*param_2 >> 8) * 8);
if (lVar1 != 0) {
if ((param_3 & 0x8000) == 0) {
local_2c = *(uint *)(lVar1 + (*param_2 & 0xff) * 0xc + 8);
}
else {
local_2c = *(uint *)(lVar1 + (*param_2 & 0xff) * 0xc + 4);
}
*param_2 = (ulong)local_2c;
}
}
return;
}
| |
32,792 | psi_rwlock_tryrdlock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD
int psi_rwlock_tryrdlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_TRYREADLOCK, file, line);
int result= rw_tryrdlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
} | O0 | c | psi_rwlock_tryrdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1b9866(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x2, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5b0b0
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x5ab13
leaq 0x1b9820(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| psi_rwlock_tryrdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+90h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
mov edx, 2
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_tryrdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_5AB13
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_5AB13:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_rwlock_tryrdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 144),
2LL,
a2,
a3);
v4 = my_rw_tryrdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
| psi_rwlock_tryrdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
MOV EDX,0x2
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015b0b0
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0015ab13
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_0015ab13:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_tryrdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x90),2,param_2,param_3);
uVar1 = my_rw_tryrdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
| |
32,793 | ftxui::MenuOption::Toggle() | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/component_options.cpp | MenuOption MenuOption::Toggle() {
auto option = MenuOption::Horizontal();
option.elements_infix = [] { return text("│") | automerge; };
return option;
} | O3 | cpp | ftxui::MenuOption::Toggle():
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x33d14
movups 0x150(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x150(%rbx)
movq 0x160(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xe9b(%rip), %rcx # 0x34f48
movq %rcx, 0x160(%rbx)
movq 0x168(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0xd73(%rip), %rcx # 0x34e3a
movq %rcx, 0x168(%rbx)
testq %rax, %rax
je 0x340e0
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x1049a
nop
| _ZN5ftxui10MenuOption6ToggleEv:
push rbx
sub rsp, 20h
mov rbx, rdi
call _ZN5ftxui10MenuOption10HorizontalEv; ftxui::MenuOption::Horizontal(void)
movups xmm0, xmmword ptr [rbx+150h]
movaps [rsp+28h+var_28], xmm0
xorps xmm0, xmm0
movups xmmword ptr [rbx+150h], xmm0
mov rax, [rbx+160h]
mov [rsp+28h+var_18], rax
lea rcx, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEEvEZNS1_10MenuOption6ToggleEvE3$_0E10_M_managerERSt9_Any_dataRKS8_St18_Manager_operation; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(void),ftxui::MenuOption::Toggle(void)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rbx+160h], rcx
mov rcx, [rbx+168h]
mov [rsp+28h+var_10], rcx
lea rcx, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEEvEZNS1_10MenuOption6ToggleEvE3$_0E9_M_invokeERKSt9_Any_data; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(void),ftxui::MenuOption::Toggle(void)::$_0>::_M_invoke(std::_Any_data const&)
mov [rbx+168h], rcx
test rax, rax
jz short loc_340E0
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_340E0:
mov rax, rbx
add rsp, 20h
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| ftxui::MenuOption * ftxui::MenuOption::Toggle(void ( **this)(__int128 *, __int128 *, long long))
{
void ( *v1)(__int128 *, __int128 *, long long); // rax
__int128 v3; // [rsp+0h] [rbp-28h] BYREF
void ( *v4)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-18h]
void ( *v5)(__int128 *, __int128 *, long long); // [rsp+18h] [rbp-10h]
ftxui::MenuOption::Horizontal((ftxui::MenuOption *)this);
v3 = *((_OWORD *)this + 21);
*((_OWORD *)this + 21) = 0LL;
v4 = this[44];
v1 = v4;
this[44] = (void ( *)(__int128 *, __int128 *, long long))std::_Function_handler<std::shared_ptr<ftxui::Node> ()(void),ftxui::MenuOption::Toggle(void)::$_0>::_M_manager;
v5 = this[45];
this[45] = (void ( *)(__int128 *, __int128 *, long long))std::_Function_handler<std::shared_ptr<ftxui::Node> ()(void),ftxui::MenuOption::Toggle(void)::$_0>::_M_invoke;
if ( v1 )
v1(&v3, &v3, 3LL);
return (ftxui::MenuOption *)this;
}
| Toggle:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
CALL 0x00133d14
MOVUPS XMM0,xmmword ptr [RBX + 0x150]
MOVAPS xmmword ptr [RSP],XMM0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x150],XMM0
MOV RAX,qword ptr [RBX + 0x160]
MOV qword ptr [RSP + 0x10],RAX
LEA RCX,[0x134f48]
MOV qword ptr [RBX + 0x160],RCX
MOV RCX,qword ptr [RBX + 0x168]
MOV qword ptr [RSP + 0x18],RCX
LEA RCX,[0x134e3a]
MOV qword ptr [RBX + 0x168],RCX
TEST RAX,RAX
JZ 0x001340e0
LAB_001340d3:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001340e0:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::MenuOption::Toggle() */
MenuOption * __thiscall ftxui::MenuOption::Toggle(MenuOption *this)
{
int8 local_28;
int8 uStack_20;
code *local_18;
int8 local_10;
Horizontal(this);
local_28 = *(int8 *)(this + 0x150);
uStack_20 = *(int8 *)(this + 0x158);
*(int8 *)(this + 0x150) = 0;
*(int8 *)(this + 0x158) = 0;
local_18 = *(code **)(this + 0x160);
*(code **)(this + 0x160) =
std::_Function_handler<std::shared_ptr<ftxui::Node>(),ftxui::MenuOption::Toggle()::$_0>::
_M_manager;
local_10 = *(int8 *)(this + 0x168);
*(code **)(this + 0x168) =
std::_Function_handler<std::shared_ptr<ftxui::Node>(),ftxui::MenuOption::Toggle()::$_0>::
_M_invoke;
if (local_18 != (code *)0x0) {
/* try { // try from 001340d3 to 001340df has its CatchHandler @ 001340e9 */
(*local_18)(&local_28,&local_28,3);
}
return this;
}
| |
32,794 | mi_restore_status | eloqsql/storage/myisam/mi_locking.c | void mi_restore_status(void *param)
{
MI_INFO *info= (MI_INFO*) param;
DBUG_ENTER("mi_restore_status");
DBUG_PRINT("info",("key_file: %ld data_file: %ld",
(long) info->s->state.state.key_file_length,
(long) info->s->state.state.data_file_length));
info->state= &info->s->state.state;
info->append_insert_at_end= 0;
DBUG_VOID_RETURN;
} | O3 | c | mi_restore_status:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
addq $0x18, %rax
movq %rax, 0x8(%rdi)
movb $0x0, 0x33a(%rdi)
popq %rbp
retq
| mi_restore_status:
push rbp
mov rbp, rsp
mov rax, [rdi]
add rax, 18h
mov [rdi+8], rax
mov byte ptr [rdi+33Ah], 0
pop rbp
retn
| long long mi_restore_status(long long a1)
{
long long result; // rax
result = *(_QWORD *)a1 + 24LL;
*(_QWORD *)(a1 + 8) = result;
*(_BYTE *)(a1 + 826) = 0;
return result;
}
| mi_restore_status:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
ADD RAX,0x18
MOV qword ptr [RDI + 0x8],RAX
MOV byte ptr [RDI + 0x33a],0x0
POP RBP
RET
|
void mi_restore_status(long *param_1)
{
param_1[1] = *param_1 + 0x18;
*(int1 *)((long)param_1 + 0x33a) = 0;
return;
}
| |
32,795 | ma_feof | eloqsql/libmariadb/libmariadb/ma_io.c | int ma_feof(MA_FILE *file)
{
if (!file)
return -1;
switch (file->type) {
case MA_FILE_LOCAL:
return feof((FILE *)file->ptr);
break;
#ifdef HAVE_REMOTEIO
case MA_FILE_REMOTE:
return rio_plugin->methods->mfeof(file);
break;
#endif
default:
return -1;
}
} | O0 | c | ma_feof:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x3b24c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x3b29c
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x14(%rbp)
subl $0x1, %eax
je 0x3b266
jmp 0x3b25c
movl -0x14(%rbp), %eax
subl $0x2, %eax
je 0x3b278
jmp 0x3b295
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x136a0
movl %eax, -0x4(%rbp)
jmp 0x3b29c
leaq 0x2dd01(%rip), %rax # 0x68f80
movq (%rax), %rax
movq 0x58(%rax), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0x3b29c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_feof:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jnz short loc_3B24C
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_3B29C
loc_3B24C:
mov rax, [rbp+var_10]
mov eax, [rax]
mov [rbp+var_14], eax
sub eax, 1
jz short loc_3B266
jmp short $+2
loc_3B25C:
mov eax, [rbp+var_14]
sub eax, 2
jz short loc_3B278
jmp short loc_3B295
loc_3B266:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
call _feof
mov [rbp+var_4], eax
jmp short loc_3B29C
loc_3B278:
lea rax, rio_plugin
mov rax, [rax]
mov rax, [rax+58h]
mov rax, [rax+10h]
mov rdi, [rbp+var_10]
call rax
mov [rbp+var_4], eax
jmp short loc_3B29C
loc_3B295:
mov [rbp+var_4], 0FFFFFFFFh
loc_3B29C:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long ma_feof(long long a1)
{
if ( a1 )
{
if ( *(_DWORD *)a1 == 1 )
{
return (unsigned int)feof(*(_QWORD *)(a1 + 8));
}
else if ( *(_DWORD *)a1 == 2 )
{
return (unsigned int)(*(long long ( **)(long long))(*(_QWORD *)(rio_plugin + 88LL) + 16LL))(a1);
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
| ma_feof:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0013b24c
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0013b29c
LAB_0013b24c:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
SUB EAX,0x1
JZ 0x0013b266
JMP 0x0013b25c
LAB_0013b25c:
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x2
JZ 0x0013b278
JMP 0x0013b295
LAB_0013b266:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001136a0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013b29c
LAB_0013b278:
LEA RAX,[0x168f80]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDI,qword ptr [RBP + -0x10]
CALL RAX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013b29c
LAB_0013b295:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_0013b29c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int ma_feof(int *param_1)
{
int local_c;
if (param_1 == (int *)0x0) {
local_c = -1;
}
else if (*param_1 == 1) {
local_c = feof(*(FILE **)(param_1 + 2));
}
else if (*param_1 == 2) {
local_c = (**(code **)(*(long *)(rio_plugin + 0x58) + 0x10))(param_1);
}
else {
local_c = -1;
}
return local_c;
}
| |
32,796 | ftxui::flex(std::shared_ptr<ftxui::Node>) | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/dom/flex.cpp | Element flex(Element child) {
return std::make_shared<Flex>(function_flex, std::move(child));
} | O1 | cpp | ftxui::flex(std::shared_ptr<ftxui::Node>):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq -0x20(%rip), %rsi # 0x23826
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x23876
movq (%r14), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x8(%r14), %rcx
movq %rax, 0x8(%r14)
movq %rcx, 0x8(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
| _ZN5ftxui4flexESt10shared_ptrINS_4NodeEE:
push r14
push rbx
sub rsp, 18h
mov rdx, rsi
mov rbx, rdi
lea rsi, _ZN5ftxui12_GLOBAL__N_113function_flexERNS_11RequirementE; ftxui::`anonymous namespace'::function_flex(ftxui::Requirement &)
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZSt11make_sharedIN5ftxui12_GLOBAL__N_14FlexEJRFvRNS0_11RequirementEESt10shared_ptrINS0_4NodeEEEES7_IT_EDpOT0_; std::make_shared<ftxui::`anonymous namespace'::Flex,void (&)(ftxui::Requirement &),std::shared_ptr<ftxui::Node>>(void (&)(ftxui::Requirement &),std::shared_ptr<ftxui::Node> &&)
mov rax, [r14]
mov [rbx], rax
xor eax, eax
mov [rbx+8], rax
mov rcx, [r14+8]
mov [r14+8], rax
mov [rbx+8], rcx
mov rax, rbx
add rsp, 18h
pop rbx
pop r14
retn
| _QWORD * ftxui::flex(_QWORD *a1, int a2, long long a3, int a4, int a5, int a6)
{
_QWORD v7[4]; // [rsp+8h] [rbp-20h] BYREF
std::make_shared<ftxui::`anonymous namespace'::Flex,void (&)(ftxui::Requirement &),std::shared_ptr<ftxui::Node>>(
(unsigned int)v7,
(unsigned int)ftxui::`anonymous namespace'::function_flex,
a2,
a4,
a5,
a6);
*a1 = v7[0];
a1[1] = 0LL;
a1[1] = v7[1];
return a1;
}
| flex:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RDX,RSI
MOV RBX,RDI
LEA RSI,[0x123826]
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x00123876
MOV RAX,qword ptr [R14]
MOV qword ptr [RBX],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x8],RAX
MOV RCX,qword ptr [R14 + 0x8]
MOV qword ptr [R14 + 0x8],RAX
MOV qword ptr [RBX + 0x8],RCX
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* ftxui::flex(std::shared_ptr<ftxui::Node>) */
int8 * ftxui::flex(int8 *param_1)
{
int8 local_20;
int8 local_18;
std::
make_shared<ftxui::(anonymous_namespace)::Flex,void(&)(ftxui::Requirement&),std::shared_ptr<ftxui::Node>>
((_func_void_Requirement_ptr *)&local_20,
(shared_ptr *)(anonymous_namespace)::function_flex);
*param_1 = local_20;
param_1[1] = 0;
param_1[1] = local_18;
return param_1;
}
| |
32,797 | ma_block_get_status | eloqsql/storage/maria/ma_state.c | my_bool _ma_block_get_status(void* param, my_bool concurrent_insert)
{
MARIA_HA *info=(MARIA_HA*) param;
DBUG_ENTER("_ma_block_get_status");
DBUG_PRINT("enter", ("concurrent_insert %d", concurrent_insert));
info->row_base_length= info->s->base_length;
info->row_flag= info->s->base.default_row_flag;
DBUG_ASSERT(!concurrent_insert ||
info->lock.type == TL_WRITE_CONCURRENT_INSERT);
if (concurrent_insert || !info->autocommit)
{
info->row_flag|= ROW_FLAG_TRANSID;
info->row_base_length+= TRANSID_SIZE;
}
else
{
DBUG_ASSERT(info->lock.type != TL_WRITE_CONCURRENT_INSERT);
}
DBUG_RETURN(0);
} | O0 | c | ma_block_get_status:
pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x37038
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x7c4(%rax), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, 0x610(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl 0x418(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x618(%rax)
jmp 0x3706b
movsbl -0x9(%rbp), %eax
cmpl $0x0, %eax
jne 0x37081
movq -0x18(%rbp), %rax
cmpb $0x0, 0x688(%rax)
jne 0x370ac
movq -0x18(%rbp), %rax
movl 0x618(%rax), %ecx
orl $0x1, %ecx
movl %ecx, 0x618(%rax)
movq -0x18(%rbp), %rax
movq 0x610(%rax), %rcx
addq $0x6, %rcx
movq %rcx, 0x610(%rax)
jmp 0x370b2
jmp 0x370ae
jmp 0x370b0
jmp 0x370b2
jmp 0x370b4
jmp 0x370b6
xorl %eax, %eax
popq %rbp
retq
nopw (%rax,%rax)
| _ma_block_get_status:
push rbp
mov rbp, rsp
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_37038:
mov rax, [rbp+var_18]
mov rax, [rax]
mov eax, [rax+7C4h]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+610h], rcx
mov rax, [rbp+var_18]
mov rax, [rax]
mov ecx, [rax+418h]
mov rax, [rbp+var_18]
mov [rax+618h], ecx
jmp short $+2
loc_3706B:
movsx eax, [rbp+var_9]
cmp eax, 0
jnz short loc_37081
mov rax, [rbp+var_18]
cmp byte ptr [rax+688h], 0
jnz short loc_370AC
loc_37081:
mov rax, [rbp+var_18]
mov ecx, [rax+618h]
or ecx, 1
mov [rax+618h], ecx
mov rax, [rbp+var_18]
mov rcx, [rax+610h]
add rcx, 6
mov [rax+610h], rcx
jmp short loc_370B2
loc_370AC:
jmp short $+2
loc_370AE:
jmp short $+2
loc_370B0:
jmp short $+2
loc_370B2:
jmp short $+2
loc_370B4:
jmp short $+2
loc_370B6:
xor eax, eax
pop rbp
retn
| long long ma_block_get_status(long long a1, char a2)
{
*(_QWORD *)(a1 + 1552) = *(unsigned int *)(*(_QWORD *)a1 + 1988LL);
*(_DWORD *)(a1 + 1560) = *(_DWORD *)(*(_QWORD *)a1 + 1048LL);
if ( a2 || !*(_BYTE *)(a1 + 1672) )
{
*(_DWORD *)(a1 + 1560) |= 1u;
*(_QWORD *)(a1 + 1552) += 6LL;
}
return 0LL;
}
| _ma_block_get_status:
PUSH RBP
MOV RBP,RSP
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00137038
LAB_00137038:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7c4]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x610],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x418]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x618],ECX
JMP 0x0013706b
LAB_0013706b:
MOVSX EAX,byte ptr [RBP + -0x9]
CMP EAX,0x0
JNZ 0x00137081
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x688],0x0
JNZ 0x001370ac
LAB_00137081:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x618]
OR ECX,0x1
MOV dword ptr [RAX + 0x618],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x610]
ADD RCX,0x6
MOV qword ptr [RAX + 0x610],RCX
JMP 0x001370b2
LAB_001370ac:
JMP 0x001370ae
LAB_001370ae:
JMP 0x001370b0
LAB_001370b0:
JMP 0x001370b2
LAB_001370b2:
JMP 0x001370b4
LAB_001370b4:
JMP 0x001370b6
LAB_001370b6:
XOR EAX,EAX
POP RBP
RET
|
int8 _ma_block_get_status(long *param_1,char param_2)
{
param_1[0xc2] = (ulong)*(uint *)(*param_1 + 0x7c4);
*(int4 *)(param_1 + 0xc3) = *(int4 *)(*param_1 + 0x418);
if ((param_2 != '\0') || ((char)param_1[0xd1] == '\0')) {
*(uint *)(param_1 + 0xc3) = *(uint *)(param_1 + 0xc3) | 1;
param_1[0xc2] = param_1[0xc2] + 6;
}
return 0;
}
| |
32,798 | js_bigint_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_bigint_constructor(JSContext *ctx,
JSValue new_target,
int argc, JSValue *argv)
{
if (!JS_IsUndefined(new_target))
return JS_ThrowTypeError(ctx, "not a constructor");
return JS_ToBigIntCtorFree(ctx, js_dup(argv[0]));
} | O1 | c | js_bigint_constructor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r15
cmpl $0x3, %edx
jne 0x37c22
movq (%r8), %rbp
movq 0x8(%r8), %r14
movq %rbp, 0x20(%rsp)
cmpl $-0x9, %r14d
jb 0x37be7
movq 0x20(%rsp), %rax
incl (%rax)
movq %rbp, %rbx
shrq $0x20, %rbx
cmpl $-0x1, %r14d
jne 0x37c41
shlq $0x20, %rbx
movl %ebp, %esi
orq %rbx, %rsi
movq %r15, %rdi
movq %r14, %rdx
movl $0x1, %ecx
callq 0x3dfd7
movq %rax, %rbp
movq %rdx, %r14
movq %rax, %rbx
shrq $0x20, %rbx
cmpl $0x6, %r14d
jne 0x37bee
jmp 0x37c8a
leaq 0x67ab7(%rip), %rsi # 0x9f6e0
xorl %r12d, %r12d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movl $0x6, %r14d
jmp 0x37d5d
testl %r14d, %r14d
js 0x37c59
cmpl $0x2, %r14d
jae 0x37c96
movslq %ebp, %rsi
movq %r15, %rdi
callq 0x28376
jmp 0x37c7d
cmpl $-0x9, %r14d
je 0x37c8a
cmpl $-0x7, %r14d
jne 0x37d29
shlq $0x20, %rbx
movl %ebp, %esi
orq %rbx, %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x3e510
movq %rax, %rbp
movq %rdx, %r14
movq %rax, %rbx
shrq $0x20, %rbx
shlq $0x20, %rbx
movl %ebp, %r12d
jmp 0x37d5a
cmpl $0x7, %r14d
jne 0x37d29
movabsq $0x7ffffffffffffffd, %r12 # imm = 0x7FFFFFFFFFFFFFFD
movq %rbx, %rax
shlq $0x20, %rax
movl %ebp, %r13d
orq %rax, %r13
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r14, %rcx
callq 0x430ad
movq %rax, 0x18(%rsp)
cmpq %r12, 0x10(%rax)
jle 0x37d8d
movq 0x18(%r15), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1d8c6
leaq 0x69b59(%rip), %rsi # 0xa1848
xorl %ebp, %ebp
movq %r15, %rdi
xorl %eax, %eax
callq 0x20add
movl $0x6, %r14d
xorl %ebx, %ebx
movb $0x1, %r15b
movq 0x18(%rsp), %rcx
leaq 0x20(%rsp), %rax
cmpq %rax, %rcx
je 0x37d72
testb %r15b, %r15b
jne 0x37c8a
movl $0x6, %r14d
xorl %r12d, %r12d
jmp 0x37d58
shlq $0x20, %rbx
movl %ebp, %esi
orq %rbx, %rsi
movq 0x18(%r15), %rdi
movq %r14, %rdx
callq 0x1d8c6
leaq 0x6748f(%rip), %rsi # 0x9f1d4
xorl %r12d, %r12d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movl $0x6, %r14d
xorl %ebx, %ebx
orq %rbx, %r12
movq %r12, %rax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rcx), %rax
testq %rax, %rax
je 0x37d15
movq 0x20(%rcx), %rsi
testq %rsi, %rsi
je 0x37d15
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
jmp 0x37d15
movq %r15, %rdi
callq 0xfecd
movq %rdx, 0x10(%rsp)
movl %edx, %ecx
movq %rcx, (%rsp)
cmpq $0x6, %rcx
jne 0x37dba
movq 0x18(%r15), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1d8c6
jmp 0x37e70
leaq 0x8(%rax), %rbx
movq %rbx, %rdi
movq %rax, %rbp
movq 0x18(%rsp), %rsi
callq 0x84c8d
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x87b16
movl %eax, %ebx
orl 0xc(%rsp), %ebx
movq 0x18(%r15), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1d8c6
testb $0x20, %bl
jne 0x37e29
testb $0x10, %bl
movq 0x10(%rsp), %r14
jne 0x37e46
cmpq $-0x9, %r14
jne 0x37e20
addq $0x3, %r12
cmpq %r12, 0x18(%rbp)
jne 0x37e20
cmpl $0x0, 0x10(%rbp)
je 0x37e20
movl $0x0, 0x10(%rbp)
movq %rbp, %rbx
shrq $0x20, %rbx
jmp 0x37e70
movq 0x18(%r15), %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
callq 0x1d8c6
movq %r15, %rdi
callq 0x1cb63
xorl %ebp, %ebp
jmp 0x37e68
movq 0x18(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1d8c6
leaq 0x69a15(%rip), %rsi # 0xa1871
xorl %ebp, %ebp
movq %r15, %rdi
xorl %eax, %eax
callq 0x20add
movl $0x6, %r14d
xorl %ebx, %ebx
movq (%rsp), %rax
cmpl $0x6, %eax
jne 0x37d03
xorl %r15d, %r15d
jmp 0x37d15
| js_bigint_constructor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rdi
cmp edx, 3
jnz short loc_37C22
mov rbp, [r8]
mov r14, [r8+8]
mov [rsp+78h+var_58], rbp
cmp r14d, 0FFFFFFF7h
jb short loc_37BE7
mov rax, [rsp+78h+var_58]
inc dword ptr [rax]
loc_37BE7:
mov rbx, rbp
shr rbx, 20h
loc_37BEE:
cmp r14d, 0FFFFFFFFh
jnz short loc_37C41
shl rbx, 20h
mov esi, ebp
or rsi, rbx
mov rdi, r15
mov rdx, r14
mov ecx, 1
call JS_ToPrimitiveFree
mov rbp, rax
mov r14, rdx
mov rbx, rax
shr rbx, 20h
cmp r14d, 6
jnz short loc_37BEE
jmp short loc_37C8A
loc_37C22:
lea rsi, aNotAConstructo; "not a constructor"
xor r12d, r12d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov r14d, 6
jmp loc_37D5D
loc_37C41:
test r14d, r14d
js short loc_37C59
cmp r14d, 2
jnb short loc_37C96
movsxd rsi, ebp
mov rdi, r15
call JS_NewBigInt64
jmp short loc_37C7D
loc_37C59:
cmp r14d, 0FFFFFFF7h
jz short loc_37C8A
cmp r14d, 0FFFFFFF9h
jnz loc_37D29
shl rbx, 20h
mov esi, ebp
or rsi, rbx
mov rdi, r15
mov rdx, r14
call JS_StringToBigIntErr
loc_37C7D:
mov rbp, rax
mov r14, rdx
mov rbx, rax
shr rbx, 20h
loc_37C8A:
shl rbx, 20h
mov r12d, ebp
jmp loc_37D5A
loc_37C96:
cmp r14d, 7
jnz loc_37D29
mov r12, 7FFFFFFFFFFFFFFDh
mov rax, rbx
shl rax, 20h
mov r13d, ebp
or r13, rax
lea rsi, [rsp+78h+var_58]
mov rdi, r15
mov rdx, r13
mov rcx, r14
call JS_ToBigInt1
mov [rsp+78h+var_60], rax
cmp [rax+10h], r12
jle loc_37D8D
mov rdi, [r15+18h]
mov rsi, r13
mov rdx, r14
call JS_FreeValueRT
lea rsi, aCannotConvertN; "cannot convert NaN or Infinity to BigIn"...
xor ebp, ebp
mov rdi, r15
xor eax, eax
call JS_ThrowRangeError
mov r14d, 6
xor ebx, ebx
loc_37D03:
mov r15b, 1
mov rcx, [rsp+78h+var_60]
lea rax, [rsp+78h+var_58]
cmp rcx, rax
jz short loc_37D72
loc_37D15:
test r15b, r15b
jnz loc_37C8A
mov r14d, 6
xor r12d, r12d
jmp short loc_37D58
loc_37D29:
shl rbx, 20h
mov esi, ebp
or rsi, rbx
mov rdi, [r15+18h]
mov rdx, r14
call JS_FreeValueRT
lea rsi, aCannotConvertT; "cannot convert to BigInt"
xor r12d, r12d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov r14d, 6
loc_37D58:
xor ebx, ebx
loc_37D5A:
or r12, rbx
loc_37D5D:
mov rax, r12
mov rdx, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_37D72:
mov rax, [rcx]
test rax, rax
jz short loc_37D15
mov rsi, [rcx+20h]
test rsi, rsi
jz short loc_37D15
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
jmp short loc_37D15
loc_37D8D:
mov rdi, r15
call JS_NewBigInt
mov [rsp+78h+var_68], rdx
mov ecx, edx
mov [rsp+78h+var_78], rcx
cmp rcx, 6
jnz short loc_37DBA
mov rdi, [r15+18h]
mov rsi, r13
mov rdx, r14
call JS_FreeValueRT
jmp loc_37E70
loc_37DBA:
lea rbx, [rax+8]
mov rdi, rbx
mov rbp, rax
mov rsi, [rsp+78h+var_60]
call bf_set
mov [rsp+78h+var_6C], eax
mov rdi, rbx
mov esi, 1
call bf_rint
mov ebx, eax
or ebx, [rsp+78h+var_6C]
mov rdi, [r15+18h]
mov rsi, r13
mov rdx, r14
call JS_FreeValueRT
test bl, 20h
jnz short loc_37E29
test bl, 10h
mov r14, [rsp+78h+var_68]
jnz short loc_37E46
cmp r14, 0FFFFFFFFFFFFFFF7h
jnz short loc_37E20
add r12, 3
cmp [rbp+18h], r12
jnz short loc_37E20
cmp dword ptr [rbp+10h], 0
jz short loc_37E20
mov dword ptr [rbp+10h], 0
loc_37E20:
mov rbx, rbp
shr rbx, 20h
jmp short loc_37E70
loc_37E29:
mov rdi, [r15+18h]
mov rsi, rbp
mov rdx, [rsp+78h+var_68]
call JS_FreeValueRT
mov rdi, r15
call JS_ThrowOutOfMemory
xor ebp, ebp
jmp short loc_37E68
loc_37E46:
mov rdi, [r15+18h]
mov rsi, rbp
mov rdx, r14
call JS_FreeValueRT
lea rsi, aCannotConvertT_0; "cannot convert to BigInt: not an intege"...
xor ebp, ebp
mov rdi, r15
xor eax, eax
call JS_ThrowRangeError
loc_37E68:
mov r14d, 6
xor ebx, ebx
loc_37E70:
mov rax, [rsp+78h+var_78]
cmp eax, 6
jnz loc_37D03
xor r15d, r15d
jmp loc_37D15
| unsigned long long js_bigint_constructor(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
unsigned long long *a13,
long long a14)
{
unsigned long long v14; // rbp
long long v15; // r14
unsigned long long v16; // rbx
long long v17; // rdx
long long v18; // r12
unsigned long long v19; // rax
unsigned long long v20; // rbx
long long v21; // r12
_DWORD *v22; // r13
long long v23; // rdx
long long v24; // rcx
long long v25; // r8
long long v26; // r9
__m128 v27; // xmm4
__m128 v28; // xmm5
char v29; // r15
long long v30; // rdx
long long v31; // rcx
long long v32; // r8
long long v33; // r9
__m128 v34; // xmm4
__m128 v35; // xmm5
long long v37; // rsi
_DWORD *v38; // rax
long long v39; // rdx
_DWORD *v40; // rbx
char v41; // bl
int v42; // edx
int v43; // ecx
int v44; // r8d
int v45; // r9d
long long v46; // rdx
long long v47; // rcx
long long v48; // r8
long long v49; // r9
__m128 v50; // xmm4
__m128 v51; // xmm5
char v52; // [rsp+0h] [rbp-78h]
int v53; // [rsp+0h] [rbp-78h]
char v54; // [rsp+Ch] [rbp-6Ch]
long long v55; // [rsp+10h] [rbp-68h]
long long *v56; // [rsp+18h] [rbp-60h]
_QWORD v57[11]; // [rsp+20h] [rbp-58h] BYREF
if ( (_DWORD)a11 != 3 )
{
v18 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"not a constructor",
a11,
a12,
(long long)a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
v52);
return v18;
}
v14 = *a13;
v15 = a13[1];
v57[0] = *a13;
if ( (unsigned int)v15 >= 0xFFFFFFF7 )
++*(_DWORD *)v57[0];
v16 = HIDWORD(v14);
while ( (_DWORD)v15 == -1 )
{
v14 = JS_ToPrimitiveFree(a1, (v16 << 32) | (unsigned int)v14, v15, 1LL);
v15 = v17;
v16 = HIDWORD(v14);
if ( (_DWORD)v17 == 6 )
goto LABEL_16;
}
if ( (int)v15 < 0 )
{
if ( (_DWORD)v15 == -9 )
{
LABEL_16:
v20 = v16 << 32;
v21 = (unsigned int)v14;
return v20 | v21;
}
if ( (_DWORD)v15 == -7 )
{
v19 = JS_StringToBigIntErr(a1, (v16 << 32) | (unsigned int)v14, v15);
goto LABEL_15;
}
}
else
{
if ( (unsigned int)v15 < 2 )
{
v19 = (unsigned long long)JS_NewBigInt64(a1, (int)v14);
LABEL_15:
LODWORD(v14) = v19;
v16 = HIDWORD(v19);
goto LABEL_16;
}
if ( (_DWORD)v15 == 7 )
{
v22 = (_DWORD *)((v16 << 32) | (unsigned int)v14);
v56 = (long long *)JS_ToBigInt1(a1, v57, v22, v15);
if ( v56[2] > 0x7FFFFFFFFFFFFFFDLL )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15);
LODWORD(v14) = 0;
JS_ThrowRangeError(
a1,
(long long)"cannot convert NaN or Infinity to BigInt",
v23,
v24,
v25,
v26,
a2,
a3,
a4,
a5,
v27,
v28,
a8,
a9,
v52);
v16 = 0LL;
goto LABEL_20;
}
v38 = JS_NewBigInt(a1);
v55 = v39;
v53 = v39;
if ( (unsigned int)v39 == 6LL )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15);
goto LABEL_42;
}
v40 = v38 + 2;
v14 = (unsigned long long)v38;
v54 = bf_set(v38 + 2, v56);
v41 = v54 | bf_rint(v40, 1LL);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v22, v15);
if ( (v41 & 0x20) != 0 )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v14, v55);
JS_ThrowOutOfMemory(a1, v14, v42, v43, v44, v45);
LODWORD(v14) = 0;
}
else
{
if ( (v41 & 0x10) == 0 )
{
if ( v55 == -9 && *(_QWORD *)(v14 + 24) == 0x8000000000000000LL && *(_DWORD *)(v14 + 16) )
*(_DWORD *)(v14 + 16) = 0;
v16 = HIDWORD(v14);
LABEL_42:
if ( v53 == 6 )
{
v29 = 0;
LABEL_21:
if ( v29 )
goto LABEL_16;
v21 = 0LL;
goto LABEL_24;
}
LABEL_20:
v29 = 1;
if ( v56 == v57 )
{
if ( *v56 )
{
v37 = v56[4];
if ( v37 )
(*(void ( **)(_QWORD, long long, _QWORD))(*v56 + 8))(*(_QWORD *)*v56, v37, 0LL);
}
}
goto LABEL_21;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v14, v55);
LODWORD(v14) = 0;
JS_ThrowRangeError(
a1,
(long long)"cannot convert to BigInt: not an integer",
v46,
v47,
v48,
v49,
a2,
a3,
a4,
a5,
v50,
v51,
a8,
a9,
v53);
}
v16 = 0LL;
goto LABEL_42;
}
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v16 << 32) | (unsigned int)v14), v15);
v21 = 0LL;
JS_ThrowTypeError(a1, (long long)"cannot convert to BigInt", v30, v31, v32, v33, a2, a3, a4, a5, v34, v35, a8, a9, v52);
LABEL_24:
v20 = 0LL;
return v20 | v21;
}
| js_bigint_constructor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RDI
CMP EDX,0x3
JNZ 0x00137c22
MOV RBP,qword ptr [R8]
MOV R14,qword ptr [R8 + 0x8]
MOV qword ptr [RSP + 0x20],RBP
CMP R14D,-0x9
JC 0x00137be7
MOV RAX,qword ptr [RSP + 0x20]
INC dword ptr [RAX]
LAB_00137be7:
MOV RBX,RBP
SHR RBX,0x20
LAB_00137bee:
CMP R14D,-0x1
JNZ 0x00137c41
SHL RBX,0x20
MOV ESI,EBP
OR RSI,RBX
MOV RDI,R15
MOV RDX,R14
MOV ECX,0x1
CALL 0x0013dfd7
MOV RBP,RAX
MOV R14,RDX
MOV RBX,RAX
SHR RBX,0x20
CMP R14D,0x6
JNZ 0x00137bee
JMP 0x00137c8a
LAB_00137c22:
LEA RSI,[0x19f6e0]
XOR R12D,R12D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
MOV R14D,0x6
JMP 0x00137d5d
LAB_00137c41:
TEST R14D,R14D
JS 0x00137c59
CMP R14D,0x2
JNC 0x00137c96
MOVSXD RSI,EBP
MOV RDI,R15
CALL 0x00128376
JMP 0x00137c7d
LAB_00137c59:
CMP R14D,-0x9
JZ 0x00137c8a
CMP R14D,-0x7
JNZ 0x00137d29
SHL RBX,0x20
MOV ESI,EBP
OR RSI,RBX
MOV RDI,R15
MOV RDX,R14
CALL 0x0013e510
LAB_00137c7d:
MOV RBP,RAX
MOV R14,RDX
MOV RBX,RAX
SHR RBX,0x20
LAB_00137c8a:
SHL RBX,0x20
MOV R12D,EBP
JMP 0x00137d5a
LAB_00137c96:
CMP R14D,0x7
JNZ 0x00137d29
MOV R12,0x7ffffffffffffffd
MOV RAX,RBX
SHL RAX,0x20
MOV R13D,EBP
OR R13,RAX
LEA RSI,[RSP + 0x20]
MOV RDI,R15
MOV RDX,R13
MOV RCX,R14
CALL 0x001430ad
MOV qword ptr [RSP + 0x18],RAX
CMP qword ptr [RAX + 0x10],R12
JLE 0x00137d8d
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R13
MOV RDX,R14
CALL 0x0011d8c6
LEA RSI,[0x1a1848]
XOR EBP,EBP
MOV RDI,R15
XOR EAX,EAX
CALL 0x00120add
MOV R14D,0x6
XOR EBX,EBX
LAB_00137d03:
MOV R15B,0x1
MOV RCX,qword ptr [RSP + 0x18]
LEA RAX,[RSP + 0x20]
CMP RCX,RAX
JZ 0x00137d72
LAB_00137d15:
TEST R15B,R15B
JNZ 0x00137c8a
MOV R14D,0x6
XOR R12D,R12D
JMP 0x00137d58
LAB_00137d29:
SHL RBX,0x20
MOV ESI,EBP
OR RSI,RBX
MOV RDI,qword ptr [R15 + 0x18]
MOV RDX,R14
CALL 0x0011d8c6
LEA RSI,[0x19f1d4]
XOR R12D,R12D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
MOV R14D,0x6
LAB_00137d58:
XOR EBX,EBX
LAB_00137d5a:
OR R12,RBX
LAB_00137d5d:
MOV RAX,R12
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00137d72:
MOV RAX,qword ptr [RCX]
TEST RAX,RAX
JZ 0x00137d15
MOV RSI,qword ptr [RCX + 0x20]
TEST RSI,RSI
JZ 0x00137d15
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
JMP 0x00137d15
LAB_00137d8d:
MOV RDI,R15
CALL 0x0010fecd
MOV qword ptr [RSP + 0x10],RDX
MOV ECX,EDX
MOV qword ptr [RSP],RCX
CMP RCX,0x6
JNZ 0x00137dba
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R13
MOV RDX,R14
CALL 0x0011d8c6
JMP 0x00137e70
LAB_00137dba:
LEA RBX,[RAX + 0x8]
MOV RDI,RBX
MOV RBP,RAX
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00184c8d
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00187b16
MOV EBX,EAX
OR EBX,dword ptr [RSP + 0xc]
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R13
MOV RDX,R14
CALL 0x0011d8c6
TEST BL,0x20
JNZ 0x00137e29
TEST BL,0x10
MOV R14,qword ptr [RSP + 0x10]
JNZ 0x00137e46
CMP R14,-0x9
JNZ 0x00137e20
ADD R12,0x3
CMP qword ptr [RBP + 0x18],R12
JNZ 0x00137e20
CMP dword ptr [RBP + 0x10],0x0
JZ 0x00137e20
MOV dword ptr [RBP + 0x10],0x0
LAB_00137e20:
MOV RBX,RBP
SHR RBX,0x20
JMP 0x00137e70
LAB_00137e29:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0011d8c6
MOV RDI,R15
CALL 0x0011cb63
XOR EBP,EBP
JMP 0x00137e68
LAB_00137e46:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,RBP
MOV RDX,R14
CALL 0x0011d8c6
LEA RSI,[0x1a1871]
XOR EBP,EBP
MOV RDI,R15
XOR EAX,EAX
CALL 0x00120add
LAB_00137e68:
MOV R14D,0x6
XOR EBX,EBX
LAB_00137e70:
MOV RAX,qword ptr [RSP]
CMP EAX,0x6
JNZ 0x00137d03
XOR R15D,R15D
JMP 0x00137d15
|
int1 [16]
js_bigint_constructor
(long param_1,int8 param_2,int param_3,int8 param_4,int1 (*param_5) [16]
)
{
int *piVar1;
bool bVar2;
uint uVar3;
uint uVar4;
int **ppiVar5;
ulong uVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
int8 uVar10;
int1 auVar11 [16];
int1 auVar12 [16];
int *local_58 [5];
if (param_3 == 3) {
local_58[0] = *(int **)*param_5;
auVar11 = *param_5;
if (0xfffffff6 < (uint)*(int8 *)(*param_5 + 8)) {
*local_58[0] = *local_58[0] + 1;
}
uVar8 = (ulong)local_58[0] >> 0x20;
do {
uVar10 = auVar11._8_8_;
uVar9 = auVar11._0_8_;
uVar3 = auVar11._8_4_;
if (uVar3 != 0xffffffff) {
if ((int)uVar3 < 0) {
if (uVar3 == 0xfffffff7) break;
if (uVar3 == 0xfffffff9) {
auVar11 = JS_StringToBigIntErr(param_1,uVar9 & 0xffffffff | uVar8 << 0x20,uVar10);
goto LAB_00137c7d;
}
LAB_00137d29:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar9 & 0xffffffff | uVar8 << 0x20,uVar10);
JS_ThrowTypeError(param_1,"cannot convert to BigInt");
}
else {
if (uVar3 < 2) {
auVar11 = JS_NewBigInt64(param_1,(long)auVar11._0_4_);
LAB_00137c7d:
uVar8 = auVar11._0_8_ >> 0x20;
break;
}
if (uVar3 != 7) goto LAB_00137d29;
uVar9 = uVar9 & 0xffffffff | uVar8 << 0x20;
ppiVar5 = (int **)JS_ToBigInt1(param_1,local_58,uVar9,uVar10);
if ((long)ppiVar5[2] < 0x7ffffffffffffffe) {
auVar12 = JS_NewBigInt(param_1);
uVar7 = auVar12._8_8_;
uVar6 = auVar12._0_8_;
if ((uVar7 & 0xffffffff) == 6) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar9,uVar10);
}
else {
uVar3 = bf_set(uVar6 + 8,ppiVar5);
uVar4 = bf_rint(uVar6 + 8,1);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar9,uVar10);
if (((uVar4 | uVar3) & 0x20) == 0) {
if (((uVar4 | uVar3) & 0x10) == 0) {
if (((uVar7 == 0xfffffffffffffff7) &&
(*(long *)(uVar6 + 0x18) == -0x8000000000000000)) &&
(*(int *)(uVar6 + 0x10) != 0)) {
*(int4 *)(uVar6 + 0x10) = 0;
}
uVar8 = uVar6 >> 0x20;
auVar11 = auVar12;
goto LAB_00137e70;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar6,uVar7);
JS_ThrowRangeError(param_1,"cannot convert to BigInt: not an integer");
}
else {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar6,uVar7);
JS_ThrowOutOfMemory(param_1);
}
auVar11 = ZEXT816(6) << 0x40;
uVar8 = 0;
}
LAB_00137e70:
if (auVar12._8_4_ != 6) goto LAB_00137d03;
bVar2 = false;
}
else {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar9,uVar10);
JS_ThrowRangeError(param_1,"cannot convert NaN or Infinity to BigInt");
auVar11 = ZEXT816(6) << 0x40;
uVar8 = 0;
LAB_00137d03:
bVar2 = true;
if (((ppiVar5 == local_58) && (piVar1 = *ppiVar5, piVar1 != (int *)0x0)) &&
(ppiVar5[4] != (int *)0x0)) {
(**(code **)(piVar1 + 2))(*(int8 *)piVar1,ppiVar5[4],0);
}
}
if (bVar2) break;
}
uVar9 = 0;
uVar10 = 6;
uVar8 = 0;
goto LAB_00137d5a;
}
auVar11 = JS_ToPrimitiveFree(param_1,uVar9 & 0xffffffff | uVar8 << 0x20,uVar10,1);
uVar8 = auVar11._0_8_ >> 0x20;
} while (auVar11._8_4_ != 6);
uVar10 = auVar11._8_8_;
uVar8 = uVar8 << 0x20;
uVar9 = auVar11._0_8_ & 0xffffffff;
LAB_00137d5a:
uVar9 = uVar9 | uVar8;
}
else {
uVar9 = 0;
JS_ThrowTypeError(param_1,"not a constructor");
uVar10 = 6;
}
auVar11._8_8_ = uVar10;
auVar11._0_8_ = uVar9;
return auVar11;
}
| |
32,799 | js_bigint_constructor | bluesky950520[P]quickjs/quickjs.c | static JSValue js_bigint_constructor(JSContext *ctx,
JSValue new_target,
int argc, JSValue *argv)
{
if (!JS_IsUndefined(new_target))
return JS_ThrowTypeError(ctx, "not a constructor");
return JS_ToBigIntCtorFree(ctx, js_dup(argv[0]));
} | O2 | c | js_bigint_constructor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
cmpl $0x3, %edx
jne 0x310d9
movq (%r8), %r13
movq 0x8(%r8), %rbx
cmpl $-0x9, %ebx
jb 0x31088
incl (%r13)
movq %r13, %r15
shrq $0x20, %r15
leaq 0x52a4a(%rip), %r12 # 0x83ae0
leal 0x9(%rbx), %eax
movl %r13d, %ebp
cmpl $0xa, %eax
ja 0x31105
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
shlq $0x20, %r15
orq %r15, %rbp
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
pushq $0x1
popq %rcx
callq 0x366ee
movq %rax, %r13
movq %rdx, %rbx
movq %rax, %r15
shrq $0x20, %r15
cmpl $0x6, %ebx
jne 0x31096
jmp 0x311bf
leaq 0x55550(%rip), %rsi # 0x86630
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1c64d
pushq $0x6
popq %rbx
jmp 0x311c9
movslq %r13d, %rsi
movq %r14, %rdi
callq 0x21d56
jmp 0x311b2
cmpl $0x7, %ebx
jne 0x3116c
shlq $0x20, %r15
orq %r15, %rbp
leaq 0x10(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x3abb3
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
movq %rax, (%rsp)
cmpq %rcx, 0x10(%rax)
jl 0x311de
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x1801e
leaq 0x5762e(%rip), %rsi # 0x88782
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1acb3
pushq $0x6
popq %rbx
xorl %r15d, %r15d
jmp 0x312ae
shlq $0x20, %r15
orq %r15, %rbp
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x1801e
leaq 0x54f9c(%rip), %rsi # 0x86124
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1c64d
pushq $0x6
popq %rbx
xorl %r15d, %r15d
jmp 0x311c6
shlq $0x20, %r15
orq %r15, %rbp
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x36b1f
movq %rax, %r13
movq %rdx, %rbx
movq %rax, %r15
shrq $0x20, %r15
shlq $0x20, %r15
movl %r13d, %r12d
orq %r15, %r12
movq %r12, %rax
movq %rbx, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x21db5
movq %rdx, %r15
cmpl $0x6, %r15d
jne 0x31205
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x1801e
pushq $0x6
popq %rbx
xorl %r12d, %r12d
jmp 0x31198
movq %rax, %r13
movq %rax, %r12
addq $0x8, %r12
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x6f666
movl %eax, 0xc(%rsp)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x71c3d
movl %eax, %r12d
orl 0xc(%rsp), %r12d
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x1801e
testb $0x20, %r12b
jne 0x31266
testb $0x10, %r12b
jne 0x31281
movq %r13, %rdi
movq %r15, %rsi
callq 0x372ab
movq %rax, %r13
movq %rdx, %rbx
movq %rax, %r15
shrq $0x20, %r15
jmp 0x312a9
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1801e
movq %r14, %rdi
callq 0x171e0
xorl %r13d, %r13d
jmp 0x312a3
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1801e
leaq 0x57515(%rip), %rsi # 0x887ab
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x1acb3
pushq $0x6
popq %rbx
xorl %r15d, %r15d
leaq 0x10(%rsp), %r12
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x311bf
callq 0x352f0
jmp 0x311bf
| js_bigint_constructor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rdi
cmp edx, 3
jnz short loc_310D9
mov r13, [r8]
mov rbx, [r8+8]
cmp ebx, 0FFFFFFF7h
jb short loc_31088
inc dword ptr [r13+0]
loc_31088:
mov r15, r13
shr r15, 20h
lea r12, jpt_310A8
loc_31096:
lea eax, [rbx+9]; switch 11 cases
mov ebp, r13d
cmp eax, 0Ah
ja short def_310A8; jumptable 00000000000310A8 default case
movsxd rax, ds:(jpt_310A8 - 83AE0h)[r12+rax*4]
add rax, r12
jmp rax; switch jump
loc_310AA:
shl r15, 20h; jumptable 00000000000310A8 case -1
or rbp, r15
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
push 1
pop rcx
call JS_ToPrimitiveFree
mov r13, rax
mov rbx, rdx
mov r15, rax
shr r15, 20h
cmp ebx, 6
jnz short loc_31096
jmp loc_311BF; jumptable 00000000000310A8 case -9
loc_310D9:
lea rsi, aNotAConstructo; "not a constructor"
xor r12d, r12d
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
push 6
pop rbx
jmp loc_311C9
loc_310F5:
movsxd rsi, r13d; jumptable 00000000000310A8 cases 0,1
mov rdi, r14
call JS_NewBigInt64
jmp loc_311B2
def_310A8:
cmp ebx, 7; jumptable 00000000000310A8 default case
jnz short loc_3116C; jumptable 00000000000310A8 cases -8,-6--2
shl r15, 20h
or rbp, r15
lea r12, [rsp+68h+var_58]
mov rdi, r14
mov rsi, r12
mov rdx, rbp
mov rcx, rbx
call JS_ToBigInt1
mov rcx, 7FFFFFFFFFFFFFFEh
mov [rsp+68h+var_68], rax
cmp [rax+10h], rcx
jl loc_311DE
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
call JS_FreeValue
lea rsi, aCannotConvertN; "cannot convert NaN or Infinity to BigIn"...
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowRangeError
push 6
pop rbx
xor r15d, r15d
jmp loc_312AE
loc_3116C:
shl r15, 20h; jumptable 00000000000310A8 cases -8,-6--2
or rbp, r15
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
call JS_FreeValue
lea rsi, aCannotConvertT; "cannot convert to BigInt"
xor r12d, r12d
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
push 6
pop rbx
loc_31198:
xor r15d, r15d
jmp short loc_311C6
loc_3119D:
shl r15, 20h; jumptable 00000000000310A8 case -7
or rbp, r15
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
call JS_StringToBigIntErr
loc_311B2:
mov r13, rax
mov rbx, rdx
mov r15, rax
shr r15, 20h
loc_311BF:
shl r15, 20h; jumptable 00000000000310A8 case -9
mov r12d, r13d
loc_311C6:
or r12, r15
loc_311C9:
mov rax, r12
mov rdx, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_311DE:
mov rdi, r14
call JS_NewBigInt
mov r15, rdx
cmp r15d, 6
jnz short loc_31205
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r12d, r12d
jmp short loc_31198
loc_31205:
mov r13, rax
mov r12, rax
add r12, 8
mov rdi, r12
mov rsi, [rsp+68h+var_68]
call bf_set
mov [rsp+68h+var_5C], eax
push 1
pop rsi
mov rdi, r12
call bf_rint
mov r12d, eax
or r12d, [rsp+68h+var_5C]
mov rdi, r14
mov rsi, rbp
mov rdx, rbx
call JS_FreeValue
test r12b, 20h
jnz short loc_31266
test r12b, 10h
jnz short loc_31281
mov rdi, r13
mov rsi, r15
call JS_CompactBigInt1
mov r13, rax
mov rbx, rdx
mov r15, rax
shr r15, 20h
jmp short loc_312A9
loc_31266:
mov rdi, r14
mov rsi, r13
mov rdx, r15
call JS_FreeValue
mov rdi, r14
call JS_ThrowOutOfMemory
xor r13d, r13d
jmp short loc_312A3
loc_31281:
mov rdi, r14
mov rsi, r13
mov rdx, r15
call JS_FreeValue
lea rsi, aCannotConvertT_0; "cannot convert to BigInt: not an intege"...
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowRangeError
loc_312A3:
push 6
pop rbx
xor r15d, r15d
loc_312A9:
lea r12, [rsp+68h+var_58]
loc_312AE:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jnz loc_311BF; jumptable 00000000000310A8 case -9
call bf_delete
jmp loc_311BF; jumptable 00000000000310A8 case -9
| unsigned long long js_bigint_constructor(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
unsigned long long *a13,
long long a14)
{
unsigned long long v14; // r13
long long v15; // rbx
unsigned long long v16; // r15
long long v17; // rdx
long long v18; // r12
unsigned long long v19; // rax
long long v20; // rbp
long long v21; // rdx
long long v22; // rcx
long long v23; // r8
long long v24; // r9
__m128 v25; // xmm4
__m128 v26; // xmm5
long long v27; // r12
long long v28; // rdx
long long v29; // rcx
long long v30; // r8
long long v31; // r9
__m128 v32; // xmm4
__m128 v33; // xmm5
unsigned long long v34; // r15
_DWORD *v36; // rax
long long v37; // rdx
long long v38; // r15
_DWORD *v39; // r12
int v40; // r12d
unsigned long long v41; // rax
int v42; // edx
int v43; // ecx
int v44; // r8d
int v45; // r9d
long long v46; // rdx
long long v47; // rcx
long long v48; // r8
long long v49; // r9
__m128 v50; // xmm4
__m128 v51; // xmm5
char v52; // [rsp+0h] [rbp-68h]
long long v53; // [rsp+0h] [rbp-68h]
int v54; // [rsp+Ch] [rbp-5Ch]
_BYTE v55[88]; // [rsp+10h] [rbp-58h] BYREF
if ( (_DWORD)a11 != 3 )
{
v18 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"not a constructor",
a11,
a12,
(long long)a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
v52);
return v18;
}
v14 = *a13;
v15 = a13[1];
if ( (unsigned int)v15 >= 0xFFFFFFF7 )
++*(_DWORD *)v14;
v16 = HIDWORD(v14);
while ( 2 )
{
switch ( (int)v15 )
{
case -9:
goto LABEL_17;
case -8:
case -6:
case -5:
case -4:
case -3:
case -2:
goto LABEL_13;
case -7:
v19 = JS_StringToBigIntErr(a1, (v16 << 32) | (unsigned int)v14, v15);
goto LABEL_16;
case -1:
v14 = JS_ToPrimitiveFree(a1, (v16 << 32) | (unsigned int)v14, v15, 1LL);
v15 = v17;
v16 = HIDWORD(v14);
if ( (_DWORD)v17 != 6 )
continue;
goto LABEL_17;
case 0:
case 1:
v19 = JS_NewBigInt64(a1, (int)v14);
LABEL_16:
LODWORD(v14) = v19;
v16 = HIDWORD(v19);
goto LABEL_17;
default:
if ( (_DWORD)v15 != 7 )
{
LABEL_13:
JS_FreeValue(a1, (v16 << 32) | (unsigned int)v14, v15);
v27 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"cannot convert to BigInt",
v28,
v29,
v30,
v31,
a2,
a3,
a4,
a5,
v32,
v33,
a8,
a9,
v52);
LABEL_14:
v34 = 0LL;
return v34 | v27;
}
v20 = (v16 << 32) | (unsigned int)v14;
v53 = JS_ToBigInt1(a1, v55, v20, v15);
if ( *(long long *)(v53 + 16) >= 0x7FFFFFFFFFFFFFFELL )
{
JS_FreeValue(a1, v20, v15);
LODWORD(v14) = 0;
JS_ThrowRangeError(
a1,
(long long)"cannot convert NaN or Infinity to BigInt",
v21,
v22,
v23,
v24,
a2,
a3,
a4,
a5,
v25,
v26,
a8,
a9,
v53);
v16 = 0LL;
goto LABEL_28;
}
v36 = JS_NewBigInt(a1);
v38 = v37;
if ( (_DWORD)v37 == 6 )
{
JS_FreeValue(a1, v20, v15);
v27 = 0LL;
goto LABEL_14;
}
v14 = (unsigned long long)v36;
v39 = v36 + 2;
v54 = bf_set(v36 + 2, v53);
v40 = v54 | bf_rint(v39, 1LL);
JS_FreeValue(a1, v20, v15);
if ( (v40 & 0x20) != 0 )
{
JS_FreeValue(a1, v14, v38);
JS_ThrowOutOfMemory(a1, v14, v42, v43, v44, v45);
LODWORD(v14) = 0;
}
else
{
if ( (v40 & 0x10) == 0 )
{
v41 = JS_CompactBigInt1(v14, v38);
LODWORD(v14) = v41;
v16 = HIDWORD(v41);
goto LABEL_28;
}
JS_FreeValue(a1, v14, v38);
LODWORD(v14) = 0;
JS_ThrowRangeError(
a1,
(long long)"cannot convert to BigInt: not an integer",
v46,
v47,
v48,
v49,
a2,
a3,
a4,
a5,
v50,
v51,
a8,
a9,
v53);
}
v16 = 0LL;
LABEL_28:
if ( (_BYTE *)v53 == v55 )
bf_delete(v53);
LABEL_17:
v34 = v16 << 32;
v27 = (unsigned int)v14;
return v34 | v27;
}
}
}
| js_bigint_constructor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RDI
CMP EDX,0x3
JNZ 0x001310d9
MOV R13,qword ptr [R8]
MOV RBX,qword ptr [R8 + 0x8]
CMP EBX,-0x9
JC 0x00131088
INC dword ptr [R13]
LAB_00131088:
MOV R15,R13
SHR R15,0x20
LEA R12,[0x183ae0]
LAB_00131096:
LEA EAX,[RBX + 0x9]
MOV EBP,R13D
CMP EAX,0xa
JA 0x00131105
MOVSXD RAX,dword ptr [R12 + RAX*0x4]
ADD RAX,R12
switchD:
JMP RAX
caseD_ffffffff:
SHL R15,0x20
OR RBP,R15
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
PUSH 0x1
POP RCX
CALL 0x001366ee
MOV R13,RAX
MOV RBX,RDX
MOV R15,RAX
SHR R15,0x20
CMP EBX,0x6
JNZ 0x00131096
JMP 0x001311bf
LAB_001310d9:
LEA RSI,[0x186630]
XOR R12D,R12D
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011c64d
PUSH 0x6
POP RBX
JMP 0x001311c9
caseD_0:
MOVSXD RSI,R13D
MOV RDI,R14
CALL 0x00121d56
JMP 0x001311b2
default:
CMP EBX,0x7
JNZ 0x0013116c
SHL R15,0x20
OR RBP,R15
LEA R12,[RSP + 0x10]
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBP
MOV RCX,RBX
CALL 0x0013abb3
MOV RCX,0x7ffffffffffffffe
MOV qword ptr [RSP],RAX
CMP qword ptr [RAX + 0x10],RCX
JL 0x001311de
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0011801e
LEA RSI,[0x188782]
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011acb3
PUSH 0x6
POP RBX
XOR R15D,R15D
JMP 0x001312ae
caseD_fffffff8:
SHL R15,0x20
OR RBP,R15
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0011801e
LEA RSI,[0x186124]
XOR R12D,R12D
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011c64d
PUSH 0x6
POP RBX
LAB_00131198:
XOR R15D,R15D
JMP 0x001311c6
caseD_fffffff9:
SHL R15,0x20
OR RBP,R15
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
CALL 0x00136b1f
LAB_001311b2:
MOV R13,RAX
MOV RBX,RDX
MOV R15,RAX
SHR R15,0x20
caseD_fffffff7:
SHL R15,0x20
MOV R12D,R13D
LAB_001311c6:
OR R12,R15
LAB_001311c9:
MOV RAX,R12
MOV RDX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001311de:
MOV RDI,R14
CALL 0x00121db5
MOV R15,RDX
CMP R15D,0x6
JNZ 0x00131205
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0011801e
PUSH 0x6
POP RBX
XOR R12D,R12D
JMP 0x00131198
LAB_00131205:
MOV R13,RAX
MOV R12,RAX
ADD R12,0x8
MOV RDI,R12
MOV RSI,qword ptr [RSP]
CALL 0x0016f666
MOV dword ptr [RSP + 0xc],EAX
PUSH 0x1
POP RSI
MOV RDI,R12
CALL 0x00171c3d
MOV R12D,EAX
OR R12D,dword ptr [RSP + 0xc]
MOV RDI,R14
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0011801e
TEST R12B,0x20
JNZ 0x00131266
TEST R12B,0x10
JNZ 0x00131281
MOV RDI,R13
MOV RSI,R15
CALL 0x001372ab
MOV R13,RAX
MOV RBX,RDX
MOV R15,RAX
SHR R15,0x20
JMP 0x001312a9
LAB_00131266:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R15
CALL 0x0011801e
MOV RDI,R14
CALL 0x001171e0
XOR R13D,R13D
JMP 0x001312a3
LAB_00131281:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R15
CALL 0x0011801e
LEA RSI,[0x1887ab]
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011acb3
LAB_001312a3:
PUSH 0x6
POP RBX
XOR R15D,R15D
LAB_001312a9:
LEA R12,[RSP + 0x10]
LAB_001312ae:
MOV RDI,qword ptr [RSP]
CMP RDI,R12
JNZ 0x001311bf
CALL 0x001352f0
JMP 0x001311bf
|
int1 [16]
js_bigint_constructor
(int8 param_1,int8 param_2,int param_3,int8 param_4,
int1 (*param_5) [16])
{
int *piVar1;
uint uVar2;
uint uVar3;
int1 *puVar4;
int8 uVar7;
ulong uVar8;
ulong uVar9;
int1 auVar10 [16];
int1 local_58 [40];
long lVar5;
int8 uVar6;
if (param_3 == 3) {
piVar1 = *(int **)*param_5;
auVar10 = *param_5;
if (0xfffffff6 < (uint)*(int8 *)(*param_5 + 8)) {
*piVar1 = *piVar1 + 1;
}
uVar9 = (ulong)piVar1 >> 0x20;
LAB_00131096:
uVar7 = auVar10._8_8_;
uVar8 = auVar10._0_8_ & 0xffffffff;
switch(auVar10._8_4_) {
case 0:
case 1:
auVar10 = JS_NewBigInt64(param_1,(long)auVar10._0_4_);
LAB_001311b2:
uVar9 = auVar10._0_8_ >> 0x20;
case -9:
goto switchD_001310a8_caseD_fffffff7;
case -8:
case -6:
case -5:
case -4:
case -3:
case -2:
switchD_001310a8_caseD_fffffff8:
JS_FreeValue(param_1,uVar8 | uVar9 << 0x20,uVar7);
JS_ThrowTypeError(param_1,"cannot convert to BigInt");
break;
case -7:
auVar10 = JS_StringToBigIntErr(param_1,uVar8 | uVar9 << 0x20,uVar7);
goto LAB_001311b2;
case -1:
goto switchD_001310a8_caseD_ffffffff;
default:
if (auVar10._8_4_ != 7) goto switchD_001310a8_caseD_fffffff8;
uVar8 = uVar8 | uVar9 << 0x20;
puVar4 = (int1 *)JS_ToBigInt1(param_1,local_58,uVar8,uVar7);
if (0x7ffffffffffffffd < *(long *)(puVar4 + 0x10)) {
JS_FreeValue(param_1,uVar8,uVar7);
JS_ThrowRangeError(param_1,"cannot convert NaN or Infinity to BigInt");
auVar10 = ZEXT816(6) << 0x40;
uVar9 = 0;
LAB_001312ae:
if (puVar4 == local_58) {
bf_delete();
}
goto switchD_001310a8_caseD_fffffff7;
}
auVar10 = JS_NewBigInt(param_1);
uVar6 = auVar10._8_8_;
lVar5 = auVar10._0_8_;
if (auVar10._8_4_ != 6) {
uVar2 = bf_set(lVar5 + 8,puVar4);
uVar3 = bf_rint(lVar5 + 8,1);
JS_FreeValue(param_1,uVar8,uVar7);
if (((uVar3 | uVar2) & 0x20) == 0) {
if (((uVar3 | uVar2) & 0x10) == 0) {
auVar10 = JS_CompactBigInt1(lVar5,uVar6);
uVar9 = auVar10._0_8_ >> 0x20;
goto LAB_001312ae;
}
JS_FreeValue(param_1,lVar5,uVar6);
JS_ThrowRangeError(param_1,"cannot convert to BigInt: not an integer");
}
else {
JS_FreeValue(param_1,lVar5,uVar6);
JS_ThrowOutOfMemory(param_1);
}
auVar10 = ZEXT816(6) << 0x40;
uVar9 = 0;
goto LAB_001312ae;
}
JS_FreeValue(param_1,uVar8,uVar7);
}
uVar7 = 6;
uVar8 = 0;
uVar9 = 0;
goto LAB_001311c6;
}
uVar8 = 0;
JS_ThrowTypeError(param_1,"not a constructor");
uVar7 = 6;
LAB_001311c9:
auVar10._8_8_ = uVar7;
auVar10._0_8_ = uVar8;
return auVar10;
switchD_001310a8_caseD_ffffffff:
auVar10 = JS_ToPrimitiveFree(param_1,uVar8 | uVar9 << 0x20,uVar7,1);
uVar9 = auVar10._0_8_ >> 0x20;
if (auVar10._8_4_ == 6) goto switchD_001310a8_caseD_fffffff7;
goto LAB_00131096;
switchD_001310a8_caseD_fffffff7:
uVar7 = auVar10._8_8_;
uVar9 = uVar9 << 0x20;
uVar8 = auVar10._0_8_ & 0xffffffff;
LAB_001311c6:
uVar8 = uVar8 | uVar9;
goto LAB_001311c9;
}
|
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.